No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / autoconf-lib-link / tests / rpathy / configure
blob6c2ca738ffaf22381b23155d8a465610e6691cb6
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 case X$ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 esac
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<EOF
276 exit 0
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289 echo_test_string="`eval $cmd`" &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291 then
292 break
294 done
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
301 else
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
306 # So, first we look for a working echo in the user's PATH.
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
310 IFS="$lt_save_ifs"
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
315 echo="$dir/echo"
316 break
318 done
319 IFS="$lt_save_ifs"
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
327 echo='print -r'
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
334 export CONFIG_SHELL
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336 else
337 # Try using printf.
338 echo='printf %s\n'
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
342 # Cool, printf works
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349 export CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
351 export SHELL
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
358 else
359 # maybe with a smaller string...
360 prev=:
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364 then
365 break
367 prev="$cmd"
368 done
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 else
375 # Oops. We lost completely, so just stick with echo.
376 echo=echo
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 tagnames=${tagnames+${tagnames},}CXX
396 tagnames=${tagnames+${tagnames},}F77
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403 exec 6>&1
406 # Initializations.
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
428 ac_unique_file="configure.ac"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
431 #include <stdio.h>
432 #if HAVE_SYS_TYPES_H
433 # include <sys/types.h>
434 #endif
435 #if HAVE_SYS_STAT_H
436 # include <sys/stat.h>
437 #endif
438 #if STDC_HEADERS
439 # include <stdlib.h>
440 # include <stddef.h>
441 #else
442 # if HAVE_STDLIB_H
443 # include <stdlib.h>
444 # endif
445 #endif
446 #if HAVE_STRING_H
447 # if !STDC_HEADERS && HAVE_MEMORY_H
448 # include <memory.h>
449 # endif
450 # include <string.h>
451 #endif
452 #if HAVE_STRINGS_H
453 # include <strings.h>
454 #endif
455 #if HAVE_INTTYPES_H
456 # include <inttypes.h>
457 #else
458 # if HAVE_STDINT_H
459 # include <stdint.h>
460 # endif
461 #endif
462 #if HAVE_UNISTD_H
463 # include <unistd.h>
464 #endif"
466 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE 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 CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBRPATHX LTLIBRPATHX global_top_auxdir LIBOBJS LTLIBOBJS'
467 ac_subst_files=''
469 # Initialize some variables set by options.
470 ac_init_help=
471 ac_init_version=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
474 cache_file=/dev/null
475 exec_prefix=NONE
476 no_create=
477 no_recursion=
478 prefix=NONE
479 program_prefix=NONE
480 program_suffix=NONE
481 program_transform_name=s,x,x,
482 silent=
483 site=
484 srcdir=
485 verbose=
486 x_includes=NONE
487 x_libraries=NONE
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir='${exec_prefix}/bin'
495 sbindir='${exec_prefix}/sbin'
496 libexecdir='${exec_prefix}/libexec'
497 datadir='${prefix}/share'
498 sysconfdir='${prefix}/etc'
499 sharedstatedir='${prefix}/com'
500 localstatedir='${prefix}/var'
501 libdir='${exec_prefix}/lib'
502 includedir='${prefix}/include'
503 oldincludedir='/usr/include'
504 infodir='${prefix}/info'
505 mandir='${prefix}/man'
507 ac_prev=
508 for ac_option
510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
513 ac_prev=
514 continue
517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519 # Accept the important Cygnus configure options, so we can diagnose typos.
521 case $ac_option in
523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
524 ac_prev=bindir ;;
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526 bindir=$ac_optarg ;;
528 -build | --build | --buil | --bui | --bu)
529 ac_prev=build_alias ;;
530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531 build_alias=$ac_optarg ;;
533 -cache-file | --cache-file | --cache-fil | --cache-fi \
534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535 ac_prev=cache_file ;;
536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538 cache_file=$ac_optarg ;;
540 --config-cache | -C)
541 cache_file=config.cache ;;
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544 ac_prev=datadir ;;
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546 | --da=*)
547 datadir=$ac_optarg ;;
549 -disable-* | --disable-*)
550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554 { (exit 1); exit 1; }; }
555 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556 eval "enable_$ac_feature=no" ;;
558 -enable-* | --enable-*)
559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560 # Reject names that are not valid shell variable names.
561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563 { (exit 1); exit 1; }; }
564 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565 case $ac_option in
566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567 *) ac_optarg=yes ;;
568 esac
569 eval "enable_$ac_feature='$ac_optarg'" ;;
571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573 | --exec | --exe | --ex)
574 ac_prev=exec_prefix ;;
575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577 | --exec=* | --exe=* | --ex=*)
578 exec_prefix=$ac_optarg ;;
580 -gas | --gas | --ga | --g)
581 # Obsolete; use --with-gas.
582 with_gas=yes ;;
584 -help | --help | --hel | --he | -h)
585 ac_init_help=long ;;
586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587 ac_init_help=recursive ;;
588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589 ac_init_help=short ;;
591 -host | --host | --hos | --ho)
592 ac_prev=host_alias ;;
593 -host=* | --host=* | --hos=* | --ho=*)
594 host_alias=$ac_optarg ;;
596 -includedir | --includedir | --includedi | --included | --include \
597 | --includ | --inclu | --incl | --inc)
598 ac_prev=includedir ;;
599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600 | --includ=* | --inclu=* | --incl=* | --inc=*)
601 includedir=$ac_optarg ;;
603 -infodir | --infodir | --infodi | --infod | --info | --inf)
604 ac_prev=infodir ;;
605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606 infodir=$ac_optarg ;;
608 -libdir | --libdir | --libdi | --libd)
609 ac_prev=libdir ;;
610 -libdir=* | --libdir=* | --libdi=* | --libd=*)
611 libdir=$ac_optarg ;;
613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614 | --libexe | --libex | --libe)
615 ac_prev=libexecdir ;;
616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617 | --libexe=* | --libex=* | --libe=*)
618 libexecdir=$ac_optarg ;;
620 -localstatedir | --localstatedir | --localstatedi | --localstated \
621 | --localstate | --localstat | --localsta | --localst \
622 | --locals | --local | --loca | --loc | --lo)
623 ac_prev=localstatedir ;;
624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627 localstatedir=$ac_optarg ;;
629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630 ac_prev=mandir ;;
631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632 mandir=$ac_optarg ;;
634 -nfp | --nfp | --nf)
635 # Obsolete; use --without-fp.
636 with_fp=no ;;
638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639 | --no-cr | --no-c | -n)
640 no_create=yes ;;
642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644 no_recursion=yes ;;
646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648 | --oldin | --oldi | --old | --ol | --o)
649 ac_prev=oldincludedir ;;
650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653 oldincludedir=$ac_optarg ;;
655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656 ac_prev=prefix ;;
657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658 prefix=$ac_optarg ;;
660 -program-prefix | --program-prefix | --program-prefi | --program-pref \
661 | --program-pre | --program-pr | --program-p)
662 ac_prev=program_prefix ;;
663 -program-prefix=* | --program-prefix=* | --program-prefi=* \
664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665 program_prefix=$ac_optarg ;;
667 -program-suffix | --program-suffix | --program-suffi | --program-suff \
668 | --program-suf | --program-su | --program-s)
669 ac_prev=program_suffix ;;
670 -program-suffix=* | --program-suffix=* | --program-suffi=* \
671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672 program_suffix=$ac_optarg ;;
674 -program-transform-name | --program-transform-name \
675 | --program-transform-nam | --program-transform-na \
676 | --program-transform-n | --program-transform- \
677 | --program-transform | --program-transfor \
678 | --program-transfo | --program-transf \
679 | --program-trans | --program-tran \
680 | --progr-tra | --program-tr | --program-t)
681 ac_prev=program_transform_name ;;
682 -program-transform-name=* | --program-transform-name=* \
683 | --program-transform-nam=* | --program-transform-na=* \
684 | --program-transform-n=* | --program-transform-=* \
685 | --program-transform=* | --program-transfor=* \
686 | --program-transfo=* | --program-transf=* \
687 | --program-trans=* | --program-tran=* \
688 | --progr-tra=* | --program-tr=* | --program-t=*)
689 program_transform_name=$ac_optarg ;;
691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692 | -silent | --silent | --silen | --sile | --sil)
693 silent=yes ;;
695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696 ac_prev=sbindir ;;
697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698 | --sbi=* | --sb=*)
699 sbindir=$ac_optarg ;;
701 -sharedstatedir | --sharedstatedir | --sharedstatedi \
702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703 | --sharedst | --shareds | --shared | --share | --shar \
704 | --sha | --sh)
705 ac_prev=sharedstatedir ;;
706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709 | --sha=* | --sh=*)
710 sharedstatedir=$ac_optarg ;;
712 -site | --site | --sit)
713 ac_prev=site ;;
714 -site=* | --site=* | --sit=*)
715 site=$ac_optarg ;;
717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718 ac_prev=srcdir ;;
719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720 srcdir=$ac_optarg ;;
722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723 | --syscon | --sysco | --sysc | --sys | --sy)
724 ac_prev=sysconfdir ;;
725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727 sysconfdir=$ac_optarg ;;
729 -target | --target | --targe | --targ | --tar | --ta | --t)
730 ac_prev=target_alias ;;
731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732 target_alias=$ac_optarg ;;
734 -v | -verbose | --verbose | --verbos | --verbo | --verb)
735 verbose=yes ;;
737 -version | --version | --versio | --versi | --vers | -V)
738 ac_init_version=: ;;
740 -with-* | --with-*)
741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742 # Reject names that are not valid shell variable names.
743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744 { echo "$as_me: error: invalid package name: $ac_package" >&2
745 { (exit 1); exit 1; }; }
746 ac_package=`echo $ac_package| sed 's/-/_/g'`
747 case $ac_option in
748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749 *) ac_optarg=yes ;;
750 esac
751 eval "with_$ac_package='$ac_optarg'" ;;
753 -without-* | --without-*)
754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package | sed 's/-/_/g'`
760 eval "with_$ac_package=no" ;;
762 --x)
763 # Obsolete; use --with-x.
764 with_x=yes ;;
766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767 | --x-incl | --x-inc | --x-in | --x-i)
768 ac_prev=x_includes ;;
769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771 x_includes=$ac_optarg ;;
773 -x-libraries | --x-libraries | --x-librarie | --x-librari \
774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775 ac_prev=x_libraries ;;
776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778 x_libraries=$ac_optarg ;;
780 -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782 { (exit 1); exit 1; }; }
785 *=*)
786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790 { (exit 1); exit 1; }; }
791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792 eval "$ac_envvar='$ac_optarg'"
793 export $ac_envvar ;;
796 # FIXME: should be removed in autoconf 3.0.
797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803 esac
804 done
806 if test -n "$ac_prev"; then
807 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808 { echo "$as_me: error: missing argument to $ac_option" >&2
809 { (exit 1); exit 1; }; }
812 # Be sure to have absolute paths.
813 for ac_var in exec_prefix prefix
815 eval ac_val=$`echo $ac_var`
816 case $ac_val in
817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819 { (exit 1); exit 1; }; };;
820 esac
821 done
823 # Be sure to have absolute paths.
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825 localstatedir libdir includedir oldincludedir infodir mandir
827 eval ac_val=$`echo $ac_var`
828 case $ac_val in
829 [\\/$]* | ?:[\\/]* ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
832 esac
833 done
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
838 build=$build_alias
839 host=$host_alias
840 target=$target_alias
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x; then
844 if test "x$build_alias" = x; then
845 cross_compiling=maybe
846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847 If a cross compiler is detected then cross compile mode will be used." >&2
848 elif test "x$build_alias" != "x$host_alias"; then
849 cross_compiling=yes
853 ac_tool_prefix=
854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856 test "$silent" = yes && exec 6>/dev/null
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861 ac_srcdir_defaulted=yes
862 # Try the directory containing this script, then its parent.
863 ac_confdir=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865 X"$0" : 'X\(//\)[^/]' \| \
866 X"$0" : 'X\(//\)$' \| \
867 X"$0" : 'X\(/\)' \| \
868 . : '\(.\)' 2>/dev/null ||
869 echo X"$0" |
870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872 /^X\(\/\/\)$/{ s//\1/; q; }
873 /^X\(\/\).*/{ s//\1/; q; }
874 s/.*/./; q'`
875 srcdir=$ac_confdir
876 if test ! -r $srcdir/$ac_unique_file; then
877 srcdir=..
879 else
880 ac_srcdir_defaulted=no
882 if test ! -r $srcdir/$ac_unique_file; then
883 if test "$ac_srcdir_defaulted" = yes; then
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885 { (exit 1); exit 1; }; }
886 else
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888 { (exit 1); exit 1; }; }
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893 { (exit 1); exit 1; }; }
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set=${build_alias+set}
896 ac_env_build_alias_value=$build_alias
897 ac_cv_env_build_alias_set=${build_alias+set}
898 ac_cv_env_build_alias_value=$build_alias
899 ac_env_host_alias_set=${host_alias+set}
900 ac_env_host_alias_value=$host_alias
901 ac_cv_env_host_alias_set=${host_alias+set}
902 ac_cv_env_host_alias_value=$host_alias
903 ac_env_target_alias_set=${target_alias+set}
904 ac_env_target_alias_value=$target_alias
905 ac_cv_env_target_alias_set=${target_alias+set}
906 ac_cv_env_target_alias_value=$target_alias
907 ac_env_CC_set=${CC+set}
908 ac_env_CC_value=$CC
909 ac_cv_env_CC_set=${CC+set}
910 ac_cv_env_CC_value=$CC
911 ac_env_CFLAGS_set=${CFLAGS+set}
912 ac_env_CFLAGS_value=$CFLAGS
913 ac_cv_env_CFLAGS_set=${CFLAGS+set}
914 ac_cv_env_CFLAGS_value=$CFLAGS
915 ac_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_env_LDFLAGS_value=$LDFLAGS
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value=$LDFLAGS
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 ac_env_CPP_set=${CPP+set}
924 ac_env_CPP_value=$CPP
925 ac_cv_env_CPP_set=${CPP+set}
926 ac_cv_env_CPP_value=$CPP
927 ac_env_CXX_set=${CXX+set}
928 ac_env_CXX_value=$CXX
929 ac_cv_env_CXX_set=${CXX+set}
930 ac_cv_env_CXX_value=$CXX
931 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_env_CXXFLAGS_value=$CXXFLAGS
933 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935 ac_env_CXXCPP_set=${CXXCPP+set}
936 ac_env_CXXCPP_value=$CXXCPP
937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
938 ac_cv_env_CXXCPP_value=$CXXCPP
939 ac_env_F77_set=${F77+set}
940 ac_env_F77_value=$F77
941 ac_cv_env_F77_set=${F77+set}
942 ac_cv_env_F77_value=$F77
943 ac_env_FFLAGS_set=${FFLAGS+set}
944 ac_env_FFLAGS_value=$FFLAGS
945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
946 ac_cv_env_FFLAGS_value=$FFLAGS
949 # Report the --help message.
951 if test "$ac_init_help" = "long"; then
952 # Omit some internal or obsolete options to make the list less imposing.
953 # This message is too long to be a string in the A/UX 3.1 sh.
954 cat <<_ACEOF
955 \`configure' configures this package to adapt to many kinds of systems.
957 Usage: $0 [OPTION]... [VAR=VALUE]...
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE. See below for descriptions of some of the useful variables.
962 Defaults for the options are specified in brackets.
964 Configuration:
965 -h, --help display this help and exit
966 --help=short display options specific to this package
967 --help=recursive display the short help of all the included packages
968 -V, --version display version information and exit
969 -q, --quiet, --silent do not print \`checking...' messages
970 --cache-file=FILE cache test results in FILE [disabled]
971 -C, --config-cache alias for \`--cache-file=config.cache'
972 -n, --no-create do not create output files
973 --srcdir=DIR find the sources in DIR [configure dir or \`..']
975 _ACEOF
977 cat <<_ACEOF
978 Installation directories:
979 --prefix=PREFIX install architecture-independent files in PREFIX
980 [$ac_default_prefix]
981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
982 [PREFIX]
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
989 For better control, use the options below.
991 Fine tuning of the installation directories:
992 --bindir=DIR user executables [EPREFIX/bin]
993 --sbindir=DIR system admin executables [EPREFIX/sbin]
994 --libexecdir=DIR program executables [EPREFIX/libexec]
995 --datadir=DIR read-only architecture-independent data [PREFIX/share]
996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999 --libdir=DIR object code libraries [EPREFIX/lib]
1000 --includedir=DIR C header files [PREFIX/include]
1001 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002 --infodir=DIR info documentation [PREFIX/info]
1003 --mandir=DIR man documentation [PREFIX/man]
1004 _ACEOF
1006 cat <<\_ACEOF
1008 Program names:
1009 --program-prefix=PREFIX prepend PREFIX to installed program names
1010 --program-suffix=SUFFIX append SUFFIX to installed program names
1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1013 System types:
1014 --build=BUILD configure for building on BUILD [guessed]
1015 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1016 _ACEOF
1019 if test -n "$ac_init_help"; then
1021 cat <<\_ACEOF
1023 Optional Features:
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --disable-dependency-tracking speeds up one-time build
1027 --enable-dependency-tracking do not reject slow dependency extractors
1028 --enable-shared[=PKGS]
1029 build shared libraries [default=yes]
1030 --enable-static[=PKGS]
1031 build static libraries [default=yes]
1032 --enable-fast-install[=PKGS]
1033 optimize for fast installation [default=yes]
1034 --disable-libtool-lock avoid locking (might break parallel builds)
1035 --disable-rpath do not hardcode runtime library paths
1037 Optional Packages:
1038 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1039 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1040 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1041 --with-pic try to use only PIC/non-PIC objects [default=use
1042 both]
1043 --with-tags[=TAGS]
1044 include additional configurations [automatic]
1045 --with-gnu-ld assume the C compiler uses GNU ld default=no
1046 --with-librpathx-prefix[=DIR] search for librpathx in DIR/include and DIR/lib
1047 --without-librpathx-prefix don't search for librpathx in includedir and libdir
1049 Some influential environment variables:
1050 CC C compiler command
1051 CFLAGS C compiler flags
1052 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1053 nonstandard directory <lib dir>
1054 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1055 headers in a nonstandard directory <include dir>
1056 CPP C preprocessor
1057 CXX C++ compiler command
1058 CXXFLAGS C++ compiler flags
1059 CXXCPP C++ preprocessor
1060 F77 Fortran 77 compiler command
1061 FFLAGS Fortran 77 compiler flags
1063 Use these variables to override the choices made by `configure' or to help
1064 it to find libraries and programs with nonstandard names/locations.
1066 _ACEOF
1069 if test "$ac_init_help" = "recursive"; then
1070 # If there are subdirs, report their specific --help.
1071 ac_popdir=`pwd`
1072 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1073 test -d $ac_dir || continue
1074 ac_builddir=.
1076 if test "$ac_dir" != .; then
1077 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1078 # A "../" for each directory in $ac_dir_suffix.
1079 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1080 else
1081 ac_dir_suffix= ac_top_builddir=
1084 case $srcdir in
1085 .) # No --srcdir option. We are building in place.
1086 ac_srcdir=.
1087 if test -z "$ac_top_builddir"; then
1088 ac_top_srcdir=.
1089 else
1090 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1091 fi ;;
1092 [\\/]* | ?:[\\/]* ) # Absolute path.
1093 ac_srcdir=$srcdir$ac_dir_suffix;
1094 ac_top_srcdir=$srcdir ;;
1095 *) # Relative path.
1096 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1097 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1098 esac
1100 # Do not use `cd foo && pwd` to compute absolute paths, because
1101 # the directories may not exist.
1102 case `pwd` in
1103 .) ac_abs_builddir="$ac_dir";;
1105 case "$ac_dir" in
1106 .) ac_abs_builddir=`pwd`;;
1107 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1108 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1109 esac;;
1110 esac
1111 case $ac_abs_builddir in
1112 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1114 case ${ac_top_builddir}. in
1115 .) ac_abs_top_builddir=$ac_abs_builddir;;
1116 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1117 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1118 esac;;
1119 esac
1120 case $ac_abs_builddir in
1121 .) ac_abs_srcdir=$ac_srcdir;;
1123 case $ac_srcdir in
1124 .) ac_abs_srcdir=$ac_abs_builddir;;
1125 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1126 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1127 esac;;
1128 esac
1129 case $ac_abs_builddir in
1130 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1132 case $ac_top_srcdir in
1133 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1134 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1135 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1136 esac;;
1137 esac
1139 cd $ac_dir
1140 # Check for guested configure; otherwise get Cygnus style configure.
1141 if test -f $ac_srcdir/configure.gnu; then
1142 echo
1143 $SHELL $ac_srcdir/configure.gnu --help=recursive
1144 elif test -f $ac_srcdir/configure; then
1145 echo
1146 $SHELL $ac_srcdir/configure --help=recursive
1147 elif test -f $ac_srcdir/configure.ac ||
1148 test -f $ac_srcdir/configure.in; then
1149 echo
1150 $ac_configure --help
1151 else
1152 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1154 cd $ac_popdir
1155 done
1158 test -n "$ac_init_help" && exit 0
1159 if $ac_init_version; then
1160 cat <<\_ACEOF
1162 Copyright (C) 2003 Free Software Foundation, Inc.
1163 This configure script is free software; the Free Software Foundation
1164 gives unlimited permission to copy, distribute and modify it.
1165 _ACEOF
1166 exit 0
1168 exec 5>config.log
1169 cat >&5 <<_ACEOF
1170 This file contains any messages produced by compilers while
1171 running configure, to aid debugging if configure makes a mistake.
1173 It was created by $as_me, which was
1174 generated by GNU Autoconf 2.59. Invocation command line was
1176 $ $0 $@
1178 _ACEOF
1180 cat <<_ASUNAME
1181 ## --------- ##
1182 ## Platform. ##
1183 ## --------- ##
1185 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1186 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1187 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1188 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1189 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1191 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1192 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1194 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1195 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1196 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1197 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1198 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1199 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1200 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1202 _ASUNAME
1204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1205 for as_dir in $PATH
1207 IFS=$as_save_IFS
1208 test -z "$as_dir" && as_dir=.
1209 echo "PATH: $as_dir"
1210 done
1212 } >&5
1214 cat >&5 <<_ACEOF
1217 ## ----------- ##
1218 ## Core tests. ##
1219 ## ----------- ##
1221 _ACEOF
1224 # Keep a trace of the command line.
1225 # Strip out --no-create and --no-recursion so they do not pile up.
1226 # Strip out --silent because we don't want to record it for future runs.
1227 # Also quote any args containing shell meta-characters.
1228 # Make two passes to allow for proper duplicate-argument suppression.
1229 ac_configure_args=
1230 ac_configure_args0=
1231 ac_configure_args1=
1232 ac_sep=
1233 ac_must_keep_next=false
1234 for ac_pass in 1 2
1236 for ac_arg
1238 case $ac_arg in
1239 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241 | -silent | --silent | --silen | --sile | --sil)
1242 continue ;;
1243 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1244 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1245 esac
1246 case $ac_pass in
1247 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1249 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1250 if test $ac_must_keep_next = true; then
1251 ac_must_keep_next=false # Got value, back to normal.
1252 else
1253 case $ac_arg in
1254 *=* | --config-cache | -C | -disable-* | --disable-* \
1255 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1256 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1257 | -with-* | --with-* | -without-* | --without-* | --x)
1258 case "$ac_configure_args0 " in
1259 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1260 esac
1262 -* ) ac_must_keep_next=true ;;
1263 esac
1265 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1266 # Get rid of the leading space.
1267 ac_sep=" "
1269 esac
1270 done
1271 done
1272 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1273 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1275 # When interrupted or exit'd, cleanup temporary files, and complete
1276 # config.log. We remove comments because anyway the quotes in there
1277 # would cause problems or look ugly.
1278 # WARNING: Be sure not to use single quotes in there, as some shells,
1279 # such as our DU 5.0 friend, will then `close' the trap.
1280 trap 'exit_status=$?
1281 # Save into config.log some information that might help in debugging.
1283 echo
1285 cat <<\_ASBOX
1286 ## ---------------- ##
1287 ## Cache variables. ##
1288 ## ---------------- ##
1289 _ASBOX
1290 echo
1291 # The following way of writing the cache mishandles newlines in values,
1293 (set) 2>&1 |
1294 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1295 *ac_space=\ *)
1296 sed -n \
1297 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1298 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1301 sed -n \
1302 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1304 esac;
1306 echo
1308 cat <<\_ASBOX
1309 ## ----------------- ##
1310 ## Output variables. ##
1311 ## ----------------- ##
1312 _ASBOX
1313 echo
1314 for ac_var in $ac_subst_vars
1316 eval ac_val=$`echo $ac_var`
1317 echo "$ac_var='"'"'$ac_val'"'"'"
1318 done | sort
1319 echo
1321 if test -n "$ac_subst_files"; then
1322 cat <<\_ASBOX
1323 ## ------------- ##
1324 ## Output files. ##
1325 ## ------------- ##
1326 _ASBOX
1327 echo
1328 for ac_var in $ac_subst_files
1330 eval ac_val=$`echo $ac_var`
1331 echo "$ac_var='"'"'$ac_val'"'"'"
1332 done | sort
1333 echo
1336 if test -s confdefs.h; then
1337 cat <<\_ASBOX
1338 ## ----------- ##
1339 ## confdefs.h. ##
1340 ## ----------- ##
1341 _ASBOX
1342 echo
1343 sed "/^$/d" confdefs.h | sort
1344 echo
1346 test "$ac_signal" != 0 &&
1347 echo "$as_me: caught signal $ac_signal"
1348 echo "$as_me: exit $exit_status"
1349 } >&5
1350 rm -f core *.core &&
1351 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1352 exit $exit_status
1354 for ac_signal in 1 2 13 15; do
1355 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1356 done
1357 ac_signal=0
1359 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1360 rm -rf conftest* confdefs.h
1361 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1362 echo >confdefs.h
1364 # Predefined preprocessor variables.
1366 cat >>confdefs.h <<_ACEOF
1367 #define PACKAGE_NAME "$PACKAGE_NAME"
1368 _ACEOF
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1373 _ACEOF
1376 cat >>confdefs.h <<_ACEOF
1377 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1378 _ACEOF
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_STRING "$PACKAGE_STRING"
1383 _ACEOF
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1388 _ACEOF
1391 # Let the site file select an alternate cache file if it wants to.
1392 # Prefer explicitly selected file to automatically selected ones.
1393 if test -z "$CONFIG_SITE"; then
1394 if test "x$prefix" != xNONE; then
1395 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1396 else
1397 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1400 for ac_site_file in $CONFIG_SITE; do
1401 if test -r "$ac_site_file"; then
1402 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1403 echo "$as_me: loading site script $ac_site_file" >&6;}
1404 sed 's/^/| /' "$ac_site_file" >&5
1405 . "$ac_site_file"
1407 done
1409 if test -r "$cache_file"; then
1410 # Some versions of bash will fail to source /dev/null (special
1411 # files actually), so we avoid doing that.
1412 if test -f "$cache_file"; then
1413 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1414 echo "$as_me: loading cache $cache_file" >&6;}
1415 case $cache_file in
1416 [\\/]* | ?:[\\/]* ) . $cache_file;;
1417 *) . ./$cache_file;;
1418 esac
1420 else
1421 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1422 echo "$as_me: creating cache $cache_file" >&6;}
1423 >$cache_file
1426 # Check that the precious variables saved in the cache have kept the same
1427 # value.
1428 ac_cache_corrupted=false
1429 for ac_var in `(set) 2>&1 |
1430 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1431 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1432 eval ac_new_set=\$ac_env_${ac_var}_set
1433 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1434 eval ac_new_val="\$ac_env_${ac_var}_value"
1435 case $ac_old_set,$ac_new_set in
1436 set,)
1437 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1438 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1439 ac_cache_corrupted=: ;;
1440 ,set)
1441 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1442 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1443 ac_cache_corrupted=: ;;
1444 ,);;
1446 if test "x$ac_old_val" != "x$ac_new_val"; then
1447 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1448 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1449 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1450 echo "$as_me: former value: $ac_old_val" >&2;}
1451 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1452 echo "$as_me: current value: $ac_new_val" >&2;}
1453 ac_cache_corrupted=:
1454 fi;;
1455 esac
1456 # Pass precious variables to config.status.
1457 if test "$ac_new_set" = set; then
1458 case $ac_new_val in
1459 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1460 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1461 *) ac_arg=$ac_var=$ac_new_val ;;
1462 esac
1463 case " $ac_configure_args " in
1464 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1465 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1466 esac
1468 done
1469 if $ac_cache_corrupted; then
1470 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1471 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1472 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1473 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1474 { (exit 1); exit 1; }; }
1477 ac_ext=c
1478 ac_cpp='$CPP $CPPFLAGS'
1479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1501 ac_aux_dir=
1502 for ac_dir in ../../../build-aux $srcdir/../../../build-aux; do
1503 if test -f $ac_dir/install-sh; then
1504 ac_aux_dir=$ac_dir
1505 ac_install_sh="$ac_aux_dir/install-sh -c"
1506 break
1507 elif test -f $ac_dir/install.sh; then
1508 ac_aux_dir=$ac_dir
1509 ac_install_sh="$ac_aux_dir/install.sh -c"
1510 break
1511 elif test -f $ac_dir/shtool; then
1512 ac_aux_dir=$ac_dir
1513 ac_install_sh="$ac_aux_dir/shtool install -c"
1514 break
1516 done
1517 if test -z "$ac_aux_dir"; then
1518 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../build-aux $srcdir/../../../build-aux" >&5
1519 echo "$as_me: error: cannot find install-sh or install.sh in ../../../build-aux $srcdir/../../../build-aux" >&2;}
1520 { (exit 1); exit 1; }; }
1522 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1523 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1524 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1526 am__api_version="1.9"
1527 # Find a good install program. We prefer a C program (faster),
1528 # so one script is as good as another. But avoid the broken or
1529 # incompatible versions:
1530 # SysV /etc/install, /usr/sbin/install
1531 # SunOS /usr/etc/install
1532 # IRIX /sbin/install
1533 # AIX /bin/install
1534 # AmigaOS /C/install, which installs bootblocks on floppy discs
1535 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1536 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1537 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1538 # OS/2's system install, which has a completely different semantic
1539 # ./install, which can be erroneously created by make from ./install.sh.
1540 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1541 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1542 if test -z "$INSTALL"; then
1543 if test "${ac_cv_path_install+set}" = set; then
1544 echo $ECHO_N "(cached) $ECHO_C" >&6
1545 else
1546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1547 for as_dir in $PATH
1549 IFS=$as_save_IFS
1550 test -z "$as_dir" && as_dir=.
1551 # Account for people who put trailing slashes in PATH elements.
1552 case $as_dir/ in
1553 ./ | .// | /cC/* | \
1554 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1555 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1556 /usr/ucb/* ) ;;
1558 # OSF1 and SCO ODT 3.0 have their own names for install.
1559 # Don't use installbsd from OSF since it installs stuff as root
1560 # by default.
1561 for ac_prog in ginstall scoinst install; do
1562 for ac_exec_ext in '' $ac_executable_extensions; do
1563 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1564 if test $ac_prog = install &&
1565 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1566 # AIX install. It has an incompatible calling convention.
1568 elif test $ac_prog = install &&
1569 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1570 # program-specific install script used by HP pwplus--don't use.
1572 else
1573 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1574 break 3
1577 done
1578 done
1580 esac
1581 done
1585 if test "${ac_cv_path_install+set}" = set; then
1586 INSTALL=$ac_cv_path_install
1587 else
1588 # As a last resort, use the slow shell script. We don't cache a
1589 # path for INSTALL within a source directory, because that will
1590 # break other packages using the cache if that directory is
1591 # removed, or if the path is relative.
1592 INSTALL=$ac_install_sh
1595 echo "$as_me:$LINENO: result: $INSTALL" >&5
1596 echo "${ECHO_T}$INSTALL" >&6
1598 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1599 # It thinks the first close brace ends the variable substitution.
1600 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1602 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1604 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1606 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1607 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1608 # Just in case
1609 sleep 1
1610 echo timestamp > conftest.file
1611 # Do `set' in a subshell so we don't clobber the current shell's
1612 # arguments. Must try -L first in case configure is actually a
1613 # symlink; some systems play weird games with the mod time of symlinks
1614 # (eg FreeBSD returns the mod time of the symlink's containing
1615 # directory).
1616 if (
1617 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1618 if test "$*" = "X"; then
1619 # -L didn't work.
1620 set X `ls -t $srcdir/configure conftest.file`
1622 rm -f conftest.file
1623 if test "$*" != "X $srcdir/configure conftest.file" \
1624 && test "$*" != "X conftest.file $srcdir/configure"; then
1626 # If neither matched, then we have a broken ls. This can happen
1627 # if, for instance, CONFIG_SHELL is bash and it inherits a
1628 # broken ls alias from the environment. This has actually
1629 # happened. Such a system could not be considered "sane".
1630 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1631 alias in your environment" >&5
1632 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1633 alias in your environment" >&2;}
1634 { (exit 1); exit 1; }; }
1637 test "$2" = conftest.file
1639 then
1640 # Ok.
1642 else
1643 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1644 Check your system clock" >&5
1645 echo "$as_me: error: newly created file is older than distributed files!
1646 Check your system clock" >&2;}
1647 { (exit 1); exit 1; }; }
1649 echo "$as_me:$LINENO: result: yes" >&5
1650 echo "${ECHO_T}yes" >&6
1651 test "$program_prefix" != NONE &&
1652 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1653 # Use a double $ so make ignores it.
1654 test "$program_suffix" != NONE &&
1655 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1656 # Double any \ or $. echo might interpret backslashes.
1657 # By default was `s,x,x', remove it if useless.
1658 cat <<\_ACEOF >conftest.sed
1659 s/[\\$]/&&/g;s/;s,x,x,$//
1660 _ACEOF
1661 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1662 rm conftest.sed
1664 # expand $ac_aux_dir to an absolute path
1665 am_aux_dir=`cd $ac_aux_dir && pwd`
1667 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1668 # Use eval to expand $SHELL
1669 if eval "$MISSING --run true"; then
1670 am_missing_run="$MISSING --run "
1671 else
1672 am_missing_run=
1673 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1674 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1677 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1678 # We used to keeping the `.' as first argument, in order to
1679 # allow $(mkdir_p) to be used without argument. As in
1680 # $(mkdir_p) $(somedir)
1681 # where $(somedir) is conditionally defined. However this is wrong
1682 # for two reasons:
1683 # 1. if the package is installed by a user who cannot write `.'
1684 # make install will fail,
1685 # 2. the above comment should most certainly read
1686 # $(mkdir_p) $(DESTDIR)$(somedir)
1687 # so it does not work when $(somedir) is undefined and
1688 # $(DESTDIR) is not.
1689 # To support the latter case, we have to write
1690 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1691 # so the `.' trick is pointless.
1692 mkdir_p='mkdir -p --'
1693 else
1694 # On NextStep and OpenStep, the `mkdir' command does not
1695 # recognize any option. It will interpret all options as
1696 # directories to create, and then abort because `.' already
1697 # exists.
1698 for d in ./-p ./--version;
1700 test -d $d && rmdir $d
1701 done
1702 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1703 if test -f "$ac_aux_dir/mkinstalldirs"; then
1704 mkdir_p='$(mkinstalldirs)'
1705 else
1706 mkdir_p='$(install_sh) -d'
1710 for ac_prog in gawk mawk nawk awk
1712 # Extract the first word of "$ac_prog", so it can be a program name with args.
1713 set dummy $ac_prog; ac_word=$2
1714 echo "$as_me:$LINENO: checking for $ac_word" >&5
1715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1716 if test "${ac_cv_prog_AWK+set}" = set; then
1717 echo $ECHO_N "(cached) $ECHO_C" >&6
1718 else
1719 if test -n "$AWK"; then
1720 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1721 else
1722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1723 for as_dir in $PATH
1725 IFS=$as_save_IFS
1726 test -z "$as_dir" && as_dir=.
1727 for ac_exec_ext in '' $ac_executable_extensions; do
1728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1729 ac_cv_prog_AWK="$ac_prog"
1730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1731 break 2
1733 done
1734 done
1738 AWK=$ac_cv_prog_AWK
1739 if test -n "$AWK"; then
1740 echo "$as_me:$LINENO: result: $AWK" >&5
1741 echo "${ECHO_T}$AWK" >&6
1742 else
1743 echo "$as_me:$LINENO: result: no" >&5
1744 echo "${ECHO_T}no" >&6
1747 test -n "$AWK" && break
1748 done
1750 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1751 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1752 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1753 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1754 echo $ECHO_N "(cached) $ECHO_C" >&6
1755 else
1756 cat >conftest.make <<\_ACEOF
1757 all:
1758 @echo 'ac_maketemp="$(MAKE)"'
1759 _ACEOF
1760 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1761 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1762 if test -n "$ac_maketemp"; then
1763 eval ac_cv_prog_make_${ac_make}_set=yes
1764 else
1765 eval ac_cv_prog_make_${ac_make}_set=no
1767 rm -f conftest.make
1769 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1770 echo "$as_me:$LINENO: result: yes" >&5
1771 echo "${ECHO_T}yes" >&6
1772 SET_MAKE=
1773 else
1774 echo "$as_me:$LINENO: result: no" >&5
1775 echo "${ECHO_T}no" >&6
1776 SET_MAKE="MAKE=${MAKE-make}"
1779 rm -rf .tst 2>/dev/null
1780 mkdir .tst 2>/dev/null
1781 if test -d .tst; then
1782 am__leading_dot=.
1783 else
1784 am__leading_dot=_
1786 rmdir .tst 2>/dev/null
1788 # test to see if srcdir already configured
1789 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1790 test -f $srcdir/config.status; then
1791 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1792 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1793 { (exit 1); exit 1; }; }
1796 # test whether we have cygpath
1797 if test -z "$CYGPATH_W"; then
1798 if (cygpath --version) >/dev/null 2>/dev/null; then
1799 CYGPATH_W='cygpath -w'
1800 else
1801 CYGPATH_W=echo
1806 # Define the identity of the package.
1807 PACKAGE=gettext_rpathy
1808 VERSION=0
1811 cat >>confdefs.h <<_ACEOF
1812 #define PACKAGE "$PACKAGE"
1813 _ACEOF
1816 cat >>confdefs.h <<_ACEOF
1817 #define VERSION "$VERSION"
1818 _ACEOF
1820 # Some tools Automake needs.
1822 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1825 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1828 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1831 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1834 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1836 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1838 # Installed binaries are usually stripped using `strip' when the user
1839 # run `make install-strip'. However `strip' might not be the right
1840 # tool to use in cross-compilation environments, therefore Automake
1841 # will honor the `STRIP' environment variable to overrule this program.
1842 if test "$cross_compiling" != no; then
1843 if test -n "$ac_tool_prefix"; then
1844 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1845 set dummy ${ac_tool_prefix}strip; ac_word=$2
1846 echo "$as_me:$LINENO: checking for $ac_word" >&5
1847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1848 if test "${ac_cv_prog_STRIP+set}" = set; then
1849 echo $ECHO_N "(cached) $ECHO_C" >&6
1850 else
1851 if test -n "$STRIP"; then
1852 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1853 else
1854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1855 for as_dir in $PATH
1857 IFS=$as_save_IFS
1858 test -z "$as_dir" && as_dir=.
1859 for ac_exec_ext in '' $ac_executable_extensions; do
1860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1861 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1863 break 2
1865 done
1866 done
1870 STRIP=$ac_cv_prog_STRIP
1871 if test -n "$STRIP"; then
1872 echo "$as_me:$LINENO: result: $STRIP" >&5
1873 echo "${ECHO_T}$STRIP" >&6
1874 else
1875 echo "$as_me:$LINENO: result: no" >&5
1876 echo "${ECHO_T}no" >&6
1880 if test -z "$ac_cv_prog_STRIP"; then
1881 ac_ct_STRIP=$STRIP
1882 # Extract the first word of "strip", so it can be a program name with args.
1883 set dummy strip; ac_word=$2
1884 echo "$as_me:$LINENO: checking for $ac_word" >&5
1885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1886 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1887 echo $ECHO_N "(cached) $ECHO_C" >&6
1888 else
1889 if test -n "$ac_ct_STRIP"; then
1890 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1891 else
1892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893 for as_dir in $PATH
1895 IFS=$as_save_IFS
1896 test -z "$as_dir" && as_dir=.
1897 for ac_exec_ext in '' $ac_executable_extensions; do
1898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899 ac_cv_prog_ac_ct_STRIP="strip"
1900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1901 break 2
1903 done
1904 done
1906 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1909 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1910 if test -n "$ac_ct_STRIP"; then
1911 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1912 echo "${ECHO_T}$ac_ct_STRIP" >&6
1913 else
1914 echo "$as_me:$LINENO: result: no" >&5
1915 echo "${ECHO_T}no" >&6
1918 STRIP=$ac_ct_STRIP
1919 else
1920 STRIP="$ac_cv_prog_STRIP"
1924 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1926 # We need awk for the "check" target. The system "awk" is bad on
1927 # some platforms.
1928 # Always define AMTAR for backward compatibility.
1930 AMTAR=${AMTAR-"${am_missing_run}tar"}
1932 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1938 ac_ext=c
1939 ac_cpp='$CPP $CPPFLAGS'
1940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1943 if test -n "$ac_tool_prefix"; then
1944 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1945 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1946 echo "$as_me:$LINENO: checking for $ac_word" >&5
1947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1948 if test "${ac_cv_prog_CC+set}" = set; then
1949 echo $ECHO_N "(cached) $ECHO_C" >&6
1950 else
1951 if test -n "$CC"; then
1952 ac_cv_prog_CC="$CC" # Let the user override the test.
1953 else
1954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1955 for as_dir in $PATH
1957 IFS=$as_save_IFS
1958 test -z "$as_dir" && as_dir=.
1959 for ac_exec_ext in '' $ac_executable_extensions; do
1960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1961 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1963 break 2
1965 done
1966 done
1970 CC=$ac_cv_prog_CC
1971 if test -n "$CC"; then
1972 echo "$as_me:$LINENO: result: $CC" >&5
1973 echo "${ECHO_T}$CC" >&6
1974 else
1975 echo "$as_me:$LINENO: result: no" >&5
1976 echo "${ECHO_T}no" >&6
1980 if test -z "$ac_cv_prog_CC"; then
1981 ac_ct_CC=$CC
1982 # Extract the first word of "gcc", so it can be a program name with args.
1983 set dummy gcc; ac_word=$2
1984 echo "$as_me:$LINENO: checking for $ac_word" >&5
1985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1986 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1987 echo $ECHO_N "(cached) $ECHO_C" >&6
1988 else
1989 if test -n "$ac_ct_CC"; then
1990 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1991 else
1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993 for as_dir in $PATH
1995 IFS=$as_save_IFS
1996 test -z "$as_dir" && as_dir=.
1997 for ac_exec_ext in '' $ac_executable_extensions; do
1998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1999 ac_cv_prog_ac_ct_CC="gcc"
2000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2001 break 2
2003 done
2004 done
2008 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2009 if test -n "$ac_ct_CC"; then
2010 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2011 echo "${ECHO_T}$ac_ct_CC" >&6
2012 else
2013 echo "$as_me:$LINENO: result: no" >&5
2014 echo "${ECHO_T}no" >&6
2017 CC=$ac_ct_CC
2018 else
2019 CC="$ac_cv_prog_CC"
2022 if test -z "$CC"; then
2023 if test -n "$ac_tool_prefix"; then
2024 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2025 set dummy ${ac_tool_prefix}cc; ac_word=$2
2026 echo "$as_me:$LINENO: checking for $ac_word" >&5
2027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2028 if test "${ac_cv_prog_CC+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 else
2031 if test -n "$CC"; then
2032 ac_cv_prog_CC="$CC" # Let the user override the test.
2033 else
2034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2035 for as_dir in $PATH
2037 IFS=$as_save_IFS
2038 test -z "$as_dir" && as_dir=.
2039 for ac_exec_ext in '' $ac_executable_extensions; do
2040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2041 ac_cv_prog_CC="${ac_tool_prefix}cc"
2042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2043 break 2
2045 done
2046 done
2050 CC=$ac_cv_prog_CC
2051 if test -n "$CC"; then
2052 echo "$as_me:$LINENO: result: $CC" >&5
2053 echo "${ECHO_T}$CC" >&6
2054 else
2055 echo "$as_me:$LINENO: result: no" >&5
2056 echo "${ECHO_T}no" >&6
2060 if test -z "$ac_cv_prog_CC"; then
2061 ac_ct_CC=$CC
2062 # Extract the first word of "cc", so it can be a program name with args.
2063 set dummy cc; ac_word=$2
2064 echo "$as_me:$LINENO: checking for $ac_word" >&5
2065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2066 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2067 echo $ECHO_N "(cached) $ECHO_C" >&6
2068 else
2069 if test -n "$ac_ct_CC"; then
2070 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2071 else
2072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2073 for as_dir in $PATH
2075 IFS=$as_save_IFS
2076 test -z "$as_dir" && as_dir=.
2077 for ac_exec_ext in '' $ac_executable_extensions; do
2078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2079 ac_cv_prog_ac_ct_CC="cc"
2080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2081 break 2
2083 done
2084 done
2088 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2089 if test -n "$ac_ct_CC"; then
2090 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2091 echo "${ECHO_T}$ac_ct_CC" >&6
2092 else
2093 echo "$as_me:$LINENO: result: no" >&5
2094 echo "${ECHO_T}no" >&6
2097 CC=$ac_ct_CC
2098 else
2099 CC="$ac_cv_prog_CC"
2103 if test -z "$CC"; then
2104 # Extract the first word of "cc", so it can be a program name with args.
2105 set dummy cc; ac_word=$2
2106 echo "$as_me:$LINENO: checking for $ac_word" >&5
2107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2108 if test "${ac_cv_prog_CC+set}" = set; then
2109 echo $ECHO_N "(cached) $ECHO_C" >&6
2110 else
2111 if test -n "$CC"; then
2112 ac_cv_prog_CC="$CC" # Let the user override the test.
2113 else
2114 ac_prog_rejected=no
2115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2116 for as_dir in $PATH
2118 IFS=$as_save_IFS
2119 test -z "$as_dir" && as_dir=.
2120 for ac_exec_ext in '' $ac_executable_extensions; do
2121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2122 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2123 ac_prog_rejected=yes
2124 continue
2126 ac_cv_prog_CC="cc"
2127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2128 break 2
2130 done
2131 done
2133 if test $ac_prog_rejected = yes; then
2134 # We found a bogon in the path, so make sure we never use it.
2135 set dummy $ac_cv_prog_CC
2136 shift
2137 if test $# != 0; then
2138 # We chose a different compiler from the bogus one.
2139 # However, it has the same basename, so the bogon will be chosen
2140 # first if we set CC to just the basename; use the full file name.
2141 shift
2142 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2147 CC=$ac_cv_prog_CC
2148 if test -n "$CC"; then
2149 echo "$as_me:$LINENO: result: $CC" >&5
2150 echo "${ECHO_T}$CC" >&6
2151 else
2152 echo "$as_me:$LINENO: result: no" >&5
2153 echo "${ECHO_T}no" >&6
2157 if test -z "$CC"; then
2158 if test -n "$ac_tool_prefix"; then
2159 for ac_prog in cl
2161 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2162 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2163 echo "$as_me:$LINENO: checking for $ac_word" >&5
2164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2165 if test "${ac_cv_prog_CC+set}" = set; then
2166 echo $ECHO_N "(cached) $ECHO_C" >&6
2167 else
2168 if test -n "$CC"; then
2169 ac_cv_prog_CC="$CC" # Let the user override the test.
2170 else
2171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2172 for as_dir in $PATH
2174 IFS=$as_save_IFS
2175 test -z "$as_dir" && as_dir=.
2176 for ac_exec_ext in '' $ac_executable_extensions; do
2177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2178 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2180 break 2
2182 done
2183 done
2187 CC=$ac_cv_prog_CC
2188 if test -n "$CC"; then
2189 echo "$as_me:$LINENO: result: $CC" >&5
2190 echo "${ECHO_T}$CC" >&6
2191 else
2192 echo "$as_me:$LINENO: result: no" >&5
2193 echo "${ECHO_T}no" >&6
2196 test -n "$CC" && break
2197 done
2199 if test -z "$CC"; then
2200 ac_ct_CC=$CC
2201 for ac_prog in cl
2203 # Extract the first word of "$ac_prog", so it can be a program name with args.
2204 set dummy $ac_prog; ac_word=$2
2205 echo "$as_me:$LINENO: checking for $ac_word" >&5
2206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2207 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2208 echo $ECHO_N "(cached) $ECHO_C" >&6
2209 else
2210 if test -n "$ac_ct_CC"; then
2211 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2212 else
2213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2214 for as_dir in $PATH
2216 IFS=$as_save_IFS
2217 test -z "$as_dir" && as_dir=.
2218 for ac_exec_ext in '' $ac_executable_extensions; do
2219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2220 ac_cv_prog_ac_ct_CC="$ac_prog"
2221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2222 break 2
2224 done
2225 done
2229 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2230 if test -n "$ac_ct_CC"; then
2231 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2232 echo "${ECHO_T}$ac_ct_CC" >&6
2233 else
2234 echo "$as_me:$LINENO: result: no" >&5
2235 echo "${ECHO_T}no" >&6
2238 test -n "$ac_ct_CC" && break
2239 done
2241 CC=$ac_ct_CC
2247 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2248 See \`config.log' for more details." >&5
2249 echo "$as_me: error: no acceptable C compiler found in \$PATH
2250 See \`config.log' for more details." >&2;}
2251 { (exit 1); exit 1; }; }
2253 # Provide some information about the compiler.
2254 echo "$as_me:$LINENO:" \
2255 "checking for C compiler version" >&5
2256 ac_compiler=`set X $ac_compile; echo $2`
2257 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2258 (eval $ac_compiler --version </dev/null >&5) 2>&5
2259 ac_status=$?
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }
2262 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2263 (eval $ac_compiler -v </dev/null >&5) 2>&5
2264 ac_status=$?
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }
2267 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2268 (eval $ac_compiler -V </dev/null >&5) 2>&5
2269 ac_status=$?
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }
2273 cat >conftest.$ac_ext <<_ACEOF
2274 /* confdefs.h. */
2275 _ACEOF
2276 cat confdefs.h >>conftest.$ac_ext
2277 cat >>conftest.$ac_ext <<_ACEOF
2278 /* end confdefs.h. */
2281 main ()
2285 return 0;
2287 _ACEOF
2288 ac_clean_files_save=$ac_clean_files
2289 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2290 # Try to create an executable without -o first, disregard a.out.
2291 # It will help us diagnose broken compilers, and finding out an intuition
2292 # of exeext.
2293 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2294 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2295 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2296 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2297 (eval $ac_link_default) 2>&5
2298 ac_status=$?
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); }; then
2301 # Find the output, starting from the most likely. This scheme is
2302 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2303 # resort.
2305 # Be careful to initialize this variable, since it used to be cached.
2306 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2307 ac_cv_exeext=
2308 # b.out is created by i960 compilers.
2309 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2311 test -f "$ac_file" || continue
2312 case $ac_file in
2313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2315 conftest.$ac_ext )
2316 # This is the source file.
2318 [ab].out )
2319 # We found the default executable, but exeext='' is most
2320 # certainly right.
2321 break;;
2322 *.* )
2323 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2324 # FIXME: I believe we export ac_cv_exeext for Libtool,
2325 # but it would be cool to find out if it's true. Does anybody
2326 # maintain Libtool? --akim.
2327 export ac_cv_exeext
2328 break;;
2330 break;;
2331 esac
2332 done
2333 else
2334 echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.$ac_ext >&5
2337 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2338 See \`config.log' for more details." >&5
2339 echo "$as_me: error: C compiler cannot create executables
2340 See \`config.log' for more details." >&2;}
2341 { (exit 77); exit 77; }; }
2344 ac_exeext=$ac_cv_exeext
2345 echo "$as_me:$LINENO: result: $ac_file" >&5
2346 echo "${ECHO_T}$ac_file" >&6
2348 # Check the compiler produces executables we can run. If not, either
2349 # the compiler is broken, or we cross compile.
2350 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2351 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2352 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2353 # If not cross compiling, check that we can run a simple program.
2354 if test "$cross_compiling" != yes; then
2355 if { ac_try='./$ac_file'
2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357 (eval $ac_try) 2>&5
2358 ac_status=$?
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; }; then
2361 cross_compiling=no
2362 else
2363 if test "$cross_compiling" = maybe; then
2364 cross_compiling=yes
2365 else
2366 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2367 If you meant to cross compile, use \`--host'.
2368 See \`config.log' for more details." >&5
2369 echo "$as_me: error: cannot run C compiled programs.
2370 If you meant to cross compile, use \`--host'.
2371 See \`config.log' for more details." >&2;}
2372 { (exit 1); exit 1; }; }
2376 echo "$as_me:$LINENO: result: yes" >&5
2377 echo "${ECHO_T}yes" >&6
2379 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2380 ac_clean_files=$ac_clean_files_save
2381 # Check the compiler produces executables we can run. If not, either
2382 # the compiler is broken, or we cross compile.
2383 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2384 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2385 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2386 echo "${ECHO_T}$cross_compiling" >&6
2388 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2389 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2391 (eval $ac_link) 2>&5
2392 ac_status=$?
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; then
2395 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2396 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2397 # work properly (i.e., refer to `conftest.exe'), while it won't with
2398 # `rm'.
2399 for ac_file in conftest.exe conftest conftest.*; do
2400 test -f "$ac_file" || continue
2401 case $ac_file in
2402 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2403 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2404 export ac_cv_exeext
2405 break;;
2406 * ) break;;
2407 esac
2408 done
2409 else
2410 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2411 See \`config.log' for more details." >&5
2412 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2413 See \`config.log' for more details." >&2;}
2414 { (exit 1); exit 1; }; }
2417 rm -f conftest$ac_cv_exeext
2418 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2419 echo "${ECHO_T}$ac_cv_exeext" >&6
2421 rm -f conftest.$ac_ext
2422 EXEEXT=$ac_cv_exeext
2423 ac_exeext=$EXEEXT
2424 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2425 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2426 if test "${ac_cv_objext+set}" = set; then
2427 echo $ECHO_N "(cached) $ECHO_C" >&6
2428 else
2429 cat >conftest.$ac_ext <<_ACEOF
2430 /* confdefs.h. */
2431 _ACEOF
2432 cat confdefs.h >>conftest.$ac_ext
2433 cat >>conftest.$ac_ext <<_ACEOF
2434 /* end confdefs.h. */
2437 main ()
2441 return 0;
2443 _ACEOF
2444 rm -f conftest.o conftest.obj
2445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2446 (eval $ac_compile) 2>&5
2447 ac_status=$?
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; then
2450 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2451 case $ac_file in
2452 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2453 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2454 break;;
2455 esac
2456 done
2457 else
2458 echo "$as_me: failed program was:" >&5
2459 sed 's/^/| /' conftest.$ac_ext >&5
2461 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2462 See \`config.log' for more details." >&5
2463 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2464 See \`config.log' for more details." >&2;}
2465 { (exit 1); exit 1; }; }
2468 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2470 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2471 echo "${ECHO_T}$ac_cv_objext" >&6
2472 OBJEXT=$ac_cv_objext
2473 ac_objext=$OBJEXT
2474 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2475 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2476 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 else
2479 cat >conftest.$ac_ext <<_ACEOF
2480 /* confdefs.h. */
2481 _ACEOF
2482 cat confdefs.h >>conftest.$ac_ext
2483 cat >>conftest.$ac_ext <<_ACEOF
2484 /* end confdefs.h. */
2487 main ()
2489 #ifndef __GNUC__
2490 choke me
2491 #endif
2494 return 0;
2496 _ACEOF
2497 rm -f conftest.$ac_objext
2498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2499 (eval $ac_compile) 2>conftest.er1
2500 ac_status=$?
2501 grep -v '^ *+' conftest.er1 >conftest.err
2502 rm -f conftest.er1
2503 cat conftest.err >&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); } &&
2506 { ac_try='test -z "$ac_c_werror_flag"
2507 || test ! -s conftest.err'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509 (eval $ac_try) 2>&5
2510 ac_status=$?
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; } &&
2513 { ac_try='test -s conftest.$ac_objext'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 (eval $ac_try) 2>&5
2516 ac_status=$?
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2519 ac_compiler_gnu=yes
2520 else
2521 echo "$as_me: failed program was:" >&5
2522 sed 's/^/| /' conftest.$ac_ext >&5
2524 ac_compiler_gnu=no
2526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2527 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2530 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2531 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2532 GCC=`test $ac_compiler_gnu = yes && echo yes`
2533 ac_test_CFLAGS=${CFLAGS+set}
2534 ac_save_CFLAGS=$CFLAGS
2535 CFLAGS="-g"
2536 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2537 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2538 if test "${ac_cv_prog_cc_g+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2540 else
2541 cat >conftest.$ac_ext <<_ACEOF
2542 /* confdefs.h. */
2543 _ACEOF
2544 cat confdefs.h >>conftest.$ac_ext
2545 cat >>conftest.$ac_ext <<_ACEOF
2546 /* end confdefs.h. */
2549 main ()
2553 return 0;
2555 _ACEOF
2556 rm -f conftest.$ac_objext
2557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2558 (eval $ac_compile) 2>conftest.er1
2559 ac_status=$?
2560 grep -v '^ *+' conftest.er1 >conftest.err
2561 rm -f conftest.er1
2562 cat conftest.err >&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); } &&
2565 { ac_try='test -z "$ac_c_werror_flag"
2566 || test ! -s conftest.err'
2567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568 (eval $ac_try) 2>&5
2569 ac_status=$?
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; } &&
2572 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2578 ac_cv_prog_cc_g=yes
2579 else
2580 echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2583 ac_cv_prog_cc_g=no
2585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2587 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2588 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2589 if test "$ac_test_CFLAGS" = set; then
2590 CFLAGS=$ac_save_CFLAGS
2591 elif test $ac_cv_prog_cc_g = yes; then
2592 if test "$GCC" = yes; then
2593 CFLAGS="-g -O2"
2594 else
2595 CFLAGS="-g"
2597 else
2598 if test "$GCC" = yes; then
2599 CFLAGS="-O2"
2600 else
2601 CFLAGS=
2604 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2605 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2606 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2607 echo $ECHO_N "(cached) $ECHO_C" >&6
2608 else
2609 ac_cv_prog_cc_stdc=no
2610 ac_save_CC=$CC
2611 cat >conftest.$ac_ext <<_ACEOF
2612 /* confdefs.h. */
2613 _ACEOF
2614 cat confdefs.h >>conftest.$ac_ext
2615 cat >>conftest.$ac_ext <<_ACEOF
2616 /* end confdefs.h. */
2617 #include <stdarg.h>
2618 #include <stdio.h>
2619 #include <sys/types.h>
2620 #include <sys/stat.h>
2621 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2622 struct buf { int x; };
2623 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2624 static char *e (p, i)
2625 char **p;
2626 int i;
2628 return p[i];
2630 static char *f (char * (*g) (char **, int), char **p, ...)
2632 char *s;
2633 va_list v;
2634 va_start (v,p);
2635 s = g (p, va_arg (v,int));
2636 va_end (v);
2637 return s;
2640 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2641 function prototypes and stuff, but not '\xHH' hex character constants.
2642 These don't provoke an error unfortunately, instead are silently treated
2643 as 'x'. The following induces an error, until -std1 is added to get
2644 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2645 array size at least. It's necessary to write '\x00'==0 to get something
2646 that's true only with -std1. */
2647 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2649 int test (int i, double x);
2650 struct s1 {int (*f) (int a);};
2651 struct s2 {int (*f) (double a);};
2652 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2653 int argc;
2654 char **argv;
2656 main ()
2658 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2660 return 0;
2662 _ACEOF
2663 # Don't try gcc -ansi; that turns off useful extensions and
2664 # breaks some systems' header files.
2665 # AIX -qlanglvl=ansi
2666 # Ultrix and OSF/1 -std1
2667 # HP-UX 10.20 and later -Ae
2668 # HP-UX older versions -Aa -D_HPUX_SOURCE
2669 # SVR4 -Xc -D__EXTENSIONS__
2670 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2672 CC="$ac_save_CC $ac_arg"
2673 rm -f conftest.$ac_objext
2674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2675 (eval $ac_compile) 2>conftest.er1
2676 ac_status=$?
2677 grep -v '^ *+' conftest.er1 >conftest.err
2678 rm -f conftest.er1
2679 cat conftest.err >&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); } &&
2682 { ac_try='test -z "$ac_c_werror_flag"
2683 || test ! -s conftest.err'
2684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2685 (eval $ac_try) 2>&5
2686 ac_status=$?
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); }; } &&
2689 { ac_try='test -s conftest.$ac_objext'
2690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2691 (eval $ac_try) 2>&5
2692 ac_status=$?
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }; }; then
2695 ac_cv_prog_cc_stdc=$ac_arg
2696 break
2697 else
2698 echo "$as_me: failed program was:" >&5
2699 sed 's/^/| /' conftest.$ac_ext >&5
2702 rm -f conftest.err conftest.$ac_objext
2703 done
2704 rm -f conftest.$ac_ext conftest.$ac_objext
2705 CC=$ac_save_CC
2709 case "x$ac_cv_prog_cc_stdc" in
2710 x|xno)
2711 echo "$as_me:$LINENO: result: none needed" >&5
2712 echo "${ECHO_T}none needed" >&6 ;;
2714 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2715 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2716 CC="$CC $ac_cv_prog_cc_stdc" ;;
2717 esac
2719 # Some people use a C++ compiler to compile C. Since we use `exit',
2720 # in C++ we need to declare it. In case someone uses the same compiler
2721 # for both compiling C and C++ we need to have the C++ compiler decide
2722 # the declaration of exit, since it's the most demanding environment.
2723 cat >conftest.$ac_ext <<_ACEOF
2724 #ifndef __cplusplus
2725 choke me
2726 #endif
2727 _ACEOF
2728 rm -f conftest.$ac_objext
2729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2730 (eval $ac_compile) 2>conftest.er1
2731 ac_status=$?
2732 grep -v '^ *+' conftest.er1 >conftest.err
2733 rm -f conftest.er1
2734 cat conftest.err >&5
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); } &&
2737 { ac_try='test -z "$ac_c_werror_flag"
2738 || test ! -s conftest.err'
2739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740 (eval $ac_try) 2>&5
2741 ac_status=$?
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }; } &&
2744 { ac_try='test -s conftest.$ac_objext'
2745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746 (eval $ac_try) 2>&5
2747 ac_status=$?
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }; }; then
2750 for ac_declaration in \
2751 '' \
2752 'extern "C" void std::exit (int) throw (); using std::exit;' \
2753 'extern "C" void std::exit (int); using std::exit;' \
2754 'extern "C" void exit (int) throw ();' \
2755 'extern "C" void exit (int);' \
2756 'void exit (int);'
2758 cat >conftest.$ac_ext <<_ACEOF
2759 /* confdefs.h. */
2760 _ACEOF
2761 cat confdefs.h >>conftest.$ac_ext
2762 cat >>conftest.$ac_ext <<_ACEOF
2763 /* end confdefs.h. */
2764 $ac_declaration
2765 #include <stdlib.h>
2767 main ()
2769 exit (42);
2771 return 0;
2773 _ACEOF
2774 rm -f conftest.$ac_objext
2775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2776 (eval $ac_compile) 2>conftest.er1
2777 ac_status=$?
2778 grep -v '^ *+' conftest.er1 >conftest.err
2779 rm -f conftest.er1
2780 cat conftest.err >&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); } &&
2783 { ac_try='test -z "$ac_c_werror_flag"
2784 || test ! -s conftest.err'
2785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 (eval $ac_try) 2>&5
2787 ac_status=$?
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; } &&
2790 { ac_try='test -s conftest.$ac_objext'
2791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792 (eval $ac_try) 2>&5
2793 ac_status=$?
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }; }; then
2797 else
2798 echo "$as_me: failed program was:" >&5
2799 sed 's/^/| /' conftest.$ac_ext >&5
2801 continue
2803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2804 cat >conftest.$ac_ext <<_ACEOF
2805 /* confdefs.h. */
2806 _ACEOF
2807 cat confdefs.h >>conftest.$ac_ext
2808 cat >>conftest.$ac_ext <<_ACEOF
2809 /* end confdefs.h. */
2810 $ac_declaration
2812 main ()
2814 exit (42);
2816 return 0;
2818 _ACEOF
2819 rm -f conftest.$ac_objext
2820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2821 (eval $ac_compile) 2>conftest.er1
2822 ac_status=$?
2823 grep -v '^ *+' conftest.er1 >conftest.err
2824 rm -f conftest.er1
2825 cat conftest.err >&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); } &&
2828 { ac_try='test -z "$ac_c_werror_flag"
2829 || test ! -s conftest.err'
2830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2831 (eval $ac_try) 2>&5
2832 ac_status=$?
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); }; } &&
2835 { ac_try='test -s conftest.$ac_objext'
2836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837 (eval $ac_try) 2>&5
2838 ac_status=$?
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }; }; then
2841 break
2842 else
2843 echo "$as_me: failed program was:" >&5
2844 sed 's/^/| /' conftest.$ac_ext >&5
2847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2848 done
2849 rm -f conftest*
2850 if test -n "$ac_declaration"; then
2851 echo '#ifdef __cplusplus' >>confdefs.h
2852 echo $ac_declaration >>confdefs.h
2853 echo '#endif' >>confdefs.h
2856 else
2857 echo "$as_me: failed program was:" >&5
2858 sed 's/^/| /' conftest.$ac_ext >&5
2861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2862 ac_ext=c
2863 ac_cpp='$CPP $CPPFLAGS'
2864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2867 DEPDIR="${am__leading_dot}deps"
2869 ac_config_commands="$ac_config_commands depfiles"
2872 am_make=${MAKE-make}
2873 cat > confinc << 'END'
2874 am__doit:
2875 @echo done
2876 .PHONY: am__doit
2878 # If we don't find an include directive, just comment out the code.
2879 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2880 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2881 am__include="#"
2882 am__quote=
2883 _am_result=none
2884 # First try GNU make style include.
2885 echo "include confinc" > confmf
2886 # We grep out `Entering directory' and `Leaving directory'
2887 # messages which can occur if `w' ends up in MAKEFLAGS.
2888 # In particular we don't look at `^make:' because GNU make might
2889 # be invoked under some other name (usually "gmake"), in which
2890 # case it prints its new name instead of `make'.
2891 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2892 am__include=include
2893 am__quote=
2894 _am_result=GNU
2896 # Now try BSD make style include.
2897 if test "$am__include" = "#"; then
2898 echo '.include "confinc"' > confmf
2899 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2900 am__include=.include
2901 am__quote="\""
2902 _am_result=BSD
2907 echo "$as_me:$LINENO: result: $_am_result" >&5
2908 echo "${ECHO_T}$_am_result" >&6
2909 rm -f confinc confmf
2911 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2912 if test "${enable_dependency_tracking+set}" = set; then
2913 enableval="$enable_dependency_tracking"
2916 if test "x$enable_dependency_tracking" != xno; then
2917 am_depcomp="$ac_aux_dir/depcomp"
2918 AMDEPBACKSLASH='\'
2922 if test "x$enable_dependency_tracking" != xno; then
2923 AMDEP_TRUE=
2924 AMDEP_FALSE='#'
2925 else
2926 AMDEP_TRUE='#'
2927 AMDEP_FALSE=
2933 depcc="$CC" am_compiler_list=
2935 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2936 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2937 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2938 echo $ECHO_N "(cached) $ECHO_C" >&6
2939 else
2940 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2941 # We make a subdir and do the tests there. Otherwise we can end up
2942 # making bogus files that we don't know about and never remove. For
2943 # instance it was reported that on HP-UX the gcc test will end up
2944 # making a dummy file named `D' -- because `-MD' means `put the output
2945 # in D'.
2946 mkdir conftest.dir
2947 # Copy depcomp to subdir because otherwise we won't find it if we're
2948 # using a relative directory.
2949 cp "$am_depcomp" conftest.dir
2950 cd conftest.dir
2951 # We will build objects and dependencies in a subdirectory because
2952 # it helps to detect inapplicable dependency modes. For instance
2953 # both Tru64's cc and ICC support -MD to output dependencies as a
2954 # side effect of compilation, but ICC will put the dependencies in
2955 # the current directory while Tru64 will put them in the object
2956 # directory.
2957 mkdir sub
2959 am_cv_CC_dependencies_compiler_type=none
2960 if test "$am_compiler_list" = ""; then
2961 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2963 for depmode in $am_compiler_list; do
2964 # Setup a source with many dependencies, because some compilers
2965 # like to wrap large dependency lists on column 80 (with \), and
2966 # we should not choose a depcomp mode which is confused by this.
2968 # We need to recreate these files for each test, as the compiler may
2969 # overwrite some of them when testing with obscure command lines.
2970 # This happens at least with the AIX C compiler.
2971 : > sub/conftest.c
2972 for i in 1 2 3 4 5 6; do
2973 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2974 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2975 # Solaris 8's {/usr,}/bin/sh.
2976 touch sub/conftst$i.h
2977 done
2978 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2980 case $depmode in
2981 nosideeffect)
2982 # after this tag, mechanisms are not by side-effect, so they'll
2983 # only be used when explicitly requested
2984 if test "x$enable_dependency_tracking" = xyes; then
2985 continue
2986 else
2987 break
2990 none) break ;;
2991 esac
2992 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2993 # mode. It turns out that the SunPro C++ compiler does not properly
2994 # handle `-M -o', and we need to detect this.
2995 if depmode=$depmode \
2996 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2997 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2998 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2999 >/dev/null 2>conftest.err &&
3000 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3001 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3002 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3003 # icc doesn't choke on unknown options, it will just issue warnings
3004 # or remarks (even with -Werror). So we grep stderr for any message
3005 # that says an option was ignored or not supported.
3006 # When given -MP, icc 7.0 and 7.1 complain thusly:
3007 # icc: Command line warning: ignoring option '-M'; no argument required
3008 # The diagnosis changed in icc 8.0:
3009 # icc: Command line remark: option '-MP' not supported
3010 if (grep 'ignoring option' conftest.err ||
3011 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3012 am_cv_CC_dependencies_compiler_type=$depmode
3013 break
3016 done
3018 cd ..
3019 rm -rf conftest.dir
3020 else
3021 am_cv_CC_dependencies_compiler_type=none
3025 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3026 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3027 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3032 test "x$enable_dependency_tracking" != xno \
3033 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3034 am__fastdepCC_TRUE=
3035 am__fastdepCC_FALSE='#'
3036 else
3037 am__fastdepCC_TRUE='#'
3038 am__fastdepCC_FALSE=
3042 # Check whether --enable-shared or --disable-shared was given.
3043 if test "${enable_shared+set}" = set; then
3044 enableval="$enable_shared"
3045 p=${PACKAGE-default}
3046 case $enableval in
3047 yes) enable_shared=yes ;;
3048 no) enable_shared=no ;;
3050 enable_shared=no
3051 # Look at the argument we got. We use all the common list separators.
3052 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3053 for pkg in $enableval; do
3054 IFS="$lt_save_ifs"
3055 if test "X$pkg" = "X$p"; then
3056 enable_shared=yes
3058 done
3059 IFS="$lt_save_ifs"
3061 esac
3062 else
3063 enable_shared=yes
3066 # Check whether --enable-static or --disable-static was given.
3067 if test "${enable_static+set}" = set; then
3068 enableval="$enable_static"
3069 p=${PACKAGE-default}
3070 case $enableval in
3071 yes) enable_static=yes ;;
3072 no) enable_static=no ;;
3074 enable_static=no
3075 # Look at the argument we got. We use all the common list separators.
3076 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3077 for pkg in $enableval; do
3078 IFS="$lt_save_ifs"
3079 if test "X$pkg" = "X$p"; then
3080 enable_static=yes
3082 done
3083 IFS="$lt_save_ifs"
3085 esac
3086 else
3087 enable_static=yes
3090 # Check whether --enable-fast-install or --disable-fast-install was given.
3091 if test "${enable_fast_install+set}" = set; then
3092 enableval="$enable_fast_install"
3093 p=${PACKAGE-default}
3094 case $enableval in
3095 yes) enable_fast_install=yes ;;
3096 no) enable_fast_install=no ;;
3098 enable_fast_install=no
3099 # Look at the argument we got. We use all the common list separators.
3100 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3101 for pkg in $enableval; do
3102 IFS="$lt_save_ifs"
3103 if test "X$pkg" = "X$p"; then
3104 enable_fast_install=yes
3106 done
3107 IFS="$lt_save_ifs"
3109 esac
3110 else
3111 enable_fast_install=yes
3114 # Make sure we can run config.sub.
3115 $ac_config_sub sun4 >/dev/null 2>&1 ||
3116 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3117 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3118 { (exit 1); exit 1; }; }
3120 echo "$as_me:$LINENO: checking build system type" >&5
3121 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3122 if test "${ac_cv_build+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3124 else
3125 ac_cv_build_alias=$build_alias
3126 test -z "$ac_cv_build_alias" &&
3127 ac_cv_build_alias=`$ac_config_guess`
3128 test -z "$ac_cv_build_alias" &&
3129 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3130 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3131 { (exit 1); exit 1; }; }
3132 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3133 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3134 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3135 { (exit 1); exit 1; }; }
3138 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3139 echo "${ECHO_T}$ac_cv_build" >&6
3140 build=$ac_cv_build
3141 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3142 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3143 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3146 echo "$as_me:$LINENO: checking host system type" >&5
3147 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3148 if test "${ac_cv_host+set}" = set; then
3149 echo $ECHO_N "(cached) $ECHO_C" >&6
3150 else
3151 ac_cv_host_alias=$host_alias
3152 test -z "$ac_cv_host_alias" &&
3153 ac_cv_host_alias=$ac_cv_build_alias
3154 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3155 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3156 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3157 { (exit 1); exit 1; }; }
3160 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3161 echo "${ECHO_T}$ac_cv_host" >&6
3162 host=$ac_cv_host
3163 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3164 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3165 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3168 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3169 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3170 if test "${lt_cv_path_SED+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3172 else
3173 # Loop through the user's path and test for sed and gsed.
3174 # Then use that list of sed's as ones to test for truncation.
3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 for as_dir in $PATH
3178 IFS=$as_save_IFS
3179 test -z "$as_dir" && as_dir=.
3180 for lt_ac_prog in sed gsed; do
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3183 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3185 done
3186 done
3187 done
3188 lt_ac_max=0
3189 lt_ac_count=0
3190 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3191 # along with /bin/sed that truncates output.
3192 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3193 test ! -f $lt_ac_sed && continue
3194 cat /dev/null > conftest.in
3195 lt_ac_count=0
3196 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3197 # Check for GNU sed and select it if it is found.
3198 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3199 lt_cv_path_SED=$lt_ac_sed
3200 break
3202 while true; do
3203 cat conftest.in conftest.in >conftest.tmp
3204 mv conftest.tmp conftest.in
3205 cp conftest.in conftest.nl
3206 echo >>conftest.nl
3207 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3208 cmp -s conftest.out conftest.nl || break
3209 # 10000 chars as input seems more than enough
3210 test $lt_ac_count -gt 10 && break
3211 lt_ac_count=`expr $lt_ac_count + 1`
3212 if test $lt_ac_count -gt $lt_ac_max; then
3213 lt_ac_max=$lt_ac_count
3214 lt_cv_path_SED=$lt_ac_sed
3216 done
3217 done
3221 SED=$lt_cv_path_SED
3222 echo "$as_me:$LINENO: result: $SED" >&5
3223 echo "${ECHO_T}$SED" >&6
3225 echo "$as_me:$LINENO: checking for egrep" >&5
3226 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3227 if test "${ac_cv_prog_egrep+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
3229 else
3230 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3231 then ac_cv_prog_egrep='grep -E'
3232 else ac_cv_prog_egrep='egrep'
3235 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3236 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3237 EGREP=$ac_cv_prog_egrep
3241 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3242 if test "${with_gnu_ld+set}" = set; then
3243 withval="$with_gnu_ld"
3244 test "$withval" = no || with_gnu_ld=yes
3245 else
3246 with_gnu_ld=no
3248 ac_prog=ld
3249 if test "$GCC" = yes; then
3250 # Check if gcc -print-prog-name=ld gives a path.
3251 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3252 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3253 case $host in
3254 *-*-mingw*)
3255 # gcc leaves a trailing carriage return which upsets mingw
3256 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3258 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3259 esac
3260 case $ac_prog in
3261 # Accept absolute paths.
3262 [\\/]* | ?:[\\/]*)
3263 re_direlt='/[^/][^/]*/\.\./'
3264 # Canonicalize the pathname of ld
3265 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3266 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3267 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3268 done
3269 test -z "$LD" && LD="$ac_prog"
3272 # If it fails, then pretend we aren't using GCC.
3273 ac_prog=ld
3276 # If it is relative, then search for the first ld in PATH.
3277 with_gnu_ld=unknown
3279 esac
3280 elif test "$with_gnu_ld" = yes; then
3281 echo "$as_me:$LINENO: checking for GNU ld" >&5
3282 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3283 else
3284 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3285 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3287 if test "${lt_cv_path_LD+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3289 else
3290 if test -z "$LD"; then
3291 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3292 for ac_dir in $PATH; do
3293 IFS="$lt_save_ifs"
3294 test -z "$ac_dir" && ac_dir=.
3295 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3296 lt_cv_path_LD="$ac_dir/$ac_prog"
3297 # Check to see if the program is GNU ld. I'd rather use --version,
3298 # but apparently some GNU ld's only accept -v.
3299 # Break only if it was the GNU/non-GNU ld that we prefer.
3300 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3301 *GNU* | *'with BFD'*)
3302 test "$with_gnu_ld" != no && break
3305 test "$with_gnu_ld" != yes && break
3307 esac
3309 done
3310 IFS="$lt_save_ifs"
3311 else
3312 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3316 LD="$lt_cv_path_LD"
3317 if test -n "$LD"; then
3318 echo "$as_me:$LINENO: result: $LD" >&5
3319 echo "${ECHO_T}$LD" >&6
3320 else
3321 echo "$as_me:$LINENO: result: no" >&5
3322 echo "${ECHO_T}no" >&6
3324 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3325 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3326 { (exit 1); exit 1; }; }
3327 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3328 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3329 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3331 else
3332 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3333 case `$LD -v 2>&1 </dev/null` in
3334 *GNU* | *'with BFD'*)
3335 lt_cv_prog_gnu_ld=yes
3338 lt_cv_prog_gnu_ld=no
3340 esac
3342 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3343 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3344 with_gnu_ld=$lt_cv_prog_gnu_ld
3347 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3348 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3349 if test "${lt_cv_ld_reload_flag+set}" = set; then
3350 echo $ECHO_N "(cached) $ECHO_C" >&6
3351 else
3352 lt_cv_ld_reload_flag='-r'
3354 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3355 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3356 reload_flag=$lt_cv_ld_reload_flag
3357 case $reload_flag in
3358 "" | " "*) ;;
3359 *) reload_flag=" $reload_flag" ;;
3360 esac
3361 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3362 case $host_os in
3363 darwin*)
3364 if test "$GCC" = yes; then
3365 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3366 else
3367 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3370 esac
3372 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3373 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3374 if test "${lt_cv_path_NM+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3376 else
3377 if test -n "$NM"; then
3378 # Let the user override the test.
3379 lt_cv_path_NM="$NM"
3380 else
3381 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3382 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3383 IFS="$lt_save_ifs"
3384 test -z "$ac_dir" && ac_dir=.
3385 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3386 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3387 # Check to see if the nm accepts a BSD-compat flag.
3388 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3389 # nm: unknown option "B" ignored
3390 # Tru64's nm complains that /dev/null is an invalid object file
3391 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3392 */dev/null* | *'Invalid file or object type'*)
3393 lt_cv_path_NM="$tmp_nm -B"
3394 break
3397 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3398 */dev/null*)
3399 lt_cv_path_NM="$tmp_nm -p"
3400 break
3403 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3404 continue # so that we can try to find one that supports BSD flags
3406 esac
3407 esac
3409 done
3410 IFS="$lt_save_ifs"
3411 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3414 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3415 echo "${ECHO_T}$lt_cv_path_NM" >&6
3416 NM="$lt_cv_path_NM"
3418 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3419 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3420 LN_S=$as_ln_s
3421 if test "$LN_S" = "ln -s"; then
3422 echo "$as_me:$LINENO: result: yes" >&5
3423 echo "${ECHO_T}yes" >&6
3424 else
3425 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3426 echo "${ECHO_T}no, using $LN_S" >&6
3429 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3430 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3431 if test "${lt_cv_deplibs_check_method+set}" = set; then
3432 echo $ECHO_N "(cached) $ECHO_C" >&6
3433 else
3434 lt_cv_file_magic_cmd='$MAGIC_CMD'
3435 lt_cv_file_magic_test_file=
3436 lt_cv_deplibs_check_method='unknown'
3437 # Need to set the preceding variable on all platforms that support
3438 # interlibrary dependencies.
3439 # 'none' -- dependencies not supported.
3440 # `unknown' -- same as none, but documents that we really don't know.
3441 # 'pass_all' -- all dependencies passed with no checks.
3442 # 'test_compile' -- check by making test program.
3443 # 'file_magic [[regex]]' -- check by looking for files in library path
3444 # which responds to the $file_magic_cmd with a given extended regex.
3445 # If you have `file' or equivalent on your system and you're not sure
3446 # whether `pass_all' will *always* work, you probably want this one.
3448 case $host_os in
3449 aix4* | aix5*)
3450 lt_cv_deplibs_check_method=pass_all
3453 beos*)
3454 lt_cv_deplibs_check_method=pass_all
3457 bsdi[45]*)
3458 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3459 lt_cv_file_magic_cmd='/usr/bin/file -L'
3460 lt_cv_file_magic_test_file=/shlib/libc.so
3463 cygwin*)
3464 # func_win32_libid is a shell function defined in ltmain.sh
3465 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3466 lt_cv_file_magic_cmd='func_win32_libid'
3469 mingw* | pw32*)
3470 # Base MSYS/MinGW do not provide the 'file' command needed by
3471 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3472 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3473 lt_cv_file_magic_cmd='$OBJDUMP -f'
3476 darwin* | rhapsody*)
3477 lt_cv_deplibs_check_method=pass_all
3480 freebsd* | kfreebsd*-gnu | dragonfly*)
3481 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3482 case $host_cpu in
3483 i*86 )
3484 # Not sure whether the presence of OpenBSD here was a mistake.
3485 # Let's accept both of them until this is cleared up.
3486 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3487 lt_cv_file_magic_cmd=/usr/bin/file
3488 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3490 esac
3491 else
3492 lt_cv_deplibs_check_method=pass_all
3496 gnu*)
3497 lt_cv_deplibs_check_method=pass_all
3500 hpux10.20* | hpux11*)
3501 lt_cv_file_magic_cmd=/usr/bin/file
3502 case "$host_cpu" in
3503 ia64*)
3504 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3505 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3507 hppa*64*)
3508 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]'
3509 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3512 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3513 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3515 esac
3518 irix5* | irix6* | nonstopux*)
3519 case $LD in
3520 *-32|*"-32 ") libmagic=32-bit;;
3521 *-n32|*"-n32 ") libmagic=N32;;
3522 *-64|*"-64 ") libmagic=64-bit;;
3523 *) libmagic=never-match;;
3524 esac
3525 lt_cv_deplibs_check_method=pass_all
3528 # This must be Linux ELF.
3529 linux*)
3530 lt_cv_deplibs_check_method=pass_all
3533 netbsd*)
3534 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3535 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3536 else
3537 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3541 newos6*)
3542 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3543 lt_cv_file_magic_cmd=/usr/bin/file
3544 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3547 nto-qnx*)
3548 lt_cv_deplibs_check_method=unknown
3551 openbsd*)
3552 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3553 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3554 else
3555 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3559 osf3* | osf4* | osf5*)
3560 lt_cv_deplibs_check_method=pass_all
3563 sco3.2v5*)
3564 lt_cv_deplibs_check_method=pass_all
3567 solaris*)
3568 lt_cv_deplibs_check_method=pass_all
3571 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3572 case $host_vendor in
3573 motorola)
3574 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]'
3575 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3577 ncr)
3578 lt_cv_deplibs_check_method=pass_all
3580 sequent)
3581 lt_cv_file_magic_cmd='/bin/file'
3582 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3584 sni)
3585 lt_cv_file_magic_cmd='/bin/file'
3586 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3587 lt_cv_file_magic_test_file=/lib/libc.so
3589 siemens)
3590 lt_cv_deplibs_check_method=pass_all
3592 esac
3595 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3596 lt_cv_deplibs_check_method=pass_all
3598 esac
3601 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3602 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3603 file_magic_cmd=$lt_cv_file_magic_cmd
3604 deplibs_check_method=$lt_cv_deplibs_check_method
3605 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3610 # If no C compiler was specified, use CC.
3611 LTCC=${LTCC-"$CC"}
3613 # Allow CC to be a program name with arguments.
3614 compiler=$CC
3617 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3618 if test "${enable_libtool_lock+set}" = set; then
3619 enableval="$enable_libtool_lock"
3622 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3624 # Some flags need to be propagated to the compiler or linker for good
3625 # libtool support.
3626 case $host in
3627 ia64-*-hpux*)
3628 # Find out which ABI we are using.
3629 echo 'int i;' > conftest.$ac_ext
3630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3631 (eval $ac_compile) 2>&5
3632 ac_status=$?
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); }; then
3635 case `/usr/bin/file conftest.$ac_objext` in
3636 *ELF-32*)
3637 HPUX_IA64_MODE="32"
3639 *ELF-64*)
3640 HPUX_IA64_MODE="64"
3642 esac
3644 rm -rf conftest*
3646 *-*-irix6*)
3647 # Find out which ABI we are using.
3648 echo '#line 3648 "configure"' > conftest.$ac_ext
3649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3650 (eval $ac_compile) 2>&5
3651 ac_status=$?
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); }; then
3654 if test "$lt_cv_prog_gnu_ld" = yes; then
3655 case `/usr/bin/file conftest.$ac_objext` in
3656 *32-bit*)
3657 LD="${LD-ld} -melf32bsmip"
3659 *N32*)
3660 LD="${LD-ld} -melf32bmipn32"
3662 *64-bit*)
3663 LD="${LD-ld} -melf64bmip"
3665 esac
3666 else
3667 case `/usr/bin/file conftest.$ac_objext` in
3668 *32-bit*)
3669 LD="${LD-ld} -32"
3671 *N32*)
3672 LD="${LD-ld} -n32"
3674 *64-bit*)
3675 LD="${LD-ld} -64"
3677 esac
3680 rm -rf conftest*
3683 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3684 # Find out which ABI we are using.
3685 echo 'int i;' > conftest.$ac_ext
3686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3687 (eval $ac_compile) 2>&5
3688 ac_status=$?
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); }; then
3691 case "`/usr/bin/file conftest.o`" in
3692 *32-bit*)
3693 case $host in
3694 x86_64-*linux*)
3695 LD="${LD-ld} -m elf_i386"
3697 ppc64-*linux*|powerpc64-*linux*)
3698 LD="${LD-ld} -m elf32ppclinux"
3700 s390x-*linux*)
3701 LD="${LD-ld} -m elf_s390"
3703 sparc64-*linux*)
3704 LD="${LD-ld} -m elf32_sparc"
3706 esac
3708 *64-bit*)
3709 case $host in
3710 x86_64-*linux*)
3711 LD="${LD-ld} -m elf_x86_64"
3713 ppc*-*linux*|powerpc*-*linux*)
3714 LD="${LD-ld} -m elf64ppc"
3716 s390*-*linux*)
3717 LD="${LD-ld} -m elf64_s390"
3719 sparc*-*linux*)
3720 LD="${LD-ld} -m elf64_sparc"
3722 esac
3724 esac
3726 rm -rf conftest*
3729 *-*-sco3.2v5*)
3730 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3731 SAVE_CFLAGS="$CFLAGS"
3732 CFLAGS="$CFLAGS -belf"
3733 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3734 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3735 if test "${lt_cv_cc_needs_belf+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3738 ac_ext=c
3739 ac_cpp='$CPP $CPPFLAGS'
3740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3744 cat >conftest.$ac_ext <<_ACEOF
3745 /* confdefs.h. */
3746 _ACEOF
3747 cat confdefs.h >>conftest.$ac_ext
3748 cat >>conftest.$ac_ext <<_ACEOF
3749 /* end confdefs.h. */
3752 main ()
3756 return 0;
3758 _ACEOF
3759 rm -f conftest.$ac_objext conftest$ac_exeext
3760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3761 (eval $ac_link) 2>conftest.er1
3762 ac_status=$?
3763 grep -v '^ *+' conftest.er1 >conftest.err
3764 rm -f conftest.er1
3765 cat conftest.err >&5
3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767 (exit $ac_status); } &&
3768 { ac_try='test -z "$ac_c_werror_flag"
3769 || test ! -s conftest.err'
3770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3771 (eval $ac_try) 2>&5
3772 ac_status=$?
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); }; } &&
3775 { ac_try='test -s conftest$ac_exeext'
3776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3777 (eval $ac_try) 2>&5
3778 ac_status=$?
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); }; }; then
3781 lt_cv_cc_needs_belf=yes
3782 else
3783 echo "$as_me: failed program was:" >&5
3784 sed 's/^/| /' conftest.$ac_ext >&5
3786 lt_cv_cc_needs_belf=no
3788 rm -f conftest.err conftest.$ac_objext \
3789 conftest$ac_exeext conftest.$ac_ext
3790 ac_ext=c
3791 ac_cpp='$CPP $CPPFLAGS'
3792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3797 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3798 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3799 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3800 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3801 CFLAGS="$SAVE_CFLAGS"
3805 esac
3807 need_locks="$enable_libtool_lock"
3810 ac_ext=c
3811 ac_cpp='$CPP $CPPFLAGS'
3812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3815 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3816 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3817 # On Suns, sometimes $CPP names a directory.
3818 if test -n "$CPP" && test -d "$CPP"; then
3819 CPP=
3821 if test -z "$CPP"; then
3822 if test "${ac_cv_prog_CPP+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3824 else
3825 # Double quotes because CPP needs to be expanded
3826 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3828 ac_preproc_ok=false
3829 for ac_c_preproc_warn_flag in '' yes
3831 # Use a header file that comes with gcc, so configuring glibc
3832 # with a fresh cross-compiler works.
3833 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3834 # <limits.h> exists even on freestanding compilers.
3835 # On the NeXT, cc -E runs the code through the compiler's parser,
3836 # not just through cpp. "Syntax error" is here to catch this case.
3837 cat >conftest.$ac_ext <<_ACEOF
3838 /* confdefs.h. */
3839 _ACEOF
3840 cat confdefs.h >>conftest.$ac_ext
3841 cat >>conftest.$ac_ext <<_ACEOF
3842 /* end confdefs.h. */
3843 #ifdef __STDC__
3844 # include <limits.h>
3845 #else
3846 # include <assert.h>
3847 #endif
3848 Syntax error
3849 _ACEOF
3850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3852 ac_status=$?
3853 grep -v '^ *+' conftest.er1 >conftest.err
3854 rm -f conftest.er1
3855 cat conftest.err >&5
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); } >/dev/null; then
3858 if test -s conftest.err; then
3859 ac_cpp_err=$ac_c_preproc_warn_flag
3860 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3861 else
3862 ac_cpp_err=
3864 else
3865 ac_cpp_err=yes
3867 if test -z "$ac_cpp_err"; then
3869 else
3870 echo "$as_me: failed program was:" >&5
3871 sed 's/^/| /' conftest.$ac_ext >&5
3873 # Broken: fails on valid input.
3874 continue
3876 rm -f conftest.err conftest.$ac_ext
3878 # OK, works on sane cases. Now check whether non-existent headers
3879 # can be detected and how.
3880 cat >conftest.$ac_ext <<_ACEOF
3881 /* confdefs.h. */
3882 _ACEOF
3883 cat confdefs.h >>conftest.$ac_ext
3884 cat >>conftest.$ac_ext <<_ACEOF
3885 /* end confdefs.h. */
3886 #include <ac_nonexistent.h>
3887 _ACEOF
3888 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3890 ac_status=$?
3891 grep -v '^ *+' conftest.er1 >conftest.err
3892 rm -f conftest.er1
3893 cat conftest.err >&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); } >/dev/null; then
3896 if test -s conftest.err; then
3897 ac_cpp_err=$ac_c_preproc_warn_flag
3898 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3899 else
3900 ac_cpp_err=
3902 else
3903 ac_cpp_err=yes
3905 if test -z "$ac_cpp_err"; then
3906 # Broken: success on invalid input.
3907 continue
3908 else
3909 echo "$as_me: failed program was:" >&5
3910 sed 's/^/| /' conftest.$ac_ext >&5
3912 # Passes both tests.
3913 ac_preproc_ok=:
3914 break
3916 rm -f conftest.err conftest.$ac_ext
3918 done
3919 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3920 rm -f conftest.err conftest.$ac_ext
3921 if $ac_preproc_ok; then
3922 break
3925 done
3926 ac_cv_prog_CPP=$CPP
3929 CPP=$ac_cv_prog_CPP
3930 else
3931 ac_cv_prog_CPP=$CPP
3933 echo "$as_me:$LINENO: result: $CPP" >&5
3934 echo "${ECHO_T}$CPP" >&6
3935 ac_preproc_ok=false
3936 for ac_c_preproc_warn_flag in '' yes
3938 # Use a header file that comes with gcc, so configuring glibc
3939 # with a fresh cross-compiler works.
3940 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3941 # <limits.h> exists even on freestanding compilers.
3942 # On the NeXT, cc -E runs the code through the compiler's parser,
3943 # not just through cpp. "Syntax error" is here to catch this case.
3944 cat >conftest.$ac_ext <<_ACEOF
3945 /* confdefs.h. */
3946 _ACEOF
3947 cat confdefs.h >>conftest.$ac_ext
3948 cat >>conftest.$ac_ext <<_ACEOF
3949 /* end confdefs.h. */
3950 #ifdef __STDC__
3951 # include <limits.h>
3952 #else
3953 # include <assert.h>
3954 #endif
3955 Syntax error
3956 _ACEOF
3957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3958 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3959 ac_status=$?
3960 grep -v '^ *+' conftest.er1 >conftest.err
3961 rm -f conftest.er1
3962 cat conftest.err >&5
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); } >/dev/null; then
3965 if test -s conftest.err; then
3966 ac_cpp_err=$ac_c_preproc_warn_flag
3967 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3968 else
3969 ac_cpp_err=
3971 else
3972 ac_cpp_err=yes
3974 if test -z "$ac_cpp_err"; then
3976 else
3977 echo "$as_me: failed program was:" >&5
3978 sed 's/^/| /' conftest.$ac_ext >&5
3980 # Broken: fails on valid input.
3981 continue
3983 rm -f conftest.err conftest.$ac_ext
3985 # OK, works on sane cases. Now check whether non-existent headers
3986 # can be detected and how.
3987 cat >conftest.$ac_ext <<_ACEOF
3988 /* confdefs.h. */
3989 _ACEOF
3990 cat confdefs.h >>conftest.$ac_ext
3991 cat >>conftest.$ac_ext <<_ACEOF
3992 /* end confdefs.h. */
3993 #include <ac_nonexistent.h>
3994 _ACEOF
3995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3997 ac_status=$?
3998 grep -v '^ *+' conftest.er1 >conftest.err
3999 rm -f conftest.er1
4000 cat conftest.err >&5
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); } >/dev/null; then
4003 if test -s conftest.err; then
4004 ac_cpp_err=$ac_c_preproc_warn_flag
4005 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4006 else
4007 ac_cpp_err=
4009 else
4010 ac_cpp_err=yes
4012 if test -z "$ac_cpp_err"; then
4013 # Broken: success on invalid input.
4014 continue
4015 else
4016 echo "$as_me: failed program was:" >&5
4017 sed 's/^/| /' conftest.$ac_ext >&5
4019 # Passes both tests.
4020 ac_preproc_ok=:
4021 break
4023 rm -f conftest.err conftest.$ac_ext
4025 done
4026 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4027 rm -f conftest.err conftest.$ac_ext
4028 if $ac_preproc_ok; then
4030 else
4031 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4032 See \`config.log' for more details." >&5
4033 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4034 See \`config.log' for more details." >&2;}
4035 { (exit 1); exit 1; }; }
4038 ac_ext=c
4039 ac_cpp='$CPP $CPPFLAGS'
4040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4045 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4046 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4047 if test "${ac_cv_header_stdc+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4049 else
4050 cat >conftest.$ac_ext <<_ACEOF
4051 /* confdefs.h. */
4052 _ACEOF
4053 cat confdefs.h >>conftest.$ac_ext
4054 cat >>conftest.$ac_ext <<_ACEOF
4055 /* end confdefs.h. */
4056 #include <stdlib.h>
4057 #include <stdarg.h>
4058 #include <string.h>
4059 #include <float.h>
4062 main ()
4066 return 0;
4068 _ACEOF
4069 rm -f conftest.$ac_objext
4070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4071 (eval $ac_compile) 2>conftest.er1
4072 ac_status=$?
4073 grep -v '^ *+' conftest.er1 >conftest.err
4074 rm -f conftest.er1
4075 cat conftest.err >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } &&
4078 { ac_try='test -z "$ac_c_werror_flag"
4079 || test ! -s conftest.err'
4080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081 (eval $ac_try) 2>&5
4082 ac_status=$?
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); }; } &&
4085 { ac_try='test -s conftest.$ac_objext'
4086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4087 (eval $ac_try) 2>&5
4088 ac_status=$?
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); }; }; then
4091 ac_cv_header_stdc=yes
4092 else
4093 echo "$as_me: failed program was:" >&5
4094 sed 's/^/| /' conftest.$ac_ext >&5
4096 ac_cv_header_stdc=no
4098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4100 if test $ac_cv_header_stdc = yes; then
4101 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4102 cat >conftest.$ac_ext <<_ACEOF
4103 /* confdefs.h. */
4104 _ACEOF
4105 cat confdefs.h >>conftest.$ac_ext
4106 cat >>conftest.$ac_ext <<_ACEOF
4107 /* end confdefs.h. */
4108 #include <string.h>
4110 _ACEOF
4111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4112 $EGREP "memchr" >/dev/null 2>&1; then
4114 else
4115 ac_cv_header_stdc=no
4117 rm -f conftest*
4121 if test $ac_cv_header_stdc = yes; then
4122 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4123 cat >conftest.$ac_ext <<_ACEOF
4124 /* confdefs.h. */
4125 _ACEOF
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h. */
4129 #include <stdlib.h>
4131 _ACEOF
4132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4133 $EGREP "free" >/dev/null 2>&1; then
4135 else
4136 ac_cv_header_stdc=no
4138 rm -f conftest*
4142 if test $ac_cv_header_stdc = yes; then
4143 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4144 if test "$cross_compiling" = yes; then
4146 else
4147 cat >conftest.$ac_ext <<_ACEOF
4148 /* confdefs.h. */
4149 _ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h. */
4153 #include <ctype.h>
4154 #if ((' ' & 0x0FF) == 0x020)
4155 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4156 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4157 #else
4158 # define ISLOWER(c) \
4159 (('a' <= (c) && (c) <= 'i') \
4160 || ('j' <= (c) && (c) <= 'r') \
4161 || ('s' <= (c) && (c) <= 'z'))
4162 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4163 #endif
4165 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4167 main ()
4169 int i;
4170 for (i = 0; i < 256; i++)
4171 if (XOR (islower (i), ISLOWER (i))
4172 || toupper (i) != TOUPPER (i))
4173 exit(2);
4174 exit (0);
4176 _ACEOF
4177 rm -f conftest$ac_exeext
4178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4179 (eval $ac_link) 2>&5
4180 ac_status=$?
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4184 (eval $ac_try) 2>&5
4185 ac_status=$?
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); }; }; then
4189 else
4190 echo "$as_me: program exited with status $ac_status" >&5
4191 echo "$as_me: failed program was:" >&5
4192 sed 's/^/| /' conftest.$ac_ext >&5
4194 ( exit $ac_status )
4195 ac_cv_header_stdc=no
4197 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4201 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4202 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4203 if test $ac_cv_header_stdc = yes; then
4205 cat >>confdefs.h <<\_ACEOF
4206 #define STDC_HEADERS 1
4207 _ACEOF
4211 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4221 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4222 inttypes.h stdint.h unistd.h
4224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4225 echo "$as_me:$LINENO: checking for $ac_header" >&5
4226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4229 else
4230 cat >conftest.$ac_ext <<_ACEOF
4231 /* confdefs.h. */
4232 _ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h. */
4236 $ac_includes_default
4238 #include <$ac_header>
4239 _ACEOF
4240 rm -f conftest.$ac_objext
4241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4242 (eval $ac_compile) 2>conftest.er1
4243 ac_status=$?
4244 grep -v '^ *+' conftest.er1 >conftest.err
4245 rm -f conftest.er1
4246 cat conftest.err >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); } &&
4249 { ac_try='test -z "$ac_c_werror_flag"
4250 || test ! -s conftest.err'
4251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4252 (eval $ac_try) 2>&5
4253 ac_status=$?
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); }; } &&
4256 { ac_try='test -s conftest.$ac_objext'
4257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258 (eval $ac_try) 2>&5
4259 ac_status=$?
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; }; then
4262 eval "$as_ac_Header=yes"
4263 else
4264 echo "$as_me: failed program was:" >&5
4265 sed 's/^/| /' conftest.$ac_ext >&5
4267 eval "$as_ac_Header=no"
4269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4272 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4274 cat >>confdefs.h <<_ACEOF
4275 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4276 _ACEOF
4280 done
4284 for ac_header in dlfcn.h
4286 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4288 echo "$as_me:$LINENO: checking for $ac_header" >&5
4289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4295 else
4296 # Is the header compilable?
4297 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4298 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4299 cat >conftest.$ac_ext <<_ACEOF
4300 /* confdefs.h. */
4301 _ACEOF
4302 cat confdefs.h >>conftest.$ac_ext
4303 cat >>conftest.$ac_ext <<_ACEOF
4304 /* end confdefs.h. */
4305 $ac_includes_default
4306 #include <$ac_header>
4307 _ACEOF
4308 rm -f conftest.$ac_objext
4309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4310 (eval $ac_compile) 2>conftest.er1
4311 ac_status=$?
4312 grep -v '^ *+' conftest.er1 >conftest.err
4313 rm -f conftest.er1
4314 cat conftest.err >&5
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); } &&
4317 { ac_try='test -z "$ac_c_werror_flag"
4318 || test ! -s conftest.err'
4319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4320 (eval $ac_try) 2>&5
4321 ac_status=$?
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; } &&
4324 { ac_try='test -s conftest.$ac_objext'
4325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4326 (eval $ac_try) 2>&5
4327 ac_status=$?
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); }; }; then
4330 ac_header_compiler=yes
4331 else
4332 echo "$as_me: failed program was:" >&5
4333 sed 's/^/| /' conftest.$ac_ext >&5
4335 ac_header_compiler=no
4337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4338 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4339 echo "${ECHO_T}$ac_header_compiler" >&6
4341 # Is the header present?
4342 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4344 cat >conftest.$ac_ext <<_ACEOF
4345 /* confdefs.h. */
4346 _ACEOF
4347 cat confdefs.h >>conftest.$ac_ext
4348 cat >>conftest.$ac_ext <<_ACEOF
4349 /* end confdefs.h. */
4350 #include <$ac_header>
4351 _ACEOF
4352 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4354 ac_status=$?
4355 grep -v '^ *+' conftest.er1 >conftest.err
4356 rm -f conftest.er1
4357 cat conftest.err >&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); } >/dev/null; then
4360 if test -s conftest.err; then
4361 ac_cpp_err=$ac_c_preproc_warn_flag
4362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4363 else
4364 ac_cpp_err=
4366 else
4367 ac_cpp_err=yes
4369 if test -z "$ac_cpp_err"; then
4370 ac_header_preproc=yes
4371 else
4372 echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.$ac_ext >&5
4375 ac_header_preproc=no
4377 rm -f conftest.err conftest.$ac_ext
4378 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4379 echo "${ECHO_T}$ac_header_preproc" >&6
4381 # So? What about this header?
4382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4383 yes:no: )
4384 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4385 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4387 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4388 ac_header_preproc=yes
4390 no:yes:* )
4391 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4392 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4393 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4394 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4395 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4396 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4397 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4398 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4400 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4401 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4402 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4404 cat <<\_ASBOX
4405 ## ------------------------------------------ ##
4406 ## Report this to the AC_PACKAGE_NAME lists. ##
4407 ## ------------------------------------------ ##
4408 _ASBOX
4410 sed "s/^/$as_me: WARNING: /" >&2
4412 esac
4413 echo "$as_me:$LINENO: checking for $ac_header" >&5
4414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
4417 else
4418 eval "$as_ac_Header=\$ac_header_preproc"
4420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4425 cat >>confdefs.h <<_ACEOF
4426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4427 _ACEOF
4431 done
4433 ac_ext=cc
4434 ac_cpp='$CXXCPP $CPPFLAGS'
4435 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4436 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4437 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4438 if test -n "$ac_tool_prefix"; then
4439 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4441 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4442 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4443 echo "$as_me:$LINENO: checking for $ac_word" >&5
4444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4445 if test "${ac_cv_prog_CXX+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4447 else
4448 if test -n "$CXX"; then
4449 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4450 else
4451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 for as_dir in $PATH
4454 IFS=$as_save_IFS
4455 test -z "$as_dir" && as_dir=.
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4458 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 break 2
4462 done
4463 done
4467 CXX=$ac_cv_prog_CXX
4468 if test -n "$CXX"; then
4469 echo "$as_me:$LINENO: result: $CXX" >&5
4470 echo "${ECHO_T}$CXX" >&6
4471 else
4472 echo "$as_me:$LINENO: result: no" >&5
4473 echo "${ECHO_T}no" >&6
4476 test -n "$CXX" && break
4477 done
4479 if test -z "$CXX"; then
4480 ac_ct_CXX=$CXX
4481 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4483 # Extract the first word of "$ac_prog", so it can be a program name with args.
4484 set dummy $ac_prog; ac_word=$2
4485 echo "$as_me:$LINENO: checking for $ac_word" >&5
4486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4487 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4488 echo $ECHO_N "(cached) $ECHO_C" >&6
4489 else
4490 if test -n "$ac_ct_CXX"; then
4491 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4492 else
4493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494 for as_dir in $PATH
4496 IFS=$as_save_IFS
4497 test -z "$as_dir" && as_dir=.
4498 for ac_exec_ext in '' $ac_executable_extensions; do
4499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4500 ac_cv_prog_ac_ct_CXX="$ac_prog"
4501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4502 break 2
4504 done
4505 done
4509 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4510 if test -n "$ac_ct_CXX"; then
4511 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4512 echo "${ECHO_T}$ac_ct_CXX" >&6
4513 else
4514 echo "$as_me:$LINENO: result: no" >&5
4515 echo "${ECHO_T}no" >&6
4518 test -n "$ac_ct_CXX" && break
4519 done
4520 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4522 CXX=$ac_ct_CXX
4526 # Provide some information about the compiler.
4527 echo "$as_me:$LINENO:" \
4528 "checking for C++ compiler version" >&5
4529 ac_compiler=`set X $ac_compile; echo $2`
4530 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4531 (eval $ac_compiler --version </dev/null >&5) 2>&5
4532 ac_status=$?
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }
4535 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4536 (eval $ac_compiler -v </dev/null >&5) 2>&5
4537 ac_status=$?
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }
4540 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4541 (eval $ac_compiler -V </dev/null >&5) 2>&5
4542 ac_status=$?
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); }
4546 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4547 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4548 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4550 else
4551 cat >conftest.$ac_ext <<_ACEOF
4552 /* confdefs.h. */
4553 _ACEOF
4554 cat confdefs.h >>conftest.$ac_ext
4555 cat >>conftest.$ac_ext <<_ACEOF
4556 /* end confdefs.h. */
4559 main ()
4561 #ifndef __GNUC__
4562 choke me
4563 #endif
4566 return 0;
4568 _ACEOF
4569 rm -f conftest.$ac_objext
4570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4571 (eval $ac_compile) 2>conftest.er1
4572 ac_status=$?
4573 grep -v '^ *+' conftest.er1 >conftest.err
4574 rm -f conftest.er1
4575 cat conftest.err >&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); } &&
4578 { ac_try='test -z "$ac_cxx_werror_flag"
4579 || test ! -s conftest.err'
4580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4581 (eval $ac_try) 2>&5
4582 ac_status=$?
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; } &&
4585 { ac_try='test -s conftest.$ac_objext'
4586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4587 (eval $ac_try) 2>&5
4588 ac_status=$?
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); }; }; then
4591 ac_compiler_gnu=yes
4592 else
4593 echo "$as_me: failed program was:" >&5
4594 sed 's/^/| /' conftest.$ac_ext >&5
4596 ac_compiler_gnu=no
4598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4599 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4602 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4603 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4604 GXX=`test $ac_compiler_gnu = yes && echo yes`
4605 ac_test_CXXFLAGS=${CXXFLAGS+set}
4606 ac_save_CXXFLAGS=$CXXFLAGS
4607 CXXFLAGS="-g"
4608 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4609 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4610 if test "${ac_cv_prog_cxx_g+set}" = set; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4612 else
4613 cat >conftest.$ac_ext <<_ACEOF
4614 /* confdefs.h. */
4615 _ACEOF
4616 cat confdefs.h >>conftest.$ac_ext
4617 cat >>conftest.$ac_ext <<_ACEOF
4618 /* end confdefs.h. */
4621 main ()
4625 return 0;
4627 _ACEOF
4628 rm -f conftest.$ac_objext
4629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4630 (eval $ac_compile) 2>conftest.er1
4631 ac_status=$?
4632 grep -v '^ *+' conftest.er1 >conftest.err
4633 rm -f conftest.er1
4634 cat conftest.err >&5
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); } &&
4637 { ac_try='test -z "$ac_cxx_werror_flag"
4638 || test ! -s conftest.err'
4639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4640 (eval $ac_try) 2>&5
4641 ac_status=$?
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); }; } &&
4644 { ac_try='test -s conftest.$ac_objext'
4645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4646 (eval $ac_try) 2>&5
4647 ac_status=$?
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); }; }; then
4650 ac_cv_prog_cxx_g=yes
4651 else
4652 echo "$as_me: failed program was:" >&5
4653 sed 's/^/| /' conftest.$ac_ext >&5
4655 ac_cv_prog_cxx_g=no
4657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4659 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4660 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4661 if test "$ac_test_CXXFLAGS" = set; then
4662 CXXFLAGS=$ac_save_CXXFLAGS
4663 elif test $ac_cv_prog_cxx_g = yes; then
4664 if test "$GXX" = yes; then
4665 CXXFLAGS="-g -O2"
4666 else
4667 CXXFLAGS="-g"
4669 else
4670 if test "$GXX" = yes; then
4671 CXXFLAGS="-O2"
4672 else
4673 CXXFLAGS=
4676 for ac_declaration in \
4677 '' \
4678 'extern "C" void std::exit (int) throw (); using std::exit;' \
4679 'extern "C" void std::exit (int); using std::exit;' \
4680 'extern "C" void exit (int) throw ();' \
4681 'extern "C" void exit (int);' \
4682 'void exit (int);'
4684 cat >conftest.$ac_ext <<_ACEOF
4685 /* confdefs.h. */
4686 _ACEOF
4687 cat confdefs.h >>conftest.$ac_ext
4688 cat >>conftest.$ac_ext <<_ACEOF
4689 /* end confdefs.h. */
4690 $ac_declaration
4691 #include <stdlib.h>
4693 main ()
4695 exit (42);
4697 return 0;
4699 _ACEOF
4700 rm -f conftest.$ac_objext
4701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4702 (eval $ac_compile) 2>conftest.er1
4703 ac_status=$?
4704 grep -v '^ *+' conftest.er1 >conftest.err
4705 rm -f conftest.er1
4706 cat conftest.err >&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); } &&
4709 { ac_try='test -z "$ac_cxx_werror_flag"
4710 || test ! -s conftest.err'
4711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712 (eval $ac_try) 2>&5
4713 ac_status=$?
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); }; } &&
4716 { ac_try='test -s conftest.$ac_objext'
4717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718 (eval $ac_try) 2>&5
4719 ac_status=$?
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); }; }; then
4723 else
4724 echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4727 continue
4729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4730 cat >conftest.$ac_ext <<_ACEOF
4731 /* confdefs.h. */
4732 _ACEOF
4733 cat confdefs.h >>conftest.$ac_ext
4734 cat >>conftest.$ac_ext <<_ACEOF
4735 /* end confdefs.h. */
4736 $ac_declaration
4738 main ()
4740 exit (42);
4742 return 0;
4744 _ACEOF
4745 rm -f conftest.$ac_objext
4746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4747 (eval $ac_compile) 2>conftest.er1
4748 ac_status=$?
4749 grep -v '^ *+' conftest.er1 >conftest.err
4750 rm -f conftest.er1
4751 cat conftest.err >&5
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); } &&
4754 { ac_try='test -z "$ac_cxx_werror_flag"
4755 || test ! -s conftest.err'
4756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4757 (eval $ac_try) 2>&5
4758 ac_status=$?
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); }; } &&
4761 { ac_try='test -s conftest.$ac_objext'
4762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4763 (eval $ac_try) 2>&5
4764 ac_status=$?
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); }; }; then
4767 break
4768 else
4769 echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4774 done
4775 rm -f conftest*
4776 if test -n "$ac_declaration"; then
4777 echo '#ifdef __cplusplus' >>confdefs.h
4778 echo $ac_declaration >>confdefs.h
4779 echo '#endif' >>confdefs.h
4782 ac_ext=cc
4783 ac_cpp='$CXXCPP $CPPFLAGS'
4784 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4785 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4786 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4788 depcc="$CXX" am_compiler_list=
4790 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4791 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4792 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4793 echo $ECHO_N "(cached) $ECHO_C" >&6
4794 else
4795 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4796 # We make a subdir and do the tests there. Otherwise we can end up
4797 # making bogus files that we don't know about and never remove. For
4798 # instance it was reported that on HP-UX the gcc test will end up
4799 # making a dummy file named `D' -- because `-MD' means `put the output
4800 # in D'.
4801 mkdir conftest.dir
4802 # Copy depcomp to subdir because otherwise we won't find it if we're
4803 # using a relative directory.
4804 cp "$am_depcomp" conftest.dir
4805 cd conftest.dir
4806 # We will build objects and dependencies in a subdirectory because
4807 # it helps to detect inapplicable dependency modes. For instance
4808 # both Tru64's cc and ICC support -MD to output dependencies as a
4809 # side effect of compilation, but ICC will put the dependencies in
4810 # the current directory while Tru64 will put them in the object
4811 # directory.
4812 mkdir sub
4814 am_cv_CXX_dependencies_compiler_type=none
4815 if test "$am_compiler_list" = ""; then
4816 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4818 for depmode in $am_compiler_list; do
4819 # Setup a source with many dependencies, because some compilers
4820 # like to wrap large dependency lists on column 80 (with \), and
4821 # we should not choose a depcomp mode which is confused by this.
4823 # We need to recreate these files for each test, as the compiler may
4824 # overwrite some of them when testing with obscure command lines.
4825 # This happens at least with the AIX C compiler.
4826 : > sub/conftest.c
4827 for i in 1 2 3 4 5 6; do
4828 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4829 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4830 # Solaris 8's {/usr,}/bin/sh.
4831 touch sub/conftst$i.h
4832 done
4833 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4835 case $depmode in
4836 nosideeffect)
4837 # after this tag, mechanisms are not by side-effect, so they'll
4838 # only be used when explicitly requested
4839 if test "x$enable_dependency_tracking" = xyes; then
4840 continue
4841 else
4842 break
4845 none) break ;;
4846 esac
4847 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4848 # mode. It turns out that the SunPro C++ compiler does not properly
4849 # handle `-M -o', and we need to detect this.
4850 if depmode=$depmode \
4851 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4852 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4853 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4854 >/dev/null 2>conftest.err &&
4855 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4856 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4857 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4858 # icc doesn't choke on unknown options, it will just issue warnings
4859 # or remarks (even with -Werror). So we grep stderr for any message
4860 # that says an option was ignored or not supported.
4861 # When given -MP, icc 7.0 and 7.1 complain thusly:
4862 # icc: Command line warning: ignoring option '-M'; no argument required
4863 # The diagnosis changed in icc 8.0:
4864 # icc: Command line remark: option '-MP' not supported
4865 if (grep 'ignoring option' conftest.err ||
4866 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4867 am_cv_CXX_dependencies_compiler_type=$depmode
4868 break
4871 done
4873 cd ..
4874 rm -rf conftest.dir
4875 else
4876 am_cv_CXX_dependencies_compiler_type=none
4880 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4881 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4882 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4887 test "x$enable_dependency_tracking" != xno \
4888 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4889 am__fastdepCXX_TRUE=
4890 am__fastdepCXX_FALSE='#'
4891 else
4892 am__fastdepCXX_TRUE='#'
4893 am__fastdepCXX_FALSE=
4899 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4900 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4901 (test "X$CXX" != "Xg++"))) ; then
4902 ac_ext=cc
4903 ac_cpp='$CXXCPP $CPPFLAGS'
4904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4907 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4908 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4909 if test -z "$CXXCPP"; then
4910 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4911 echo $ECHO_N "(cached) $ECHO_C" >&6
4912 else
4913 # Double quotes because CXXCPP needs to be expanded
4914 for CXXCPP in "$CXX -E" "/lib/cpp"
4916 ac_preproc_ok=false
4917 for ac_cxx_preproc_warn_flag in '' yes
4919 # Use a header file that comes with gcc, so configuring glibc
4920 # with a fresh cross-compiler works.
4921 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4922 # <limits.h> exists even on freestanding compilers.
4923 # On the NeXT, cc -E runs the code through the compiler's parser,
4924 # not just through cpp. "Syntax error" is here to catch this case.
4925 cat >conftest.$ac_ext <<_ACEOF
4926 /* confdefs.h. */
4927 _ACEOF
4928 cat confdefs.h >>conftest.$ac_ext
4929 cat >>conftest.$ac_ext <<_ACEOF
4930 /* end confdefs.h. */
4931 #ifdef __STDC__
4932 # include <limits.h>
4933 #else
4934 # include <assert.h>
4935 #endif
4936 Syntax error
4937 _ACEOF
4938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4940 ac_status=$?
4941 grep -v '^ *+' conftest.er1 >conftest.err
4942 rm -f conftest.er1
4943 cat conftest.err >&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); } >/dev/null; then
4946 if test -s conftest.err; then
4947 ac_cpp_err=$ac_cxx_preproc_warn_flag
4948 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4949 else
4950 ac_cpp_err=
4952 else
4953 ac_cpp_err=yes
4955 if test -z "$ac_cpp_err"; then
4957 else
4958 echo "$as_me: failed program was:" >&5
4959 sed 's/^/| /' conftest.$ac_ext >&5
4961 # Broken: fails on valid input.
4962 continue
4964 rm -f conftest.err conftest.$ac_ext
4966 # OK, works on sane cases. Now check whether non-existent headers
4967 # can be detected and how.
4968 cat >conftest.$ac_ext <<_ACEOF
4969 /* confdefs.h. */
4970 _ACEOF
4971 cat confdefs.h >>conftest.$ac_ext
4972 cat >>conftest.$ac_ext <<_ACEOF
4973 /* end confdefs.h. */
4974 #include <ac_nonexistent.h>
4975 _ACEOF
4976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4978 ac_status=$?
4979 grep -v '^ *+' conftest.er1 >conftest.err
4980 rm -f conftest.er1
4981 cat conftest.err >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); } >/dev/null; then
4984 if test -s conftest.err; then
4985 ac_cpp_err=$ac_cxx_preproc_warn_flag
4986 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4987 else
4988 ac_cpp_err=
4990 else
4991 ac_cpp_err=yes
4993 if test -z "$ac_cpp_err"; then
4994 # Broken: success on invalid input.
4995 continue
4996 else
4997 echo "$as_me: failed program was:" >&5
4998 sed 's/^/| /' conftest.$ac_ext >&5
5000 # Passes both tests.
5001 ac_preproc_ok=:
5002 break
5004 rm -f conftest.err conftest.$ac_ext
5006 done
5007 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5008 rm -f conftest.err conftest.$ac_ext
5009 if $ac_preproc_ok; then
5010 break
5013 done
5014 ac_cv_prog_CXXCPP=$CXXCPP
5017 CXXCPP=$ac_cv_prog_CXXCPP
5018 else
5019 ac_cv_prog_CXXCPP=$CXXCPP
5021 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5022 echo "${ECHO_T}$CXXCPP" >&6
5023 ac_preproc_ok=false
5024 for ac_cxx_preproc_warn_flag in '' yes
5026 # Use a header file that comes with gcc, so configuring glibc
5027 # with a fresh cross-compiler works.
5028 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5029 # <limits.h> exists even on freestanding compilers.
5030 # On the NeXT, cc -E runs the code through the compiler's parser,
5031 # not just through cpp. "Syntax error" is here to catch this case.
5032 cat >conftest.$ac_ext <<_ACEOF
5033 /* confdefs.h. */
5034 _ACEOF
5035 cat confdefs.h >>conftest.$ac_ext
5036 cat >>conftest.$ac_ext <<_ACEOF
5037 /* end confdefs.h. */
5038 #ifdef __STDC__
5039 # include <limits.h>
5040 #else
5041 # include <assert.h>
5042 #endif
5043 Syntax error
5044 _ACEOF
5045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5047 ac_status=$?
5048 grep -v '^ *+' conftest.er1 >conftest.err
5049 rm -f conftest.er1
5050 cat conftest.err >&5
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); } >/dev/null; then
5053 if test -s conftest.err; then
5054 ac_cpp_err=$ac_cxx_preproc_warn_flag
5055 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5056 else
5057 ac_cpp_err=
5059 else
5060 ac_cpp_err=yes
5062 if test -z "$ac_cpp_err"; then
5064 else
5065 echo "$as_me: failed program was:" >&5
5066 sed 's/^/| /' conftest.$ac_ext >&5
5068 # Broken: fails on valid input.
5069 continue
5071 rm -f conftest.err conftest.$ac_ext
5073 # OK, works on sane cases. Now check whether non-existent headers
5074 # can be detected and how.
5075 cat >conftest.$ac_ext <<_ACEOF
5076 /* confdefs.h. */
5077 _ACEOF
5078 cat confdefs.h >>conftest.$ac_ext
5079 cat >>conftest.$ac_ext <<_ACEOF
5080 /* end confdefs.h. */
5081 #include <ac_nonexistent.h>
5082 _ACEOF
5083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5085 ac_status=$?
5086 grep -v '^ *+' conftest.er1 >conftest.err
5087 rm -f conftest.er1
5088 cat conftest.err >&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); } >/dev/null; then
5091 if test -s conftest.err; then
5092 ac_cpp_err=$ac_cxx_preproc_warn_flag
5093 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5094 else
5095 ac_cpp_err=
5097 else
5098 ac_cpp_err=yes
5100 if test -z "$ac_cpp_err"; then
5101 # Broken: success on invalid input.
5102 continue
5103 else
5104 echo "$as_me: failed program was:" >&5
5105 sed 's/^/| /' conftest.$ac_ext >&5
5107 # Passes both tests.
5108 ac_preproc_ok=:
5109 break
5111 rm -f conftest.err conftest.$ac_ext
5113 done
5114 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5115 rm -f conftest.err conftest.$ac_ext
5116 if $ac_preproc_ok; then
5118 else
5119 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5120 See \`config.log' for more details." >&5
5121 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5122 See \`config.log' for more details." >&2;}
5123 { (exit 1); exit 1; }; }
5126 ac_ext=cc
5127 ac_cpp='$CXXCPP $CPPFLAGS'
5128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5135 ac_ext=f
5136 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5137 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5138 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5139 if test -n "$ac_tool_prefix"; then
5140 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5142 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5143 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5144 echo "$as_me:$LINENO: checking for $ac_word" >&5
5145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5146 if test "${ac_cv_prog_F77+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5148 else
5149 if test -n "$F77"; then
5150 ac_cv_prog_F77="$F77" # Let the user override the test.
5151 else
5152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153 for as_dir in $PATH
5155 IFS=$as_save_IFS
5156 test -z "$as_dir" && as_dir=.
5157 for ac_exec_ext in '' $ac_executable_extensions; do
5158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5159 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5161 break 2
5163 done
5164 done
5168 F77=$ac_cv_prog_F77
5169 if test -n "$F77"; then
5170 echo "$as_me:$LINENO: result: $F77" >&5
5171 echo "${ECHO_T}$F77" >&6
5172 else
5173 echo "$as_me:$LINENO: result: no" >&5
5174 echo "${ECHO_T}no" >&6
5177 test -n "$F77" && break
5178 done
5180 if test -z "$F77"; then
5181 ac_ct_F77=$F77
5182 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5184 # Extract the first word of "$ac_prog", so it can be a program name with args.
5185 set dummy $ac_prog; ac_word=$2
5186 echo "$as_me:$LINENO: checking for $ac_word" >&5
5187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5188 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5189 echo $ECHO_N "(cached) $ECHO_C" >&6
5190 else
5191 if test -n "$ac_ct_F77"; then
5192 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5193 else
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5199 for ac_exec_ext in '' $ac_executable_extensions; do
5200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5201 ac_cv_prog_ac_ct_F77="$ac_prog"
5202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 break 2
5205 done
5206 done
5210 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5211 if test -n "$ac_ct_F77"; then
5212 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5213 echo "${ECHO_T}$ac_ct_F77" >&6
5214 else
5215 echo "$as_me:$LINENO: result: no" >&5
5216 echo "${ECHO_T}no" >&6
5219 test -n "$ac_ct_F77" && break
5220 done
5222 F77=$ac_ct_F77
5226 # Provide some information about the compiler.
5227 echo "$as_me:5227:" \
5228 "checking for Fortran 77 compiler version" >&5
5229 ac_compiler=`set X $ac_compile; echo $2`
5230 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5231 (eval $ac_compiler --version </dev/null >&5) 2>&5
5232 ac_status=$?
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); }
5235 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5236 (eval $ac_compiler -v </dev/null >&5) 2>&5
5237 ac_status=$?
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); }
5240 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5241 (eval $ac_compiler -V </dev/null >&5) 2>&5
5242 ac_status=$?
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); }
5245 rm -f a.out
5247 # If we don't use `.F' as extension, the preprocessor is not run on the
5248 # input file. (Note that this only needs to work for GNU compilers.)
5249 ac_save_ext=$ac_ext
5250 ac_ext=F
5251 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5252 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5253 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5255 else
5256 cat >conftest.$ac_ext <<_ACEOF
5257 program main
5258 #ifndef __GNUC__
5259 choke me
5260 #endif
5263 _ACEOF
5264 rm -f conftest.$ac_objext
5265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5266 (eval $ac_compile) 2>conftest.er1
5267 ac_status=$?
5268 grep -v '^ *+' conftest.er1 >conftest.err
5269 rm -f conftest.er1
5270 cat conftest.err >&5
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); } &&
5273 { ac_try='test -z "$ac_f77_werror_flag"
5274 || test ! -s conftest.err'
5275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5276 (eval $ac_try) 2>&5
5277 ac_status=$?
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); }; } &&
5280 { ac_try='test -s conftest.$ac_objext'
5281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5282 (eval $ac_try) 2>&5
5283 ac_status=$?
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); }; }; then
5286 ac_compiler_gnu=yes
5287 else
5288 echo "$as_me: failed program was:" >&5
5289 sed 's/^/| /' conftest.$ac_ext >&5
5291 ac_compiler_gnu=no
5293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5294 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5297 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5298 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5299 ac_ext=$ac_save_ext
5300 ac_test_FFLAGS=${FFLAGS+set}
5301 ac_save_FFLAGS=$FFLAGS
5302 FFLAGS=
5303 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5304 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5305 if test "${ac_cv_prog_f77_g+set}" = set; then
5306 echo $ECHO_N "(cached) $ECHO_C" >&6
5307 else
5308 FFLAGS=-g
5309 cat >conftest.$ac_ext <<_ACEOF
5310 program main
5313 _ACEOF
5314 rm -f conftest.$ac_objext
5315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5316 (eval $ac_compile) 2>conftest.er1
5317 ac_status=$?
5318 grep -v '^ *+' conftest.er1 >conftest.err
5319 rm -f conftest.er1
5320 cat conftest.err >&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); } &&
5323 { ac_try='test -z "$ac_f77_werror_flag"
5324 || test ! -s conftest.err'
5325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5326 (eval $ac_try) 2>&5
5327 ac_status=$?
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); }; } &&
5330 { ac_try='test -s conftest.$ac_objext'
5331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5332 (eval $ac_try) 2>&5
5333 ac_status=$?
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); }; }; then
5336 ac_cv_prog_f77_g=yes
5337 else
5338 echo "$as_me: failed program was:" >&5
5339 sed 's/^/| /' conftest.$ac_ext >&5
5341 ac_cv_prog_f77_g=no
5343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5346 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5347 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5348 if test "$ac_test_FFLAGS" = set; then
5349 FFLAGS=$ac_save_FFLAGS
5350 elif test $ac_cv_prog_f77_g = yes; then
5351 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5352 FFLAGS="-g -O2"
5353 else
5354 FFLAGS="-g"
5356 else
5357 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5358 FFLAGS="-O2"
5359 else
5360 FFLAGS=
5364 G77=`test $ac_compiler_gnu = yes && echo yes`
5365 ac_ext=c
5366 ac_cpp='$CPP $CPPFLAGS'
5367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5373 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5375 # find the maximum length of command line arguments
5376 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5377 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5378 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5379 echo $ECHO_N "(cached) $ECHO_C" >&6
5380 else
5382 teststring="ABCD"
5384 case $build_os in
5385 msdosdjgpp*)
5386 # On DJGPP, this test can blow up pretty badly due to problems in libc
5387 # (any single argument exceeding 2000 bytes causes a buffer overrun
5388 # during glob expansion). Even if it were fixed, the result of this
5389 # check would be larger than it should be.
5390 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5393 gnu*)
5394 # Under GNU Hurd, this test is not required because there is
5395 # no limit to the length of command line arguments.
5396 # Libtool will interpret -1 as no limit whatsoever
5397 lt_cv_sys_max_cmd_len=-1;
5400 cygwin* | mingw*)
5401 # On Win9x/ME, this test blows up -- it succeeds, but takes
5402 # about 5 minutes as the teststring grows exponentially.
5403 # Worse, since 9x/ME are not pre-emptively multitasking,
5404 # you end up with a "frozen" computer, even though with patience
5405 # the test eventually succeeds (with a max line length of 256k).
5406 # Instead, let's just punt: use the minimum linelength reported by
5407 # all of the supported platforms: 8192 (on NT/2K/XP).
5408 lt_cv_sys_max_cmd_len=8192;
5411 amigaos*)
5412 # On AmigaOS with pdksh, this test takes hours, literally.
5413 # So we just punt and use a minimum line length of 8192.
5414 lt_cv_sys_max_cmd_len=8192;
5417 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5418 # This has been around since 386BSD, at least. Likely further.
5419 if test -x /sbin/sysctl; then
5420 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5421 elif test -x /usr/sbin/sysctl; then
5422 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5423 else
5424 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5426 # And add a safety zone
5427 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5429 osf*)
5430 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5431 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5432 # nice to cause kernel panics so lets avoid the loop below.
5433 # First set a reasonable default.
5434 lt_cv_sys_max_cmd_len=16384
5436 if test -x /sbin/sysconfig; then
5437 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5438 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5439 esac
5443 # If test is not a shell built-in, we'll probably end up computing a
5444 # maximum length that is only half of the actual maximum length, but
5445 # we can't tell.
5446 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5447 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5448 = "XX$teststring") >/dev/null 2>&1 &&
5449 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5450 lt_cv_sys_max_cmd_len=$new_result &&
5451 test $i != 17 # 1/2 MB should be enough
5453 i=`expr $i + 1`
5454 teststring=$teststring$teststring
5455 done
5456 teststring=
5457 # Add a significant safety factor because C++ compilers can tack on massive
5458 # amounts of additional arguments before passing them to the linker.
5459 # It appears as though 1/2 is a usable value.
5460 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5462 esac
5466 if test -n $lt_cv_sys_max_cmd_len ; then
5467 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5468 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5469 else
5470 echo "$as_me:$LINENO: result: none" >&5
5471 echo "${ECHO_T}none" >&6
5477 # Check for command to grab the raw symbol name followed by C symbol from nm.
5478 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5479 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5480 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5481 echo $ECHO_N "(cached) $ECHO_C" >&6
5482 else
5484 # These are sane defaults that work on at least a few old systems.
5485 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5487 # Character class describing NM global symbol codes.
5488 symcode='[BCDEGRST]'
5490 # Regexp to match symbols that can be accessed directly from C.
5491 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5493 # Transform an extracted symbol line into a proper C declaration
5494 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5496 # Transform an extracted symbol line into symbol name and symbol address
5497 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'"
5499 # Define system-specific variables.
5500 case $host_os in
5501 aix*)
5502 symcode='[BCDT]'
5504 cygwin* | mingw* | pw32*)
5505 symcode='[ABCDGISTW]'
5507 hpux*) # Its linker distinguishes data from code symbols
5508 if test "$host_cpu" = ia64; then
5509 symcode='[ABCDEGRST]'
5511 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5512 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'"
5514 linux*)
5515 if test "$host_cpu" = ia64; then
5516 symcode='[ABCDGIRSTW]'
5517 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5518 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'"
5521 irix* | nonstopux*)
5522 symcode='[BCDEGRST]'
5524 osf*)
5525 symcode='[BCDEGQRST]'
5527 solaris* | sysv5*)
5528 symcode='[BDRT]'
5530 sysv4)
5531 symcode='[DFNSTU]'
5533 esac
5535 # Handle CRLF in mingw tool chain
5536 opt_cr=
5537 case $build_os in
5538 mingw*)
5539 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5541 esac
5543 # If we're using GNU nm, then use its standard symbol codes.
5544 case `$NM -V 2>&1` in
5545 *GNU* | *'with BFD'*)
5546 symcode='[ABCDGIRSTW]' ;;
5547 esac
5549 # Try without a prefix undercore, then with it.
5550 for ac_symprfx in "" "_"; do
5552 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5553 symxfrm="\\1 $ac_symprfx\\2 \\2"
5555 # Write the raw and C identifiers.
5556 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5558 # Check to see that the pipe works correctly.
5559 pipe_works=no
5561 rm -f conftest*
5562 cat > conftest.$ac_ext <<EOF
5563 #ifdef __cplusplus
5564 extern "C" {
5565 #endif
5566 char nm_test_var;
5567 void nm_test_func(){}
5568 #ifdef __cplusplus
5570 #endif
5571 int main(){nm_test_var='a';nm_test_func();return(0);}
5574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5575 (eval $ac_compile) 2>&5
5576 ac_status=$?
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); }; then
5579 # Now try to grab the symbols.
5580 nlist=conftest.nm
5581 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5582 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5583 ac_status=$?
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); } && test -s "$nlist"; then
5586 # Try sorting and uniquifying the output.
5587 if sort "$nlist" | uniq > "$nlist"T; then
5588 mv -f "$nlist"T "$nlist"
5589 else
5590 rm -f "$nlist"T
5593 # Make sure that we snagged all the symbols we need.
5594 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5595 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5596 cat <<EOF > conftest.$ac_ext
5597 #ifdef __cplusplus
5598 extern "C" {
5599 #endif
5602 # Now generate the symbol file.
5603 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5605 cat <<EOF >> conftest.$ac_ext
5606 #if defined (__STDC__) && __STDC__
5607 # define lt_ptr_t void *
5608 #else
5609 # define lt_ptr_t char *
5610 # define const
5611 #endif
5613 /* The mapping between symbol names and symbols. */
5614 const struct {
5615 const char *name;
5616 lt_ptr_t address;
5618 lt_preloaded_symbols[] =
5621 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5622 cat <<\EOF >> conftest.$ac_ext
5623 {0, (lt_ptr_t) 0}
5626 #ifdef __cplusplus
5628 #endif
5630 # Now try linking the two files.
5631 mv conftest.$ac_objext conftstm.$ac_objext
5632 lt_save_LIBS="$LIBS"
5633 lt_save_CFLAGS="$CFLAGS"
5634 LIBS="conftstm.$ac_objext"
5635 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5637 (eval $ac_link) 2>&5
5638 ac_status=$?
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5641 pipe_works=yes
5643 LIBS="$lt_save_LIBS"
5644 CFLAGS="$lt_save_CFLAGS"
5645 else
5646 echo "cannot find nm_test_func in $nlist" >&5
5648 else
5649 echo "cannot find nm_test_var in $nlist" >&5
5651 else
5652 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5654 else
5655 echo "$progname: failed program was:" >&5
5656 cat conftest.$ac_ext >&5
5658 rm -f conftest* conftst*
5660 # Do not use the global_symbol_pipe unless it works.
5661 if test "$pipe_works" = yes; then
5662 break
5663 else
5664 lt_cv_sys_global_symbol_pipe=
5666 done
5670 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5671 lt_cv_sys_global_symbol_to_cdecl=
5673 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5674 echo "$as_me:$LINENO: result: failed" >&5
5675 echo "${ECHO_T}failed" >&6
5676 else
5677 echo "$as_me:$LINENO: result: ok" >&5
5678 echo "${ECHO_T}ok" >&6
5681 echo "$as_me:$LINENO: checking for objdir" >&5
5682 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5683 if test "${lt_cv_objdir+set}" = set; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5685 else
5686 rm -f .libs 2>/dev/null
5687 mkdir .libs 2>/dev/null
5688 if test -d .libs; then
5689 lt_cv_objdir=.libs
5690 else
5691 # MS-DOS does not allow filenames that begin with a dot.
5692 lt_cv_objdir=_libs
5694 rmdir .libs 2>/dev/null
5696 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5697 echo "${ECHO_T}$lt_cv_objdir" >&6
5698 objdir=$lt_cv_objdir
5704 case $host_os in
5705 aix3*)
5706 # AIX sometimes has problems with the GCC collect2 program. For some
5707 # reason, if we set the COLLECT_NAMES environment variable, the problems
5708 # vanish in a puff of smoke.
5709 if test "X${COLLECT_NAMES+set}" != Xset; then
5710 COLLECT_NAMES=
5711 export COLLECT_NAMES
5714 esac
5716 # Sed substitution that helps us do robust quoting. It backslashifies
5717 # metacharacters that are still active within double-quoted strings.
5718 Xsed='sed -e s/^X//'
5719 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5721 # Same as above, but do not quote variable references.
5722 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5724 # Sed substitution to delay expansion of an escaped shell variable in a
5725 # double_quote_subst'ed string.
5726 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5728 # Sed substitution to avoid accidental globbing in evaled expressions
5729 no_glob_subst='s/\*/\\\*/g'
5731 # Constants:
5732 rm="rm -f"
5734 # Global variables:
5735 default_ofile=libtool
5736 can_build_shared=yes
5738 # All known linkers require a `.a' archive for static linking (except M$VC,
5739 # which needs '.lib').
5740 libext=a
5741 ltmain="$ac_aux_dir/ltmain.sh"
5742 ofile="$default_ofile"
5743 with_gnu_ld="$lt_cv_prog_gnu_ld"
5745 if test -n "$ac_tool_prefix"; then
5746 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5747 set dummy ${ac_tool_prefix}ar; ac_word=$2
5748 echo "$as_me:$LINENO: checking for $ac_word" >&5
5749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5750 if test "${ac_cv_prog_AR+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5752 else
5753 if test -n "$AR"; then
5754 ac_cv_prog_AR="$AR" # Let the user override the test.
5755 else
5756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 for as_dir in $PATH
5759 IFS=$as_save_IFS
5760 test -z "$as_dir" && as_dir=.
5761 for ac_exec_ext in '' $ac_executable_extensions; do
5762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5763 ac_cv_prog_AR="${ac_tool_prefix}ar"
5764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5765 break 2
5767 done
5768 done
5772 AR=$ac_cv_prog_AR
5773 if test -n "$AR"; then
5774 echo "$as_me:$LINENO: result: $AR" >&5
5775 echo "${ECHO_T}$AR" >&6
5776 else
5777 echo "$as_me:$LINENO: result: no" >&5
5778 echo "${ECHO_T}no" >&6
5782 if test -z "$ac_cv_prog_AR"; then
5783 ac_ct_AR=$AR
5784 # Extract the first word of "ar", so it can be a program name with args.
5785 set dummy ar; ac_word=$2
5786 echo "$as_me:$LINENO: checking for $ac_word" >&5
5787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5788 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5790 else
5791 if test -n "$ac_ct_AR"; then
5792 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5793 else
5794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795 for as_dir in $PATH
5797 IFS=$as_save_IFS
5798 test -z "$as_dir" && as_dir=.
5799 for ac_exec_ext in '' $ac_executable_extensions; do
5800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5801 ac_cv_prog_ac_ct_AR="ar"
5802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5803 break 2
5805 done
5806 done
5808 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5811 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5812 if test -n "$ac_ct_AR"; then
5813 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5814 echo "${ECHO_T}$ac_ct_AR" >&6
5815 else
5816 echo "$as_me:$LINENO: result: no" >&5
5817 echo "${ECHO_T}no" >&6
5820 AR=$ac_ct_AR
5821 else
5822 AR="$ac_cv_prog_AR"
5825 if test -n "$ac_tool_prefix"; then
5826 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5827 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5828 echo "$as_me:$LINENO: checking for $ac_word" >&5
5829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5830 if test "${ac_cv_prog_RANLIB+set}" = set; then
5831 echo $ECHO_N "(cached) $ECHO_C" >&6
5832 else
5833 if test -n "$RANLIB"; then
5834 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5835 else
5836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837 for as_dir in $PATH
5839 IFS=$as_save_IFS
5840 test -z "$as_dir" && as_dir=.
5841 for ac_exec_ext in '' $ac_executable_extensions; do
5842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5843 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5845 break 2
5847 done
5848 done
5852 RANLIB=$ac_cv_prog_RANLIB
5853 if test -n "$RANLIB"; then
5854 echo "$as_me:$LINENO: result: $RANLIB" >&5
5855 echo "${ECHO_T}$RANLIB" >&6
5856 else
5857 echo "$as_me:$LINENO: result: no" >&5
5858 echo "${ECHO_T}no" >&6
5862 if test -z "$ac_cv_prog_RANLIB"; then
5863 ac_ct_RANLIB=$RANLIB
5864 # Extract the first word of "ranlib", so it can be a program name with args.
5865 set dummy ranlib; ac_word=$2
5866 echo "$as_me:$LINENO: checking for $ac_word" >&5
5867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5868 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5869 echo $ECHO_N "(cached) $ECHO_C" >&6
5870 else
5871 if test -n "$ac_ct_RANLIB"; then
5872 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5873 else
5874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875 for as_dir in $PATH
5877 IFS=$as_save_IFS
5878 test -z "$as_dir" && as_dir=.
5879 for ac_exec_ext in '' $ac_executable_extensions; do
5880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5881 ac_cv_prog_ac_ct_RANLIB="ranlib"
5882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5883 break 2
5885 done
5886 done
5888 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5891 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5892 if test -n "$ac_ct_RANLIB"; then
5893 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5894 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5895 else
5896 echo "$as_me:$LINENO: result: no" >&5
5897 echo "${ECHO_T}no" >&6
5900 RANLIB=$ac_ct_RANLIB
5901 else
5902 RANLIB="$ac_cv_prog_RANLIB"
5905 if test -n "$ac_tool_prefix"; then
5906 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5907 set dummy ${ac_tool_prefix}strip; ac_word=$2
5908 echo "$as_me:$LINENO: checking for $ac_word" >&5
5909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5910 if test "${ac_cv_prog_STRIP+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5912 else
5913 if test -n "$STRIP"; then
5914 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5915 else
5916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 for as_dir in $PATH
5919 IFS=$as_save_IFS
5920 test -z "$as_dir" && as_dir=.
5921 for ac_exec_ext in '' $ac_executable_extensions; do
5922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5923 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5925 break 2
5927 done
5928 done
5932 STRIP=$ac_cv_prog_STRIP
5933 if test -n "$STRIP"; then
5934 echo "$as_me:$LINENO: result: $STRIP" >&5
5935 echo "${ECHO_T}$STRIP" >&6
5936 else
5937 echo "$as_me:$LINENO: result: no" >&5
5938 echo "${ECHO_T}no" >&6
5942 if test -z "$ac_cv_prog_STRIP"; then
5943 ac_ct_STRIP=$STRIP
5944 # Extract the first word of "strip", so it can be a program name with args.
5945 set dummy strip; ac_word=$2
5946 echo "$as_me:$LINENO: checking for $ac_word" >&5
5947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5948 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
5950 else
5951 if test -n "$ac_ct_STRIP"; then
5952 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5953 else
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 for as_dir in $PATH
5957 IFS=$as_save_IFS
5958 test -z "$as_dir" && as_dir=.
5959 for ac_exec_ext in '' $ac_executable_extensions; do
5960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5961 ac_cv_prog_ac_ct_STRIP="strip"
5962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5963 break 2
5965 done
5966 done
5968 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5971 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5972 if test -n "$ac_ct_STRIP"; then
5973 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5974 echo "${ECHO_T}$ac_ct_STRIP" >&6
5975 else
5976 echo "$as_me:$LINENO: result: no" >&5
5977 echo "${ECHO_T}no" >&6
5980 STRIP=$ac_ct_STRIP
5981 else
5982 STRIP="$ac_cv_prog_STRIP"
5986 old_CC="$CC"
5987 old_CFLAGS="$CFLAGS"
5989 # Set sane defaults for various variables
5990 test -z "$AR" && AR=ar
5991 test -z "$AR_FLAGS" && AR_FLAGS=cru
5992 test -z "$AS" && AS=as
5993 test -z "$CC" && CC=cc
5994 test -z "$LTCC" && LTCC=$CC
5995 test -z "$DLLTOOL" && DLLTOOL=dlltool
5996 test -z "$LD" && LD=ld
5997 test -z "$LN_S" && LN_S="ln -s"
5998 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5999 test -z "$NM" && NM=nm
6000 test -z "$SED" && SED=sed
6001 test -z "$OBJDUMP" && OBJDUMP=objdump
6002 test -z "$RANLIB" && RANLIB=:
6003 test -z "$STRIP" && STRIP=:
6004 test -z "$ac_objext" && ac_objext=o
6006 # Determine commands to create old-style static archives.
6007 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6008 old_postinstall_cmds='chmod 644 $oldlib'
6009 old_postuninstall_cmds=
6011 if test -n "$RANLIB"; then
6012 case $host_os in
6013 openbsd*)
6014 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6017 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6019 esac
6020 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6023 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
6025 # Only perform the check for file, if the check method requires it
6026 case $deplibs_check_method in
6027 file_magic*)
6028 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6029 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6030 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6031 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6032 echo $ECHO_N "(cached) $ECHO_C" >&6
6033 else
6034 case $MAGIC_CMD in
6035 [\\/*] | ?:[\\/]*)
6036 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6039 lt_save_MAGIC_CMD="$MAGIC_CMD"
6040 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6041 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6042 for ac_dir in $ac_dummy; do
6043 IFS="$lt_save_ifs"
6044 test -z "$ac_dir" && ac_dir=.
6045 if test -f $ac_dir/${ac_tool_prefix}file; then
6046 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6047 if test -n "$file_magic_test_file"; then
6048 case $deplibs_check_method in
6049 "file_magic "*)
6050 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6051 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6052 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6053 $EGREP "$file_magic_regex" > /dev/null; then
6055 else
6056 cat <<EOF 1>&2
6058 *** Warning: the command libtool uses to detect shared libraries,
6059 *** $file_magic_cmd, produces output that libtool cannot recognize.
6060 *** The result is that libtool may fail to recognize shared libraries
6061 *** as such. This will affect the creation of libtool libraries that
6062 *** depend on shared libraries, but programs linked with such libtool
6063 *** libraries will work regardless of this problem. Nevertheless, you
6064 *** may want to report the problem to your system manager and/or to
6065 *** bug-libtool@gnu.org
6068 fi ;;
6069 esac
6071 break
6073 done
6074 IFS="$lt_save_ifs"
6075 MAGIC_CMD="$lt_save_MAGIC_CMD"
6077 esac
6080 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6081 if test -n "$MAGIC_CMD"; then
6082 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6083 echo "${ECHO_T}$MAGIC_CMD" >&6
6084 else
6085 echo "$as_me:$LINENO: result: no" >&5
6086 echo "${ECHO_T}no" >&6
6089 if test -z "$lt_cv_path_MAGIC_CMD"; then
6090 if test -n "$ac_tool_prefix"; then
6091 echo "$as_me:$LINENO: checking for file" >&5
6092 echo $ECHO_N "checking for file... $ECHO_C" >&6
6093 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6095 else
6096 case $MAGIC_CMD in
6097 [\\/*] | ?:[\\/]*)
6098 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6101 lt_save_MAGIC_CMD="$MAGIC_CMD"
6102 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6103 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6104 for ac_dir in $ac_dummy; do
6105 IFS="$lt_save_ifs"
6106 test -z "$ac_dir" && ac_dir=.
6107 if test -f $ac_dir/file; then
6108 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6109 if test -n "$file_magic_test_file"; then
6110 case $deplibs_check_method in
6111 "file_magic "*)
6112 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6113 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6114 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6115 $EGREP "$file_magic_regex" > /dev/null; then
6117 else
6118 cat <<EOF 1>&2
6120 *** Warning: the command libtool uses to detect shared libraries,
6121 *** $file_magic_cmd, produces output that libtool cannot recognize.
6122 *** The result is that libtool may fail to recognize shared libraries
6123 *** as such. This will affect the creation of libtool libraries that
6124 *** depend on shared libraries, but programs linked with such libtool
6125 *** libraries will work regardless of this problem. Nevertheless, you
6126 *** may want to report the problem to your system manager and/or to
6127 *** bug-libtool@gnu.org
6130 fi ;;
6131 esac
6133 break
6135 done
6136 IFS="$lt_save_ifs"
6137 MAGIC_CMD="$lt_save_MAGIC_CMD"
6139 esac
6142 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6143 if test -n "$MAGIC_CMD"; then
6144 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6145 echo "${ECHO_T}$MAGIC_CMD" >&6
6146 else
6147 echo "$as_me:$LINENO: result: no" >&5
6148 echo "${ECHO_T}no" >&6
6151 else
6152 MAGIC_CMD=:
6158 esac
6160 enable_dlopen=no
6161 enable_win32_dll=no
6163 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6164 if test "${enable_libtool_lock+set}" = set; then
6165 enableval="$enable_libtool_lock"
6168 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6171 # Check whether --with-pic or --without-pic was given.
6172 if test "${with_pic+set}" = set; then
6173 withval="$with_pic"
6174 pic_mode="$withval"
6175 else
6176 pic_mode=default
6178 test -z "$pic_mode" && pic_mode=default
6180 # Use C for the default configuration in the libtool script
6181 tagname=
6182 lt_save_CC="$CC"
6183 ac_ext=c
6184 ac_cpp='$CPP $CPPFLAGS'
6185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6190 # Source file extension for C test sources.
6191 ac_ext=c
6193 # Object file extension for compiled C test sources.
6194 objext=o
6195 objext=$objext
6197 # Code to be used in simple compile tests
6198 lt_simple_compile_test_code="int some_variable = 0;\n"
6200 # Code to be used in simple link tests
6201 lt_simple_link_test_code='int main(){return(0);}\n'
6204 # If no C compiler was specified, use CC.
6205 LTCC=${LTCC-"$CC"}
6207 # Allow CC to be a program name with arguments.
6208 compiler=$CC
6212 # Check for any special shared library compilation flags.
6214 lt_prog_cc_shlib=
6215 if test "$GCC" = no; then
6216 case $host_os in
6217 sco3.2v5*)
6218 lt_prog_cc_shlib='-belf'
6220 esac
6222 if test -n "$lt_prog_cc_shlib"; then
6223 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6224 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6225 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6226 else
6227 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6228 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6229 lt_cv_prog_cc_can_build_shared=no
6235 # Check to make sure the static flag actually works.
6237 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6238 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6239 if test "${lt_prog_compiler_static_works+set}" = set; then
6240 echo $ECHO_N "(cached) $ECHO_C" >&6
6241 else
6242 lt_prog_compiler_static_works=no
6243 save_LDFLAGS="$LDFLAGS"
6244 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6245 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6246 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6247 # The compiler can only warn and ignore the option if not recognized
6248 # So say no if there are warnings
6249 if test -s conftest.err; then
6250 # Append any errors to the config.log.
6251 cat conftest.err 1>&5
6252 else
6253 lt_prog_compiler_static_works=yes
6256 $rm conftest*
6257 LDFLAGS="$save_LDFLAGS"
6260 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6261 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6263 if test x"$lt_prog_compiler_static_works" = xyes; then
6265 else
6266 lt_prog_compiler_static=
6272 lt_prog_compiler_no_builtin_flag=
6274 if test "$GCC" = yes; then
6275 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6278 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6279 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6280 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6281 echo $ECHO_N "(cached) $ECHO_C" >&6
6282 else
6283 lt_cv_prog_compiler_rtti_exceptions=no
6284 ac_outfile=conftest.$ac_objext
6285 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6286 lt_compiler_flag="-fno-rtti -fno-exceptions"
6287 # Insert the option either (1) after the last *FLAGS variable, or
6288 # (2) before a word containing "conftest.", or (3) at the end.
6289 # Note that $ac_compile itself does not contain backslashes and begins
6290 # with a dollar sign (not a hyphen), so the echo should work correctly.
6291 # The option is referenced via a variable to avoid confusing sed.
6292 lt_compile=`echo "$ac_compile" | $SED \
6293 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6294 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6295 -e 's:$: $lt_compiler_flag:'`
6296 (eval echo "\"\$as_me:6296: $lt_compile\"" >&5)
6297 (eval "$lt_compile" 2>conftest.err)
6298 ac_status=$?
6299 cat conftest.err >&5
6300 echo "$as_me:6300: \$? = $ac_status" >&5
6301 if (exit $ac_status) && test -s "$ac_outfile"; then
6302 # The compiler can only warn and ignore the option if not recognized
6303 # So say no if there are warnings
6304 if test ! -s conftest.err; then
6305 lt_cv_prog_compiler_rtti_exceptions=yes
6308 $rm conftest*
6311 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6312 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6314 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6315 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6316 else
6322 lt_prog_compiler_wl=
6323 lt_prog_compiler_pic=
6324 lt_prog_compiler_static=
6326 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6327 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6329 if test "$GCC" = yes; then
6330 lt_prog_compiler_wl='-Wl,'
6331 lt_prog_compiler_static='-static'
6333 case $host_os in
6334 aix*)
6335 # All AIX code is PIC.
6336 if test "$host_cpu" = ia64; then
6337 # AIX 5 now supports IA64 processor
6338 lt_prog_compiler_static='-Bstatic'
6342 amigaos*)
6343 # FIXME: we need at least 68020 code to build shared libraries, but
6344 # adding the `-m68020' flag to GCC prevents building anything better,
6345 # like `-m68040'.
6346 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6349 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6350 # PIC is the default for these OSes.
6353 mingw* | pw32* | os2*)
6354 # This hack is so that the source file can tell whether it is being
6355 # built for inclusion in a dll (and should export symbols for example).
6356 lt_prog_compiler_pic='-DDLL_EXPORT'
6359 darwin* | rhapsody*)
6360 # PIC is the default on this platform
6361 # Common symbols not allowed in MH_DYLIB files
6362 lt_prog_compiler_pic='-fno-common'
6365 msdosdjgpp*)
6366 # Just because we use GCC doesn't mean we suddenly get shared libraries
6367 # on systems that don't support them.
6368 lt_prog_compiler_can_build_shared=no
6369 enable_shared=no
6372 sysv4*MP*)
6373 if test -d /usr/nec; then
6374 lt_prog_compiler_pic=-Kconform_pic
6378 hpux*)
6379 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6380 # not for PA HP-UX.
6381 case "$host_cpu" in
6382 hppa*64*|ia64*)
6383 # +Z the default
6386 lt_prog_compiler_pic='-fPIC'
6388 esac
6392 lt_prog_compiler_pic='-fPIC'
6394 esac
6395 else
6396 # PORTME Check for flag to pass linker flags through the system compiler.
6397 case $host_os in
6398 aix*)
6399 lt_prog_compiler_wl='-Wl,'
6400 if test "$host_cpu" = ia64; then
6401 # AIX 5 now supports IA64 processor
6402 lt_prog_compiler_static='-Bstatic'
6403 else
6404 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6407 darwin*)
6408 # PIC is the default on this platform
6409 # Common symbols not allowed in MH_DYLIB files
6410 case "$cc_basename" in
6411 xlc*)
6412 lt_prog_compiler_pic='-qnocommon'
6413 lt_prog_compiler_wl='-Wl,'
6415 esac
6418 mingw* | pw32* | os2*)
6419 # This hack is so that the source file can tell whether it is being
6420 # built for inclusion in a dll (and should export symbols for example).
6421 lt_prog_compiler_pic='-DDLL_EXPORT'
6424 hpux9* | hpux10* | hpux11*)
6425 lt_prog_compiler_wl='-Wl,'
6426 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6427 # not for PA HP-UX.
6428 case "$host_cpu" in
6429 hppa*64*|ia64*)
6430 # +Z the default
6433 lt_prog_compiler_pic='+Z'
6435 esac
6436 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6437 lt_prog_compiler_static='${wl}-a ${wl}archive'
6440 irix5* | irix6* | nonstopux*)
6441 lt_prog_compiler_wl='-Wl,'
6442 # PIC (with -KPIC) is the default.
6443 lt_prog_compiler_static='-non_shared'
6446 newsos6)
6447 lt_prog_compiler_pic='-KPIC'
6448 lt_prog_compiler_static='-Bstatic'
6451 linux*)
6452 case $cc_basename in
6453 icc* | ecc*)
6454 lt_prog_compiler_wl='-Wl,'
6455 lt_prog_compiler_pic='-KPIC'
6456 lt_prog_compiler_static='-static'
6458 pgcc | pgf77 | pgf90)
6459 # Portland Group compilers (*not* the Pentium gcc compiler,
6460 # which looks to be a dead project)
6461 lt_prog_compiler_wl='-Wl,'
6462 lt_prog_compiler_pic='-fpic'
6463 lt_prog_compiler_static='-static'
6465 ccc*)
6466 lt_prog_compiler_wl='-Wl,'
6467 # All Alpha code is PIC.
6468 lt_prog_compiler_static='-non_shared'
6470 como)
6471 lt_prog_compiler_wl='-lopt='
6473 esac
6476 osf3* | osf4* | osf5*)
6477 lt_prog_compiler_wl='-Wl,'
6478 # All OSF/1 code is PIC.
6479 lt_prog_compiler_static='-non_shared'
6482 sco3.2v5*)
6483 lt_prog_compiler_pic='-Kpic'
6484 lt_prog_compiler_static='-dn'
6487 solaris*)
6488 lt_prog_compiler_wl='-Wl,'
6489 lt_prog_compiler_pic='-KPIC'
6490 lt_prog_compiler_static='-Bstatic'
6493 sunos4*)
6494 lt_prog_compiler_wl='-Qoption ld '
6495 lt_prog_compiler_pic='-PIC'
6496 lt_prog_compiler_static='-Bstatic'
6499 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6500 lt_prog_compiler_wl='-Wl,'
6501 lt_prog_compiler_pic='-KPIC'
6502 lt_prog_compiler_static='-Bstatic'
6505 sysv4*MP*)
6506 if test -d /usr/nec ;then
6507 lt_prog_compiler_pic='-Kconform_pic'
6508 lt_prog_compiler_static='-Bstatic'
6512 unicos*)
6513 lt_prog_compiler_wl='-Wl,'
6514 lt_prog_compiler_can_build_shared=no
6517 uts4*)
6518 lt_prog_compiler_pic='-pic'
6519 lt_prog_compiler_static='-Bstatic'
6523 lt_prog_compiler_can_build_shared=no
6525 esac
6528 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6529 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6532 # Check to make sure the PIC flag actually works.
6534 if test -n "$lt_prog_compiler_pic"; then
6536 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6537 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6538 if test "${lt_prog_compiler_pic_works+set}" = set; then
6539 echo $ECHO_N "(cached) $ECHO_C" >&6
6540 else
6541 lt_prog_compiler_pic_works=no
6542 ac_outfile=conftest.$ac_objext
6543 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6544 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6545 # Insert the option either (1) after the last *FLAGS variable, or
6546 # (2) before a word containing "conftest.", or (3) at the end.
6547 # Note that $ac_compile itself does not contain backslashes and begins
6548 # with a dollar sign (not a hyphen), so the echo should work correctly.
6549 # The option is referenced via a variable to avoid confusing sed.
6550 lt_compile=`echo "$ac_compile" | $SED \
6551 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6552 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6553 -e 's:$: $lt_compiler_flag:'`
6554 (eval echo "\"\$as_me:6554: $lt_compile\"" >&5)
6555 (eval "$lt_compile" 2>conftest.err)
6556 ac_status=$?
6557 cat conftest.err >&5
6558 echo "$as_me:6558: \$? = $ac_status" >&5
6559 if (exit $ac_status) && test -s "$ac_outfile"; then
6560 # The compiler can only warn and ignore the option if not recognized
6561 # So say no if there are warnings
6562 if test ! -s conftest.err; then
6563 lt_prog_compiler_pic_works=yes
6566 $rm conftest*
6569 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6570 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6572 if test x"$lt_prog_compiler_pic_works" = xyes; then
6573 case $lt_prog_compiler_pic in
6574 "" | " "*) ;;
6575 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6576 esac
6577 else
6578 lt_prog_compiler_pic=
6579 lt_prog_compiler_can_build_shared=no
6583 case "$host_os" in
6584 # For platforms which do not support PIC, -DPIC is meaningless:
6585 *djgpp*)
6586 lt_prog_compiler_pic=
6589 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6591 esac
6593 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6594 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6595 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6597 else
6598 lt_cv_prog_compiler_c_o=no
6599 $rm -r conftest 2>/dev/null
6600 mkdir conftest
6601 cd conftest
6602 mkdir out
6603 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6605 lt_compiler_flag="-o out/conftest2.$ac_objext"
6606 # Insert the option either (1) after the last *FLAGS variable, or
6607 # (2) before a word containing "conftest.", or (3) at the end.
6608 # Note that $ac_compile itself does not contain backslashes and begins
6609 # with a dollar sign (not a hyphen), so the echo should work correctly.
6610 lt_compile=`echo "$ac_compile" | $SED \
6611 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6612 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6613 -e 's:$: $lt_compiler_flag:'`
6614 (eval echo "\"\$as_me:6614: $lt_compile\"" >&5)
6615 (eval "$lt_compile" 2>out/conftest.err)
6616 ac_status=$?
6617 cat out/conftest.err >&5
6618 echo "$as_me:6618: \$? = $ac_status" >&5
6619 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6620 then
6621 # The compiler can only warn and ignore the option if not recognized
6622 # So say no if there are warnings
6623 if test ! -s out/conftest.err; then
6624 lt_cv_prog_compiler_c_o=yes
6627 chmod u+w .
6628 $rm conftest*
6629 # SGI C++ compiler will create directory out/ii_files/ for
6630 # template instantiation
6631 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6632 $rm out/* && rmdir out
6633 cd ..
6634 rmdir conftest
6635 $rm conftest*
6638 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6639 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6642 hard_links="nottested"
6643 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6644 # do not overwrite the value of need_locks provided by the user
6645 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6646 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6647 hard_links=yes
6648 $rm conftest*
6649 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6650 touch conftest.a
6651 ln conftest.a conftest.b 2>&5 || hard_links=no
6652 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6653 echo "$as_me:$LINENO: result: $hard_links" >&5
6654 echo "${ECHO_T}$hard_links" >&6
6655 if test "$hard_links" = no; then
6656 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6657 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6658 need_locks=warn
6660 else
6661 need_locks=no
6664 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6665 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6667 runpath_var=
6668 allow_undefined_flag=
6669 enable_shared_with_static_runtimes=no
6670 archive_cmds=
6671 archive_expsym_cmds=
6672 old_archive_From_new_cmds=
6673 old_archive_from_expsyms_cmds=
6674 export_dynamic_flag_spec=
6675 whole_archive_flag_spec=
6676 thread_safe_flag_spec=
6677 hardcode_libdir_flag_spec=
6678 hardcode_libdir_flag_spec_ld=
6679 hardcode_libdir_separator=
6680 hardcode_direct=no
6681 hardcode_minus_L=no
6682 hardcode_shlibpath_var=unsupported
6683 link_all_deplibs=unknown
6684 hardcode_automatic=no
6685 module_cmds=
6686 module_expsym_cmds=
6687 always_export_symbols=no
6688 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6689 # include_expsyms should be a list of space-separated symbols to be *always*
6690 # included in the symbol list
6691 include_expsyms=
6692 # exclude_expsyms can be an extended regexp of symbols to exclude
6693 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6694 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6695 # as well as any symbol that contains `d'.
6696 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6697 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6698 # platforms (ab)use it in PIC code, but their linkers get confused if
6699 # the symbol is explicitly referenced. Since portable code cannot
6700 # rely on this symbol name, it's probably fine to never include it in
6701 # preloaded symbol tables.
6702 extract_expsyms_cmds=
6704 case $host_os in
6705 cygwin* | mingw* | pw32*)
6706 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6707 # When not using gcc, we currently assume that we are using
6708 # Microsoft Visual C++.
6709 if test "$GCC" != yes; then
6710 with_gnu_ld=no
6713 openbsd*)
6714 with_gnu_ld=no
6716 esac
6718 ld_shlibs=yes
6719 if test "$with_gnu_ld" = yes; then
6720 # If archive_cmds runs LD, not CC, wlarc should be empty
6721 wlarc='${wl}'
6723 # See if GNU ld supports shared libraries.
6724 case $host_os in
6725 aix3* | aix4* | aix5*)
6726 # On AIX/PPC, the GNU linker is very broken
6727 if test "$host_cpu" != ia64; then
6728 ld_shlibs=no
6729 cat <<EOF 1>&2
6731 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6732 *** to be unable to reliably create shared libraries on AIX.
6733 *** Therefore, libtool is disabling shared libraries support. If you
6734 *** really care for shared libraries, you may want to modify your PATH
6735 *** so that a non-GNU linker is found, and then restart.
6741 amigaos*)
6742 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)'
6743 hardcode_libdir_flag_spec='-L$libdir'
6744 hardcode_minus_L=yes
6746 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6747 # that the semantics of dynamic libraries on AmigaOS, at least up
6748 # to version 4, is to share data among multiple programs linked
6749 # with the same dynamic library. Since this doesn't match the
6750 # behavior of shared libraries on other platforms, we can't use
6751 # them.
6752 ld_shlibs=no
6755 beos*)
6756 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6757 allow_undefined_flag=unsupported
6758 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6759 # support --undefined. This deserves some investigation. FIXME
6760 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6761 else
6762 ld_shlibs=no
6766 cygwin* | mingw* | pw32*)
6767 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6768 # as there is no search path for DLLs.
6769 hardcode_libdir_flag_spec='-L$libdir'
6770 allow_undefined_flag=unsupported
6771 always_export_symbols=no
6772 enable_shared_with_static_runtimes=yes
6773 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6775 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6776 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6777 # If the export-symbols file already is a .def file (1st line
6778 # is EXPORTS), use it as is; otherwise, prepend...
6779 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6780 cp $export_symbols $output_objdir/$soname.def;
6781 else
6782 echo EXPORTS > $output_objdir/$soname.def;
6783 cat $export_symbols >> $output_objdir/$soname.def;
6785 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6786 else
6787 ld_shlibs=no
6791 netbsd*)
6792 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6793 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6794 wlarc=
6795 else
6796 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6797 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6801 solaris* | sysv5*)
6802 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6803 ld_shlibs=no
6804 cat <<EOF 1>&2
6806 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6807 *** create shared libraries on Solaris systems. Therefore, libtool
6808 *** is disabling shared libraries support. We urge you to upgrade GNU
6809 *** binutils to release 2.9.1 or newer. Another option is to modify
6810 *** your PATH or compiler configuration so that the native linker is
6811 *** used, and then restart.
6814 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6815 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6816 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6817 else
6818 ld_shlibs=no
6822 sunos4*)
6823 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6824 wlarc=
6825 hardcode_direct=yes
6826 hardcode_shlibpath_var=no
6829 linux*)
6830 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6831 tmp_addflag=
6832 case $CC,$host_cpu in
6833 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
6834 tmp_addflag=' -fpic' ;;
6835 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6836 tmp_addflag=' -i_dynamic' ;;
6837 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6838 tmp_addflag=' -i_dynamic -nofor_main' ;;
6839 ifc* | ifort*) # Intel Fortran compiler
6840 tmp_addflag=' -nofor_main' ;;
6841 esac
6842 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6843 supports_anon_versioning=no
6844 case `$LD -v 2>/dev/null` in
6845 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6846 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6847 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6848 *\ 2.11.*) ;; # other 2.11 versions
6849 *) supports_anon_versioning=yes ;;
6850 esac
6851 if test $supports_anon_versioning = yes; then
6852 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6853 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6854 $echo "local: *; };" >> $output_objdir/$libname.ver~
6855 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6856 else
6857 archive_expsym_cmds=$archive_cmds
6859 else
6860 ld_shlibs=no
6865 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6866 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6867 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6868 else
6869 ld_shlibs=no
6872 esac
6874 if test "$ld_shlibs" = yes; then
6875 runpath_var=LD_RUN_PATH
6876 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6877 export_dynamic_flag_spec='${wl}--export-dynamic'
6878 # ancient GNU ld didn't support --whole-archive et. al.
6879 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6880 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6881 else
6882 whole_archive_flag_spec=
6885 else
6886 # PORTME fill in a description of your system's linker (not GNU ld)
6887 case $host_os in
6888 aix3*)
6889 allow_undefined_flag=unsupported
6890 always_export_symbols=yes
6891 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'
6892 # Note: this linker hardcodes the directories in LIBPATH if there
6893 # are no directories specified by -L.
6894 hardcode_minus_L=yes
6895 if test "$GCC" = yes && test -z "$link_static_flag"; then
6896 # Neither direct hardcoding nor static linking is supported with a
6897 # broken collect2.
6898 hardcode_direct=unsupported
6902 aix4* | aix5*)
6903 if test "$host_cpu" = ia64; then
6904 # On IA64, the linker does run time linking by default, so we don't
6905 # have to do anything special.
6906 aix_use_runtimelinking=no
6907 exp_sym_flag='-Bexport'
6908 no_entry_flag=""
6909 else
6910 # If we're using GNU nm, then we don't want the "-C" option.
6911 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6912 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6913 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'
6914 else
6915 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'
6917 aix_use_runtimelinking=no
6919 # Test if we are trying to use run time linking or normal
6920 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6921 # need to do runtime linking.
6922 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6923 for ld_flag in $LDFLAGS; do
6924 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6925 aix_use_runtimelinking=yes
6926 break
6928 done
6929 esac
6931 exp_sym_flag='-bexport'
6932 no_entry_flag='-bnoentry'
6935 # When large executables or shared objects are built, AIX ld can
6936 # have problems creating the table of contents. If linking a library
6937 # or program results in "error TOC overflow" add -mminimal-toc to
6938 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6939 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6941 archive_cmds=''
6942 hardcode_direct=yes
6943 hardcode_libdir_separator=':'
6944 link_all_deplibs=yes
6946 if test "$GCC" = yes; then
6947 case $host_os in aix4.[012]|aix4.[012].*)
6948 # We only want to do this on AIX 4.2 and lower, the check
6949 # below for broken collect2 doesn't work under 4.3+
6950 collect2name=`${CC} -print-prog-name=collect2`
6951 if test -f "$collect2name" && \
6952 strings "$collect2name" | grep resolve_lib_name >/dev/null
6953 then
6954 # We have reworked collect2
6955 hardcode_direct=yes
6956 else
6957 # We have old collect2
6958 hardcode_direct=unsupported
6959 # It fails to find uninstalled libraries when the uninstalled
6960 # path is not listed in the libpath. Setting hardcode_minus_L
6961 # to unsupported forces relinking
6962 hardcode_minus_L=yes
6963 hardcode_libdir_flag_spec='-L$libdir'
6964 hardcode_libdir_separator=
6966 esac
6967 shared_flag='-shared'
6968 if test "$aix_use_runtimelinking" = yes; then
6969 shared_flag="$shared_flag "'${wl}-G'
6971 else
6972 # not using gcc
6973 if test "$host_cpu" = ia64; then
6974 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6975 # chokes on -Wl,-G. The following line is correct:
6976 shared_flag='-G'
6977 else
6978 if test "$aix_use_runtimelinking" = yes; then
6979 shared_flag='${wl}-G'
6980 else
6981 shared_flag='${wl}-bM:SRE'
6986 # It seems that -bexpall does not export symbols beginning with
6987 # underscore (_), so it is better to generate a list of symbols to export.
6988 always_export_symbols=yes
6989 if test "$aix_use_runtimelinking" = yes; then
6990 # Warning - without using the other runtime loading flags (-brtl),
6991 # -berok will link without error, but may produce a broken library.
6992 allow_undefined_flag='-berok'
6993 # Determine the default libpath from the value encoded in an empty executable.
6994 cat >conftest.$ac_ext <<_ACEOF
6995 /* confdefs.h. */
6996 _ACEOF
6997 cat confdefs.h >>conftest.$ac_ext
6998 cat >>conftest.$ac_ext <<_ACEOF
6999 /* end confdefs.h. */
7002 main ()
7006 return 0;
7008 _ACEOF
7009 rm -f conftest.$ac_objext conftest$ac_exeext
7010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7011 (eval $ac_link) 2>conftest.er1
7012 ac_status=$?
7013 grep -v '^ *+' conftest.er1 >conftest.err
7014 rm -f conftest.er1
7015 cat conftest.err >&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); } &&
7018 { ac_try='test -z "$ac_c_werror_flag"
7019 || test ! -s conftest.err'
7020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7021 (eval $ac_try) 2>&5
7022 ac_status=$?
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); }; } &&
7025 { ac_try='test -s conftest$ac_exeext'
7026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7027 (eval $ac_try) 2>&5
7028 ac_status=$?
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); }; }; then
7032 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7034 # Check for a 64-bit object if we didn't find anything.
7035 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; }
7036 }'`; fi
7037 else
7038 echo "$as_me: failed program was:" >&5
7039 sed 's/^/| /' conftest.$ac_ext >&5
7042 rm -f conftest.err conftest.$ac_objext \
7043 conftest$ac_exeext conftest.$ac_ext
7044 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7046 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7047 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"
7048 else
7049 if test "$host_cpu" = ia64; then
7050 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7051 allow_undefined_flag="-z nodefs"
7052 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"
7053 else
7054 # Determine the default libpath from the value encoded in an empty executable.
7055 cat >conftest.$ac_ext <<_ACEOF
7056 /* confdefs.h. */
7057 _ACEOF
7058 cat confdefs.h >>conftest.$ac_ext
7059 cat >>conftest.$ac_ext <<_ACEOF
7060 /* end confdefs.h. */
7063 main ()
7067 return 0;
7069 _ACEOF
7070 rm -f conftest.$ac_objext conftest$ac_exeext
7071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7072 (eval $ac_link) 2>conftest.er1
7073 ac_status=$?
7074 grep -v '^ *+' conftest.er1 >conftest.err
7075 rm -f conftest.er1
7076 cat conftest.err >&5
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); } &&
7079 { ac_try='test -z "$ac_c_werror_flag"
7080 || test ! -s conftest.err'
7081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7082 (eval $ac_try) 2>&5
7083 ac_status=$?
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); }; } &&
7086 { ac_try='test -s conftest$ac_exeext'
7087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088 (eval $ac_try) 2>&5
7089 ac_status=$?
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); }; }; then
7093 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7095 # Check for a 64-bit object if we didn't find anything.
7096 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; }
7097 }'`; fi
7098 else
7099 echo "$as_me: failed program was:" >&5
7100 sed 's/^/| /' conftest.$ac_ext >&5
7103 rm -f conftest.err conftest.$ac_objext \
7104 conftest$ac_exeext conftest.$ac_ext
7105 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7107 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7108 # Warning - without using the other run time loading flags,
7109 # -berok will link without error, but may produce a broken library.
7110 no_undefined_flag=' ${wl}-bernotok'
7111 allow_undefined_flag=' ${wl}-berok'
7112 # -bexpall does not export symbols beginning with underscore (_)
7113 always_export_symbols=yes
7114 # Exported symbols can be pulled into shared objects from archives
7115 whole_archive_flag_spec=' '
7116 archive_cmds_need_lc=yes
7117 # This is similar to how AIX traditionally builds it's shared libraries.
7118 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'
7123 amigaos*)
7124 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)'
7125 hardcode_libdir_flag_spec='-L$libdir'
7126 hardcode_minus_L=yes
7127 # see comment about different semantics on the GNU ld section
7128 ld_shlibs=no
7131 bsdi[45]*)
7132 export_dynamic_flag_spec=-rdynamic
7135 cygwin* | mingw* | pw32*)
7136 # When not using gcc, we currently assume that we are using
7137 # Microsoft Visual C++.
7138 # hardcode_libdir_flag_spec is actually meaningless, as there is
7139 # no search path for DLLs.
7140 hardcode_libdir_flag_spec=' '
7141 allow_undefined_flag=unsupported
7142 # Tell ltmain to make .lib files, not .a files.
7143 libext=lib
7144 # Tell ltmain to make .dll files, not .so files.
7145 shrext_cmds=".dll"
7146 # FIXME: Setting linknames here is a bad hack.
7147 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7148 # The linker will automatically build a .lib file if we build a DLL.
7149 old_archive_From_new_cmds='true'
7150 # FIXME: Should let the user specify the lib program.
7151 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7152 fix_srcfile_path='`cygpath -w "$srcfile"`'
7153 enable_shared_with_static_runtimes=yes
7156 darwin* | rhapsody*)
7157 case "$host_os" in
7158 rhapsody* | darwin1.[012])
7159 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7161 *) # Darwin 1.3 on
7162 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7163 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7164 else
7165 case ${MACOSX_DEPLOYMENT_TARGET} in
7166 10.[012])
7167 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7169 10.*)
7170 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7172 esac
7175 esac
7176 archive_cmds_need_lc=no
7177 hardcode_direct=no
7178 hardcode_automatic=yes
7179 hardcode_shlibpath_var=unsupported
7180 whole_archive_flag_spec=''
7181 link_all_deplibs=yes
7182 if test "$GCC" = yes ; then
7183 output_verbose_link_cmd='echo'
7184 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7185 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7186 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7187 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}'
7188 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}'
7189 else
7190 case "$cc_basename" in
7191 xlc*)
7192 output_verbose_link_cmd='echo'
7193 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7194 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7195 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7196 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}'
7197 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}'
7200 ld_shlibs=no
7202 esac
7206 dgux*)
7207 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7208 hardcode_libdir_flag_spec='-L$libdir'
7209 hardcode_shlibpath_var=no
7212 freebsd1*)
7213 ld_shlibs=no
7216 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7217 # support. Future versions do this automatically, but an explicit c++rt0.o
7218 # does not break anything, and helps significantly (at the cost of a little
7219 # extra space).
7220 freebsd2.2*)
7221 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7222 hardcode_libdir_flag_spec='-R$libdir'
7223 hardcode_direct=yes
7224 hardcode_shlibpath_var=no
7227 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7228 freebsd2*)
7229 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7230 hardcode_direct=yes
7231 hardcode_minus_L=yes
7232 hardcode_shlibpath_var=no
7235 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7236 freebsd* | kfreebsd*-gnu | dragonfly*)
7237 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7238 hardcode_libdir_flag_spec='-R$libdir'
7239 hardcode_direct=yes
7240 hardcode_shlibpath_var=no
7243 hpux9*)
7244 if test "$GCC" = yes; then
7245 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'
7246 else
7247 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'
7249 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7250 hardcode_libdir_separator=:
7251 hardcode_direct=yes
7253 # hardcode_minus_L: Not really in the search PATH,
7254 # but as the default location of the library.
7255 hardcode_minus_L=yes
7256 export_dynamic_flag_spec='${wl}-E'
7259 hpux10* | hpux11*)
7260 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7261 case "$host_cpu" in
7262 hppa*64*|ia64*)
7263 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7266 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7268 esac
7269 else
7270 case "$host_cpu" in
7271 hppa*64*|ia64*)
7272 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7275 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7277 esac
7279 if test "$with_gnu_ld" = no; then
7280 case "$host_cpu" in
7281 hppa*64*)
7282 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7283 hardcode_libdir_flag_spec_ld='+b $libdir'
7284 hardcode_libdir_separator=:
7285 hardcode_direct=no
7286 hardcode_shlibpath_var=no
7288 ia64*)
7289 hardcode_libdir_flag_spec='-L$libdir'
7290 hardcode_direct=no
7291 hardcode_shlibpath_var=no
7293 # hardcode_minus_L: Not really in the search PATH,
7294 # but as the default location of the library.
7295 hardcode_minus_L=yes
7298 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7299 hardcode_libdir_separator=:
7300 hardcode_direct=yes
7301 export_dynamic_flag_spec='${wl}-E'
7303 # hardcode_minus_L: Not really in the search PATH,
7304 # but as the default location of the library.
7305 hardcode_minus_L=yes
7307 esac
7311 irix5* | irix6* | nonstopux*)
7312 if test "$GCC" = yes; then
7313 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'
7314 else
7315 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'
7316 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7318 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7319 hardcode_libdir_separator=:
7320 link_all_deplibs=yes
7323 netbsd*)
7324 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7325 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7326 else
7327 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7329 hardcode_libdir_flag_spec='-R$libdir'
7330 hardcode_direct=yes
7331 hardcode_shlibpath_var=no
7334 newsos6)
7335 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7336 hardcode_direct=yes
7337 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7338 hardcode_libdir_separator=:
7339 hardcode_shlibpath_var=no
7342 openbsd*)
7343 hardcode_direct=yes
7344 hardcode_shlibpath_var=no
7345 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7346 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7347 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7348 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7349 export_dynamic_flag_spec='${wl}-E'
7350 else
7351 case $host_os in
7352 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7353 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7354 hardcode_libdir_flag_spec='-R$libdir'
7357 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7358 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7360 esac
7364 os2*)
7365 hardcode_libdir_flag_spec='-L$libdir'
7366 hardcode_minus_L=yes
7367 allow_undefined_flag=unsupported
7368 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'
7369 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7372 osf3*)
7373 if test "$GCC" = yes; then
7374 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7375 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'
7376 else
7377 allow_undefined_flag=' -expect_unresolved \*'
7378 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'
7380 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7381 hardcode_libdir_separator=:
7384 osf4* | osf5*) # as osf3* with the addition of -msym flag
7385 if test "$GCC" = yes; then
7386 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7387 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'
7388 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7389 else
7390 allow_undefined_flag=' -expect_unresolved \*'
7391 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'
7392 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7393 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7395 # Both c and cxx compiler support -rpath directly
7396 hardcode_libdir_flag_spec='-rpath $libdir'
7398 hardcode_libdir_separator=:
7401 sco3.2v5*)
7402 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7403 hardcode_shlibpath_var=no
7404 export_dynamic_flag_spec='${wl}-Bexport'
7405 runpath_var=LD_RUN_PATH
7406 hardcode_runpath_var=yes
7409 solaris*)
7410 no_undefined_flag=' -z text'
7411 if test "$GCC" = yes; then
7412 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7413 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7414 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7415 else
7416 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7417 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7418 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7420 hardcode_libdir_flag_spec='-R$libdir'
7421 hardcode_shlibpath_var=no
7422 case $host_os in
7423 solaris2.[0-5] | solaris2.[0-5].*) ;;
7424 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7425 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
7426 esac
7427 link_all_deplibs=yes
7430 sunos4*)
7431 if test "x$host_vendor" = xsequent; then
7432 # Use $CC to link under sequent, because it throws in some extra .o
7433 # files that make .init and .fini sections work.
7434 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7435 else
7436 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7438 hardcode_libdir_flag_spec='-L$libdir'
7439 hardcode_direct=yes
7440 hardcode_minus_L=yes
7441 hardcode_shlibpath_var=no
7444 sysv4)
7445 case $host_vendor in
7446 sni)
7447 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7448 hardcode_direct=yes # is this really true???
7450 siemens)
7451 ## LD is ld it makes a PLAMLIB
7452 ## CC just makes a GrossModule.
7453 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7454 reload_cmds='$CC -r -o $output$reload_objs'
7455 hardcode_direct=no
7457 motorola)
7458 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7459 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7461 esac
7462 runpath_var='LD_RUN_PATH'
7463 hardcode_shlibpath_var=no
7466 sysv4.3*)
7467 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7468 hardcode_shlibpath_var=no
7469 export_dynamic_flag_spec='-Bexport'
7472 sysv4*MP*)
7473 if test -d /usr/nec; then
7474 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7475 hardcode_shlibpath_var=no
7476 runpath_var=LD_RUN_PATH
7477 hardcode_runpath_var=yes
7478 ld_shlibs=yes
7482 sysv4.2uw2*)
7483 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7484 hardcode_direct=yes
7485 hardcode_minus_L=no
7486 hardcode_shlibpath_var=no
7487 hardcode_runpath_var=yes
7488 runpath_var=LD_RUN_PATH
7491 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7492 no_undefined_flag='${wl}-z ${wl}text'
7493 if test "$GCC" = yes; then
7494 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7495 else
7496 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7498 runpath_var='LD_RUN_PATH'
7499 hardcode_shlibpath_var=no
7502 sysv5*)
7503 no_undefined_flag=' -z text'
7504 # $CC -shared without GNU ld will not create a library from C++
7505 # object files and a static libstdc++, better avoid it by now
7506 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7507 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7508 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7509 hardcode_libdir_flag_spec=
7510 hardcode_shlibpath_var=no
7511 runpath_var='LD_RUN_PATH'
7514 uts4*)
7515 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7516 hardcode_libdir_flag_spec='-L$libdir'
7517 hardcode_shlibpath_var=no
7521 ld_shlibs=no
7523 esac
7526 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7527 echo "${ECHO_T}$ld_shlibs" >&6
7528 test "$ld_shlibs" = no && can_build_shared=no
7530 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7531 if test "$GCC" = yes; then
7532 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7536 # Do we need to explicitly link libc?
7538 case "x$archive_cmds_need_lc" in
7539 x|xyes)
7540 # Assume -lc should be added
7541 archive_cmds_need_lc=yes
7543 if test "$enable_shared" = yes && test "$GCC" = yes; then
7544 case $archive_cmds in
7545 *'~'*)
7546 # FIXME: we may have to deal with multi-command sequences.
7548 '$CC '*)
7549 # Test whether the compiler implicitly links with -lc since on some
7550 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7551 # to ld, don't add -lc before -lgcc.
7552 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7553 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7554 $rm conftest*
7555 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7558 (eval $ac_compile) 2>&5
7559 ac_status=$?
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); } 2>conftest.err; then
7562 soname=conftest
7563 lib=conftest
7564 libobjs=conftest.$ac_objext
7565 deplibs=
7566 wl=$lt_prog_compiler_wl
7567 compiler_flags=-v
7568 linker_flags=-v
7569 verstring=
7570 output_objdir=.
7571 libname=conftest
7572 lt_save_allow_undefined_flag=$allow_undefined_flag
7573 allow_undefined_flag=
7574 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7575 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7576 ac_status=$?
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); }
7579 then
7580 archive_cmds_need_lc=no
7581 else
7582 archive_cmds_need_lc=yes
7584 allow_undefined_flag=$lt_save_allow_undefined_flag
7585 else
7586 cat conftest.err 1>&5
7588 $rm conftest*
7589 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7590 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7592 esac
7595 esac
7597 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7598 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7599 library_names_spec=
7600 libname_spec='lib$name'
7601 soname_spec=
7602 shrext_cmds=".so"
7603 postinstall_cmds=
7604 postuninstall_cmds=
7605 finish_cmds=
7606 finish_eval=
7607 shlibpath_var=
7608 shlibpath_overrides_runpath=unknown
7609 version_type=none
7610 dynamic_linker="$host_os ld.so"
7611 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7612 if test "$GCC" = yes; then
7613 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7614 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7615 # if the path contains ";" then we assume it to be the separator
7616 # otherwise default to the standard path separator (i.e. ":") - it is
7617 # assumed that no part of a normal pathname contains ";" but that should
7618 # okay in the real world where ";" in dirpaths is itself problematic.
7619 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7620 else
7621 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7623 else
7624 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7626 need_lib_prefix=unknown
7627 hardcode_into_libs=no
7629 # when you set need_version to no, make sure it does not cause -set_version
7630 # flags to be left without arguments
7631 need_version=unknown
7633 case $host_os in
7634 aix3*)
7635 version_type=linux
7636 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7637 shlibpath_var=LIBPATH
7639 # AIX 3 has no versioning support, so we append a major version to the name.
7640 soname_spec='${libname}${release}${shared_ext}$major'
7643 aix4* | aix5*)
7644 version_type=linux
7645 need_lib_prefix=no
7646 need_version=no
7647 hardcode_into_libs=yes
7648 if test "$host_cpu" = ia64; then
7649 # AIX 5 supports IA64
7650 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7651 shlibpath_var=LD_LIBRARY_PATH
7652 else
7653 # With GCC up to 2.95.x, collect2 would create an import file
7654 # for dependence libraries. The import file would start with
7655 # the line `#! .'. This would cause the generated library to
7656 # depend on `.', always an invalid library. This was fixed in
7657 # development snapshots of GCC prior to 3.0.
7658 case $host_os in
7659 aix4 | aix4.[01] | aix4.[01].*)
7660 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7661 echo ' yes '
7662 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7664 else
7665 can_build_shared=no
7668 esac
7669 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7670 # soname into executable. Probably we can add versioning support to
7671 # collect2, so additional links can be useful in future.
7672 if test "$aix_use_runtimelinking" = yes; then
7673 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7674 # instead of lib<name>.a to let people know that these are not
7675 # typical AIX shared libraries.
7676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7677 else
7678 # We preserve .a as extension for shared libraries through AIX4.2
7679 # and later when we are not doing run time linking.
7680 library_names_spec='${libname}${release}.a $libname.a'
7681 soname_spec='${libname}${release}${shared_ext}$major'
7683 shlibpath_var=LIBPATH
7687 amigaos*)
7688 library_names_spec='$libname.ixlibrary $libname.a'
7689 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7690 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'
7693 beos*)
7694 library_names_spec='${libname}${shared_ext}'
7695 dynamic_linker="$host_os ld.so"
7696 shlibpath_var=LIBRARY_PATH
7699 bsdi[45]*)
7700 version_type=linux
7701 need_version=no
7702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7703 soname_spec='${libname}${release}${shared_ext}$major'
7704 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7705 shlibpath_var=LD_LIBRARY_PATH
7706 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7707 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7708 # the default ld.so.conf also contains /usr/contrib/lib and
7709 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7710 # libtool to hard-code these into programs
7713 cygwin* | mingw* | pw32*)
7714 version_type=windows
7715 shrext_cmds=".dll"
7716 need_version=no
7717 need_lib_prefix=no
7719 case $GCC,$host_os in
7720 yes,cygwin* | yes,mingw* | yes,pw32*)
7721 library_names_spec='$libname.dll.a'
7722 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7723 postinstall_cmds='base_file=`basename \${file}`~
7724 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7725 dldir=$destdir/`dirname \$dlpath`~
7726 test -d \$dldir || mkdir -p \$dldir~
7727 $install_prog $dir/$dlname \$dldir/$dlname'
7728 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7729 dlpath=$dir/\$dldll~
7730 $rm \$dlpath'
7731 shlibpath_overrides_runpath=yes
7733 case $host_os in
7734 cygwin*)
7735 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7736 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7737 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7739 mingw*)
7740 # MinGW DLLs use traditional 'lib' prefix
7741 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7742 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7743 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7744 # It is most probably a Windows format PATH printed by
7745 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7746 # path with ; separators, and with drive letters. We can handle the
7747 # drive letters (cygwin fileutils understands them), so leave them,
7748 # especially as we might pass files found there to a mingw objdump,
7749 # which wouldn't understand a cygwinified path. Ahh.
7750 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7751 else
7752 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7755 pw32*)
7756 # pw32 DLLs use 'pw' prefix rather than 'lib'
7757 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7759 esac
7763 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7765 esac
7766 dynamic_linker='Win32 ld.exe'
7767 # FIXME: first we should search . and the directory the executable is in
7768 shlibpath_var=PATH
7771 darwin* | rhapsody*)
7772 dynamic_linker="$host_os dyld"
7773 version_type=darwin
7774 need_lib_prefix=no
7775 need_version=no
7776 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7777 soname_spec='${libname}${release}${major}$shared_ext'
7778 shlibpath_overrides_runpath=yes
7779 shlibpath_var=DYLD_LIBRARY_PATH
7780 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7781 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7782 if test "$GCC" = yes; then
7783 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"`
7784 else
7785 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7787 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7790 dgux*)
7791 version_type=linux
7792 need_lib_prefix=no
7793 need_version=no
7794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7795 soname_spec='${libname}${release}${shared_ext}$major'
7796 shlibpath_var=LD_LIBRARY_PATH
7799 freebsd1*)
7800 dynamic_linker=no
7803 kfreebsd*-gnu)
7804 version_type=linux
7805 need_lib_prefix=no
7806 need_version=no
7807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7808 soname_spec='${libname}${release}${shared_ext}$major'
7809 shlibpath_var=LD_LIBRARY_PATH
7810 shlibpath_overrides_runpath=no
7811 hardcode_into_libs=yes
7812 dynamic_linker='GNU ld.so'
7815 freebsd* | dragonfly*)
7816 # DragonFly does not have aout. When/if they implement a new
7817 # versioning mechanism, adjust this.
7818 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7819 version_type=freebsd-$objformat
7820 case $version_type in
7821 freebsd-elf*)
7822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7823 need_version=no
7824 need_lib_prefix=no
7826 freebsd-*)
7827 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7828 need_version=yes
7830 esac
7831 shlibpath_var=LD_LIBRARY_PATH
7832 case $host_os in
7833 freebsd2*)
7834 shlibpath_overrides_runpath=yes
7836 freebsd3.[01]* | freebsdelf3.[01]*)
7837 shlibpath_overrides_runpath=yes
7838 hardcode_into_libs=yes
7840 *) # from 3.2 on
7841 shlibpath_overrides_runpath=no
7842 hardcode_into_libs=yes
7844 esac
7847 gnu*)
7848 version_type=linux
7849 need_lib_prefix=no
7850 need_version=no
7851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7852 soname_spec='${libname}${release}${shared_ext}$major'
7853 shlibpath_var=LD_LIBRARY_PATH
7854 hardcode_into_libs=yes
7857 hpux9* | hpux10* | hpux11*)
7858 # Give a soname corresponding to the major version so that dld.sl refuses to
7859 # link against other versions.
7860 version_type=sunos
7861 need_lib_prefix=no
7862 need_version=no
7863 case "$host_cpu" in
7864 ia64*)
7865 shrext_cmds='.so'
7866 hardcode_into_libs=yes
7867 dynamic_linker="$host_os dld.so"
7868 shlibpath_var=LD_LIBRARY_PATH
7869 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7871 soname_spec='${libname}${release}${shared_ext}$major'
7872 if test "X$HPUX_IA64_MODE" = X32; then
7873 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7874 else
7875 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7877 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7879 hppa*64*)
7880 shrext_cmds='.sl'
7881 hardcode_into_libs=yes
7882 dynamic_linker="$host_os dld.sl"
7883 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7884 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7886 soname_spec='${libname}${release}${shared_ext}$major'
7887 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7888 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7891 shrext_cmds='.sl'
7892 dynamic_linker="$host_os dld.sl"
7893 shlibpath_var=SHLIB_PATH
7894 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7896 soname_spec='${libname}${release}${shared_ext}$major'
7898 esac
7899 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7900 postinstall_cmds='chmod 555 $lib'
7903 irix5* | irix6* | nonstopux*)
7904 case $host_os in
7905 nonstopux*) version_type=nonstopux ;;
7907 if test "$lt_cv_prog_gnu_ld" = yes; then
7908 version_type=linux
7909 else
7910 version_type=irix
7911 fi ;;
7912 esac
7913 need_lib_prefix=no
7914 need_version=no
7915 soname_spec='${libname}${release}${shared_ext}$major'
7916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7917 case $host_os in
7918 irix5* | nonstopux*)
7919 libsuff= shlibsuff=
7922 case $LD in # libtool.m4 will add one of these switches to LD
7923 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7924 libsuff= shlibsuff= libmagic=32-bit;;
7925 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7926 libsuff=32 shlibsuff=N32 libmagic=N32;;
7927 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7928 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7929 *) libsuff= shlibsuff= libmagic=never-match;;
7930 esac
7932 esac
7933 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7934 shlibpath_overrides_runpath=no
7935 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7936 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7937 hardcode_into_libs=yes
7940 # No shared lib support for Linux oldld, aout, or coff.
7941 linux*oldld* | linux*aout* | linux*coff*)
7942 dynamic_linker=no
7945 # This must be Linux ELF.
7946 linux*)
7947 version_type=linux
7948 need_lib_prefix=no
7949 need_version=no
7950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7951 soname_spec='${libname}${release}${shared_ext}$major'
7952 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7953 shlibpath_var=LD_LIBRARY_PATH
7954 shlibpath_overrides_runpath=no
7955 # This implies no fast_install, which is unacceptable.
7956 # Some rework will be needed to allow for fast_install
7957 # before this can be enabled.
7958 hardcode_into_libs=yes
7960 # Append ld.so.conf contents to the search path
7961 if test -f /etc/ld.so.conf; then
7962 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' ' '`
7963 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7966 # We used to test for /lib/ld.so.1 and disable shared libraries on
7967 # powerpc, because MkLinux only supported shared libraries with the
7968 # GNU dynamic linker. Since this was broken with cross compilers,
7969 # most powerpc-linux boxes support dynamic linking these days and
7970 # people can always --disable-shared, the test was removed, and we
7971 # assume the GNU/Linux dynamic linker is in use.
7972 dynamic_linker='GNU/Linux ld.so'
7975 knetbsd*-gnu)
7976 version_type=linux
7977 need_lib_prefix=no
7978 need_version=no
7979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7980 soname_spec='${libname}${release}${shared_ext}$major'
7981 shlibpath_var=LD_LIBRARY_PATH
7982 shlibpath_overrides_runpath=no
7983 hardcode_into_libs=yes
7984 dynamic_linker='GNU ld.so'
7987 netbsd*)
7988 version_type=sunos
7989 need_lib_prefix=no
7990 need_version=no
7991 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7993 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7994 dynamic_linker='NetBSD (a.out) ld.so'
7995 else
7996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7997 soname_spec='${libname}${release}${shared_ext}$major'
7998 dynamic_linker='NetBSD ld.elf_so'
8000 shlibpath_var=LD_LIBRARY_PATH
8001 shlibpath_overrides_runpath=yes
8002 hardcode_into_libs=yes
8005 newsos6)
8006 version_type=linux
8007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8008 shlibpath_var=LD_LIBRARY_PATH
8009 shlibpath_overrides_runpath=yes
8012 nto-qnx*)
8013 version_type=linux
8014 need_lib_prefix=no
8015 need_version=no
8016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8017 soname_spec='${libname}${release}${shared_ext}$major'
8018 shlibpath_var=LD_LIBRARY_PATH
8019 shlibpath_overrides_runpath=yes
8022 openbsd*)
8023 version_type=sunos
8024 need_lib_prefix=no
8025 need_version=no
8026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8027 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8028 shlibpath_var=LD_LIBRARY_PATH
8029 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8030 case $host_os in
8031 openbsd2.[89] | openbsd2.[89].*)
8032 shlibpath_overrides_runpath=no
8035 shlibpath_overrides_runpath=yes
8037 esac
8038 else
8039 shlibpath_overrides_runpath=yes
8043 os2*)
8044 libname_spec='$name'
8045 shrext_cmds=".dll"
8046 need_lib_prefix=no
8047 library_names_spec='$libname${shared_ext} $libname.a'
8048 dynamic_linker='OS/2 ld.exe'
8049 shlibpath_var=LIBPATH
8052 osf3* | osf4* | osf5*)
8053 version_type=osf
8054 need_lib_prefix=no
8055 need_version=no
8056 soname_spec='${libname}${release}${shared_ext}$major'
8057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8058 shlibpath_var=LD_LIBRARY_PATH
8059 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8060 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8063 sco3.2v5*)
8064 version_type=osf
8065 soname_spec='${libname}${release}${shared_ext}$major'
8066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8067 shlibpath_var=LD_LIBRARY_PATH
8070 solaris*)
8071 version_type=linux
8072 need_lib_prefix=no
8073 need_version=no
8074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8075 soname_spec='${libname}${release}${shared_ext}$major'
8076 shlibpath_var=LD_LIBRARY_PATH
8077 shlibpath_overrides_runpath=yes
8078 hardcode_into_libs=yes
8079 # ldd complains unless libraries are executable
8080 postinstall_cmds='chmod +x $lib'
8083 sunos4*)
8084 version_type=sunos
8085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8086 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8087 shlibpath_var=LD_LIBRARY_PATH
8088 shlibpath_overrides_runpath=yes
8089 if test "$with_gnu_ld" = yes; then
8090 need_lib_prefix=no
8092 need_version=yes
8095 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8096 version_type=linux
8097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8098 soname_spec='${libname}${release}${shared_ext}$major'
8099 shlibpath_var=LD_LIBRARY_PATH
8100 case $host_vendor in
8101 sni)
8102 shlibpath_overrides_runpath=no
8103 need_lib_prefix=no
8104 export_dynamic_flag_spec='${wl}-Blargedynsym'
8105 runpath_var=LD_RUN_PATH
8107 siemens)
8108 need_lib_prefix=no
8110 motorola)
8111 need_lib_prefix=no
8112 need_version=no
8113 shlibpath_overrides_runpath=no
8114 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8116 esac
8119 sysv4*MP*)
8120 if test -d /usr/nec ;then
8121 version_type=linux
8122 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8123 soname_spec='$libname${shared_ext}.$major'
8124 shlibpath_var=LD_LIBRARY_PATH
8128 uts4*)
8129 version_type=linux
8130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8131 soname_spec='${libname}${release}${shared_ext}$major'
8132 shlibpath_var=LD_LIBRARY_PATH
8136 dynamic_linker=no
8138 esac
8139 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8140 echo "${ECHO_T}$dynamic_linker" >&6
8141 test "$dynamic_linker" = no && can_build_shared=no
8143 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8144 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8145 hardcode_action=
8146 if test -n "$hardcode_libdir_flag_spec" || \
8147 test -n "$runpath_var" || \
8148 test "X$hardcode_automatic" = "Xyes" ; then
8150 # We can hardcode non-existant directories.
8151 if test "$hardcode_direct" != no &&
8152 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8153 # have to relink, otherwise we might link with an installed library
8154 # when we should be linking with a yet-to-be-installed one
8155 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8156 test "$hardcode_minus_L" != no; then
8157 # Linking always hardcodes the temporary library directory.
8158 hardcode_action=relink
8159 else
8160 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8161 hardcode_action=immediate
8163 else
8164 # We cannot hardcode anything, or else we can only hardcode existing
8165 # directories.
8166 hardcode_action=unsupported
8168 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8169 echo "${ECHO_T}$hardcode_action" >&6
8171 if test "$hardcode_action" = relink; then
8172 # Fast installation is not supported
8173 enable_fast_install=no
8174 elif test "$shlibpath_overrides_runpath" = yes ||
8175 test "$enable_shared" = no; then
8176 # Fast installation is not necessary
8177 enable_fast_install=needless
8180 striplib=
8181 old_striplib=
8182 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8183 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8184 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8185 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8186 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8187 echo "$as_me:$LINENO: result: yes" >&5
8188 echo "${ECHO_T}yes" >&6
8189 else
8190 # FIXME - insert some real tests, host_os isn't really good enough
8191 case $host_os in
8192 darwin*)
8193 if test -n "$STRIP" ; then
8194 striplib="$STRIP -x"
8195 echo "$as_me:$LINENO: result: yes" >&5
8196 echo "${ECHO_T}yes" >&6
8197 else
8198 echo "$as_me:$LINENO: result: no" >&5
8199 echo "${ECHO_T}no" >&6
8203 echo "$as_me:$LINENO: result: no" >&5
8204 echo "${ECHO_T}no" >&6
8206 esac
8209 if test "x$enable_dlopen" != xyes; then
8210 enable_dlopen=unknown
8211 enable_dlopen_self=unknown
8212 enable_dlopen_self_static=unknown
8213 else
8214 lt_cv_dlopen=no
8215 lt_cv_dlopen_libs=
8217 case $host_os in
8218 beos*)
8219 lt_cv_dlopen="load_add_on"
8220 lt_cv_dlopen_libs=
8221 lt_cv_dlopen_self=yes
8224 mingw* | pw32*)
8225 lt_cv_dlopen="LoadLibrary"
8226 lt_cv_dlopen_libs=
8229 cygwin*)
8230 lt_cv_dlopen="dlopen"
8231 lt_cv_dlopen_libs=
8234 darwin*)
8235 # if libdl is installed we need to link against it
8236 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8237 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8238 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8239 echo $ECHO_N "(cached) $ECHO_C" >&6
8240 else
8241 ac_check_lib_save_LIBS=$LIBS
8242 LIBS="-ldl $LIBS"
8243 cat >conftest.$ac_ext <<_ACEOF
8244 /* confdefs.h. */
8245 _ACEOF
8246 cat confdefs.h >>conftest.$ac_ext
8247 cat >>conftest.$ac_ext <<_ACEOF
8248 /* end confdefs.h. */
8250 /* Override any gcc2 internal prototype to avoid an error. */
8251 #ifdef __cplusplus
8252 extern "C"
8253 #endif
8254 /* We use char because int might match the return type of a gcc2
8255 builtin and then its argument prototype would still apply. */
8256 char dlopen ();
8258 main ()
8260 dlopen ();
8262 return 0;
8264 _ACEOF
8265 rm -f conftest.$ac_objext conftest$ac_exeext
8266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8267 (eval $ac_link) 2>conftest.er1
8268 ac_status=$?
8269 grep -v '^ *+' conftest.er1 >conftest.err
8270 rm -f conftest.er1
8271 cat conftest.err >&5
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); } &&
8274 { ac_try='test -z "$ac_c_werror_flag"
8275 || test ! -s conftest.err'
8276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8277 (eval $ac_try) 2>&5
8278 ac_status=$?
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); }; } &&
8281 { ac_try='test -s conftest$ac_exeext'
8282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8283 (eval $ac_try) 2>&5
8284 ac_status=$?
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); }; }; then
8287 ac_cv_lib_dl_dlopen=yes
8288 else
8289 echo "$as_me: failed program was:" >&5
8290 sed 's/^/| /' conftest.$ac_ext >&5
8292 ac_cv_lib_dl_dlopen=no
8294 rm -f conftest.err conftest.$ac_objext \
8295 conftest$ac_exeext conftest.$ac_ext
8296 LIBS=$ac_check_lib_save_LIBS
8298 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8299 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8300 if test $ac_cv_lib_dl_dlopen = yes; then
8301 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8302 else
8304 lt_cv_dlopen="dyld"
8305 lt_cv_dlopen_libs=
8306 lt_cv_dlopen_self=yes
8313 echo "$as_me:$LINENO: checking for shl_load" >&5
8314 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8315 if test "${ac_cv_func_shl_load+set}" = set; then
8316 echo $ECHO_N "(cached) $ECHO_C" >&6
8317 else
8318 cat >conftest.$ac_ext <<_ACEOF
8319 /* confdefs.h. */
8320 _ACEOF
8321 cat confdefs.h >>conftest.$ac_ext
8322 cat >>conftest.$ac_ext <<_ACEOF
8323 /* end confdefs.h. */
8324 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8326 #define shl_load innocuous_shl_load
8328 /* System header to define __stub macros and hopefully few prototypes,
8329 which can conflict with char shl_load (); below.
8330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8331 <limits.h> exists even on freestanding compilers. */
8333 #ifdef __STDC__
8334 # include <limits.h>
8335 #else
8336 # include <assert.h>
8337 #endif
8339 #undef shl_load
8341 /* Override any gcc2 internal prototype to avoid an error. */
8342 #ifdef __cplusplus
8343 extern "C"
8345 #endif
8346 /* We use char because int might match the return type of a gcc2
8347 builtin and then its argument prototype would still apply. */
8348 char shl_load ();
8349 /* The GNU C library defines this for functions which it implements
8350 to always fail with ENOSYS. Some functions are actually named
8351 something starting with __ and the normal name is an alias. */
8352 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8353 choke me
8354 #else
8355 char (*f) () = shl_load;
8356 #endif
8357 #ifdef __cplusplus
8359 #endif
8362 main ()
8364 return f != shl_load;
8366 return 0;
8368 _ACEOF
8369 rm -f conftest.$ac_objext conftest$ac_exeext
8370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8371 (eval $ac_link) 2>conftest.er1
8372 ac_status=$?
8373 grep -v '^ *+' conftest.er1 >conftest.err
8374 rm -f conftest.er1
8375 cat conftest.err >&5
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); } &&
8378 { ac_try='test -z "$ac_c_werror_flag"
8379 || test ! -s conftest.err'
8380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8381 (eval $ac_try) 2>&5
8382 ac_status=$?
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); }; } &&
8385 { ac_try='test -s conftest$ac_exeext'
8386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8387 (eval $ac_try) 2>&5
8388 ac_status=$?
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); }; }; then
8391 ac_cv_func_shl_load=yes
8392 else
8393 echo "$as_me: failed program was:" >&5
8394 sed 's/^/| /' conftest.$ac_ext >&5
8396 ac_cv_func_shl_load=no
8398 rm -f conftest.err conftest.$ac_objext \
8399 conftest$ac_exeext conftest.$ac_ext
8401 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8402 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8403 if test $ac_cv_func_shl_load = yes; then
8404 lt_cv_dlopen="shl_load"
8405 else
8406 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8407 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8408 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8409 echo $ECHO_N "(cached) $ECHO_C" >&6
8410 else
8411 ac_check_lib_save_LIBS=$LIBS
8412 LIBS="-ldld $LIBS"
8413 cat >conftest.$ac_ext <<_ACEOF
8414 /* confdefs.h. */
8415 _ACEOF
8416 cat confdefs.h >>conftest.$ac_ext
8417 cat >>conftest.$ac_ext <<_ACEOF
8418 /* end confdefs.h. */
8420 /* Override any gcc2 internal prototype to avoid an error. */
8421 #ifdef __cplusplus
8422 extern "C"
8423 #endif
8424 /* We use char because int might match the return type of a gcc2
8425 builtin and then its argument prototype would still apply. */
8426 char shl_load ();
8428 main ()
8430 shl_load ();
8432 return 0;
8434 _ACEOF
8435 rm -f conftest.$ac_objext conftest$ac_exeext
8436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8437 (eval $ac_link) 2>conftest.er1
8438 ac_status=$?
8439 grep -v '^ *+' conftest.er1 >conftest.err
8440 rm -f conftest.er1
8441 cat conftest.err >&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); } &&
8444 { ac_try='test -z "$ac_c_werror_flag"
8445 || test ! -s conftest.err'
8446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8447 (eval $ac_try) 2>&5
8448 ac_status=$?
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); }; } &&
8451 { ac_try='test -s conftest$ac_exeext'
8452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8453 (eval $ac_try) 2>&5
8454 ac_status=$?
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); }; }; then
8457 ac_cv_lib_dld_shl_load=yes
8458 else
8459 echo "$as_me: failed program was:" >&5
8460 sed 's/^/| /' conftest.$ac_ext >&5
8462 ac_cv_lib_dld_shl_load=no
8464 rm -f conftest.err conftest.$ac_objext \
8465 conftest$ac_exeext conftest.$ac_ext
8466 LIBS=$ac_check_lib_save_LIBS
8468 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8469 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8470 if test $ac_cv_lib_dld_shl_load = yes; then
8471 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8472 else
8473 echo "$as_me:$LINENO: checking for dlopen" >&5
8474 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8475 if test "${ac_cv_func_dlopen+set}" = set; then
8476 echo $ECHO_N "(cached) $ECHO_C" >&6
8477 else
8478 cat >conftest.$ac_ext <<_ACEOF
8479 /* confdefs.h. */
8480 _ACEOF
8481 cat confdefs.h >>conftest.$ac_ext
8482 cat >>conftest.$ac_ext <<_ACEOF
8483 /* end confdefs.h. */
8484 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8486 #define dlopen innocuous_dlopen
8488 /* System header to define __stub macros and hopefully few prototypes,
8489 which can conflict with char dlopen (); below.
8490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8491 <limits.h> exists even on freestanding compilers. */
8493 #ifdef __STDC__
8494 # include <limits.h>
8495 #else
8496 # include <assert.h>
8497 #endif
8499 #undef dlopen
8501 /* Override any gcc2 internal prototype to avoid an error. */
8502 #ifdef __cplusplus
8503 extern "C"
8505 #endif
8506 /* We use char because int might match the return type of a gcc2
8507 builtin and then its argument prototype would still apply. */
8508 char dlopen ();
8509 /* The GNU C library defines this for functions which it implements
8510 to always fail with ENOSYS. Some functions are actually named
8511 something starting with __ and the normal name is an alias. */
8512 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8513 choke me
8514 #else
8515 char (*f) () = dlopen;
8516 #endif
8517 #ifdef __cplusplus
8519 #endif
8522 main ()
8524 return f != dlopen;
8526 return 0;
8528 _ACEOF
8529 rm -f conftest.$ac_objext conftest$ac_exeext
8530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8531 (eval $ac_link) 2>conftest.er1
8532 ac_status=$?
8533 grep -v '^ *+' conftest.er1 >conftest.err
8534 rm -f conftest.er1
8535 cat conftest.err >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); } &&
8538 { ac_try='test -z "$ac_c_werror_flag"
8539 || test ! -s conftest.err'
8540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541 (eval $ac_try) 2>&5
8542 ac_status=$?
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); }; } &&
8545 { ac_try='test -s conftest$ac_exeext'
8546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547 (eval $ac_try) 2>&5
8548 ac_status=$?
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); }; }; then
8551 ac_cv_func_dlopen=yes
8552 else
8553 echo "$as_me: failed program was:" >&5
8554 sed 's/^/| /' conftest.$ac_ext >&5
8556 ac_cv_func_dlopen=no
8558 rm -f conftest.err conftest.$ac_objext \
8559 conftest$ac_exeext conftest.$ac_ext
8561 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8562 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8563 if test $ac_cv_func_dlopen = yes; then
8564 lt_cv_dlopen="dlopen"
8565 else
8566 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8567 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8568 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8569 echo $ECHO_N "(cached) $ECHO_C" >&6
8570 else
8571 ac_check_lib_save_LIBS=$LIBS
8572 LIBS="-ldl $LIBS"
8573 cat >conftest.$ac_ext <<_ACEOF
8574 /* confdefs.h. */
8575 _ACEOF
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h. */
8580 /* Override any gcc2 internal prototype to avoid an error. */
8581 #ifdef __cplusplus
8582 extern "C"
8583 #endif
8584 /* We use char because int might match the return type of a gcc2
8585 builtin and then its argument prototype would still apply. */
8586 char dlopen ();
8588 main ()
8590 dlopen ();
8592 return 0;
8594 _ACEOF
8595 rm -f conftest.$ac_objext conftest$ac_exeext
8596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8597 (eval $ac_link) 2>conftest.er1
8598 ac_status=$?
8599 grep -v '^ *+' conftest.er1 >conftest.err
8600 rm -f conftest.er1
8601 cat conftest.err >&5
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); } &&
8604 { ac_try='test -z "$ac_c_werror_flag"
8605 || test ! -s conftest.err'
8606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8607 (eval $ac_try) 2>&5
8608 ac_status=$?
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); }; } &&
8611 { ac_try='test -s conftest$ac_exeext'
8612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8613 (eval $ac_try) 2>&5
8614 ac_status=$?
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); }; }; then
8617 ac_cv_lib_dl_dlopen=yes
8618 else
8619 echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.$ac_ext >&5
8622 ac_cv_lib_dl_dlopen=no
8624 rm -f conftest.err conftest.$ac_objext \
8625 conftest$ac_exeext conftest.$ac_ext
8626 LIBS=$ac_check_lib_save_LIBS
8628 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8629 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8630 if test $ac_cv_lib_dl_dlopen = yes; then
8631 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8632 else
8633 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8634 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8635 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8636 echo $ECHO_N "(cached) $ECHO_C" >&6
8637 else
8638 ac_check_lib_save_LIBS=$LIBS
8639 LIBS="-lsvld $LIBS"
8640 cat >conftest.$ac_ext <<_ACEOF
8641 /* confdefs.h. */
8642 _ACEOF
8643 cat confdefs.h >>conftest.$ac_ext
8644 cat >>conftest.$ac_ext <<_ACEOF
8645 /* end confdefs.h. */
8647 /* Override any gcc2 internal prototype to avoid an error. */
8648 #ifdef __cplusplus
8649 extern "C"
8650 #endif
8651 /* We use char because int might match the return type of a gcc2
8652 builtin and then its argument prototype would still apply. */
8653 char dlopen ();
8655 main ()
8657 dlopen ();
8659 return 0;
8661 _ACEOF
8662 rm -f conftest.$ac_objext conftest$ac_exeext
8663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8664 (eval $ac_link) 2>conftest.er1
8665 ac_status=$?
8666 grep -v '^ *+' conftest.er1 >conftest.err
8667 rm -f conftest.er1
8668 cat conftest.err >&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); } &&
8671 { ac_try='test -z "$ac_c_werror_flag"
8672 || test ! -s conftest.err'
8673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8674 (eval $ac_try) 2>&5
8675 ac_status=$?
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); }; } &&
8678 { ac_try='test -s conftest$ac_exeext'
8679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8680 (eval $ac_try) 2>&5
8681 ac_status=$?
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); }; }; then
8684 ac_cv_lib_svld_dlopen=yes
8685 else
8686 echo "$as_me: failed program was:" >&5
8687 sed 's/^/| /' conftest.$ac_ext >&5
8689 ac_cv_lib_svld_dlopen=no
8691 rm -f conftest.err conftest.$ac_objext \
8692 conftest$ac_exeext conftest.$ac_ext
8693 LIBS=$ac_check_lib_save_LIBS
8695 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8696 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8697 if test $ac_cv_lib_svld_dlopen = yes; then
8698 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8699 else
8700 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8701 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8702 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8703 echo $ECHO_N "(cached) $ECHO_C" >&6
8704 else
8705 ac_check_lib_save_LIBS=$LIBS
8706 LIBS="-ldld $LIBS"
8707 cat >conftest.$ac_ext <<_ACEOF
8708 /* confdefs.h. */
8709 _ACEOF
8710 cat confdefs.h >>conftest.$ac_ext
8711 cat >>conftest.$ac_ext <<_ACEOF
8712 /* end confdefs.h. */
8714 /* Override any gcc2 internal prototype to avoid an error. */
8715 #ifdef __cplusplus
8716 extern "C"
8717 #endif
8718 /* We use char because int might match the return type of a gcc2
8719 builtin and then its argument prototype would still apply. */
8720 char dld_link ();
8722 main ()
8724 dld_link ();
8726 return 0;
8728 _ACEOF
8729 rm -f conftest.$ac_objext conftest$ac_exeext
8730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8731 (eval $ac_link) 2>conftest.er1
8732 ac_status=$?
8733 grep -v '^ *+' conftest.er1 >conftest.err
8734 rm -f conftest.er1
8735 cat conftest.err >&5
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); } &&
8738 { ac_try='test -z "$ac_c_werror_flag"
8739 || test ! -s conftest.err'
8740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8741 (eval $ac_try) 2>&5
8742 ac_status=$?
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); }; } &&
8745 { ac_try='test -s conftest$ac_exeext'
8746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8747 (eval $ac_try) 2>&5
8748 ac_status=$?
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); }; }; then
8751 ac_cv_lib_dld_dld_link=yes
8752 else
8753 echo "$as_me: failed program was:" >&5
8754 sed 's/^/| /' conftest.$ac_ext >&5
8756 ac_cv_lib_dld_dld_link=no
8758 rm -f conftest.err conftest.$ac_objext \
8759 conftest$ac_exeext conftest.$ac_ext
8760 LIBS=$ac_check_lib_save_LIBS
8762 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8763 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8764 if test $ac_cv_lib_dld_dld_link = yes; then
8765 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8784 esac
8786 if test "x$lt_cv_dlopen" != xno; then
8787 enable_dlopen=yes
8788 else
8789 enable_dlopen=no
8792 case $lt_cv_dlopen in
8793 dlopen)
8794 save_CPPFLAGS="$CPPFLAGS"
8795 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8797 save_LDFLAGS="$LDFLAGS"
8798 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8800 save_LIBS="$LIBS"
8801 LIBS="$lt_cv_dlopen_libs $LIBS"
8803 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8804 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8805 if test "${lt_cv_dlopen_self+set}" = set; then
8806 echo $ECHO_N "(cached) $ECHO_C" >&6
8807 else
8808 if test "$cross_compiling" = yes; then :
8809 lt_cv_dlopen_self=cross
8810 else
8811 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8812 lt_status=$lt_dlunknown
8813 cat > conftest.$ac_ext <<EOF
8814 #line 8814 "configure"
8815 #include "confdefs.h"
8817 #if HAVE_DLFCN_H
8818 #include <dlfcn.h>
8819 #endif
8821 #include <stdio.h>
8823 #ifdef RTLD_GLOBAL
8824 # define LT_DLGLOBAL RTLD_GLOBAL
8825 #else
8826 # ifdef DL_GLOBAL
8827 # define LT_DLGLOBAL DL_GLOBAL
8828 # else
8829 # define LT_DLGLOBAL 0
8830 # endif
8831 #endif
8833 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8834 find out it does not work in some platform. */
8835 #ifndef LT_DLLAZY_OR_NOW
8836 # ifdef RTLD_LAZY
8837 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8838 # else
8839 # ifdef DL_LAZY
8840 # define LT_DLLAZY_OR_NOW DL_LAZY
8841 # else
8842 # ifdef RTLD_NOW
8843 # define LT_DLLAZY_OR_NOW RTLD_NOW
8844 # else
8845 # ifdef DL_NOW
8846 # define LT_DLLAZY_OR_NOW DL_NOW
8847 # else
8848 # define LT_DLLAZY_OR_NOW 0
8849 # endif
8850 # endif
8851 # endif
8852 # endif
8853 #endif
8855 #ifdef __cplusplus
8856 extern "C" void exit (int);
8857 #endif
8859 void fnord() { int i=42;}
8860 int main ()
8862 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8863 int status = $lt_dlunknown;
8865 if (self)
8867 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8868 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8869 /* dlclose (self); */
8872 exit (status);
8875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8876 (eval $ac_link) 2>&5
8877 ac_status=$?
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8880 (./conftest; exit; ) 2>/dev/null
8881 lt_status=$?
8882 case x$lt_status in
8883 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8884 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8885 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8886 esac
8887 else :
8888 # compilation failed
8889 lt_cv_dlopen_self=no
8892 rm -fr conftest*
8896 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8897 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8899 if test "x$lt_cv_dlopen_self" = xyes; then
8900 LDFLAGS="$LDFLAGS $link_static_flag"
8901 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8902 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8903 if test "${lt_cv_dlopen_self_static+set}" = set; then
8904 echo $ECHO_N "(cached) $ECHO_C" >&6
8905 else
8906 if test "$cross_compiling" = yes; then :
8907 lt_cv_dlopen_self_static=cross
8908 else
8909 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8910 lt_status=$lt_dlunknown
8911 cat > conftest.$ac_ext <<EOF
8912 #line 8912 "configure"
8913 #include "confdefs.h"
8915 #if HAVE_DLFCN_H
8916 #include <dlfcn.h>
8917 #endif
8919 #include <stdio.h>
8921 #ifdef RTLD_GLOBAL
8922 # define LT_DLGLOBAL RTLD_GLOBAL
8923 #else
8924 # ifdef DL_GLOBAL
8925 # define LT_DLGLOBAL DL_GLOBAL
8926 # else
8927 # define LT_DLGLOBAL 0
8928 # endif
8929 #endif
8931 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8932 find out it does not work in some platform. */
8933 #ifndef LT_DLLAZY_OR_NOW
8934 # ifdef RTLD_LAZY
8935 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8936 # else
8937 # ifdef DL_LAZY
8938 # define LT_DLLAZY_OR_NOW DL_LAZY
8939 # else
8940 # ifdef RTLD_NOW
8941 # define LT_DLLAZY_OR_NOW RTLD_NOW
8942 # else
8943 # ifdef DL_NOW
8944 # define LT_DLLAZY_OR_NOW DL_NOW
8945 # else
8946 # define LT_DLLAZY_OR_NOW 0
8947 # endif
8948 # endif
8949 # endif
8950 # endif
8951 #endif
8953 #ifdef __cplusplus
8954 extern "C" void exit (int);
8955 #endif
8957 void fnord() { int i=42;}
8958 int main ()
8960 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8961 int status = $lt_dlunknown;
8963 if (self)
8965 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8966 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8967 /* dlclose (self); */
8970 exit (status);
8973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8974 (eval $ac_link) 2>&5
8975 ac_status=$?
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8978 (./conftest; exit; ) 2>/dev/null
8979 lt_status=$?
8980 case x$lt_status in
8981 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8982 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8983 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8984 esac
8985 else :
8986 # compilation failed
8987 lt_cv_dlopen_self_static=no
8990 rm -fr conftest*
8994 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8995 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8998 CPPFLAGS="$save_CPPFLAGS"
8999 LDFLAGS="$save_LDFLAGS"
9000 LIBS="$save_LIBS"
9002 esac
9004 case $lt_cv_dlopen_self in
9005 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9006 *) enable_dlopen_self=unknown ;;
9007 esac
9009 case $lt_cv_dlopen_self_static in
9010 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9011 *) enable_dlopen_self_static=unknown ;;
9012 esac
9016 # Report which librarie types wil actually be built
9017 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9018 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9019 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9020 echo "${ECHO_T}$can_build_shared" >&6
9022 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9023 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9024 test "$can_build_shared" = "no" && enable_shared=no
9026 # On AIX, shared libraries and static libraries use the same namespace, and
9027 # are all built from PIC.
9028 case "$host_os" in
9029 aix3*)
9030 test "$enable_shared" = yes && enable_static=no
9031 if test -n "$RANLIB"; then
9032 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9033 postinstall_cmds='$RANLIB $lib'
9037 aix4* | aix5*)
9038 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9039 test "$enable_shared" = yes && enable_static=no
9042 esac
9043 echo "$as_me:$LINENO: result: $enable_shared" >&5
9044 echo "${ECHO_T}$enable_shared" >&6
9046 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9047 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9048 # Make sure either enable_shared or enable_static is yes.
9049 test "$enable_shared" = yes || enable_static=yes
9050 echo "$as_me:$LINENO: result: $enable_static" >&5
9051 echo "${ECHO_T}$enable_static" >&6
9053 # The else clause should only fire when bootstrapping the
9054 # libtool distribution, otherwise you forgot to ship ltmain.sh
9055 # with your package, and you will get complaints that there are
9056 # no rules to generate ltmain.sh.
9057 if test -f "$ltmain"; then
9058 # See if we are running on zsh, and set the options which allow our commands through
9059 # without removal of \ escapes.
9060 if test -n "${ZSH_VERSION+set}" ; then
9061 setopt NO_GLOB_SUBST
9063 # Now quote all the things that may contain metacharacters while being
9064 # careful not to overquote the AC_SUBSTed values. We take copies of the
9065 # variables and quote the copies for generation of the libtool script.
9066 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9067 SED SHELL STRIP \
9068 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9069 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9070 deplibs_check_method reload_flag reload_cmds need_locks \
9071 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9072 lt_cv_sys_global_symbol_to_c_name_address \
9073 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9074 old_postinstall_cmds old_postuninstall_cmds \
9075 compiler \
9076 CC \
9077 LD \
9078 lt_prog_compiler_wl \
9079 lt_prog_compiler_pic \
9080 lt_prog_compiler_static \
9081 lt_prog_compiler_no_builtin_flag \
9082 export_dynamic_flag_spec \
9083 thread_safe_flag_spec \
9084 whole_archive_flag_spec \
9085 enable_shared_with_static_runtimes \
9086 old_archive_cmds \
9087 old_archive_from_new_cmds \
9088 predep_objects \
9089 postdep_objects \
9090 predeps \
9091 postdeps \
9092 compiler_lib_search_path \
9093 archive_cmds \
9094 archive_expsym_cmds \
9095 postinstall_cmds \
9096 postuninstall_cmds \
9097 old_archive_from_expsyms_cmds \
9098 allow_undefined_flag \
9099 no_undefined_flag \
9100 export_symbols_cmds \
9101 hardcode_libdir_flag_spec \
9102 hardcode_libdir_flag_spec_ld \
9103 hardcode_libdir_separator \
9104 hardcode_automatic \
9105 module_cmds \
9106 module_expsym_cmds \
9107 lt_cv_prog_compiler_c_o \
9108 exclude_expsyms \
9109 include_expsyms; do
9111 case $var in
9112 old_archive_cmds | \
9113 old_archive_from_new_cmds | \
9114 archive_cmds | \
9115 archive_expsym_cmds | \
9116 module_cmds | \
9117 module_expsym_cmds | \
9118 old_archive_from_expsyms_cmds | \
9119 export_symbols_cmds | \
9120 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9121 postinstall_cmds | postuninstall_cmds | \
9122 old_postinstall_cmds | old_postuninstall_cmds | \
9123 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9124 # Double-quote double-evaled strings.
9125 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9128 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9130 esac
9131 done
9133 case $lt_echo in
9134 *'\$0 --fallback-echo"')
9135 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9137 esac
9139 cfgfile="${ofile}T"
9140 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9141 $rm -f "$cfgfile"
9142 { echo "$as_me:$LINENO: creating $ofile" >&5
9143 echo "$as_me: creating $ofile" >&6;}
9145 cat <<__EOF__ >> "$cfgfile"
9146 #! $SHELL
9148 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9149 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9150 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9152 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9153 # Free Software Foundation, Inc.
9155 # This file is part of GNU Libtool:
9156 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9158 # This program is free software; you can redistribute it and/or modify
9159 # it under the terms of the GNU General Public License as published by
9160 # the Free Software Foundation; either version 2 of the License, or
9161 # (at your option) any later version.
9163 # This program is distributed in the hope that it will be useful, but
9164 # WITHOUT ANY WARRANTY; without even the implied warranty of
9165 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9166 # General Public License for more details.
9168 # You should have received a copy of the GNU General Public License
9169 # along with this program; if not, write to the Free Software
9170 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9172 # As a special exception to the GNU General Public License, if you
9173 # distribute this file as part of a program that contains a
9174 # configuration script generated by Autoconf, you may include it under
9175 # the same distribution terms that you use for the rest of that program.
9177 # A sed program that does not truncate output.
9178 SED=$lt_SED
9180 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9181 Xsed="$SED -e s/^X//"
9183 # The HP-UX ksh and POSIX shell print the target directory to stdout
9184 # if CDPATH is set.
9185 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9187 # The names of the tagged configurations supported by this script.
9188 available_tags=
9190 # ### BEGIN LIBTOOL CONFIG
9192 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9194 # Shell to use when invoking shell scripts.
9195 SHELL=$lt_SHELL
9197 # Whether or not to build shared libraries.
9198 build_libtool_libs=$enable_shared
9200 # Whether or not to build static libraries.
9201 build_old_libs=$enable_static
9203 # Whether or not to add -lc for building shared libraries.
9204 build_libtool_need_lc=$archive_cmds_need_lc
9206 # Whether or not to disallow shared libs when runtime libs are static
9207 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9209 # Whether or not to optimize for fast installation.
9210 fast_install=$enable_fast_install
9212 # The host system.
9213 host_alias=$host_alias
9214 host=$host
9215 host_os=$host_os
9217 # The build system.
9218 build_alias=$build_alias
9219 build=$build
9220 build_os=$build_os
9222 # An echo program that does not interpret backslashes.
9223 echo=$lt_echo
9225 # The archiver.
9226 AR=$lt_AR
9227 AR_FLAGS=$lt_AR_FLAGS
9229 # A C compiler.
9230 LTCC=$lt_LTCC
9232 # A language-specific compiler.
9233 CC=$lt_compiler
9235 # Is the compiler the GNU C compiler?
9236 with_gcc=$GCC
9238 # An ERE matcher.
9239 EGREP=$lt_EGREP
9241 # The linker used to build libraries.
9242 LD=$lt_LD
9244 # Whether we need hard or soft links.
9245 LN_S=$lt_LN_S
9247 # A BSD-compatible nm program.
9248 NM=$lt_NM
9250 # A symbol stripping program
9251 STRIP=$lt_STRIP
9253 # Used to examine libraries when file_magic_cmd begins "file"
9254 MAGIC_CMD=$MAGIC_CMD
9256 # Used on cygwin: DLL creation program.
9257 DLLTOOL="$DLLTOOL"
9259 # Used on cygwin: object dumper.
9260 OBJDUMP="$OBJDUMP"
9262 # Used on cygwin: assembler.
9263 AS="$AS"
9265 # The name of the directory that contains temporary libtool files.
9266 objdir=$objdir
9268 # How to create reloadable object files.
9269 reload_flag=$lt_reload_flag
9270 reload_cmds=$lt_reload_cmds
9272 # How to pass a linker flag through the compiler.
9273 wl=$lt_lt_prog_compiler_wl
9275 # Object file suffix (normally "o").
9276 objext="$ac_objext"
9278 # Old archive suffix (normally "a").
9279 libext="$libext"
9281 # Shared library suffix (normally ".so").
9282 shrext_cmds='$shrext_cmds'
9284 # Executable file suffix (normally "").
9285 exeext="$exeext"
9287 # Additional compiler flags for building library objects.
9288 pic_flag=$lt_lt_prog_compiler_pic
9289 pic_mode=$pic_mode
9291 # What is the maximum length of a command?
9292 max_cmd_len=$lt_cv_sys_max_cmd_len
9294 # Does compiler simultaneously support -c and -o options?
9295 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9297 # Must we lock files when doing compilation ?
9298 need_locks=$lt_need_locks
9300 # Do we need the lib prefix for modules?
9301 need_lib_prefix=$need_lib_prefix
9303 # Do we need a version for libraries?
9304 need_version=$need_version
9306 # Whether dlopen is supported.
9307 dlopen_support=$enable_dlopen
9309 # Whether dlopen of programs is supported.
9310 dlopen_self=$enable_dlopen_self
9312 # Whether dlopen of statically linked programs is supported.
9313 dlopen_self_static=$enable_dlopen_self_static
9315 # Compiler flag to prevent dynamic linking.
9316 link_static_flag=$lt_lt_prog_compiler_static
9318 # Compiler flag to turn off builtin functions.
9319 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9321 # Compiler flag to allow reflexive dlopens.
9322 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9324 # Compiler flag to generate shared objects directly from archives.
9325 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9327 # Compiler flag to generate thread-safe objects.
9328 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9330 # Library versioning type.
9331 version_type=$version_type
9333 # Format of library name prefix.
9334 libname_spec=$lt_libname_spec
9336 # List of archive names. First name is the real one, the rest are links.
9337 # The last name is the one that the linker finds with -lNAME.
9338 library_names_spec=$lt_library_names_spec
9340 # The coded name of the library, if different from the real name.
9341 soname_spec=$lt_soname_spec
9343 # Commands used to build and install an old-style archive.
9344 RANLIB=$lt_RANLIB
9345 old_archive_cmds=$lt_old_archive_cmds
9346 old_postinstall_cmds=$lt_old_postinstall_cmds
9347 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9349 # Create an old-style archive from a shared archive.
9350 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9352 # Create a temporary old-style archive to link instead of a shared archive.
9353 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9355 # Commands used to build and install a shared archive.
9356 archive_cmds=$lt_archive_cmds
9357 archive_expsym_cmds=$lt_archive_expsym_cmds
9358 postinstall_cmds=$lt_postinstall_cmds
9359 postuninstall_cmds=$lt_postuninstall_cmds
9361 # Commands used to build a loadable module (assumed same as above if empty)
9362 module_cmds=$lt_module_cmds
9363 module_expsym_cmds=$lt_module_expsym_cmds
9365 # Commands to strip libraries.
9366 old_striplib=$lt_old_striplib
9367 striplib=$lt_striplib
9369 # Dependencies to place before the objects being linked to create a
9370 # shared library.
9371 predep_objects=$lt_predep_objects
9373 # Dependencies to place after the objects being linked to create a
9374 # shared library.
9375 postdep_objects=$lt_postdep_objects
9377 # Dependencies to place before the objects being linked to create a
9378 # shared library.
9379 predeps=$lt_predeps
9381 # Dependencies to place after the objects being linked to create a
9382 # shared library.
9383 postdeps=$lt_postdeps
9385 # The library search path used internally by the compiler when linking
9386 # a shared library.
9387 compiler_lib_search_path=$lt_compiler_lib_search_path
9389 # Method to check whether dependent libraries are shared objects.
9390 deplibs_check_method=$lt_deplibs_check_method
9392 # Command to use when deplibs_check_method == file_magic.
9393 file_magic_cmd=$lt_file_magic_cmd
9395 # Flag that allows shared libraries with undefined symbols to be built.
9396 allow_undefined_flag=$lt_allow_undefined_flag
9398 # Flag that forces no undefined symbols.
9399 no_undefined_flag=$lt_no_undefined_flag
9401 # Commands used to finish a libtool library installation in a directory.
9402 finish_cmds=$lt_finish_cmds
9404 # Same as above, but a single script fragment to be evaled but not shown.
9405 finish_eval=$lt_finish_eval
9407 # Take the output of nm and produce a listing of raw symbols and C names.
9408 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9410 # Transform the output of nm in a proper C declaration
9411 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9413 # Transform the output of nm in a C name address pair
9414 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9416 # This is the shared library runtime path variable.
9417 runpath_var=$runpath_var
9419 # This is the shared library path variable.
9420 shlibpath_var=$shlibpath_var
9422 # Is shlibpath searched before the hard-coded library search path?
9423 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9425 # How to hardcode a shared library path into an executable.
9426 hardcode_action=$hardcode_action
9428 # Whether we should hardcode library paths into libraries.
9429 hardcode_into_libs=$hardcode_into_libs
9431 # Flag to hardcode \$libdir into a binary during linking.
9432 # This must work even if \$libdir does not exist.
9433 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9435 # If ld is used when linking, flag to hardcode \$libdir into
9436 # a binary during linking. This must work even if \$libdir does
9437 # not exist.
9438 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9440 # Whether we need a single -rpath flag with a separated argument.
9441 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9443 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9444 # resulting binary.
9445 hardcode_direct=$hardcode_direct
9447 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9448 # resulting binary.
9449 hardcode_minus_L=$hardcode_minus_L
9451 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9452 # the resulting binary.
9453 hardcode_shlibpath_var=$hardcode_shlibpath_var
9455 # Set to yes if building a shared library automatically hardcodes DIR into the library
9456 # and all subsequent libraries and executables linked against it.
9457 hardcode_automatic=$hardcode_automatic
9459 # Variables whose values should be saved in libtool wrapper scripts and
9460 # restored at relink time.
9461 variables_saved_for_relink="$variables_saved_for_relink"
9463 # Whether libtool must link a program against all its dependency libraries.
9464 link_all_deplibs=$link_all_deplibs
9466 # Compile-time system search path for libraries
9467 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9469 # Run-time system search path for libraries
9470 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9472 # Fix the shell variable \$srcfile for the compiler.
9473 fix_srcfile_path="$fix_srcfile_path"
9475 # Set to yes if exported symbols are required.
9476 always_export_symbols=$always_export_symbols
9478 # The commands to list exported symbols.
9479 export_symbols_cmds=$lt_export_symbols_cmds
9481 # The commands to extract the exported symbol list from a shared archive.
9482 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9484 # Symbols that should not be listed in the preloaded symbols.
9485 exclude_expsyms=$lt_exclude_expsyms
9487 # Symbols that must always be exported.
9488 include_expsyms=$lt_include_expsyms
9490 # ### END LIBTOOL CONFIG
9492 __EOF__
9495 case $host_os in
9496 aix3*)
9497 cat <<\EOF >> "$cfgfile"
9499 # AIX sometimes has problems with the GCC collect2 program. For some
9500 # reason, if we set the COLLECT_NAMES environment variable, the problems
9501 # vanish in a puff of smoke.
9502 if test "X${COLLECT_NAMES+set}" != Xset; then
9503 COLLECT_NAMES=
9504 export COLLECT_NAMES
9508 esac
9510 # We use sed instead of cat because bash on DJGPP gets confused if
9511 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9512 # text mode, it properly converts lines to CR/LF. This bash problem
9513 # is reportedly fixed, but why not run on old versions too?
9514 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9516 mv -f "$cfgfile" "$ofile" || \
9517 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9518 chmod +x "$ofile"
9520 else
9521 # If there is no Makefile yet, we rely on a make rule to execute
9522 # `config.status --recheck' to rerun these tests and create the
9523 # libtool script then.
9524 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9525 if test -f "$ltmain_in"; then
9526 test -f Makefile && make "$ltmain"
9531 ac_ext=c
9532 ac_cpp='$CPP $CPPFLAGS'
9533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9537 CC="$lt_save_CC"
9540 # Check whether --with-tags or --without-tags was given.
9541 if test "${with_tags+set}" = set; then
9542 withval="$with_tags"
9543 tagnames="$withval"
9546 if test -f "$ltmain" && test -n "$tagnames"; then
9547 if test ! -f "${ofile}"; then
9548 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9549 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9552 if test -z "$LTCC"; then
9553 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9554 if test -z "$LTCC"; then
9555 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9556 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9557 else
9558 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9559 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9563 # Extract list of available tagged configurations in $ofile.
9564 # Note that this assumes the entire list is on one line.
9565 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9567 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9568 for tagname in $tagnames; do
9569 IFS="$lt_save_ifs"
9570 # Check whether tagname contains only valid characters
9571 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9572 "") ;;
9573 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9574 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9575 { (exit 1); exit 1; }; }
9577 esac
9579 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9580 then
9581 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9582 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9583 { (exit 1); exit 1; }; }
9586 # Update the list of available tags.
9587 if test -n "$tagname"; then
9588 echo appending configuration tag \"$tagname\" to $ofile
9590 case $tagname in
9591 CXX)
9592 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9593 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9594 (test "X$CXX" != "Xg++"))) ; then
9595 ac_ext=cc
9596 ac_cpp='$CXXCPP $CPPFLAGS'
9597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9604 archive_cmds_need_lc_CXX=no
9605 allow_undefined_flag_CXX=
9606 always_export_symbols_CXX=no
9607 archive_expsym_cmds_CXX=
9608 export_dynamic_flag_spec_CXX=
9609 hardcode_direct_CXX=no
9610 hardcode_libdir_flag_spec_CXX=
9611 hardcode_libdir_flag_spec_ld_CXX=
9612 hardcode_libdir_separator_CXX=
9613 hardcode_minus_L_CXX=no
9614 hardcode_automatic_CXX=no
9615 module_cmds_CXX=
9616 module_expsym_cmds_CXX=
9617 link_all_deplibs_CXX=unknown
9618 old_archive_cmds_CXX=$old_archive_cmds
9619 no_undefined_flag_CXX=
9620 whole_archive_flag_spec_CXX=
9621 enable_shared_with_static_runtimes_CXX=no
9623 # Dependencies to place before and after the object being linked:
9624 predep_objects_CXX=
9625 postdep_objects_CXX=
9626 predeps_CXX=
9627 postdeps_CXX=
9628 compiler_lib_search_path_CXX=
9630 # Source file extension for C++ test sources.
9631 ac_ext=cc
9633 # Object file extension for compiled C++ test sources.
9634 objext=o
9635 objext_CXX=$objext
9637 # Code to be used in simple compile tests
9638 lt_simple_compile_test_code="int some_variable = 0;\n"
9640 # Code to be used in simple link tests
9641 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9643 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9645 # If no C compiler was specified, use CC.
9646 LTCC=${LTCC-"$CC"}
9648 # Allow CC to be a program name with arguments.
9649 compiler=$CC
9652 # Allow CC to be a program name with arguments.
9653 lt_save_CC=$CC
9654 lt_save_LD=$LD
9655 lt_save_GCC=$GCC
9656 GCC=$GXX
9657 lt_save_with_gnu_ld=$with_gnu_ld
9658 lt_save_path_LD=$lt_cv_path_LD
9659 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9660 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9661 else
9662 unset lt_cv_prog_gnu_ld
9664 if test -n "${lt_cv_path_LDCXX+set}"; then
9665 lt_cv_path_LD=$lt_cv_path_LDCXX
9666 else
9667 unset lt_cv_path_LD
9669 test -z "${LDCXX+set}" || LD=$LDCXX
9670 CC=${CXX-"c++"}
9671 compiler=$CC
9672 compiler_CXX=$CC
9673 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9675 # We don't want -fno-exception wen compiling C++ code, so set the
9676 # no_builtin_flag separately
9677 if test "$GXX" = yes; then
9678 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9679 else
9680 lt_prog_compiler_no_builtin_flag_CXX=
9683 if test "$GXX" = yes; then
9684 # Set up default GNU C++ configuration
9687 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9688 if test "${with_gnu_ld+set}" = set; then
9689 withval="$with_gnu_ld"
9690 test "$withval" = no || with_gnu_ld=yes
9691 else
9692 with_gnu_ld=no
9694 ac_prog=ld
9695 if test "$GCC" = yes; then
9696 # Check if gcc -print-prog-name=ld gives a path.
9697 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9698 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9699 case $host in
9700 *-*-mingw*)
9701 # gcc leaves a trailing carriage return which upsets mingw
9702 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9704 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9705 esac
9706 case $ac_prog in
9707 # Accept absolute paths.
9708 [\\/]* | ?:[\\/]*)
9709 re_direlt='/[^/][^/]*/\.\./'
9710 # Canonicalize the pathname of ld
9711 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9712 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9713 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9714 done
9715 test -z "$LD" && LD="$ac_prog"
9718 # If it fails, then pretend we aren't using GCC.
9719 ac_prog=ld
9722 # If it is relative, then search for the first ld in PATH.
9723 with_gnu_ld=unknown
9725 esac
9726 elif test "$with_gnu_ld" = yes; then
9727 echo "$as_me:$LINENO: checking for GNU ld" >&5
9728 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9729 else
9730 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9731 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9733 if test "${lt_cv_path_LD+set}" = set; then
9734 echo $ECHO_N "(cached) $ECHO_C" >&6
9735 else
9736 if test -z "$LD"; then
9737 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9738 for ac_dir in $PATH; do
9739 IFS="$lt_save_ifs"
9740 test -z "$ac_dir" && ac_dir=.
9741 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9742 lt_cv_path_LD="$ac_dir/$ac_prog"
9743 # Check to see if the program is GNU ld. I'd rather use --version,
9744 # but apparently some GNU ld's only accept -v.
9745 # Break only if it was the GNU/non-GNU ld that we prefer.
9746 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9747 *GNU* | *'with BFD'*)
9748 test "$with_gnu_ld" != no && break
9751 test "$with_gnu_ld" != yes && break
9753 esac
9755 done
9756 IFS="$lt_save_ifs"
9757 else
9758 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9762 LD="$lt_cv_path_LD"
9763 if test -n "$LD"; then
9764 echo "$as_me:$LINENO: result: $LD" >&5
9765 echo "${ECHO_T}$LD" >&6
9766 else
9767 echo "$as_me:$LINENO: result: no" >&5
9768 echo "${ECHO_T}no" >&6
9770 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9771 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9772 { (exit 1); exit 1; }; }
9773 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9774 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9775 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9776 echo $ECHO_N "(cached) $ECHO_C" >&6
9777 else
9778 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9779 case `$LD -v 2>&1 </dev/null` in
9780 *GNU* | *'with BFD'*)
9781 lt_cv_prog_gnu_ld=yes
9784 lt_cv_prog_gnu_ld=no
9786 esac
9788 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9789 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9790 with_gnu_ld=$lt_cv_prog_gnu_ld
9794 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9795 # archiving commands below assume that GNU ld is being used.
9796 if test "$with_gnu_ld" = yes; then
9797 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9798 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'
9800 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9801 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9803 # If archive_cmds runs LD, not CC, wlarc should be empty
9804 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9805 # investigate it a little bit more. (MM)
9806 wlarc='${wl}'
9808 # ancient GNU ld didn't support --whole-archive et. al.
9809 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9810 grep 'no-whole-archive' > /dev/null; then
9811 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9812 else
9813 whole_archive_flag_spec_CXX=
9815 else
9816 with_gnu_ld=no
9817 wlarc=
9819 # A generic and very simple default shared library creation
9820 # command for GNU C++ for the case where it uses the native
9821 # linker, instead of GNU ld. If possible, this setting should
9822 # overridden to take advantage of the native linker features on
9823 # the platform it is being used on.
9824 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9827 # Commands to make compiler produce verbose output that lists
9828 # what "hidden" libraries, object files and flags are used when
9829 # linking a shared library.
9830 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9832 else
9833 GXX=no
9834 with_gnu_ld=no
9835 wlarc=
9838 # PORTME: fill in a description of your system's C++ link characteristics
9839 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9840 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9841 ld_shlibs_CXX=yes
9842 case $host_os in
9843 aix3*)
9844 # FIXME: insert proper C++ library support
9845 ld_shlibs_CXX=no
9847 aix4* | aix5*)
9848 if test "$host_cpu" = ia64; then
9849 # On IA64, the linker does run time linking by default, so we don't
9850 # have to do anything special.
9851 aix_use_runtimelinking=no
9852 exp_sym_flag='-Bexport'
9853 no_entry_flag=""
9854 else
9855 aix_use_runtimelinking=no
9857 # Test if we are trying to use run time linking or normal
9858 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9859 # need to do runtime linking.
9860 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9861 for ld_flag in $LDFLAGS; do
9862 case $ld_flag in
9863 *-brtl*)
9864 aix_use_runtimelinking=yes
9865 break
9867 esac
9868 done
9869 esac
9871 exp_sym_flag='-bexport'
9872 no_entry_flag='-bnoentry'
9875 # When large executables or shared objects are built, AIX ld can
9876 # have problems creating the table of contents. If linking a library
9877 # or program results in "error TOC overflow" add -mminimal-toc to
9878 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9879 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9881 archive_cmds_CXX=''
9882 hardcode_direct_CXX=yes
9883 hardcode_libdir_separator_CXX=':'
9884 link_all_deplibs_CXX=yes
9886 if test "$GXX" = yes; then
9887 case $host_os in aix4.[012]|aix4.[012].*)
9888 # We only want to do this on AIX 4.2 and lower, the check
9889 # below for broken collect2 doesn't work under 4.3+
9890 collect2name=`${CC} -print-prog-name=collect2`
9891 if test -f "$collect2name" && \
9892 strings "$collect2name" | grep resolve_lib_name >/dev/null
9893 then
9894 # We have reworked collect2
9895 hardcode_direct_CXX=yes
9896 else
9897 # We have old collect2
9898 hardcode_direct_CXX=unsupported
9899 # It fails to find uninstalled libraries when the uninstalled
9900 # path is not listed in the libpath. Setting hardcode_minus_L
9901 # to unsupported forces relinking
9902 hardcode_minus_L_CXX=yes
9903 hardcode_libdir_flag_spec_CXX='-L$libdir'
9904 hardcode_libdir_separator_CXX=
9906 esac
9907 shared_flag='-shared'
9908 if test "$aix_use_runtimelinking" = yes; then
9909 shared_flag="$shared_flag "'${wl}-G'
9911 else
9912 # not using gcc
9913 if test "$host_cpu" = ia64; then
9914 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9915 # chokes on -Wl,-G. The following line is correct:
9916 shared_flag='-G'
9917 else
9918 if test "$aix_use_runtimelinking" = yes; then
9919 shared_flag='${wl}-G'
9920 else
9921 shared_flag='${wl}-bM:SRE'
9926 # It seems that -bexpall does not export symbols beginning with
9927 # underscore (_), so it is better to generate a list of symbols to export.
9928 always_export_symbols_CXX=yes
9929 if test "$aix_use_runtimelinking" = yes; then
9930 # Warning - without using the other runtime loading flags (-brtl),
9931 # -berok will link without error, but may produce a broken library.
9932 allow_undefined_flag_CXX='-berok'
9933 # Determine the default libpath from the value encoded in an empty executable.
9934 cat >conftest.$ac_ext <<_ACEOF
9935 /* confdefs.h. */
9936 _ACEOF
9937 cat confdefs.h >>conftest.$ac_ext
9938 cat >>conftest.$ac_ext <<_ACEOF
9939 /* end confdefs.h. */
9942 main ()
9946 return 0;
9948 _ACEOF
9949 rm -f conftest.$ac_objext conftest$ac_exeext
9950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9951 (eval $ac_link) 2>conftest.er1
9952 ac_status=$?
9953 grep -v '^ *+' conftest.er1 >conftest.err
9954 rm -f conftest.er1
9955 cat conftest.err >&5
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); } &&
9958 { ac_try='test -z "$ac_cxx_werror_flag"
9959 || test ! -s conftest.err'
9960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9961 (eval $ac_try) 2>&5
9962 ac_status=$?
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; } &&
9965 { ac_try='test -s conftest$ac_exeext'
9966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9967 (eval $ac_try) 2>&5
9968 ac_status=$?
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); }; }; then
9972 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9974 # Check for a 64-bit object if we didn't find anything.
9975 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; }
9976 }'`; fi
9977 else
9978 echo "$as_me: failed program was:" >&5
9979 sed 's/^/| /' conftest.$ac_ext >&5
9982 rm -f conftest.err conftest.$ac_objext \
9983 conftest$ac_exeext conftest.$ac_ext
9984 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9986 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9988 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"
9989 else
9990 if test "$host_cpu" = ia64; then
9991 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9992 allow_undefined_flag_CXX="-z nodefs"
9993 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"
9994 else
9995 # Determine the default libpath from the value encoded in an empty executable.
9996 cat >conftest.$ac_ext <<_ACEOF
9997 /* confdefs.h. */
9998 _ACEOF
9999 cat confdefs.h >>conftest.$ac_ext
10000 cat >>conftest.$ac_ext <<_ACEOF
10001 /* end confdefs.h. */
10004 main ()
10008 return 0;
10010 _ACEOF
10011 rm -f conftest.$ac_objext conftest$ac_exeext
10012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10013 (eval $ac_link) 2>conftest.er1
10014 ac_status=$?
10015 grep -v '^ *+' conftest.er1 >conftest.err
10016 rm -f conftest.er1
10017 cat conftest.err >&5
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); } &&
10020 { ac_try='test -z "$ac_cxx_werror_flag"
10021 || test ! -s conftest.err'
10022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10023 (eval $ac_try) 2>&5
10024 ac_status=$?
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); }; } &&
10027 { ac_try='test -s conftest$ac_exeext'
10028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10029 (eval $ac_try) 2>&5
10030 ac_status=$?
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; }; then
10034 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10036 # Check for a 64-bit object if we didn't find anything.
10037 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; }
10038 }'`; fi
10039 else
10040 echo "$as_me: failed program was:" >&5
10041 sed 's/^/| /' conftest.$ac_ext >&5
10044 rm -f conftest.err conftest.$ac_objext \
10045 conftest$ac_exeext conftest.$ac_ext
10046 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10048 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10049 # Warning - without using the other run time loading flags,
10050 # -berok will link without error, but may produce a broken library.
10051 no_undefined_flag_CXX=' ${wl}-bernotok'
10052 allow_undefined_flag_CXX=' ${wl}-berok'
10053 # -bexpall does not export symbols beginning with underscore (_)
10054 always_export_symbols_CXX=yes
10055 # Exported symbols can be pulled into shared objects from archives
10056 whole_archive_flag_spec_CXX=' '
10057 archive_cmds_need_lc_CXX=yes
10058 # This is similar to how AIX traditionally builds it's shared libraries.
10059 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'
10063 chorus*)
10064 case $cc_basename in
10066 # FIXME: insert proper C++ library support
10067 ld_shlibs_CXX=no
10069 esac
10073 cygwin* | mingw* | pw32*)
10074 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10075 # as there is no search path for DLLs.
10076 hardcode_libdir_flag_spec_CXX='-L$libdir'
10077 allow_undefined_flag_CXX=unsupported
10078 always_export_symbols_CXX=no
10079 enable_shared_with_static_runtimes_CXX=yes
10081 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10082 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'
10083 # If the export-symbols file already is a .def file (1st line
10084 # is EXPORTS), use it as is; otherwise, prepend...
10085 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10086 cp $export_symbols $output_objdir/$soname.def;
10087 else
10088 echo EXPORTS > $output_objdir/$soname.def;
10089 cat $export_symbols >> $output_objdir/$soname.def;
10091 $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'
10092 else
10093 ld_shlibs_CXX=no
10096 darwin* | rhapsody*)
10097 case "$host_os" in
10098 rhapsody* | darwin1.[012])
10099 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10101 *) # Darwin 1.3 on
10102 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10103 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10104 else
10105 case ${MACOSX_DEPLOYMENT_TARGET} in
10106 10.[012])
10107 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10109 10.*)
10110 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10112 esac
10115 esac
10116 archive_cmds_need_lc_CXX=no
10117 hardcode_direct_CXX=no
10118 hardcode_automatic_CXX=yes
10119 hardcode_shlibpath_var_CXX=unsupported
10120 whole_archive_flag_spec_CXX=''
10121 link_all_deplibs_CXX=yes
10123 if test "$GXX" = yes ; then
10124 lt_int_apple_cc_single_mod=no
10125 output_verbose_link_cmd='echo'
10126 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10127 lt_int_apple_cc_single_mod=yes
10129 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10130 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10131 else
10132 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'
10134 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10135 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10136 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10137 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}'
10138 else
10139 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}'
10141 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}'
10142 else
10143 case "$cc_basename" in
10144 xlc*)
10145 output_verbose_link_cmd='echo'
10146 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'
10147 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10148 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10149 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}'
10150 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}'
10153 ld_shlibs_CXX=no
10155 esac
10159 dgux*)
10160 case $cc_basename in
10161 ec++)
10162 # FIXME: insert proper C++ library support
10163 ld_shlibs_CXX=no
10165 ghcx)
10166 # Green Hills C++ Compiler
10167 # FIXME: insert proper C++ library support
10168 ld_shlibs_CXX=no
10171 # FIXME: insert proper C++ library support
10172 ld_shlibs_CXX=no
10174 esac
10176 freebsd[12]*)
10177 # C++ shared libraries reported to be fairly broken before switch to ELF
10178 ld_shlibs_CXX=no
10180 freebsd-elf*)
10181 archive_cmds_need_lc_CXX=no
10183 freebsd* | kfreebsd*-gnu | dragonfly*)
10184 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10185 # conventions
10186 ld_shlibs_CXX=yes
10188 gnu*)
10190 hpux9*)
10191 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10192 hardcode_libdir_separator_CXX=:
10193 export_dynamic_flag_spec_CXX='${wl}-E'
10194 hardcode_direct_CXX=yes
10195 hardcode_minus_L_CXX=yes # Not in the search PATH,
10196 # but as the default
10197 # location of the library.
10199 case $cc_basename in
10201 # FIXME: insert proper C++ library support
10202 ld_shlibs_CXX=no
10204 aCC)
10205 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'
10206 # Commands to make compiler produce verbose output that lists
10207 # what "hidden" libraries, object files and flags are used when
10208 # linking a shared library.
10210 # There doesn't appear to be a way to prevent this compiler from
10211 # explicitly linking system object files so we need to strip them
10212 # from the output so that they don't get included in the library
10213 # dependencies.
10214 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'
10217 if test "$GXX" = yes; then
10218 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'
10219 else
10220 # FIXME: insert proper C++ library support
10221 ld_shlibs_CXX=no
10224 esac
10226 hpux10*|hpux11*)
10227 if test $with_gnu_ld = no; then
10228 case "$host_cpu" in
10229 hppa*64*)
10230 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10231 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10232 hardcode_libdir_separator_CXX=:
10234 ia64*)
10235 hardcode_libdir_flag_spec_CXX='-L$libdir'
10238 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10239 hardcode_libdir_separator_CXX=:
10240 export_dynamic_flag_spec_CXX='${wl}-E'
10242 esac
10244 case "$host_cpu" in
10245 hppa*64*)
10246 hardcode_direct_CXX=no
10247 hardcode_shlibpath_var_CXX=no
10249 ia64*)
10250 hardcode_direct_CXX=no
10251 hardcode_shlibpath_var_CXX=no
10252 hardcode_minus_L_CXX=yes # Not in the search PATH,
10253 # but as the default
10254 # location of the library.
10257 hardcode_direct_CXX=yes
10258 hardcode_minus_L_CXX=yes # Not in the search PATH,
10259 # but as the default
10260 # location of the library.
10262 esac
10264 case $cc_basename in
10266 # FIXME: insert proper C++ library support
10267 ld_shlibs_CXX=no
10269 aCC)
10270 case "$host_cpu" in
10271 hppa*64*|ia64*)
10272 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10275 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10277 esac
10278 # Commands to make compiler produce verbose output that lists
10279 # what "hidden" libraries, object files and flags are used when
10280 # linking a shared library.
10282 # There doesn't appear to be a way to prevent this compiler from
10283 # explicitly linking system object files so we need to strip them
10284 # from the output so that they don't get included in the library
10285 # dependencies.
10286 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'
10289 if test "$GXX" = yes; then
10290 if test $with_gnu_ld = no; then
10291 case "$host_cpu" in
10292 ia64*|hppa*64*)
10293 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10296 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'
10298 esac
10300 else
10301 # FIXME: insert proper C++ library support
10302 ld_shlibs_CXX=no
10305 esac
10307 irix5* | irix6*)
10308 case $cc_basename in
10310 # SGI C++
10311 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10313 # Archives containing C++ object files must be created using
10314 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10315 # necessary to make sure instantiated templates are included
10316 # in the archive.
10317 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10320 if test "$GXX" = yes; then
10321 if test "$with_gnu_ld" = no; then
10322 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10323 else
10324 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'
10327 link_all_deplibs_CXX=yes
10329 esac
10330 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10331 hardcode_libdir_separator_CXX=:
10333 linux*)
10334 case $cc_basename in
10335 KCC)
10336 # Kuck and Associates, Inc. (KAI) C++ Compiler
10338 # KCC will only create a shared library if the output file
10339 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10340 # to its proper name (with version) after linking.
10341 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'
10342 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'
10343 # Commands to make compiler produce verbose output that lists
10344 # what "hidden" libraries, object files and flags are used when
10345 # linking a shared library.
10347 # There doesn't appear to be a way to prevent this compiler from
10348 # explicitly linking system object files so we need to strip them
10349 # from the output so that they don't get included in the library
10350 # dependencies.
10351 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'
10353 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10354 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10356 # Archives containing C++ object files must be created using
10357 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10358 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10360 icpc)
10361 # Intel C++
10362 with_gnu_ld=yes
10363 # version 8.0 and above of icpc choke on multiply defined symbols
10364 # if we add $predep_objects and $postdep_objects, however 7.1 and
10365 # earlier do not add the objects themselves.
10366 case `$CC -V 2>&1` in
10367 *"Version 7."*)
10368 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10369 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'
10371 *) # Version 8.0 or newer
10372 tmp_idyn=
10373 case $host_cpu in
10374 ia64*) tmp_idyn=' -i_dynamic';;
10375 esac
10376 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10377 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'
10379 esac
10380 archive_cmds_need_lc_CXX=no
10381 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10382 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10383 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10385 pgCC)
10386 # Portland Group C++ compiler
10387 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10388 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'
10390 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10391 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10393 cxx)
10394 # Compaq C++
10395 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10396 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'
10398 runpath_var=LD_RUN_PATH
10399 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10400 hardcode_libdir_separator_CXX=:
10402 # Commands to make compiler produce verbose output that lists
10403 # what "hidden" libraries, object files and flags are used when
10404 # linking a shared library.
10406 # There doesn't appear to be a way to prevent this compiler from
10407 # explicitly linking system object files so we need to strip them
10408 # from the output so that they don't get included in the library
10409 # dependencies.
10410 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'
10412 esac
10414 lynxos*)
10415 # FIXME: insert proper C++ library support
10416 ld_shlibs_CXX=no
10418 m88k*)
10419 # FIXME: insert proper C++ library support
10420 ld_shlibs_CXX=no
10422 mvs*)
10423 case $cc_basename in
10424 cxx)
10425 # FIXME: insert proper C++ library support
10426 ld_shlibs_CXX=no
10429 # FIXME: insert proper C++ library support
10430 ld_shlibs_CXX=no
10432 esac
10434 netbsd*)
10435 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10436 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10437 wlarc=
10438 hardcode_libdir_flag_spec_CXX='-R$libdir'
10439 hardcode_direct_CXX=yes
10440 hardcode_shlibpath_var_CXX=no
10442 # Workaround some broken pre-1.5 toolchains
10443 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10445 openbsd2*)
10446 # C++ shared libraries are fairly broken
10447 ld_shlibs_CXX=no
10449 openbsd*)
10450 hardcode_direct_CXX=yes
10451 hardcode_shlibpath_var_CXX=no
10452 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10453 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10454 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10455 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10456 export_dynamic_flag_spec_CXX='${wl}-E'
10457 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10459 output_verbose_link_cmd='echo'
10461 osf3*)
10462 case $cc_basename in
10463 KCC)
10464 # Kuck and Associates, Inc. (KAI) C++ Compiler
10466 # KCC will only create a shared library if the output file
10467 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10468 # to its proper name (with version) after linking.
10469 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'
10471 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10472 hardcode_libdir_separator_CXX=:
10474 # Archives containing C++ object files must be created using
10475 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10476 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10479 RCC)
10480 # Rational C++ 2.4.1
10481 # FIXME: insert proper C++ library support
10482 ld_shlibs_CXX=no
10484 cxx)
10485 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10486 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10488 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10489 hardcode_libdir_separator_CXX=:
10491 # Commands to make compiler produce verbose output that lists
10492 # what "hidden" libraries, object files and flags are used when
10493 # linking a shared library.
10495 # There doesn't appear to be a way to prevent this compiler from
10496 # explicitly linking system object files so we need to strip them
10497 # from the output so that they don't get included in the library
10498 # dependencies.
10499 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'
10502 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10503 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10504 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10506 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10507 hardcode_libdir_separator_CXX=:
10509 # Commands to make compiler produce verbose output that lists
10510 # what "hidden" libraries, object files and flags are used when
10511 # linking a shared library.
10512 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10514 else
10515 # FIXME: insert proper C++ library support
10516 ld_shlibs_CXX=no
10519 esac
10521 osf4* | osf5*)
10522 case $cc_basename in
10523 KCC)
10524 # Kuck and Associates, Inc. (KAI) C++ Compiler
10526 # KCC will only create a shared library if the output file
10527 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10528 # to its proper name (with version) after linking.
10529 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'
10531 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10532 hardcode_libdir_separator_CXX=:
10534 # Archives containing C++ object files must be created using
10535 # the KAI C++ compiler.
10536 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10538 RCC)
10539 # Rational C++ 2.4.1
10540 # FIXME: insert proper C++ library support
10541 ld_shlibs_CXX=no
10543 cxx)
10544 allow_undefined_flag_CXX=' -expect_unresolved \*'
10545 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10546 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10547 echo "-hidden">> $lib.exp~
10548 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10549 $rm $lib.exp'
10551 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10552 hardcode_libdir_separator_CXX=:
10554 # Commands to make compiler produce verbose output that lists
10555 # what "hidden" libraries, object files and flags are used when
10556 # linking a shared library.
10558 # There doesn't appear to be a way to prevent this compiler from
10559 # explicitly linking system object files so we need to strip them
10560 # from the output so that they don't get included in the library
10561 # dependencies.
10562 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'
10565 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10566 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10567 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10569 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10570 hardcode_libdir_separator_CXX=:
10572 # Commands to make compiler produce verbose output that lists
10573 # what "hidden" libraries, object files and flags are used when
10574 # linking a shared library.
10575 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10577 else
10578 # FIXME: insert proper C++ library support
10579 ld_shlibs_CXX=no
10582 esac
10584 psos*)
10585 # FIXME: insert proper C++ library support
10586 ld_shlibs_CXX=no
10588 sco*)
10589 archive_cmds_need_lc_CXX=no
10590 case $cc_basename in
10592 # FIXME: insert proper C++ library support
10593 ld_shlibs_CXX=no
10596 # FIXME: insert proper C++ library support
10597 ld_shlibs_CXX=no
10599 esac
10601 sunos4*)
10602 case $cc_basename in
10604 # Sun C++ 4.x
10605 # FIXME: insert proper C++ library support
10606 ld_shlibs_CXX=no
10608 lcc)
10609 # Lucid
10610 # FIXME: insert proper C++ library support
10611 ld_shlibs_CXX=no
10614 # FIXME: insert proper C++ library support
10615 ld_shlibs_CXX=no
10617 esac
10619 solaris*)
10620 case $cc_basename in
10622 # Sun C++ 4.2, 5.x and Centerline C++
10623 no_undefined_flag_CXX=' -zdefs'
10624 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10625 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10626 $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'
10628 hardcode_libdir_flag_spec_CXX='-R$libdir'
10629 hardcode_shlibpath_var_CXX=no
10630 case $host_os in
10631 solaris2.[0-5] | solaris2.[0-5].*) ;;
10633 # The C++ compiler is used as linker so we must use $wl
10634 # flag to pass the commands to the underlying system
10635 # linker.
10636 # Supported since Solaris 2.6 (maybe 2.5.1?)
10637 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10639 esac
10640 link_all_deplibs_CXX=yes
10642 # Commands to make compiler produce verbose output that lists
10643 # what "hidden" libraries, object files and flags are used when
10644 # linking a shared library.
10646 # There doesn't appear to be a way to prevent this compiler from
10647 # explicitly linking system object files so we need to strip them
10648 # from the output so that they don't get included in the library
10649 # dependencies.
10650 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'
10652 # Archives containing C++ object files must be created using
10653 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10654 # necessary to make sure instantiated templates are included
10655 # in the archive.
10656 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10658 gcx)
10659 # Green Hills C++ Compiler
10660 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10662 # The C++ compiler must be used to create the archive.
10663 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10666 # GNU C++ compiler with Solaris linker
10667 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10668 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10669 if $CC --version | grep -v '^2\.7' > /dev/null; then
10670 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10671 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10672 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10674 # Commands to make compiler produce verbose output that lists
10675 # what "hidden" libraries, object files and flags are used when
10676 # linking a shared library.
10677 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10678 else
10679 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10680 # platform.
10681 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10682 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10683 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10685 # Commands to make compiler produce verbose output that lists
10686 # what "hidden" libraries, object files and flags are used when
10687 # linking a shared library.
10688 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10691 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10694 esac
10696 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10697 archive_cmds_need_lc_CXX=no
10699 tandem*)
10700 case $cc_basename in
10701 NCC)
10702 # NonStop-UX NCC 3.20
10703 # FIXME: insert proper C++ library support
10704 ld_shlibs_CXX=no
10707 # FIXME: insert proper C++ library support
10708 ld_shlibs_CXX=no
10710 esac
10712 vxworks*)
10713 # FIXME: insert proper C++ library support
10714 ld_shlibs_CXX=no
10717 # FIXME: insert proper C++ library support
10718 ld_shlibs_CXX=no
10720 esac
10721 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10722 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10723 test "$ld_shlibs_CXX" = no && can_build_shared=no
10725 GCC_CXX="$GXX"
10726 LD_CXX="$LD"
10729 cat > conftest.$ac_ext <<EOF
10730 class Foo
10732 public:
10733 Foo (void) { a = 0; }
10734 private:
10735 int a;
10739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10740 (eval $ac_compile) 2>&5
10741 ac_status=$?
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); }; then
10744 # Parse the compiler output and extract the necessary
10745 # objects, libraries and library flags.
10747 # Sentinel used to keep track of whether or not we are before
10748 # the conftest object file.
10749 pre_test_object_deps_done=no
10751 # The `*' in the case matches for architectures that use `case' in
10752 # $output_verbose_cmd can trigger glob expansion during the loop
10753 # eval without this substitution.
10754 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10756 for p in `eval $output_verbose_link_cmd`; do
10757 case $p in
10759 -L* | -R* | -l*)
10760 # Some compilers place space between "-{L,R}" and the path.
10761 # Remove the space.
10762 if test $p = "-L" \
10763 || test $p = "-R"; then
10764 prev=$p
10765 continue
10766 else
10767 prev=
10770 if test "$pre_test_object_deps_done" = no; then
10771 case $p in
10772 -L* | -R*)
10773 # Internal compiler library paths should come after those
10774 # provided the user. The postdeps already come after the
10775 # user supplied libs so there is no need to process them.
10776 if test -z "$compiler_lib_search_path_CXX"; then
10777 compiler_lib_search_path_CXX="${prev}${p}"
10778 else
10779 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10782 # The "-l" case would never come before the object being
10783 # linked, so don't bother handling this case.
10784 esac
10785 else
10786 if test -z "$postdeps_CXX"; then
10787 postdeps_CXX="${prev}${p}"
10788 else
10789 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10794 *.$objext)
10795 # This assumes that the test object file only shows up
10796 # once in the compiler output.
10797 if test "$p" = "conftest.$objext"; then
10798 pre_test_object_deps_done=yes
10799 continue
10802 if test "$pre_test_object_deps_done" = no; then
10803 if test -z "$predep_objects_CXX"; then
10804 predep_objects_CXX="$p"
10805 else
10806 predep_objects_CXX="$predep_objects_CXX $p"
10808 else
10809 if test -z "$postdep_objects_CXX"; then
10810 postdep_objects_CXX="$p"
10811 else
10812 postdep_objects_CXX="$postdep_objects_CXX $p"
10817 *) ;; # Ignore the rest.
10819 esac
10820 done
10822 # Clean up.
10823 rm -f a.out a.exe
10824 else
10825 echo "libtool.m4: error: problem compiling CXX test program"
10828 $rm -f confest.$objext
10830 case " $postdeps_CXX " in
10831 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10832 esac
10834 lt_prog_compiler_wl_CXX=
10835 lt_prog_compiler_pic_CXX=
10836 lt_prog_compiler_static_CXX=
10838 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10839 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10841 # C++ specific cases for pic, static, wl, etc.
10842 if test "$GXX" = yes; then
10843 lt_prog_compiler_wl_CXX='-Wl,'
10844 lt_prog_compiler_static_CXX='-static'
10846 case $host_os in
10847 aix*)
10848 # All AIX code is PIC.
10849 if test "$host_cpu" = ia64; then
10850 # AIX 5 now supports IA64 processor
10851 lt_prog_compiler_static_CXX='-Bstatic'
10854 amigaos*)
10855 # FIXME: we need at least 68020 code to build shared libraries, but
10856 # adding the `-m68020' flag to GCC prevents building anything better,
10857 # like `-m68040'.
10858 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10860 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10861 # PIC is the default for these OSes.
10863 mingw* | os2* | pw32*)
10864 # This hack is so that the source file can tell whether it is being
10865 # built for inclusion in a dll (and should export symbols for example).
10866 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10868 darwin* | rhapsody*)
10869 # PIC is the default on this platform
10870 # Common symbols not allowed in MH_DYLIB files
10871 lt_prog_compiler_pic_CXX='-fno-common'
10873 *djgpp*)
10874 # DJGPP does not support shared libraries at all
10875 lt_prog_compiler_pic_CXX=
10877 sysv4*MP*)
10878 if test -d /usr/nec; then
10879 lt_prog_compiler_pic_CXX=-Kconform_pic
10882 hpux*)
10883 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10884 # not for PA HP-UX.
10885 case "$host_cpu" in
10886 hppa*64*|ia64*)
10889 lt_prog_compiler_pic_CXX='-fPIC'
10891 esac
10894 lt_prog_compiler_pic_CXX='-fPIC'
10896 esac
10897 else
10898 case $host_os in
10899 aix4* | aix5*)
10900 # All AIX code is PIC.
10901 if test "$host_cpu" = ia64; then
10902 # AIX 5 now supports IA64 processor
10903 lt_prog_compiler_static_CXX='-Bstatic'
10904 else
10905 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10908 chorus*)
10909 case $cc_basename in
10910 cxch68)
10911 # Green Hills C++ Compiler
10912 # _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"
10914 esac
10916 darwin*)
10917 # PIC is the default on this platform
10918 # Common symbols not allowed in MH_DYLIB files
10919 case "$cc_basename" in
10920 xlc*)
10921 lt_prog_compiler_pic_CXX='-qnocommon'
10922 lt_prog_compiler_wl_CXX='-Wl,'
10924 esac
10926 dgux*)
10927 case $cc_basename in
10928 ec++)
10929 lt_prog_compiler_pic_CXX='-KPIC'
10931 ghcx)
10932 # Green Hills C++ Compiler
10933 lt_prog_compiler_pic_CXX='-pic'
10937 esac
10939 freebsd* | kfreebsd*-gnu | dragonfly*)
10940 # FreeBSD uses GNU C++
10942 hpux9* | hpux10* | hpux11*)
10943 case $cc_basename in
10945 lt_prog_compiler_wl_CXX='-Wl,'
10946 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10947 if test "$host_cpu" != ia64; then
10948 lt_prog_compiler_pic_CXX='+Z'
10951 aCC)
10952 lt_prog_compiler_wl_CXX='-Wl,'
10953 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10954 case "$host_cpu" in
10955 hppa*64*|ia64*)
10956 # +Z the default
10959 lt_prog_compiler_pic_CXX='+Z'
10961 esac
10965 esac
10967 irix5* | irix6* | nonstopux*)
10968 case $cc_basename in
10970 lt_prog_compiler_wl_CXX='-Wl,'
10971 lt_prog_compiler_static_CXX='-non_shared'
10972 # CC pic flag -KPIC is the default.
10976 esac
10978 linux*)
10979 case $cc_basename in
10980 KCC)
10981 # KAI C++ Compiler
10982 lt_prog_compiler_wl_CXX='--backend -Wl,'
10983 lt_prog_compiler_pic_CXX='-fPIC'
10985 icpc* | ecpc*)
10986 # Intel C++
10987 lt_prog_compiler_wl_CXX='-Wl,'
10988 lt_prog_compiler_pic_CXX='-KPIC'
10989 lt_prog_compiler_static_CXX='-static'
10991 pgCC)
10992 # Portland Group C++ compiler.
10993 lt_prog_compiler_wl_CXX='-Wl,'
10994 lt_prog_compiler_pic_CXX='-fpic'
10995 lt_prog_compiler_static_CXX='-static'
10997 cxx)
10998 # Compaq C++
10999 # Make sure the PIC flag is empty. It appears that all Alpha
11000 # Linux and Compaq Tru64 Unix objects are PIC.
11001 lt_prog_compiler_pic_CXX=
11002 lt_prog_compiler_static_CXX='-non_shared'
11006 esac
11008 lynxos*)
11010 m88k*)
11012 mvs*)
11013 case $cc_basename in
11014 cxx)
11015 lt_prog_compiler_pic_CXX='-W c,exportall'
11019 esac
11021 netbsd*)
11023 osf3* | osf4* | osf5*)
11024 case $cc_basename in
11025 KCC)
11026 lt_prog_compiler_wl_CXX='--backend -Wl,'
11028 RCC)
11029 # Rational C++ 2.4.1
11030 lt_prog_compiler_pic_CXX='-pic'
11032 cxx)
11033 # Digital/Compaq C++
11034 lt_prog_compiler_wl_CXX='-Wl,'
11035 # Make sure the PIC flag is empty. It appears that all Alpha
11036 # Linux and Compaq Tru64 Unix objects are PIC.
11037 lt_prog_compiler_pic_CXX=
11038 lt_prog_compiler_static_CXX='-non_shared'
11042 esac
11044 psos*)
11046 sco*)
11047 case $cc_basename in
11049 lt_prog_compiler_pic_CXX='-fPIC'
11053 esac
11055 solaris*)
11056 case $cc_basename in
11058 # Sun C++ 4.2, 5.x and Centerline C++
11059 lt_prog_compiler_pic_CXX='-KPIC'
11060 lt_prog_compiler_static_CXX='-Bstatic'
11061 lt_prog_compiler_wl_CXX='-Qoption ld '
11063 gcx)
11064 # Green Hills C++ Compiler
11065 lt_prog_compiler_pic_CXX='-PIC'
11069 esac
11071 sunos4*)
11072 case $cc_basename in
11074 # Sun C++ 4.x
11075 lt_prog_compiler_pic_CXX='-pic'
11076 lt_prog_compiler_static_CXX='-Bstatic'
11078 lcc)
11079 # Lucid
11080 lt_prog_compiler_pic_CXX='-pic'
11084 esac
11086 tandem*)
11087 case $cc_basename in
11088 NCC)
11089 # NonStop-UX NCC 3.20
11090 lt_prog_compiler_pic_CXX='-KPIC'
11094 esac
11096 unixware*)
11098 vxworks*)
11101 lt_prog_compiler_can_build_shared_CXX=no
11103 esac
11106 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11107 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11110 # Check to make sure the PIC flag actually works.
11112 if test -n "$lt_prog_compiler_pic_CXX"; then
11114 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11115 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11116 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11117 echo $ECHO_N "(cached) $ECHO_C" >&6
11118 else
11119 lt_prog_compiler_pic_works_CXX=no
11120 ac_outfile=conftest.$ac_objext
11121 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11122 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11123 # Insert the option either (1) after the last *FLAGS variable, or
11124 # (2) before a word containing "conftest.", or (3) at the end.
11125 # Note that $ac_compile itself does not contain backslashes and begins
11126 # with a dollar sign (not a hyphen), so the echo should work correctly.
11127 # The option is referenced via a variable to avoid confusing sed.
11128 lt_compile=`echo "$ac_compile" | $SED \
11129 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11130 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11131 -e 's:$: $lt_compiler_flag:'`
11132 (eval echo "\"\$as_me:11132: $lt_compile\"" >&5)
11133 (eval "$lt_compile" 2>conftest.err)
11134 ac_status=$?
11135 cat conftest.err >&5
11136 echo "$as_me:11136: \$? = $ac_status" >&5
11137 if (exit $ac_status) && test -s "$ac_outfile"; then
11138 # The compiler can only warn and ignore the option if not recognized
11139 # So say no if there are warnings
11140 if test ! -s conftest.err; then
11141 lt_prog_compiler_pic_works_CXX=yes
11144 $rm conftest*
11147 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11148 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11150 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11151 case $lt_prog_compiler_pic_CXX in
11152 "" | " "*) ;;
11153 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11154 esac
11155 else
11156 lt_prog_compiler_pic_CXX=
11157 lt_prog_compiler_can_build_shared_CXX=no
11161 case "$host_os" in
11162 # For platforms which do not support PIC, -DPIC is meaningless:
11163 *djgpp*)
11164 lt_prog_compiler_pic_CXX=
11167 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11169 esac
11171 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11172 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11173 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11174 echo $ECHO_N "(cached) $ECHO_C" >&6
11175 else
11176 lt_cv_prog_compiler_c_o_CXX=no
11177 $rm -r conftest 2>/dev/null
11178 mkdir conftest
11179 cd conftest
11180 mkdir out
11181 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11183 lt_compiler_flag="-o out/conftest2.$ac_objext"
11184 # Insert the option either (1) after the last *FLAGS variable, or
11185 # (2) before a word containing "conftest.", or (3) at the end.
11186 # Note that $ac_compile itself does not contain backslashes and begins
11187 # with a dollar sign (not a hyphen), so the echo should work correctly.
11188 lt_compile=`echo "$ac_compile" | $SED \
11189 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11190 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11191 -e 's:$: $lt_compiler_flag:'`
11192 (eval echo "\"\$as_me:11192: $lt_compile\"" >&5)
11193 (eval "$lt_compile" 2>out/conftest.err)
11194 ac_status=$?
11195 cat out/conftest.err >&5
11196 echo "$as_me:11196: \$? = $ac_status" >&5
11197 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11198 then
11199 # The compiler can only warn and ignore the option if not recognized
11200 # So say no if there are warnings
11201 if test ! -s out/conftest.err; then
11202 lt_cv_prog_compiler_c_o_CXX=yes
11205 chmod u+w .
11206 $rm conftest*
11207 # SGI C++ compiler will create directory out/ii_files/ for
11208 # template instantiation
11209 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11210 $rm out/* && rmdir out
11211 cd ..
11212 rmdir conftest
11213 $rm conftest*
11216 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11217 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11220 hard_links="nottested"
11221 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11222 # do not overwrite the value of need_locks provided by the user
11223 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11224 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11225 hard_links=yes
11226 $rm conftest*
11227 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11228 touch conftest.a
11229 ln conftest.a conftest.b 2>&5 || hard_links=no
11230 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11231 echo "$as_me:$LINENO: result: $hard_links" >&5
11232 echo "${ECHO_T}$hard_links" >&6
11233 if test "$hard_links" = no; then
11234 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11235 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11236 need_locks=warn
11238 else
11239 need_locks=no
11242 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11243 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11245 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11246 case $host_os in
11247 aix4* | aix5*)
11248 # If we're using GNU nm, then we don't want the "-C" option.
11249 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11250 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11251 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'
11252 else
11253 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'
11256 pw32*)
11257 export_symbols_cmds_CXX="$ltdll_cmds"
11259 cygwin* | mingw*)
11260 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'
11263 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11265 esac
11267 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11268 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11269 test "$ld_shlibs_CXX" = no && can_build_shared=no
11271 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11272 if test "$GCC" = yes; then
11273 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11277 # Do we need to explicitly link libc?
11279 case "x$archive_cmds_need_lc_CXX" in
11280 x|xyes)
11281 # Assume -lc should be added
11282 archive_cmds_need_lc_CXX=yes
11284 if test "$enable_shared" = yes && test "$GCC" = yes; then
11285 case $archive_cmds_CXX in
11286 *'~'*)
11287 # FIXME: we may have to deal with multi-command sequences.
11289 '$CC '*)
11290 # Test whether the compiler implicitly links with -lc since on some
11291 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11292 # to ld, don't add -lc before -lgcc.
11293 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11294 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11295 $rm conftest*
11296 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11299 (eval $ac_compile) 2>&5
11300 ac_status=$?
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); } 2>conftest.err; then
11303 soname=conftest
11304 lib=conftest
11305 libobjs=conftest.$ac_objext
11306 deplibs=
11307 wl=$lt_prog_compiler_wl_CXX
11308 compiler_flags=-v
11309 linker_flags=-v
11310 verstring=
11311 output_objdir=.
11312 libname=conftest
11313 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11314 allow_undefined_flag_CXX=
11315 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11316 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11317 ac_status=$?
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); }
11320 then
11321 archive_cmds_need_lc_CXX=no
11322 else
11323 archive_cmds_need_lc_CXX=yes
11325 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11326 else
11327 cat conftest.err 1>&5
11329 $rm conftest*
11330 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11331 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11333 esac
11336 esac
11338 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11339 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11340 library_names_spec=
11341 libname_spec='lib$name'
11342 soname_spec=
11343 shrext_cmds=".so"
11344 postinstall_cmds=
11345 postuninstall_cmds=
11346 finish_cmds=
11347 finish_eval=
11348 shlibpath_var=
11349 shlibpath_overrides_runpath=unknown
11350 version_type=none
11351 dynamic_linker="$host_os ld.so"
11352 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11353 if test "$GCC" = yes; then
11354 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11355 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11356 # if the path contains ";" then we assume it to be the separator
11357 # otherwise default to the standard path separator (i.e. ":") - it is
11358 # assumed that no part of a normal pathname contains ";" but that should
11359 # okay in the real world where ";" in dirpaths is itself problematic.
11360 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11361 else
11362 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11364 else
11365 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11367 need_lib_prefix=unknown
11368 hardcode_into_libs=no
11370 # when you set need_version to no, make sure it does not cause -set_version
11371 # flags to be left without arguments
11372 need_version=unknown
11374 case $host_os in
11375 aix3*)
11376 version_type=linux
11377 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11378 shlibpath_var=LIBPATH
11380 # AIX 3 has no versioning support, so we append a major version to the name.
11381 soname_spec='${libname}${release}${shared_ext}$major'
11384 aix4* | aix5*)
11385 version_type=linux
11386 need_lib_prefix=no
11387 need_version=no
11388 hardcode_into_libs=yes
11389 if test "$host_cpu" = ia64; then
11390 # AIX 5 supports IA64
11391 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11392 shlibpath_var=LD_LIBRARY_PATH
11393 else
11394 # With GCC up to 2.95.x, collect2 would create an import file
11395 # for dependence libraries. The import file would start with
11396 # the line `#! .'. This would cause the generated library to
11397 # depend on `.', always an invalid library. This was fixed in
11398 # development snapshots of GCC prior to 3.0.
11399 case $host_os in
11400 aix4 | aix4.[01] | aix4.[01].*)
11401 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11402 echo ' yes '
11403 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11405 else
11406 can_build_shared=no
11409 esac
11410 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11411 # soname into executable. Probably we can add versioning support to
11412 # collect2, so additional links can be useful in future.
11413 if test "$aix_use_runtimelinking" = yes; then
11414 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11415 # instead of lib<name>.a to let people know that these are not
11416 # typical AIX shared libraries.
11417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11418 else
11419 # We preserve .a as extension for shared libraries through AIX4.2
11420 # and later when we are not doing run time linking.
11421 library_names_spec='${libname}${release}.a $libname.a'
11422 soname_spec='${libname}${release}${shared_ext}$major'
11424 shlibpath_var=LIBPATH
11428 amigaos*)
11429 library_names_spec='$libname.ixlibrary $libname.a'
11430 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11431 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'
11434 beos*)
11435 library_names_spec='${libname}${shared_ext}'
11436 dynamic_linker="$host_os ld.so"
11437 shlibpath_var=LIBRARY_PATH
11440 bsdi[45]*)
11441 version_type=linux
11442 need_version=no
11443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11444 soname_spec='${libname}${release}${shared_ext}$major'
11445 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11446 shlibpath_var=LD_LIBRARY_PATH
11447 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11448 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11449 # the default ld.so.conf also contains /usr/contrib/lib and
11450 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11451 # libtool to hard-code these into programs
11454 cygwin* | mingw* | pw32*)
11455 version_type=windows
11456 shrext_cmds=".dll"
11457 need_version=no
11458 need_lib_prefix=no
11460 case $GCC,$host_os in
11461 yes,cygwin* | yes,mingw* | yes,pw32*)
11462 library_names_spec='$libname.dll.a'
11463 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11464 postinstall_cmds='base_file=`basename \${file}`~
11465 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11466 dldir=$destdir/`dirname \$dlpath`~
11467 test -d \$dldir || mkdir -p \$dldir~
11468 $install_prog $dir/$dlname \$dldir/$dlname'
11469 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11470 dlpath=$dir/\$dldll~
11471 $rm \$dlpath'
11472 shlibpath_overrides_runpath=yes
11474 case $host_os in
11475 cygwin*)
11476 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11477 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11478 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11480 mingw*)
11481 # MinGW DLLs use traditional 'lib' prefix
11482 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11483 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11484 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11485 # It is most probably a Windows format PATH printed by
11486 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11487 # path with ; separators, and with drive letters. We can handle the
11488 # drive letters (cygwin fileutils understands them), so leave them,
11489 # especially as we might pass files found there to a mingw objdump,
11490 # which wouldn't understand a cygwinified path. Ahh.
11491 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11492 else
11493 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11496 pw32*)
11497 # pw32 DLLs use 'pw' prefix rather than 'lib'
11498 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11500 esac
11504 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11506 esac
11507 dynamic_linker='Win32 ld.exe'
11508 # FIXME: first we should search . and the directory the executable is in
11509 shlibpath_var=PATH
11512 darwin* | rhapsody*)
11513 dynamic_linker="$host_os dyld"
11514 version_type=darwin
11515 need_lib_prefix=no
11516 need_version=no
11517 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11518 soname_spec='${libname}${release}${major}$shared_ext'
11519 shlibpath_overrides_runpath=yes
11520 shlibpath_var=DYLD_LIBRARY_PATH
11521 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11522 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11523 if test "$GCC" = yes; then
11524 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"`
11525 else
11526 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11528 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11531 dgux*)
11532 version_type=linux
11533 need_lib_prefix=no
11534 need_version=no
11535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11536 soname_spec='${libname}${release}${shared_ext}$major'
11537 shlibpath_var=LD_LIBRARY_PATH
11540 freebsd1*)
11541 dynamic_linker=no
11544 kfreebsd*-gnu)
11545 version_type=linux
11546 need_lib_prefix=no
11547 need_version=no
11548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11549 soname_spec='${libname}${release}${shared_ext}$major'
11550 shlibpath_var=LD_LIBRARY_PATH
11551 shlibpath_overrides_runpath=no
11552 hardcode_into_libs=yes
11553 dynamic_linker='GNU ld.so'
11556 freebsd* | dragonfly*)
11557 # DragonFly does not have aout. When/if they implement a new
11558 # versioning mechanism, adjust this.
11559 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11560 version_type=freebsd-$objformat
11561 case $version_type in
11562 freebsd-elf*)
11563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11564 need_version=no
11565 need_lib_prefix=no
11567 freebsd-*)
11568 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11569 need_version=yes
11571 esac
11572 shlibpath_var=LD_LIBRARY_PATH
11573 case $host_os in
11574 freebsd2*)
11575 shlibpath_overrides_runpath=yes
11577 freebsd3.[01]* | freebsdelf3.[01]*)
11578 shlibpath_overrides_runpath=yes
11579 hardcode_into_libs=yes
11581 *) # from 3.2 on
11582 shlibpath_overrides_runpath=no
11583 hardcode_into_libs=yes
11585 esac
11588 gnu*)
11589 version_type=linux
11590 need_lib_prefix=no
11591 need_version=no
11592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11593 soname_spec='${libname}${release}${shared_ext}$major'
11594 shlibpath_var=LD_LIBRARY_PATH
11595 hardcode_into_libs=yes
11598 hpux9* | hpux10* | hpux11*)
11599 # Give a soname corresponding to the major version so that dld.sl refuses to
11600 # link against other versions.
11601 version_type=sunos
11602 need_lib_prefix=no
11603 need_version=no
11604 case "$host_cpu" in
11605 ia64*)
11606 shrext_cmds='.so'
11607 hardcode_into_libs=yes
11608 dynamic_linker="$host_os dld.so"
11609 shlibpath_var=LD_LIBRARY_PATH
11610 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11612 soname_spec='${libname}${release}${shared_ext}$major'
11613 if test "X$HPUX_IA64_MODE" = X32; then
11614 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11615 else
11616 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11618 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11620 hppa*64*)
11621 shrext_cmds='.sl'
11622 hardcode_into_libs=yes
11623 dynamic_linker="$host_os dld.sl"
11624 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11625 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11627 soname_spec='${libname}${release}${shared_ext}$major'
11628 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11629 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11632 shrext_cmds='.sl'
11633 dynamic_linker="$host_os dld.sl"
11634 shlibpath_var=SHLIB_PATH
11635 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11637 soname_spec='${libname}${release}${shared_ext}$major'
11639 esac
11640 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11641 postinstall_cmds='chmod 555 $lib'
11644 irix5* | irix6* | nonstopux*)
11645 case $host_os in
11646 nonstopux*) version_type=nonstopux ;;
11648 if test "$lt_cv_prog_gnu_ld" = yes; then
11649 version_type=linux
11650 else
11651 version_type=irix
11652 fi ;;
11653 esac
11654 need_lib_prefix=no
11655 need_version=no
11656 soname_spec='${libname}${release}${shared_ext}$major'
11657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11658 case $host_os in
11659 irix5* | nonstopux*)
11660 libsuff= shlibsuff=
11663 case $LD in # libtool.m4 will add one of these switches to LD
11664 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11665 libsuff= shlibsuff= libmagic=32-bit;;
11666 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11667 libsuff=32 shlibsuff=N32 libmagic=N32;;
11668 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11669 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11670 *) libsuff= shlibsuff= libmagic=never-match;;
11671 esac
11673 esac
11674 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11675 shlibpath_overrides_runpath=no
11676 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11677 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11678 hardcode_into_libs=yes
11681 # No shared lib support for Linux oldld, aout, or coff.
11682 linux*oldld* | linux*aout* | linux*coff*)
11683 dynamic_linker=no
11686 # This must be Linux ELF.
11687 linux*)
11688 version_type=linux
11689 need_lib_prefix=no
11690 need_version=no
11691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11692 soname_spec='${libname}${release}${shared_ext}$major'
11693 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11694 shlibpath_var=LD_LIBRARY_PATH
11695 shlibpath_overrides_runpath=no
11696 # This implies no fast_install, which is unacceptable.
11697 # Some rework will be needed to allow for fast_install
11698 # before this can be enabled.
11699 hardcode_into_libs=yes
11701 # Append ld.so.conf contents to the search path
11702 if test -f /etc/ld.so.conf; then
11703 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' ' '`
11704 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11707 # We used to test for /lib/ld.so.1 and disable shared libraries on
11708 # powerpc, because MkLinux only supported shared libraries with the
11709 # GNU dynamic linker. Since this was broken with cross compilers,
11710 # most powerpc-linux boxes support dynamic linking these days and
11711 # people can always --disable-shared, the test was removed, and we
11712 # assume the GNU/Linux dynamic linker is in use.
11713 dynamic_linker='GNU/Linux ld.so'
11716 knetbsd*-gnu)
11717 version_type=linux
11718 need_lib_prefix=no
11719 need_version=no
11720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11721 soname_spec='${libname}${release}${shared_ext}$major'
11722 shlibpath_var=LD_LIBRARY_PATH
11723 shlibpath_overrides_runpath=no
11724 hardcode_into_libs=yes
11725 dynamic_linker='GNU ld.so'
11728 netbsd*)
11729 version_type=sunos
11730 need_lib_prefix=no
11731 need_version=no
11732 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11734 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11735 dynamic_linker='NetBSD (a.out) ld.so'
11736 else
11737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11738 soname_spec='${libname}${release}${shared_ext}$major'
11739 dynamic_linker='NetBSD ld.elf_so'
11741 shlibpath_var=LD_LIBRARY_PATH
11742 shlibpath_overrides_runpath=yes
11743 hardcode_into_libs=yes
11746 newsos6)
11747 version_type=linux
11748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11749 shlibpath_var=LD_LIBRARY_PATH
11750 shlibpath_overrides_runpath=yes
11753 nto-qnx*)
11754 version_type=linux
11755 need_lib_prefix=no
11756 need_version=no
11757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11758 soname_spec='${libname}${release}${shared_ext}$major'
11759 shlibpath_var=LD_LIBRARY_PATH
11760 shlibpath_overrides_runpath=yes
11763 openbsd*)
11764 version_type=sunos
11765 need_lib_prefix=no
11766 need_version=no
11767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11768 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11769 shlibpath_var=LD_LIBRARY_PATH
11770 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11771 case $host_os in
11772 openbsd2.[89] | openbsd2.[89].*)
11773 shlibpath_overrides_runpath=no
11776 shlibpath_overrides_runpath=yes
11778 esac
11779 else
11780 shlibpath_overrides_runpath=yes
11784 os2*)
11785 libname_spec='$name'
11786 shrext_cmds=".dll"
11787 need_lib_prefix=no
11788 library_names_spec='$libname${shared_ext} $libname.a'
11789 dynamic_linker='OS/2 ld.exe'
11790 shlibpath_var=LIBPATH
11793 osf3* | osf4* | osf5*)
11794 version_type=osf
11795 need_lib_prefix=no
11796 need_version=no
11797 soname_spec='${libname}${release}${shared_ext}$major'
11798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11799 shlibpath_var=LD_LIBRARY_PATH
11800 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11801 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11804 sco3.2v5*)
11805 version_type=osf
11806 soname_spec='${libname}${release}${shared_ext}$major'
11807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11808 shlibpath_var=LD_LIBRARY_PATH
11811 solaris*)
11812 version_type=linux
11813 need_lib_prefix=no
11814 need_version=no
11815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11816 soname_spec='${libname}${release}${shared_ext}$major'
11817 shlibpath_var=LD_LIBRARY_PATH
11818 shlibpath_overrides_runpath=yes
11819 hardcode_into_libs=yes
11820 # ldd complains unless libraries are executable
11821 postinstall_cmds='chmod +x $lib'
11824 sunos4*)
11825 version_type=sunos
11826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11827 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11828 shlibpath_var=LD_LIBRARY_PATH
11829 shlibpath_overrides_runpath=yes
11830 if test "$with_gnu_ld" = yes; then
11831 need_lib_prefix=no
11833 need_version=yes
11836 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11837 version_type=linux
11838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11839 soname_spec='${libname}${release}${shared_ext}$major'
11840 shlibpath_var=LD_LIBRARY_PATH
11841 case $host_vendor in
11842 sni)
11843 shlibpath_overrides_runpath=no
11844 need_lib_prefix=no
11845 export_dynamic_flag_spec='${wl}-Blargedynsym'
11846 runpath_var=LD_RUN_PATH
11848 siemens)
11849 need_lib_prefix=no
11851 motorola)
11852 need_lib_prefix=no
11853 need_version=no
11854 shlibpath_overrides_runpath=no
11855 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11857 esac
11860 sysv4*MP*)
11861 if test -d /usr/nec ;then
11862 version_type=linux
11863 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11864 soname_spec='$libname${shared_ext}.$major'
11865 shlibpath_var=LD_LIBRARY_PATH
11869 uts4*)
11870 version_type=linux
11871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11872 soname_spec='${libname}${release}${shared_ext}$major'
11873 shlibpath_var=LD_LIBRARY_PATH
11877 dynamic_linker=no
11879 esac
11880 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11881 echo "${ECHO_T}$dynamic_linker" >&6
11882 test "$dynamic_linker" = no && can_build_shared=no
11884 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11885 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11886 hardcode_action_CXX=
11887 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11888 test -n "$runpath_var_CXX" || \
11889 test "X$hardcode_automatic_CXX" = "Xyes" ; then
11891 # We can hardcode non-existant directories.
11892 if test "$hardcode_direct_CXX" != no &&
11893 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11894 # have to relink, otherwise we might link with an installed library
11895 # when we should be linking with a yet-to-be-installed one
11896 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11897 test "$hardcode_minus_L_CXX" != no; then
11898 # Linking always hardcodes the temporary library directory.
11899 hardcode_action_CXX=relink
11900 else
11901 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11902 hardcode_action_CXX=immediate
11904 else
11905 # We cannot hardcode anything, or else we can only hardcode existing
11906 # directories.
11907 hardcode_action_CXX=unsupported
11909 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11910 echo "${ECHO_T}$hardcode_action_CXX" >&6
11912 if test "$hardcode_action_CXX" = relink; then
11913 # Fast installation is not supported
11914 enable_fast_install=no
11915 elif test "$shlibpath_overrides_runpath" = yes ||
11916 test "$enable_shared" = no; then
11917 # Fast installation is not necessary
11918 enable_fast_install=needless
11921 striplib=
11922 old_striplib=
11923 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11924 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11925 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11926 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11927 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11928 echo "$as_me:$LINENO: result: yes" >&5
11929 echo "${ECHO_T}yes" >&6
11930 else
11931 # FIXME - insert some real tests, host_os isn't really good enough
11932 case $host_os in
11933 darwin*)
11934 if test -n "$STRIP" ; then
11935 striplib="$STRIP -x"
11936 echo "$as_me:$LINENO: result: yes" >&5
11937 echo "${ECHO_T}yes" >&6
11938 else
11939 echo "$as_me:$LINENO: result: no" >&5
11940 echo "${ECHO_T}no" >&6
11944 echo "$as_me:$LINENO: result: no" >&5
11945 echo "${ECHO_T}no" >&6
11947 esac
11950 if test "x$enable_dlopen" != xyes; then
11951 enable_dlopen=unknown
11952 enable_dlopen_self=unknown
11953 enable_dlopen_self_static=unknown
11954 else
11955 lt_cv_dlopen=no
11956 lt_cv_dlopen_libs=
11958 case $host_os in
11959 beos*)
11960 lt_cv_dlopen="load_add_on"
11961 lt_cv_dlopen_libs=
11962 lt_cv_dlopen_self=yes
11965 mingw* | pw32*)
11966 lt_cv_dlopen="LoadLibrary"
11967 lt_cv_dlopen_libs=
11970 cygwin*)
11971 lt_cv_dlopen="dlopen"
11972 lt_cv_dlopen_libs=
11975 darwin*)
11976 # if libdl is installed we need to link against it
11977 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11978 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11979 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11980 echo $ECHO_N "(cached) $ECHO_C" >&6
11981 else
11982 ac_check_lib_save_LIBS=$LIBS
11983 LIBS="-ldl $LIBS"
11984 cat >conftest.$ac_ext <<_ACEOF
11985 /* confdefs.h. */
11986 _ACEOF
11987 cat confdefs.h >>conftest.$ac_ext
11988 cat >>conftest.$ac_ext <<_ACEOF
11989 /* end confdefs.h. */
11991 /* Override any gcc2 internal prototype to avoid an error. */
11992 #ifdef __cplusplus
11993 extern "C"
11994 #endif
11995 /* We use char because int might match the return type of a gcc2
11996 builtin and then its argument prototype would still apply. */
11997 char dlopen ();
11999 main ()
12001 dlopen ();
12003 return 0;
12005 _ACEOF
12006 rm -f conftest.$ac_objext conftest$ac_exeext
12007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12008 (eval $ac_link) 2>conftest.er1
12009 ac_status=$?
12010 grep -v '^ *+' conftest.er1 >conftest.err
12011 rm -f conftest.er1
12012 cat conftest.err >&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); } &&
12015 { ac_try='test -z "$ac_cxx_werror_flag"
12016 || test ! -s conftest.err'
12017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12018 (eval $ac_try) 2>&5
12019 ac_status=$?
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; } &&
12022 { ac_try='test -s conftest$ac_exeext'
12023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12024 (eval $ac_try) 2>&5
12025 ac_status=$?
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); }; }; then
12028 ac_cv_lib_dl_dlopen=yes
12029 else
12030 echo "$as_me: failed program was:" >&5
12031 sed 's/^/| /' conftest.$ac_ext >&5
12033 ac_cv_lib_dl_dlopen=no
12035 rm -f conftest.err conftest.$ac_objext \
12036 conftest$ac_exeext conftest.$ac_ext
12037 LIBS=$ac_check_lib_save_LIBS
12039 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12040 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12041 if test $ac_cv_lib_dl_dlopen = yes; then
12042 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12043 else
12045 lt_cv_dlopen="dyld"
12046 lt_cv_dlopen_libs=
12047 lt_cv_dlopen_self=yes
12054 echo "$as_me:$LINENO: checking for shl_load" >&5
12055 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12056 if test "${ac_cv_func_shl_load+set}" = set; then
12057 echo $ECHO_N "(cached) $ECHO_C" >&6
12058 else
12059 cat >conftest.$ac_ext <<_ACEOF
12060 /* confdefs.h. */
12061 _ACEOF
12062 cat confdefs.h >>conftest.$ac_ext
12063 cat >>conftest.$ac_ext <<_ACEOF
12064 /* end confdefs.h. */
12065 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12067 #define shl_load innocuous_shl_load
12069 /* System header to define __stub macros and hopefully few prototypes,
12070 which can conflict with char shl_load (); below.
12071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12072 <limits.h> exists even on freestanding compilers. */
12074 #ifdef __STDC__
12075 # include <limits.h>
12076 #else
12077 # include <assert.h>
12078 #endif
12080 #undef shl_load
12082 /* Override any gcc2 internal prototype to avoid an error. */
12083 #ifdef __cplusplus
12084 extern "C"
12086 #endif
12087 /* We use char because int might match the return type of a gcc2
12088 builtin and then its argument prototype would still apply. */
12089 char shl_load ();
12090 /* The GNU C library defines this for functions which it implements
12091 to always fail with ENOSYS. Some functions are actually named
12092 something starting with __ and the normal name is an alias. */
12093 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12094 choke me
12095 #else
12096 char (*f) () = shl_load;
12097 #endif
12098 #ifdef __cplusplus
12100 #endif
12103 main ()
12105 return f != shl_load;
12107 return 0;
12109 _ACEOF
12110 rm -f conftest.$ac_objext conftest$ac_exeext
12111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12112 (eval $ac_link) 2>conftest.er1
12113 ac_status=$?
12114 grep -v '^ *+' conftest.er1 >conftest.err
12115 rm -f conftest.er1
12116 cat conftest.err >&5
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); } &&
12119 { ac_try='test -z "$ac_cxx_werror_flag"
12120 || test ! -s conftest.err'
12121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12122 (eval $ac_try) 2>&5
12123 ac_status=$?
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); }; } &&
12126 { ac_try='test -s conftest$ac_exeext'
12127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12128 (eval $ac_try) 2>&5
12129 ac_status=$?
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); }; }; then
12132 ac_cv_func_shl_load=yes
12133 else
12134 echo "$as_me: failed program was:" >&5
12135 sed 's/^/| /' conftest.$ac_ext >&5
12137 ac_cv_func_shl_load=no
12139 rm -f conftest.err conftest.$ac_objext \
12140 conftest$ac_exeext conftest.$ac_ext
12142 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12143 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12144 if test $ac_cv_func_shl_load = yes; then
12145 lt_cv_dlopen="shl_load"
12146 else
12147 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12148 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12149 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12150 echo $ECHO_N "(cached) $ECHO_C" >&6
12151 else
12152 ac_check_lib_save_LIBS=$LIBS
12153 LIBS="-ldld $LIBS"
12154 cat >conftest.$ac_ext <<_ACEOF
12155 /* confdefs.h. */
12156 _ACEOF
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h. */
12161 /* Override any gcc2 internal prototype to avoid an error. */
12162 #ifdef __cplusplus
12163 extern "C"
12164 #endif
12165 /* We use char because int might match the return type of a gcc2
12166 builtin and then its argument prototype would still apply. */
12167 char shl_load ();
12169 main ()
12171 shl_load ();
12173 return 0;
12175 _ACEOF
12176 rm -f conftest.$ac_objext conftest$ac_exeext
12177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12178 (eval $ac_link) 2>conftest.er1
12179 ac_status=$?
12180 grep -v '^ *+' conftest.er1 >conftest.err
12181 rm -f conftest.er1
12182 cat conftest.err >&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); } &&
12185 { ac_try='test -z "$ac_cxx_werror_flag"
12186 || test ! -s conftest.err'
12187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12188 (eval $ac_try) 2>&5
12189 ac_status=$?
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); }; } &&
12192 { ac_try='test -s conftest$ac_exeext'
12193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12194 (eval $ac_try) 2>&5
12195 ac_status=$?
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); }; }; then
12198 ac_cv_lib_dld_shl_load=yes
12199 else
12200 echo "$as_me: failed program was:" >&5
12201 sed 's/^/| /' conftest.$ac_ext >&5
12203 ac_cv_lib_dld_shl_load=no
12205 rm -f conftest.err conftest.$ac_objext \
12206 conftest$ac_exeext conftest.$ac_ext
12207 LIBS=$ac_check_lib_save_LIBS
12209 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12210 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12211 if test $ac_cv_lib_dld_shl_load = yes; then
12212 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12213 else
12214 echo "$as_me:$LINENO: checking for dlopen" >&5
12215 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12216 if test "${ac_cv_func_dlopen+set}" = set; then
12217 echo $ECHO_N "(cached) $ECHO_C" >&6
12218 else
12219 cat >conftest.$ac_ext <<_ACEOF
12220 /* confdefs.h. */
12221 _ACEOF
12222 cat confdefs.h >>conftest.$ac_ext
12223 cat >>conftest.$ac_ext <<_ACEOF
12224 /* end confdefs.h. */
12225 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12227 #define dlopen innocuous_dlopen
12229 /* System header to define __stub macros and hopefully few prototypes,
12230 which can conflict with char dlopen (); below.
12231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12232 <limits.h> exists even on freestanding compilers. */
12234 #ifdef __STDC__
12235 # include <limits.h>
12236 #else
12237 # include <assert.h>
12238 #endif
12240 #undef dlopen
12242 /* Override any gcc2 internal prototype to avoid an error. */
12243 #ifdef __cplusplus
12244 extern "C"
12246 #endif
12247 /* We use char because int might match the return type of a gcc2
12248 builtin and then its argument prototype would still apply. */
12249 char dlopen ();
12250 /* The GNU C library defines this for functions which it implements
12251 to always fail with ENOSYS. Some functions are actually named
12252 something starting with __ and the normal name is an alias. */
12253 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12254 choke me
12255 #else
12256 char (*f) () = dlopen;
12257 #endif
12258 #ifdef __cplusplus
12260 #endif
12263 main ()
12265 return f != dlopen;
12267 return 0;
12269 _ACEOF
12270 rm -f conftest.$ac_objext conftest$ac_exeext
12271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12272 (eval $ac_link) 2>conftest.er1
12273 ac_status=$?
12274 grep -v '^ *+' conftest.er1 >conftest.err
12275 rm -f conftest.er1
12276 cat conftest.err >&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } &&
12279 { ac_try='test -z "$ac_cxx_werror_flag"
12280 || test ! -s conftest.err'
12281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12282 (eval $ac_try) 2>&5
12283 ac_status=$?
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); }; } &&
12286 { ac_try='test -s conftest$ac_exeext'
12287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12288 (eval $ac_try) 2>&5
12289 ac_status=$?
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); }; }; then
12292 ac_cv_func_dlopen=yes
12293 else
12294 echo "$as_me: failed program was:" >&5
12295 sed 's/^/| /' conftest.$ac_ext >&5
12297 ac_cv_func_dlopen=no
12299 rm -f conftest.err conftest.$ac_objext \
12300 conftest$ac_exeext conftest.$ac_ext
12302 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12303 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12304 if test $ac_cv_func_dlopen = yes; then
12305 lt_cv_dlopen="dlopen"
12306 else
12307 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12308 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12309 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12310 echo $ECHO_N "(cached) $ECHO_C" >&6
12311 else
12312 ac_check_lib_save_LIBS=$LIBS
12313 LIBS="-ldl $LIBS"
12314 cat >conftest.$ac_ext <<_ACEOF
12315 /* confdefs.h. */
12316 _ACEOF
12317 cat confdefs.h >>conftest.$ac_ext
12318 cat >>conftest.$ac_ext <<_ACEOF
12319 /* end confdefs.h. */
12321 /* Override any gcc2 internal prototype to avoid an error. */
12322 #ifdef __cplusplus
12323 extern "C"
12324 #endif
12325 /* We use char because int might match the return type of a gcc2
12326 builtin and then its argument prototype would still apply. */
12327 char dlopen ();
12329 main ()
12331 dlopen ();
12333 return 0;
12335 _ACEOF
12336 rm -f conftest.$ac_objext conftest$ac_exeext
12337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12338 (eval $ac_link) 2>conftest.er1
12339 ac_status=$?
12340 grep -v '^ *+' conftest.er1 >conftest.err
12341 rm -f conftest.er1
12342 cat conftest.err >&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); } &&
12345 { ac_try='test -z "$ac_cxx_werror_flag"
12346 || test ! -s conftest.err'
12347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12348 (eval $ac_try) 2>&5
12349 ac_status=$?
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); }; } &&
12352 { ac_try='test -s conftest$ac_exeext'
12353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12354 (eval $ac_try) 2>&5
12355 ac_status=$?
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); }; }; then
12358 ac_cv_lib_dl_dlopen=yes
12359 else
12360 echo "$as_me: failed program was:" >&5
12361 sed 's/^/| /' conftest.$ac_ext >&5
12363 ac_cv_lib_dl_dlopen=no
12365 rm -f conftest.err conftest.$ac_objext \
12366 conftest$ac_exeext conftest.$ac_ext
12367 LIBS=$ac_check_lib_save_LIBS
12369 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12370 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12371 if test $ac_cv_lib_dl_dlopen = yes; then
12372 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12373 else
12374 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12375 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12376 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12377 echo $ECHO_N "(cached) $ECHO_C" >&6
12378 else
12379 ac_check_lib_save_LIBS=$LIBS
12380 LIBS="-lsvld $LIBS"
12381 cat >conftest.$ac_ext <<_ACEOF
12382 /* confdefs.h. */
12383 _ACEOF
12384 cat confdefs.h >>conftest.$ac_ext
12385 cat >>conftest.$ac_ext <<_ACEOF
12386 /* end confdefs.h. */
12388 /* Override any gcc2 internal prototype to avoid an error. */
12389 #ifdef __cplusplus
12390 extern "C"
12391 #endif
12392 /* We use char because int might match the return type of a gcc2
12393 builtin and then its argument prototype would still apply. */
12394 char dlopen ();
12396 main ()
12398 dlopen ();
12400 return 0;
12402 _ACEOF
12403 rm -f conftest.$ac_objext conftest$ac_exeext
12404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12405 (eval $ac_link) 2>conftest.er1
12406 ac_status=$?
12407 grep -v '^ *+' conftest.er1 >conftest.err
12408 rm -f conftest.er1
12409 cat conftest.err >&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); } &&
12412 { ac_try='test -z "$ac_cxx_werror_flag"
12413 || test ! -s conftest.err'
12414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12415 (eval $ac_try) 2>&5
12416 ac_status=$?
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); }; } &&
12419 { ac_try='test -s conftest$ac_exeext'
12420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12421 (eval $ac_try) 2>&5
12422 ac_status=$?
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); }; }; then
12425 ac_cv_lib_svld_dlopen=yes
12426 else
12427 echo "$as_me: failed program was:" >&5
12428 sed 's/^/| /' conftest.$ac_ext >&5
12430 ac_cv_lib_svld_dlopen=no
12432 rm -f conftest.err conftest.$ac_objext \
12433 conftest$ac_exeext conftest.$ac_ext
12434 LIBS=$ac_check_lib_save_LIBS
12436 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12437 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12438 if test $ac_cv_lib_svld_dlopen = yes; then
12439 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12440 else
12441 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12442 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12443 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12444 echo $ECHO_N "(cached) $ECHO_C" >&6
12445 else
12446 ac_check_lib_save_LIBS=$LIBS
12447 LIBS="-ldld $LIBS"
12448 cat >conftest.$ac_ext <<_ACEOF
12449 /* confdefs.h. */
12450 _ACEOF
12451 cat confdefs.h >>conftest.$ac_ext
12452 cat >>conftest.$ac_ext <<_ACEOF
12453 /* end confdefs.h. */
12455 /* Override any gcc2 internal prototype to avoid an error. */
12456 #ifdef __cplusplus
12457 extern "C"
12458 #endif
12459 /* We use char because int might match the return type of a gcc2
12460 builtin and then its argument prototype would still apply. */
12461 char dld_link ();
12463 main ()
12465 dld_link ();
12467 return 0;
12469 _ACEOF
12470 rm -f conftest.$ac_objext conftest$ac_exeext
12471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12472 (eval $ac_link) 2>conftest.er1
12473 ac_status=$?
12474 grep -v '^ *+' conftest.er1 >conftest.err
12475 rm -f conftest.er1
12476 cat conftest.err >&5
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); } &&
12479 { ac_try='test -z "$ac_cxx_werror_flag"
12480 || test ! -s conftest.err'
12481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12482 (eval $ac_try) 2>&5
12483 ac_status=$?
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); }; } &&
12486 { ac_try='test -s conftest$ac_exeext'
12487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12488 (eval $ac_try) 2>&5
12489 ac_status=$?
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); }; }; then
12492 ac_cv_lib_dld_dld_link=yes
12493 else
12494 echo "$as_me: failed program was:" >&5
12495 sed 's/^/| /' conftest.$ac_ext >&5
12497 ac_cv_lib_dld_dld_link=no
12499 rm -f conftest.err conftest.$ac_objext \
12500 conftest$ac_exeext conftest.$ac_ext
12501 LIBS=$ac_check_lib_save_LIBS
12503 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12504 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12505 if test $ac_cv_lib_dld_dld_link = yes; then
12506 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12525 esac
12527 if test "x$lt_cv_dlopen" != xno; then
12528 enable_dlopen=yes
12529 else
12530 enable_dlopen=no
12533 case $lt_cv_dlopen in
12534 dlopen)
12535 save_CPPFLAGS="$CPPFLAGS"
12536 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12538 save_LDFLAGS="$LDFLAGS"
12539 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12541 save_LIBS="$LIBS"
12542 LIBS="$lt_cv_dlopen_libs $LIBS"
12544 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12545 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12546 if test "${lt_cv_dlopen_self+set}" = set; then
12547 echo $ECHO_N "(cached) $ECHO_C" >&6
12548 else
12549 if test "$cross_compiling" = yes; then :
12550 lt_cv_dlopen_self=cross
12551 else
12552 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12553 lt_status=$lt_dlunknown
12554 cat > conftest.$ac_ext <<EOF
12555 #line 12555 "configure"
12556 #include "confdefs.h"
12558 #if HAVE_DLFCN_H
12559 #include <dlfcn.h>
12560 #endif
12562 #include <stdio.h>
12564 #ifdef RTLD_GLOBAL
12565 # define LT_DLGLOBAL RTLD_GLOBAL
12566 #else
12567 # ifdef DL_GLOBAL
12568 # define LT_DLGLOBAL DL_GLOBAL
12569 # else
12570 # define LT_DLGLOBAL 0
12571 # endif
12572 #endif
12574 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12575 find out it does not work in some platform. */
12576 #ifndef LT_DLLAZY_OR_NOW
12577 # ifdef RTLD_LAZY
12578 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12579 # else
12580 # ifdef DL_LAZY
12581 # define LT_DLLAZY_OR_NOW DL_LAZY
12582 # else
12583 # ifdef RTLD_NOW
12584 # define LT_DLLAZY_OR_NOW RTLD_NOW
12585 # else
12586 # ifdef DL_NOW
12587 # define LT_DLLAZY_OR_NOW DL_NOW
12588 # else
12589 # define LT_DLLAZY_OR_NOW 0
12590 # endif
12591 # endif
12592 # endif
12593 # endif
12594 #endif
12596 #ifdef __cplusplus
12597 extern "C" void exit (int);
12598 #endif
12600 void fnord() { int i=42;}
12601 int main ()
12603 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12604 int status = $lt_dlunknown;
12606 if (self)
12608 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12609 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12610 /* dlclose (self); */
12613 exit (status);
12616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12617 (eval $ac_link) 2>&5
12618 ac_status=$?
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12621 (./conftest; exit; ) 2>/dev/null
12622 lt_status=$?
12623 case x$lt_status in
12624 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12625 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12626 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12627 esac
12628 else :
12629 # compilation failed
12630 lt_cv_dlopen_self=no
12633 rm -fr conftest*
12637 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12638 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12640 if test "x$lt_cv_dlopen_self" = xyes; then
12641 LDFLAGS="$LDFLAGS $link_static_flag"
12642 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12643 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12644 if test "${lt_cv_dlopen_self_static+set}" = set; then
12645 echo $ECHO_N "(cached) $ECHO_C" >&6
12646 else
12647 if test "$cross_compiling" = yes; then :
12648 lt_cv_dlopen_self_static=cross
12649 else
12650 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12651 lt_status=$lt_dlunknown
12652 cat > conftest.$ac_ext <<EOF
12653 #line 12653 "configure"
12654 #include "confdefs.h"
12656 #if HAVE_DLFCN_H
12657 #include <dlfcn.h>
12658 #endif
12660 #include <stdio.h>
12662 #ifdef RTLD_GLOBAL
12663 # define LT_DLGLOBAL RTLD_GLOBAL
12664 #else
12665 # ifdef DL_GLOBAL
12666 # define LT_DLGLOBAL DL_GLOBAL
12667 # else
12668 # define LT_DLGLOBAL 0
12669 # endif
12670 #endif
12672 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12673 find out it does not work in some platform. */
12674 #ifndef LT_DLLAZY_OR_NOW
12675 # ifdef RTLD_LAZY
12676 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12677 # else
12678 # ifdef DL_LAZY
12679 # define LT_DLLAZY_OR_NOW DL_LAZY
12680 # else
12681 # ifdef RTLD_NOW
12682 # define LT_DLLAZY_OR_NOW RTLD_NOW
12683 # else
12684 # ifdef DL_NOW
12685 # define LT_DLLAZY_OR_NOW DL_NOW
12686 # else
12687 # define LT_DLLAZY_OR_NOW 0
12688 # endif
12689 # endif
12690 # endif
12691 # endif
12692 #endif
12694 #ifdef __cplusplus
12695 extern "C" void exit (int);
12696 #endif
12698 void fnord() { int i=42;}
12699 int main ()
12701 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12702 int status = $lt_dlunknown;
12704 if (self)
12706 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12707 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12708 /* dlclose (self); */
12711 exit (status);
12714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12715 (eval $ac_link) 2>&5
12716 ac_status=$?
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12719 (./conftest; exit; ) 2>/dev/null
12720 lt_status=$?
12721 case x$lt_status in
12722 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12723 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12724 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12725 esac
12726 else :
12727 # compilation failed
12728 lt_cv_dlopen_self_static=no
12731 rm -fr conftest*
12735 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12736 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12739 CPPFLAGS="$save_CPPFLAGS"
12740 LDFLAGS="$save_LDFLAGS"
12741 LIBS="$save_LIBS"
12743 esac
12745 case $lt_cv_dlopen_self in
12746 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12747 *) enable_dlopen_self=unknown ;;
12748 esac
12750 case $lt_cv_dlopen_self_static in
12751 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12752 *) enable_dlopen_self_static=unknown ;;
12753 esac
12757 # The else clause should only fire when bootstrapping the
12758 # libtool distribution, otherwise you forgot to ship ltmain.sh
12759 # with your package, and you will get complaints that there are
12760 # no rules to generate ltmain.sh.
12761 if test -f "$ltmain"; then
12762 # See if we are running on zsh, and set the options which allow our commands through
12763 # without removal of \ escapes.
12764 if test -n "${ZSH_VERSION+set}" ; then
12765 setopt NO_GLOB_SUBST
12767 # Now quote all the things that may contain metacharacters while being
12768 # careful not to overquote the AC_SUBSTed values. We take copies of the
12769 # variables and quote the copies for generation of the libtool script.
12770 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12771 SED SHELL STRIP \
12772 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12773 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12774 deplibs_check_method reload_flag reload_cmds need_locks \
12775 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12776 lt_cv_sys_global_symbol_to_c_name_address \
12777 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12778 old_postinstall_cmds old_postuninstall_cmds \
12779 compiler_CXX \
12780 CC_CXX \
12781 LD_CXX \
12782 lt_prog_compiler_wl_CXX \
12783 lt_prog_compiler_pic_CXX \
12784 lt_prog_compiler_static_CXX \
12785 lt_prog_compiler_no_builtin_flag_CXX \
12786 export_dynamic_flag_spec_CXX \
12787 thread_safe_flag_spec_CXX \
12788 whole_archive_flag_spec_CXX \
12789 enable_shared_with_static_runtimes_CXX \
12790 old_archive_cmds_CXX \
12791 old_archive_from_new_cmds_CXX \
12792 predep_objects_CXX \
12793 postdep_objects_CXX \
12794 predeps_CXX \
12795 postdeps_CXX \
12796 compiler_lib_search_path_CXX \
12797 archive_cmds_CXX \
12798 archive_expsym_cmds_CXX \
12799 postinstall_cmds_CXX \
12800 postuninstall_cmds_CXX \
12801 old_archive_from_expsyms_cmds_CXX \
12802 allow_undefined_flag_CXX \
12803 no_undefined_flag_CXX \
12804 export_symbols_cmds_CXX \
12805 hardcode_libdir_flag_spec_CXX \
12806 hardcode_libdir_flag_spec_ld_CXX \
12807 hardcode_libdir_separator_CXX \
12808 hardcode_automatic_CXX \
12809 module_cmds_CXX \
12810 module_expsym_cmds_CXX \
12811 lt_cv_prog_compiler_c_o_CXX \
12812 exclude_expsyms_CXX \
12813 include_expsyms_CXX; do
12815 case $var in
12816 old_archive_cmds_CXX | \
12817 old_archive_from_new_cmds_CXX | \
12818 archive_cmds_CXX | \
12819 archive_expsym_cmds_CXX | \
12820 module_cmds_CXX | \
12821 module_expsym_cmds_CXX | \
12822 old_archive_from_expsyms_cmds_CXX | \
12823 export_symbols_cmds_CXX | \
12824 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12825 postinstall_cmds | postuninstall_cmds | \
12826 old_postinstall_cmds | old_postuninstall_cmds | \
12827 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12828 # Double-quote double-evaled strings.
12829 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12832 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12834 esac
12835 done
12837 case $lt_echo in
12838 *'\$0 --fallback-echo"')
12839 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12841 esac
12843 cfgfile="$ofile"
12845 cat <<__EOF__ >> "$cfgfile"
12846 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12848 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12850 # Shell to use when invoking shell scripts.
12851 SHELL=$lt_SHELL
12853 # Whether or not to build shared libraries.
12854 build_libtool_libs=$enable_shared
12856 # Whether or not to build static libraries.
12857 build_old_libs=$enable_static
12859 # Whether or not to add -lc for building shared libraries.
12860 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12862 # Whether or not to disallow shared libs when runtime libs are static
12863 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12865 # Whether or not to optimize for fast installation.
12866 fast_install=$enable_fast_install
12868 # The host system.
12869 host_alias=$host_alias
12870 host=$host
12871 host_os=$host_os
12873 # The build system.
12874 build_alias=$build_alias
12875 build=$build
12876 build_os=$build_os
12878 # An echo program that does not interpret backslashes.
12879 echo=$lt_echo
12881 # The archiver.
12882 AR=$lt_AR
12883 AR_FLAGS=$lt_AR_FLAGS
12885 # A C compiler.
12886 LTCC=$lt_LTCC
12888 # A language-specific compiler.
12889 CC=$lt_compiler_CXX
12891 # Is the compiler the GNU C compiler?
12892 with_gcc=$GCC_CXX
12894 # An ERE matcher.
12895 EGREP=$lt_EGREP
12897 # The linker used to build libraries.
12898 LD=$lt_LD_CXX
12900 # Whether we need hard or soft links.
12901 LN_S=$lt_LN_S
12903 # A BSD-compatible nm program.
12904 NM=$lt_NM
12906 # A symbol stripping program
12907 STRIP=$lt_STRIP
12909 # Used to examine libraries when file_magic_cmd begins "file"
12910 MAGIC_CMD=$MAGIC_CMD
12912 # Used on cygwin: DLL creation program.
12913 DLLTOOL="$DLLTOOL"
12915 # Used on cygwin: object dumper.
12916 OBJDUMP="$OBJDUMP"
12918 # Used on cygwin: assembler.
12919 AS="$AS"
12921 # The name of the directory that contains temporary libtool files.
12922 objdir=$objdir
12924 # How to create reloadable object files.
12925 reload_flag=$lt_reload_flag
12926 reload_cmds=$lt_reload_cmds
12928 # How to pass a linker flag through the compiler.
12929 wl=$lt_lt_prog_compiler_wl_CXX
12931 # Object file suffix (normally "o").
12932 objext="$ac_objext"
12934 # Old archive suffix (normally "a").
12935 libext="$libext"
12937 # Shared library suffix (normally ".so").
12938 shrext_cmds='$shrext_cmds'
12940 # Executable file suffix (normally "").
12941 exeext="$exeext"
12943 # Additional compiler flags for building library objects.
12944 pic_flag=$lt_lt_prog_compiler_pic_CXX
12945 pic_mode=$pic_mode
12947 # What is the maximum length of a command?
12948 max_cmd_len=$lt_cv_sys_max_cmd_len
12950 # Does compiler simultaneously support -c and -o options?
12951 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12953 # Must we lock files when doing compilation ?
12954 need_locks=$lt_need_locks
12956 # Do we need the lib prefix for modules?
12957 need_lib_prefix=$need_lib_prefix
12959 # Do we need a version for libraries?
12960 need_version=$need_version
12962 # Whether dlopen is supported.
12963 dlopen_support=$enable_dlopen
12965 # Whether dlopen of programs is supported.
12966 dlopen_self=$enable_dlopen_self
12968 # Whether dlopen of statically linked programs is supported.
12969 dlopen_self_static=$enable_dlopen_self_static
12971 # Compiler flag to prevent dynamic linking.
12972 link_static_flag=$lt_lt_prog_compiler_static_CXX
12974 # Compiler flag to turn off builtin functions.
12975 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12977 # Compiler flag to allow reflexive dlopens.
12978 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12980 # Compiler flag to generate shared objects directly from archives.
12981 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12983 # Compiler flag to generate thread-safe objects.
12984 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12986 # Library versioning type.
12987 version_type=$version_type
12989 # Format of library name prefix.
12990 libname_spec=$lt_libname_spec
12992 # List of archive names. First name is the real one, the rest are links.
12993 # The last name is the one that the linker finds with -lNAME.
12994 library_names_spec=$lt_library_names_spec
12996 # The coded name of the library, if different from the real name.
12997 soname_spec=$lt_soname_spec
12999 # Commands used to build and install an old-style archive.
13000 RANLIB=$lt_RANLIB
13001 old_archive_cmds=$lt_old_archive_cmds_CXX
13002 old_postinstall_cmds=$lt_old_postinstall_cmds
13003 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13005 # Create an old-style archive from a shared archive.
13006 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13008 # Create a temporary old-style archive to link instead of a shared archive.
13009 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13011 # Commands used to build and install a shared archive.
13012 archive_cmds=$lt_archive_cmds_CXX
13013 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13014 postinstall_cmds=$lt_postinstall_cmds
13015 postuninstall_cmds=$lt_postuninstall_cmds
13017 # Commands used to build a loadable module (assumed same as above if empty)
13018 module_cmds=$lt_module_cmds_CXX
13019 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13021 # Commands to strip libraries.
13022 old_striplib=$lt_old_striplib
13023 striplib=$lt_striplib
13025 # Dependencies to place before the objects being linked to create a
13026 # shared library.
13027 predep_objects=$lt_predep_objects_CXX
13029 # Dependencies to place after the objects being linked to create a
13030 # shared library.
13031 postdep_objects=$lt_postdep_objects_CXX
13033 # Dependencies to place before the objects being linked to create a
13034 # shared library.
13035 predeps=$lt_predeps_CXX
13037 # Dependencies to place after the objects being linked to create a
13038 # shared library.
13039 postdeps=$lt_postdeps_CXX
13041 # The library search path used internally by the compiler when linking
13042 # a shared library.
13043 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13045 # Method to check whether dependent libraries are shared objects.
13046 deplibs_check_method=$lt_deplibs_check_method
13048 # Command to use when deplibs_check_method == file_magic.
13049 file_magic_cmd=$lt_file_magic_cmd
13051 # Flag that allows shared libraries with undefined symbols to be built.
13052 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13054 # Flag that forces no undefined symbols.
13055 no_undefined_flag=$lt_no_undefined_flag_CXX
13057 # Commands used to finish a libtool library installation in a directory.
13058 finish_cmds=$lt_finish_cmds
13060 # Same as above, but a single script fragment to be evaled but not shown.
13061 finish_eval=$lt_finish_eval
13063 # Take the output of nm and produce a listing of raw symbols and C names.
13064 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13066 # Transform the output of nm in a proper C declaration
13067 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13069 # Transform the output of nm in a C name address pair
13070 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13072 # This is the shared library runtime path variable.
13073 runpath_var=$runpath_var
13075 # This is the shared library path variable.
13076 shlibpath_var=$shlibpath_var
13078 # Is shlibpath searched before the hard-coded library search path?
13079 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13081 # How to hardcode a shared library path into an executable.
13082 hardcode_action=$hardcode_action_CXX
13084 # Whether we should hardcode library paths into libraries.
13085 hardcode_into_libs=$hardcode_into_libs
13087 # Flag to hardcode \$libdir into a binary during linking.
13088 # This must work even if \$libdir does not exist.
13089 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13091 # If ld is used when linking, flag to hardcode \$libdir into
13092 # a binary during linking. This must work even if \$libdir does
13093 # not exist.
13094 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13096 # Whether we need a single -rpath flag with a separated argument.
13097 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13099 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13100 # resulting binary.
13101 hardcode_direct=$hardcode_direct_CXX
13103 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13104 # resulting binary.
13105 hardcode_minus_L=$hardcode_minus_L_CXX
13107 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13108 # the resulting binary.
13109 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13111 # Set to yes if building a shared library automatically hardcodes DIR into the library
13112 # and all subsequent libraries and executables linked against it.
13113 hardcode_automatic=$hardcode_automatic_CXX
13115 # Variables whose values should be saved in libtool wrapper scripts and
13116 # restored at relink time.
13117 variables_saved_for_relink="$variables_saved_for_relink"
13119 # Whether libtool must link a program against all its dependency libraries.
13120 link_all_deplibs=$link_all_deplibs_CXX
13122 # Compile-time system search path for libraries
13123 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13125 # Run-time system search path for libraries
13126 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13128 # Fix the shell variable \$srcfile for the compiler.
13129 fix_srcfile_path="$fix_srcfile_path_CXX"
13131 # Set to yes if exported symbols are required.
13132 always_export_symbols=$always_export_symbols_CXX
13134 # The commands to list exported symbols.
13135 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13137 # The commands to extract the exported symbol list from a shared archive.
13138 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13140 # Symbols that should not be listed in the preloaded symbols.
13141 exclude_expsyms=$lt_exclude_expsyms_CXX
13143 # Symbols that must always be exported.
13144 include_expsyms=$lt_include_expsyms_CXX
13146 # ### END LIBTOOL TAG CONFIG: $tagname
13148 __EOF__
13151 else
13152 # If there is no Makefile yet, we rely on a make rule to execute
13153 # `config.status --recheck' to rerun these tests and create the
13154 # libtool script then.
13155 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13156 if test -f "$ltmain_in"; then
13157 test -f Makefile && make "$ltmain"
13162 ac_ext=c
13163 ac_cpp='$CPP $CPPFLAGS'
13164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13168 CC=$lt_save_CC
13169 LDCXX=$LD
13170 LD=$lt_save_LD
13171 GCC=$lt_save_GCC
13172 with_gnu_ldcxx=$with_gnu_ld
13173 with_gnu_ld=$lt_save_with_gnu_ld
13174 lt_cv_path_LDCXX=$lt_cv_path_LD
13175 lt_cv_path_LD=$lt_save_path_LD
13176 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13177 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13179 else
13180 tagname=""
13184 F77)
13185 if test -n "$F77" && test "X$F77" != "Xno"; then
13187 ac_ext=f
13188 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13189 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13190 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13193 archive_cmds_need_lc_F77=no
13194 allow_undefined_flag_F77=
13195 always_export_symbols_F77=no
13196 archive_expsym_cmds_F77=
13197 export_dynamic_flag_spec_F77=
13198 hardcode_direct_F77=no
13199 hardcode_libdir_flag_spec_F77=
13200 hardcode_libdir_flag_spec_ld_F77=
13201 hardcode_libdir_separator_F77=
13202 hardcode_minus_L_F77=no
13203 hardcode_automatic_F77=no
13204 module_cmds_F77=
13205 module_expsym_cmds_F77=
13206 link_all_deplibs_F77=unknown
13207 old_archive_cmds_F77=$old_archive_cmds
13208 no_undefined_flag_F77=
13209 whole_archive_flag_spec_F77=
13210 enable_shared_with_static_runtimes_F77=no
13212 # Source file extension for f77 test sources.
13213 ac_ext=f
13215 # Object file extension for compiled f77 test sources.
13216 objext=o
13217 objext_F77=$objext
13219 # Code to be used in simple compile tests
13220 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13222 # Code to be used in simple link tests
13223 lt_simple_link_test_code=" program t\n end\n"
13225 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13227 # If no C compiler was specified, use CC.
13228 LTCC=${LTCC-"$CC"}
13230 # Allow CC to be a program name with arguments.
13231 compiler=$CC
13234 # Allow CC to be a program name with arguments.
13235 lt_save_CC="$CC"
13236 CC=${F77-"f77"}
13237 compiler=$CC
13238 compiler_F77=$CC
13239 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13241 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13242 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13243 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13244 echo "${ECHO_T}$can_build_shared" >&6
13246 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13247 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13248 test "$can_build_shared" = "no" && enable_shared=no
13250 # On AIX, shared libraries and static libraries use the same namespace, and
13251 # are all built from PIC.
13252 case "$host_os" in
13253 aix3*)
13254 test "$enable_shared" = yes && enable_static=no
13255 if test -n "$RANLIB"; then
13256 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13257 postinstall_cmds='$RANLIB $lib'
13260 aix4* | aix5*)
13261 test "$enable_shared" = yes && enable_static=no
13263 esac
13264 echo "$as_me:$LINENO: result: $enable_shared" >&5
13265 echo "${ECHO_T}$enable_shared" >&6
13267 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13268 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13269 # Make sure either enable_shared or enable_static is yes.
13270 test "$enable_shared" = yes || enable_static=yes
13271 echo "$as_me:$LINENO: result: $enable_static" >&5
13272 echo "${ECHO_T}$enable_static" >&6
13274 test "$ld_shlibs_F77" = no && can_build_shared=no
13276 GCC_F77="$G77"
13277 LD_F77="$LD"
13279 lt_prog_compiler_wl_F77=
13280 lt_prog_compiler_pic_F77=
13281 lt_prog_compiler_static_F77=
13283 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13284 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13286 if test "$GCC" = yes; then
13287 lt_prog_compiler_wl_F77='-Wl,'
13288 lt_prog_compiler_static_F77='-static'
13290 case $host_os in
13291 aix*)
13292 # All AIX code is PIC.
13293 if test "$host_cpu" = ia64; then
13294 # AIX 5 now supports IA64 processor
13295 lt_prog_compiler_static_F77='-Bstatic'
13299 amigaos*)
13300 # FIXME: we need at least 68020 code to build shared libraries, but
13301 # adding the `-m68020' flag to GCC prevents building anything better,
13302 # like `-m68040'.
13303 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13306 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13307 # PIC is the default for these OSes.
13310 mingw* | pw32* | os2*)
13311 # This hack is so that the source file can tell whether it is being
13312 # built for inclusion in a dll (and should export symbols for example).
13313 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13316 darwin* | rhapsody*)
13317 # PIC is the default on this platform
13318 # Common symbols not allowed in MH_DYLIB files
13319 lt_prog_compiler_pic_F77='-fno-common'
13322 msdosdjgpp*)
13323 # Just because we use GCC doesn't mean we suddenly get shared libraries
13324 # on systems that don't support them.
13325 lt_prog_compiler_can_build_shared_F77=no
13326 enable_shared=no
13329 sysv4*MP*)
13330 if test -d /usr/nec; then
13331 lt_prog_compiler_pic_F77=-Kconform_pic
13335 hpux*)
13336 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13337 # not for PA HP-UX.
13338 case "$host_cpu" in
13339 hppa*64*|ia64*)
13340 # +Z the default
13343 lt_prog_compiler_pic_F77='-fPIC'
13345 esac
13349 lt_prog_compiler_pic_F77='-fPIC'
13351 esac
13352 else
13353 # PORTME Check for flag to pass linker flags through the system compiler.
13354 case $host_os in
13355 aix*)
13356 lt_prog_compiler_wl_F77='-Wl,'
13357 if test "$host_cpu" = ia64; then
13358 # AIX 5 now supports IA64 processor
13359 lt_prog_compiler_static_F77='-Bstatic'
13360 else
13361 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13364 darwin*)
13365 # PIC is the default on this platform
13366 # Common symbols not allowed in MH_DYLIB files
13367 case "$cc_basename" in
13368 xlc*)
13369 lt_prog_compiler_pic_F77='-qnocommon'
13370 lt_prog_compiler_wl_F77='-Wl,'
13372 esac
13375 mingw* | pw32* | os2*)
13376 # This hack is so that the source file can tell whether it is being
13377 # built for inclusion in a dll (and should export symbols for example).
13378 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13381 hpux9* | hpux10* | hpux11*)
13382 lt_prog_compiler_wl_F77='-Wl,'
13383 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13384 # not for PA HP-UX.
13385 case "$host_cpu" in
13386 hppa*64*|ia64*)
13387 # +Z the default
13390 lt_prog_compiler_pic_F77='+Z'
13392 esac
13393 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13394 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13397 irix5* | irix6* | nonstopux*)
13398 lt_prog_compiler_wl_F77='-Wl,'
13399 # PIC (with -KPIC) is the default.
13400 lt_prog_compiler_static_F77='-non_shared'
13403 newsos6)
13404 lt_prog_compiler_pic_F77='-KPIC'
13405 lt_prog_compiler_static_F77='-Bstatic'
13408 linux*)
13409 case $cc_basename in
13410 icc* | ecc*)
13411 lt_prog_compiler_wl_F77='-Wl,'
13412 lt_prog_compiler_pic_F77='-KPIC'
13413 lt_prog_compiler_static_F77='-static'
13415 pgcc | pgf77 | pgf90)
13416 # Portland Group compilers (*not* the Pentium gcc compiler,
13417 # which looks to be a dead project)
13418 lt_prog_compiler_wl_F77='-Wl,'
13419 lt_prog_compiler_pic_F77='-fpic'
13420 lt_prog_compiler_static_F77='-static'
13422 ccc*)
13423 lt_prog_compiler_wl_F77='-Wl,'
13424 # All Alpha code is PIC.
13425 lt_prog_compiler_static_F77='-non_shared'
13427 como)
13428 lt_prog_compiler_wl_F77='-lopt='
13430 esac
13433 osf3* | osf4* | osf5*)
13434 lt_prog_compiler_wl_F77='-Wl,'
13435 # All OSF/1 code is PIC.
13436 lt_prog_compiler_static_F77='-non_shared'
13439 sco3.2v5*)
13440 lt_prog_compiler_pic_F77='-Kpic'
13441 lt_prog_compiler_static_F77='-dn'
13444 solaris*)
13445 lt_prog_compiler_wl_F77='-Wl,'
13446 lt_prog_compiler_pic_F77='-KPIC'
13447 lt_prog_compiler_static_F77='-Bstatic'
13450 sunos4*)
13451 lt_prog_compiler_wl_F77='-Qoption ld '
13452 lt_prog_compiler_pic_F77='-PIC'
13453 lt_prog_compiler_static_F77='-Bstatic'
13456 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13457 lt_prog_compiler_wl_F77='-Wl,'
13458 lt_prog_compiler_pic_F77='-KPIC'
13459 lt_prog_compiler_static_F77='-Bstatic'
13462 sysv4*MP*)
13463 if test -d /usr/nec ;then
13464 lt_prog_compiler_pic_F77='-Kconform_pic'
13465 lt_prog_compiler_static_F77='-Bstatic'
13469 unicos*)
13470 lt_prog_compiler_wl_F77='-Wl,'
13471 lt_prog_compiler_can_build_shared_F77=no
13474 uts4*)
13475 lt_prog_compiler_pic_F77='-pic'
13476 lt_prog_compiler_static_F77='-Bstatic'
13480 lt_prog_compiler_can_build_shared_F77=no
13482 esac
13485 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13486 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13489 # Check to make sure the PIC flag actually works.
13491 if test -n "$lt_prog_compiler_pic_F77"; then
13493 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13494 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13495 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13496 echo $ECHO_N "(cached) $ECHO_C" >&6
13497 else
13498 lt_prog_compiler_pic_works_F77=no
13499 ac_outfile=conftest.$ac_objext
13500 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13501 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13502 # Insert the option either (1) after the last *FLAGS variable, or
13503 # (2) before a word containing "conftest.", or (3) at the end.
13504 # Note that $ac_compile itself does not contain backslashes and begins
13505 # with a dollar sign (not a hyphen), so the echo should work correctly.
13506 # The option is referenced via a variable to avoid confusing sed.
13507 lt_compile=`echo "$ac_compile" | $SED \
13508 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13509 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13510 -e 's:$: $lt_compiler_flag:'`
13511 (eval echo "\"\$as_me:13511: $lt_compile\"" >&5)
13512 (eval "$lt_compile" 2>conftest.err)
13513 ac_status=$?
13514 cat conftest.err >&5
13515 echo "$as_me:13515: \$? = $ac_status" >&5
13516 if (exit $ac_status) && test -s "$ac_outfile"; then
13517 # The compiler can only warn and ignore the option if not recognized
13518 # So say no if there are warnings
13519 if test ! -s conftest.err; then
13520 lt_prog_compiler_pic_works_F77=yes
13523 $rm conftest*
13526 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13527 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13529 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13530 case $lt_prog_compiler_pic_F77 in
13531 "" | " "*) ;;
13532 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13533 esac
13534 else
13535 lt_prog_compiler_pic_F77=
13536 lt_prog_compiler_can_build_shared_F77=no
13540 case "$host_os" in
13541 # For platforms which do not support PIC, -DPIC is meaningless:
13542 *djgpp*)
13543 lt_prog_compiler_pic_F77=
13546 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13548 esac
13550 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13551 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13552 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13553 echo $ECHO_N "(cached) $ECHO_C" >&6
13554 else
13555 lt_cv_prog_compiler_c_o_F77=no
13556 $rm -r conftest 2>/dev/null
13557 mkdir conftest
13558 cd conftest
13559 mkdir out
13560 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13562 lt_compiler_flag="-o out/conftest2.$ac_objext"
13563 # Insert the option either (1) after the last *FLAGS variable, or
13564 # (2) before a word containing "conftest.", or (3) at the end.
13565 # Note that $ac_compile itself does not contain backslashes and begins
13566 # with a dollar sign (not a hyphen), so the echo should work correctly.
13567 lt_compile=`echo "$ac_compile" | $SED \
13568 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13569 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13570 -e 's:$: $lt_compiler_flag:'`
13571 (eval echo "\"\$as_me:13571: $lt_compile\"" >&5)
13572 (eval "$lt_compile" 2>out/conftest.err)
13573 ac_status=$?
13574 cat out/conftest.err >&5
13575 echo "$as_me:13575: \$? = $ac_status" >&5
13576 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13577 then
13578 # The compiler can only warn and ignore the option if not recognized
13579 # So say no if there are warnings
13580 if test ! -s out/conftest.err; then
13581 lt_cv_prog_compiler_c_o_F77=yes
13584 chmod u+w .
13585 $rm conftest*
13586 # SGI C++ compiler will create directory out/ii_files/ for
13587 # template instantiation
13588 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13589 $rm out/* && rmdir out
13590 cd ..
13591 rmdir conftest
13592 $rm conftest*
13595 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13596 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13599 hard_links="nottested"
13600 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13601 # do not overwrite the value of need_locks provided by the user
13602 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13603 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13604 hard_links=yes
13605 $rm conftest*
13606 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13607 touch conftest.a
13608 ln conftest.a conftest.b 2>&5 || hard_links=no
13609 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13610 echo "$as_me:$LINENO: result: $hard_links" >&5
13611 echo "${ECHO_T}$hard_links" >&6
13612 if test "$hard_links" = no; then
13613 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13614 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13615 need_locks=warn
13617 else
13618 need_locks=no
13621 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13622 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13624 runpath_var=
13625 allow_undefined_flag_F77=
13626 enable_shared_with_static_runtimes_F77=no
13627 archive_cmds_F77=
13628 archive_expsym_cmds_F77=
13629 old_archive_From_new_cmds_F77=
13630 old_archive_from_expsyms_cmds_F77=
13631 export_dynamic_flag_spec_F77=
13632 whole_archive_flag_spec_F77=
13633 thread_safe_flag_spec_F77=
13634 hardcode_libdir_flag_spec_F77=
13635 hardcode_libdir_flag_spec_ld_F77=
13636 hardcode_libdir_separator_F77=
13637 hardcode_direct_F77=no
13638 hardcode_minus_L_F77=no
13639 hardcode_shlibpath_var_F77=unsupported
13640 link_all_deplibs_F77=unknown
13641 hardcode_automatic_F77=no
13642 module_cmds_F77=
13643 module_expsym_cmds_F77=
13644 always_export_symbols_F77=no
13645 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13646 # include_expsyms should be a list of space-separated symbols to be *always*
13647 # included in the symbol list
13648 include_expsyms_F77=
13649 # exclude_expsyms can be an extended regexp of symbols to exclude
13650 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13651 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13652 # as well as any symbol that contains `d'.
13653 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13654 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13655 # platforms (ab)use it in PIC code, but their linkers get confused if
13656 # the symbol is explicitly referenced. Since portable code cannot
13657 # rely on this symbol name, it's probably fine to never include it in
13658 # preloaded symbol tables.
13659 extract_expsyms_cmds=
13661 case $host_os in
13662 cygwin* | mingw* | pw32*)
13663 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13664 # When not using gcc, we currently assume that we are using
13665 # Microsoft Visual C++.
13666 if test "$GCC" != yes; then
13667 with_gnu_ld=no
13670 openbsd*)
13671 with_gnu_ld=no
13673 esac
13675 ld_shlibs_F77=yes
13676 if test "$with_gnu_ld" = yes; then
13677 # If archive_cmds runs LD, not CC, wlarc should be empty
13678 wlarc='${wl}'
13680 # See if GNU ld supports shared libraries.
13681 case $host_os in
13682 aix3* | aix4* | aix5*)
13683 # On AIX/PPC, the GNU linker is very broken
13684 if test "$host_cpu" != ia64; then
13685 ld_shlibs_F77=no
13686 cat <<EOF 1>&2
13688 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13689 *** to be unable to reliably create shared libraries on AIX.
13690 *** Therefore, libtool is disabling shared libraries support. If you
13691 *** really care for shared libraries, you may want to modify your PATH
13692 *** so that a non-GNU linker is found, and then restart.
13698 amigaos*)
13699 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)'
13700 hardcode_libdir_flag_spec_F77='-L$libdir'
13701 hardcode_minus_L_F77=yes
13703 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13704 # that the semantics of dynamic libraries on AmigaOS, at least up
13705 # to version 4, is to share data among multiple programs linked
13706 # with the same dynamic library. Since this doesn't match the
13707 # behavior of shared libraries on other platforms, we can't use
13708 # them.
13709 ld_shlibs_F77=no
13712 beos*)
13713 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13714 allow_undefined_flag_F77=unsupported
13715 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13716 # support --undefined. This deserves some investigation. FIXME
13717 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13718 else
13719 ld_shlibs_F77=no
13723 cygwin* | mingw* | pw32*)
13724 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13725 # as there is no search path for DLLs.
13726 hardcode_libdir_flag_spec_F77='-L$libdir'
13727 allow_undefined_flag_F77=unsupported
13728 always_export_symbols_F77=no
13729 enable_shared_with_static_runtimes_F77=yes
13730 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13732 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13733 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13734 # If the export-symbols file already is a .def file (1st line
13735 # is EXPORTS), use it as is; otherwise, prepend...
13736 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13737 cp $export_symbols $output_objdir/$soname.def;
13738 else
13739 echo EXPORTS > $output_objdir/$soname.def;
13740 cat $export_symbols >> $output_objdir/$soname.def;
13742 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13743 else
13744 ld_shlibs_F77=no
13748 netbsd*)
13749 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13750 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13751 wlarc=
13752 else
13753 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13754 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13758 solaris* | sysv5*)
13759 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13760 ld_shlibs_F77=no
13761 cat <<EOF 1>&2
13763 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13764 *** create shared libraries on Solaris systems. Therefore, libtool
13765 *** is disabling shared libraries support. We urge you to upgrade GNU
13766 *** binutils to release 2.9.1 or newer. Another option is to modify
13767 *** your PATH or compiler configuration so that the native linker is
13768 *** used, and then restart.
13771 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13772 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13773 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13774 else
13775 ld_shlibs_F77=no
13779 sunos4*)
13780 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13781 wlarc=
13782 hardcode_direct_F77=yes
13783 hardcode_shlibpath_var_F77=no
13786 linux*)
13787 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13788 tmp_addflag=
13789 case $CC,$host_cpu in
13790 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
13791 tmp_addflag=' -fpic' ;;
13792 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13793 tmp_addflag=' -i_dynamic' ;;
13794 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13795 tmp_addflag=' -i_dynamic -nofor_main' ;;
13796 ifc* | ifort*) # Intel Fortran compiler
13797 tmp_addflag=' -nofor_main' ;;
13798 esac
13799 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13800 supports_anon_versioning=no
13801 case `$LD -v 2>/dev/null` in
13802 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13803 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13804 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13805 *\ 2.11.*) ;; # other 2.11 versions
13806 *) supports_anon_versioning=yes ;;
13807 esac
13808 if test $supports_anon_versioning = yes; then
13809 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13810 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13811 $echo "local: *; };" >> $output_objdir/$libname.ver~
13812 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13813 else
13814 archive_expsym_cmds_F77=$archive_cmds_F77
13816 else
13817 ld_shlibs_F77=no
13822 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13823 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13824 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13825 else
13826 ld_shlibs_F77=no
13829 esac
13831 if test "$ld_shlibs_F77" = yes; then
13832 runpath_var=LD_RUN_PATH
13833 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13834 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13835 # ancient GNU ld didn't support --whole-archive et. al.
13836 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13837 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13838 else
13839 whole_archive_flag_spec_F77=
13842 else
13843 # PORTME fill in a description of your system's linker (not GNU ld)
13844 case $host_os in
13845 aix3*)
13846 allow_undefined_flag_F77=unsupported
13847 always_export_symbols_F77=yes
13848 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'
13849 # Note: this linker hardcodes the directories in LIBPATH if there
13850 # are no directories specified by -L.
13851 hardcode_minus_L_F77=yes
13852 if test "$GCC" = yes && test -z "$link_static_flag"; then
13853 # Neither direct hardcoding nor static linking is supported with a
13854 # broken collect2.
13855 hardcode_direct_F77=unsupported
13859 aix4* | aix5*)
13860 if test "$host_cpu" = ia64; then
13861 # On IA64, the linker does run time linking by default, so we don't
13862 # have to do anything special.
13863 aix_use_runtimelinking=no
13864 exp_sym_flag='-Bexport'
13865 no_entry_flag=""
13866 else
13867 # If we're using GNU nm, then we don't want the "-C" option.
13868 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13869 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13870 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'
13871 else
13872 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'
13874 aix_use_runtimelinking=no
13876 # Test if we are trying to use run time linking or normal
13877 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13878 # need to do runtime linking.
13879 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13880 for ld_flag in $LDFLAGS; do
13881 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13882 aix_use_runtimelinking=yes
13883 break
13885 done
13886 esac
13888 exp_sym_flag='-bexport'
13889 no_entry_flag='-bnoentry'
13892 # When large executables or shared objects are built, AIX ld can
13893 # have problems creating the table of contents. If linking a library
13894 # or program results in "error TOC overflow" add -mminimal-toc to
13895 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13896 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13898 archive_cmds_F77=''
13899 hardcode_direct_F77=yes
13900 hardcode_libdir_separator_F77=':'
13901 link_all_deplibs_F77=yes
13903 if test "$GCC" = yes; then
13904 case $host_os in aix4.[012]|aix4.[012].*)
13905 # We only want to do this on AIX 4.2 and lower, the check
13906 # below for broken collect2 doesn't work under 4.3+
13907 collect2name=`${CC} -print-prog-name=collect2`
13908 if test -f "$collect2name" && \
13909 strings "$collect2name" | grep resolve_lib_name >/dev/null
13910 then
13911 # We have reworked collect2
13912 hardcode_direct_F77=yes
13913 else
13914 # We have old collect2
13915 hardcode_direct_F77=unsupported
13916 # It fails to find uninstalled libraries when the uninstalled
13917 # path is not listed in the libpath. Setting hardcode_minus_L
13918 # to unsupported forces relinking
13919 hardcode_minus_L_F77=yes
13920 hardcode_libdir_flag_spec_F77='-L$libdir'
13921 hardcode_libdir_separator_F77=
13923 esac
13924 shared_flag='-shared'
13925 if test "$aix_use_runtimelinking" = yes; then
13926 shared_flag="$shared_flag "'${wl}-G'
13928 else
13929 # not using gcc
13930 if test "$host_cpu" = ia64; then
13931 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13932 # chokes on -Wl,-G. The following line is correct:
13933 shared_flag='-G'
13934 else
13935 if test "$aix_use_runtimelinking" = yes; then
13936 shared_flag='${wl}-G'
13937 else
13938 shared_flag='${wl}-bM:SRE'
13943 # It seems that -bexpall does not export symbols beginning with
13944 # underscore (_), so it is better to generate a list of symbols to export.
13945 always_export_symbols_F77=yes
13946 if test "$aix_use_runtimelinking" = yes; then
13947 # Warning - without using the other runtime loading flags (-brtl),
13948 # -berok will link without error, but may produce a broken library.
13949 allow_undefined_flag_F77='-berok'
13950 # Determine the default libpath from the value encoded in an empty executable.
13951 cat >conftest.$ac_ext <<_ACEOF
13952 program main
13955 _ACEOF
13956 rm -f conftest.$ac_objext conftest$ac_exeext
13957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13958 (eval $ac_link) 2>conftest.er1
13959 ac_status=$?
13960 grep -v '^ *+' conftest.er1 >conftest.err
13961 rm -f conftest.er1
13962 cat conftest.err >&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } &&
13965 { ac_try='test -z "$ac_f77_werror_flag"
13966 || test ! -s conftest.err'
13967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13968 (eval $ac_try) 2>&5
13969 ac_status=$?
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); }; } &&
13972 { ac_try='test -s conftest$ac_exeext'
13973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974 (eval $ac_try) 2>&5
13975 ac_status=$?
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); }; }; then
13979 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13981 # Check for a 64-bit object if we didn't find anything.
13982 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; }
13983 }'`; fi
13984 else
13985 echo "$as_me: failed program was:" >&5
13986 sed 's/^/| /' conftest.$ac_ext >&5
13989 rm -f conftest.err conftest.$ac_objext \
13990 conftest$ac_exeext conftest.$ac_ext
13991 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13993 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13994 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"
13995 else
13996 if test "$host_cpu" = ia64; then
13997 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13998 allow_undefined_flag_F77="-z nodefs"
13999 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"
14000 else
14001 # Determine the default libpath from the value encoded in an empty executable.
14002 cat >conftest.$ac_ext <<_ACEOF
14003 program main
14006 _ACEOF
14007 rm -f conftest.$ac_objext conftest$ac_exeext
14008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14009 (eval $ac_link) 2>conftest.er1
14010 ac_status=$?
14011 grep -v '^ *+' conftest.er1 >conftest.err
14012 rm -f conftest.er1
14013 cat conftest.err >&5
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); } &&
14016 { ac_try='test -z "$ac_f77_werror_flag"
14017 || test ! -s conftest.err'
14018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14019 (eval $ac_try) 2>&5
14020 ac_status=$?
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 (exit $ac_status); }; } &&
14023 { ac_try='test -s conftest$ac_exeext'
14024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14025 (eval $ac_try) 2>&5
14026 ac_status=$?
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); }; }; then
14030 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14032 # Check for a 64-bit object if we didn't find anything.
14033 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; }
14034 }'`; fi
14035 else
14036 echo "$as_me: failed program was:" >&5
14037 sed 's/^/| /' conftest.$ac_ext >&5
14040 rm -f conftest.err conftest.$ac_objext \
14041 conftest$ac_exeext conftest.$ac_ext
14042 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14044 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14045 # Warning - without using the other run time loading flags,
14046 # -berok will link without error, but may produce a broken library.
14047 no_undefined_flag_F77=' ${wl}-bernotok'
14048 allow_undefined_flag_F77=' ${wl}-berok'
14049 # -bexpall does not export symbols beginning with underscore (_)
14050 always_export_symbols_F77=yes
14051 # Exported symbols can be pulled into shared objects from archives
14052 whole_archive_flag_spec_F77=' '
14053 archive_cmds_need_lc_F77=yes
14054 # This is similar to how AIX traditionally builds it's shared libraries.
14055 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'
14060 amigaos*)
14061 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)'
14062 hardcode_libdir_flag_spec_F77='-L$libdir'
14063 hardcode_minus_L_F77=yes
14064 # see comment about different semantics on the GNU ld section
14065 ld_shlibs_F77=no
14068 bsdi[45]*)
14069 export_dynamic_flag_spec_F77=-rdynamic
14072 cygwin* | mingw* | pw32*)
14073 # When not using gcc, we currently assume that we are using
14074 # Microsoft Visual C++.
14075 # hardcode_libdir_flag_spec is actually meaningless, as there is
14076 # no search path for DLLs.
14077 hardcode_libdir_flag_spec_F77=' '
14078 allow_undefined_flag_F77=unsupported
14079 # Tell ltmain to make .lib files, not .a files.
14080 libext=lib
14081 # Tell ltmain to make .dll files, not .so files.
14082 shrext_cmds=".dll"
14083 # FIXME: Setting linknames here is a bad hack.
14084 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14085 # The linker will automatically build a .lib file if we build a DLL.
14086 old_archive_From_new_cmds_F77='true'
14087 # FIXME: Should let the user specify the lib program.
14088 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14089 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14090 enable_shared_with_static_runtimes_F77=yes
14093 darwin* | rhapsody*)
14094 case "$host_os" in
14095 rhapsody* | darwin1.[012])
14096 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14098 *) # Darwin 1.3 on
14099 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14100 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14101 else
14102 case ${MACOSX_DEPLOYMENT_TARGET} in
14103 10.[012])
14104 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14106 10.*)
14107 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14109 esac
14112 esac
14113 archive_cmds_need_lc_F77=no
14114 hardcode_direct_F77=no
14115 hardcode_automatic_F77=yes
14116 hardcode_shlibpath_var_F77=unsupported
14117 whole_archive_flag_spec_F77=''
14118 link_all_deplibs_F77=yes
14119 if test "$GCC" = yes ; then
14120 output_verbose_link_cmd='echo'
14121 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14122 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14123 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14124 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}'
14125 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}'
14126 else
14127 case "$cc_basename" in
14128 xlc*)
14129 output_verbose_link_cmd='echo'
14130 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14131 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14132 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14133 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}'
14134 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}'
14137 ld_shlibs_F77=no
14139 esac
14143 dgux*)
14144 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14145 hardcode_libdir_flag_spec_F77='-L$libdir'
14146 hardcode_shlibpath_var_F77=no
14149 freebsd1*)
14150 ld_shlibs_F77=no
14153 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14154 # support. Future versions do this automatically, but an explicit c++rt0.o
14155 # does not break anything, and helps significantly (at the cost of a little
14156 # extra space).
14157 freebsd2.2*)
14158 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14159 hardcode_libdir_flag_spec_F77='-R$libdir'
14160 hardcode_direct_F77=yes
14161 hardcode_shlibpath_var_F77=no
14164 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14165 freebsd2*)
14166 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14167 hardcode_direct_F77=yes
14168 hardcode_minus_L_F77=yes
14169 hardcode_shlibpath_var_F77=no
14172 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14173 freebsd* | kfreebsd*-gnu | dragonfly*)
14174 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14175 hardcode_libdir_flag_spec_F77='-R$libdir'
14176 hardcode_direct_F77=yes
14177 hardcode_shlibpath_var_F77=no
14180 hpux9*)
14181 if test "$GCC" = yes; then
14182 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'
14183 else
14184 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'
14186 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14187 hardcode_libdir_separator_F77=:
14188 hardcode_direct_F77=yes
14190 # hardcode_minus_L: Not really in the search PATH,
14191 # but as the default location of the library.
14192 hardcode_minus_L_F77=yes
14193 export_dynamic_flag_spec_F77='${wl}-E'
14196 hpux10* | hpux11*)
14197 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14198 case "$host_cpu" in
14199 hppa*64*|ia64*)
14200 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14203 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14205 esac
14206 else
14207 case "$host_cpu" in
14208 hppa*64*|ia64*)
14209 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14212 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14214 esac
14216 if test "$with_gnu_ld" = no; then
14217 case "$host_cpu" in
14218 hppa*64*)
14219 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14220 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14221 hardcode_libdir_separator_F77=:
14222 hardcode_direct_F77=no
14223 hardcode_shlibpath_var_F77=no
14225 ia64*)
14226 hardcode_libdir_flag_spec_F77='-L$libdir'
14227 hardcode_direct_F77=no
14228 hardcode_shlibpath_var_F77=no
14230 # hardcode_minus_L: Not really in the search PATH,
14231 # but as the default location of the library.
14232 hardcode_minus_L_F77=yes
14235 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14236 hardcode_libdir_separator_F77=:
14237 hardcode_direct_F77=yes
14238 export_dynamic_flag_spec_F77='${wl}-E'
14240 # hardcode_minus_L: Not really in the search PATH,
14241 # but as the default location of the library.
14242 hardcode_minus_L_F77=yes
14244 esac
14248 irix5* | irix6* | nonstopux*)
14249 if test "$GCC" = yes; then
14250 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'
14251 else
14252 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'
14253 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14255 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14256 hardcode_libdir_separator_F77=:
14257 link_all_deplibs_F77=yes
14260 netbsd*)
14261 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14262 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14263 else
14264 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14266 hardcode_libdir_flag_spec_F77='-R$libdir'
14267 hardcode_direct_F77=yes
14268 hardcode_shlibpath_var_F77=no
14271 newsos6)
14272 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14273 hardcode_direct_F77=yes
14274 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14275 hardcode_libdir_separator_F77=:
14276 hardcode_shlibpath_var_F77=no
14279 openbsd*)
14280 hardcode_direct_F77=yes
14281 hardcode_shlibpath_var_F77=no
14282 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14283 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14284 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14285 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14286 export_dynamic_flag_spec_F77='${wl}-E'
14287 else
14288 case $host_os in
14289 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14290 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14291 hardcode_libdir_flag_spec_F77='-R$libdir'
14294 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14295 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14297 esac
14301 os2*)
14302 hardcode_libdir_flag_spec_F77='-L$libdir'
14303 hardcode_minus_L_F77=yes
14304 allow_undefined_flag_F77=unsupported
14305 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'
14306 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14309 osf3*)
14310 if test "$GCC" = yes; then
14311 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14312 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'
14313 else
14314 allow_undefined_flag_F77=' -expect_unresolved \*'
14315 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'
14317 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14318 hardcode_libdir_separator_F77=:
14321 osf4* | osf5*) # as osf3* with the addition of -msym flag
14322 if test "$GCC" = yes; then
14323 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14324 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'
14325 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14326 else
14327 allow_undefined_flag_F77=' -expect_unresolved \*'
14328 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'
14329 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~
14330 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14332 # Both c and cxx compiler support -rpath directly
14333 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14335 hardcode_libdir_separator_F77=:
14338 sco3.2v5*)
14339 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14340 hardcode_shlibpath_var_F77=no
14341 export_dynamic_flag_spec_F77='${wl}-Bexport'
14342 runpath_var=LD_RUN_PATH
14343 hardcode_runpath_var=yes
14346 solaris*)
14347 no_undefined_flag_F77=' -z text'
14348 if test "$GCC" = yes; then
14349 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14350 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14351 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14352 else
14353 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14354 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14355 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14357 hardcode_libdir_flag_spec_F77='-R$libdir'
14358 hardcode_shlibpath_var_F77=no
14359 case $host_os in
14360 solaris2.[0-5] | solaris2.[0-5].*) ;;
14361 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14362 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
14363 esac
14364 link_all_deplibs_F77=yes
14367 sunos4*)
14368 if test "x$host_vendor" = xsequent; then
14369 # Use $CC to link under sequent, because it throws in some extra .o
14370 # files that make .init and .fini sections work.
14371 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14372 else
14373 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14375 hardcode_libdir_flag_spec_F77='-L$libdir'
14376 hardcode_direct_F77=yes
14377 hardcode_minus_L_F77=yes
14378 hardcode_shlibpath_var_F77=no
14381 sysv4)
14382 case $host_vendor in
14383 sni)
14384 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14385 hardcode_direct_F77=yes # is this really true???
14387 siemens)
14388 ## LD is ld it makes a PLAMLIB
14389 ## CC just makes a GrossModule.
14390 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14391 reload_cmds_F77='$CC -r -o $output$reload_objs'
14392 hardcode_direct_F77=no
14394 motorola)
14395 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14396 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14398 esac
14399 runpath_var='LD_RUN_PATH'
14400 hardcode_shlibpath_var_F77=no
14403 sysv4.3*)
14404 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14405 hardcode_shlibpath_var_F77=no
14406 export_dynamic_flag_spec_F77='-Bexport'
14409 sysv4*MP*)
14410 if test -d /usr/nec; then
14411 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14412 hardcode_shlibpath_var_F77=no
14413 runpath_var=LD_RUN_PATH
14414 hardcode_runpath_var=yes
14415 ld_shlibs_F77=yes
14419 sysv4.2uw2*)
14420 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14421 hardcode_direct_F77=yes
14422 hardcode_minus_L_F77=no
14423 hardcode_shlibpath_var_F77=no
14424 hardcode_runpath_var=yes
14425 runpath_var=LD_RUN_PATH
14428 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14429 no_undefined_flag_F77='${wl}-z ${wl}text'
14430 if test "$GCC" = yes; then
14431 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14432 else
14433 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14435 runpath_var='LD_RUN_PATH'
14436 hardcode_shlibpath_var_F77=no
14439 sysv5*)
14440 no_undefined_flag_F77=' -z text'
14441 # $CC -shared without GNU ld will not create a library from C++
14442 # object files and a static libstdc++, better avoid it by now
14443 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14444 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14445 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14446 hardcode_libdir_flag_spec_F77=
14447 hardcode_shlibpath_var_F77=no
14448 runpath_var='LD_RUN_PATH'
14451 uts4*)
14452 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14453 hardcode_libdir_flag_spec_F77='-L$libdir'
14454 hardcode_shlibpath_var_F77=no
14458 ld_shlibs_F77=no
14460 esac
14463 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14464 echo "${ECHO_T}$ld_shlibs_F77" >&6
14465 test "$ld_shlibs_F77" = no && can_build_shared=no
14467 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14468 if test "$GCC" = yes; then
14469 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14473 # Do we need to explicitly link libc?
14475 case "x$archive_cmds_need_lc_F77" in
14476 x|xyes)
14477 # Assume -lc should be added
14478 archive_cmds_need_lc_F77=yes
14480 if test "$enable_shared" = yes && test "$GCC" = yes; then
14481 case $archive_cmds_F77 in
14482 *'~'*)
14483 # FIXME: we may have to deal with multi-command sequences.
14485 '$CC '*)
14486 # Test whether the compiler implicitly links with -lc since on some
14487 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14488 # to ld, don't add -lc before -lgcc.
14489 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14490 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14491 $rm conftest*
14492 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14495 (eval $ac_compile) 2>&5
14496 ac_status=$?
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); } 2>conftest.err; then
14499 soname=conftest
14500 lib=conftest
14501 libobjs=conftest.$ac_objext
14502 deplibs=
14503 wl=$lt_prog_compiler_wl_F77
14504 compiler_flags=-v
14505 linker_flags=-v
14506 verstring=
14507 output_objdir=.
14508 libname=conftest
14509 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14510 allow_undefined_flag_F77=
14511 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14512 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14513 ac_status=$?
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); }
14516 then
14517 archive_cmds_need_lc_F77=no
14518 else
14519 archive_cmds_need_lc_F77=yes
14521 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14522 else
14523 cat conftest.err 1>&5
14525 $rm conftest*
14526 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14527 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14529 esac
14532 esac
14534 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14535 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14536 library_names_spec=
14537 libname_spec='lib$name'
14538 soname_spec=
14539 shrext_cmds=".so"
14540 postinstall_cmds=
14541 postuninstall_cmds=
14542 finish_cmds=
14543 finish_eval=
14544 shlibpath_var=
14545 shlibpath_overrides_runpath=unknown
14546 version_type=none
14547 dynamic_linker="$host_os ld.so"
14548 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14549 if test "$GCC" = yes; then
14550 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14551 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14552 # if the path contains ";" then we assume it to be the separator
14553 # otherwise default to the standard path separator (i.e. ":") - it is
14554 # assumed that no part of a normal pathname contains ";" but that should
14555 # okay in the real world where ";" in dirpaths is itself problematic.
14556 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14557 else
14558 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14560 else
14561 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14563 need_lib_prefix=unknown
14564 hardcode_into_libs=no
14566 # when you set need_version to no, make sure it does not cause -set_version
14567 # flags to be left without arguments
14568 need_version=unknown
14570 case $host_os in
14571 aix3*)
14572 version_type=linux
14573 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14574 shlibpath_var=LIBPATH
14576 # AIX 3 has no versioning support, so we append a major version to the name.
14577 soname_spec='${libname}${release}${shared_ext}$major'
14580 aix4* | aix5*)
14581 version_type=linux
14582 need_lib_prefix=no
14583 need_version=no
14584 hardcode_into_libs=yes
14585 if test "$host_cpu" = ia64; then
14586 # AIX 5 supports IA64
14587 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14588 shlibpath_var=LD_LIBRARY_PATH
14589 else
14590 # With GCC up to 2.95.x, collect2 would create an import file
14591 # for dependence libraries. The import file would start with
14592 # the line `#! .'. This would cause the generated library to
14593 # depend on `.', always an invalid library. This was fixed in
14594 # development snapshots of GCC prior to 3.0.
14595 case $host_os in
14596 aix4 | aix4.[01] | aix4.[01].*)
14597 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14598 echo ' yes '
14599 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14601 else
14602 can_build_shared=no
14605 esac
14606 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14607 # soname into executable. Probably we can add versioning support to
14608 # collect2, so additional links can be useful in future.
14609 if test "$aix_use_runtimelinking" = yes; then
14610 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14611 # instead of lib<name>.a to let people know that these are not
14612 # typical AIX shared libraries.
14613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14614 else
14615 # We preserve .a as extension for shared libraries through AIX4.2
14616 # and later when we are not doing run time linking.
14617 library_names_spec='${libname}${release}.a $libname.a'
14618 soname_spec='${libname}${release}${shared_ext}$major'
14620 shlibpath_var=LIBPATH
14624 amigaos*)
14625 library_names_spec='$libname.ixlibrary $libname.a'
14626 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14627 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'
14630 beos*)
14631 library_names_spec='${libname}${shared_ext}'
14632 dynamic_linker="$host_os ld.so"
14633 shlibpath_var=LIBRARY_PATH
14636 bsdi[45]*)
14637 version_type=linux
14638 need_version=no
14639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14640 soname_spec='${libname}${release}${shared_ext}$major'
14641 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14642 shlibpath_var=LD_LIBRARY_PATH
14643 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14644 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14645 # the default ld.so.conf also contains /usr/contrib/lib and
14646 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14647 # libtool to hard-code these into programs
14650 cygwin* | mingw* | pw32*)
14651 version_type=windows
14652 shrext_cmds=".dll"
14653 need_version=no
14654 need_lib_prefix=no
14656 case $GCC,$host_os in
14657 yes,cygwin* | yes,mingw* | yes,pw32*)
14658 library_names_spec='$libname.dll.a'
14659 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14660 postinstall_cmds='base_file=`basename \${file}`~
14661 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14662 dldir=$destdir/`dirname \$dlpath`~
14663 test -d \$dldir || mkdir -p \$dldir~
14664 $install_prog $dir/$dlname \$dldir/$dlname'
14665 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14666 dlpath=$dir/\$dldll~
14667 $rm \$dlpath'
14668 shlibpath_overrides_runpath=yes
14670 case $host_os in
14671 cygwin*)
14672 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14673 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14674 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14676 mingw*)
14677 # MinGW DLLs use traditional 'lib' prefix
14678 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14679 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14680 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14681 # It is most probably a Windows format PATH printed by
14682 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14683 # path with ; separators, and with drive letters. We can handle the
14684 # drive letters (cygwin fileutils understands them), so leave them,
14685 # especially as we might pass files found there to a mingw objdump,
14686 # which wouldn't understand a cygwinified path. Ahh.
14687 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14688 else
14689 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14692 pw32*)
14693 # pw32 DLLs use 'pw' prefix rather than 'lib'
14694 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14696 esac
14700 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14702 esac
14703 dynamic_linker='Win32 ld.exe'
14704 # FIXME: first we should search . and the directory the executable is in
14705 shlibpath_var=PATH
14708 darwin* | rhapsody*)
14709 dynamic_linker="$host_os dyld"
14710 version_type=darwin
14711 need_lib_prefix=no
14712 need_version=no
14713 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14714 soname_spec='${libname}${release}${major}$shared_ext'
14715 shlibpath_overrides_runpath=yes
14716 shlibpath_var=DYLD_LIBRARY_PATH
14717 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14718 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14719 if test "$GCC" = yes; then
14720 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"`
14721 else
14722 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14724 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14727 dgux*)
14728 version_type=linux
14729 need_lib_prefix=no
14730 need_version=no
14731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14732 soname_spec='${libname}${release}${shared_ext}$major'
14733 shlibpath_var=LD_LIBRARY_PATH
14736 freebsd1*)
14737 dynamic_linker=no
14740 kfreebsd*-gnu)
14741 version_type=linux
14742 need_lib_prefix=no
14743 need_version=no
14744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14745 soname_spec='${libname}${release}${shared_ext}$major'
14746 shlibpath_var=LD_LIBRARY_PATH
14747 shlibpath_overrides_runpath=no
14748 hardcode_into_libs=yes
14749 dynamic_linker='GNU ld.so'
14752 freebsd* | dragonfly*)
14753 # DragonFly does not have aout. When/if they implement a new
14754 # versioning mechanism, adjust this.
14755 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14756 version_type=freebsd-$objformat
14757 case $version_type in
14758 freebsd-elf*)
14759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14760 need_version=no
14761 need_lib_prefix=no
14763 freebsd-*)
14764 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14765 need_version=yes
14767 esac
14768 shlibpath_var=LD_LIBRARY_PATH
14769 case $host_os in
14770 freebsd2*)
14771 shlibpath_overrides_runpath=yes
14773 freebsd3.[01]* | freebsdelf3.[01]*)
14774 shlibpath_overrides_runpath=yes
14775 hardcode_into_libs=yes
14777 *) # from 3.2 on
14778 shlibpath_overrides_runpath=no
14779 hardcode_into_libs=yes
14781 esac
14784 gnu*)
14785 version_type=linux
14786 need_lib_prefix=no
14787 need_version=no
14788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14789 soname_spec='${libname}${release}${shared_ext}$major'
14790 shlibpath_var=LD_LIBRARY_PATH
14791 hardcode_into_libs=yes
14794 hpux9* | hpux10* | hpux11*)
14795 # Give a soname corresponding to the major version so that dld.sl refuses to
14796 # link against other versions.
14797 version_type=sunos
14798 need_lib_prefix=no
14799 need_version=no
14800 case "$host_cpu" in
14801 ia64*)
14802 shrext_cmds='.so'
14803 hardcode_into_libs=yes
14804 dynamic_linker="$host_os dld.so"
14805 shlibpath_var=LD_LIBRARY_PATH
14806 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14808 soname_spec='${libname}${release}${shared_ext}$major'
14809 if test "X$HPUX_IA64_MODE" = X32; then
14810 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14811 else
14812 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14814 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14816 hppa*64*)
14817 shrext_cmds='.sl'
14818 hardcode_into_libs=yes
14819 dynamic_linker="$host_os dld.sl"
14820 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14821 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14823 soname_spec='${libname}${release}${shared_ext}$major'
14824 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14825 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14828 shrext_cmds='.sl'
14829 dynamic_linker="$host_os dld.sl"
14830 shlibpath_var=SHLIB_PATH
14831 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14833 soname_spec='${libname}${release}${shared_ext}$major'
14835 esac
14836 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14837 postinstall_cmds='chmod 555 $lib'
14840 irix5* | irix6* | nonstopux*)
14841 case $host_os in
14842 nonstopux*) version_type=nonstopux ;;
14844 if test "$lt_cv_prog_gnu_ld" = yes; then
14845 version_type=linux
14846 else
14847 version_type=irix
14848 fi ;;
14849 esac
14850 need_lib_prefix=no
14851 need_version=no
14852 soname_spec='${libname}${release}${shared_ext}$major'
14853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14854 case $host_os in
14855 irix5* | nonstopux*)
14856 libsuff= shlibsuff=
14859 case $LD in # libtool.m4 will add one of these switches to LD
14860 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14861 libsuff= shlibsuff= libmagic=32-bit;;
14862 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14863 libsuff=32 shlibsuff=N32 libmagic=N32;;
14864 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14865 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14866 *) libsuff= shlibsuff= libmagic=never-match;;
14867 esac
14869 esac
14870 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14871 shlibpath_overrides_runpath=no
14872 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14873 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14874 hardcode_into_libs=yes
14877 # No shared lib support for Linux oldld, aout, or coff.
14878 linux*oldld* | linux*aout* | linux*coff*)
14879 dynamic_linker=no
14882 # This must be Linux ELF.
14883 linux*)
14884 version_type=linux
14885 need_lib_prefix=no
14886 need_version=no
14887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14888 soname_spec='${libname}${release}${shared_ext}$major'
14889 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14890 shlibpath_var=LD_LIBRARY_PATH
14891 shlibpath_overrides_runpath=no
14892 # This implies no fast_install, which is unacceptable.
14893 # Some rework will be needed to allow for fast_install
14894 # before this can be enabled.
14895 hardcode_into_libs=yes
14897 # Append ld.so.conf contents to the search path
14898 if test -f /etc/ld.so.conf; then
14899 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' ' '`
14900 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14903 # We used to test for /lib/ld.so.1 and disable shared libraries on
14904 # powerpc, because MkLinux only supported shared libraries with the
14905 # GNU dynamic linker. Since this was broken with cross compilers,
14906 # most powerpc-linux boxes support dynamic linking these days and
14907 # people can always --disable-shared, the test was removed, and we
14908 # assume the GNU/Linux dynamic linker is in use.
14909 dynamic_linker='GNU/Linux ld.so'
14912 knetbsd*-gnu)
14913 version_type=linux
14914 need_lib_prefix=no
14915 need_version=no
14916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14917 soname_spec='${libname}${release}${shared_ext}$major'
14918 shlibpath_var=LD_LIBRARY_PATH
14919 shlibpath_overrides_runpath=no
14920 hardcode_into_libs=yes
14921 dynamic_linker='GNU ld.so'
14924 netbsd*)
14925 version_type=sunos
14926 need_lib_prefix=no
14927 need_version=no
14928 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14930 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14931 dynamic_linker='NetBSD (a.out) ld.so'
14932 else
14933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14934 soname_spec='${libname}${release}${shared_ext}$major'
14935 dynamic_linker='NetBSD ld.elf_so'
14937 shlibpath_var=LD_LIBRARY_PATH
14938 shlibpath_overrides_runpath=yes
14939 hardcode_into_libs=yes
14942 newsos6)
14943 version_type=linux
14944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14945 shlibpath_var=LD_LIBRARY_PATH
14946 shlibpath_overrides_runpath=yes
14949 nto-qnx*)
14950 version_type=linux
14951 need_lib_prefix=no
14952 need_version=no
14953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14954 soname_spec='${libname}${release}${shared_ext}$major'
14955 shlibpath_var=LD_LIBRARY_PATH
14956 shlibpath_overrides_runpath=yes
14959 openbsd*)
14960 version_type=sunos
14961 need_lib_prefix=no
14962 need_version=no
14963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14964 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14965 shlibpath_var=LD_LIBRARY_PATH
14966 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14967 case $host_os in
14968 openbsd2.[89] | openbsd2.[89].*)
14969 shlibpath_overrides_runpath=no
14972 shlibpath_overrides_runpath=yes
14974 esac
14975 else
14976 shlibpath_overrides_runpath=yes
14980 os2*)
14981 libname_spec='$name'
14982 shrext_cmds=".dll"
14983 need_lib_prefix=no
14984 library_names_spec='$libname${shared_ext} $libname.a'
14985 dynamic_linker='OS/2 ld.exe'
14986 shlibpath_var=LIBPATH
14989 osf3* | osf4* | osf5*)
14990 version_type=osf
14991 need_lib_prefix=no
14992 need_version=no
14993 soname_spec='${libname}${release}${shared_ext}$major'
14994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14995 shlibpath_var=LD_LIBRARY_PATH
14996 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14997 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15000 sco3.2v5*)
15001 version_type=osf
15002 soname_spec='${libname}${release}${shared_ext}$major'
15003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15004 shlibpath_var=LD_LIBRARY_PATH
15007 solaris*)
15008 version_type=linux
15009 need_lib_prefix=no
15010 need_version=no
15011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15012 soname_spec='${libname}${release}${shared_ext}$major'
15013 shlibpath_var=LD_LIBRARY_PATH
15014 shlibpath_overrides_runpath=yes
15015 hardcode_into_libs=yes
15016 # ldd complains unless libraries are executable
15017 postinstall_cmds='chmod +x $lib'
15020 sunos4*)
15021 version_type=sunos
15022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15023 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15024 shlibpath_var=LD_LIBRARY_PATH
15025 shlibpath_overrides_runpath=yes
15026 if test "$with_gnu_ld" = yes; then
15027 need_lib_prefix=no
15029 need_version=yes
15032 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15033 version_type=linux
15034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15035 soname_spec='${libname}${release}${shared_ext}$major'
15036 shlibpath_var=LD_LIBRARY_PATH
15037 case $host_vendor in
15038 sni)
15039 shlibpath_overrides_runpath=no
15040 need_lib_prefix=no
15041 export_dynamic_flag_spec='${wl}-Blargedynsym'
15042 runpath_var=LD_RUN_PATH
15044 siemens)
15045 need_lib_prefix=no
15047 motorola)
15048 need_lib_prefix=no
15049 need_version=no
15050 shlibpath_overrides_runpath=no
15051 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15053 esac
15056 sysv4*MP*)
15057 if test -d /usr/nec ;then
15058 version_type=linux
15059 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15060 soname_spec='$libname${shared_ext}.$major'
15061 shlibpath_var=LD_LIBRARY_PATH
15065 uts4*)
15066 version_type=linux
15067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15068 soname_spec='${libname}${release}${shared_ext}$major'
15069 shlibpath_var=LD_LIBRARY_PATH
15073 dynamic_linker=no
15075 esac
15076 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15077 echo "${ECHO_T}$dynamic_linker" >&6
15078 test "$dynamic_linker" = no && can_build_shared=no
15080 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15081 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15082 hardcode_action_F77=
15083 if test -n "$hardcode_libdir_flag_spec_F77" || \
15084 test -n "$runpath_var_F77" || \
15085 test "X$hardcode_automatic_F77" = "Xyes" ; then
15087 # We can hardcode non-existant directories.
15088 if test "$hardcode_direct_F77" != no &&
15089 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15090 # have to relink, otherwise we might link with an installed library
15091 # when we should be linking with a yet-to-be-installed one
15092 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15093 test "$hardcode_minus_L_F77" != no; then
15094 # Linking always hardcodes the temporary library directory.
15095 hardcode_action_F77=relink
15096 else
15097 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15098 hardcode_action_F77=immediate
15100 else
15101 # We cannot hardcode anything, or else we can only hardcode existing
15102 # directories.
15103 hardcode_action_F77=unsupported
15105 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15106 echo "${ECHO_T}$hardcode_action_F77" >&6
15108 if test "$hardcode_action_F77" = relink; then
15109 # Fast installation is not supported
15110 enable_fast_install=no
15111 elif test "$shlibpath_overrides_runpath" = yes ||
15112 test "$enable_shared" = no; then
15113 # Fast installation is not necessary
15114 enable_fast_install=needless
15117 striplib=
15118 old_striplib=
15119 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15120 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15121 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15122 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15123 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15124 echo "$as_me:$LINENO: result: yes" >&5
15125 echo "${ECHO_T}yes" >&6
15126 else
15127 # FIXME - insert some real tests, host_os isn't really good enough
15128 case $host_os in
15129 darwin*)
15130 if test -n "$STRIP" ; then
15131 striplib="$STRIP -x"
15132 echo "$as_me:$LINENO: result: yes" >&5
15133 echo "${ECHO_T}yes" >&6
15134 else
15135 echo "$as_me:$LINENO: result: no" >&5
15136 echo "${ECHO_T}no" >&6
15140 echo "$as_me:$LINENO: result: no" >&5
15141 echo "${ECHO_T}no" >&6
15143 esac
15148 # The else clause should only fire when bootstrapping the
15149 # libtool distribution, otherwise you forgot to ship ltmain.sh
15150 # with your package, and you will get complaints that there are
15151 # no rules to generate ltmain.sh.
15152 if test -f "$ltmain"; then
15153 # See if we are running on zsh, and set the options which allow our commands through
15154 # without removal of \ escapes.
15155 if test -n "${ZSH_VERSION+set}" ; then
15156 setopt NO_GLOB_SUBST
15158 # Now quote all the things that may contain metacharacters while being
15159 # careful not to overquote the AC_SUBSTed values. We take copies of the
15160 # variables and quote the copies for generation of the libtool script.
15161 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15162 SED SHELL STRIP \
15163 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15164 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15165 deplibs_check_method reload_flag reload_cmds need_locks \
15166 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15167 lt_cv_sys_global_symbol_to_c_name_address \
15168 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15169 old_postinstall_cmds old_postuninstall_cmds \
15170 compiler_F77 \
15171 CC_F77 \
15172 LD_F77 \
15173 lt_prog_compiler_wl_F77 \
15174 lt_prog_compiler_pic_F77 \
15175 lt_prog_compiler_static_F77 \
15176 lt_prog_compiler_no_builtin_flag_F77 \
15177 export_dynamic_flag_spec_F77 \
15178 thread_safe_flag_spec_F77 \
15179 whole_archive_flag_spec_F77 \
15180 enable_shared_with_static_runtimes_F77 \
15181 old_archive_cmds_F77 \
15182 old_archive_from_new_cmds_F77 \
15183 predep_objects_F77 \
15184 postdep_objects_F77 \
15185 predeps_F77 \
15186 postdeps_F77 \
15187 compiler_lib_search_path_F77 \
15188 archive_cmds_F77 \
15189 archive_expsym_cmds_F77 \
15190 postinstall_cmds_F77 \
15191 postuninstall_cmds_F77 \
15192 old_archive_from_expsyms_cmds_F77 \
15193 allow_undefined_flag_F77 \
15194 no_undefined_flag_F77 \
15195 export_symbols_cmds_F77 \
15196 hardcode_libdir_flag_spec_F77 \
15197 hardcode_libdir_flag_spec_ld_F77 \
15198 hardcode_libdir_separator_F77 \
15199 hardcode_automatic_F77 \
15200 module_cmds_F77 \
15201 module_expsym_cmds_F77 \
15202 lt_cv_prog_compiler_c_o_F77 \
15203 exclude_expsyms_F77 \
15204 include_expsyms_F77; do
15206 case $var in
15207 old_archive_cmds_F77 | \
15208 old_archive_from_new_cmds_F77 | \
15209 archive_cmds_F77 | \
15210 archive_expsym_cmds_F77 | \
15211 module_cmds_F77 | \
15212 module_expsym_cmds_F77 | \
15213 old_archive_from_expsyms_cmds_F77 | \
15214 export_symbols_cmds_F77 | \
15215 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15216 postinstall_cmds | postuninstall_cmds | \
15217 old_postinstall_cmds | old_postuninstall_cmds | \
15218 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15219 # Double-quote double-evaled strings.
15220 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15223 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15225 esac
15226 done
15228 case $lt_echo in
15229 *'\$0 --fallback-echo"')
15230 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15232 esac
15234 cfgfile="$ofile"
15236 cat <<__EOF__ >> "$cfgfile"
15237 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15239 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15241 # Shell to use when invoking shell scripts.
15242 SHELL=$lt_SHELL
15244 # Whether or not to build shared libraries.
15245 build_libtool_libs=$enable_shared
15247 # Whether or not to build static libraries.
15248 build_old_libs=$enable_static
15250 # Whether or not to add -lc for building shared libraries.
15251 build_libtool_need_lc=$archive_cmds_need_lc_F77
15253 # Whether or not to disallow shared libs when runtime libs are static
15254 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15256 # Whether or not to optimize for fast installation.
15257 fast_install=$enable_fast_install
15259 # The host system.
15260 host_alias=$host_alias
15261 host=$host
15262 host_os=$host_os
15264 # The build system.
15265 build_alias=$build_alias
15266 build=$build
15267 build_os=$build_os
15269 # An echo program that does not interpret backslashes.
15270 echo=$lt_echo
15272 # The archiver.
15273 AR=$lt_AR
15274 AR_FLAGS=$lt_AR_FLAGS
15276 # A C compiler.
15277 LTCC=$lt_LTCC
15279 # A language-specific compiler.
15280 CC=$lt_compiler_F77
15282 # Is the compiler the GNU C compiler?
15283 with_gcc=$GCC_F77
15285 # An ERE matcher.
15286 EGREP=$lt_EGREP
15288 # The linker used to build libraries.
15289 LD=$lt_LD_F77
15291 # Whether we need hard or soft links.
15292 LN_S=$lt_LN_S
15294 # A BSD-compatible nm program.
15295 NM=$lt_NM
15297 # A symbol stripping program
15298 STRIP=$lt_STRIP
15300 # Used to examine libraries when file_magic_cmd begins "file"
15301 MAGIC_CMD=$MAGIC_CMD
15303 # Used on cygwin: DLL creation program.
15304 DLLTOOL="$DLLTOOL"
15306 # Used on cygwin: object dumper.
15307 OBJDUMP="$OBJDUMP"
15309 # Used on cygwin: assembler.
15310 AS="$AS"
15312 # The name of the directory that contains temporary libtool files.
15313 objdir=$objdir
15315 # How to create reloadable object files.
15316 reload_flag=$lt_reload_flag
15317 reload_cmds=$lt_reload_cmds
15319 # How to pass a linker flag through the compiler.
15320 wl=$lt_lt_prog_compiler_wl_F77
15322 # Object file suffix (normally "o").
15323 objext="$ac_objext"
15325 # Old archive suffix (normally "a").
15326 libext="$libext"
15328 # Shared library suffix (normally ".so").
15329 shrext_cmds='$shrext_cmds'
15331 # Executable file suffix (normally "").
15332 exeext="$exeext"
15334 # Additional compiler flags for building library objects.
15335 pic_flag=$lt_lt_prog_compiler_pic_F77
15336 pic_mode=$pic_mode
15338 # What is the maximum length of a command?
15339 max_cmd_len=$lt_cv_sys_max_cmd_len
15341 # Does compiler simultaneously support -c and -o options?
15342 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15344 # Must we lock files when doing compilation ?
15345 need_locks=$lt_need_locks
15347 # Do we need the lib prefix for modules?
15348 need_lib_prefix=$need_lib_prefix
15350 # Do we need a version for libraries?
15351 need_version=$need_version
15353 # Whether dlopen is supported.
15354 dlopen_support=$enable_dlopen
15356 # Whether dlopen of programs is supported.
15357 dlopen_self=$enable_dlopen_self
15359 # Whether dlopen of statically linked programs is supported.
15360 dlopen_self_static=$enable_dlopen_self_static
15362 # Compiler flag to prevent dynamic linking.
15363 link_static_flag=$lt_lt_prog_compiler_static_F77
15365 # Compiler flag to turn off builtin functions.
15366 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15368 # Compiler flag to allow reflexive dlopens.
15369 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15371 # Compiler flag to generate shared objects directly from archives.
15372 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15374 # Compiler flag to generate thread-safe objects.
15375 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15377 # Library versioning type.
15378 version_type=$version_type
15380 # Format of library name prefix.
15381 libname_spec=$lt_libname_spec
15383 # List of archive names. First name is the real one, the rest are links.
15384 # The last name is the one that the linker finds with -lNAME.
15385 library_names_spec=$lt_library_names_spec
15387 # The coded name of the library, if different from the real name.
15388 soname_spec=$lt_soname_spec
15390 # Commands used to build and install an old-style archive.
15391 RANLIB=$lt_RANLIB
15392 old_archive_cmds=$lt_old_archive_cmds_F77
15393 old_postinstall_cmds=$lt_old_postinstall_cmds
15394 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15396 # Create an old-style archive from a shared archive.
15397 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15399 # Create a temporary old-style archive to link instead of a shared archive.
15400 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15402 # Commands used to build and install a shared archive.
15403 archive_cmds=$lt_archive_cmds_F77
15404 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15405 postinstall_cmds=$lt_postinstall_cmds
15406 postuninstall_cmds=$lt_postuninstall_cmds
15408 # Commands used to build a loadable module (assumed same as above if empty)
15409 module_cmds=$lt_module_cmds_F77
15410 module_expsym_cmds=$lt_module_expsym_cmds_F77
15412 # Commands to strip libraries.
15413 old_striplib=$lt_old_striplib
15414 striplib=$lt_striplib
15416 # Dependencies to place before the objects being linked to create a
15417 # shared library.
15418 predep_objects=$lt_predep_objects_F77
15420 # Dependencies to place after the objects being linked to create a
15421 # shared library.
15422 postdep_objects=$lt_postdep_objects_F77
15424 # Dependencies to place before the objects being linked to create a
15425 # shared library.
15426 predeps=$lt_predeps_F77
15428 # Dependencies to place after the objects being linked to create a
15429 # shared library.
15430 postdeps=$lt_postdeps_F77
15432 # The library search path used internally by the compiler when linking
15433 # a shared library.
15434 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15436 # Method to check whether dependent libraries are shared objects.
15437 deplibs_check_method=$lt_deplibs_check_method
15439 # Command to use when deplibs_check_method == file_magic.
15440 file_magic_cmd=$lt_file_magic_cmd
15442 # Flag that allows shared libraries with undefined symbols to be built.
15443 allow_undefined_flag=$lt_allow_undefined_flag_F77
15445 # Flag that forces no undefined symbols.
15446 no_undefined_flag=$lt_no_undefined_flag_F77
15448 # Commands used to finish a libtool library installation in a directory.
15449 finish_cmds=$lt_finish_cmds
15451 # Same as above, but a single script fragment to be evaled but not shown.
15452 finish_eval=$lt_finish_eval
15454 # Take the output of nm and produce a listing of raw symbols and C names.
15455 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15457 # Transform the output of nm in a proper C declaration
15458 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15460 # Transform the output of nm in a C name address pair
15461 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15463 # This is the shared library runtime path variable.
15464 runpath_var=$runpath_var
15466 # This is the shared library path variable.
15467 shlibpath_var=$shlibpath_var
15469 # Is shlibpath searched before the hard-coded library search path?
15470 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15472 # How to hardcode a shared library path into an executable.
15473 hardcode_action=$hardcode_action_F77
15475 # Whether we should hardcode library paths into libraries.
15476 hardcode_into_libs=$hardcode_into_libs
15478 # Flag to hardcode \$libdir into a binary during linking.
15479 # This must work even if \$libdir does not exist.
15480 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15482 # If ld is used when linking, flag to hardcode \$libdir into
15483 # a binary during linking. This must work even if \$libdir does
15484 # not exist.
15485 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15487 # Whether we need a single -rpath flag with a separated argument.
15488 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15490 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15491 # resulting binary.
15492 hardcode_direct=$hardcode_direct_F77
15494 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15495 # resulting binary.
15496 hardcode_minus_L=$hardcode_minus_L_F77
15498 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15499 # the resulting binary.
15500 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15502 # Set to yes if building a shared library automatically hardcodes DIR into the library
15503 # and all subsequent libraries and executables linked against it.
15504 hardcode_automatic=$hardcode_automatic_F77
15506 # Variables whose values should be saved in libtool wrapper scripts and
15507 # restored at relink time.
15508 variables_saved_for_relink="$variables_saved_for_relink"
15510 # Whether libtool must link a program against all its dependency libraries.
15511 link_all_deplibs=$link_all_deplibs_F77
15513 # Compile-time system search path for libraries
15514 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15516 # Run-time system search path for libraries
15517 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15519 # Fix the shell variable \$srcfile for the compiler.
15520 fix_srcfile_path="$fix_srcfile_path_F77"
15522 # Set to yes if exported symbols are required.
15523 always_export_symbols=$always_export_symbols_F77
15525 # The commands to list exported symbols.
15526 export_symbols_cmds=$lt_export_symbols_cmds_F77
15528 # The commands to extract the exported symbol list from a shared archive.
15529 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15531 # Symbols that should not be listed in the preloaded symbols.
15532 exclude_expsyms=$lt_exclude_expsyms_F77
15534 # Symbols that must always be exported.
15535 include_expsyms=$lt_include_expsyms_F77
15537 # ### END LIBTOOL TAG CONFIG: $tagname
15539 __EOF__
15542 else
15543 # If there is no Makefile yet, we rely on a make rule to execute
15544 # `config.status --recheck' to rerun these tests and create the
15545 # libtool script then.
15546 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15547 if test -f "$ltmain_in"; then
15548 test -f Makefile && make "$ltmain"
15553 ac_ext=c
15554 ac_cpp='$CPP $CPPFLAGS'
15555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15559 CC="$lt_save_CC"
15561 else
15562 tagname=""
15566 GCJ)
15567 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15571 # Source file extension for Java test sources.
15572 ac_ext=java
15574 # Object file extension for compiled Java test sources.
15575 objext=o
15576 objext_GCJ=$objext
15578 # Code to be used in simple compile tests
15579 lt_simple_compile_test_code="class foo {}\n"
15581 # Code to be used in simple link tests
15582 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15584 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15586 # If no C compiler was specified, use CC.
15587 LTCC=${LTCC-"$CC"}
15589 # Allow CC to be a program name with arguments.
15590 compiler=$CC
15593 # Allow CC to be a program name with arguments.
15594 lt_save_CC="$CC"
15595 CC=${GCJ-"gcj"}
15596 compiler=$CC
15597 compiler_GCJ=$CC
15599 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15600 archive_cmds_need_lc_GCJ=no
15603 lt_prog_compiler_no_builtin_flag_GCJ=
15605 if test "$GCC" = yes; then
15606 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15609 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15610 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15611 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15612 echo $ECHO_N "(cached) $ECHO_C" >&6
15613 else
15614 lt_cv_prog_compiler_rtti_exceptions=no
15615 ac_outfile=conftest.$ac_objext
15616 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15617 lt_compiler_flag="-fno-rtti -fno-exceptions"
15618 # Insert the option either (1) after the last *FLAGS variable, or
15619 # (2) before a word containing "conftest.", or (3) at the end.
15620 # Note that $ac_compile itself does not contain backslashes and begins
15621 # with a dollar sign (not a hyphen), so the echo should work correctly.
15622 # The option is referenced via a variable to avoid confusing sed.
15623 lt_compile=`echo "$ac_compile" | $SED \
15624 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15625 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15626 -e 's:$: $lt_compiler_flag:'`
15627 (eval echo "\"\$as_me:15627: $lt_compile\"" >&5)
15628 (eval "$lt_compile" 2>conftest.err)
15629 ac_status=$?
15630 cat conftest.err >&5
15631 echo "$as_me:15631: \$? = $ac_status" >&5
15632 if (exit $ac_status) && test -s "$ac_outfile"; then
15633 # The compiler can only warn and ignore the option if not recognized
15634 # So say no if there are warnings
15635 if test ! -s conftest.err; then
15636 lt_cv_prog_compiler_rtti_exceptions=yes
15639 $rm conftest*
15642 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15643 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15645 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15646 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15647 else
15653 lt_prog_compiler_wl_GCJ=
15654 lt_prog_compiler_pic_GCJ=
15655 lt_prog_compiler_static_GCJ=
15657 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15658 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15660 if test "$GCC" = yes; then
15661 lt_prog_compiler_wl_GCJ='-Wl,'
15662 lt_prog_compiler_static_GCJ='-static'
15664 case $host_os in
15665 aix*)
15666 # All AIX code is PIC.
15667 if test "$host_cpu" = ia64; then
15668 # AIX 5 now supports IA64 processor
15669 lt_prog_compiler_static_GCJ='-Bstatic'
15673 amigaos*)
15674 # FIXME: we need at least 68020 code to build shared libraries, but
15675 # adding the `-m68020' flag to GCC prevents building anything better,
15676 # like `-m68040'.
15677 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15680 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15681 # PIC is the default for these OSes.
15684 mingw* | pw32* | os2*)
15685 # This hack is so that the source file can tell whether it is being
15686 # built for inclusion in a dll (and should export symbols for example).
15687 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15690 darwin* | rhapsody*)
15691 # PIC is the default on this platform
15692 # Common symbols not allowed in MH_DYLIB files
15693 lt_prog_compiler_pic_GCJ='-fno-common'
15696 msdosdjgpp*)
15697 # Just because we use GCC doesn't mean we suddenly get shared libraries
15698 # on systems that don't support them.
15699 lt_prog_compiler_can_build_shared_GCJ=no
15700 enable_shared=no
15703 sysv4*MP*)
15704 if test -d /usr/nec; then
15705 lt_prog_compiler_pic_GCJ=-Kconform_pic
15709 hpux*)
15710 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15711 # not for PA HP-UX.
15712 case "$host_cpu" in
15713 hppa*64*|ia64*)
15714 # +Z the default
15717 lt_prog_compiler_pic_GCJ='-fPIC'
15719 esac
15723 lt_prog_compiler_pic_GCJ='-fPIC'
15725 esac
15726 else
15727 # PORTME Check for flag to pass linker flags through the system compiler.
15728 case $host_os in
15729 aix*)
15730 lt_prog_compiler_wl_GCJ='-Wl,'
15731 if test "$host_cpu" = ia64; then
15732 # AIX 5 now supports IA64 processor
15733 lt_prog_compiler_static_GCJ='-Bstatic'
15734 else
15735 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15738 darwin*)
15739 # PIC is the default on this platform
15740 # Common symbols not allowed in MH_DYLIB files
15741 case "$cc_basename" in
15742 xlc*)
15743 lt_prog_compiler_pic_GCJ='-qnocommon'
15744 lt_prog_compiler_wl_GCJ='-Wl,'
15746 esac
15749 mingw* | pw32* | os2*)
15750 # This hack is so that the source file can tell whether it is being
15751 # built for inclusion in a dll (and should export symbols for example).
15752 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15755 hpux9* | hpux10* | hpux11*)
15756 lt_prog_compiler_wl_GCJ='-Wl,'
15757 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15758 # not for PA HP-UX.
15759 case "$host_cpu" in
15760 hppa*64*|ia64*)
15761 # +Z the default
15764 lt_prog_compiler_pic_GCJ='+Z'
15766 esac
15767 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15768 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15771 irix5* | irix6* | nonstopux*)
15772 lt_prog_compiler_wl_GCJ='-Wl,'
15773 # PIC (with -KPIC) is the default.
15774 lt_prog_compiler_static_GCJ='-non_shared'
15777 newsos6)
15778 lt_prog_compiler_pic_GCJ='-KPIC'
15779 lt_prog_compiler_static_GCJ='-Bstatic'
15782 linux*)
15783 case $cc_basename in
15784 icc* | ecc*)
15785 lt_prog_compiler_wl_GCJ='-Wl,'
15786 lt_prog_compiler_pic_GCJ='-KPIC'
15787 lt_prog_compiler_static_GCJ='-static'
15789 pgcc | pgf77 | pgf90)
15790 # Portland Group compilers (*not* the Pentium gcc compiler,
15791 # which looks to be a dead project)
15792 lt_prog_compiler_wl_GCJ='-Wl,'
15793 lt_prog_compiler_pic_GCJ='-fpic'
15794 lt_prog_compiler_static_GCJ='-static'
15796 ccc*)
15797 lt_prog_compiler_wl_GCJ='-Wl,'
15798 # All Alpha code is PIC.
15799 lt_prog_compiler_static_GCJ='-non_shared'
15801 como)
15802 lt_prog_compiler_wl_GCJ='-lopt='
15804 esac
15807 osf3* | osf4* | osf5*)
15808 lt_prog_compiler_wl_GCJ='-Wl,'
15809 # All OSF/1 code is PIC.
15810 lt_prog_compiler_static_GCJ='-non_shared'
15813 sco3.2v5*)
15814 lt_prog_compiler_pic_GCJ='-Kpic'
15815 lt_prog_compiler_static_GCJ='-dn'
15818 solaris*)
15819 lt_prog_compiler_wl_GCJ='-Wl,'
15820 lt_prog_compiler_pic_GCJ='-KPIC'
15821 lt_prog_compiler_static_GCJ='-Bstatic'
15824 sunos4*)
15825 lt_prog_compiler_wl_GCJ='-Qoption ld '
15826 lt_prog_compiler_pic_GCJ='-PIC'
15827 lt_prog_compiler_static_GCJ='-Bstatic'
15830 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15831 lt_prog_compiler_wl_GCJ='-Wl,'
15832 lt_prog_compiler_pic_GCJ='-KPIC'
15833 lt_prog_compiler_static_GCJ='-Bstatic'
15836 sysv4*MP*)
15837 if test -d /usr/nec ;then
15838 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15839 lt_prog_compiler_static_GCJ='-Bstatic'
15843 unicos*)
15844 lt_prog_compiler_wl_GCJ='-Wl,'
15845 lt_prog_compiler_can_build_shared_GCJ=no
15848 uts4*)
15849 lt_prog_compiler_pic_GCJ='-pic'
15850 lt_prog_compiler_static_GCJ='-Bstatic'
15854 lt_prog_compiler_can_build_shared_GCJ=no
15856 esac
15859 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15860 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15863 # Check to make sure the PIC flag actually works.
15865 if test -n "$lt_prog_compiler_pic_GCJ"; then
15867 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15868 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15869 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15870 echo $ECHO_N "(cached) $ECHO_C" >&6
15871 else
15872 lt_prog_compiler_pic_works_GCJ=no
15873 ac_outfile=conftest.$ac_objext
15874 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15875 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15876 # Insert the option either (1) after the last *FLAGS variable, or
15877 # (2) before a word containing "conftest.", or (3) at the end.
15878 # Note that $ac_compile itself does not contain backslashes and begins
15879 # with a dollar sign (not a hyphen), so the echo should work correctly.
15880 # The option is referenced via a variable to avoid confusing sed.
15881 lt_compile=`echo "$ac_compile" | $SED \
15882 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15883 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15884 -e 's:$: $lt_compiler_flag:'`
15885 (eval echo "\"\$as_me:15885: $lt_compile\"" >&5)
15886 (eval "$lt_compile" 2>conftest.err)
15887 ac_status=$?
15888 cat conftest.err >&5
15889 echo "$as_me:15889: \$? = $ac_status" >&5
15890 if (exit $ac_status) && test -s "$ac_outfile"; then
15891 # The compiler can only warn and ignore the option if not recognized
15892 # So say no if there are warnings
15893 if test ! -s conftest.err; then
15894 lt_prog_compiler_pic_works_GCJ=yes
15897 $rm conftest*
15900 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15901 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15903 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15904 case $lt_prog_compiler_pic_GCJ in
15905 "" | " "*) ;;
15906 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15907 esac
15908 else
15909 lt_prog_compiler_pic_GCJ=
15910 lt_prog_compiler_can_build_shared_GCJ=no
15914 case "$host_os" in
15915 # For platforms which do not support PIC, -DPIC is meaningless:
15916 *djgpp*)
15917 lt_prog_compiler_pic_GCJ=
15920 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15922 esac
15924 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15925 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15926 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15927 echo $ECHO_N "(cached) $ECHO_C" >&6
15928 else
15929 lt_cv_prog_compiler_c_o_GCJ=no
15930 $rm -r conftest 2>/dev/null
15931 mkdir conftest
15932 cd conftest
15933 mkdir out
15934 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15936 lt_compiler_flag="-o out/conftest2.$ac_objext"
15937 # Insert the option either (1) after the last *FLAGS variable, or
15938 # (2) before a word containing "conftest.", or (3) at the end.
15939 # Note that $ac_compile itself does not contain backslashes and begins
15940 # with a dollar sign (not a hyphen), so the echo should work correctly.
15941 lt_compile=`echo "$ac_compile" | $SED \
15942 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15943 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15944 -e 's:$: $lt_compiler_flag:'`
15945 (eval echo "\"\$as_me:15945: $lt_compile\"" >&5)
15946 (eval "$lt_compile" 2>out/conftest.err)
15947 ac_status=$?
15948 cat out/conftest.err >&5
15949 echo "$as_me:15949: \$? = $ac_status" >&5
15950 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15951 then
15952 # The compiler can only warn and ignore the option if not recognized
15953 # So say no if there are warnings
15954 if test ! -s out/conftest.err; then
15955 lt_cv_prog_compiler_c_o_GCJ=yes
15958 chmod u+w .
15959 $rm conftest*
15960 # SGI C++ compiler will create directory out/ii_files/ for
15961 # template instantiation
15962 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15963 $rm out/* && rmdir out
15964 cd ..
15965 rmdir conftest
15966 $rm conftest*
15969 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15970 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15973 hard_links="nottested"
15974 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15975 # do not overwrite the value of need_locks provided by the user
15976 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15977 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15978 hard_links=yes
15979 $rm conftest*
15980 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15981 touch conftest.a
15982 ln conftest.a conftest.b 2>&5 || hard_links=no
15983 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15984 echo "$as_me:$LINENO: result: $hard_links" >&5
15985 echo "${ECHO_T}$hard_links" >&6
15986 if test "$hard_links" = no; then
15987 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15988 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15989 need_locks=warn
15991 else
15992 need_locks=no
15995 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15996 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15998 runpath_var=
15999 allow_undefined_flag_GCJ=
16000 enable_shared_with_static_runtimes_GCJ=no
16001 archive_cmds_GCJ=
16002 archive_expsym_cmds_GCJ=
16003 old_archive_From_new_cmds_GCJ=
16004 old_archive_from_expsyms_cmds_GCJ=
16005 export_dynamic_flag_spec_GCJ=
16006 whole_archive_flag_spec_GCJ=
16007 thread_safe_flag_spec_GCJ=
16008 hardcode_libdir_flag_spec_GCJ=
16009 hardcode_libdir_flag_spec_ld_GCJ=
16010 hardcode_libdir_separator_GCJ=
16011 hardcode_direct_GCJ=no
16012 hardcode_minus_L_GCJ=no
16013 hardcode_shlibpath_var_GCJ=unsupported
16014 link_all_deplibs_GCJ=unknown
16015 hardcode_automatic_GCJ=no
16016 module_cmds_GCJ=
16017 module_expsym_cmds_GCJ=
16018 always_export_symbols_GCJ=no
16019 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16020 # include_expsyms should be a list of space-separated symbols to be *always*
16021 # included in the symbol list
16022 include_expsyms_GCJ=
16023 # exclude_expsyms can be an extended regexp of symbols to exclude
16024 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16025 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16026 # as well as any symbol that contains `d'.
16027 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16028 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16029 # platforms (ab)use it in PIC code, but their linkers get confused if
16030 # the symbol is explicitly referenced. Since portable code cannot
16031 # rely on this symbol name, it's probably fine to never include it in
16032 # preloaded symbol tables.
16033 extract_expsyms_cmds=
16035 case $host_os in
16036 cygwin* | mingw* | pw32*)
16037 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16038 # When not using gcc, we currently assume that we are using
16039 # Microsoft Visual C++.
16040 if test "$GCC" != yes; then
16041 with_gnu_ld=no
16044 openbsd*)
16045 with_gnu_ld=no
16047 esac
16049 ld_shlibs_GCJ=yes
16050 if test "$with_gnu_ld" = yes; then
16051 # If archive_cmds runs LD, not CC, wlarc should be empty
16052 wlarc='${wl}'
16054 # See if GNU ld supports shared libraries.
16055 case $host_os in
16056 aix3* | aix4* | aix5*)
16057 # On AIX/PPC, the GNU linker is very broken
16058 if test "$host_cpu" != ia64; then
16059 ld_shlibs_GCJ=no
16060 cat <<EOF 1>&2
16062 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16063 *** to be unable to reliably create shared libraries on AIX.
16064 *** Therefore, libtool is disabling shared libraries support. If you
16065 *** really care for shared libraries, you may want to modify your PATH
16066 *** so that a non-GNU linker is found, and then restart.
16072 amigaos*)
16073 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)'
16074 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16075 hardcode_minus_L_GCJ=yes
16077 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16078 # that the semantics of dynamic libraries on AmigaOS, at least up
16079 # to version 4, is to share data among multiple programs linked
16080 # with the same dynamic library. Since this doesn't match the
16081 # behavior of shared libraries on other platforms, we can't use
16082 # them.
16083 ld_shlibs_GCJ=no
16086 beos*)
16087 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16088 allow_undefined_flag_GCJ=unsupported
16089 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16090 # support --undefined. This deserves some investigation. FIXME
16091 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16092 else
16093 ld_shlibs_GCJ=no
16097 cygwin* | mingw* | pw32*)
16098 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16099 # as there is no search path for DLLs.
16100 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16101 allow_undefined_flag_GCJ=unsupported
16102 always_export_symbols_GCJ=no
16103 enable_shared_with_static_runtimes_GCJ=yes
16104 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16106 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16107 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16108 # If the export-symbols file already is a .def file (1st line
16109 # is EXPORTS), use it as is; otherwise, prepend...
16110 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16111 cp $export_symbols $output_objdir/$soname.def;
16112 else
16113 echo EXPORTS > $output_objdir/$soname.def;
16114 cat $export_symbols >> $output_objdir/$soname.def;
16116 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16117 else
16118 ld_shlibs_GCJ=no
16122 netbsd*)
16123 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16124 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16125 wlarc=
16126 else
16127 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16128 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16132 solaris* | sysv5*)
16133 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16134 ld_shlibs_GCJ=no
16135 cat <<EOF 1>&2
16137 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16138 *** create shared libraries on Solaris systems. Therefore, libtool
16139 *** is disabling shared libraries support. We urge you to upgrade GNU
16140 *** binutils to release 2.9.1 or newer. Another option is to modify
16141 *** your PATH or compiler configuration so that the native linker is
16142 *** used, and then restart.
16145 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16146 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16147 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16148 else
16149 ld_shlibs_GCJ=no
16153 sunos4*)
16154 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16155 wlarc=
16156 hardcode_direct_GCJ=yes
16157 hardcode_shlibpath_var_GCJ=no
16160 linux*)
16161 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16162 tmp_addflag=
16163 case $CC,$host_cpu in
16164 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
16165 tmp_addflag=' -fpic' ;;
16166 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16167 tmp_addflag=' -i_dynamic' ;;
16168 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16169 tmp_addflag=' -i_dynamic -nofor_main' ;;
16170 ifc* | ifort*) # Intel Fortran compiler
16171 tmp_addflag=' -nofor_main' ;;
16172 esac
16173 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16174 supports_anon_versioning=no
16175 case `$LD -v 2>/dev/null` in
16176 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16177 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16178 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16179 *\ 2.11.*) ;; # other 2.11 versions
16180 *) supports_anon_versioning=yes ;;
16181 esac
16182 if test $supports_anon_versioning = yes; then
16183 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16184 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16185 $echo "local: *; };" >> $output_objdir/$libname.ver~
16186 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16187 else
16188 archive_expsym_cmds_GCJ=$archive_cmds_GCJ
16190 else
16191 ld_shlibs_GCJ=no
16196 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16197 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16198 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16199 else
16200 ld_shlibs_GCJ=no
16203 esac
16205 if test "$ld_shlibs_GCJ" = yes; then
16206 runpath_var=LD_RUN_PATH
16207 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16208 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16209 # ancient GNU ld didn't support --whole-archive et. al.
16210 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16211 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16212 else
16213 whole_archive_flag_spec_GCJ=
16216 else
16217 # PORTME fill in a description of your system's linker (not GNU ld)
16218 case $host_os in
16219 aix3*)
16220 allow_undefined_flag_GCJ=unsupported
16221 always_export_symbols_GCJ=yes
16222 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'
16223 # Note: this linker hardcodes the directories in LIBPATH if there
16224 # are no directories specified by -L.
16225 hardcode_minus_L_GCJ=yes
16226 if test "$GCC" = yes && test -z "$link_static_flag"; then
16227 # Neither direct hardcoding nor static linking is supported with a
16228 # broken collect2.
16229 hardcode_direct_GCJ=unsupported
16233 aix4* | aix5*)
16234 if test "$host_cpu" = ia64; then
16235 # On IA64, the linker does run time linking by default, so we don't
16236 # have to do anything special.
16237 aix_use_runtimelinking=no
16238 exp_sym_flag='-Bexport'
16239 no_entry_flag=""
16240 else
16241 # If we're using GNU nm, then we don't want the "-C" option.
16242 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16243 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16244 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'
16245 else
16246 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'
16248 aix_use_runtimelinking=no
16250 # Test if we are trying to use run time linking or normal
16251 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16252 # need to do runtime linking.
16253 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16254 for ld_flag in $LDFLAGS; do
16255 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16256 aix_use_runtimelinking=yes
16257 break
16259 done
16260 esac
16262 exp_sym_flag='-bexport'
16263 no_entry_flag='-bnoentry'
16266 # When large executables or shared objects are built, AIX ld can
16267 # have problems creating the table of contents. If linking a library
16268 # or program results in "error TOC overflow" add -mminimal-toc to
16269 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16270 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16272 archive_cmds_GCJ=''
16273 hardcode_direct_GCJ=yes
16274 hardcode_libdir_separator_GCJ=':'
16275 link_all_deplibs_GCJ=yes
16277 if test "$GCC" = yes; then
16278 case $host_os in aix4.[012]|aix4.[012].*)
16279 # We only want to do this on AIX 4.2 and lower, the check
16280 # below for broken collect2 doesn't work under 4.3+
16281 collect2name=`${CC} -print-prog-name=collect2`
16282 if test -f "$collect2name" && \
16283 strings "$collect2name" | grep resolve_lib_name >/dev/null
16284 then
16285 # We have reworked collect2
16286 hardcode_direct_GCJ=yes
16287 else
16288 # We have old collect2
16289 hardcode_direct_GCJ=unsupported
16290 # It fails to find uninstalled libraries when the uninstalled
16291 # path is not listed in the libpath. Setting hardcode_minus_L
16292 # to unsupported forces relinking
16293 hardcode_minus_L_GCJ=yes
16294 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16295 hardcode_libdir_separator_GCJ=
16297 esac
16298 shared_flag='-shared'
16299 if test "$aix_use_runtimelinking" = yes; then
16300 shared_flag="$shared_flag "'${wl}-G'
16302 else
16303 # not using gcc
16304 if test "$host_cpu" = ia64; then
16305 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16306 # chokes on -Wl,-G. The following line is correct:
16307 shared_flag='-G'
16308 else
16309 if test "$aix_use_runtimelinking" = yes; then
16310 shared_flag='${wl}-G'
16311 else
16312 shared_flag='${wl}-bM:SRE'
16317 # It seems that -bexpall does not export symbols beginning with
16318 # underscore (_), so it is better to generate a list of symbols to export.
16319 always_export_symbols_GCJ=yes
16320 if test "$aix_use_runtimelinking" = yes; then
16321 # Warning - without using the other runtime loading flags (-brtl),
16322 # -berok will link without error, but may produce a broken library.
16323 allow_undefined_flag_GCJ='-berok'
16324 # Determine the default libpath from the value encoded in an empty executable.
16325 cat >conftest.$ac_ext <<_ACEOF
16326 /* confdefs.h. */
16327 _ACEOF
16328 cat confdefs.h >>conftest.$ac_ext
16329 cat >>conftest.$ac_ext <<_ACEOF
16330 /* end confdefs.h. */
16333 main ()
16337 return 0;
16339 _ACEOF
16340 rm -f conftest.$ac_objext conftest$ac_exeext
16341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16342 (eval $ac_link) 2>conftest.er1
16343 ac_status=$?
16344 grep -v '^ *+' conftest.er1 >conftest.err
16345 rm -f conftest.er1
16346 cat conftest.err >&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); } &&
16349 { ac_try='test -z "$ac_c_werror_flag"
16350 || test ! -s conftest.err'
16351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16352 (eval $ac_try) 2>&5
16353 ac_status=$?
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); }; } &&
16356 { ac_try='test -s conftest$ac_exeext'
16357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16358 (eval $ac_try) 2>&5
16359 ac_status=$?
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); }; }; then
16363 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16365 # Check for a 64-bit object if we didn't find anything.
16366 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; }
16367 }'`; fi
16368 else
16369 echo "$as_me: failed program was:" >&5
16370 sed 's/^/| /' conftest.$ac_ext >&5
16373 rm -f conftest.err conftest.$ac_objext \
16374 conftest$ac_exeext conftest.$ac_ext
16375 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16377 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16378 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"
16379 else
16380 if test "$host_cpu" = ia64; then
16381 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16382 allow_undefined_flag_GCJ="-z nodefs"
16383 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"
16384 else
16385 # Determine the default libpath from the value encoded in an empty executable.
16386 cat >conftest.$ac_ext <<_ACEOF
16387 /* confdefs.h. */
16388 _ACEOF
16389 cat confdefs.h >>conftest.$ac_ext
16390 cat >>conftest.$ac_ext <<_ACEOF
16391 /* end confdefs.h. */
16394 main ()
16398 return 0;
16400 _ACEOF
16401 rm -f conftest.$ac_objext conftest$ac_exeext
16402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16403 (eval $ac_link) 2>conftest.er1
16404 ac_status=$?
16405 grep -v '^ *+' conftest.er1 >conftest.err
16406 rm -f conftest.er1
16407 cat conftest.err >&5
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); } &&
16410 { ac_try='test -z "$ac_c_werror_flag"
16411 || test ! -s conftest.err'
16412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16413 (eval $ac_try) 2>&5
16414 ac_status=$?
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); }; } &&
16417 { ac_try='test -s conftest$ac_exeext'
16418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16419 (eval $ac_try) 2>&5
16420 ac_status=$?
16421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); }; }; then
16424 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16426 # Check for a 64-bit object if we didn't find anything.
16427 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; }
16428 }'`; fi
16429 else
16430 echo "$as_me: failed program was:" >&5
16431 sed 's/^/| /' conftest.$ac_ext >&5
16434 rm -f conftest.err conftest.$ac_objext \
16435 conftest$ac_exeext conftest.$ac_ext
16436 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16438 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16439 # Warning - without using the other run time loading flags,
16440 # -berok will link without error, but may produce a broken library.
16441 no_undefined_flag_GCJ=' ${wl}-bernotok'
16442 allow_undefined_flag_GCJ=' ${wl}-berok'
16443 # -bexpall does not export symbols beginning with underscore (_)
16444 always_export_symbols_GCJ=yes
16445 # Exported symbols can be pulled into shared objects from archives
16446 whole_archive_flag_spec_GCJ=' '
16447 archive_cmds_need_lc_GCJ=yes
16448 # This is similar to how AIX traditionally builds it's shared libraries.
16449 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'
16454 amigaos*)
16455 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)'
16456 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16457 hardcode_minus_L_GCJ=yes
16458 # see comment about different semantics on the GNU ld section
16459 ld_shlibs_GCJ=no
16462 bsdi[45]*)
16463 export_dynamic_flag_spec_GCJ=-rdynamic
16466 cygwin* | mingw* | pw32*)
16467 # When not using gcc, we currently assume that we are using
16468 # Microsoft Visual C++.
16469 # hardcode_libdir_flag_spec is actually meaningless, as there is
16470 # no search path for DLLs.
16471 hardcode_libdir_flag_spec_GCJ=' '
16472 allow_undefined_flag_GCJ=unsupported
16473 # Tell ltmain to make .lib files, not .a files.
16474 libext=lib
16475 # Tell ltmain to make .dll files, not .so files.
16476 shrext_cmds=".dll"
16477 # FIXME: Setting linknames here is a bad hack.
16478 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16479 # The linker will automatically build a .lib file if we build a DLL.
16480 old_archive_From_new_cmds_GCJ='true'
16481 # FIXME: Should let the user specify the lib program.
16482 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16483 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16484 enable_shared_with_static_runtimes_GCJ=yes
16487 darwin* | rhapsody*)
16488 case "$host_os" in
16489 rhapsody* | darwin1.[012])
16490 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16492 *) # Darwin 1.3 on
16493 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16494 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16495 else
16496 case ${MACOSX_DEPLOYMENT_TARGET} in
16497 10.[012])
16498 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16500 10.*)
16501 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16503 esac
16506 esac
16507 archive_cmds_need_lc_GCJ=no
16508 hardcode_direct_GCJ=no
16509 hardcode_automatic_GCJ=yes
16510 hardcode_shlibpath_var_GCJ=unsupported
16511 whole_archive_flag_spec_GCJ=''
16512 link_all_deplibs_GCJ=yes
16513 if test "$GCC" = yes ; then
16514 output_verbose_link_cmd='echo'
16515 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16516 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16517 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16518 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}'
16519 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}'
16520 else
16521 case "$cc_basename" in
16522 xlc*)
16523 output_verbose_link_cmd='echo'
16524 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16525 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16526 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16527 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}'
16528 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}'
16531 ld_shlibs_GCJ=no
16533 esac
16537 dgux*)
16538 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16539 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16540 hardcode_shlibpath_var_GCJ=no
16543 freebsd1*)
16544 ld_shlibs_GCJ=no
16547 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16548 # support. Future versions do this automatically, but an explicit c++rt0.o
16549 # does not break anything, and helps significantly (at the cost of a little
16550 # extra space).
16551 freebsd2.2*)
16552 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16553 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16554 hardcode_direct_GCJ=yes
16555 hardcode_shlibpath_var_GCJ=no
16558 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16559 freebsd2*)
16560 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16561 hardcode_direct_GCJ=yes
16562 hardcode_minus_L_GCJ=yes
16563 hardcode_shlibpath_var_GCJ=no
16566 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16567 freebsd* | kfreebsd*-gnu | dragonfly*)
16568 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16569 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16570 hardcode_direct_GCJ=yes
16571 hardcode_shlibpath_var_GCJ=no
16574 hpux9*)
16575 if test "$GCC" = yes; then
16576 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'
16577 else
16578 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'
16580 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16581 hardcode_libdir_separator_GCJ=:
16582 hardcode_direct_GCJ=yes
16584 # hardcode_minus_L: Not really in the search PATH,
16585 # but as the default location of the library.
16586 hardcode_minus_L_GCJ=yes
16587 export_dynamic_flag_spec_GCJ='${wl}-E'
16590 hpux10* | hpux11*)
16591 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16592 case "$host_cpu" in
16593 hppa*64*|ia64*)
16594 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16597 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16599 esac
16600 else
16601 case "$host_cpu" in
16602 hppa*64*|ia64*)
16603 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16606 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16608 esac
16610 if test "$with_gnu_ld" = no; then
16611 case "$host_cpu" in
16612 hppa*64*)
16613 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16614 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16615 hardcode_libdir_separator_GCJ=:
16616 hardcode_direct_GCJ=no
16617 hardcode_shlibpath_var_GCJ=no
16619 ia64*)
16620 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16621 hardcode_direct_GCJ=no
16622 hardcode_shlibpath_var_GCJ=no
16624 # hardcode_minus_L: Not really in the search PATH,
16625 # but as the default location of the library.
16626 hardcode_minus_L_GCJ=yes
16629 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16630 hardcode_libdir_separator_GCJ=:
16631 hardcode_direct_GCJ=yes
16632 export_dynamic_flag_spec_GCJ='${wl}-E'
16634 # hardcode_minus_L: Not really in the search PATH,
16635 # but as the default location of the library.
16636 hardcode_minus_L_GCJ=yes
16638 esac
16642 irix5* | irix6* | nonstopux*)
16643 if test "$GCC" = yes; then
16644 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'
16645 else
16646 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'
16647 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16649 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16650 hardcode_libdir_separator_GCJ=:
16651 link_all_deplibs_GCJ=yes
16654 netbsd*)
16655 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16656 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16657 else
16658 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16660 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16661 hardcode_direct_GCJ=yes
16662 hardcode_shlibpath_var_GCJ=no
16665 newsos6)
16666 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16667 hardcode_direct_GCJ=yes
16668 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16669 hardcode_libdir_separator_GCJ=:
16670 hardcode_shlibpath_var_GCJ=no
16673 openbsd*)
16674 hardcode_direct_GCJ=yes
16675 hardcode_shlibpath_var_GCJ=no
16676 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16677 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16678 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16679 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16680 export_dynamic_flag_spec_GCJ='${wl}-E'
16681 else
16682 case $host_os in
16683 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16684 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16685 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16688 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16689 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16691 esac
16695 os2*)
16696 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16697 hardcode_minus_L_GCJ=yes
16698 allow_undefined_flag_GCJ=unsupported
16699 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'
16700 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16703 osf3*)
16704 if test "$GCC" = yes; then
16705 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16706 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'
16707 else
16708 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16709 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'
16711 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16712 hardcode_libdir_separator_GCJ=:
16715 osf4* | osf5*) # as osf3* with the addition of -msym flag
16716 if test "$GCC" = yes; then
16717 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16718 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'
16719 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16720 else
16721 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16722 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'
16723 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~
16724 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16726 # Both c and cxx compiler support -rpath directly
16727 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16729 hardcode_libdir_separator_GCJ=:
16732 sco3.2v5*)
16733 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16734 hardcode_shlibpath_var_GCJ=no
16735 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16736 runpath_var=LD_RUN_PATH
16737 hardcode_runpath_var=yes
16740 solaris*)
16741 no_undefined_flag_GCJ=' -z text'
16742 if test "$GCC" = yes; then
16743 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16744 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16745 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16746 else
16747 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16748 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16749 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16751 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16752 hardcode_shlibpath_var_GCJ=no
16753 case $host_os in
16754 solaris2.[0-5] | solaris2.[0-5].*) ;;
16755 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16756 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
16757 esac
16758 link_all_deplibs_GCJ=yes
16761 sunos4*)
16762 if test "x$host_vendor" = xsequent; then
16763 # Use $CC to link under sequent, because it throws in some extra .o
16764 # files that make .init and .fini sections work.
16765 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16766 else
16767 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16769 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16770 hardcode_direct_GCJ=yes
16771 hardcode_minus_L_GCJ=yes
16772 hardcode_shlibpath_var_GCJ=no
16775 sysv4)
16776 case $host_vendor in
16777 sni)
16778 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16779 hardcode_direct_GCJ=yes # is this really true???
16781 siemens)
16782 ## LD is ld it makes a PLAMLIB
16783 ## CC just makes a GrossModule.
16784 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16785 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16786 hardcode_direct_GCJ=no
16788 motorola)
16789 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16790 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16792 esac
16793 runpath_var='LD_RUN_PATH'
16794 hardcode_shlibpath_var_GCJ=no
16797 sysv4.3*)
16798 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16799 hardcode_shlibpath_var_GCJ=no
16800 export_dynamic_flag_spec_GCJ='-Bexport'
16803 sysv4*MP*)
16804 if test -d /usr/nec; then
16805 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16806 hardcode_shlibpath_var_GCJ=no
16807 runpath_var=LD_RUN_PATH
16808 hardcode_runpath_var=yes
16809 ld_shlibs_GCJ=yes
16813 sysv4.2uw2*)
16814 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16815 hardcode_direct_GCJ=yes
16816 hardcode_minus_L_GCJ=no
16817 hardcode_shlibpath_var_GCJ=no
16818 hardcode_runpath_var=yes
16819 runpath_var=LD_RUN_PATH
16822 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16823 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16824 if test "$GCC" = yes; then
16825 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16826 else
16827 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16829 runpath_var='LD_RUN_PATH'
16830 hardcode_shlibpath_var_GCJ=no
16833 sysv5*)
16834 no_undefined_flag_GCJ=' -z text'
16835 # $CC -shared without GNU ld will not create a library from C++
16836 # object files and a static libstdc++, better avoid it by now
16837 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16838 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16839 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16840 hardcode_libdir_flag_spec_GCJ=
16841 hardcode_shlibpath_var_GCJ=no
16842 runpath_var='LD_RUN_PATH'
16845 uts4*)
16846 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16847 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16848 hardcode_shlibpath_var_GCJ=no
16852 ld_shlibs_GCJ=no
16854 esac
16857 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16858 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16859 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16861 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16862 if test "$GCC" = yes; then
16863 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16867 # Do we need to explicitly link libc?
16869 case "x$archive_cmds_need_lc_GCJ" in
16870 x|xyes)
16871 # Assume -lc should be added
16872 archive_cmds_need_lc_GCJ=yes
16874 if test "$enable_shared" = yes && test "$GCC" = yes; then
16875 case $archive_cmds_GCJ in
16876 *'~'*)
16877 # FIXME: we may have to deal with multi-command sequences.
16879 '$CC '*)
16880 # Test whether the compiler implicitly links with -lc since on some
16881 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16882 # to ld, don't add -lc before -lgcc.
16883 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16884 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16885 $rm conftest*
16886 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16889 (eval $ac_compile) 2>&5
16890 ac_status=$?
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); } 2>conftest.err; then
16893 soname=conftest
16894 lib=conftest
16895 libobjs=conftest.$ac_objext
16896 deplibs=
16897 wl=$lt_prog_compiler_wl_GCJ
16898 compiler_flags=-v
16899 linker_flags=-v
16900 verstring=
16901 output_objdir=.
16902 libname=conftest
16903 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16904 allow_undefined_flag_GCJ=
16905 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16906 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16907 ac_status=$?
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); }
16910 then
16911 archive_cmds_need_lc_GCJ=no
16912 else
16913 archive_cmds_need_lc_GCJ=yes
16915 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16916 else
16917 cat conftest.err 1>&5
16919 $rm conftest*
16920 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16921 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16923 esac
16926 esac
16928 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16929 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16930 library_names_spec=
16931 libname_spec='lib$name'
16932 soname_spec=
16933 shrext_cmds=".so"
16934 postinstall_cmds=
16935 postuninstall_cmds=
16936 finish_cmds=
16937 finish_eval=
16938 shlibpath_var=
16939 shlibpath_overrides_runpath=unknown
16940 version_type=none
16941 dynamic_linker="$host_os ld.so"
16942 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16943 if test "$GCC" = yes; then
16944 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16945 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16946 # if the path contains ";" then we assume it to be the separator
16947 # otherwise default to the standard path separator (i.e. ":") - it is
16948 # assumed that no part of a normal pathname contains ";" but that should
16949 # okay in the real world where ";" in dirpaths is itself problematic.
16950 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16951 else
16952 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16954 else
16955 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16957 need_lib_prefix=unknown
16958 hardcode_into_libs=no
16960 # when you set need_version to no, make sure it does not cause -set_version
16961 # flags to be left without arguments
16962 need_version=unknown
16964 case $host_os in
16965 aix3*)
16966 version_type=linux
16967 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16968 shlibpath_var=LIBPATH
16970 # AIX 3 has no versioning support, so we append a major version to the name.
16971 soname_spec='${libname}${release}${shared_ext}$major'
16974 aix4* | aix5*)
16975 version_type=linux
16976 need_lib_prefix=no
16977 need_version=no
16978 hardcode_into_libs=yes
16979 if test "$host_cpu" = ia64; then
16980 # AIX 5 supports IA64
16981 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16982 shlibpath_var=LD_LIBRARY_PATH
16983 else
16984 # With GCC up to 2.95.x, collect2 would create an import file
16985 # for dependence libraries. The import file would start with
16986 # the line `#! .'. This would cause the generated library to
16987 # depend on `.', always an invalid library. This was fixed in
16988 # development snapshots of GCC prior to 3.0.
16989 case $host_os in
16990 aix4 | aix4.[01] | aix4.[01].*)
16991 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16992 echo ' yes '
16993 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16995 else
16996 can_build_shared=no
16999 esac
17000 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17001 # soname into executable. Probably we can add versioning support to
17002 # collect2, so additional links can be useful in future.
17003 if test "$aix_use_runtimelinking" = yes; then
17004 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17005 # instead of lib<name>.a to let people know that these are not
17006 # typical AIX shared libraries.
17007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17008 else
17009 # We preserve .a as extension for shared libraries through AIX4.2
17010 # and later when we are not doing run time linking.
17011 library_names_spec='${libname}${release}.a $libname.a'
17012 soname_spec='${libname}${release}${shared_ext}$major'
17014 shlibpath_var=LIBPATH
17018 amigaos*)
17019 library_names_spec='$libname.ixlibrary $libname.a'
17020 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17021 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'
17024 beos*)
17025 library_names_spec='${libname}${shared_ext}'
17026 dynamic_linker="$host_os ld.so"
17027 shlibpath_var=LIBRARY_PATH
17030 bsdi[45]*)
17031 version_type=linux
17032 need_version=no
17033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17034 soname_spec='${libname}${release}${shared_ext}$major'
17035 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17036 shlibpath_var=LD_LIBRARY_PATH
17037 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17038 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17039 # the default ld.so.conf also contains /usr/contrib/lib and
17040 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17041 # libtool to hard-code these into programs
17044 cygwin* | mingw* | pw32*)
17045 version_type=windows
17046 shrext_cmds=".dll"
17047 need_version=no
17048 need_lib_prefix=no
17050 case $GCC,$host_os in
17051 yes,cygwin* | yes,mingw* | yes,pw32*)
17052 library_names_spec='$libname.dll.a'
17053 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17054 postinstall_cmds='base_file=`basename \${file}`~
17055 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17056 dldir=$destdir/`dirname \$dlpath`~
17057 test -d \$dldir || mkdir -p \$dldir~
17058 $install_prog $dir/$dlname \$dldir/$dlname'
17059 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17060 dlpath=$dir/\$dldll~
17061 $rm \$dlpath'
17062 shlibpath_overrides_runpath=yes
17064 case $host_os in
17065 cygwin*)
17066 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17067 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17068 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17070 mingw*)
17071 # MinGW DLLs use traditional 'lib' prefix
17072 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17073 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17074 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17075 # It is most probably a Windows format PATH printed by
17076 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17077 # path with ; separators, and with drive letters. We can handle the
17078 # drive letters (cygwin fileutils understands them), so leave them,
17079 # especially as we might pass files found there to a mingw objdump,
17080 # which wouldn't understand a cygwinified path. Ahh.
17081 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17082 else
17083 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17086 pw32*)
17087 # pw32 DLLs use 'pw' prefix rather than 'lib'
17088 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17090 esac
17094 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17096 esac
17097 dynamic_linker='Win32 ld.exe'
17098 # FIXME: first we should search . and the directory the executable is in
17099 shlibpath_var=PATH
17102 darwin* | rhapsody*)
17103 dynamic_linker="$host_os dyld"
17104 version_type=darwin
17105 need_lib_prefix=no
17106 need_version=no
17107 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17108 soname_spec='${libname}${release}${major}$shared_ext'
17109 shlibpath_overrides_runpath=yes
17110 shlibpath_var=DYLD_LIBRARY_PATH
17111 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17112 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17113 if test "$GCC" = yes; then
17114 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"`
17115 else
17116 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17118 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17121 dgux*)
17122 version_type=linux
17123 need_lib_prefix=no
17124 need_version=no
17125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17126 soname_spec='${libname}${release}${shared_ext}$major'
17127 shlibpath_var=LD_LIBRARY_PATH
17130 freebsd1*)
17131 dynamic_linker=no
17134 kfreebsd*-gnu)
17135 version_type=linux
17136 need_lib_prefix=no
17137 need_version=no
17138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17139 soname_spec='${libname}${release}${shared_ext}$major'
17140 shlibpath_var=LD_LIBRARY_PATH
17141 shlibpath_overrides_runpath=no
17142 hardcode_into_libs=yes
17143 dynamic_linker='GNU ld.so'
17146 freebsd* | dragonfly*)
17147 # DragonFly does not have aout. When/if they implement a new
17148 # versioning mechanism, adjust this.
17149 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17150 version_type=freebsd-$objformat
17151 case $version_type in
17152 freebsd-elf*)
17153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17154 need_version=no
17155 need_lib_prefix=no
17157 freebsd-*)
17158 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17159 need_version=yes
17161 esac
17162 shlibpath_var=LD_LIBRARY_PATH
17163 case $host_os in
17164 freebsd2*)
17165 shlibpath_overrides_runpath=yes
17167 freebsd3.[01]* | freebsdelf3.[01]*)
17168 shlibpath_overrides_runpath=yes
17169 hardcode_into_libs=yes
17171 *) # from 3.2 on
17172 shlibpath_overrides_runpath=no
17173 hardcode_into_libs=yes
17175 esac
17178 gnu*)
17179 version_type=linux
17180 need_lib_prefix=no
17181 need_version=no
17182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17183 soname_spec='${libname}${release}${shared_ext}$major'
17184 shlibpath_var=LD_LIBRARY_PATH
17185 hardcode_into_libs=yes
17188 hpux9* | hpux10* | hpux11*)
17189 # Give a soname corresponding to the major version so that dld.sl refuses to
17190 # link against other versions.
17191 version_type=sunos
17192 need_lib_prefix=no
17193 need_version=no
17194 case "$host_cpu" in
17195 ia64*)
17196 shrext_cmds='.so'
17197 hardcode_into_libs=yes
17198 dynamic_linker="$host_os dld.so"
17199 shlibpath_var=LD_LIBRARY_PATH
17200 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17202 soname_spec='${libname}${release}${shared_ext}$major'
17203 if test "X$HPUX_IA64_MODE" = X32; then
17204 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17205 else
17206 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17208 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17210 hppa*64*)
17211 shrext_cmds='.sl'
17212 hardcode_into_libs=yes
17213 dynamic_linker="$host_os dld.sl"
17214 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17215 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17217 soname_spec='${libname}${release}${shared_ext}$major'
17218 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17219 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17222 shrext_cmds='.sl'
17223 dynamic_linker="$host_os dld.sl"
17224 shlibpath_var=SHLIB_PATH
17225 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17227 soname_spec='${libname}${release}${shared_ext}$major'
17229 esac
17230 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17231 postinstall_cmds='chmod 555 $lib'
17234 irix5* | irix6* | nonstopux*)
17235 case $host_os in
17236 nonstopux*) version_type=nonstopux ;;
17238 if test "$lt_cv_prog_gnu_ld" = yes; then
17239 version_type=linux
17240 else
17241 version_type=irix
17242 fi ;;
17243 esac
17244 need_lib_prefix=no
17245 need_version=no
17246 soname_spec='${libname}${release}${shared_ext}$major'
17247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17248 case $host_os in
17249 irix5* | nonstopux*)
17250 libsuff= shlibsuff=
17253 case $LD in # libtool.m4 will add one of these switches to LD
17254 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17255 libsuff= shlibsuff= libmagic=32-bit;;
17256 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17257 libsuff=32 shlibsuff=N32 libmagic=N32;;
17258 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17259 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17260 *) libsuff= shlibsuff= libmagic=never-match;;
17261 esac
17263 esac
17264 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17265 shlibpath_overrides_runpath=no
17266 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17267 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17268 hardcode_into_libs=yes
17271 # No shared lib support for Linux oldld, aout, or coff.
17272 linux*oldld* | linux*aout* | linux*coff*)
17273 dynamic_linker=no
17276 # This must be Linux ELF.
17277 linux*)
17278 version_type=linux
17279 need_lib_prefix=no
17280 need_version=no
17281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17282 soname_spec='${libname}${release}${shared_ext}$major'
17283 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17284 shlibpath_var=LD_LIBRARY_PATH
17285 shlibpath_overrides_runpath=no
17286 # This implies no fast_install, which is unacceptable.
17287 # Some rework will be needed to allow for fast_install
17288 # before this can be enabled.
17289 hardcode_into_libs=yes
17291 # Append ld.so.conf contents to the search path
17292 if test -f /etc/ld.so.conf; then
17293 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' ' '`
17294 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17297 # We used to test for /lib/ld.so.1 and disable shared libraries on
17298 # powerpc, because MkLinux only supported shared libraries with the
17299 # GNU dynamic linker. Since this was broken with cross compilers,
17300 # most powerpc-linux boxes support dynamic linking these days and
17301 # people can always --disable-shared, the test was removed, and we
17302 # assume the GNU/Linux dynamic linker is in use.
17303 dynamic_linker='GNU/Linux ld.so'
17306 knetbsd*-gnu)
17307 version_type=linux
17308 need_lib_prefix=no
17309 need_version=no
17310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17311 soname_spec='${libname}${release}${shared_ext}$major'
17312 shlibpath_var=LD_LIBRARY_PATH
17313 shlibpath_overrides_runpath=no
17314 hardcode_into_libs=yes
17315 dynamic_linker='GNU ld.so'
17318 netbsd*)
17319 version_type=sunos
17320 need_lib_prefix=no
17321 need_version=no
17322 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17324 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17325 dynamic_linker='NetBSD (a.out) ld.so'
17326 else
17327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17328 soname_spec='${libname}${release}${shared_ext}$major'
17329 dynamic_linker='NetBSD ld.elf_so'
17331 shlibpath_var=LD_LIBRARY_PATH
17332 shlibpath_overrides_runpath=yes
17333 hardcode_into_libs=yes
17336 newsos6)
17337 version_type=linux
17338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17339 shlibpath_var=LD_LIBRARY_PATH
17340 shlibpath_overrides_runpath=yes
17343 nto-qnx*)
17344 version_type=linux
17345 need_lib_prefix=no
17346 need_version=no
17347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17348 soname_spec='${libname}${release}${shared_ext}$major'
17349 shlibpath_var=LD_LIBRARY_PATH
17350 shlibpath_overrides_runpath=yes
17353 openbsd*)
17354 version_type=sunos
17355 need_lib_prefix=no
17356 need_version=no
17357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17358 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17359 shlibpath_var=LD_LIBRARY_PATH
17360 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17361 case $host_os in
17362 openbsd2.[89] | openbsd2.[89].*)
17363 shlibpath_overrides_runpath=no
17366 shlibpath_overrides_runpath=yes
17368 esac
17369 else
17370 shlibpath_overrides_runpath=yes
17374 os2*)
17375 libname_spec='$name'
17376 shrext_cmds=".dll"
17377 need_lib_prefix=no
17378 library_names_spec='$libname${shared_ext} $libname.a'
17379 dynamic_linker='OS/2 ld.exe'
17380 shlibpath_var=LIBPATH
17383 osf3* | osf4* | osf5*)
17384 version_type=osf
17385 need_lib_prefix=no
17386 need_version=no
17387 soname_spec='${libname}${release}${shared_ext}$major'
17388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17389 shlibpath_var=LD_LIBRARY_PATH
17390 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17391 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17394 sco3.2v5*)
17395 version_type=osf
17396 soname_spec='${libname}${release}${shared_ext}$major'
17397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17398 shlibpath_var=LD_LIBRARY_PATH
17401 solaris*)
17402 version_type=linux
17403 need_lib_prefix=no
17404 need_version=no
17405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17406 soname_spec='${libname}${release}${shared_ext}$major'
17407 shlibpath_var=LD_LIBRARY_PATH
17408 shlibpath_overrides_runpath=yes
17409 hardcode_into_libs=yes
17410 # ldd complains unless libraries are executable
17411 postinstall_cmds='chmod +x $lib'
17414 sunos4*)
17415 version_type=sunos
17416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17417 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17418 shlibpath_var=LD_LIBRARY_PATH
17419 shlibpath_overrides_runpath=yes
17420 if test "$with_gnu_ld" = yes; then
17421 need_lib_prefix=no
17423 need_version=yes
17426 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17427 version_type=linux
17428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17429 soname_spec='${libname}${release}${shared_ext}$major'
17430 shlibpath_var=LD_LIBRARY_PATH
17431 case $host_vendor in
17432 sni)
17433 shlibpath_overrides_runpath=no
17434 need_lib_prefix=no
17435 export_dynamic_flag_spec='${wl}-Blargedynsym'
17436 runpath_var=LD_RUN_PATH
17438 siemens)
17439 need_lib_prefix=no
17441 motorola)
17442 need_lib_prefix=no
17443 need_version=no
17444 shlibpath_overrides_runpath=no
17445 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17447 esac
17450 sysv4*MP*)
17451 if test -d /usr/nec ;then
17452 version_type=linux
17453 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17454 soname_spec='$libname${shared_ext}.$major'
17455 shlibpath_var=LD_LIBRARY_PATH
17459 uts4*)
17460 version_type=linux
17461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17462 soname_spec='${libname}${release}${shared_ext}$major'
17463 shlibpath_var=LD_LIBRARY_PATH
17467 dynamic_linker=no
17469 esac
17470 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17471 echo "${ECHO_T}$dynamic_linker" >&6
17472 test "$dynamic_linker" = no && can_build_shared=no
17474 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17475 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17476 hardcode_action_GCJ=
17477 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17478 test -n "$runpath_var_GCJ" || \
17479 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17481 # We can hardcode non-existant directories.
17482 if test "$hardcode_direct_GCJ" != no &&
17483 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17484 # have to relink, otherwise we might link with an installed library
17485 # when we should be linking with a yet-to-be-installed one
17486 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17487 test "$hardcode_minus_L_GCJ" != no; then
17488 # Linking always hardcodes the temporary library directory.
17489 hardcode_action_GCJ=relink
17490 else
17491 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17492 hardcode_action_GCJ=immediate
17494 else
17495 # We cannot hardcode anything, or else we can only hardcode existing
17496 # directories.
17497 hardcode_action_GCJ=unsupported
17499 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17500 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17502 if test "$hardcode_action_GCJ" = relink; then
17503 # Fast installation is not supported
17504 enable_fast_install=no
17505 elif test "$shlibpath_overrides_runpath" = yes ||
17506 test "$enable_shared" = no; then
17507 # Fast installation is not necessary
17508 enable_fast_install=needless
17511 striplib=
17512 old_striplib=
17513 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17514 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17515 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17516 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17517 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17518 echo "$as_me:$LINENO: result: yes" >&5
17519 echo "${ECHO_T}yes" >&6
17520 else
17521 # FIXME - insert some real tests, host_os isn't really good enough
17522 case $host_os in
17523 darwin*)
17524 if test -n "$STRIP" ; then
17525 striplib="$STRIP -x"
17526 echo "$as_me:$LINENO: result: yes" >&5
17527 echo "${ECHO_T}yes" >&6
17528 else
17529 echo "$as_me:$LINENO: result: no" >&5
17530 echo "${ECHO_T}no" >&6
17534 echo "$as_me:$LINENO: result: no" >&5
17535 echo "${ECHO_T}no" >&6
17537 esac
17540 if test "x$enable_dlopen" != xyes; then
17541 enable_dlopen=unknown
17542 enable_dlopen_self=unknown
17543 enable_dlopen_self_static=unknown
17544 else
17545 lt_cv_dlopen=no
17546 lt_cv_dlopen_libs=
17548 case $host_os in
17549 beos*)
17550 lt_cv_dlopen="load_add_on"
17551 lt_cv_dlopen_libs=
17552 lt_cv_dlopen_self=yes
17555 mingw* | pw32*)
17556 lt_cv_dlopen="LoadLibrary"
17557 lt_cv_dlopen_libs=
17560 cygwin*)
17561 lt_cv_dlopen="dlopen"
17562 lt_cv_dlopen_libs=
17565 darwin*)
17566 # if libdl is installed we need to link against it
17567 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17568 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17569 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17570 echo $ECHO_N "(cached) $ECHO_C" >&6
17571 else
17572 ac_check_lib_save_LIBS=$LIBS
17573 LIBS="-ldl $LIBS"
17574 cat >conftest.$ac_ext <<_ACEOF
17575 /* confdefs.h. */
17576 _ACEOF
17577 cat confdefs.h >>conftest.$ac_ext
17578 cat >>conftest.$ac_ext <<_ACEOF
17579 /* end confdefs.h. */
17581 /* Override any gcc2 internal prototype to avoid an error. */
17582 #ifdef __cplusplus
17583 extern "C"
17584 #endif
17585 /* We use char because int might match the return type of a gcc2
17586 builtin and then its argument prototype would still apply. */
17587 char dlopen ();
17589 main ()
17591 dlopen ();
17593 return 0;
17595 _ACEOF
17596 rm -f conftest.$ac_objext conftest$ac_exeext
17597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17598 (eval $ac_link) 2>conftest.er1
17599 ac_status=$?
17600 grep -v '^ *+' conftest.er1 >conftest.err
17601 rm -f conftest.er1
17602 cat conftest.err >&5
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); } &&
17605 { ac_try='test -z "$ac_c_werror_flag"
17606 || test ! -s conftest.err'
17607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17608 (eval $ac_try) 2>&5
17609 ac_status=$?
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); }; } &&
17612 { ac_try='test -s conftest$ac_exeext'
17613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17614 (eval $ac_try) 2>&5
17615 ac_status=$?
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); }; }; then
17618 ac_cv_lib_dl_dlopen=yes
17619 else
17620 echo "$as_me: failed program was:" >&5
17621 sed 's/^/| /' conftest.$ac_ext >&5
17623 ac_cv_lib_dl_dlopen=no
17625 rm -f conftest.err conftest.$ac_objext \
17626 conftest$ac_exeext conftest.$ac_ext
17627 LIBS=$ac_check_lib_save_LIBS
17629 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17630 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17631 if test $ac_cv_lib_dl_dlopen = yes; then
17632 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17633 else
17635 lt_cv_dlopen="dyld"
17636 lt_cv_dlopen_libs=
17637 lt_cv_dlopen_self=yes
17644 echo "$as_me:$LINENO: checking for shl_load" >&5
17645 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17646 if test "${ac_cv_func_shl_load+set}" = set; then
17647 echo $ECHO_N "(cached) $ECHO_C" >&6
17648 else
17649 cat >conftest.$ac_ext <<_ACEOF
17650 /* confdefs.h. */
17651 _ACEOF
17652 cat confdefs.h >>conftest.$ac_ext
17653 cat >>conftest.$ac_ext <<_ACEOF
17654 /* end confdefs.h. */
17655 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17657 #define shl_load innocuous_shl_load
17659 /* System header to define __stub macros and hopefully few prototypes,
17660 which can conflict with char shl_load (); below.
17661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17662 <limits.h> exists even on freestanding compilers. */
17664 #ifdef __STDC__
17665 # include <limits.h>
17666 #else
17667 # include <assert.h>
17668 #endif
17670 #undef shl_load
17672 /* Override any gcc2 internal prototype to avoid an error. */
17673 #ifdef __cplusplus
17674 extern "C"
17676 #endif
17677 /* We use char because int might match the return type of a gcc2
17678 builtin and then its argument prototype would still apply. */
17679 char shl_load ();
17680 /* The GNU C library defines this for functions which it implements
17681 to always fail with ENOSYS. Some functions are actually named
17682 something starting with __ and the normal name is an alias. */
17683 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17684 choke me
17685 #else
17686 char (*f) () = shl_load;
17687 #endif
17688 #ifdef __cplusplus
17690 #endif
17693 main ()
17695 return f != shl_load;
17697 return 0;
17699 _ACEOF
17700 rm -f conftest.$ac_objext conftest$ac_exeext
17701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17702 (eval $ac_link) 2>conftest.er1
17703 ac_status=$?
17704 grep -v '^ *+' conftest.er1 >conftest.err
17705 rm -f conftest.er1
17706 cat conftest.err >&5
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); } &&
17709 { ac_try='test -z "$ac_c_werror_flag"
17710 || test ! -s conftest.err'
17711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17712 (eval $ac_try) 2>&5
17713 ac_status=$?
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); }; } &&
17716 { ac_try='test -s conftest$ac_exeext'
17717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17718 (eval $ac_try) 2>&5
17719 ac_status=$?
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); }; }; then
17722 ac_cv_func_shl_load=yes
17723 else
17724 echo "$as_me: failed program was:" >&5
17725 sed 's/^/| /' conftest.$ac_ext >&5
17727 ac_cv_func_shl_load=no
17729 rm -f conftest.err conftest.$ac_objext \
17730 conftest$ac_exeext conftest.$ac_ext
17732 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17733 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17734 if test $ac_cv_func_shl_load = yes; then
17735 lt_cv_dlopen="shl_load"
17736 else
17737 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17738 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17739 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17740 echo $ECHO_N "(cached) $ECHO_C" >&6
17741 else
17742 ac_check_lib_save_LIBS=$LIBS
17743 LIBS="-ldld $LIBS"
17744 cat >conftest.$ac_ext <<_ACEOF
17745 /* confdefs.h. */
17746 _ACEOF
17747 cat confdefs.h >>conftest.$ac_ext
17748 cat >>conftest.$ac_ext <<_ACEOF
17749 /* end confdefs.h. */
17751 /* Override any gcc2 internal prototype to avoid an error. */
17752 #ifdef __cplusplus
17753 extern "C"
17754 #endif
17755 /* We use char because int might match the return type of a gcc2
17756 builtin and then its argument prototype would still apply. */
17757 char shl_load ();
17759 main ()
17761 shl_load ();
17763 return 0;
17765 _ACEOF
17766 rm -f conftest.$ac_objext conftest$ac_exeext
17767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17768 (eval $ac_link) 2>conftest.er1
17769 ac_status=$?
17770 grep -v '^ *+' conftest.er1 >conftest.err
17771 rm -f conftest.er1
17772 cat conftest.err >&5
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); } &&
17775 { ac_try='test -z "$ac_c_werror_flag"
17776 || test ! -s conftest.err'
17777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17778 (eval $ac_try) 2>&5
17779 ac_status=$?
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); }; } &&
17782 { ac_try='test -s conftest$ac_exeext'
17783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17784 (eval $ac_try) 2>&5
17785 ac_status=$?
17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); }; }; then
17788 ac_cv_lib_dld_shl_load=yes
17789 else
17790 echo "$as_me: failed program was:" >&5
17791 sed 's/^/| /' conftest.$ac_ext >&5
17793 ac_cv_lib_dld_shl_load=no
17795 rm -f conftest.err conftest.$ac_objext \
17796 conftest$ac_exeext conftest.$ac_ext
17797 LIBS=$ac_check_lib_save_LIBS
17799 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17800 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17801 if test $ac_cv_lib_dld_shl_load = yes; then
17802 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17803 else
17804 echo "$as_me:$LINENO: checking for dlopen" >&5
17805 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17806 if test "${ac_cv_func_dlopen+set}" = set; then
17807 echo $ECHO_N "(cached) $ECHO_C" >&6
17808 else
17809 cat >conftest.$ac_ext <<_ACEOF
17810 /* confdefs.h. */
17811 _ACEOF
17812 cat confdefs.h >>conftest.$ac_ext
17813 cat >>conftest.$ac_ext <<_ACEOF
17814 /* end confdefs.h. */
17815 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17817 #define dlopen innocuous_dlopen
17819 /* System header to define __stub macros and hopefully few prototypes,
17820 which can conflict with char dlopen (); below.
17821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17822 <limits.h> exists even on freestanding compilers. */
17824 #ifdef __STDC__
17825 # include <limits.h>
17826 #else
17827 # include <assert.h>
17828 #endif
17830 #undef dlopen
17832 /* Override any gcc2 internal prototype to avoid an error. */
17833 #ifdef __cplusplus
17834 extern "C"
17836 #endif
17837 /* We use char because int might match the return type of a gcc2
17838 builtin and then its argument prototype would still apply. */
17839 char dlopen ();
17840 /* The GNU C library defines this for functions which it implements
17841 to always fail with ENOSYS. Some functions are actually named
17842 something starting with __ and the normal name is an alias. */
17843 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17844 choke me
17845 #else
17846 char (*f) () = dlopen;
17847 #endif
17848 #ifdef __cplusplus
17850 #endif
17853 main ()
17855 return f != dlopen;
17857 return 0;
17859 _ACEOF
17860 rm -f conftest.$ac_objext conftest$ac_exeext
17861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17862 (eval $ac_link) 2>conftest.er1
17863 ac_status=$?
17864 grep -v '^ *+' conftest.er1 >conftest.err
17865 rm -f conftest.er1
17866 cat conftest.err >&5
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); } &&
17869 { ac_try='test -z "$ac_c_werror_flag"
17870 || test ! -s conftest.err'
17871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872 (eval $ac_try) 2>&5
17873 ac_status=$?
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); }; } &&
17876 { ac_try='test -s conftest$ac_exeext'
17877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17878 (eval $ac_try) 2>&5
17879 ac_status=$?
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); }; }; then
17882 ac_cv_func_dlopen=yes
17883 else
17884 echo "$as_me: failed program was:" >&5
17885 sed 's/^/| /' conftest.$ac_ext >&5
17887 ac_cv_func_dlopen=no
17889 rm -f conftest.err conftest.$ac_objext \
17890 conftest$ac_exeext conftest.$ac_ext
17892 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17893 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17894 if test $ac_cv_func_dlopen = yes; then
17895 lt_cv_dlopen="dlopen"
17896 else
17897 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17898 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17899 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17900 echo $ECHO_N "(cached) $ECHO_C" >&6
17901 else
17902 ac_check_lib_save_LIBS=$LIBS
17903 LIBS="-ldl $LIBS"
17904 cat >conftest.$ac_ext <<_ACEOF
17905 /* confdefs.h. */
17906 _ACEOF
17907 cat confdefs.h >>conftest.$ac_ext
17908 cat >>conftest.$ac_ext <<_ACEOF
17909 /* end confdefs.h. */
17911 /* Override any gcc2 internal prototype to avoid an error. */
17912 #ifdef __cplusplus
17913 extern "C"
17914 #endif
17915 /* We use char because int might match the return type of a gcc2
17916 builtin and then its argument prototype would still apply. */
17917 char dlopen ();
17919 main ()
17921 dlopen ();
17923 return 0;
17925 _ACEOF
17926 rm -f conftest.$ac_objext conftest$ac_exeext
17927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17928 (eval $ac_link) 2>conftest.er1
17929 ac_status=$?
17930 grep -v '^ *+' conftest.er1 >conftest.err
17931 rm -f conftest.er1
17932 cat conftest.err >&5
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); } &&
17935 { ac_try='test -z "$ac_c_werror_flag"
17936 || test ! -s conftest.err'
17937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17938 (eval $ac_try) 2>&5
17939 ac_status=$?
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); }; } &&
17942 { ac_try='test -s conftest$ac_exeext'
17943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17944 (eval $ac_try) 2>&5
17945 ac_status=$?
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); }; }; then
17948 ac_cv_lib_dl_dlopen=yes
17949 else
17950 echo "$as_me: failed program was:" >&5
17951 sed 's/^/| /' conftest.$ac_ext >&5
17953 ac_cv_lib_dl_dlopen=no
17955 rm -f conftest.err conftest.$ac_objext \
17956 conftest$ac_exeext conftest.$ac_ext
17957 LIBS=$ac_check_lib_save_LIBS
17959 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17960 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17961 if test $ac_cv_lib_dl_dlopen = yes; then
17962 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17963 else
17964 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17965 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17966 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17967 echo $ECHO_N "(cached) $ECHO_C" >&6
17968 else
17969 ac_check_lib_save_LIBS=$LIBS
17970 LIBS="-lsvld $LIBS"
17971 cat >conftest.$ac_ext <<_ACEOF
17972 /* confdefs.h. */
17973 _ACEOF
17974 cat confdefs.h >>conftest.$ac_ext
17975 cat >>conftest.$ac_ext <<_ACEOF
17976 /* end confdefs.h. */
17978 /* Override any gcc2 internal prototype to avoid an error. */
17979 #ifdef __cplusplus
17980 extern "C"
17981 #endif
17982 /* We use char because int might match the return type of a gcc2
17983 builtin and then its argument prototype would still apply. */
17984 char dlopen ();
17986 main ()
17988 dlopen ();
17990 return 0;
17992 _ACEOF
17993 rm -f conftest.$ac_objext conftest$ac_exeext
17994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17995 (eval $ac_link) 2>conftest.er1
17996 ac_status=$?
17997 grep -v '^ *+' conftest.er1 >conftest.err
17998 rm -f conftest.er1
17999 cat conftest.err >&5
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); } &&
18002 { ac_try='test -z "$ac_c_werror_flag"
18003 || test ! -s conftest.err'
18004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18005 (eval $ac_try) 2>&5
18006 ac_status=$?
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); }; } &&
18009 { ac_try='test -s conftest$ac_exeext'
18010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18011 (eval $ac_try) 2>&5
18012 ac_status=$?
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); }; }; then
18015 ac_cv_lib_svld_dlopen=yes
18016 else
18017 echo "$as_me: failed program was:" >&5
18018 sed 's/^/| /' conftest.$ac_ext >&5
18020 ac_cv_lib_svld_dlopen=no
18022 rm -f conftest.err conftest.$ac_objext \
18023 conftest$ac_exeext conftest.$ac_ext
18024 LIBS=$ac_check_lib_save_LIBS
18026 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18027 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18028 if test $ac_cv_lib_svld_dlopen = yes; then
18029 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18030 else
18031 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18032 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18033 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18034 echo $ECHO_N "(cached) $ECHO_C" >&6
18035 else
18036 ac_check_lib_save_LIBS=$LIBS
18037 LIBS="-ldld $LIBS"
18038 cat >conftest.$ac_ext <<_ACEOF
18039 /* confdefs.h. */
18040 _ACEOF
18041 cat confdefs.h >>conftest.$ac_ext
18042 cat >>conftest.$ac_ext <<_ACEOF
18043 /* end confdefs.h. */
18045 /* Override any gcc2 internal prototype to avoid an error. */
18046 #ifdef __cplusplus
18047 extern "C"
18048 #endif
18049 /* We use char because int might match the return type of a gcc2
18050 builtin and then its argument prototype would still apply. */
18051 char dld_link ();
18053 main ()
18055 dld_link ();
18057 return 0;
18059 _ACEOF
18060 rm -f conftest.$ac_objext conftest$ac_exeext
18061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18062 (eval $ac_link) 2>conftest.er1
18063 ac_status=$?
18064 grep -v '^ *+' conftest.er1 >conftest.err
18065 rm -f conftest.er1
18066 cat conftest.err >&5
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); } &&
18069 { ac_try='test -z "$ac_c_werror_flag"
18070 || test ! -s conftest.err'
18071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18072 (eval $ac_try) 2>&5
18073 ac_status=$?
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); }; } &&
18076 { ac_try='test -s conftest$ac_exeext'
18077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18078 (eval $ac_try) 2>&5
18079 ac_status=$?
18080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081 (exit $ac_status); }; }; then
18082 ac_cv_lib_dld_dld_link=yes
18083 else
18084 echo "$as_me: failed program was:" >&5
18085 sed 's/^/| /' conftest.$ac_ext >&5
18087 ac_cv_lib_dld_dld_link=no
18089 rm -f conftest.err conftest.$ac_objext \
18090 conftest$ac_exeext conftest.$ac_ext
18091 LIBS=$ac_check_lib_save_LIBS
18093 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18094 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18095 if test $ac_cv_lib_dld_dld_link = yes; then
18096 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18115 esac
18117 if test "x$lt_cv_dlopen" != xno; then
18118 enable_dlopen=yes
18119 else
18120 enable_dlopen=no
18123 case $lt_cv_dlopen in
18124 dlopen)
18125 save_CPPFLAGS="$CPPFLAGS"
18126 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18128 save_LDFLAGS="$LDFLAGS"
18129 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18131 save_LIBS="$LIBS"
18132 LIBS="$lt_cv_dlopen_libs $LIBS"
18134 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18135 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18136 if test "${lt_cv_dlopen_self+set}" = set; then
18137 echo $ECHO_N "(cached) $ECHO_C" >&6
18138 else
18139 if test "$cross_compiling" = yes; then :
18140 lt_cv_dlopen_self=cross
18141 else
18142 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18143 lt_status=$lt_dlunknown
18144 cat > conftest.$ac_ext <<EOF
18145 #line 18145 "configure"
18146 #include "confdefs.h"
18148 #if HAVE_DLFCN_H
18149 #include <dlfcn.h>
18150 #endif
18152 #include <stdio.h>
18154 #ifdef RTLD_GLOBAL
18155 # define LT_DLGLOBAL RTLD_GLOBAL
18156 #else
18157 # ifdef DL_GLOBAL
18158 # define LT_DLGLOBAL DL_GLOBAL
18159 # else
18160 # define LT_DLGLOBAL 0
18161 # endif
18162 #endif
18164 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18165 find out it does not work in some platform. */
18166 #ifndef LT_DLLAZY_OR_NOW
18167 # ifdef RTLD_LAZY
18168 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18169 # else
18170 # ifdef DL_LAZY
18171 # define LT_DLLAZY_OR_NOW DL_LAZY
18172 # else
18173 # ifdef RTLD_NOW
18174 # define LT_DLLAZY_OR_NOW RTLD_NOW
18175 # else
18176 # ifdef DL_NOW
18177 # define LT_DLLAZY_OR_NOW DL_NOW
18178 # else
18179 # define LT_DLLAZY_OR_NOW 0
18180 # endif
18181 # endif
18182 # endif
18183 # endif
18184 #endif
18186 #ifdef __cplusplus
18187 extern "C" void exit (int);
18188 #endif
18190 void fnord() { int i=42;}
18191 int main ()
18193 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18194 int status = $lt_dlunknown;
18196 if (self)
18198 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18199 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18200 /* dlclose (self); */
18203 exit (status);
18206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18207 (eval $ac_link) 2>&5
18208 ac_status=$?
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18211 (./conftest; exit; ) 2>/dev/null
18212 lt_status=$?
18213 case x$lt_status in
18214 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18215 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18216 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18217 esac
18218 else :
18219 # compilation failed
18220 lt_cv_dlopen_self=no
18223 rm -fr conftest*
18227 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18228 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18230 if test "x$lt_cv_dlopen_self" = xyes; then
18231 LDFLAGS="$LDFLAGS $link_static_flag"
18232 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18233 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18234 if test "${lt_cv_dlopen_self_static+set}" = set; then
18235 echo $ECHO_N "(cached) $ECHO_C" >&6
18236 else
18237 if test "$cross_compiling" = yes; then :
18238 lt_cv_dlopen_self_static=cross
18239 else
18240 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18241 lt_status=$lt_dlunknown
18242 cat > conftest.$ac_ext <<EOF
18243 #line 18243 "configure"
18244 #include "confdefs.h"
18246 #if HAVE_DLFCN_H
18247 #include <dlfcn.h>
18248 #endif
18250 #include <stdio.h>
18252 #ifdef RTLD_GLOBAL
18253 # define LT_DLGLOBAL RTLD_GLOBAL
18254 #else
18255 # ifdef DL_GLOBAL
18256 # define LT_DLGLOBAL DL_GLOBAL
18257 # else
18258 # define LT_DLGLOBAL 0
18259 # endif
18260 #endif
18262 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18263 find out it does not work in some platform. */
18264 #ifndef LT_DLLAZY_OR_NOW
18265 # ifdef RTLD_LAZY
18266 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18267 # else
18268 # ifdef DL_LAZY
18269 # define LT_DLLAZY_OR_NOW DL_LAZY
18270 # else
18271 # ifdef RTLD_NOW
18272 # define LT_DLLAZY_OR_NOW RTLD_NOW
18273 # else
18274 # ifdef DL_NOW
18275 # define LT_DLLAZY_OR_NOW DL_NOW
18276 # else
18277 # define LT_DLLAZY_OR_NOW 0
18278 # endif
18279 # endif
18280 # endif
18281 # endif
18282 #endif
18284 #ifdef __cplusplus
18285 extern "C" void exit (int);
18286 #endif
18288 void fnord() { int i=42;}
18289 int main ()
18291 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18292 int status = $lt_dlunknown;
18294 if (self)
18296 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18297 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18298 /* dlclose (self); */
18301 exit (status);
18304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18305 (eval $ac_link) 2>&5
18306 ac_status=$?
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18309 (./conftest; exit; ) 2>/dev/null
18310 lt_status=$?
18311 case x$lt_status in
18312 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18313 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18314 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18315 esac
18316 else :
18317 # compilation failed
18318 lt_cv_dlopen_self_static=no
18321 rm -fr conftest*
18325 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18326 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18329 CPPFLAGS="$save_CPPFLAGS"
18330 LDFLAGS="$save_LDFLAGS"
18331 LIBS="$save_LIBS"
18333 esac
18335 case $lt_cv_dlopen_self in
18336 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18337 *) enable_dlopen_self=unknown ;;
18338 esac
18340 case $lt_cv_dlopen_self_static in
18341 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18342 *) enable_dlopen_self_static=unknown ;;
18343 esac
18347 # The else clause should only fire when bootstrapping the
18348 # libtool distribution, otherwise you forgot to ship ltmain.sh
18349 # with your package, and you will get complaints that there are
18350 # no rules to generate ltmain.sh.
18351 if test -f "$ltmain"; then
18352 # See if we are running on zsh, and set the options which allow our commands through
18353 # without removal of \ escapes.
18354 if test -n "${ZSH_VERSION+set}" ; then
18355 setopt NO_GLOB_SUBST
18357 # Now quote all the things that may contain metacharacters while being
18358 # careful not to overquote the AC_SUBSTed values. We take copies of the
18359 # variables and quote the copies for generation of the libtool script.
18360 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18361 SED SHELL STRIP \
18362 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18363 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18364 deplibs_check_method reload_flag reload_cmds need_locks \
18365 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18366 lt_cv_sys_global_symbol_to_c_name_address \
18367 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18368 old_postinstall_cmds old_postuninstall_cmds \
18369 compiler_GCJ \
18370 CC_GCJ \
18371 LD_GCJ \
18372 lt_prog_compiler_wl_GCJ \
18373 lt_prog_compiler_pic_GCJ \
18374 lt_prog_compiler_static_GCJ \
18375 lt_prog_compiler_no_builtin_flag_GCJ \
18376 export_dynamic_flag_spec_GCJ \
18377 thread_safe_flag_spec_GCJ \
18378 whole_archive_flag_spec_GCJ \
18379 enable_shared_with_static_runtimes_GCJ \
18380 old_archive_cmds_GCJ \
18381 old_archive_from_new_cmds_GCJ \
18382 predep_objects_GCJ \
18383 postdep_objects_GCJ \
18384 predeps_GCJ \
18385 postdeps_GCJ \
18386 compiler_lib_search_path_GCJ \
18387 archive_cmds_GCJ \
18388 archive_expsym_cmds_GCJ \
18389 postinstall_cmds_GCJ \
18390 postuninstall_cmds_GCJ \
18391 old_archive_from_expsyms_cmds_GCJ \
18392 allow_undefined_flag_GCJ \
18393 no_undefined_flag_GCJ \
18394 export_symbols_cmds_GCJ \
18395 hardcode_libdir_flag_spec_GCJ \
18396 hardcode_libdir_flag_spec_ld_GCJ \
18397 hardcode_libdir_separator_GCJ \
18398 hardcode_automatic_GCJ \
18399 module_cmds_GCJ \
18400 module_expsym_cmds_GCJ \
18401 lt_cv_prog_compiler_c_o_GCJ \
18402 exclude_expsyms_GCJ \
18403 include_expsyms_GCJ; do
18405 case $var in
18406 old_archive_cmds_GCJ | \
18407 old_archive_from_new_cmds_GCJ | \
18408 archive_cmds_GCJ | \
18409 archive_expsym_cmds_GCJ | \
18410 module_cmds_GCJ | \
18411 module_expsym_cmds_GCJ | \
18412 old_archive_from_expsyms_cmds_GCJ | \
18413 export_symbols_cmds_GCJ | \
18414 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18415 postinstall_cmds | postuninstall_cmds | \
18416 old_postinstall_cmds | old_postuninstall_cmds | \
18417 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18418 # Double-quote double-evaled strings.
18419 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18422 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18424 esac
18425 done
18427 case $lt_echo in
18428 *'\$0 --fallback-echo"')
18429 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18431 esac
18433 cfgfile="$ofile"
18435 cat <<__EOF__ >> "$cfgfile"
18436 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18438 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18440 # Shell to use when invoking shell scripts.
18441 SHELL=$lt_SHELL
18443 # Whether or not to build shared libraries.
18444 build_libtool_libs=$enable_shared
18446 # Whether or not to build static libraries.
18447 build_old_libs=$enable_static
18449 # Whether or not to add -lc for building shared libraries.
18450 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18452 # Whether or not to disallow shared libs when runtime libs are static
18453 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18455 # Whether or not to optimize for fast installation.
18456 fast_install=$enable_fast_install
18458 # The host system.
18459 host_alias=$host_alias
18460 host=$host
18461 host_os=$host_os
18463 # The build system.
18464 build_alias=$build_alias
18465 build=$build
18466 build_os=$build_os
18468 # An echo program that does not interpret backslashes.
18469 echo=$lt_echo
18471 # The archiver.
18472 AR=$lt_AR
18473 AR_FLAGS=$lt_AR_FLAGS
18475 # A C compiler.
18476 LTCC=$lt_LTCC
18478 # A language-specific compiler.
18479 CC=$lt_compiler_GCJ
18481 # Is the compiler the GNU C compiler?
18482 with_gcc=$GCC_GCJ
18484 # An ERE matcher.
18485 EGREP=$lt_EGREP
18487 # The linker used to build libraries.
18488 LD=$lt_LD_GCJ
18490 # Whether we need hard or soft links.
18491 LN_S=$lt_LN_S
18493 # A BSD-compatible nm program.
18494 NM=$lt_NM
18496 # A symbol stripping program
18497 STRIP=$lt_STRIP
18499 # Used to examine libraries when file_magic_cmd begins "file"
18500 MAGIC_CMD=$MAGIC_CMD
18502 # Used on cygwin: DLL creation program.
18503 DLLTOOL="$DLLTOOL"
18505 # Used on cygwin: object dumper.
18506 OBJDUMP="$OBJDUMP"
18508 # Used on cygwin: assembler.
18509 AS="$AS"
18511 # The name of the directory that contains temporary libtool files.
18512 objdir=$objdir
18514 # How to create reloadable object files.
18515 reload_flag=$lt_reload_flag
18516 reload_cmds=$lt_reload_cmds
18518 # How to pass a linker flag through the compiler.
18519 wl=$lt_lt_prog_compiler_wl_GCJ
18521 # Object file suffix (normally "o").
18522 objext="$ac_objext"
18524 # Old archive suffix (normally "a").
18525 libext="$libext"
18527 # Shared library suffix (normally ".so").
18528 shrext_cmds='$shrext_cmds'
18530 # Executable file suffix (normally "").
18531 exeext="$exeext"
18533 # Additional compiler flags for building library objects.
18534 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18535 pic_mode=$pic_mode
18537 # What is the maximum length of a command?
18538 max_cmd_len=$lt_cv_sys_max_cmd_len
18540 # Does compiler simultaneously support -c and -o options?
18541 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18543 # Must we lock files when doing compilation ?
18544 need_locks=$lt_need_locks
18546 # Do we need the lib prefix for modules?
18547 need_lib_prefix=$need_lib_prefix
18549 # Do we need a version for libraries?
18550 need_version=$need_version
18552 # Whether dlopen is supported.
18553 dlopen_support=$enable_dlopen
18555 # Whether dlopen of programs is supported.
18556 dlopen_self=$enable_dlopen_self
18558 # Whether dlopen of statically linked programs is supported.
18559 dlopen_self_static=$enable_dlopen_self_static
18561 # Compiler flag to prevent dynamic linking.
18562 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18564 # Compiler flag to turn off builtin functions.
18565 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18567 # Compiler flag to allow reflexive dlopens.
18568 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18570 # Compiler flag to generate shared objects directly from archives.
18571 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18573 # Compiler flag to generate thread-safe objects.
18574 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18576 # Library versioning type.
18577 version_type=$version_type
18579 # Format of library name prefix.
18580 libname_spec=$lt_libname_spec
18582 # List of archive names. First name is the real one, the rest are links.
18583 # The last name is the one that the linker finds with -lNAME.
18584 library_names_spec=$lt_library_names_spec
18586 # The coded name of the library, if different from the real name.
18587 soname_spec=$lt_soname_spec
18589 # Commands used to build and install an old-style archive.
18590 RANLIB=$lt_RANLIB
18591 old_archive_cmds=$lt_old_archive_cmds_GCJ
18592 old_postinstall_cmds=$lt_old_postinstall_cmds
18593 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18595 # Create an old-style archive from a shared archive.
18596 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18598 # Create a temporary old-style archive to link instead of a shared archive.
18599 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18601 # Commands used to build and install a shared archive.
18602 archive_cmds=$lt_archive_cmds_GCJ
18603 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18604 postinstall_cmds=$lt_postinstall_cmds
18605 postuninstall_cmds=$lt_postuninstall_cmds
18607 # Commands used to build a loadable module (assumed same as above if empty)
18608 module_cmds=$lt_module_cmds_GCJ
18609 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18611 # Commands to strip libraries.
18612 old_striplib=$lt_old_striplib
18613 striplib=$lt_striplib
18615 # Dependencies to place before the objects being linked to create a
18616 # shared library.
18617 predep_objects=$lt_predep_objects_GCJ
18619 # Dependencies to place after the objects being linked to create a
18620 # shared library.
18621 postdep_objects=$lt_postdep_objects_GCJ
18623 # Dependencies to place before the objects being linked to create a
18624 # shared library.
18625 predeps=$lt_predeps_GCJ
18627 # Dependencies to place after the objects being linked to create a
18628 # shared library.
18629 postdeps=$lt_postdeps_GCJ
18631 # The library search path used internally by the compiler when linking
18632 # a shared library.
18633 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18635 # Method to check whether dependent libraries are shared objects.
18636 deplibs_check_method=$lt_deplibs_check_method
18638 # Command to use when deplibs_check_method == file_magic.
18639 file_magic_cmd=$lt_file_magic_cmd
18641 # Flag that allows shared libraries with undefined symbols to be built.
18642 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18644 # Flag that forces no undefined symbols.
18645 no_undefined_flag=$lt_no_undefined_flag_GCJ
18647 # Commands used to finish a libtool library installation in a directory.
18648 finish_cmds=$lt_finish_cmds
18650 # Same as above, but a single script fragment to be evaled but not shown.
18651 finish_eval=$lt_finish_eval
18653 # Take the output of nm and produce a listing of raw symbols and C names.
18654 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18656 # Transform the output of nm in a proper C declaration
18657 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18659 # Transform the output of nm in a C name address pair
18660 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18662 # This is the shared library runtime path variable.
18663 runpath_var=$runpath_var
18665 # This is the shared library path variable.
18666 shlibpath_var=$shlibpath_var
18668 # Is shlibpath searched before the hard-coded library search path?
18669 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18671 # How to hardcode a shared library path into an executable.
18672 hardcode_action=$hardcode_action_GCJ
18674 # Whether we should hardcode library paths into libraries.
18675 hardcode_into_libs=$hardcode_into_libs
18677 # Flag to hardcode \$libdir into a binary during linking.
18678 # This must work even if \$libdir does not exist.
18679 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18681 # If ld is used when linking, flag to hardcode \$libdir into
18682 # a binary during linking. This must work even if \$libdir does
18683 # not exist.
18684 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18686 # Whether we need a single -rpath flag with a separated argument.
18687 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18689 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18690 # resulting binary.
18691 hardcode_direct=$hardcode_direct_GCJ
18693 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18694 # resulting binary.
18695 hardcode_minus_L=$hardcode_minus_L_GCJ
18697 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18698 # the resulting binary.
18699 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18701 # Set to yes if building a shared library automatically hardcodes DIR into the library
18702 # and all subsequent libraries and executables linked against it.
18703 hardcode_automatic=$hardcode_automatic_GCJ
18705 # Variables whose values should be saved in libtool wrapper scripts and
18706 # restored at relink time.
18707 variables_saved_for_relink="$variables_saved_for_relink"
18709 # Whether libtool must link a program against all its dependency libraries.
18710 link_all_deplibs=$link_all_deplibs_GCJ
18712 # Compile-time system search path for libraries
18713 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18715 # Run-time system search path for libraries
18716 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18718 # Fix the shell variable \$srcfile for the compiler.
18719 fix_srcfile_path="$fix_srcfile_path_GCJ"
18721 # Set to yes if exported symbols are required.
18722 always_export_symbols=$always_export_symbols_GCJ
18724 # The commands to list exported symbols.
18725 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18727 # The commands to extract the exported symbol list from a shared archive.
18728 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18730 # Symbols that should not be listed in the preloaded symbols.
18731 exclude_expsyms=$lt_exclude_expsyms_GCJ
18733 # Symbols that must always be exported.
18734 include_expsyms=$lt_include_expsyms_GCJ
18736 # ### END LIBTOOL TAG CONFIG: $tagname
18738 __EOF__
18741 else
18742 # If there is no Makefile yet, we rely on a make rule to execute
18743 # `config.status --recheck' to rerun these tests and create the
18744 # libtool script then.
18745 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18746 if test -f "$ltmain_in"; then
18747 test -f Makefile && make "$ltmain"
18752 ac_ext=c
18753 ac_cpp='$CPP $CPPFLAGS'
18754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18758 CC="$lt_save_CC"
18760 else
18761 tagname=""
18769 # Source file extension for RC test sources.
18770 ac_ext=rc
18772 # Object file extension for compiled RC test sources.
18773 objext=o
18774 objext_RC=$objext
18776 # Code to be used in simple compile tests
18777 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18779 # Code to be used in simple link tests
18780 lt_simple_link_test_code="$lt_simple_compile_test_code"
18782 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18784 # If no C compiler was specified, use CC.
18785 LTCC=${LTCC-"$CC"}
18787 # Allow CC to be a program name with arguments.
18788 compiler=$CC
18791 # Allow CC to be a program name with arguments.
18792 lt_save_CC="$CC"
18793 CC=${RC-"windres"}
18794 compiler=$CC
18795 compiler_RC=$CC
18796 lt_cv_prog_compiler_c_o_RC=yes
18798 # The else clause should only fire when bootstrapping the
18799 # libtool distribution, otherwise you forgot to ship ltmain.sh
18800 # with your package, and you will get complaints that there are
18801 # no rules to generate ltmain.sh.
18802 if test -f "$ltmain"; then
18803 # See if we are running on zsh, and set the options which allow our commands through
18804 # without removal of \ escapes.
18805 if test -n "${ZSH_VERSION+set}" ; then
18806 setopt NO_GLOB_SUBST
18808 # Now quote all the things that may contain metacharacters while being
18809 # careful not to overquote the AC_SUBSTed values. We take copies of the
18810 # variables and quote the copies for generation of the libtool script.
18811 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18812 SED SHELL STRIP \
18813 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18814 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18815 deplibs_check_method reload_flag reload_cmds need_locks \
18816 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18817 lt_cv_sys_global_symbol_to_c_name_address \
18818 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18819 old_postinstall_cmds old_postuninstall_cmds \
18820 compiler_RC \
18821 CC_RC \
18822 LD_RC \
18823 lt_prog_compiler_wl_RC \
18824 lt_prog_compiler_pic_RC \
18825 lt_prog_compiler_static_RC \
18826 lt_prog_compiler_no_builtin_flag_RC \
18827 export_dynamic_flag_spec_RC \
18828 thread_safe_flag_spec_RC \
18829 whole_archive_flag_spec_RC \
18830 enable_shared_with_static_runtimes_RC \
18831 old_archive_cmds_RC \
18832 old_archive_from_new_cmds_RC \
18833 predep_objects_RC \
18834 postdep_objects_RC \
18835 predeps_RC \
18836 postdeps_RC \
18837 compiler_lib_search_path_RC \
18838 archive_cmds_RC \
18839 archive_expsym_cmds_RC \
18840 postinstall_cmds_RC \
18841 postuninstall_cmds_RC \
18842 old_archive_from_expsyms_cmds_RC \
18843 allow_undefined_flag_RC \
18844 no_undefined_flag_RC \
18845 export_symbols_cmds_RC \
18846 hardcode_libdir_flag_spec_RC \
18847 hardcode_libdir_flag_spec_ld_RC \
18848 hardcode_libdir_separator_RC \
18849 hardcode_automatic_RC \
18850 module_cmds_RC \
18851 module_expsym_cmds_RC \
18852 lt_cv_prog_compiler_c_o_RC \
18853 exclude_expsyms_RC \
18854 include_expsyms_RC; do
18856 case $var in
18857 old_archive_cmds_RC | \
18858 old_archive_from_new_cmds_RC | \
18859 archive_cmds_RC | \
18860 archive_expsym_cmds_RC | \
18861 module_cmds_RC | \
18862 module_expsym_cmds_RC | \
18863 old_archive_from_expsyms_cmds_RC | \
18864 export_symbols_cmds_RC | \
18865 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18866 postinstall_cmds | postuninstall_cmds | \
18867 old_postinstall_cmds | old_postuninstall_cmds | \
18868 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18869 # Double-quote double-evaled strings.
18870 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18873 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18875 esac
18876 done
18878 case $lt_echo in
18879 *'\$0 --fallback-echo"')
18880 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18882 esac
18884 cfgfile="$ofile"
18886 cat <<__EOF__ >> "$cfgfile"
18887 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18889 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18891 # Shell to use when invoking shell scripts.
18892 SHELL=$lt_SHELL
18894 # Whether or not to build shared libraries.
18895 build_libtool_libs=$enable_shared
18897 # Whether or not to build static libraries.
18898 build_old_libs=$enable_static
18900 # Whether or not to add -lc for building shared libraries.
18901 build_libtool_need_lc=$archive_cmds_need_lc_RC
18903 # Whether or not to disallow shared libs when runtime libs are static
18904 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18906 # Whether or not to optimize for fast installation.
18907 fast_install=$enable_fast_install
18909 # The host system.
18910 host_alias=$host_alias
18911 host=$host
18912 host_os=$host_os
18914 # The build system.
18915 build_alias=$build_alias
18916 build=$build
18917 build_os=$build_os
18919 # An echo program that does not interpret backslashes.
18920 echo=$lt_echo
18922 # The archiver.
18923 AR=$lt_AR
18924 AR_FLAGS=$lt_AR_FLAGS
18926 # A C compiler.
18927 LTCC=$lt_LTCC
18929 # A language-specific compiler.
18930 CC=$lt_compiler_RC
18932 # Is the compiler the GNU C compiler?
18933 with_gcc=$GCC_RC
18935 # An ERE matcher.
18936 EGREP=$lt_EGREP
18938 # The linker used to build libraries.
18939 LD=$lt_LD_RC
18941 # Whether we need hard or soft links.
18942 LN_S=$lt_LN_S
18944 # A BSD-compatible nm program.
18945 NM=$lt_NM
18947 # A symbol stripping program
18948 STRIP=$lt_STRIP
18950 # Used to examine libraries when file_magic_cmd begins "file"
18951 MAGIC_CMD=$MAGIC_CMD
18953 # Used on cygwin: DLL creation program.
18954 DLLTOOL="$DLLTOOL"
18956 # Used on cygwin: object dumper.
18957 OBJDUMP="$OBJDUMP"
18959 # Used on cygwin: assembler.
18960 AS="$AS"
18962 # The name of the directory that contains temporary libtool files.
18963 objdir=$objdir
18965 # How to create reloadable object files.
18966 reload_flag=$lt_reload_flag
18967 reload_cmds=$lt_reload_cmds
18969 # How to pass a linker flag through the compiler.
18970 wl=$lt_lt_prog_compiler_wl_RC
18972 # Object file suffix (normally "o").
18973 objext="$ac_objext"
18975 # Old archive suffix (normally "a").
18976 libext="$libext"
18978 # Shared library suffix (normally ".so").
18979 shrext_cmds='$shrext_cmds'
18981 # Executable file suffix (normally "").
18982 exeext="$exeext"
18984 # Additional compiler flags for building library objects.
18985 pic_flag=$lt_lt_prog_compiler_pic_RC
18986 pic_mode=$pic_mode
18988 # What is the maximum length of a command?
18989 max_cmd_len=$lt_cv_sys_max_cmd_len
18991 # Does compiler simultaneously support -c and -o options?
18992 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18994 # Must we lock files when doing compilation ?
18995 need_locks=$lt_need_locks
18997 # Do we need the lib prefix for modules?
18998 need_lib_prefix=$need_lib_prefix
19000 # Do we need a version for libraries?
19001 need_version=$need_version
19003 # Whether dlopen is supported.
19004 dlopen_support=$enable_dlopen
19006 # Whether dlopen of programs is supported.
19007 dlopen_self=$enable_dlopen_self
19009 # Whether dlopen of statically linked programs is supported.
19010 dlopen_self_static=$enable_dlopen_self_static
19012 # Compiler flag to prevent dynamic linking.
19013 link_static_flag=$lt_lt_prog_compiler_static_RC
19015 # Compiler flag to turn off builtin functions.
19016 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19018 # Compiler flag to allow reflexive dlopens.
19019 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19021 # Compiler flag to generate shared objects directly from archives.
19022 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19024 # Compiler flag to generate thread-safe objects.
19025 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19027 # Library versioning type.
19028 version_type=$version_type
19030 # Format of library name prefix.
19031 libname_spec=$lt_libname_spec
19033 # List of archive names. First name is the real one, the rest are links.
19034 # The last name is the one that the linker finds with -lNAME.
19035 library_names_spec=$lt_library_names_spec
19037 # The coded name of the library, if different from the real name.
19038 soname_spec=$lt_soname_spec
19040 # Commands used to build and install an old-style archive.
19041 RANLIB=$lt_RANLIB
19042 old_archive_cmds=$lt_old_archive_cmds_RC
19043 old_postinstall_cmds=$lt_old_postinstall_cmds
19044 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19046 # Create an old-style archive from a shared archive.
19047 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19049 # Create a temporary old-style archive to link instead of a shared archive.
19050 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19052 # Commands used to build and install a shared archive.
19053 archive_cmds=$lt_archive_cmds_RC
19054 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19055 postinstall_cmds=$lt_postinstall_cmds
19056 postuninstall_cmds=$lt_postuninstall_cmds
19058 # Commands used to build a loadable module (assumed same as above if empty)
19059 module_cmds=$lt_module_cmds_RC
19060 module_expsym_cmds=$lt_module_expsym_cmds_RC
19062 # Commands to strip libraries.
19063 old_striplib=$lt_old_striplib
19064 striplib=$lt_striplib
19066 # Dependencies to place before the objects being linked to create a
19067 # shared library.
19068 predep_objects=$lt_predep_objects_RC
19070 # Dependencies to place after the objects being linked to create a
19071 # shared library.
19072 postdep_objects=$lt_postdep_objects_RC
19074 # Dependencies to place before the objects being linked to create a
19075 # shared library.
19076 predeps=$lt_predeps_RC
19078 # Dependencies to place after the objects being linked to create a
19079 # shared library.
19080 postdeps=$lt_postdeps_RC
19082 # The library search path used internally by the compiler when linking
19083 # a shared library.
19084 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19086 # Method to check whether dependent libraries are shared objects.
19087 deplibs_check_method=$lt_deplibs_check_method
19089 # Command to use when deplibs_check_method == file_magic.
19090 file_magic_cmd=$lt_file_magic_cmd
19092 # Flag that allows shared libraries with undefined symbols to be built.
19093 allow_undefined_flag=$lt_allow_undefined_flag_RC
19095 # Flag that forces no undefined symbols.
19096 no_undefined_flag=$lt_no_undefined_flag_RC
19098 # Commands used to finish a libtool library installation in a directory.
19099 finish_cmds=$lt_finish_cmds
19101 # Same as above, but a single script fragment to be evaled but not shown.
19102 finish_eval=$lt_finish_eval
19104 # Take the output of nm and produce a listing of raw symbols and C names.
19105 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19107 # Transform the output of nm in a proper C declaration
19108 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19110 # Transform the output of nm in a C name address pair
19111 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19113 # This is the shared library runtime path variable.
19114 runpath_var=$runpath_var
19116 # This is the shared library path variable.
19117 shlibpath_var=$shlibpath_var
19119 # Is shlibpath searched before the hard-coded library search path?
19120 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19122 # How to hardcode a shared library path into an executable.
19123 hardcode_action=$hardcode_action_RC
19125 # Whether we should hardcode library paths into libraries.
19126 hardcode_into_libs=$hardcode_into_libs
19128 # Flag to hardcode \$libdir into a binary during linking.
19129 # This must work even if \$libdir does not exist.
19130 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19132 # If ld is used when linking, flag to hardcode \$libdir into
19133 # a binary during linking. This must work even if \$libdir does
19134 # not exist.
19135 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19137 # Whether we need a single -rpath flag with a separated argument.
19138 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19140 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19141 # resulting binary.
19142 hardcode_direct=$hardcode_direct_RC
19144 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19145 # resulting binary.
19146 hardcode_minus_L=$hardcode_minus_L_RC
19148 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19149 # the resulting binary.
19150 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19152 # Set to yes if building a shared library automatically hardcodes DIR into the library
19153 # and all subsequent libraries and executables linked against it.
19154 hardcode_automatic=$hardcode_automatic_RC
19156 # Variables whose values should be saved in libtool wrapper scripts and
19157 # restored at relink time.
19158 variables_saved_for_relink="$variables_saved_for_relink"
19160 # Whether libtool must link a program against all its dependency libraries.
19161 link_all_deplibs=$link_all_deplibs_RC
19163 # Compile-time system search path for libraries
19164 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19166 # Run-time system search path for libraries
19167 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19169 # Fix the shell variable \$srcfile for the compiler.
19170 fix_srcfile_path="$fix_srcfile_path_RC"
19172 # Set to yes if exported symbols are required.
19173 always_export_symbols=$always_export_symbols_RC
19175 # The commands to list exported symbols.
19176 export_symbols_cmds=$lt_export_symbols_cmds_RC
19178 # The commands to extract the exported symbol list from a shared archive.
19179 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19181 # Symbols that should not be listed in the preloaded symbols.
19182 exclude_expsyms=$lt_exclude_expsyms_RC
19184 # Symbols that must always be exported.
19185 include_expsyms=$lt_include_expsyms_RC
19187 # ### END LIBTOOL TAG CONFIG: $tagname
19189 __EOF__
19192 else
19193 # If there is no Makefile yet, we rely on a make rule to execute
19194 # `config.status --recheck' to rerun these tests and create the
19195 # libtool script then.
19196 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19197 if test -f "$ltmain_in"; then
19198 test -f Makefile && make "$ltmain"
19203 ac_ext=c
19204 ac_cpp='$CPP $CPPFLAGS'
19205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19209 CC="$lt_save_CC"
19214 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19215 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19216 { (exit 1); exit 1; }; }
19218 esac
19220 # Append the new tag name to the list of available tags.
19221 if test -n "$tagname" ; then
19222 available_tags="$available_tags $tagname"
19225 done
19226 IFS="$lt_save_ifs"
19228 # Now substitute the updated list of available tags.
19229 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19230 mv "${ofile}T" "$ofile"
19231 chmod +x "$ofile"
19232 else
19233 rm -f "${ofile}T"
19234 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19235 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19236 { (exit 1); exit 1; }; }
19242 # This can be used to rebuild libtool when needed
19243 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19245 # Always use our own libtool.
19246 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19248 # Prevent multiple expansion
19270 if test "X$prefix" = "XNONE"; then
19271 acl_final_prefix="$ac_default_prefix"
19272 else
19273 acl_final_prefix="$prefix"
19275 if test "X$exec_prefix" = "XNONE"; then
19276 acl_final_exec_prefix='${prefix}'
19277 else
19278 acl_final_exec_prefix="$exec_prefix"
19280 acl_save_prefix="$prefix"
19281 prefix="$acl_final_prefix"
19282 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
19283 prefix="$acl_save_prefix"
19286 # Check whether --with-gnu-ld or --without-gnu-ld was given.
19287 if test "${with_gnu_ld+set}" = set; then
19288 withval="$with_gnu_ld"
19289 test "$withval" = no || with_gnu_ld=yes
19290 else
19291 with_gnu_ld=no
19293 # Prepare PATH_SEPARATOR.
19294 # The user is always right.
19295 if test "${PATH_SEPARATOR+set}" != set; then
19296 echo "#! /bin/sh" >conf$$.sh
19297 echo "exit 0" >>conf$$.sh
19298 chmod +x conf$$.sh
19299 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19300 PATH_SEPARATOR=';'
19301 else
19302 PATH_SEPARATOR=:
19304 rm -f conf$$.sh
19306 ac_prog=ld
19307 if test "$GCC" = yes; then
19308 # Check if gcc -print-prog-name=ld gives a path.
19309 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
19310 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
19311 case $host in
19312 *-*-mingw*)
19313 # gcc leaves a trailing carriage return which upsets mingw
19314 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19316 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19317 esac
19318 case $ac_prog in
19319 # Accept absolute paths.
19320 [\\/]* | [A-Za-z]:[\\/]*)
19321 re_direlt='/[^/][^/]*/\.\./'
19322 # Canonicalize the path of ld
19323 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
19324 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
19325 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
19326 done
19327 test -z "$LD" && LD="$ac_prog"
19330 # If it fails, then pretend we aren't using GCC.
19331 ac_prog=ld
19334 # If it is relative, then search for the first ld in PATH.
19335 with_gnu_ld=unknown
19337 esac
19338 elif test "$with_gnu_ld" = yes; then
19339 echo "$as_me:$LINENO: checking for GNU ld" >&5
19340 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
19341 else
19342 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
19343 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
19345 if test "${acl_cv_path_LD+set}" = set; then
19346 echo $ECHO_N "(cached) $ECHO_C" >&6
19347 else
19348 if test -z "$LD"; then
19349 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
19350 for ac_dir in $PATH; do
19351 test -z "$ac_dir" && ac_dir=.
19352 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19353 acl_cv_path_LD="$ac_dir/$ac_prog"
19354 # Check to see if the program is GNU ld. I'd rather use --version,
19355 # but apparently some GNU ld's only accept -v.
19356 # Break only if it was the GNU/non-GNU ld that we prefer.
19357 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
19358 *GNU* | *'with BFD'*)
19359 test "$with_gnu_ld" != no && break ;;
19361 test "$with_gnu_ld" != yes && break ;;
19362 esac
19364 done
19365 IFS="$ac_save_ifs"
19366 else
19367 acl_cv_path_LD="$LD" # Let the user override the test with a path.
19371 LD="$acl_cv_path_LD"
19372 if test -n "$LD"; then
19373 echo "$as_me:$LINENO: result: $LD" >&5
19374 echo "${ECHO_T}$LD" >&6
19375 else
19376 echo "$as_me:$LINENO: result: no" >&5
19377 echo "${ECHO_T}no" >&6
19379 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
19380 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
19381 { (exit 1); exit 1; }; }
19382 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
19383 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
19384 if test "${acl_cv_prog_gnu_ld+set}" = set; then
19385 echo $ECHO_N "(cached) $ECHO_C" >&6
19386 else
19387 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
19388 case `$LD -v 2>&1 </dev/null` in
19389 *GNU* | *'with BFD'*)
19390 acl_cv_prog_gnu_ld=yes ;;
19392 acl_cv_prog_gnu_ld=no ;;
19393 esac
19395 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
19396 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
19397 with_gnu_ld=$acl_cv_prog_gnu_ld
19402 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
19403 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
19404 if test "${acl_cv_rpath+set}" = set; then
19405 echo $ECHO_N "(cached) $ECHO_C" >&6
19406 else
19408 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
19409 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
19410 . ./conftest.sh
19411 rm -f ./conftest.sh
19412 acl_cv_rpath=done
19415 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
19416 echo "${ECHO_T}$acl_cv_rpath" >&6
19417 wl="$acl_cv_wl"
19418 libext="$acl_cv_libext"
19419 shlibext="$acl_cv_shlibext"
19420 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
19421 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
19422 hardcode_direct="$acl_cv_hardcode_direct"
19423 hardcode_minus_L="$acl_cv_hardcode_minus_L"
19424 # Check whether --enable-rpath or --disable-rpath was given.
19425 if test "${enable_rpath+set}" = set; then
19426 enableval="$enable_rpath"
19428 else
19429 enable_rpath=yes
19437 echo "$as_me:$LINENO: checking how to link with librpathx" >&5
19438 echo $ECHO_N "checking how to link with librpathx... $ECHO_C" >&6
19439 if test "${ac_cv_librpathx_libs+set}" = set; then
19440 echo $ECHO_N "(cached) $ECHO_C" >&6
19441 else
19445 use_additional=yes
19447 acl_save_prefix="$prefix"
19448 prefix="$acl_final_prefix"
19449 acl_save_exec_prefix="$exec_prefix"
19450 exec_prefix="$acl_final_exec_prefix"
19452 eval additional_includedir=\"$includedir\"
19453 eval additional_libdir=\"$libdir\"
19455 exec_prefix="$acl_save_exec_prefix"
19456 prefix="$acl_save_prefix"
19459 # Check whether --with-librpathx-prefix or --without-librpathx-prefix was given.
19460 if test "${with_librpathx_prefix+set}" = set; then
19461 withval="$with_librpathx_prefix"
19463 if test "X$withval" = "Xno"; then
19464 use_additional=no
19465 else
19466 if test "X$withval" = "X"; then
19468 acl_save_prefix="$prefix"
19469 prefix="$acl_final_prefix"
19470 acl_save_exec_prefix="$exec_prefix"
19471 exec_prefix="$acl_final_exec_prefix"
19473 eval additional_includedir=\"$includedir\"
19474 eval additional_libdir=\"$libdir\"
19476 exec_prefix="$acl_save_exec_prefix"
19477 prefix="$acl_save_prefix"
19479 else
19480 additional_includedir="$withval/include"
19481 additional_libdir="$withval/lib"
19486 LIBRPATHX=
19487 LTLIBRPATHX=
19488 INCRPATHX=
19489 rpathdirs=
19490 ltrpathdirs=
19491 names_already_handled=
19492 names_next_round='rpathx '
19493 while test -n "$names_next_round"; do
19494 names_this_round="$names_next_round"
19495 names_next_round=
19496 for name in $names_this_round; do
19497 already_handled=
19498 for n in $names_already_handled; do
19499 if test "$n" = "$name"; then
19500 already_handled=yes
19501 break
19503 done
19504 if test -z "$already_handled"; then
19505 names_already_handled="$names_already_handled $name"
19506 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
19507 eval value=\"\$HAVE_LIB$uppername\"
19508 if test -n "$value"; then
19509 if test "$value" = yes; then
19510 eval value=\"\$LIB$uppername\"
19511 test -z "$value" || LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$value"
19512 eval value=\"\$LTLIB$uppername\"
19513 test -z "$value" || LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }$value"
19514 else
19517 else
19518 found_dir=
19519 found_la=
19520 found_so=
19521 found_a=
19522 if test $use_additional = yes; then
19523 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
19524 found_dir="$additional_libdir"
19525 found_so="$additional_libdir/lib$name.$shlibext"
19526 if test -f "$additional_libdir/lib$name.la"; then
19527 found_la="$additional_libdir/lib$name.la"
19529 else
19530 if test -f "$additional_libdir/lib$name.$libext"; then
19531 found_dir="$additional_libdir"
19532 found_a="$additional_libdir/lib$name.$libext"
19533 if test -f "$additional_libdir/lib$name.la"; then
19534 found_la="$additional_libdir/lib$name.la"
19539 if test "X$found_dir" = "X"; then
19540 for x in $LDFLAGS $LTLIBRPATHX; do
19542 acl_save_prefix="$prefix"
19543 prefix="$acl_final_prefix"
19544 acl_save_exec_prefix="$exec_prefix"
19545 exec_prefix="$acl_final_exec_prefix"
19546 eval x=\"$x\"
19547 exec_prefix="$acl_save_exec_prefix"
19548 prefix="$acl_save_prefix"
19550 case "$x" in
19551 -L*)
19552 dir=`echo "X$x" | sed -e 's/^X-L//'`
19553 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
19554 found_dir="$dir"
19555 found_so="$dir/lib$name.$shlibext"
19556 if test -f "$dir/lib$name.la"; then
19557 found_la="$dir/lib$name.la"
19559 else
19560 if test -f "$dir/lib$name.$libext"; then
19561 found_dir="$dir"
19562 found_a="$dir/lib$name.$libext"
19563 if test -f "$dir/lib$name.la"; then
19564 found_la="$dir/lib$name.la"
19569 esac
19570 if test "X$found_dir" != "X"; then
19571 break
19573 done
19575 if test "X$found_dir" != "X"; then
19576 LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-L$found_dir -l$name"
19577 if test "X$found_so" != "X"; then
19578 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
19579 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so"
19580 else
19581 haveit=
19582 for x in $ltrpathdirs; do
19583 if test "X$x" = "X$found_dir"; then
19584 haveit=yes
19585 break
19587 done
19588 if test -z "$haveit"; then
19589 ltrpathdirs="$ltrpathdirs $found_dir"
19591 if test "$hardcode_direct" = yes; then
19592 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so"
19593 else
19594 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
19595 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so"
19596 haveit=
19597 for x in $rpathdirs; do
19598 if test "X$x" = "X$found_dir"; then
19599 haveit=yes
19600 break
19602 done
19603 if test -z "$haveit"; then
19604 rpathdirs="$rpathdirs $found_dir"
19606 else
19607 haveit=
19608 for x in $LDFLAGS $LIBRPATHX; do
19610 acl_save_prefix="$prefix"
19611 prefix="$acl_final_prefix"
19612 acl_save_exec_prefix="$exec_prefix"
19613 exec_prefix="$acl_final_exec_prefix"
19614 eval x=\"$x\"
19615 exec_prefix="$acl_save_exec_prefix"
19616 prefix="$acl_save_prefix"
19618 if test "X$x" = "X-L$found_dir"; then
19619 haveit=yes
19620 break
19622 done
19623 if test -z "$haveit"; then
19624 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-L$found_dir"
19626 if test "$hardcode_minus_L" != no; then
19627 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so"
19628 else
19629 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-l$name"
19634 else
19635 if test "X$found_a" != "X"; then
19636 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_a"
19637 else
19638 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-L$found_dir -l$name"
19641 additional_includedir=
19642 case "$found_dir" in
19643 */lib | */lib/)
19644 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
19645 additional_includedir="$basedir/include"
19647 esac
19648 if test "X$additional_includedir" != "X"; then
19649 if test "X$additional_includedir" != "X/usr/include"; then
19650 haveit=
19651 if test "X$additional_includedir" = "X/usr/local/include"; then
19652 if test -n "$GCC"; then
19653 case $host_os in
19654 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19655 esac
19658 if test -z "$haveit"; then
19659 for x in $CPPFLAGS $INCRPATHX; do
19661 acl_save_prefix="$prefix"
19662 prefix="$acl_final_prefix"
19663 acl_save_exec_prefix="$exec_prefix"
19664 exec_prefix="$acl_final_exec_prefix"
19665 eval x=\"$x\"
19666 exec_prefix="$acl_save_exec_prefix"
19667 prefix="$acl_save_prefix"
19669 if test "X$x" = "X-I$additional_includedir"; then
19670 haveit=yes
19671 break
19673 done
19674 if test -z "$haveit"; then
19675 if test -d "$additional_includedir"; then
19676 INCRPATHX="${INCRPATHX}${INCRPATHX:+ }-I$additional_includedir"
19682 if test -n "$found_la"; then
19683 save_libdir="$libdir"
19684 case "$found_la" in
19685 */* | *\\*) . "$found_la" ;;
19686 *) . "./$found_la" ;;
19687 esac
19688 libdir="$save_libdir"
19689 for dep in $dependency_libs; do
19690 case "$dep" in
19691 -L*)
19692 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19693 if test "X$additional_libdir" != "X/usr/lib"; then
19694 haveit=
19695 if test "X$additional_libdir" = "X/usr/local/lib"; then
19696 if test -n "$GCC"; then
19697 case $host_os in
19698 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19699 esac
19702 if test -z "$haveit"; then
19703 haveit=
19704 for x in $LDFLAGS $LIBRPATHX; do
19706 acl_save_prefix="$prefix"
19707 prefix="$acl_final_prefix"
19708 acl_save_exec_prefix="$exec_prefix"
19709 exec_prefix="$acl_final_exec_prefix"
19710 eval x=\"$x\"
19711 exec_prefix="$acl_save_exec_prefix"
19712 prefix="$acl_save_prefix"
19714 if test "X$x" = "X-L$additional_libdir"; then
19715 haveit=yes
19716 break
19718 done
19719 if test -z "$haveit"; then
19720 if test -d "$additional_libdir"; then
19721 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-L$additional_libdir"
19724 haveit=
19725 for x in $LDFLAGS $LTLIBRPATHX; do
19727 acl_save_prefix="$prefix"
19728 prefix="$acl_final_prefix"
19729 acl_save_exec_prefix="$exec_prefix"
19730 exec_prefix="$acl_final_exec_prefix"
19731 eval x=\"$x\"
19732 exec_prefix="$acl_save_exec_prefix"
19733 prefix="$acl_save_prefix"
19735 if test "X$x" = "X-L$additional_libdir"; then
19736 haveit=yes
19737 break
19739 done
19740 if test -z "$haveit"; then
19741 if test -d "$additional_libdir"; then
19742 LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-L$additional_libdir"
19748 -R*)
19749 dir=`echo "X$dep" | sed -e 's/^X-R//'`
19750 if test "$enable_rpath" != no; then
19751 haveit=
19752 for x in $rpathdirs; do
19753 if test "X$x" = "X$dir"; then
19754 haveit=yes
19755 break
19757 done
19758 if test -z "$haveit"; then
19759 rpathdirs="$rpathdirs $dir"
19761 haveit=
19762 for x in $ltrpathdirs; do
19763 if test "X$x" = "X$dir"; then
19764 haveit=yes
19765 break
19767 done
19768 if test -z "$haveit"; then
19769 ltrpathdirs="$ltrpathdirs $dir"
19773 -l*)
19774 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19776 *.la)
19777 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19780 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$dep"
19781 LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }$dep"
19783 esac
19784 done
19786 else
19787 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-l$name"
19788 LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-l$name"
19792 done
19793 done
19794 if test "X$rpathdirs" != "X"; then
19795 if test -n "$hardcode_libdir_separator"; then
19796 alldirs=
19797 for found_dir in $rpathdirs; do
19798 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
19799 done
19800 acl_save_libdir="$libdir"
19801 libdir="$alldirs"
19802 eval flag=\"$hardcode_libdir_flag_spec\"
19803 libdir="$acl_save_libdir"
19804 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$flag"
19805 else
19806 for found_dir in $rpathdirs; do
19807 acl_save_libdir="$libdir"
19808 libdir="$found_dir"
19809 eval flag=\"$hardcode_libdir_flag_spec\"
19810 libdir="$acl_save_libdir"
19811 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$flag"
19812 done
19815 if test "X$ltrpathdirs" != "X"; then
19816 for found_dir in $ltrpathdirs; do
19817 LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-R$found_dir"
19818 done
19821 ac_cv_librpathx_libs="$LIBRPATHX"
19822 ac_cv_librpathx_ltlibs="$LTLIBRPATHX"
19823 ac_cv_librpathx_cppflags="$INCRPATHX"
19826 echo "$as_me:$LINENO: result: $ac_cv_librpathx_libs" >&5
19827 echo "${ECHO_T}$ac_cv_librpathx_libs" >&6
19828 LIBRPATHX="$ac_cv_librpathx_libs"
19829 LTLIBRPATHX="$ac_cv_librpathx_ltlibs"
19830 INCRPATHX="$ac_cv_librpathx_cppflags"
19832 for element in $INCRPATHX; do
19833 haveit=
19834 for x in $CPPFLAGS; do
19836 acl_save_prefix="$prefix"
19837 prefix="$acl_final_prefix"
19838 acl_save_exec_prefix="$exec_prefix"
19839 exec_prefix="$acl_final_exec_prefix"
19840 eval x=\"$x\"
19841 exec_prefix="$acl_save_exec_prefix"
19842 prefix="$acl_save_prefix"
19844 if test "X$x" = "X$element"; then
19845 haveit=yes
19846 break
19848 done
19849 if test -z "$haveit"; then
19850 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19852 done
19856 HAVE_LIBRPATHX=yes
19861 ac_config_files="$ac_config_files Makefile"
19862 cat >confcache <<\_ACEOF
19863 # This file is a shell script that caches the results of configure
19864 # tests run on this system so they can be shared between configure
19865 # scripts and configure runs, see configure's option --config-cache.
19866 # It is not useful on other systems. If it contains results you don't
19867 # want to keep, you may remove or edit it.
19869 # config.status only pays attention to the cache file if you give it
19870 # the --recheck option to rerun configure.
19872 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19873 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19874 # following values.
19876 _ACEOF
19878 # The following way of writing the cache mishandles newlines in values,
19879 # but we know of no workaround that is simple, portable, and efficient.
19880 # So, don't put newlines in cache variables' values.
19881 # Ultrix sh set writes to stderr and can't be redirected directly,
19882 # and sets the high bit in the cache file unless we assign to the vars.
19884 (set) 2>&1 |
19885 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19886 *ac_space=\ *)
19887 # `set' does not quote correctly, so add quotes (double-quote
19888 # substitution turns \\\\ into \\, and sed turns \\ into \).
19889 sed -n \
19890 "s/'/'\\\\''/g;
19891 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19894 # `set' quotes correctly as required by POSIX, so do not add quotes.
19895 sed -n \
19896 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19898 esac;
19900 sed '
19901 t clear
19902 : clear
19903 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19904 t end
19905 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19906 : end' >>confcache
19907 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19908 if test -w $cache_file; then
19909 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19910 cat confcache >$cache_file
19911 else
19912 echo "not updating unwritable cache $cache_file"
19915 rm -f confcache
19917 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19918 # Let make expand exec_prefix.
19919 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19921 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19922 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19923 # trailing colons and then remove the whole line if VPATH becomes empty
19924 # (actually we leave an empty line to preserve line numbers).
19925 if test "x$srcdir" = x.; then
19926 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19927 s/:*\$(srcdir):*/:/;
19928 s/:*\${srcdir}:*/:/;
19929 s/:*@srcdir@:*/:/;
19930 s/^\([^=]*=[ ]*\):*/\1/;
19931 s/:*$//;
19932 s/^[^=]*=[ ]*$//;
19936 # Transform confdefs.h into DEFS.
19937 # Protect against shell expansion while executing Makefile rules.
19938 # Protect against Makefile macro expansion.
19940 # If the first sed substitution is executed (which looks for macros that
19941 # take arguments), then we branch to the quote section. Otherwise,
19942 # look for a macro that doesn't take arguments.
19943 cat >confdef2opt.sed <<\_ACEOF
19944 t clear
19945 : clear
19946 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
19947 t quote
19948 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
19949 t quote
19951 : quote
19952 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
19953 s,\[,\\&,g
19954 s,\],\\&,g
19955 s,\$,$$,g
19957 _ACEOF
19958 # We use echo to avoid assuming a particular line-breaking character.
19959 # The extra dot is to prevent the shell from consuming trailing
19960 # line-breaks from the sub-command output. A line-break within
19961 # single-quotes doesn't work because, if this script is created in a
19962 # platform that uses two characters for line-breaks (e.g., DOS), tr
19963 # would break.
19964 ac_LF_and_DOT=`echo; echo .`
19965 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
19966 rm -f confdef2opt.sed
19969 ac_libobjs=
19970 ac_ltlibobjs=
19971 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19972 # 1. Remove the extension, and $U if already installed.
19973 ac_i=`echo "$ac_i" |
19974 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19975 # 2. Add them.
19976 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19977 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19978 done
19979 LIBOBJS=$ac_libobjs
19981 LTLIBOBJS=$ac_ltlibobjs
19984 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19985 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19986 Usually this means the macro was only invoked conditionally." >&5
19987 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19988 Usually this means the macro was only invoked conditionally." >&2;}
19989 { (exit 1); exit 1; }; }
19991 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19992 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19993 Usually this means the macro was only invoked conditionally." >&5
19994 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19995 Usually this means the macro was only invoked conditionally." >&2;}
19996 { (exit 1); exit 1; }; }
19998 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19999 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20000 Usually this means the macro was only invoked conditionally." >&5
20001 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20002 Usually this means the macro was only invoked conditionally." >&2;}
20003 { (exit 1); exit 1; }; }
20006 : ${CONFIG_STATUS=./config.status}
20007 ac_clean_files_save=$ac_clean_files
20008 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20009 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20010 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20011 cat >$CONFIG_STATUS <<_ACEOF
20012 #! $SHELL
20013 # Generated by $as_me.
20014 # Run this file to recreate the current configuration.
20015 # Compiler output produced by configure, useful for debugging
20016 # configure, is in config.log if it exists.
20018 debug=false
20019 ac_cs_recheck=false
20020 ac_cs_silent=false
20021 SHELL=\${CONFIG_SHELL-$SHELL}
20022 _ACEOF
20024 cat >>$CONFIG_STATUS <<\_ACEOF
20025 ## --------------------- ##
20026 ## M4sh Initialization. ##
20027 ## --------------------- ##
20029 # Be Bourne compatible
20030 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20031 emulate sh
20032 NULLCMD=:
20033 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20034 # is contrary to our usage. Disable this feature.
20035 alias -g '${1+"$@"}'='"$@"'
20036 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20037 set -o posix
20039 DUALCASE=1; export DUALCASE # for MKS sh
20041 # Support unset when possible.
20042 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20043 as_unset=unset
20044 else
20045 as_unset=false
20049 # Work around bugs in pre-3.0 UWIN ksh.
20050 $as_unset ENV MAIL MAILPATH
20051 PS1='$ '
20052 PS2='> '
20053 PS4='+ '
20055 # NLS nuisances.
20056 for as_var in \
20057 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20058 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20059 LC_TELEPHONE LC_TIME
20061 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20062 eval $as_var=C; export $as_var
20063 else
20064 $as_unset $as_var
20066 done
20068 # Required to use basename.
20069 if expr a : '\(a\)' >/dev/null 2>&1; then
20070 as_expr=expr
20071 else
20072 as_expr=false
20075 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20076 as_basename=basename
20077 else
20078 as_basename=false
20082 # Name of the executable.
20083 as_me=`$as_basename "$0" ||
20084 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20085 X"$0" : 'X\(//\)$' \| \
20086 X"$0" : 'X\(/\)$' \| \
20087 . : '\(.\)' 2>/dev/null ||
20088 echo X/"$0" |
20089 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20090 /^X\/\(\/\/\)$/{ s//\1/; q; }
20091 /^X\/\(\/\).*/{ s//\1/; q; }
20092 s/.*/./; q'`
20095 # PATH needs CR, and LINENO needs CR and PATH.
20096 # Avoid depending upon Character Ranges.
20097 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20098 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20099 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20100 as_cr_digits='0123456789'
20101 as_cr_alnum=$as_cr_Letters$as_cr_digits
20103 # The user is always right.
20104 if test "${PATH_SEPARATOR+set}" != set; then
20105 echo "#! /bin/sh" >conf$$.sh
20106 echo "exit 0" >>conf$$.sh
20107 chmod +x conf$$.sh
20108 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20109 PATH_SEPARATOR=';'
20110 else
20111 PATH_SEPARATOR=:
20113 rm -f conf$$.sh
20117 as_lineno_1=$LINENO
20118 as_lineno_2=$LINENO
20119 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20120 test "x$as_lineno_1" != "x$as_lineno_2" &&
20121 test "x$as_lineno_3" = "x$as_lineno_2" || {
20122 # Find who we are. Look in the path if we contain no path at all
20123 # relative or not.
20124 case $0 in
20125 *[\\/]* ) as_myself=$0 ;;
20126 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20127 for as_dir in $PATH
20129 IFS=$as_save_IFS
20130 test -z "$as_dir" && as_dir=.
20131 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20132 done
20135 esac
20136 # We did not find ourselves, most probably we were run as `sh COMMAND'
20137 # in which case we are not to be found in the path.
20138 if test "x$as_myself" = x; then
20139 as_myself=$0
20141 if test ! -f "$as_myself"; then
20142 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20143 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20144 { (exit 1); exit 1; }; }
20146 case $CONFIG_SHELL in
20148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20149 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20151 IFS=$as_save_IFS
20152 test -z "$as_dir" && as_dir=.
20153 for as_base in sh bash ksh sh5; do
20154 case $as_dir in
20156 if ("$as_dir/$as_base" -c '
20157 as_lineno_1=$LINENO
20158 as_lineno_2=$LINENO
20159 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20160 test "x$as_lineno_1" != "x$as_lineno_2" &&
20161 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20162 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20163 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20164 CONFIG_SHELL=$as_dir/$as_base
20165 export CONFIG_SHELL
20166 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20167 fi;;
20168 esac
20169 done
20170 done
20172 esac
20174 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20175 # uniformly replaced by the line number. The first 'sed' inserts a
20176 # line-number line before each line; the second 'sed' does the real
20177 # work. The second script uses 'N' to pair each line-number line
20178 # with the numbered line, and appends trailing '-' during
20179 # substitution so that $LINENO is not a special case at line end.
20180 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20181 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20182 sed '=' <$as_myself |
20183 sed '
20185 s,$,-,
20186 : loop
20187 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20188 t loop
20189 s,-$,,
20190 s,^['$as_cr_digits']*\n,,
20191 ' >$as_me.lineno &&
20192 chmod +x $as_me.lineno ||
20193 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20194 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20195 { (exit 1); exit 1; }; }
20197 # Don't try to exec as it changes $[0], causing all sort of problems
20198 # (the dirname of $[0] is not the place where we might find the
20199 # original and so on. Autoconf is especially sensible to this).
20200 . ./$as_me.lineno
20201 # Exit status is that of the last command.
20202 exit
20206 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20207 *c*,-n*) ECHO_N= ECHO_C='
20208 ' ECHO_T=' ' ;;
20209 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20210 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20211 esac
20213 if expr a : '\(a\)' >/dev/null 2>&1; then
20214 as_expr=expr
20215 else
20216 as_expr=false
20219 rm -f conf$$ conf$$.exe conf$$.file
20220 echo >conf$$.file
20221 if ln -s conf$$.file conf$$ 2>/dev/null; then
20222 # We could just check for DJGPP; but this test a) works b) is more generic
20223 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20224 if test -f conf$$.exe; then
20225 # Don't use ln at all; we don't have any links
20226 as_ln_s='cp -p'
20227 else
20228 as_ln_s='ln -s'
20230 elif ln conf$$.file conf$$ 2>/dev/null; then
20231 as_ln_s=ln
20232 else
20233 as_ln_s='cp -p'
20235 rm -f conf$$ conf$$.exe conf$$.file
20237 if mkdir -p . 2>/dev/null; then
20238 as_mkdir_p=:
20239 else
20240 test -d ./-p && rmdir ./-p
20241 as_mkdir_p=false
20244 as_executable_p="test -f"
20246 # Sed expression to map a string onto a valid CPP name.
20247 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20249 # Sed expression to map a string onto a valid variable name.
20250 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20253 # IFS
20254 # We need space, tab and new line, in precisely that order.
20255 as_nl='
20257 IFS=" $as_nl"
20259 # CDPATH.
20260 $as_unset CDPATH
20262 exec 6>&1
20264 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20265 # report actual input values of CONFIG_FILES etc. instead of their
20266 # values after options handling. Logging --version etc. is OK.
20267 exec 5>>config.log
20269 echo
20270 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20271 ## Running $as_me. ##
20272 _ASBOX
20273 } >&5
20274 cat >&5 <<_CSEOF
20276 This file was extended by $as_me, which was
20277 generated by GNU Autoconf 2.59. Invocation command line was
20279 CONFIG_FILES = $CONFIG_FILES
20280 CONFIG_HEADERS = $CONFIG_HEADERS
20281 CONFIG_LINKS = $CONFIG_LINKS
20282 CONFIG_COMMANDS = $CONFIG_COMMANDS
20283 $ $0 $@
20285 _CSEOF
20286 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20287 echo >&5
20288 _ACEOF
20290 # Files that config.status was made for.
20291 if test -n "$ac_config_files"; then
20292 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20295 if test -n "$ac_config_headers"; then
20296 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20299 if test -n "$ac_config_links"; then
20300 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20303 if test -n "$ac_config_commands"; then
20304 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20307 cat >>$CONFIG_STATUS <<\_ACEOF
20309 ac_cs_usage="\
20310 \`$as_me' instantiates files from templates according to the
20311 current configuration.
20313 Usage: $0 [OPTIONS] [FILE]...
20315 -h, --help print this help, then exit
20316 -V, --version print version number, then exit
20317 -q, --quiet do not print progress messages
20318 -d, --debug don't remove temporary files
20319 --recheck update $as_me by reconfiguring in the same conditions
20320 --file=FILE[:TEMPLATE]
20321 instantiate the configuration file FILE
20323 Configuration files:
20324 $config_files
20326 Configuration commands:
20327 $config_commands
20329 Report bugs to <bug-autoconf@gnu.org>."
20330 _ACEOF
20332 cat >>$CONFIG_STATUS <<_ACEOF
20333 ac_cs_version="\\
20334 config.status
20335 configured by $0, generated by GNU Autoconf 2.59,
20336 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20338 Copyright (C) 2003 Free Software Foundation, Inc.
20339 This config.status script is free software; the Free Software Foundation
20340 gives unlimited permission to copy, distribute and modify it."
20341 srcdir=$srcdir
20342 INSTALL="$INSTALL"
20343 _ACEOF
20345 cat >>$CONFIG_STATUS <<\_ACEOF
20346 # If no file are specified by the user, then we need to provide default
20347 # value. By we need to know if files were specified by the user.
20348 ac_need_defaults=:
20349 while test $# != 0
20351 case $1 in
20352 --*=*)
20353 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20354 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20355 ac_shift=:
20358 ac_option=$1
20359 ac_optarg=$2
20360 ac_shift=shift
20362 *) # This is not an option, so the user has probably given explicit
20363 # arguments.
20364 ac_option=$1
20365 ac_need_defaults=false;;
20366 esac
20368 case $ac_option in
20369 # Handling of the options.
20370 _ACEOF
20371 cat >>$CONFIG_STATUS <<\_ACEOF
20372 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20373 ac_cs_recheck=: ;;
20374 --version | --vers* | -V )
20375 echo "$ac_cs_version"; exit 0 ;;
20376 --he | --h)
20377 # Conflict between --help and --header
20378 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20379 Try \`$0 --help' for more information." >&5
20380 echo "$as_me: error: ambiguous option: $1
20381 Try \`$0 --help' for more information." >&2;}
20382 { (exit 1); exit 1; }; };;
20383 --help | --hel | -h )
20384 echo "$ac_cs_usage"; exit 0 ;;
20385 --debug | --d* | -d )
20386 debug=: ;;
20387 --file | --fil | --fi | --f )
20388 $ac_shift
20389 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20390 ac_need_defaults=false;;
20391 --header | --heade | --head | --hea )
20392 $ac_shift
20393 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20394 ac_need_defaults=false;;
20395 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20396 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20397 ac_cs_silent=: ;;
20399 # This is an error.
20400 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20401 Try \`$0 --help' for more information." >&5
20402 echo "$as_me: error: unrecognized option: $1
20403 Try \`$0 --help' for more information." >&2;}
20404 { (exit 1); exit 1; }; } ;;
20406 *) ac_config_targets="$ac_config_targets $1" ;;
20408 esac
20409 shift
20410 done
20412 ac_configure_extra_args=
20414 if $ac_cs_silent; then
20415 exec 6>/dev/null
20416 ac_configure_extra_args="$ac_configure_extra_args --silent"
20419 _ACEOF
20420 cat >>$CONFIG_STATUS <<_ACEOF
20421 if \$ac_cs_recheck; then
20422 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20423 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20426 _ACEOF
20428 cat >>$CONFIG_STATUS <<_ACEOF
20430 # INIT-COMMANDS section.
20433 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20435 _ACEOF
20439 cat >>$CONFIG_STATUS <<\_ACEOF
20440 for ac_config_target in $ac_config_targets
20442 case "$ac_config_target" in
20443 # Handling of arguments.
20444 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20445 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20446 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20447 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20448 { (exit 1); exit 1; }; };;
20449 esac
20450 done
20452 # If the user did not use the arguments to specify the items to instantiate,
20453 # then the envvar interface is used. Set only those that are not.
20454 # We use the long form for the default assignment because of an extremely
20455 # bizarre bug on SunOS 4.1.3.
20456 if $ac_need_defaults; then
20457 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20458 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20461 # Have a temporary directory for convenience. Make it in the build tree
20462 # simply because there is no reason to put it here, and in addition,
20463 # creating and moving files from /tmp can sometimes cause problems.
20464 # Create a temporary directory, and hook for its removal unless debugging.
20465 $debug ||
20467 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20468 trap '{ (exit 1); exit 1; }' 1 2 13 15
20471 # Create a (secure) tmp directory for tmp files.
20474 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20475 test -n "$tmp" && test -d "$tmp"
20476 } ||
20478 tmp=./confstat$$-$RANDOM
20479 (umask 077 && mkdir $tmp)
20480 } ||
20482 echo "$me: cannot create a temporary directory in ." >&2
20483 { (exit 1); exit 1; }
20486 _ACEOF
20488 cat >>$CONFIG_STATUS <<_ACEOF
20491 # CONFIG_FILES section.
20494 # No need to generate the scripts if there are no CONFIG_FILES.
20495 # This happens for instance when ./config.status config.h
20496 if test -n "\$CONFIG_FILES"; then
20497 # Protect against being on the right side of a sed subst in config.status.
20498 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20499 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20500 s,@SHELL@,$SHELL,;t t
20501 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20502 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20503 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20504 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20505 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20506 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20507 s,@exec_prefix@,$exec_prefix,;t t
20508 s,@prefix@,$prefix,;t t
20509 s,@program_transform_name@,$program_transform_name,;t t
20510 s,@bindir@,$bindir,;t t
20511 s,@sbindir@,$sbindir,;t t
20512 s,@libexecdir@,$libexecdir,;t t
20513 s,@datadir@,$datadir,;t t
20514 s,@sysconfdir@,$sysconfdir,;t t
20515 s,@sharedstatedir@,$sharedstatedir,;t t
20516 s,@localstatedir@,$localstatedir,;t t
20517 s,@libdir@,$libdir,;t t
20518 s,@includedir@,$includedir,;t t
20519 s,@oldincludedir@,$oldincludedir,;t t
20520 s,@infodir@,$infodir,;t t
20521 s,@mandir@,$mandir,;t t
20522 s,@build_alias@,$build_alias,;t t
20523 s,@host_alias@,$host_alias,;t t
20524 s,@target_alias@,$target_alias,;t t
20525 s,@DEFS@,$DEFS,;t t
20526 s,@ECHO_C@,$ECHO_C,;t t
20527 s,@ECHO_N@,$ECHO_N,;t t
20528 s,@ECHO_T@,$ECHO_T,;t t
20529 s,@LIBS@,$LIBS,;t t
20530 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20531 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20532 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20533 s,@CYGPATH_W@,$CYGPATH_W,;t t
20534 s,@PACKAGE@,$PACKAGE,;t t
20535 s,@VERSION@,$VERSION,;t t
20536 s,@ACLOCAL@,$ACLOCAL,;t t
20537 s,@AUTOCONF@,$AUTOCONF,;t t
20538 s,@AUTOMAKE@,$AUTOMAKE,;t t
20539 s,@AUTOHEADER@,$AUTOHEADER,;t t
20540 s,@MAKEINFO@,$MAKEINFO,;t t
20541 s,@install_sh@,$install_sh,;t t
20542 s,@STRIP@,$STRIP,;t t
20543 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20544 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20545 s,@mkdir_p@,$mkdir_p,;t t
20546 s,@AWK@,$AWK,;t t
20547 s,@SET_MAKE@,$SET_MAKE,;t t
20548 s,@am__leading_dot@,$am__leading_dot,;t t
20549 s,@AMTAR@,$AMTAR,;t t
20550 s,@am__tar@,$am__tar,;t t
20551 s,@am__untar@,$am__untar,;t t
20552 s,@CC@,$CC,;t t
20553 s,@CFLAGS@,$CFLAGS,;t t
20554 s,@LDFLAGS@,$LDFLAGS,;t t
20555 s,@CPPFLAGS@,$CPPFLAGS,;t t
20556 s,@ac_ct_CC@,$ac_ct_CC,;t t
20557 s,@EXEEXT@,$EXEEXT,;t t
20558 s,@OBJEXT@,$OBJEXT,;t t
20559 s,@DEPDIR@,$DEPDIR,;t t
20560 s,@am__include@,$am__include,;t t
20561 s,@am__quote@,$am__quote,;t t
20562 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20563 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20564 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20565 s,@CCDEPMODE@,$CCDEPMODE,;t t
20566 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20567 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20568 s,@build@,$build,;t t
20569 s,@build_cpu@,$build_cpu,;t t
20570 s,@build_vendor@,$build_vendor,;t t
20571 s,@build_os@,$build_os,;t t
20572 s,@host@,$host,;t t
20573 s,@host_cpu@,$host_cpu,;t t
20574 s,@host_vendor@,$host_vendor,;t t
20575 s,@host_os@,$host_os,;t t
20576 s,@EGREP@,$EGREP,;t t
20577 s,@LN_S@,$LN_S,;t t
20578 s,@ECHO@,$ECHO,;t t
20579 s,@AR@,$AR,;t t
20580 s,@ac_ct_AR@,$ac_ct_AR,;t t
20581 s,@RANLIB@,$RANLIB,;t t
20582 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20583 s,@CPP@,$CPP,;t t
20584 s,@CXX@,$CXX,;t t
20585 s,@CXXFLAGS@,$CXXFLAGS,;t t
20586 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20587 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20588 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20589 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20590 s,@CXXCPP@,$CXXCPP,;t t
20591 s,@F77@,$F77,;t t
20592 s,@FFLAGS@,$FFLAGS,;t t
20593 s,@ac_ct_F77@,$ac_ct_F77,;t t
20594 s,@LIBTOOL@,$LIBTOOL,;t t
20595 s,@LIBRPATHX@,$LIBRPATHX,;t t
20596 s,@LTLIBRPATHX@,$LTLIBRPATHX,;t t
20597 s,@global_top_auxdir@,$global_top_auxdir,;t t
20598 s,@LIBOBJS@,$LIBOBJS,;t t
20599 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20600 CEOF
20602 _ACEOF
20604 cat >>$CONFIG_STATUS <<\_ACEOF
20605 # Split the substitutions into bite-sized pieces for seds with
20606 # small command number limits, like on Digital OSF/1 and HP-UX.
20607 ac_max_sed_lines=48
20608 ac_sed_frag=1 # Number of current file.
20609 ac_beg=1 # First line for current file.
20610 ac_end=$ac_max_sed_lines # Line after last line for current file.
20611 ac_more_lines=:
20612 ac_sed_cmds=
20613 while $ac_more_lines; do
20614 if test $ac_beg -gt 1; then
20615 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20616 else
20617 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20619 if test ! -s $tmp/subs.frag; then
20620 ac_more_lines=false
20621 else
20622 # The purpose of the label and of the branching condition is to
20623 # speed up the sed processing (if there are no `@' at all, there
20624 # is no need to browse any of the substitutions).
20625 # These are the two extra sed commands mentioned above.
20626 (echo ':t
20627 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20628 if test -z "$ac_sed_cmds"; then
20629 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20630 else
20631 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20633 ac_sed_frag=`expr $ac_sed_frag + 1`
20634 ac_beg=$ac_end
20635 ac_end=`expr $ac_end + $ac_max_sed_lines`
20637 done
20638 if test -z "$ac_sed_cmds"; then
20639 ac_sed_cmds=cat
20641 fi # test -n "$CONFIG_FILES"
20643 _ACEOF
20644 cat >>$CONFIG_STATUS <<\_ACEOF
20645 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20646 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20647 case $ac_file in
20648 - | *:- | *:-:* ) # input from stdin
20649 cat >$tmp/stdin
20650 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20651 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20652 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20653 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20654 * ) ac_file_in=$ac_file.in ;;
20655 esac
20657 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20658 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20659 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20660 X"$ac_file" : 'X\(//\)[^/]' \| \
20661 X"$ac_file" : 'X\(//\)$' \| \
20662 X"$ac_file" : 'X\(/\)' \| \
20663 . : '\(.\)' 2>/dev/null ||
20664 echo X"$ac_file" |
20665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20666 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20667 /^X\(\/\/\)$/{ s//\1/; q; }
20668 /^X\(\/\).*/{ s//\1/; q; }
20669 s/.*/./; q'`
20670 { if $as_mkdir_p; then
20671 mkdir -p "$ac_dir"
20672 else
20673 as_dir="$ac_dir"
20674 as_dirs=
20675 while test ! -d "$as_dir"; do
20676 as_dirs="$as_dir $as_dirs"
20677 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20678 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20679 X"$as_dir" : 'X\(//\)[^/]' \| \
20680 X"$as_dir" : 'X\(//\)$' \| \
20681 X"$as_dir" : 'X\(/\)' \| \
20682 . : '\(.\)' 2>/dev/null ||
20683 echo X"$as_dir" |
20684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20685 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20686 /^X\(\/\/\)$/{ s//\1/; q; }
20687 /^X\(\/\).*/{ s//\1/; q; }
20688 s/.*/./; q'`
20689 done
20690 test ! -n "$as_dirs" || mkdir $as_dirs
20691 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20692 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20693 { (exit 1); exit 1; }; }; }
20695 ac_builddir=.
20697 if test "$ac_dir" != .; then
20698 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20699 # A "../" for each directory in $ac_dir_suffix.
20700 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20701 else
20702 ac_dir_suffix= ac_top_builddir=
20705 case $srcdir in
20706 .) # No --srcdir option. We are building in place.
20707 ac_srcdir=.
20708 if test -z "$ac_top_builddir"; then
20709 ac_top_srcdir=.
20710 else
20711 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20712 fi ;;
20713 [\\/]* | ?:[\\/]* ) # Absolute path.
20714 ac_srcdir=$srcdir$ac_dir_suffix;
20715 ac_top_srcdir=$srcdir ;;
20716 *) # Relative path.
20717 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20718 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20719 esac
20721 # Do not use `cd foo && pwd` to compute absolute paths, because
20722 # the directories may not exist.
20723 case `pwd` in
20724 .) ac_abs_builddir="$ac_dir";;
20726 case "$ac_dir" in
20727 .) ac_abs_builddir=`pwd`;;
20728 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20729 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20730 esac;;
20731 esac
20732 case $ac_abs_builddir in
20733 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20735 case ${ac_top_builddir}. in
20736 .) ac_abs_top_builddir=$ac_abs_builddir;;
20737 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20738 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20739 esac;;
20740 esac
20741 case $ac_abs_builddir in
20742 .) ac_abs_srcdir=$ac_srcdir;;
20744 case $ac_srcdir in
20745 .) ac_abs_srcdir=$ac_abs_builddir;;
20746 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20747 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20748 esac;;
20749 esac
20750 case $ac_abs_builddir in
20751 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20753 case $ac_top_srcdir in
20754 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20755 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20756 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20757 esac;;
20758 esac
20761 case $INSTALL in
20762 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20763 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20764 esac
20766 if test x"$ac_file" != x-; then
20767 { echo "$as_me:$LINENO: creating $ac_file" >&5
20768 echo "$as_me: creating $ac_file" >&6;}
20769 rm -f "$ac_file"
20771 # Let's still pretend it is `configure' which instantiates (i.e., don't
20772 # use $as_me), people would be surprised to read:
20773 # /* config.h. Generated by config.status. */
20774 if test x"$ac_file" = x-; then
20775 configure_input=
20776 else
20777 configure_input="$ac_file. "
20779 configure_input=$configure_input"Generated from `echo $ac_file_in |
20780 sed 's,.*/,,'` by configure."
20782 # First look for the input files in the build tree, otherwise in the
20783 # src tree.
20784 ac_file_inputs=`IFS=:
20785 for f in $ac_file_in; do
20786 case $f in
20787 -) echo $tmp/stdin ;;
20788 [\\/$]*)
20789 # Absolute (can't be DOS-style, as IFS=:)
20790 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20791 echo "$as_me: error: cannot find input file: $f" >&2;}
20792 { (exit 1); exit 1; }; }
20793 echo "$f";;
20794 *) # Relative
20795 if test -f "$f"; then
20796 # Build tree
20797 echo "$f"
20798 elif test -f "$srcdir/$f"; then
20799 # Source tree
20800 echo "$srcdir/$f"
20801 else
20802 # /dev/null tree
20803 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20804 echo "$as_me: error: cannot find input file: $f" >&2;}
20805 { (exit 1); exit 1; }; }
20806 fi;;
20807 esac
20808 done` || { (exit 1); exit 1; }
20809 _ACEOF
20810 cat >>$CONFIG_STATUS <<_ACEOF
20811 sed "$ac_vpsub
20812 $extrasub
20813 _ACEOF
20814 cat >>$CONFIG_STATUS <<\_ACEOF
20816 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20817 s,@configure_input@,$configure_input,;t t
20818 s,@srcdir@,$ac_srcdir,;t t
20819 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20820 s,@top_srcdir@,$ac_top_srcdir,;t t
20821 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20822 s,@builddir@,$ac_builddir,;t t
20823 s,@abs_builddir@,$ac_abs_builddir,;t t
20824 s,@top_builddir@,$ac_top_builddir,;t t
20825 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20826 s,@INSTALL@,$ac_INSTALL,;t t
20827 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20828 rm -f $tmp/stdin
20829 if test x"$ac_file" != x-; then
20830 mv $tmp/out $ac_file
20831 else
20832 cat $tmp/out
20833 rm -f $tmp/out
20836 done
20837 _ACEOF
20838 cat >>$CONFIG_STATUS <<\_ACEOF
20841 # CONFIG_COMMANDS section.
20843 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20844 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20845 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20846 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20847 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20848 X"$ac_dest" : 'X\(//\)[^/]' \| \
20849 X"$ac_dest" : 'X\(//\)$' \| \
20850 X"$ac_dest" : 'X\(/\)' \| \
20851 . : '\(.\)' 2>/dev/null ||
20852 echo X"$ac_dest" |
20853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20854 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20855 /^X\(\/\/\)$/{ s//\1/; q; }
20856 /^X\(\/\).*/{ s//\1/; q; }
20857 s/.*/./; q'`
20858 { if $as_mkdir_p; then
20859 mkdir -p "$ac_dir"
20860 else
20861 as_dir="$ac_dir"
20862 as_dirs=
20863 while test ! -d "$as_dir"; do
20864 as_dirs="$as_dir $as_dirs"
20865 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20866 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20867 X"$as_dir" : 'X\(//\)[^/]' \| \
20868 X"$as_dir" : 'X\(//\)$' \| \
20869 X"$as_dir" : 'X\(/\)' \| \
20870 . : '\(.\)' 2>/dev/null ||
20871 echo X"$as_dir" |
20872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20874 /^X\(\/\/\)$/{ s//\1/; q; }
20875 /^X\(\/\).*/{ s//\1/; q; }
20876 s/.*/./; q'`
20877 done
20878 test ! -n "$as_dirs" || mkdir $as_dirs
20879 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20880 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20881 { (exit 1); exit 1; }; }; }
20883 ac_builddir=.
20885 if test "$ac_dir" != .; then
20886 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20887 # A "../" for each directory in $ac_dir_suffix.
20888 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20889 else
20890 ac_dir_suffix= ac_top_builddir=
20893 case $srcdir in
20894 .) # No --srcdir option. We are building in place.
20895 ac_srcdir=.
20896 if test -z "$ac_top_builddir"; then
20897 ac_top_srcdir=.
20898 else
20899 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20900 fi ;;
20901 [\\/]* | ?:[\\/]* ) # Absolute path.
20902 ac_srcdir=$srcdir$ac_dir_suffix;
20903 ac_top_srcdir=$srcdir ;;
20904 *) # Relative path.
20905 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20906 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20907 esac
20909 # Do not use `cd foo && pwd` to compute absolute paths, because
20910 # the directories may not exist.
20911 case `pwd` in
20912 .) ac_abs_builddir="$ac_dir";;
20914 case "$ac_dir" in
20915 .) ac_abs_builddir=`pwd`;;
20916 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20917 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20918 esac;;
20919 esac
20920 case $ac_abs_builddir in
20921 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20923 case ${ac_top_builddir}. in
20924 .) ac_abs_top_builddir=$ac_abs_builddir;;
20925 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20926 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20927 esac;;
20928 esac
20929 case $ac_abs_builddir in
20930 .) ac_abs_srcdir=$ac_srcdir;;
20932 case $ac_srcdir in
20933 .) ac_abs_srcdir=$ac_abs_builddir;;
20934 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20935 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20936 esac;;
20937 esac
20938 case $ac_abs_builddir in
20939 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20941 case $ac_top_srcdir in
20942 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20943 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20944 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20945 esac;;
20946 esac
20949 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20950 echo "$as_me: executing $ac_dest commands" >&6;}
20951 case $ac_dest in
20952 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20953 # Strip MF so we end up with the name of the file.
20954 mf=`echo "$mf" | sed -e 's/:.*$//'`
20955 # Check whether this is an Automake generated Makefile or not.
20956 # We used to match only the files named `Makefile.in', but
20957 # some people rename them; so instead we look at the file content.
20958 # Grep'ing the first line is not enough: some people post-process
20959 # each Makefile.in and add a new line on top of each file to say so.
20960 # So let's grep whole file.
20961 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20962 dirpart=`(dirname "$mf") 2>/dev/null ||
20963 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20964 X"$mf" : 'X\(//\)[^/]' \| \
20965 X"$mf" : 'X\(//\)$' \| \
20966 X"$mf" : 'X\(/\)' \| \
20967 . : '\(.\)' 2>/dev/null ||
20968 echo X"$mf" |
20969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20970 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20971 /^X\(\/\/\)$/{ s//\1/; q; }
20972 /^X\(\/\).*/{ s//\1/; q; }
20973 s/.*/./; q'`
20974 else
20975 continue
20977 # Extract the definition of DEPDIR, am__include, and am__quote
20978 # from the Makefile without running `make'.
20979 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20980 test -z "$DEPDIR" && continue
20981 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20982 test -z "am__include" && continue
20983 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20984 # When using ansi2knr, U may be empty or an underscore; expand it
20985 U=`sed -n 's/^U = //p' < "$mf"`
20986 # Find all dependency output files, they are included files with
20987 # $(DEPDIR) in their names. We invoke sed twice because it is the
20988 # simplest approach to changing $(DEPDIR) to its actual value in the
20989 # expansion.
20990 for file in `sed -n "
20991 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20992 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20993 # Make sure the directory exists.
20994 test -f "$dirpart/$file" && continue
20995 fdir=`(dirname "$file") 2>/dev/null ||
20996 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20997 X"$file" : 'X\(//\)[^/]' \| \
20998 X"$file" : 'X\(//\)$' \| \
20999 X"$file" : 'X\(/\)' \| \
21000 . : '\(.\)' 2>/dev/null ||
21001 echo X"$file" |
21002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21003 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21004 /^X\(\/\/\)$/{ s//\1/; q; }
21005 /^X\(\/\).*/{ s//\1/; q; }
21006 s/.*/./; q'`
21007 { if $as_mkdir_p; then
21008 mkdir -p $dirpart/$fdir
21009 else
21010 as_dir=$dirpart/$fdir
21011 as_dirs=
21012 while test ! -d "$as_dir"; do
21013 as_dirs="$as_dir $as_dirs"
21014 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21015 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21016 X"$as_dir" : 'X\(//\)[^/]' \| \
21017 X"$as_dir" : 'X\(//\)$' \| \
21018 X"$as_dir" : 'X\(/\)' \| \
21019 . : '\(.\)' 2>/dev/null ||
21020 echo X"$as_dir" |
21021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21022 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21023 /^X\(\/\/\)$/{ s//\1/; q; }
21024 /^X\(\/\).*/{ s//\1/; q; }
21025 s/.*/./; q'`
21026 done
21027 test ! -n "$as_dirs" || mkdir $as_dirs
21028 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21029 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21030 { (exit 1); exit 1; }; }; }
21032 # echo "creating $dirpart/$file"
21033 echo '# dummy' > "$dirpart/$file"
21034 done
21035 done
21037 esac
21038 done
21039 _ACEOF
21041 cat >>$CONFIG_STATUS <<\_ACEOF
21043 { (exit 0); exit 0; }
21044 _ACEOF
21045 chmod +x $CONFIG_STATUS
21046 ac_clean_files=$ac_clean_files_save
21049 # configure is writing to config.log, and then calls config.status.
21050 # config.status does its own redirection, appending to config.log.
21051 # Unfortunately, on DOS this fails, as config.log is still kept open
21052 # by configure, so config.status won't be able to write to it; its
21053 # output is simply discarded. So we exec the FD to /dev/null,
21054 # effectively closing config.log, so it can be properly (re)opened and
21055 # appended to by config.status. When coming back to configure, we
21056 # need to make the FD available again.
21057 if test "$no_create" != yes; then
21058 ac_cs_success=:
21059 ac_config_status_args=
21060 test "$silent" = yes &&
21061 ac_config_status_args="$ac_config_status_args --quiet"
21062 exec 5>/dev/null
21063 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21064 exec 5>>config.log
21065 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21066 # would make configure fail if this is the last instruction.
21067 $ac_cs_success || { (exit 1); exit 1; }