Added AM_MAINTAINER_MODE to configure.in
[sdlpango.git] / configure
blob9195ccf185f58340983c492bcf31647189aa52a6
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 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289 echo_test_string="`eval $cmd`" &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
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=`echo "$tagnames,CXX" | sed 's/^,//'`
396 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
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="README"
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 MAJOR_VERSION MINOR_VERSION MICRO_VERSION INTERFACE_AGE BINARY_AGE VERSION LT_RELEASE LT_CURRENT LT_REVISION LT_AGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG PANGO_CFLAGS PANGO_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS SDL_CONFIG SDL_CFLAGS SDL_LIBS 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 --target=TARGET configure for building compilers for TARGET [HOST]
1017 _ACEOF
1020 if test -n "$ac_init_help"; then
1022 cat <<\_ACEOF
1024 Optional Features:
1025 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1026 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1027 --enable-shared[=PKGS]
1028 build shared libraries [default=yes]
1029 --enable-static[=PKGS]
1030 build static libraries [default=yes]
1031 --enable-fast-install[=PKGS]
1032 optimize for fast installation [default=yes]
1033 --disable-dependency-tracking speeds up one-time build
1034 --enable-dependency-tracking do not reject slow dependency extractors
1035 --disable-libtool-lock avoid locking (might break parallel builds)
1036 --disable-sdltest Do not try to compile and run a test SDL program
1038 Optional Packages:
1039 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1040 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1041 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1042 --with-pic try to use only PIC/non-PIC objects [default=use
1043 both]
1044 --with-tags[=TAGS]
1045 include additional configurations [automatic]
1046 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1047 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
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
1502 # Set various version strings - taken gratefully from the GTk sources
1504 # Making releases:
1505 # MICRO_VERSION += 1;
1506 # INTERFACE_AGE += 1;
1507 # BINARY_AGE += 1;
1508 # if any functions have been added, set INTERFACE_AGE to 0.
1509 # if backwards compatibility has been broken,
1510 # set BINARY_AGE and INTERFACE_AGE to 0.
1512 MAJOR_VERSION=0
1513 MINOR_VERSION=1
1514 MICRO_VERSION=2
1515 INTERFACE_AGE=0
1516 BINARY_AGE=1
1517 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
1526 # libtool versioning
1528 LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION
1529 LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE`
1530 LT_REVISION=$INTERFACE_AGE
1531 LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE`
1538 # Detect the canonical host and target build environment
1540 ac_aux_dir=
1541 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1542 if test -f $ac_dir/install-sh; then
1543 ac_aux_dir=$ac_dir
1544 ac_install_sh="$ac_aux_dir/install-sh -c"
1545 break
1546 elif test -f $ac_dir/install.sh; then
1547 ac_aux_dir=$ac_dir
1548 ac_install_sh="$ac_aux_dir/install.sh -c"
1549 break
1550 elif test -f $ac_dir/shtool; then
1551 ac_aux_dir=$ac_dir
1552 ac_install_sh="$ac_aux_dir/shtool install -c"
1553 break
1555 done
1556 if test -z "$ac_aux_dir"; then
1557 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1558 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1559 { (exit 1); exit 1; }; }
1561 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1562 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1563 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1565 # Make sure we can run config.sub.
1566 $ac_config_sub sun4 >/dev/null 2>&1 ||
1567 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1568 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1569 { (exit 1); exit 1; }; }
1571 echo "$as_me:$LINENO: checking build system type" >&5
1572 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1573 if test "${ac_cv_build+set}" = set; then
1574 echo $ECHO_N "(cached) $ECHO_C" >&6
1575 else
1576 ac_cv_build_alias=$build_alias
1577 test -z "$ac_cv_build_alias" &&
1578 ac_cv_build_alias=`$ac_config_guess`
1579 test -z "$ac_cv_build_alias" &&
1580 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1581 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1582 { (exit 1); exit 1; }; }
1583 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1584 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1585 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1586 { (exit 1); exit 1; }; }
1589 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1590 echo "${ECHO_T}$ac_cv_build" >&6
1591 build=$ac_cv_build
1592 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1593 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1594 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1597 echo "$as_me:$LINENO: checking host system type" >&5
1598 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1599 if test "${ac_cv_host+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1601 else
1602 ac_cv_host_alias=$host_alias
1603 test -z "$ac_cv_host_alias" &&
1604 ac_cv_host_alias=$ac_cv_build_alias
1605 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1606 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1607 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1608 { (exit 1); exit 1; }; }
1611 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1612 echo "${ECHO_T}$ac_cv_host" >&6
1613 host=$ac_cv_host
1614 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1615 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1616 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1619 echo "$as_me:$LINENO: checking target system type" >&5
1620 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1621 if test "${ac_cv_target+set}" = set; then
1622 echo $ECHO_N "(cached) $ECHO_C" >&6
1623 else
1624 ac_cv_target_alias=$target_alias
1625 test "x$ac_cv_target_alias" = "x" &&
1626 ac_cv_target_alias=$ac_cv_host_alias
1627 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1628 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1629 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1630 { (exit 1); exit 1; }; }
1633 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1634 echo "${ECHO_T}$ac_cv_target" >&6
1635 target=$ac_cv_target
1636 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1637 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1638 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1641 # The aliases save the names the user supplied, while $host etc.
1642 # will get canonicalized.
1643 test -n "$target_alias" &&
1644 test "$program_prefix$program_suffix$program_transform_name" = \
1645 NONENONEs,x,x, &&
1646 program_prefix=${target_alias}-
1648 # Setup for automake
1650 am__api_version="1.8"
1651 # Find a good install program. We prefer a C program (faster),
1652 # so one script is as good as another. But avoid the broken or
1653 # incompatible versions:
1654 # SysV /etc/install, /usr/sbin/install
1655 # SunOS /usr/etc/install
1656 # IRIX /sbin/install
1657 # AIX /bin/install
1658 # AmigaOS /C/install, which installs bootblocks on floppy discs
1659 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1660 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1661 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1662 # OS/2's system install, which has a completely different semantic
1663 # ./install, which can be erroneously created by make from ./install.sh.
1664 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1665 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1666 if test -z "$INSTALL"; then
1667 if test "${ac_cv_path_install+set}" = set; then
1668 echo $ECHO_N "(cached) $ECHO_C" >&6
1669 else
1670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1671 for as_dir in $PATH
1673 IFS=$as_save_IFS
1674 test -z "$as_dir" && as_dir=.
1675 # Account for people who put trailing slashes in PATH elements.
1676 case $as_dir/ in
1677 ./ | .// | /cC/* | \
1678 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1679 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1680 /usr/ucb/* ) ;;
1682 # OSF1 and SCO ODT 3.0 have their own names for install.
1683 # Don't use installbsd from OSF since it installs stuff as root
1684 # by default.
1685 for ac_prog in ginstall scoinst install; do
1686 for ac_exec_ext in '' $ac_executable_extensions; do
1687 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1688 if test $ac_prog = install &&
1689 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1690 # AIX install. It has an incompatible calling convention.
1692 elif test $ac_prog = install &&
1693 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1694 # program-specific install script used by HP pwplus--don't use.
1696 else
1697 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1698 break 3
1701 done
1702 done
1704 esac
1705 done
1709 if test "${ac_cv_path_install+set}" = set; then
1710 INSTALL=$ac_cv_path_install
1711 else
1712 # As a last resort, use the slow shell script. We don't cache a
1713 # path for INSTALL within a source directory, because that will
1714 # break other packages using the cache if that directory is
1715 # removed, or if the path is relative.
1716 INSTALL=$ac_install_sh
1719 echo "$as_me:$LINENO: result: $INSTALL" >&5
1720 echo "${ECHO_T}$INSTALL" >&6
1722 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1723 # It thinks the first close brace ends the variable substitution.
1724 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1726 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1728 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1730 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1731 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1732 # Just in case
1733 sleep 1
1734 echo timestamp > conftest.file
1735 # Do `set' in a subshell so we don't clobber the current shell's
1736 # arguments. Must try -L first in case configure is actually a
1737 # symlink; some systems play weird games with the mod time of symlinks
1738 # (eg FreeBSD returns the mod time of the symlink's containing
1739 # directory).
1740 if (
1741 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1742 if test "$*" = "X"; then
1743 # -L didn't work.
1744 set X `ls -t $srcdir/configure conftest.file`
1746 rm -f conftest.file
1747 if test "$*" != "X $srcdir/configure conftest.file" \
1748 && test "$*" != "X conftest.file $srcdir/configure"; then
1750 # If neither matched, then we have a broken ls. This can happen
1751 # if, for instance, CONFIG_SHELL is bash and it inherits a
1752 # broken ls alias from the environment. This has actually
1753 # happened. Such a system could not be considered "sane".
1754 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1755 alias in your environment" >&5
1756 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1757 alias in your environment" >&2;}
1758 { (exit 1); exit 1; }; }
1761 test "$2" = conftest.file
1763 then
1764 # Ok.
1766 else
1767 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1768 Check your system clock" >&5
1769 echo "$as_me: error: newly created file is older than distributed files!
1770 Check your system clock" >&2;}
1771 { (exit 1); exit 1; }; }
1773 echo "$as_me:$LINENO: result: yes" >&5
1774 echo "${ECHO_T}yes" >&6
1775 test "$program_prefix" != NONE &&
1776 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1777 # Use a double $ so make ignores it.
1778 test "$program_suffix" != NONE &&
1779 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1780 # Double any \ or $. echo might interpret backslashes.
1781 # By default was `s,x,x', remove it if useless.
1782 cat <<\_ACEOF >conftest.sed
1783 s/[\\$]/&&/g;s/;s,x,x,$//
1784 _ACEOF
1785 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1786 rm conftest.sed
1788 # expand $ac_aux_dir to an absolute path
1789 am_aux_dir=`cd $ac_aux_dir && pwd`
1791 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1792 # Use eval to expand $SHELL
1793 if eval "$MISSING --run true"; then
1794 am_missing_run="$MISSING --run "
1795 else
1796 am_missing_run=
1797 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1798 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1801 if mkdir -p -- . 2>/dev/null; then
1802 # Keeping the `.' argument allows $(mkdir_p) to be used without
1803 # argument. Indeed, we sometimes output rules like
1804 # $(mkdir_p) $(somedir)
1805 # where $(somedir) is conditionally defined.
1806 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1807 # expensive solution, as it forces Make to start a sub-shell.)
1808 mkdir_p='mkdir -p -- .'
1809 else
1810 # On NextStep and OpenStep, the `mkdir' command does not
1811 # recognize any option. It will interpret all options as
1812 # directories to create, and then abort because `.' already
1813 # exists.
1814 for d in ./-p ./--;
1816 test -d $d && rmdir $d
1817 done
1818 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1819 if test -f "$ac_aux_dir/mkinstalldirs"; then
1820 mkdir_p='$(mkinstalldirs)'
1821 else
1822 mkdir_p='$(install_sh) -d'
1826 for ac_prog in gawk mawk nawk awk
1828 # Extract the first word of "$ac_prog", so it can be a program name with args.
1829 set dummy $ac_prog; ac_word=$2
1830 echo "$as_me:$LINENO: checking for $ac_word" >&5
1831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1832 if test "${ac_cv_prog_AWK+set}" = set; then
1833 echo $ECHO_N "(cached) $ECHO_C" >&6
1834 else
1835 if test -n "$AWK"; then
1836 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1837 else
1838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839 for as_dir in $PATH
1841 IFS=$as_save_IFS
1842 test -z "$as_dir" && as_dir=.
1843 for ac_exec_ext in '' $ac_executable_extensions; do
1844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1845 ac_cv_prog_AWK="$ac_prog"
1846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847 break 2
1849 done
1850 done
1854 AWK=$ac_cv_prog_AWK
1855 if test -n "$AWK"; then
1856 echo "$as_me:$LINENO: result: $AWK" >&5
1857 echo "${ECHO_T}$AWK" >&6
1858 else
1859 echo "$as_me:$LINENO: result: no" >&5
1860 echo "${ECHO_T}no" >&6
1863 test -n "$AWK" && break
1864 done
1866 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1867 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1868 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1869 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1870 echo $ECHO_N "(cached) $ECHO_C" >&6
1871 else
1872 cat >conftest.make <<\_ACEOF
1873 all:
1874 @echo 'ac_maketemp="$(MAKE)"'
1875 _ACEOF
1876 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1877 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1878 if test -n "$ac_maketemp"; then
1879 eval ac_cv_prog_make_${ac_make}_set=yes
1880 else
1881 eval ac_cv_prog_make_${ac_make}_set=no
1883 rm -f conftest.make
1885 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1886 echo "$as_me:$LINENO: result: yes" >&5
1887 echo "${ECHO_T}yes" >&6
1888 SET_MAKE=
1889 else
1890 echo "$as_me:$LINENO: result: no" >&5
1891 echo "${ECHO_T}no" >&6
1892 SET_MAKE="MAKE=${MAKE-make}"
1895 rm -rf .tst 2>/dev/null
1896 mkdir .tst 2>/dev/null
1897 if test -d .tst; then
1898 am__leading_dot=.
1899 else
1900 am__leading_dot=_
1902 rmdir .tst 2>/dev/null
1904 # test to see if srcdir already configured
1905 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1906 test -f $srcdir/config.status; then
1907 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1908 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1909 { (exit 1); exit 1; }; }
1912 # test whether we have cygpath
1913 if test -z "$CYGPATH_W"; then
1914 if (cygpath --version) >/dev/null 2>/dev/null; then
1915 CYGPATH_W='cygpath -w'
1916 else
1917 CYGPATH_W=echo
1922 # Define the identity of the package.
1923 PACKAGE=SDL_Pango
1924 VERSION=$VERSION
1927 cat >>confdefs.h <<_ACEOF
1928 #define PACKAGE "$PACKAGE"
1929 _ACEOF
1932 cat >>confdefs.h <<_ACEOF
1933 #define VERSION "$VERSION"
1934 _ACEOF
1936 # Some tools Automake needs.
1938 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1941 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1944 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1947 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1950 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1953 AMTAR=${AMTAR-"${am_missing_run}tar"}
1955 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1957 # Installed binaries are usually stripped using `strip' when the user
1958 # run `make install-strip'. However `strip' might not be the right
1959 # tool to use in cross-compilation environments, therefore Automake
1960 # will honor the `STRIP' environment variable to overrule this program.
1961 if test "$cross_compiling" != no; then
1962 if test -n "$ac_tool_prefix"; then
1963 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1964 set dummy ${ac_tool_prefix}strip; ac_word=$2
1965 echo "$as_me:$LINENO: checking for $ac_word" >&5
1966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1967 if test "${ac_cv_prog_STRIP+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1969 else
1970 if test -n "$STRIP"; then
1971 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1972 else
1973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974 for as_dir in $PATH
1976 IFS=$as_save_IFS
1977 test -z "$as_dir" && as_dir=.
1978 for ac_exec_ext in '' $ac_executable_extensions; do
1979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1980 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1982 break 2
1984 done
1985 done
1989 STRIP=$ac_cv_prog_STRIP
1990 if test -n "$STRIP"; then
1991 echo "$as_me:$LINENO: result: $STRIP" >&5
1992 echo "${ECHO_T}$STRIP" >&6
1993 else
1994 echo "$as_me:$LINENO: result: no" >&5
1995 echo "${ECHO_T}no" >&6
1999 if test -z "$ac_cv_prog_STRIP"; then
2000 ac_ct_STRIP=$STRIP
2001 # Extract the first word of "strip", so it can be a program name with args.
2002 set dummy strip; ac_word=$2
2003 echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2005 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2006 echo $ECHO_N "(cached) $ECHO_C" >&6
2007 else
2008 if test -n "$ac_ct_STRIP"; then
2009 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2010 else
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 for as_dir in $PATH
2014 IFS=$as_save_IFS
2015 test -z "$as_dir" && as_dir=.
2016 for ac_exec_ext in '' $ac_executable_extensions; do
2017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2018 ac_cv_prog_ac_ct_STRIP="strip"
2019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020 break 2
2022 done
2023 done
2025 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2028 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2029 if test -n "$ac_ct_STRIP"; then
2030 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2031 echo "${ECHO_T}$ac_ct_STRIP" >&6
2032 else
2033 echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6
2037 STRIP=$ac_ct_STRIP
2038 else
2039 STRIP="$ac_cv_prog_STRIP"
2043 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2045 # We need awk for the "check" target. The system "awk" is bad on
2046 # some platforms.
2051 # Check for tools
2055 # Check whether --enable-shared or --disable-shared was given.
2056 if test "${enable_shared+set}" = set; then
2057 enableval="$enable_shared"
2058 p=${PACKAGE-default}
2059 case $enableval in
2060 yes) enable_shared=yes ;;
2061 no) enable_shared=no ;;
2063 enable_shared=no
2064 # Look at the argument we got. We use all the common list separators.
2065 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2066 for pkg in $enableval; do
2067 IFS="$lt_save_ifs"
2068 if test "X$pkg" = "X$p"; then
2069 enable_shared=yes
2071 done
2072 IFS="$lt_save_ifs"
2074 esac
2075 else
2076 enable_shared=yes
2079 # Check whether --enable-static or --disable-static was given.
2080 if test "${enable_static+set}" = set; then
2081 enableval="$enable_static"
2082 p=${PACKAGE-default}
2083 case $enableval in
2084 yes) enable_static=yes ;;
2085 no) enable_static=no ;;
2087 enable_static=no
2088 # Look at the argument we got. We use all the common list separators.
2089 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2090 for pkg in $enableval; do
2091 IFS="$lt_save_ifs"
2092 if test "X$pkg" = "X$p"; then
2093 enable_static=yes
2095 done
2096 IFS="$lt_save_ifs"
2098 esac
2099 else
2100 enable_static=yes
2103 # Check whether --enable-fast-install or --disable-fast-install was given.
2104 if test "${enable_fast_install+set}" = set; then
2105 enableval="$enable_fast_install"
2106 p=${PACKAGE-default}
2107 case $enableval in
2108 yes) enable_fast_install=yes ;;
2109 no) enable_fast_install=no ;;
2111 enable_fast_install=no
2112 # Look at the argument we got. We use all the common list separators.
2113 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2114 for pkg in $enableval; do
2115 IFS="$lt_save_ifs"
2116 if test "X$pkg" = "X$p"; then
2117 enable_fast_install=yes
2119 done
2120 IFS="$lt_save_ifs"
2122 esac
2123 else
2124 enable_fast_install=yes
2127 DEPDIR="${am__leading_dot}deps"
2129 ac_config_commands="$ac_config_commands depfiles"
2132 am_make=${MAKE-make}
2133 cat > confinc << 'END'
2134 am__doit:
2135 @echo done
2136 .PHONY: am__doit
2138 # If we don't find an include directive, just comment out the code.
2139 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2140 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2141 am__include="#"
2142 am__quote=
2143 _am_result=none
2144 # First try GNU make style include.
2145 echo "include confinc" > confmf
2146 # We grep out `Entering directory' and `Leaving directory'
2147 # messages which can occur if `w' ends up in MAKEFLAGS.
2148 # In particular we don't look at `^make:' because GNU make might
2149 # be invoked under some other name (usually "gmake"), in which
2150 # case it prints its new name instead of `make'.
2151 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2152 am__include=include
2153 am__quote=
2154 _am_result=GNU
2156 # Now try BSD make style include.
2157 if test "$am__include" = "#"; then
2158 echo '.include "confinc"' > confmf
2159 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2160 am__include=.include
2161 am__quote="\""
2162 _am_result=BSD
2167 echo "$as_me:$LINENO: result: $_am_result" >&5
2168 echo "${ECHO_T}$_am_result" >&6
2169 rm -f confinc confmf
2171 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2172 if test "${enable_dependency_tracking+set}" = set; then
2173 enableval="$enable_dependency_tracking"
2176 if test "x$enable_dependency_tracking" != xno; then
2177 am_depcomp="$ac_aux_dir/depcomp"
2178 AMDEPBACKSLASH='\'
2182 if test "x$enable_dependency_tracking" != xno; then
2183 AMDEP_TRUE=
2184 AMDEP_FALSE='#'
2185 else
2186 AMDEP_TRUE='#'
2187 AMDEP_FALSE=
2192 ac_ext=c
2193 ac_cpp='$CPP $CPPFLAGS'
2194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2197 if test -n "$ac_tool_prefix"; then
2198 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2199 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2200 echo "$as_me:$LINENO: checking for $ac_word" >&5
2201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2202 if test "${ac_cv_prog_CC+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2204 else
2205 if test -n "$CC"; then
2206 ac_cv_prog_CC="$CC" # Let the user override the test.
2207 else
2208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209 for as_dir in $PATH
2211 IFS=$as_save_IFS
2212 test -z "$as_dir" && as_dir=.
2213 for ac_exec_ext in '' $ac_executable_extensions; do
2214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2215 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2217 break 2
2219 done
2220 done
2224 CC=$ac_cv_prog_CC
2225 if test -n "$CC"; then
2226 echo "$as_me:$LINENO: result: $CC" >&5
2227 echo "${ECHO_T}$CC" >&6
2228 else
2229 echo "$as_me:$LINENO: result: no" >&5
2230 echo "${ECHO_T}no" >&6
2234 if test -z "$ac_cv_prog_CC"; then
2235 ac_ct_CC=$CC
2236 # Extract the first word of "gcc", so it can be a program name with args.
2237 set dummy gcc; ac_word=$2
2238 echo "$as_me:$LINENO: checking for $ac_word" >&5
2239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2240 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2242 else
2243 if test -n "$ac_ct_CC"; then
2244 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2245 else
2246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2247 for as_dir in $PATH
2249 IFS=$as_save_IFS
2250 test -z "$as_dir" && as_dir=.
2251 for ac_exec_ext in '' $ac_executable_extensions; do
2252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2253 ac_cv_prog_ac_ct_CC="gcc"
2254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2255 break 2
2257 done
2258 done
2262 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2263 if test -n "$ac_ct_CC"; then
2264 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2265 echo "${ECHO_T}$ac_ct_CC" >&6
2266 else
2267 echo "$as_me:$LINENO: result: no" >&5
2268 echo "${ECHO_T}no" >&6
2271 CC=$ac_ct_CC
2272 else
2273 CC="$ac_cv_prog_CC"
2276 if test -z "$CC"; then
2277 if test -n "$ac_tool_prefix"; then
2278 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2279 set dummy ${ac_tool_prefix}cc; ac_word=$2
2280 echo "$as_me:$LINENO: checking for $ac_word" >&5
2281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2282 if test "${ac_cv_prog_CC+set}" = set; then
2283 echo $ECHO_N "(cached) $ECHO_C" >&6
2284 else
2285 if test -n "$CC"; then
2286 ac_cv_prog_CC="$CC" # Let the user override the test.
2287 else
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 for as_dir in $PATH
2291 IFS=$as_save_IFS
2292 test -z "$as_dir" && as_dir=.
2293 for ac_exec_ext in '' $ac_executable_extensions; do
2294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2295 ac_cv_prog_CC="${ac_tool_prefix}cc"
2296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2297 break 2
2299 done
2300 done
2304 CC=$ac_cv_prog_CC
2305 if test -n "$CC"; then
2306 echo "$as_me:$LINENO: result: $CC" >&5
2307 echo "${ECHO_T}$CC" >&6
2308 else
2309 echo "$as_me:$LINENO: result: no" >&5
2310 echo "${ECHO_T}no" >&6
2314 if test -z "$ac_cv_prog_CC"; then
2315 ac_ct_CC=$CC
2316 # Extract the first word of "cc", so it can be a program name with args.
2317 set dummy cc; ac_word=$2
2318 echo "$as_me:$LINENO: checking for $ac_word" >&5
2319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2320 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2321 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 else
2323 if test -n "$ac_ct_CC"; then
2324 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2325 else
2326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327 for as_dir in $PATH
2329 IFS=$as_save_IFS
2330 test -z "$as_dir" && as_dir=.
2331 for ac_exec_ext in '' $ac_executable_extensions; do
2332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2333 ac_cv_prog_ac_ct_CC="cc"
2334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2335 break 2
2337 done
2338 done
2342 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2343 if test -n "$ac_ct_CC"; then
2344 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2345 echo "${ECHO_T}$ac_ct_CC" >&6
2346 else
2347 echo "$as_me:$LINENO: result: no" >&5
2348 echo "${ECHO_T}no" >&6
2351 CC=$ac_ct_CC
2352 else
2353 CC="$ac_cv_prog_CC"
2357 if test -z "$CC"; then
2358 # Extract the first word of "cc", so it can be a program name with args.
2359 set dummy cc; ac_word=$2
2360 echo "$as_me:$LINENO: checking for $ac_word" >&5
2361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2362 if test "${ac_cv_prog_CC+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 else
2365 if test -n "$CC"; then
2366 ac_cv_prog_CC="$CC" # Let the user override the test.
2367 else
2368 ac_prog_rejected=no
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 for as_dir in $PATH
2372 IFS=$as_save_IFS
2373 test -z "$as_dir" && as_dir=.
2374 for ac_exec_ext in '' $ac_executable_extensions; do
2375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2376 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2377 ac_prog_rejected=yes
2378 continue
2380 ac_cv_prog_CC="cc"
2381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382 break 2
2384 done
2385 done
2387 if test $ac_prog_rejected = yes; then
2388 # We found a bogon in the path, so make sure we never use it.
2389 set dummy $ac_cv_prog_CC
2390 shift
2391 if test $# != 0; then
2392 # We chose a different compiler from the bogus one.
2393 # However, it has the same basename, so the bogon will be chosen
2394 # first if we set CC to just the basename; use the full file name.
2395 shift
2396 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2401 CC=$ac_cv_prog_CC
2402 if test -n "$CC"; then
2403 echo "$as_me:$LINENO: result: $CC" >&5
2404 echo "${ECHO_T}$CC" >&6
2405 else
2406 echo "$as_me:$LINENO: result: no" >&5
2407 echo "${ECHO_T}no" >&6
2411 if test -z "$CC"; then
2412 if test -n "$ac_tool_prefix"; then
2413 for ac_prog in cl
2415 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2416 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2417 echo "$as_me:$LINENO: checking for $ac_word" >&5
2418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2419 if test "${ac_cv_prog_CC+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2421 else
2422 if test -n "$CC"; then
2423 ac_cv_prog_CC="$CC" # Let the user override the test.
2424 else
2425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426 for as_dir in $PATH
2428 IFS=$as_save_IFS
2429 test -z "$as_dir" && as_dir=.
2430 for ac_exec_ext in '' $ac_executable_extensions; do
2431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2432 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2434 break 2
2436 done
2437 done
2441 CC=$ac_cv_prog_CC
2442 if test -n "$CC"; then
2443 echo "$as_me:$LINENO: result: $CC" >&5
2444 echo "${ECHO_T}$CC" >&6
2445 else
2446 echo "$as_me:$LINENO: result: no" >&5
2447 echo "${ECHO_T}no" >&6
2450 test -n "$CC" && break
2451 done
2453 if test -z "$CC"; then
2454 ac_ct_CC=$CC
2455 for ac_prog in cl
2457 # Extract the first word of "$ac_prog", so it can be a program name with args.
2458 set dummy $ac_prog; ac_word=$2
2459 echo "$as_me:$LINENO: checking for $ac_word" >&5
2460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2461 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2462 echo $ECHO_N "(cached) $ECHO_C" >&6
2463 else
2464 if test -n "$ac_ct_CC"; then
2465 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2466 else
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 for as_dir in $PATH
2470 IFS=$as_save_IFS
2471 test -z "$as_dir" && as_dir=.
2472 for ac_exec_ext in '' $ac_executable_extensions; do
2473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2474 ac_cv_prog_ac_ct_CC="$ac_prog"
2475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2476 break 2
2478 done
2479 done
2483 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2484 if test -n "$ac_ct_CC"; then
2485 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2486 echo "${ECHO_T}$ac_ct_CC" >&6
2487 else
2488 echo "$as_me:$LINENO: result: no" >&5
2489 echo "${ECHO_T}no" >&6
2492 test -n "$ac_ct_CC" && break
2493 done
2495 CC=$ac_ct_CC
2501 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2502 See \`config.log' for more details." >&5
2503 echo "$as_me: error: no acceptable C compiler found in \$PATH
2504 See \`config.log' for more details." >&2;}
2505 { (exit 1); exit 1; }; }
2507 # Provide some information about the compiler.
2508 echo "$as_me:$LINENO:" \
2509 "checking for C compiler version" >&5
2510 ac_compiler=`set X $ac_compile; echo $2`
2511 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2512 (eval $ac_compiler --version </dev/null >&5) 2>&5
2513 ac_status=$?
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }
2516 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2517 (eval $ac_compiler -v </dev/null >&5) 2>&5
2518 ac_status=$?
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }
2521 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2522 (eval $ac_compiler -V </dev/null >&5) 2>&5
2523 ac_status=$?
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }
2527 cat >conftest.$ac_ext <<_ACEOF
2528 /* confdefs.h. */
2529 _ACEOF
2530 cat confdefs.h >>conftest.$ac_ext
2531 cat >>conftest.$ac_ext <<_ACEOF
2532 /* end confdefs.h. */
2535 main ()
2539 return 0;
2541 _ACEOF
2542 ac_clean_files_save=$ac_clean_files
2543 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2544 # Try to create an executable without -o first, disregard a.out.
2545 # It will help us diagnose broken compilers, and finding out an intuition
2546 # of exeext.
2547 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2548 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2549 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2550 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2551 (eval $ac_link_default) 2>&5
2552 ac_status=$?
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; then
2555 # Find the output, starting from the most likely. This scheme is
2556 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2557 # resort.
2559 # Be careful to initialize this variable, since it used to be cached.
2560 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2561 ac_cv_exeext=
2562 # b.out is created by i960 compilers.
2563 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2565 test -f "$ac_file" || continue
2566 case $ac_file in
2567 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2569 conftest.$ac_ext )
2570 # This is the source file.
2572 [ab].out )
2573 # We found the default executable, but exeext='' is most
2574 # certainly right.
2575 break;;
2576 *.* )
2577 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2578 # FIXME: I believe we export ac_cv_exeext for Libtool,
2579 # but it would be cool to find out if it's true. Does anybody
2580 # maintain Libtool? --akim.
2581 export ac_cv_exeext
2582 break;;
2584 break;;
2585 esac
2586 done
2587 else
2588 echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2591 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2592 See \`config.log' for more details." >&5
2593 echo "$as_me: error: C compiler cannot create executables
2594 See \`config.log' for more details." >&2;}
2595 { (exit 77); exit 77; }; }
2598 ac_exeext=$ac_cv_exeext
2599 echo "$as_me:$LINENO: result: $ac_file" >&5
2600 echo "${ECHO_T}$ac_file" >&6
2602 # Check the compiler produces executables we can run. If not, either
2603 # the compiler is broken, or we cross compile.
2604 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2605 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2606 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2607 # If not cross compiling, check that we can run a simple program.
2608 if test "$cross_compiling" != yes; then
2609 if { ac_try='./$ac_file'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611 (eval $ac_try) 2>&5
2612 ac_status=$?
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; }; then
2615 cross_compiling=no
2616 else
2617 if test "$cross_compiling" = maybe; then
2618 cross_compiling=yes
2619 else
2620 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2621 If you meant to cross compile, use \`--host'.
2622 See \`config.log' for more details." >&5
2623 echo "$as_me: error: cannot run C compiled programs.
2624 If you meant to cross compile, use \`--host'.
2625 See \`config.log' for more details." >&2;}
2626 { (exit 1); exit 1; }; }
2630 echo "$as_me:$LINENO: result: yes" >&5
2631 echo "${ECHO_T}yes" >&6
2633 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2634 ac_clean_files=$ac_clean_files_save
2635 # Check the compiler produces executables we can run. If not, either
2636 # the compiler is broken, or we cross compile.
2637 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2638 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2639 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2640 echo "${ECHO_T}$cross_compiling" >&6
2642 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2643 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2645 (eval $ac_link) 2>&5
2646 ac_status=$?
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; then
2649 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2650 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2651 # work properly (i.e., refer to `conftest.exe'), while it won't with
2652 # `rm'.
2653 for ac_file in conftest.exe conftest conftest.*; do
2654 test -f "$ac_file" || continue
2655 case $ac_file in
2656 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2657 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2658 export ac_cv_exeext
2659 break;;
2660 * ) break;;
2661 esac
2662 done
2663 else
2664 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2665 See \`config.log' for more details." >&5
2666 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2667 See \`config.log' for more details." >&2;}
2668 { (exit 1); exit 1; }; }
2671 rm -f conftest$ac_cv_exeext
2672 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2673 echo "${ECHO_T}$ac_cv_exeext" >&6
2675 rm -f conftest.$ac_ext
2676 EXEEXT=$ac_cv_exeext
2677 ac_exeext=$EXEEXT
2678 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2679 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2680 if test "${ac_cv_objext+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 else
2683 cat >conftest.$ac_ext <<_ACEOF
2684 /* confdefs.h. */
2685 _ACEOF
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h. */
2691 main ()
2695 return 0;
2697 _ACEOF
2698 rm -f conftest.o conftest.obj
2699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2700 (eval $ac_compile) 2>&5
2701 ac_status=$?
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }; then
2704 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2705 case $ac_file in
2706 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2707 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2708 break;;
2709 esac
2710 done
2711 else
2712 echo "$as_me: failed program was:" >&5
2713 sed 's/^/| /' conftest.$ac_ext >&5
2715 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2716 See \`config.log' for more details." >&5
2717 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2718 See \`config.log' for more details." >&2;}
2719 { (exit 1); exit 1; }; }
2722 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2724 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2725 echo "${ECHO_T}$ac_cv_objext" >&6
2726 OBJEXT=$ac_cv_objext
2727 ac_objext=$OBJEXT
2728 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2729 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2730 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2731 echo $ECHO_N "(cached) $ECHO_C" >&6
2732 else
2733 cat >conftest.$ac_ext <<_ACEOF
2734 /* confdefs.h. */
2735 _ACEOF
2736 cat confdefs.h >>conftest.$ac_ext
2737 cat >>conftest.$ac_ext <<_ACEOF
2738 /* end confdefs.h. */
2741 main ()
2743 #ifndef __GNUC__
2744 choke me
2745 #endif
2748 return 0;
2750 _ACEOF
2751 rm -f conftest.$ac_objext
2752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2753 (eval $ac_compile) 2>conftest.er1
2754 ac_status=$?
2755 grep -v '^ *+' conftest.er1 >conftest.err
2756 rm -f conftest.er1
2757 cat conftest.err >&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); } &&
2760 { ac_try='test -z "$ac_c_werror_flag"
2761 || test ! -s conftest.err'
2762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763 (eval $ac_try) 2>&5
2764 ac_status=$?
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); }; } &&
2767 { ac_try='test -s conftest.$ac_objext'
2768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769 (eval $ac_try) 2>&5
2770 ac_status=$?
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }; }; then
2773 ac_compiler_gnu=yes
2774 else
2775 echo "$as_me: failed program was:" >&5
2776 sed 's/^/| /' conftest.$ac_ext >&5
2778 ac_compiler_gnu=no
2780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2781 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2784 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2785 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2786 GCC=`test $ac_compiler_gnu = yes && echo yes`
2787 ac_test_CFLAGS=${CFLAGS+set}
2788 ac_save_CFLAGS=$CFLAGS
2789 CFLAGS="-g"
2790 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2791 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2792 if test "${ac_cv_prog_cc_g+set}" = set; then
2793 echo $ECHO_N "(cached) $ECHO_C" >&6
2794 else
2795 cat >conftest.$ac_ext <<_ACEOF
2796 /* confdefs.h. */
2797 _ACEOF
2798 cat confdefs.h >>conftest.$ac_ext
2799 cat >>conftest.$ac_ext <<_ACEOF
2800 /* end confdefs.h. */
2803 main ()
2807 return 0;
2809 _ACEOF
2810 rm -f conftest.$ac_objext
2811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2812 (eval $ac_compile) 2>conftest.er1
2813 ac_status=$?
2814 grep -v '^ *+' conftest.er1 >conftest.err
2815 rm -f conftest.er1
2816 cat conftest.err >&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); } &&
2819 { ac_try='test -z "$ac_c_werror_flag"
2820 || test ! -s conftest.err'
2821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2822 (eval $ac_try) 2>&5
2823 ac_status=$?
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); }; } &&
2826 { ac_try='test -s conftest.$ac_objext'
2827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828 (eval $ac_try) 2>&5
2829 ac_status=$?
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; }; then
2832 ac_cv_prog_cc_g=yes
2833 else
2834 echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2837 ac_cv_prog_cc_g=no
2839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2841 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2842 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2843 if test "$ac_test_CFLAGS" = set; then
2844 CFLAGS=$ac_save_CFLAGS
2845 elif test $ac_cv_prog_cc_g = yes; then
2846 if test "$GCC" = yes; then
2847 CFLAGS="-g -O2"
2848 else
2849 CFLAGS="-g"
2851 else
2852 if test "$GCC" = yes; then
2853 CFLAGS="-O2"
2854 else
2855 CFLAGS=
2858 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2859 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2860 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2861 echo $ECHO_N "(cached) $ECHO_C" >&6
2862 else
2863 ac_cv_prog_cc_stdc=no
2864 ac_save_CC=$CC
2865 cat >conftest.$ac_ext <<_ACEOF
2866 /* confdefs.h. */
2867 _ACEOF
2868 cat confdefs.h >>conftest.$ac_ext
2869 cat >>conftest.$ac_ext <<_ACEOF
2870 /* end confdefs.h. */
2871 #include <stdarg.h>
2872 #include <stdio.h>
2873 #include <sys/types.h>
2874 #include <sys/stat.h>
2875 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2876 struct buf { int x; };
2877 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2878 static char *e (p, i)
2879 char **p;
2880 int i;
2882 return p[i];
2884 static char *f (char * (*g) (char **, int), char **p, ...)
2886 char *s;
2887 va_list v;
2888 va_start (v,p);
2889 s = g (p, va_arg (v,int));
2890 va_end (v);
2891 return s;
2894 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2895 function prototypes and stuff, but not '\xHH' hex character constants.
2896 These don't provoke an error unfortunately, instead are silently treated
2897 as 'x'. The following induces an error, until -std1 is added to get
2898 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2899 array size at least. It's necessary to write '\x00'==0 to get something
2900 that's true only with -std1. */
2901 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2903 int test (int i, double x);
2904 struct s1 {int (*f) (int a);};
2905 struct s2 {int (*f) (double a);};
2906 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2907 int argc;
2908 char **argv;
2910 main ()
2912 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2914 return 0;
2916 _ACEOF
2917 # Don't try gcc -ansi; that turns off useful extensions and
2918 # breaks some systems' header files.
2919 # AIX -qlanglvl=ansi
2920 # Ultrix and OSF/1 -std1
2921 # HP-UX 10.20 and later -Ae
2922 # HP-UX older versions -Aa -D_HPUX_SOURCE
2923 # SVR4 -Xc -D__EXTENSIONS__
2924 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2926 CC="$ac_save_CC $ac_arg"
2927 rm -f conftest.$ac_objext
2928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2929 (eval $ac_compile) 2>conftest.er1
2930 ac_status=$?
2931 grep -v '^ *+' conftest.er1 >conftest.err
2932 rm -f conftest.er1
2933 cat conftest.err >&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); } &&
2936 { ac_try='test -z "$ac_c_werror_flag"
2937 || test ! -s conftest.err'
2938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2939 (eval $ac_try) 2>&5
2940 ac_status=$?
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }; } &&
2943 { ac_try='test -s conftest.$ac_objext'
2944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945 (eval $ac_try) 2>&5
2946 ac_status=$?
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; }; then
2949 ac_cv_prog_cc_stdc=$ac_arg
2950 break
2951 else
2952 echo "$as_me: failed program was:" >&5
2953 sed 's/^/| /' conftest.$ac_ext >&5
2956 rm -f conftest.err conftest.$ac_objext
2957 done
2958 rm -f conftest.$ac_ext conftest.$ac_objext
2959 CC=$ac_save_CC
2963 case "x$ac_cv_prog_cc_stdc" in
2964 x|xno)
2965 echo "$as_me:$LINENO: result: none needed" >&5
2966 echo "${ECHO_T}none needed" >&6 ;;
2968 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2969 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2970 CC="$CC $ac_cv_prog_cc_stdc" ;;
2971 esac
2973 # Some people use a C++ compiler to compile C. Since we use `exit',
2974 # in C++ we need to declare it. In case someone uses the same compiler
2975 # for both compiling C and C++ we need to have the C++ compiler decide
2976 # the declaration of exit, since it's the most demanding environment.
2977 cat >conftest.$ac_ext <<_ACEOF
2978 #ifndef __cplusplus
2979 choke me
2980 #endif
2981 _ACEOF
2982 rm -f conftest.$ac_objext
2983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2984 (eval $ac_compile) 2>conftest.er1
2985 ac_status=$?
2986 grep -v '^ *+' conftest.er1 >conftest.err
2987 rm -f conftest.er1
2988 cat conftest.err >&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); } &&
2991 { ac_try='test -z "$ac_c_werror_flag"
2992 || test ! -s conftest.err'
2993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2994 (eval $ac_try) 2>&5
2995 ac_status=$?
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); }; } &&
2998 { ac_try='test -s conftest.$ac_objext'
2999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3000 (eval $ac_try) 2>&5
3001 ac_status=$?
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); }; }; then
3004 for ac_declaration in \
3005 '' \
3006 'extern "C" void std::exit (int) throw (); using std::exit;' \
3007 'extern "C" void std::exit (int); using std::exit;' \
3008 'extern "C" void exit (int) throw ();' \
3009 'extern "C" void exit (int);' \
3010 'void exit (int);'
3012 cat >conftest.$ac_ext <<_ACEOF
3013 /* confdefs.h. */
3014 _ACEOF
3015 cat confdefs.h >>conftest.$ac_ext
3016 cat >>conftest.$ac_ext <<_ACEOF
3017 /* end confdefs.h. */
3018 $ac_declaration
3019 #include <stdlib.h>
3021 main ()
3023 exit (42);
3025 return 0;
3027 _ACEOF
3028 rm -f conftest.$ac_objext
3029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3030 (eval $ac_compile) 2>conftest.er1
3031 ac_status=$?
3032 grep -v '^ *+' conftest.er1 >conftest.err
3033 rm -f conftest.er1
3034 cat conftest.err >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); } &&
3037 { ac_try='test -z "$ac_c_werror_flag"
3038 || test ! -s conftest.err'
3039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3040 (eval $ac_try) 2>&5
3041 ac_status=$?
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; } &&
3044 { ac_try='test -s conftest.$ac_objext'
3045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3046 (eval $ac_try) 2>&5
3047 ac_status=$?
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); }; }; then
3051 else
3052 echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.$ac_ext >&5
3055 continue
3057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3058 cat >conftest.$ac_ext <<_ACEOF
3059 /* confdefs.h. */
3060 _ACEOF
3061 cat confdefs.h >>conftest.$ac_ext
3062 cat >>conftest.$ac_ext <<_ACEOF
3063 /* end confdefs.h. */
3064 $ac_declaration
3066 main ()
3068 exit (42);
3070 return 0;
3072 _ACEOF
3073 rm -f conftest.$ac_objext
3074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3075 (eval $ac_compile) 2>conftest.er1
3076 ac_status=$?
3077 grep -v '^ *+' conftest.er1 >conftest.err
3078 rm -f conftest.er1
3079 cat conftest.err >&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); } &&
3082 { ac_try='test -z "$ac_c_werror_flag"
3083 || test ! -s conftest.err'
3084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3085 (eval $ac_try) 2>&5
3086 ac_status=$?
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; } &&
3089 { ac_try='test -s conftest.$ac_objext'
3090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3091 (eval $ac_try) 2>&5
3092 ac_status=$?
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); }; }; then
3095 break
3096 else
3097 echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3102 done
3103 rm -f conftest*
3104 if test -n "$ac_declaration"; then
3105 echo '#ifdef __cplusplus' >>confdefs.h
3106 echo $ac_declaration >>confdefs.h
3107 echo '#endif' >>confdefs.h
3110 else
3111 echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3116 ac_ext=c
3117 ac_cpp='$CPP $CPPFLAGS'
3118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3122 depcc="$CC" am_compiler_list=
3124 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3125 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3126 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3127 echo $ECHO_N "(cached) $ECHO_C" >&6
3128 else
3129 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3130 # We make a subdir and do the tests there. Otherwise we can end up
3131 # making bogus files that we don't know about and never remove. For
3132 # instance it was reported that on HP-UX the gcc test will end up
3133 # making a dummy file named `D' -- because `-MD' means `put the output
3134 # in D'.
3135 mkdir conftest.dir
3136 # Copy depcomp to subdir because otherwise we won't find it if we're
3137 # using a relative directory.
3138 cp "$am_depcomp" conftest.dir
3139 cd conftest.dir
3140 # We will build objects and dependencies in a subdirectory because
3141 # it helps to detect inapplicable dependency modes. For instance
3142 # both Tru64's cc and ICC support -MD to output dependencies as a
3143 # side effect of compilation, but ICC will put the dependencies in
3144 # the current directory while Tru64 will put them in the object
3145 # directory.
3146 mkdir sub
3148 am_cv_CC_dependencies_compiler_type=none
3149 if test "$am_compiler_list" = ""; then
3150 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3152 for depmode in $am_compiler_list; do
3153 # Setup a source with many dependencies, because some compilers
3154 # like to wrap large dependency lists on column 80 (with \), and
3155 # we should not choose a depcomp mode which is confused by this.
3157 # We need to recreate these files for each test, as the compiler may
3158 # overwrite some of them when testing with obscure command lines.
3159 # This happens at least with the AIX C compiler.
3160 : > sub/conftest.c
3161 for i in 1 2 3 4 5 6; do
3162 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3163 : > sub/conftst$i.h
3164 done
3165 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3167 case $depmode in
3168 nosideeffect)
3169 # after this tag, mechanisms are not by side-effect, so they'll
3170 # only be used when explicitly requested
3171 if test "x$enable_dependency_tracking" = xyes; then
3172 continue
3173 else
3174 break
3177 none) break ;;
3178 esac
3179 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3180 # mode. It turns out that the SunPro C++ compiler does not properly
3181 # handle `-M -o', and we need to detect this.
3182 if depmode=$depmode \
3183 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3184 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3185 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3186 >/dev/null 2>conftest.err &&
3187 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3188 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3189 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3190 # icc doesn't choke on unknown options, it will just issue warnings
3191 # (even with -Werror). So we grep stderr for any message
3192 # that says an option was ignored.
3193 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3194 am_cv_CC_dependencies_compiler_type=$depmode
3195 break
3198 done
3200 cd ..
3201 rm -rf conftest.dir
3202 else
3203 am_cv_CC_dependencies_compiler_type=none
3207 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3208 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3209 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3214 test "x$enable_dependency_tracking" != xno \
3215 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3216 am__fastdepCC_TRUE=
3217 am__fastdepCC_FALSE='#'
3218 else
3219 am__fastdepCC_TRUE='#'
3220 am__fastdepCC_FALSE=
3224 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3225 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3226 if test "${lt_cv_path_SED+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3228 else
3229 # Loop through the user's path and test for sed and gsed.
3230 # Then use that list of sed's as ones to test for truncation.
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 for as_dir in $PATH
3234 IFS=$as_save_IFS
3235 test -z "$as_dir" && as_dir=.
3236 for lt_ac_prog in sed gsed; do
3237 for ac_exec_ext in '' $ac_executable_extensions; do
3238 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3239 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3241 done
3242 done
3243 done
3244 lt_ac_max=0
3245 lt_ac_count=0
3246 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3247 # along with /bin/sed that truncates output.
3248 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3249 test ! -f $lt_ac_sed && break
3250 cat /dev/null > conftest.in
3251 lt_ac_count=0
3252 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3253 # Check for GNU sed and select it if it is found.
3254 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3255 lt_cv_path_SED=$lt_ac_sed
3256 break
3258 while true; do
3259 cat conftest.in conftest.in >conftest.tmp
3260 mv conftest.tmp conftest.in
3261 cp conftest.in conftest.nl
3262 echo >>conftest.nl
3263 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3264 cmp -s conftest.out conftest.nl || break
3265 # 10000 chars as input seems more than enough
3266 test $lt_ac_count -gt 10 && break
3267 lt_ac_count=`expr $lt_ac_count + 1`
3268 if test $lt_ac_count -gt $lt_ac_max; then
3269 lt_ac_max=$lt_ac_count
3270 lt_cv_path_SED=$lt_ac_sed
3272 done
3273 done
3274 SED=$lt_cv_path_SED
3278 echo "$as_me:$LINENO: result: $SED" >&5
3279 echo "${ECHO_T}$SED" >&6
3281 echo "$as_me:$LINENO: checking for egrep" >&5
3282 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3283 if test "${ac_cv_prog_egrep+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3285 else
3286 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3287 then ac_cv_prog_egrep='grep -E'
3288 else ac_cv_prog_egrep='egrep'
3291 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3292 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3293 EGREP=$ac_cv_prog_egrep
3297 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3298 if test "${with_gnu_ld+set}" = set; then
3299 withval="$with_gnu_ld"
3300 test "$withval" = no || with_gnu_ld=yes
3301 else
3302 with_gnu_ld=no
3304 ac_prog=ld
3305 if test "$GCC" = yes; then
3306 # Check if gcc -print-prog-name=ld gives a path.
3307 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3308 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3309 case $host in
3310 *-*-mingw*)
3311 # gcc leaves a trailing carriage return which upsets mingw
3312 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3314 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3315 esac
3316 case $ac_prog in
3317 # Accept absolute paths.
3318 [\\/]* | ?:[\\/]*)
3319 re_direlt='/[^/][^/]*/\.\./'
3320 # Canonicalize the path of ld
3321 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3322 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3323 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3324 done
3325 test -z "$LD" && LD="$ac_prog"
3328 # If it fails, then pretend we aren't using GCC.
3329 ac_prog=ld
3332 # If it is relative, then search for the first ld in PATH.
3333 with_gnu_ld=unknown
3335 esac
3336 elif test "$with_gnu_ld" = yes; then
3337 echo "$as_me:$LINENO: checking for GNU ld" >&5
3338 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3339 else
3340 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3341 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3343 if test "${lt_cv_path_LD+set}" = set; then
3344 echo $ECHO_N "(cached) $ECHO_C" >&6
3345 else
3346 if test -z "$LD"; then
3347 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3348 for ac_dir in $PATH; do
3349 IFS="$lt_save_ifs"
3350 test -z "$ac_dir" && ac_dir=.
3351 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3352 lt_cv_path_LD="$ac_dir/$ac_prog"
3353 # Check to see if the program is GNU ld. I'd rather use --version,
3354 # but apparently some GNU ld's only accept -v.
3355 # Break only if it was the GNU/non-GNU ld that we prefer.
3356 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3357 *GNU* | *'with BFD'*)
3358 test "$with_gnu_ld" != no && break
3361 test "$with_gnu_ld" != yes && break
3363 esac
3365 done
3366 IFS="$lt_save_ifs"
3367 else
3368 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3372 LD="$lt_cv_path_LD"
3373 if test -n "$LD"; then
3374 echo "$as_me:$LINENO: result: $LD" >&5
3375 echo "${ECHO_T}$LD" >&6
3376 else
3377 echo "$as_me:$LINENO: result: no" >&5
3378 echo "${ECHO_T}no" >&6
3380 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3381 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3382 { (exit 1); exit 1; }; }
3383 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3384 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3385 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 else
3388 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3389 case `"$LD" -v 2>&1 </dev/null` in
3390 *GNU* | *'with BFD'*)
3391 lt_cv_prog_gnu_ld=yes
3394 lt_cv_prog_gnu_ld=no
3396 esac
3398 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3399 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3400 with_gnu_ld=$lt_cv_prog_gnu_ld
3403 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3404 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3405 if test "${lt_cv_ld_reload_flag+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3407 else
3408 lt_cv_ld_reload_flag='-r'
3410 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3411 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3412 reload_flag=$lt_cv_ld_reload_flag
3413 case $reload_flag in
3414 "" | " "*) ;;
3415 *) reload_flag=" $reload_flag" ;;
3416 esac
3417 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3419 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3420 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3421 if test "${lt_cv_path_NM+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 else
3424 if test -n "$NM"; then
3425 # Let the user override the test.
3426 lt_cv_path_NM="$NM"
3427 else
3428 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3429 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3430 IFS="$lt_save_ifs"
3431 test -z "$ac_dir" && ac_dir=.
3432 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3433 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3434 # Check to see if the nm accepts a BSD-compat flag.
3435 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3436 # nm: unknown option "B" ignored
3437 # Tru64's nm complains that /dev/null is an invalid object file
3438 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3439 */dev/null* | *'Invalid file or object type'*)
3440 lt_cv_path_NM="$tmp_nm -B"
3441 break
3444 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3445 */dev/null*)
3446 lt_cv_path_NM="$tmp_nm -p"
3447 break
3450 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3451 continue # so that we can try to find one that supports BSD flags
3453 esac
3454 esac
3456 done
3457 IFS="$lt_save_ifs"
3458 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3461 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3462 echo "${ECHO_T}$lt_cv_path_NM" >&6
3463 NM="$lt_cv_path_NM"
3465 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3466 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3467 LN_S=$as_ln_s
3468 if test "$LN_S" = "ln -s"; then
3469 echo "$as_me:$LINENO: result: yes" >&5
3470 echo "${ECHO_T}yes" >&6
3471 else
3472 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3473 echo "${ECHO_T}no, using $LN_S" >&6
3476 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3477 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3478 if test "${lt_cv_deplibs_check_method+set}" = set; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3480 else
3481 lt_cv_file_magic_cmd='$MAGIC_CMD'
3482 lt_cv_file_magic_test_file=
3483 lt_cv_deplibs_check_method='unknown'
3484 # Need to set the preceding variable on all platforms that support
3485 # interlibrary dependencies.
3486 # 'none' -- dependencies not supported.
3487 # `unknown' -- same as none, but documents that we really don't know.
3488 # 'pass_all' -- all dependencies passed with no checks.
3489 # 'test_compile' -- check by making test program.
3490 # 'file_magic [[regex]]' -- check by looking for files in library path
3491 # which responds to the $file_magic_cmd with a given extended regex.
3492 # If you have `file' or equivalent on your system and you're not sure
3493 # whether `pass_all' will *always* work, you probably want this one.
3495 case $host_os in
3496 aix4* | aix5*)
3497 lt_cv_deplibs_check_method=pass_all
3500 beos*)
3501 lt_cv_deplibs_check_method=pass_all
3504 bsdi4*)
3505 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3506 lt_cv_file_magic_cmd='/usr/bin/file -L'
3507 lt_cv_file_magic_test_file=/shlib/libc.so
3510 cygwin* | mingw* | pw32*)
3511 # win32_libid is a shell function defined in ltmain.sh
3512 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3513 lt_cv_file_magic_cmd='win32_libid'
3516 darwin* | rhapsody*)
3517 # this will be overwritten by pass_all, but leave it in just in case
3518 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3519 lt_cv_file_magic_cmd='/usr/bin/file -L'
3520 case "$host_os" in
3521 rhapsody* | darwin1.[012])
3522 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3524 *) # Darwin 1.3 on
3525 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3527 esac
3528 lt_cv_deplibs_check_method=pass_all
3531 freebsd*)
3532 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3533 case $host_cpu in
3534 i*86 )
3535 # Not sure whether the presence of OpenBSD here was a mistake.
3536 # Let's accept both of them until this is cleared up.
3537 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3538 lt_cv_file_magic_cmd=/usr/bin/file
3539 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3541 esac
3542 else
3543 lt_cv_deplibs_check_method=pass_all
3547 gnu*)
3548 lt_cv_deplibs_check_method=pass_all
3551 hpux10.20* | hpux11*)
3552 lt_cv_file_magic_cmd=/usr/bin/file
3553 case "$host_cpu" in
3554 ia64*)
3555 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3556 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3558 hppa*64*)
3559 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]'
3560 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3563 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3564 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3566 esac
3569 irix5* | irix6* | nonstopux*)
3570 case $host_os in
3571 irix5* | nonstopux*)
3572 # this will be overridden with pass_all, but let us keep it just in case
3573 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3576 case $LD in
3577 *-32|*"-32 ") libmagic=32-bit;;
3578 *-n32|*"-n32 ") libmagic=N32;;
3579 *-64|*"-64 ") libmagic=64-bit;;
3580 *) libmagic=never-match;;
3581 esac
3582 # this will be overridden with pass_all, but let us keep it just in case
3583 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3585 esac
3586 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3587 lt_cv_deplibs_check_method=pass_all
3590 # This must be Linux ELF.
3591 linux*)
3592 case $host_cpu in
3593 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3594 lt_cv_deplibs_check_method=pass_all ;;
3596 # glibc up to 2.1.1 does not perform some relocations on ARM
3597 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3598 esac
3599 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3602 netbsd*)
3603 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3604 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3605 else
3606 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3610 newos6*)
3611 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3612 lt_cv_file_magic_cmd=/usr/bin/file
3613 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3616 nto-qnx)
3617 lt_cv_deplibs_check_method=unknown
3620 openbsd*)
3621 lt_cv_file_magic_cmd=/usr/bin/file
3622 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3623 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3624 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3625 else
3626 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3630 osf3* | osf4* | osf5*)
3631 # this will be overridden with pass_all, but let us keep it just in case
3632 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3633 lt_cv_file_magic_test_file=/shlib/libc.so
3634 lt_cv_deplibs_check_method=pass_all
3637 sco3.2v5*)
3638 lt_cv_deplibs_check_method=pass_all
3641 solaris*)
3642 lt_cv_deplibs_check_method=pass_all
3643 lt_cv_file_magic_test_file=/lib/libc.so
3646 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3647 case $host_vendor in
3648 motorola)
3649 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]'
3650 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3652 ncr)
3653 lt_cv_deplibs_check_method=pass_all
3655 sequent)
3656 lt_cv_file_magic_cmd='/bin/file'
3657 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3659 sni)
3660 lt_cv_file_magic_cmd='/bin/file'
3661 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3662 lt_cv_file_magic_test_file=/lib/libc.so
3664 siemens)
3665 lt_cv_deplibs_check_method=pass_all
3667 esac
3670 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3671 lt_cv_deplibs_check_method=pass_all
3673 esac
3676 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3677 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3678 file_magic_cmd=$lt_cv_file_magic_cmd
3679 deplibs_check_method=$lt_cv_deplibs_check_method
3680 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3685 # If no C compiler was specified, use CC.
3686 LTCC=${LTCC-"$CC"}
3688 # Allow CC to be a program name with arguments.
3689 compiler=$CC
3692 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3693 if test "${enable_libtool_lock+set}" = set; then
3694 enableval="$enable_libtool_lock"
3697 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3699 # Some flags need to be propagated to the compiler or linker for good
3700 # libtool support.
3701 case $host in
3702 ia64-*-hpux*)
3703 # Find out which ABI we are using.
3704 echo 'int i;' > conftest.$ac_ext
3705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3706 (eval $ac_compile) 2>&5
3707 ac_status=$?
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); }; then
3710 case `/usr/bin/file conftest.$ac_objext` in
3711 *ELF-32*)
3712 HPUX_IA64_MODE="32"
3714 *ELF-64*)
3715 HPUX_IA64_MODE="64"
3717 esac
3719 rm -rf conftest*
3721 *-*-irix6*)
3722 # Find out which ABI we are using.
3723 echo '#line 3723 "configure"' > conftest.$ac_ext
3724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3725 (eval $ac_compile) 2>&5
3726 ac_status=$?
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); }; then
3729 if test "$lt_cv_prog_gnu_ld" = yes; then
3730 case `/usr/bin/file conftest.$ac_objext` in
3731 *32-bit*)
3732 LD="${LD-ld} -melf32bsmip"
3734 *N32*)
3735 LD="${LD-ld} -melf32bmipn32"
3737 *64-bit*)
3738 LD="${LD-ld} -melf64bmip"
3740 esac
3741 else
3742 case `/usr/bin/file conftest.$ac_objext` in
3743 *32-bit*)
3744 LD="${LD-ld} -32"
3746 *N32*)
3747 LD="${LD-ld} -n32"
3749 *64-bit*)
3750 LD="${LD-ld} -64"
3752 esac
3755 rm -rf conftest*
3758 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3759 # Find out which ABI we are using.
3760 echo 'int i;' > conftest.$ac_ext
3761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3762 (eval $ac_compile) 2>&5
3763 ac_status=$?
3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); }; then
3766 case "`/usr/bin/file conftest.o`" in
3767 *32-bit*)
3768 case $host in
3769 x86_64-*linux*)
3770 LD="${LD-ld} -m elf_i386"
3772 ppc64-*linux*)
3773 LD="${LD-ld} -m elf32ppclinux"
3775 s390x-*linux*)
3776 LD="${LD-ld} -m elf_s390"
3778 sparc64-*linux*)
3779 LD="${LD-ld} -m elf32_sparc"
3781 esac
3783 *64-bit*)
3784 case $host in
3785 x86_64-*linux*)
3786 LD="${LD-ld} -m elf_x86_64"
3788 ppc*-*linux*|powerpc*-*linux*)
3789 LD="${LD-ld} -m elf64ppc"
3791 s390*-*linux*)
3792 LD="${LD-ld} -m elf64_s390"
3794 sparc*-*linux*)
3795 LD="${LD-ld} -m elf64_sparc"
3797 esac
3799 esac
3801 rm -rf conftest*
3804 *-*-sco3.2v5*)
3805 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3806 SAVE_CFLAGS="$CFLAGS"
3807 CFLAGS="$CFLAGS -belf"
3808 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3809 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3810 if test "${lt_cv_cc_needs_belf+set}" = set; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
3812 else
3813 ac_ext=c
3814 ac_cpp='$CPP $CPPFLAGS'
3815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3819 cat >conftest.$ac_ext <<_ACEOF
3820 /* confdefs.h. */
3821 _ACEOF
3822 cat confdefs.h >>conftest.$ac_ext
3823 cat >>conftest.$ac_ext <<_ACEOF
3824 /* end confdefs.h. */
3827 main ()
3831 return 0;
3833 _ACEOF
3834 rm -f conftest.$ac_objext conftest$ac_exeext
3835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3836 (eval $ac_link) 2>conftest.er1
3837 ac_status=$?
3838 grep -v '^ *+' conftest.er1 >conftest.err
3839 rm -f conftest.er1
3840 cat conftest.err >&5
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); } &&
3843 { ac_try='test -z "$ac_c_werror_flag"
3844 || test ! -s conftest.err'
3845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846 (eval $ac_try) 2>&5
3847 ac_status=$?
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; } &&
3850 { ac_try='test -s conftest$ac_exeext'
3851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3852 (eval $ac_try) 2>&5
3853 ac_status=$?
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }; }; then
3856 lt_cv_cc_needs_belf=yes
3857 else
3858 echo "$as_me: failed program was:" >&5
3859 sed 's/^/| /' conftest.$ac_ext >&5
3861 lt_cv_cc_needs_belf=no
3863 rm -f conftest.err conftest.$ac_objext \
3864 conftest$ac_exeext conftest.$ac_ext
3865 ac_ext=c
3866 ac_cpp='$CPP $CPPFLAGS'
3867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3872 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3873 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3874 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3875 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3876 CFLAGS="$SAVE_CFLAGS"
3879 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
3880 if test -n "$ac_tool_prefix"; then
3881 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3882 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3883 echo "$as_me:$LINENO: checking for $ac_word" >&5
3884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3885 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888 if test -n "$DLLTOOL"; then
3889 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3890 else
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH
3894 IFS=$as_save_IFS
3895 test -z "$as_dir" && as_dir=.
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3898 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3900 break 2
3902 done
3903 done
3907 DLLTOOL=$ac_cv_prog_DLLTOOL
3908 if test -n "$DLLTOOL"; then
3909 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3910 echo "${ECHO_T}$DLLTOOL" >&6
3911 else
3912 echo "$as_me:$LINENO: result: no" >&5
3913 echo "${ECHO_T}no" >&6
3917 if test -z "$ac_cv_prog_DLLTOOL"; then
3918 ac_ct_DLLTOOL=$DLLTOOL
3919 # Extract the first word of "dlltool", so it can be a program name with args.
3920 set dummy dlltool; ac_word=$2
3921 echo "$as_me:$LINENO: checking for $ac_word" >&5
3922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3923 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3925 else
3926 if test -n "$ac_ct_DLLTOOL"; then
3927 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3928 else
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 for as_dir in $PATH
3932 IFS=$as_save_IFS
3933 test -z "$as_dir" && as_dir=.
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3936 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3938 break 2
3940 done
3941 done
3943 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
3946 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3947 if test -n "$ac_ct_DLLTOOL"; then
3948 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
3949 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
3950 else
3951 echo "$as_me:$LINENO: result: no" >&5
3952 echo "${ECHO_T}no" >&6
3955 DLLTOOL=$ac_ct_DLLTOOL
3956 else
3957 DLLTOOL="$ac_cv_prog_DLLTOOL"
3960 if test -n "$ac_tool_prefix"; then
3961 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3962 set dummy ${ac_tool_prefix}as; ac_word=$2
3963 echo "$as_me:$LINENO: checking for $ac_word" >&5
3964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3965 if test "${ac_cv_prog_AS+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 else
3968 if test -n "$AS"; then
3969 ac_cv_prog_AS="$AS" # Let the user override the test.
3970 else
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH
3974 IFS=$as_save_IFS
3975 test -z "$as_dir" && as_dir=.
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3978 ac_cv_prog_AS="${ac_tool_prefix}as"
3979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3980 break 2
3982 done
3983 done
3987 AS=$ac_cv_prog_AS
3988 if test -n "$AS"; then
3989 echo "$as_me:$LINENO: result: $AS" >&5
3990 echo "${ECHO_T}$AS" >&6
3991 else
3992 echo "$as_me:$LINENO: result: no" >&5
3993 echo "${ECHO_T}no" >&6
3997 if test -z "$ac_cv_prog_AS"; then
3998 ac_ct_AS=$AS
3999 # Extract the first word of "as", so it can be a program name with args.
4000 set dummy as; ac_word=$2
4001 echo "$as_me:$LINENO: checking for $ac_word" >&5
4002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4003 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4005 else
4006 if test -n "$ac_ct_AS"; then
4007 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4008 else
4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010 for as_dir in $PATH
4012 IFS=$as_save_IFS
4013 test -z "$as_dir" && as_dir=.
4014 for ac_exec_ext in '' $ac_executable_extensions; do
4015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4016 ac_cv_prog_ac_ct_AS="as"
4017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4018 break 2
4020 done
4021 done
4023 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4026 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4027 if test -n "$ac_ct_AS"; then
4028 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4029 echo "${ECHO_T}$ac_ct_AS" >&6
4030 else
4031 echo "$as_me:$LINENO: result: no" >&5
4032 echo "${ECHO_T}no" >&6
4035 AS=$ac_ct_AS
4036 else
4037 AS="$ac_cv_prog_AS"
4040 if test -n "$ac_tool_prefix"; then
4041 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4042 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4043 echo "$as_me:$LINENO: checking for $ac_word" >&5
4044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4045 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4047 else
4048 if test -n "$OBJDUMP"; then
4049 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4050 else
4051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052 for as_dir in $PATH
4054 IFS=$as_save_IFS
4055 test -z "$as_dir" && as_dir=.
4056 for ac_exec_ext in '' $ac_executable_extensions; do
4057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4058 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4060 break 2
4062 done
4063 done
4067 OBJDUMP=$ac_cv_prog_OBJDUMP
4068 if test -n "$OBJDUMP"; then
4069 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4070 echo "${ECHO_T}$OBJDUMP" >&6
4071 else
4072 echo "$as_me:$LINENO: result: no" >&5
4073 echo "${ECHO_T}no" >&6
4077 if test -z "$ac_cv_prog_OBJDUMP"; then
4078 ac_ct_OBJDUMP=$OBJDUMP
4079 # Extract the first word of "objdump", so it can be a program name with args.
4080 set dummy objdump; ac_word=$2
4081 echo "$as_me:$LINENO: checking for $ac_word" >&5
4082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4083 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
4085 else
4086 if test -n "$ac_ct_OBJDUMP"; then
4087 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4088 else
4089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090 for as_dir in $PATH
4092 IFS=$as_save_IFS
4093 test -z "$as_dir" && as_dir=.
4094 for ac_exec_ext in '' $ac_executable_extensions; do
4095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4096 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4098 break 2
4100 done
4101 done
4103 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4106 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4107 if test -n "$ac_ct_OBJDUMP"; then
4108 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4109 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4110 else
4111 echo "$as_me:$LINENO: result: no" >&5
4112 echo "${ECHO_T}no" >&6
4115 OBJDUMP=$ac_ct_OBJDUMP
4116 else
4117 OBJDUMP="$ac_cv_prog_OBJDUMP"
4122 esac
4124 need_locks="$enable_libtool_lock"
4127 ac_ext=c
4128 ac_cpp='$CPP $CPPFLAGS'
4129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4132 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4133 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4134 # On Suns, sometimes $CPP names a directory.
4135 if test -n "$CPP" && test -d "$CPP"; then
4136 CPP=
4138 if test -z "$CPP"; then
4139 if test "${ac_cv_prog_CPP+set}" = set; then
4140 echo $ECHO_N "(cached) $ECHO_C" >&6
4141 else
4142 # Double quotes because CPP needs to be expanded
4143 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4145 ac_preproc_ok=false
4146 for ac_c_preproc_warn_flag in '' yes
4148 # Use a header file that comes with gcc, so configuring glibc
4149 # with a fresh cross-compiler works.
4150 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4151 # <limits.h> exists even on freestanding compilers.
4152 # On the NeXT, cc -E runs the code through the compiler's parser,
4153 # not just through cpp. "Syntax error" is here to catch this case.
4154 cat >conftest.$ac_ext <<_ACEOF
4155 /* confdefs.h. */
4156 _ACEOF
4157 cat confdefs.h >>conftest.$ac_ext
4158 cat >>conftest.$ac_ext <<_ACEOF
4159 /* end confdefs.h. */
4160 #ifdef __STDC__
4161 # include <limits.h>
4162 #else
4163 # include <assert.h>
4164 #endif
4165 Syntax error
4166 _ACEOF
4167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4169 ac_status=$?
4170 grep -v '^ *+' conftest.er1 >conftest.err
4171 rm -f conftest.er1
4172 cat conftest.err >&5
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); } >/dev/null; then
4175 if test -s conftest.err; then
4176 ac_cpp_err=$ac_c_preproc_warn_flag
4177 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4178 else
4179 ac_cpp_err=
4181 else
4182 ac_cpp_err=yes
4184 if test -z "$ac_cpp_err"; then
4186 else
4187 echo "$as_me: failed program was:" >&5
4188 sed 's/^/| /' conftest.$ac_ext >&5
4190 # Broken: fails on valid input.
4191 continue
4193 rm -f conftest.err conftest.$ac_ext
4195 # OK, works on sane cases. Now check whether non-existent headers
4196 # can be detected and how.
4197 cat >conftest.$ac_ext <<_ACEOF
4198 /* confdefs.h. */
4199 _ACEOF
4200 cat confdefs.h >>conftest.$ac_ext
4201 cat >>conftest.$ac_ext <<_ACEOF
4202 /* end confdefs.h. */
4203 #include <ac_nonexistent.h>
4204 _ACEOF
4205 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4206 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4207 ac_status=$?
4208 grep -v '^ *+' conftest.er1 >conftest.err
4209 rm -f conftest.er1
4210 cat conftest.err >&5
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); } >/dev/null; then
4213 if test -s conftest.err; then
4214 ac_cpp_err=$ac_c_preproc_warn_flag
4215 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4216 else
4217 ac_cpp_err=
4219 else
4220 ac_cpp_err=yes
4222 if test -z "$ac_cpp_err"; then
4223 # Broken: success on invalid input.
4224 continue
4225 else
4226 echo "$as_me: failed program was:" >&5
4227 sed 's/^/| /' conftest.$ac_ext >&5
4229 # Passes both tests.
4230 ac_preproc_ok=:
4231 break
4233 rm -f conftest.err conftest.$ac_ext
4235 done
4236 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4237 rm -f conftest.err conftest.$ac_ext
4238 if $ac_preproc_ok; then
4239 break
4242 done
4243 ac_cv_prog_CPP=$CPP
4246 CPP=$ac_cv_prog_CPP
4247 else
4248 ac_cv_prog_CPP=$CPP
4250 echo "$as_me:$LINENO: result: $CPP" >&5
4251 echo "${ECHO_T}$CPP" >&6
4252 ac_preproc_ok=false
4253 for ac_c_preproc_warn_flag in '' yes
4255 # Use a header file that comes with gcc, so configuring glibc
4256 # with a fresh cross-compiler works.
4257 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4258 # <limits.h> exists even on freestanding compilers.
4259 # On the NeXT, cc -E runs the code through the compiler's parser,
4260 # not just through cpp. "Syntax error" is here to catch this case.
4261 cat >conftest.$ac_ext <<_ACEOF
4262 /* confdefs.h. */
4263 _ACEOF
4264 cat confdefs.h >>conftest.$ac_ext
4265 cat >>conftest.$ac_ext <<_ACEOF
4266 /* end confdefs.h. */
4267 #ifdef __STDC__
4268 # include <limits.h>
4269 #else
4270 # include <assert.h>
4271 #endif
4272 Syntax error
4273 _ACEOF
4274 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4275 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4276 ac_status=$?
4277 grep -v '^ *+' conftest.er1 >conftest.err
4278 rm -f conftest.er1
4279 cat conftest.err >&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); } >/dev/null; then
4282 if test -s conftest.err; then
4283 ac_cpp_err=$ac_c_preproc_warn_flag
4284 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4285 else
4286 ac_cpp_err=
4288 else
4289 ac_cpp_err=yes
4291 if test -z "$ac_cpp_err"; then
4293 else
4294 echo "$as_me: failed program was:" >&5
4295 sed 's/^/| /' conftest.$ac_ext >&5
4297 # Broken: fails on valid input.
4298 continue
4300 rm -f conftest.err conftest.$ac_ext
4302 # OK, works on sane cases. Now check whether non-existent headers
4303 # can be detected and how.
4304 cat >conftest.$ac_ext <<_ACEOF
4305 /* confdefs.h. */
4306 _ACEOF
4307 cat confdefs.h >>conftest.$ac_ext
4308 cat >>conftest.$ac_ext <<_ACEOF
4309 /* end confdefs.h. */
4310 #include <ac_nonexistent.h>
4311 _ACEOF
4312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4314 ac_status=$?
4315 grep -v '^ *+' conftest.er1 >conftest.err
4316 rm -f conftest.er1
4317 cat conftest.err >&5
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); } >/dev/null; then
4320 if test -s conftest.err; then
4321 ac_cpp_err=$ac_c_preproc_warn_flag
4322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4323 else
4324 ac_cpp_err=
4326 else
4327 ac_cpp_err=yes
4329 if test -z "$ac_cpp_err"; then
4330 # Broken: success on invalid input.
4331 continue
4332 else
4333 echo "$as_me: failed program was:" >&5
4334 sed 's/^/| /' conftest.$ac_ext >&5
4336 # Passes both tests.
4337 ac_preproc_ok=:
4338 break
4340 rm -f conftest.err conftest.$ac_ext
4342 done
4343 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4344 rm -f conftest.err conftest.$ac_ext
4345 if $ac_preproc_ok; then
4347 else
4348 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4349 See \`config.log' for more details." >&5
4350 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4351 See \`config.log' for more details." >&2;}
4352 { (exit 1); exit 1; }; }
4355 ac_ext=c
4356 ac_cpp='$CPP $CPPFLAGS'
4357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4362 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4363 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4364 if test "${ac_cv_header_stdc+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4366 else
4367 cat >conftest.$ac_ext <<_ACEOF
4368 /* confdefs.h. */
4369 _ACEOF
4370 cat confdefs.h >>conftest.$ac_ext
4371 cat >>conftest.$ac_ext <<_ACEOF
4372 /* end confdefs.h. */
4373 #include <stdlib.h>
4374 #include <stdarg.h>
4375 #include <string.h>
4376 #include <float.h>
4379 main ()
4383 return 0;
4385 _ACEOF
4386 rm -f conftest.$ac_objext
4387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4388 (eval $ac_compile) 2>conftest.er1
4389 ac_status=$?
4390 grep -v '^ *+' conftest.er1 >conftest.err
4391 rm -f conftest.er1
4392 cat conftest.err >&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); } &&
4395 { ac_try='test -z "$ac_c_werror_flag"
4396 || test ! -s conftest.err'
4397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398 (eval $ac_try) 2>&5
4399 ac_status=$?
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; } &&
4402 { ac_try='test -s conftest.$ac_objext'
4403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404 (eval $ac_try) 2>&5
4405 ac_status=$?
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); }; }; then
4408 ac_cv_header_stdc=yes
4409 else
4410 echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4413 ac_cv_header_stdc=no
4415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4417 if test $ac_cv_header_stdc = yes; then
4418 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4419 cat >conftest.$ac_ext <<_ACEOF
4420 /* confdefs.h. */
4421 _ACEOF
4422 cat confdefs.h >>conftest.$ac_ext
4423 cat >>conftest.$ac_ext <<_ACEOF
4424 /* end confdefs.h. */
4425 #include <string.h>
4427 _ACEOF
4428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4429 $EGREP "memchr" >/dev/null 2>&1; then
4431 else
4432 ac_cv_header_stdc=no
4434 rm -f conftest*
4438 if test $ac_cv_header_stdc = yes; then
4439 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4440 cat >conftest.$ac_ext <<_ACEOF
4441 /* confdefs.h. */
4442 _ACEOF
4443 cat confdefs.h >>conftest.$ac_ext
4444 cat >>conftest.$ac_ext <<_ACEOF
4445 /* end confdefs.h. */
4446 #include <stdlib.h>
4448 _ACEOF
4449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4450 $EGREP "free" >/dev/null 2>&1; then
4452 else
4453 ac_cv_header_stdc=no
4455 rm -f conftest*
4459 if test $ac_cv_header_stdc = yes; then
4460 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4461 if test "$cross_compiling" = yes; then
4463 else
4464 cat >conftest.$ac_ext <<_ACEOF
4465 /* confdefs.h. */
4466 _ACEOF
4467 cat confdefs.h >>conftest.$ac_ext
4468 cat >>conftest.$ac_ext <<_ACEOF
4469 /* end confdefs.h. */
4470 #include <ctype.h>
4471 #if ((' ' & 0x0FF) == 0x020)
4472 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4473 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4474 #else
4475 # define ISLOWER(c) \
4476 (('a' <= (c) && (c) <= 'i') \
4477 || ('j' <= (c) && (c) <= 'r') \
4478 || ('s' <= (c) && (c) <= 'z'))
4479 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4480 #endif
4482 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4484 main ()
4486 int i;
4487 for (i = 0; i < 256; i++)
4488 if (XOR (islower (i), ISLOWER (i))
4489 || toupper (i) != TOUPPER (i))
4490 exit(2);
4491 exit (0);
4493 _ACEOF
4494 rm -f conftest$ac_exeext
4495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4496 (eval $ac_link) 2>&5
4497 ac_status=$?
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501 (eval $ac_try) 2>&5
4502 ac_status=$?
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; }; then
4506 else
4507 echo "$as_me: program exited with status $ac_status" >&5
4508 echo "$as_me: failed program was:" >&5
4509 sed 's/^/| /' conftest.$ac_ext >&5
4511 ( exit $ac_status )
4512 ac_cv_header_stdc=no
4514 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4518 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4519 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4520 if test $ac_cv_header_stdc = yes; then
4522 cat >>confdefs.h <<\_ACEOF
4523 #define STDC_HEADERS 1
4524 _ACEOF
4528 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4538 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4539 inttypes.h stdint.h unistd.h
4541 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4542 echo "$as_me:$LINENO: checking for $ac_header" >&5
4543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4546 else
4547 cat >conftest.$ac_ext <<_ACEOF
4548 /* confdefs.h. */
4549 _ACEOF
4550 cat confdefs.h >>conftest.$ac_ext
4551 cat >>conftest.$ac_ext <<_ACEOF
4552 /* end confdefs.h. */
4553 $ac_includes_default
4555 #include <$ac_header>
4556 _ACEOF
4557 rm -f conftest.$ac_objext
4558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4559 (eval $ac_compile) 2>conftest.er1
4560 ac_status=$?
4561 grep -v '^ *+' conftest.er1 >conftest.err
4562 rm -f conftest.er1
4563 cat conftest.err >&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); } &&
4566 { ac_try='test -z "$ac_c_werror_flag"
4567 || test ! -s conftest.err'
4568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4569 (eval $ac_try) 2>&5
4570 ac_status=$?
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }; } &&
4573 { ac_try='test -s conftest.$ac_objext'
4574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575 (eval $ac_try) 2>&5
4576 ac_status=$?
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; }; then
4579 eval "$as_ac_Header=yes"
4580 else
4581 echo "$as_me: failed program was:" >&5
4582 sed 's/^/| /' conftest.$ac_ext >&5
4584 eval "$as_ac_Header=no"
4586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4591 cat >>confdefs.h <<_ACEOF
4592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4593 _ACEOF
4597 done
4601 for ac_header in dlfcn.h
4603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4605 echo "$as_me:$LINENO: checking for $ac_header" >&5
4606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4612 else
4613 # Is the header compilable?
4614 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4615 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4616 cat >conftest.$ac_ext <<_ACEOF
4617 /* confdefs.h. */
4618 _ACEOF
4619 cat confdefs.h >>conftest.$ac_ext
4620 cat >>conftest.$ac_ext <<_ACEOF
4621 /* end confdefs.h. */
4622 $ac_includes_default
4623 #include <$ac_header>
4624 _ACEOF
4625 rm -f conftest.$ac_objext
4626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4627 (eval $ac_compile) 2>conftest.er1
4628 ac_status=$?
4629 grep -v '^ *+' conftest.er1 >conftest.err
4630 rm -f conftest.er1
4631 cat conftest.err >&5
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); } &&
4634 { ac_try='test -z "$ac_c_werror_flag"
4635 || test ! -s conftest.err'
4636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4637 (eval $ac_try) 2>&5
4638 ac_status=$?
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); }; } &&
4641 { ac_try='test -s conftest.$ac_objext'
4642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4643 (eval $ac_try) 2>&5
4644 ac_status=$?
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); }; }; then
4647 ac_header_compiler=yes
4648 else
4649 echo "$as_me: failed program was:" >&5
4650 sed 's/^/| /' conftest.$ac_ext >&5
4652 ac_header_compiler=no
4654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4655 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4656 echo "${ECHO_T}$ac_header_compiler" >&6
4658 # Is the header present?
4659 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4661 cat >conftest.$ac_ext <<_ACEOF
4662 /* confdefs.h. */
4663 _ACEOF
4664 cat confdefs.h >>conftest.$ac_ext
4665 cat >>conftest.$ac_ext <<_ACEOF
4666 /* end confdefs.h. */
4667 #include <$ac_header>
4668 _ACEOF
4669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4670 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4671 ac_status=$?
4672 grep -v '^ *+' conftest.er1 >conftest.err
4673 rm -f conftest.er1
4674 cat conftest.err >&5
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); } >/dev/null; then
4677 if test -s conftest.err; then
4678 ac_cpp_err=$ac_c_preproc_warn_flag
4679 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4680 else
4681 ac_cpp_err=
4683 else
4684 ac_cpp_err=yes
4686 if test -z "$ac_cpp_err"; then
4687 ac_header_preproc=yes
4688 else
4689 echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4692 ac_header_preproc=no
4694 rm -f conftest.err conftest.$ac_ext
4695 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4696 echo "${ECHO_T}$ac_header_preproc" >&6
4698 # So? What about this header?
4699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4700 yes:no: )
4701 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4702 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4704 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4705 ac_header_preproc=yes
4707 no:yes:* )
4708 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4709 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4710 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4711 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4712 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4713 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4714 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4715 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4717 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4718 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4719 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4721 cat <<\_ASBOX
4722 ## ------------------------------------------ ##
4723 ## Report this to the AC_PACKAGE_NAME lists. ##
4724 ## ------------------------------------------ ##
4725 _ASBOX
4727 sed "s/^/$as_me: WARNING: /" >&2
4729 esac
4730 echo "$as_me:$LINENO: checking for $ac_header" >&5
4731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
4734 else
4735 eval "$as_ac_Header=\$ac_header_preproc"
4737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4742 cat >>confdefs.h <<_ACEOF
4743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4744 _ACEOF
4748 done
4750 ac_ext=cc
4751 ac_cpp='$CXXCPP $CPPFLAGS'
4752 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4753 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4754 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4755 if test -n "$ac_tool_prefix"; then
4756 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4758 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4759 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4760 echo "$as_me:$LINENO: checking for $ac_word" >&5
4761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4762 if test "${ac_cv_prog_CXX+set}" = set; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4764 else
4765 if test -n "$CXX"; then
4766 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4767 else
4768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769 for as_dir in $PATH
4771 IFS=$as_save_IFS
4772 test -z "$as_dir" && as_dir=.
4773 for ac_exec_ext in '' $ac_executable_extensions; do
4774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4775 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4777 break 2
4779 done
4780 done
4784 CXX=$ac_cv_prog_CXX
4785 if test -n "$CXX"; then
4786 echo "$as_me:$LINENO: result: $CXX" >&5
4787 echo "${ECHO_T}$CXX" >&6
4788 else
4789 echo "$as_me:$LINENO: result: no" >&5
4790 echo "${ECHO_T}no" >&6
4793 test -n "$CXX" && break
4794 done
4796 if test -z "$CXX"; then
4797 ac_ct_CXX=$CXX
4798 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4800 # Extract the first word of "$ac_prog", so it can be a program name with args.
4801 set dummy $ac_prog; ac_word=$2
4802 echo "$as_me:$LINENO: checking for $ac_word" >&5
4803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4804 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4805 echo $ECHO_N "(cached) $ECHO_C" >&6
4806 else
4807 if test -n "$ac_ct_CXX"; then
4808 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4809 else
4810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811 for as_dir in $PATH
4813 IFS=$as_save_IFS
4814 test -z "$as_dir" && as_dir=.
4815 for ac_exec_ext in '' $ac_executable_extensions; do
4816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4817 ac_cv_prog_ac_ct_CXX="$ac_prog"
4818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4819 break 2
4821 done
4822 done
4826 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4827 if test -n "$ac_ct_CXX"; then
4828 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4829 echo "${ECHO_T}$ac_ct_CXX" >&6
4830 else
4831 echo "$as_me:$LINENO: result: no" >&5
4832 echo "${ECHO_T}no" >&6
4835 test -n "$ac_ct_CXX" && break
4836 done
4837 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4839 CXX=$ac_ct_CXX
4843 # Provide some information about the compiler.
4844 echo "$as_me:$LINENO:" \
4845 "checking for C++ compiler version" >&5
4846 ac_compiler=`set X $ac_compile; echo $2`
4847 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4848 (eval $ac_compiler --version </dev/null >&5) 2>&5
4849 ac_status=$?
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); }
4852 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4853 (eval $ac_compiler -v </dev/null >&5) 2>&5
4854 ac_status=$?
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); }
4857 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4858 (eval $ac_compiler -V </dev/null >&5) 2>&5
4859 ac_status=$?
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); }
4863 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4864 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4865 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4867 else
4868 cat >conftest.$ac_ext <<_ACEOF
4869 /* confdefs.h. */
4870 _ACEOF
4871 cat confdefs.h >>conftest.$ac_ext
4872 cat >>conftest.$ac_ext <<_ACEOF
4873 /* end confdefs.h. */
4876 main ()
4878 #ifndef __GNUC__
4879 choke me
4880 #endif
4883 return 0;
4885 _ACEOF
4886 rm -f conftest.$ac_objext
4887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4888 (eval $ac_compile) 2>conftest.er1
4889 ac_status=$?
4890 grep -v '^ *+' conftest.er1 >conftest.err
4891 rm -f conftest.er1
4892 cat conftest.err >&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); } &&
4895 { ac_try='test -z "$ac_cxx_werror_flag"
4896 || test ! -s conftest.err'
4897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4898 (eval $ac_try) 2>&5
4899 ac_status=$?
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); }; } &&
4902 { ac_try='test -s conftest.$ac_objext'
4903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4904 (eval $ac_try) 2>&5
4905 ac_status=$?
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); }; }; then
4908 ac_compiler_gnu=yes
4909 else
4910 echo "$as_me: failed program was:" >&5
4911 sed 's/^/| /' conftest.$ac_ext >&5
4913 ac_compiler_gnu=no
4915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4916 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4919 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4920 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4921 GXX=`test $ac_compiler_gnu = yes && echo yes`
4922 ac_test_CXXFLAGS=${CXXFLAGS+set}
4923 ac_save_CXXFLAGS=$CXXFLAGS
4924 CXXFLAGS="-g"
4925 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4926 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4927 if test "${ac_cv_prog_cxx_g+set}" = set; then
4928 echo $ECHO_N "(cached) $ECHO_C" >&6
4929 else
4930 cat >conftest.$ac_ext <<_ACEOF
4931 /* confdefs.h. */
4932 _ACEOF
4933 cat confdefs.h >>conftest.$ac_ext
4934 cat >>conftest.$ac_ext <<_ACEOF
4935 /* end confdefs.h. */
4938 main ()
4942 return 0;
4944 _ACEOF
4945 rm -f conftest.$ac_objext
4946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4947 (eval $ac_compile) 2>conftest.er1
4948 ac_status=$?
4949 grep -v '^ *+' conftest.er1 >conftest.err
4950 rm -f conftest.er1
4951 cat conftest.err >&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); } &&
4954 { ac_try='test -z "$ac_cxx_werror_flag"
4955 || test ! -s conftest.err'
4956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957 (eval $ac_try) 2>&5
4958 ac_status=$?
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); }; } &&
4961 { ac_try='test -s conftest.$ac_objext'
4962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963 (eval $ac_try) 2>&5
4964 ac_status=$?
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); }; }; then
4967 ac_cv_prog_cxx_g=yes
4968 else
4969 echo "$as_me: failed program was:" >&5
4970 sed 's/^/| /' conftest.$ac_ext >&5
4972 ac_cv_prog_cxx_g=no
4974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4976 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4977 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4978 if test "$ac_test_CXXFLAGS" = set; then
4979 CXXFLAGS=$ac_save_CXXFLAGS
4980 elif test $ac_cv_prog_cxx_g = yes; then
4981 if test "$GXX" = yes; then
4982 CXXFLAGS="-g -O2"
4983 else
4984 CXXFLAGS="-g"
4986 else
4987 if test "$GXX" = yes; then
4988 CXXFLAGS="-O2"
4989 else
4990 CXXFLAGS=
4993 for ac_declaration in \
4994 '' \
4995 'extern "C" void std::exit (int) throw (); using std::exit;' \
4996 'extern "C" void std::exit (int); using std::exit;' \
4997 'extern "C" void exit (int) throw ();' \
4998 'extern "C" void exit (int);' \
4999 'void exit (int);'
5001 cat >conftest.$ac_ext <<_ACEOF
5002 /* confdefs.h. */
5003 _ACEOF
5004 cat confdefs.h >>conftest.$ac_ext
5005 cat >>conftest.$ac_ext <<_ACEOF
5006 /* end confdefs.h. */
5007 $ac_declaration
5008 #include <stdlib.h>
5010 main ()
5012 exit (42);
5014 return 0;
5016 _ACEOF
5017 rm -f conftest.$ac_objext
5018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5019 (eval $ac_compile) 2>conftest.er1
5020 ac_status=$?
5021 grep -v '^ *+' conftest.er1 >conftest.err
5022 rm -f conftest.er1
5023 cat conftest.err >&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); } &&
5026 { ac_try='test -z "$ac_cxx_werror_flag"
5027 || test ! -s conftest.err'
5028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5029 (eval $ac_try) 2>&5
5030 ac_status=$?
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); }; } &&
5033 { ac_try='test -s conftest.$ac_objext'
5034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5035 (eval $ac_try) 2>&5
5036 ac_status=$?
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); }; }; then
5040 else
5041 echo "$as_me: failed program was:" >&5
5042 sed 's/^/| /' conftest.$ac_ext >&5
5044 continue
5046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5047 cat >conftest.$ac_ext <<_ACEOF
5048 /* confdefs.h. */
5049 _ACEOF
5050 cat confdefs.h >>conftest.$ac_ext
5051 cat >>conftest.$ac_ext <<_ACEOF
5052 /* end confdefs.h. */
5053 $ac_declaration
5055 main ()
5057 exit (42);
5059 return 0;
5061 _ACEOF
5062 rm -f conftest.$ac_objext
5063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5064 (eval $ac_compile) 2>conftest.er1
5065 ac_status=$?
5066 grep -v '^ *+' conftest.er1 >conftest.err
5067 rm -f conftest.er1
5068 cat conftest.err >&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); } &&
5071 { ac_try='test -z "$ac_cxx_werror_flag"
5072 || test ! -s conftest.err'
5073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5074 (eval $ac_try) 2>&5
5075 ac_status=$?
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); }; } &&
5078 { ac_try='test -s conftest.$ac_objext'
5079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5080 (eval $ac_try) 2>&5
5081 ac_status=$?
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); }; }; then
5084 break
5085 else
5086 echo "$as_me: failed program was:" >&5
5087 sed 's/^/| /' conftest.$ac_ext >&5
5090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5091 done
5092 rm -f conftest*
5093 if test -n "$ac_declaration"; then
5094 echo '#ifdef __cplusplus' >>confdefs.h
5095 echo $ac_declaration >>confdefs.h
5096 echo '#endif' >>confdefs.h
5099 ac_ext=cc
5100 ac_cpp='$CXXCPP $CPPFLAGS'
5101 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5102 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5103 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5105 depcc="$CXX" am_compiler_list=
5107 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5108 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5109 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5110 echo $ECHO_N "(cached) $ECHO_C" >&6
5111 else
5112 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5113 # We make a subdir and do the tests there. Otherwise we can end up
5114 # making bogus files that we don't know about and never remove. For
5115 # instance it was reported that on HP-UX the gcc test will end up
5116 # making a dummy file named `D' -- because `-MD' means `put the output
5117 # in D'.
5118 mkdir conftest.dir
5119 # Copy depcomp to subdir because otherwise we won't find it if we're
5120 # using a relative directory.
5121 cp "$am_depcomp" conftest.dir
5122 cd conftest.dir
5123 # We will build objects and dependencies in a subdirectory because
5124 # it helps to detect inapplicable dependency modes. For instance
5125 # both Tru64's cc and ICC support -MD to output dependencies as a
5126 # side effect of compilation, but ICC will put the dependencies in
5127 # the current directory while Tru64 will put them in the object
5128 # directory.
5129 mkdir sub
5131 am_cv_CXX_dependencies_compiler_type=none
5132 if test "$am_compiler_list" = ""; then
5133 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5135 for depmode in $am_compiler_list; do
5136 # Setup a source with many dependencies, because some compilers
5137 # like to wrap large dependency lists on column 80 (with \), and
5138 # we should not choose a depcomp mode which is confused by this.
5140 # We need to recreate these files for each test, as the compiler may
5141 # overwrite some of them when testing with obscure command lines.
5142 # This happens at least with the AIX C compiler.
5143 : > sub/conftest.c
5144 for i in 1 2 3 4 5 6; do
5145 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5146 : > sub/conftst$i.h
5147 done
5148 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5150 case $depmode in
5151 nosideeffect)
5152 # after this tag, mechanisms are not by side-effect, so they'll
5153 # only be used when explicitly requested
5154 if test "x$enable_dependency_tracking" = xyes; then
5155 continue
5156 else
5157 break
5160 none) break ;;
5161 esac
5162 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5163 # mode. It turns out that the SunPro C++ compiler does not properly
5164 # handle `-M -o', and we need to detect this.
5165 if depmode=$depmode \
5166 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5167 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5168 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5169 >/dev/null 2>conftest.err &&
5170 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5171 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5172 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5173 # icc doesn't choke on unknown options, it will just issue warnings
5174 # (even with -Werror). So we grep stderr for any message
5175 # that says an option was ignored.
5176 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
5177 am_cv_CXX_dependencies_compiler_type=$depmode
5178 break
5181 done
5183 cd ..
5184 rm -rf conftest.dir
5185 else
5186 am_cv_CXX_dependencies_compiler_type=none
5190 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5191 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5192 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5197 test "x$enable_dependency_tracking" != xno \
5198 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5199 am__fastdepCXX_TRUE=
5200 am__fastdepCXX_FALSE='#'
5201 else
5202 am__fastdepCXX_TRUE='#'
5203 am__fastdepCXX_FALSE=
5207 ac_ext=cc
5208 ac_cpp='$CXXCPP $CPPFLAGS'
5209 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5210 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5211 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5212 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5213 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5214 if test -z "$CXXCPP"; then
5215 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5217 else
5218 # Double quotes because CXXCPP needs to be expanded
5219 for CXXCPP in "$CXX -E" "/lib/cpp"
5221 ac_preproc_ok=false
5222 for ac_cxx_preproc_warn_flag in '' yes
5224 # Use a header file that comes with gcc, so configuring glibc
5225 # with a fresh cross-compiler works.
5226 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5227 # <limits.h> exists even on freestanding compilers.
5228 # On the NeXT, cc -E runs the code through the compiler's parser,
5229 # not just through cpp. "Syntax error" is here to catch this case.
5230 cat >conftest.$ac_ext <<_ACEOF
5231 /* confdefs.h. */
5232 _ACEOF
5233 cat confdefs.h >>conftest.$ac_ext
5234 cat >>conftest.$ac_ext <<_ACEOF
5235 /* end confdefs.h. */
5236 #ifdef __STDC__
5237 # include <limits.h>
5238 #else
5239 # include <assert.h>
5240 #endif
5241 Syntax error
5242 _ACEOF
5243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5245 ac_status=$?
5246 grep -v '^ *+' conftest.er1 >conftest.err
5247 rm -f conftest.er1
5248 cat conftest.err >&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } >/dev/null; then
5251 if test -s conftest.err; then
5252 ac_cpp_err=$ac_cxx_preproc_warn_flag
5253 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5254 else
5255 ac_cpp_err=
5257 else
5258 ac_cpp_err=yes
5260 if test -z "$ac_cpp_err"; then
5262 else
5263 echo "$as_me: failed program was:" >&5
5264 sed 's/^/| /' conftest.$ac_ext >&5
5266 # Broken: fails on valid input.
5267 continue
5269 rm -f conftest.err conftest.$ac_ext
5271 # OK, works on sane cases. Now check whether non-existent headers
5272 # can be detected and how.
5273 cat >conftest.$ac_ext <<_ACEOF
5274 /* confdefs.h. */
5275 _ACEOF
5276 cat confdefs.h >>conftest.$ac_ext
5277 cat >>conftest.$ac_ext <<_ACEOF
5278 /* end confdefs.h. */
5279 #include <ac_nonexistent.h>
5280 _ACEOF
5281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5283 ac_status=$?
5284 grep -v '^ *+' conftest.er1 >conftest.err
5285 rm -f conftest.er1
5286 cat conftest.err >&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); } >/dev/null; then
5289 if test -s conftest.err; then
5290 ac_cpp_err=$ac_cxx_preproc_warn_flag
5291 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5292 else
5293 ac_cpp_err=
5295 else
5296 ac_cpp_err=yes
5298 if test -z "$ac_cpp_err"; then
5299 # Broken: success on invalid input.
5300 continue
5301 else
5302 echo "$as_me: failed program was:" >&5
5303 sed 's/^/| /' conftest.$ac_ext >&5
5305 # Passes both tests.
5306 ac_preproc_ok=:
5307 break
5309 rm -f conftest.err conftest.$ac_ext
5311 done
5312 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5313 rm -f conftest.err conftest.$ac_ext
5314 if $ac_preproc_ok; then
5315 break
5318 done
5319 ac_cv_prog_CXXCPP=$CXXCPP
5322 CXXCPP=$ac_cv_prog_CXXCPP
5323 else
5324 ac_cv_prog_CXXCPP=$CXXCPP
5326 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5327 echo "${ECHO_T}$CXXCPP" >&6
5328 ac_preproc_ok=false
5329 for ac_cxx_preproc_warn_flag in '' yes
5331 # Use a header file that comes with gcc, so configuring glibc
5332 # with a fresh cross-compiler works.
5333 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5334 # <limits.h> exists even on freestanding compilers.
5335 # On the NeXT, cc -E runs the code through the compiler's parser,
5336 # not just through cpp. "Syntax error" is here to catch this case.
5337 cat >conftest.$ac_ext <<_ACEOF
5338 /* confdefs.h. */
5339 _ACEOF
5340 cat confdefs.h >>conftest.$ac_ext
5341 cat >>conftest.$ac_ext <<_ACEOF
5342 /* end confdefs.h. */
5343 #ifdef __STDC__
5344 # include <limits.h>
5345 #else
5346 # include <assert.h>
5347 #endif
5348 Syntax error
5349 _ACEOF
5350 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5351 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5352 ac_status=$?
5353 grep -v '^ *+' conftest.er1 >conftest.err
5354 rm -f conftest.er1
5355 cat conftest.err >&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); } >/dev/null; then
5358 if test -s conftest.err; then
5359 ac_cpp_err=$ac_cxx_preproc_warn_flag
5360 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5361 else
5362 ac_cpp_err=
5364 else
5365 ac_cpp_err=yes
5367 if test -z "$ac_cpp_err"; then
5369 else
5370 echo "$as_me: failed program was:" >&5
5371 sed 's/^/| /' conftest.$ac_ext >&5
5373 # Broken: fails on valid input.
5374 continue
5376 rm -f conftest.err conftest.$ac_ext
5378 # OK, works on sane cases. Now check whether non-existent headers
5379 # can be detected and how.
5380 cat >conftest.$ac_ext <<_ACEOF
5381 /* confdefs.h. */
5382 _ACEOF
5383 cat confdefs.h >>conftest.$ac_ext
5384 cat >>conftest.$ac_ext <<_ACEOF
5385 /* end confdefs.h. */
5386 #include <ac_nonexistent.h>
5387 _ACEOF
5388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5389 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5390 ac_status=$?
5391 grep -v '^ *+' conftest.er1 >conftest.err
5392 rm -f conftest.er1
5393 cat conftest.err >&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } >/dev/null; then
5396 if test -s conftest.err; then
5397 ac_cpp_err=$ac_cxx_preproc_warn_flag
5398 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5399 else
5400 ac_cpp_err=
5402 else
5403 ac_cpp_err=yes
5405 if test -z "$ac_cpp_err"; then
5406 # Broken: success on invalid input.
5407 continue
5408 else
5409 echo "$as_me: failed program was:" >&5
5410 sed 's/^/| /' conftest.$ac_ext >&5
5412 # Passes both tests.
5413 ac_preproc_ok=:
5414 break
5416 rm -f conftest.err conftest.$ac_ext
5418 done
5419 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5420 rm -f conftest.err conftest.$ac_ext
5421 if $ac_preproc_ok; then
5423 else
5424 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5425 See \`config.log' for more details." >&5
5426 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5427 See \`config.log' for more details." >&2;}
5428 { (exit 1); exit 1; }; }
5431 ac_ext=cc
5432 ac_cpp='$CXXCPP $CPPFLAGS'
5433 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5434 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5435 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5438 ac_ext=f
5439 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5440 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5441 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5442 if test -n "$ac_tool_prefix"; then
5443 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5445 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5446 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5447 echo "$as_me:$LINENO: checking for $ac_word" >&5
5448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5449 if test "${ac_cv_prog_F77+set}" = set; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5451 else
5452 if test -n "$F77"; then
5453 ac_cv_prog_F77="$F77" # Let the user override the test.
5454 else
5455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5456 for as_dir in $PATH
5458 IFS=$as_save_IFS
5459 test -z "$as_dir" && as_dir=.
5460 for ac_exec_ext in '' $ac_executable_extensions; do
5461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5462 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5464 break 2
5466 done
5467 done
5471 F77=$ac_cv_prog_F77
5472 if test -n "$F77"; then
5473 echo "$as_me:$LINENO: result: $F77" >&5
5474 echo "${ECHO_T}$F77" >&6
5475 else
5476 echo "$as_me:$LINENO: result: no" >&5
5477 echo "${ECHO_T}no" >&6
5480 test -n "$F77" && break
5481 done
5483 if test -z "$F77"; then
5484 ac_ct_F77=$F77
5485 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5487 # Extract the first word of "$ac_prog", so it can be a program name with args.
5488 set dummy $ac_prog; ac_word=$2
5489 echo "$as_me:$LINENO: checking for $ac_word" >&5
5490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5491 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5492 echo $ECHO_N "(cached) $ECHO_C" >&6
5493 else
5494 if test -n "$ac_ct_F77"; then
5495 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5496 else
5497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498 for as_dir in $PATH
5500 IFS=$as_save_IFS
5501 test -z "$as_dir" && as_dir=.
5502 for ac_exec_ext in '' $ac_executable_extensions; do
5503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5504 ac_cv_prog_ac_ct_F77="$ac_prog"
5505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5506 break 2
5508 done
5509 done
5513 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5514 if test -n "$ac_ct_F77"; then
5515 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5516 echo "${ECHO_T}$ac_ct_F77" >&6
5517 else
5518 echo "$as_me:$LINENO: result: no" >&5
5519 echo "${ECHO_T}no" >&6
5522 test -n "$ac_ct_F77" && break
5523 done
5525 F77=$ac_ct_F77
5529 # Provide some information about the compiler.
5530 echo "$as_me:5530:" \
5531 "checking for Fortran 77 compiler version" >&5
5532 ac_compiler=`set X $ac_compile; echo $2`
5533 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5534 (eval $ac_compiler --version </dev/null >&5) 2>&5
5535 ac_status=$?
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }
5538 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5539 (eval $ac_compiler -v </dev/null >&5) 2>&5
5540 ac_status=$?
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }
5543 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5544 (eval $ac_compiler -V </dev/null >&5) 2>&5
5545 ac_status=$?
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); }
5548 rm -f a.out
5550 # If we don't use `.F' as extension, the preprocessor is not run on the
5551 # input file. (Note that this only needs to work for GNU compilers.)
5552 ac_save_ext=$ac_ext
5553 ac_ext=F
5554 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5555 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5556 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5557 echo $ECHO_N "(cached) $ECHO_C" >&6
5558 else
5559 cat >conftest.$ac_ext <<_ACEOF
5560 program main
5561 #ifndef __GNUC__
5562 choke me
5563 #endif
5566 _ACEOF
5567 rm -f conftest.$ac_objext
5568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5569 (eval $ac_compile) 2>conftest.er1
5570 ac_status=$?
5571 grep -v '^ *+' conftest.er1 >conftest.err
5572 rm -f conftest.er1
5573 cat conftest.err >&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); } &&
5576 { ac_try='test -z "$ac_f77_werror_flag"
5577 || test ! -s conftest.err'
5578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5579 (eval $ac_try) 2>&5
5580 ac_status=$?
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); }; } &&
5583 { ac_try='test -s conftest.$ac_objext'
5584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5585 (eval $ac_try) 2>&5
5586 ac_status=$?
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); }; }; then
5589 ac_compiler_gnu=yes
5590 else
5591 echo "$as_me: failed program was:" >&5
5592 sed 's/^/| /' conftest.$ac_ext >&5
5594 ac_compiler_gnu=no
5596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5597 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5600 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5601 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5602 ac_ext=$ac_save_ext
5603 ac_test_FFLAGS=${FFLAGS+set}
5604 ac_save_FFLAGS=$FFLAGS
5605 FFLAGS=
5606 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5607 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5608 if test "${ac_cv_prog_f77_g+set}" = set; then
5609 echo $ECHO_N "(cached) $ECHO_C" >&6
5610 else
5611 FFLAGS=-g
5612 cat >conftest.$ac_ext <<_ACEOF
5613 program main
5616 _ACEOF
5617 rm -f conftest.$ac_objext
5618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5619 (eval $ac_compile) 2>conftest.er1
5620 ac_status=$?
5621 grep -v '^ *+' conftest.er1 >conftest.err
5622 rm -f conftest.er1
5623 cat conftest.err >&5
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); } &&
5626 { ac_try='test -z "$ac_f77_werror_flag"
5627 || test ! -s conftest.err'
5628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5629 (eval $ac_try) 2>&5
5630 ac_status=$?
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); }; } &&
5633 { ac_try='test -s conftest.$ac_objext'
5634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5635 (eval $ac_try) 2>&5
5636 ac_status=$?
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); }; }; then
5639 ac_cv_prog_f77_g=yes
5640 else
5641 echo "$as_me: failed program was:" >&5
5642 sed 's/^/| /' conftest.$ac_ext >&5
5644 ac_cv_prog_f77_g=no
5646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5649 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5650 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5651 if test "$ac_test_FFLAGS" = set; then
5652 FFLAGS=$ac_save_FFLAGS
5653 elif test $ac_cv_prog_f77_g = yes; then
5654 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5655 FFLAGS="-g -O2"
5656 else
5657 FFLAGS="-g"
5659 else
5660 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5661 FFLAGS="-O2"
5662 else
5663 FFLAGS=
5667 G77=`test $ac_compiler_gnu = yes && echo yes`
5668 ac_ext=c
5669 ac_cpp='$CPP $CPPFLAGS'
5670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5676 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5678 # find the maximum length of command line arguments
5679 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5680 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5681 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5682 echo $ECHO_N "(cached) $ECHO_C" >&6
5683 else
5685 testring="ABCD"
5687 case $build_os in
5688 msdosdjgpp*)
5689 # On DJGPP, this test can blow up pretty badly due to problems in libc
5690 # (any single argument exceeding 2000 bytes causes a buffer overrun
5691 # during glob expansion). Even if it were fixed, the result of this
5692 # check would be larger than it should be.
5693 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5696 gnu*)
5697 # Under GNU Hurd, this test is not required because there is
5698 # no limit to the length of command line arguments.
5699 # Libtool will interpret -1 as no limit whatsoever
5700 lt_cv_sys_max_cmd_len=-1;
5703 cygwin* | mingw*)
5704 # On Win9x/ME, this test blows up -- it succeeds, but takes
5705 # about 5 minutes as the teststring grows exponentially.
5706 # Worse, since 9x/ME are not pre-emptively multitasking,
5707 # you end up with a "frozen" computer, even though with patience
5708 # the test eventually succeeds (with a max line length of 256k).
5709 # Instead, let's just punt: use the minimum linelength reported by
5710 # all of the supported platforms: 8192 (on NT/2K/XP).
5711 lt_cv_sys_max_cmd_len=8192;
5715 # If test is not a shell built-in, we'll probably end up computing a
5716 # maximum length that is only half of the actual maximum length, but
5717 # we can't tell.
5718 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5719 = "XX$testring") >/dev/null 2>&1 &&
5720 new_result=`expr "X$testring" : ".*" 2>&1` &&
5721 lt_cv_sys_max_cmd_len=$new_result &&
5722 test $i != 17 # 1/2 MB should be enough
5724 i=`expr $i + 1`
5725 testring=$testring$testring
5726 done
5727 testring=
5728 # Add a significant safety factor because C++ compilers can tack on massive
5729 # amounts of additional arguments before passing them to the linker.
5730 # It appears as though 1/2 is a usable value.
5731 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5733 esac
5737 if test -n $lt_cv_sys_max_cmd_len ; then
5738 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5739 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5740 else
5741 echo "$as_me:$LINENO: result: none" >&5
5742 echo "${ECHO_T}none" >&6
5748 # Check for command to grab the raw symbol name followed by C symbol from nm.
5749 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5750 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5751 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5752 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 else
5755 # These are sane defaults that work on at least a few old systems.
5756 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5758 # Character class describing NM global symbol codes.
5759 symcode='[BCDEGRST]'
5761 # Regexp to match symbols that can be accessed directly from C.
5762 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5764 # Transform the above into a raw symbol and a C symbol.
5765 symxfrm='\1 \2\3 \3'
5767 # Transform an extracted symbol line into a proper C declaration
5768 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5770 # Transform an extracted symbol line into symbol name and symbol address
5771 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'"
5773 # Define system-specific variables.
5774 case $host_os in
5775 aix*)
5776 symcode='[BCDT]'
5778 cygwin* | mingw* | pw32*)
5779 symcode='[ABCDGISTW]'
5781 hpux*) # Its linker distinguishes data from code symbols
5782 if test "$host_cpu" = ia64; then
5783 symcode='[ABCDEGRST]'
5785 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5786 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'"
5788 irix* | nonstopux*)
5789 symcode='[BCDEGRST]'
5791 osf*)
5792 symcode='[BCDEGQRST]'
5794 solaris* | sysv5*)
5795 symcode='[BDT]'
5797 sysv4)
5798 symcode='[DFNSTU]'
5800 esac
5802 # Handle CRLF in mingw tool chain
5803 opt_cr=
5804 case $build_os in
5805 mingw*)
5806 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5808 esac
5810 # If we're using GNU nm, then use its standard symbol codes.
5811 case `$NM -V 2>&1` in
5812 *GNU* | *'with BFD'*)
5813 symcode='[ABCDGISTW]' ;;
5814 esac
5816 # Try without a prefix undercore, then with it.
5817 for ac_symprfx in "" "_"; do
5819 # Write the raw and C identifiers.
5820 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5822 # Check to see that the pipe works correctly.
5823 pipe_works=no
5825 rm -f conftest*
5826 cat > conftest.$ac_ext <<EOF
5827 #ifdef __cplusplus
5828 extern "C" {
5829 #endif
5830 char nm_test_var;
5831 void nm_test_func(){}
5832 #ifdef __cplusplus
5834 #endif
5835 int main(){nm_test_var='a';nm_test_func();return(0);}
5838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5839 (eval $ac_compile) 2>&5
5840 ac_status=$?
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); }; then
5843 # Now try to grab the symbols.
5844 nlist=conftest.nm
5845 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5846 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5847 ac_status=$?
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } && test -s "$nlist"; then
5850 # Try sorting and uniquifying the output.
5851 if sort "$nlist" | uniq > "$nlist"T; then
5852 mv -f "$nlist"T "$nlist"
5853 else
5854 rm -f "$nlist"T
5857 # Make sure that we snagged all the symbols we need.
5858 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5859 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5860 cat <<EOF > conftest.$ac_ext
5861 #ifdef __cplusplus
5862 extern "C" {
5863 #endif
5866 # Now generate the symbol file.
5867 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5869 cat <<EOF >> conftest.$ac_ext
5870 #if defined (__STDC__) && __STDC__
5871 # define lt_ptr_t void *
5872 #else
5873 # define lt_ptr_t char *
5874 # define const
5875 #endif
5877 /* The mapping between symbol names and symbols. */
5878 const struct {
5879 const char *name;
5880 lt_ptr_t address;
5882 lt_preloaded_symbols[] =
5885 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5886 cat <<\EOF >> conftest.$ac_ext
5887 {0, (lt_ptr_t) 0}
5890 #ifdef __cplusplus
5892 #endif
5894 # Now try linking the two files.
5895 mv conftest.$ac_objext conftstm.$ac_objext
5896 lt_save_LIBS="$LIBS"
5897 lt_save_CFLAGS="$CFLAGS"
5898 LIBS="conftstm.$ac_objext"
5899 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5901 (eval $ac_link) 2>&5
5902 ac_status=$?
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5905 pipe_works=yes
5907 LIBS="$lt_save_LIBS"
5908 CFLAGS="$lt_save_CFLAGS"
5909 else
5910 echo "cannot find nm_test_func in $nlist" >&5
5912 else
5913 echo "cannot find nm_test_var in $nlist" >&5
5915 else
5916 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5918 else
5919 echo "$progname: failed program was:" >&5
5920 cat conftest.$ac_ext >&5
5922 rm -f conftest* conftst*
5924 # Do not use the global_symbol_pipe unless it works.
5925 if test "$pipe_works" = yes; then
5926 break
5927 else
5928 lt_cv_sys_global_symbol_pipe=
5930 done
5934 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5935 lt_cv_sys_global_symbol_to_cdecl=
5937 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5938 echo "$as_me:$LINENO: result: failed" >&5
5939 echo "${ECHO_T}failed" >&6
5940 else
5941 echo "$as_me:$LINENO: result: ok" >&5
5942 echo "${ECHO_T}ok" >&6
5945 echo "$as_me:$LINENO: checking for objdir" >&5
5946 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5947 if test "${lt_cv_objdir+set}" = set; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5949 else
5950 rm -f .libs 2>/dev/null
5951 mkdir .libs 2>/dev/null
5952 if test -d .libs; then
5953 lt_cv_objdir=.libs
5954 else
5955 # MS-DOS does not allow filenames that begin with a dot.
5956 lt_cv_objdir=_libs
5958 rmdir .libs 2>/dev/null
5960 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5961 echo "${ECHO_T}$lt_cv_objdir" >&6
5962 objdir=$lt_cv_objdir
5968 case $host_os in
5969 aix3*)
5970 # AIX sometimes has problems with the GCC collect2 program. For some
5971 # reason, if we set the COLLECT_NAMES environment variable, the problems
5972 # vanish in a puff of smoke.
5973 if test "X${COLLECT_NAMES+set}" != Xset; then
5974 COLLECT_NAMES=
5975 export COLLECT_NAMES
5978 esac
5980 # Sed substitution that helps us do robust quoting. It backslashifies
5981 # metacharacters that are still active within double-quoted strings.
5982 Xsed='sed -e s/^X//'
5983 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5985 # Same as above, but do not quote variable references.
5986 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5988 # Sed substitution to delay expansion of an escaped shell variable in a
5989 # double_quote_subst'ed string.
5990 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5992 # Sed substitution to avoid accidental globbing in evaled expressions
5993 no_glob_subst='s/\*/\\\*/g'
5995 # Constants:
5996 rm="rm -f"
5998 # Global variables:
5999 default_ofile=libtool
6000 can_build_shared=yes
6002 # All known linkers require a `.a' archive for static linking (except M$VC,
6003 # which needs '.lib').
6004 libext=a
6005 ltmain="$ac_aux_dir/ltmain.sh"
6006 ofile="$default_ofile"
6007 with_gnu_ld="$lt_cv_prog_gnu_ld"
6009 if test -n "$ac_tool_prefix"; then
6010 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6011 set dummy ${ac_tool_prefix}ar; ac_word=$2
6012 echo "$as_me:$LINENO: checking for $ac_word" >&5
6013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6014 if test "${ac_cv_prog_AR+set}" = set; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6016 else
6017 if test -n "$AR"; then
6018 ac_cv_prog_AR="$AR" # Let the user override the test.
6019 else
6020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021 for as_dir in $PATH
6023 IFS=$as_save_IFS
6024 test -z "$as_dir" && as_dir=.
6025 for ac_exec_ext in '' $ac_executable_extensions; do
6026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6027 ac_cv_prog_AR="${ac_tool_prefix}ar"
6028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6029 break 2
6031 done
6032 done
6036 AR=$ac_cv_prog_AR
6037 if test -n "$AR"; then
6038 echo "$as_me:$LINENO: result: $AR" >&5
6039 echo "${ECHO_T}$AR" >&6
6040 else
6041 echo "$as_me:$LINENO: result: no" >&5
6042 echo "${ECHO_T}no" >&6
6046 if test -z "$ac_cv_prog_AR"; then
6047 ac_ct_AR=$AR
6048 # Extract the first word of "ar", so it can be a program name with args.
6049 set dummy ar; ac_word=$2
6050 echo "$as_me:$LINENO: checking for $ac_word" >&5
6051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6052 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6054 else
6055 if test -n "$ac_ct_AR"; then
6056 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6057 else
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 for as_dir in $PATH
6061 IFS=$as_save_IFS
6062 test -z "$as_dir" && as_dir=.
6063 for ac_exec_ext in '' $ac_executable_extensions; do
6064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6065 ac_cv_prog_ac_ct_AR="ar"
6066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6067 break 2
6069 done
6070 done
6072 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6075 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6076 if test -n "$ac_ct_AR"; then
6077 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6078 echo "${ECHO_T}$ac_ct_AR" >&6
6079 else
6080 echo "$as_me:$LINENO: result: no" >&5
6081 echo "${ECHO_T}no" >&6
6084 AR=$ac_ct_AR
6085 else
6086 AR="$ac_cv_prog_AR"
6089 if test -n "$ac_tool_prefix"; then
6090 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6091 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6092 echo "$as_me:$LINENO: checking for $ac_word" >&5
6093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6094 if test "${ac_cv_prog_RANLIB+set}" = set; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6096 else
6097 if test -n "$RANLIB"; then
6098 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6099 else
6100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 for as_dir in $PATH
6103 IFS=$as_save_IFS
6104 test -z "$as_dir" && as_dir=.
6105 for ac_exec_ext in '' $ac_executable_extensions; do
6106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6107 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6109 break 2
6111 done
6112 done
6116 RANLIB=$ac_cv_prog_RANLIB
6117 if test -n "$RANLIB"; then
6118 echo "$as_me:$LINENO: result: $RANLIB" >&5
6119 echo "${ECHO_T}$RANLIB" >&6
6120 else
6121 echo "$as_me:$LINENO: result: no" >&5
6122 echo "${ECHO_T}no" >&6
6126 if test -z "$ac_cv_prog_RANLIB"; then
6127 ac_ct_RANLIB=$RANLIB
6128 # Extract the first word of "ranlib", so it can be a program name with args.
6129 set dummy ranlib; ac_word=$2
6130 echo "$as_me:$LINENO: checking for $ac_word" >&5
6131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6132 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6133 echo $ECHO_N "(cached) $ECHO_C" >&6
6134 else
6135 if test -n "$ac_ct_RANLIB"; then
6136 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6137 else
6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139 for as_dir in $PATH
6141 IFS=$as_save_IFS
6142 test -z "$as_dir" && as_dir=.
6143 for ac_exec_ext in '' $ac_executable_extensions; do
6144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6145 ac_cv_prog_ac_ct_RANLIB="ranlib"
6146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6147 break 2
6149 done
6150 done
6152 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6155 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6156 if test -n "$ac_ct_RANLIB"; then
6157 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6158 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6159 else
6160 echo "$as_me:$LINENO: result: no" >&5
6161 echo "${ECHO_T}no" >&6
6164 RANLIB=$ac_ct_RANLIB
6165 else
6166 RANLIB="$ac_cv_prog_RANLIB"
6169 if test -n "$ac_tool_prefix"; then
6170 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6171 set dummy ${ac_tool_prefix}strip; ac_word=$2
6172 echo "$as_me:$LINENO: checking for $ac_word" >&5
6173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6174 if test "${ac_cv_prog_STRIP+set}" = set; then
6175 echo $ECHO_N "(cached) $ECHO_C" >&6
6176 else
6177 if test -n "$STRIP"; then
6178 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6179 else
6180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181 for as_dir in $PATH
6183 IFS=$as_save_IFS
6184 test -z "$as_dir" && as_dir=.
6185 for ac_exec_ext in '' $ac_executable_extensions; do
6186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6187 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6189 break 2
6191 done
6192 done
6196 STRIP=$ac_cv_prog_STRIP
6197 if test -n "$STRIP"; then
6198 echo "$as_me:$LINENO: result: $STRIP" >&5
6199 echo "${ECHO_T}$STRIP" >&6
6200 else
6201 echo "$as_me:$LINENO: result: no" >&5
6202 echo "${ECHO_T}no" >&6
6206 if test -z "$ac_cv_prog_STRIP"; then
6207 ac_ct_STRIP=$STRIP
6208 # Extract the first word of "strip", so it can be a program name with args.
6209 set dummy strip; ac_word=$2
6210 echo "$as_me:$LINENO: checking for $ac_word" >&5
6211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6212 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
6214 else
6215 if test -n "$ac_ct_STRIP"; then
6216 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6217 else
6218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219 for as_dir in $PATH
6221 IFS=$as_save_IFS
6222 test -z "$as_dir" && as_dir=.
6223 for ac_exec_ext in '' $ac_executable_extensions; do
6224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6225 ac_cv_prog_ac_ct_STRIP="strip"
6226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6227 break 2
6229 done
6230 done
6232 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6235 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6236 if test -n "$ac_ct_STRIP"; then
6237 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6238 echo "${ECHO_T}$ac_ct_STRIP" >&6
6239 else
6240 echo "$as_me:$LINENO: result: no" >&5
6241 echo "${ECHO_T}no" >&6
6244 STRIP=$ac_ct_STRIP
6245 else
6246 STRIP="$ac_cv_prog_STRIP"
6250 old_CC="$CC"
6251 old_CFLAGS="$CFLAGS"
6253 # Set sane defaults for various variables
6254 test -z "$AR" && AR=ar
6255 test -z "$AR_FLAGS" && AR_FLAGS=cru
6256 test -z "$AS" && AS=as
6257 test -z "$CC" && CC=cc
6258 test -z "$LTCC" && LTCC=$CC
6259 test -z "$DLLTOOL" && DLLTOOL=dlltool
6260 test -z "$LD" && LD=ld
6261 test -z "$LN_S" && LN_S="ln -s"
6262 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6263 test -z "$NM" && NM=nm
6264 test -z "$SED" && SED=sed
6265 test -z "$OBJDUMP" && OBJDUMP=objdump
6266 test -z "$RANLIB" && RANLIB=:
6267 test -z "$STRIP" && STRIP=:
6268 test -z "$ac_objext" && ac_objext=o
6270 # Determine commands to create old-style static archives.
6271 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6272 old_postinstall_cmds='chmod 644 $oldlib'
6273 old_postuninstall_cmds=
6275 if test -n "$RANLIB"; then
6276 case $host_os in
6277 openbsd*)
6278 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6281 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6283 esac
6284 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6287 # Only perform the check for file, if the check method requires it
6288 case $deplibs_check_method in
6289 file_magic*)
6290 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6291 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6292 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6293 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
6295 else
6296 case $MAGIC_CMD in
6297 [\\/*] | ?:[\\/]*)
6298 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6301 lt_save_MAGIC_CMD="$MAGIC_CMD"
6302 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6303 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6304 for ac_dir in $ac_dummy; do
6305 IFS="$lt_save_ifs"
6306 test -z "$ac_dir" && ac_dir=.
6307 if test -f $ac_dir/${ac_tool_prefix}file; then
6308 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6309 if test -n "$file_magic_test_file"; then
6310 case $deplibs_check_method in
6311 "file_magic "*)
6312 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6313 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6314 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6315 $EGREP "$file_magic_regex" > /dev/null; then
6317 else
6318 cat <<EOF 1>&2
6320 *** Warning: the command libtool uses to detect shared libraries,
6321 *** $file_magic_cmd, produces output that libtool cannot recognize.
6322 *** The result is that libtool may fail to recognize shared libraries
6323 *** as such. This will affect the creation of libtool libraries that
6324 *** depend on shared libraries, but programs linked with such libtool
6325 *** libraries will work regardless of this problem. Nevertheless, you
6326 *** may want to report the problem to your system manager and/or to
6327 *** bug-libtool@gnu.org
6330 fi ;;
6331 esac
6333 break
6335 done
6336 IFS="$lt_save_ifs"
6337 MAGIC_CMD="$lt_save_MAGIC_CMD"
6339 esac
6342 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6343 if test -n "$MAGIC_CMD"; then
6344 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6345 echo "${ECHO_T}$MAGIC_CMD" >&6
6346 else
6347 echo "$as_me:$LINENO: result: no" >&5
6348 echo "${ECHO_T}no" >&6
6351 if test -z "$lt_cv_path_MAGIC_CMD"; then
6352 if test -n "$ac_tool_prefix"; then
6353 echo "$as_me:$LINENO: checking for file" >&5
6354 echo $ECHO_N "checking for file... $ECHO_C" >&6
6355 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6357 else
6358 case $MAGIC_CMD in
6359 [\\/*] | ?:[\\/]*)
6360 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6363 lt_save_MAGIC_CMD="$MAGIC_CMD"
6364 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6365 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6366 for ac_dir in $ac_dummy; do
6367 IFS="$lt_save_ifs"
6368 test -z "$ac_dir" && ac_dir=.
6369 if test -f $ac_dir/file; then
6370 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6371 if test -n "$file_magic_test_file"; then
6372 case $deplibs_check_method in
6373 "file_magic "*)
6374 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6375 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6376 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6377 $EGREP "$file_magic_regex" > /dev/null; then
6379 else
6380 cat <<EOF 1>&2
6382 *** Warning: the command libtool uses to detect shared libraries,
6383 *** $file_magic_cmd, produces output that libtool cannot recognize.
6384 *** The result is that libtool may fail to recognize shared libraries
6385 *** as such. This will affect the creation of libtool libraries that
6386 *** depend on shared libraries, but programs linked with such libtool
6387 *** libraries will work regardless of this problem. Nevertheless, you
6388 *** may want to report the problem to your system manager and/or to
6389 *** bug-libtool@gnu.org
6392 fi ;;
6393 esac
6395 break
6397 done
6398 IFS="$lt_save_ifs"
6399 MAGIC_CMD="$lt_save_MAGIC_CMD"
6401 esac
6404 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6405 if test -n "$MAGIC_CMD"; then
6406 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6407 echo "${ECHO_T}$MAGIC_CMD" >&6
6408 else
6409 echo "$as_me:$LINENO: result: no" >&5
6410 echo "${ECHO_T}no" >&6
6413 else
6414 MAGIC_CMD=:
6420 esac
6422 enable_dlopen=no
6423 enable_win32_dll=yes
6425 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6426 if test "${enable_libtool_lock+set}" = set; then
6427 enableval="$enable_libtool_lock"
6430 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6433 # Check whether --with-pic or --without-pic was given.
6434 if test "${with_pic+set}" = set; then
6435 withval="$with_pic"
6436 pic_mode="$withval"
6437 else
6438 pic_mode=default
6440 test -z "$pic_mode" && pic_mode=default
6442 # Use C for the default configuration in the libtool script
6443 tagname=
6444 lt_save_CC="$CC"
6445 ac_ext=c
6446 ac_cpp='$CPP $CPPFLAGS'
6447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6452 # Source file extension for C test sources.
6453 ac_ext=c
6455 # Object file extension for compiled C test sources.
6456 objext=o
6457 objext=$objext
6459 # Code to be used in simple compile tests
6460 lt_simple_compile_test_code="int some_variable = 0;\n"
6462 # Code to be used in simple link tests
6463 lt_simple_link_test_code='int main(){return(0);}\n'
6466 # If no C compiler was specified, use CC.
6467 LTCC=${LTCC-"$CC"}
6469 # Allow CC to be a program name with arguments.
6470 compiler=$CC
6474 # Check for any special shared library compilation flags.
6476 lt_prog_cc_shlib=
6477 if test "$GCC" = no; then
6478 case $host_os in
6479 sco3.2v5*)
6480 lt_prog_cc_shlib='-belf'
6482 esac
6484 if test -n "$lt_prog_cc_shlib"; then
6485 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6486 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6487 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6488 else
6489 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6490 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6491 lt_cv_prog_cc_can_build_shared=no
6497 # Check to make sure the static flag actually works.
6499 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6500 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6501 if test "${lt_prog_compiler_static_works+set}" = set; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6503 else
6504 lt_prog_compiler_static_works=no
6505 save_LDFLAGS="$LDFLAGS"
6506 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6507 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6508 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6509 # The compiler can only warn and ignore the option if not recognized
6510 # So say no if there are warnings
6511 if test -s conftest.err; then
6512 # Append any errors to the config.log.
6513 cat conftest.err 1>&5
6514 else
6515 lt_prog_compiler_static_works=yes
6518 $rm conftest*
6519 LDFLAGS="$save_LDFLAGS"
6522 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6523 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6525 if test x"$lt_prog_compiler_static_works" = xyes; then
6527 else
6528 lt_prog_compiler_static=
6534 lt_prog_compiler_no_builtin_flag=
6536 if test "$GCC" = yes; then
6537 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6539 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6540 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6541 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6542 echo $ECHO_N "(cached) $ECHO_C" >&6
6543 else
6544 lt_cv_prog_compiler_rtti_exceptions=no
6545 ac_outfile=conftest.$ac_objext
6546 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6547 lt_compiler_flag="-fno-rtti -fno-exceptions"
6548 # Insert the option either (1) after the last *FLAGS variable, or
6549 # (2) before a word containing "conftest.", or (3) at the end.
6550 # Note that $ac_compile itself does not contain backslashes and begins
6551 # with a dollar sign (not a hyphen), so the echo should work correctly.
6552 # The option is referenced via a variable to avoid confusing sed.
6553 lt_compile=`echo "$ac_compile" | $SED \
6554 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6555 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6556 -e 's:$: $lt_compiler_flag:'`
6557 (eval echo "\"\$as_me:6557: $lt_compile\"" >&5)
6558 (eval "$lt_compile" 2>conftest.err)
6559 ac_status=$?
6560 cat conftest.err >&5
6561 echo "$as_me:6561: \$? = $ac_status" >&5
6562 if (exit $ac_status) && test -s "$ac_outfile"; then
6563 # The compiler can only warn and ignore the option if not recognized
6564 # So say no if there are warnings
6565 if test ! -s conftest.err; then
6566 lt_cv_prog_compiler_rtti_exceptions=yes
6569 $rm conftest*
6572 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6573 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6575 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6576 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6577 else
6583 lt_prog_compiler_wl=
6584 lt_prog_compiler_pic=
6585 lt_prog_compiler_static=
6587 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6588 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6590 if test "$GCC" = yes; then
6591 lt_prog_compiler_wl='-Wl,'
6592 lt_prog_compiler_static='-static'
6594 case $host_os in
6595 aix*)
6596 # All AIX code is PIC.
6597 if test "$host_cpu" = ia64; then
6598 # AIX 5 now supports IA64 processor
6599 lt_prog_compiler_static='-Bstatic'
6603 amigaos*)
6604 # FIXME: we need at least 68020 code to build shared libraries, but
6605 # adding the `-m68020' flag to GCC prevents building anything better,
6606 # like `-m68040'.
6607 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6610 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6611 # PIC is the default for these OSes.
6614 mingw* | pw32* | os2*)
6615 # This hack is so that the source file can tell whether it is being
6616 # built for inclusion in a dll (and should export symbols for example).
6617 lt_prog_compiler_pic='-DDLL_EXPORT'
6620 darwin* | rhapsody*)
6621 # PIC is the default on this platform
6622 # Common symbols not allowed in MH_DYLIB files
6623 lt_prog_compiler_pic='-fno-common'
6626 msdosdjgpp*)
6627 # Just because we use GCC doesn't mean we suddenly get shared libraries
6628 # on systems that don't support them.
6629 lt_prog_compiler_can_build_shared=no
6630 enable_shared=no
6633 sysv4*MP*)
6634 if test -d /usr/nec; then
6635 lt_prog_compiler_pic=-Kconform_pic
6639 hpux*)
6640 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6641 # not for PA HP-UX.
6642 case "$host_cpu" in
6643 hppa*64*|ia64*)
6644 # +Z the default
6647 lt_prog_compiler_pic='-fPIC'
6649 esac
6653 lt_prog_compiler_pic='-fPIC'
6655 esac
6656 else
6657 # PORTME Check for flag to pass linker flags through the system compiler.
6658 case $host_os in
6659 aix*)
6660 lt_prog_compiler_wl='-Wl,'
6661 if test "$host_cpu" = ia64; then
6662 # AIX 5 now supports IA64 processor
6663 lt_prog_compiler_static='-Bstatic'
6664 else
6665 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6669 mingw* | pw32* | os2*)
6670 # This hack is so that the source file can tell whether it is being
6671 # built for inclusion in a dll (and should export symbols for example).
6672 lt_prog_compiler_pic='-DDLL_EXPORT'
6675 hpux9* | hpux10* | hpux11*)
6676 lt_prog_compiler_wl='-Wl,'
6677 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6678 # not for PA HP-UX.
6679 case "$host_cpu" in
6680 hppa*64*|ia64*)
6681 # +Z the default
6684 lt_prog_compiler_pic='+Z'
6686 esac
6687 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6688 lt_prog_compiler_static='${wl}-a ${wl}archive'
6691 irix5* | irix6* | nonstopux*)
6692 lt_prog_compiler_wl='-Wl,'
6693 # PIC (with -KPIC) is the default.
6694 lt_prog_compiler_static='-non_shared'
6697 newsos6)
6698 lt_prog_compiler_pic='-KPIC'
6699 lt_prog_compiler_static='-Bstatic'
6702 linux*)
6703 case $CC in
6704 icc|ecc)
6705 lt_prog_compiler_wl='-Wl,'
6706 lt_prog_compiler_pic='-KPIC'
6707 lt_prog_compiler_static='-static'
6709 ccc)
6710 lt_prog_compiler_wl='-Wl,'
6711 # All Alpha code is PIC.
6712 lt_prog_compiler_static='-non_shared'
6714 esac
6717 osf3* | osf4* | osf5*)
6718 lt_prog_compiler_wl='-Wl,'
6719 # All OSF/1 code is PIC.
6720 lt_prog_compiler_static='-non_shared'
6723 sco3.2v5*)
6724 lt_prog_compiler_pic='-Kpic'
6725 lt_prog_compiler_static='-dn'
6728 solaris*)
6729 lt_prog_compiler_wl='-Wl,'
6730 lt_prog_compiler_pic='-KPIC'
6731 lt_prog_compiler_static='-Bstatic'
6734 sunos4*)
6735 lt_prog_compiler_wl='-Qoption ld '
6736 lt_prog_compiler_pic='-PIC'
6737 lt_prog_compiler_static='-Bstatic'
6740 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6741 lt_prog_compiler_wl='-Wl,'
6742 lt_prog_compiler_pic='-KPIC'
6743 lt_prog_compiler_static='-Bstatic'
6746 sysv4*MP*)
6747 if test -d /usr/nec ;then
6748 lt_prog_compiler_pic='-Kconform_pic'
6749 lt_prog_compiler_static='-Bstatic'
6753 uts4*)
6754 lt_prog_compiler_pic='-pic'
6755 lt_prog_compiler_static='-Bstatic'
6759 lt_prog_compiler_can_build_shared=no
6761 esac
6764 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6765 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6768 # Check to make sure the PIC flag actually works.
6770 if test -n "$lt_prog_compiler_pic"; then
6771 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6772 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6773 if test "${lt_prog_compiler_pic_works+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6775 else
6776 lt_prog_compiler_pic_works=no
6777 ac_outfile=conftest.$ac_objext
6778 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6779 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6780 # Insert the option either (1) after the last *FLAGS variable, or
6781 # (2) before a word containing "conftest.", or (3) at the end.
6782 # Note that $ac_compile itself does not contain backslashes and begins
6783 # with a dollar sign (not a hyphen), so the echo should work correctly.
6784 # The option is referenced via a variable to avoid confusing sed.
6785 lt_compile=`echo "$ac_compile" | $SED \
6786 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6787 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6788 -e 's:$: $lt_compiler_flag:'`
6789 (eval echo "\"\$as_me:6789: $lt_compile\"" >&5)
6790 (eval "$lt_compile" 2>conftest.err)
6791 ac_status=$?
6792 cat conftest.err >&5
6793 echo "$as_me:6793: \$? = $ac_status" >&5
6794 if (exit $ac_status) && test -s "$ac_outfile"; then
6795 # The compiler can only warn and ignore the option if not recognized
6796 # So say no if there are warnings
6797 if test ! -s conftest.err; then
6798 lt_prog_compiler_pic_works=yes
6801 $rm conftest*
6804 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6805 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6807 if test x"$lt_prog_compiler_pic_works" = xyes; then
6808 case $lt_prog_compiler_pic in
6809 "" | " "*) ;;
6810 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6811 esac
6812 else
6813 lt_prog_compiler_pic=
6814 lt_prog_compiler_can_build_shared=no
6818 case "$host_os" in
6819 # For platforms which do not support PIC, -DPIC is meaningless:
6820 *djgpp*)
6821 lt_prog_compiler_pic=
6824 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6826 esac
6828 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6829 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6830 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6831 echo $ECHO_N "(cached) $ECHO_C" >&6
6832 else
6833 lt_cv_prog_compiler_c_o=no
6834 $rm -r conftest 2>/dev/null
6835 mkdir conftest
6836 cd conftest
6837 mkdir out
6838 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6840 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6841 # that will create temporary files in the current directory regardless of
6842 # the output directory. Thus, making CWD read-only will cause this test
6843 # to fail, enabling locking or at least warning the user not to do parallel
6844 # builds.
6845 chmod -w .
6847 lt_compiler_flag="-o out/conftest2.$ac_objext"
6848 # Insert the option either (1) after the last *FLAGS variable, or
6849 # (2) before a word containing "conftest.", or (3) at the end.
6850 # Note that $ac_compile itself does not contain backslashes and begins
6851 # with a dollar sign (not a hyphen), so the echo should work correctly.
6852 lt_compile=`echo "$ac_compile" | $SED \
6853 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6854 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6855 -e 's:$: $lt_compiler_flag:'`
6856 (eval echo "\"\$as_me:6856: $lt_compile\"" >&5)
6857 (eval "$lt_compile" 2>out/conftest.err)
6858 ac_status=$?
6859 cat out/conftest.err >&5
6860 echo "$as_me:6860: \$? = $ac_status" >&5
6861 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6862 then
6863 # The compiler can only warn and ignore the option if not recognized
6864 # So say no if there are warnings
6865 if test ! -s out/conftest.err; then
6866 lt_cv_prog_compiler_c_o=yes
6869 chmod u+w .
6870 $rm conftest* out/*
6871 rmdir out
6872 cd ..
6873 rmdir conftest
6874 $rm conftest*
6877 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6878 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6881 hard_links="nottested"
6882 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6883 # do not overwrite the value of need_locks provided by the user
6884 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6885 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6886 hard_links=yes
6887 $rm conftest*
6888 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6889 touch conftest.a
6890 ln conftest.a conftest.b 2>&5 || hard_links=no
6891 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6892 echo "$as_me:$LINENO: result: $hard_links" >&5
6893 echo "${ECHO_T}$hard_links" >&6
6894 if test "$hard_links" = no; then
6895 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6896 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6897 need_locks=warn
6899 else
6900 need_locks=no
6903 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6904 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6906 runpath_var=
6907 allow_undefined_flag=
6908 enable_shared_with_static_runtimes=no
6909 archive_cmds=
6910 archive_expsym_cmds=
6911 old_archive_From_new_cmds=
6912 old_archive_from_expsyms_cmds=
6913 export_dynamic_flag_spec=
6914 whole_archive_flag_spec=
6915 thread_safe_flag_spec=
6916 hardcode_libdir_flag_spec=
6917 hardcode_libdir_flag_spec_ld=
6918 hardcode_libdir_separator=
6919 hardcode_direct=no
6920 hardcode_minus_L=no
6921 hardcode_shlibpath_var=unsupported
6922 link_all_deplibs=unknown
6923 hardcode_automatic=no
6924 module_cmds=
6925 module_expsym_cmds=
6926 always_export_symbols=no
6927 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6928 # include_expsyms should be a list of space-separated symbols to be *always*
6929 # included in the symbol list
6930 include_expsyms=
6931 # exclude_expsyms can be an extended regexp of symbols to exclude
6932 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6933 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6934 # as well as any symbol that contains `d'.
6935 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6936 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6937 # platforms (ab)use it in PIC code, but their linkers get confused if
6938 # the symbol is explicitly referenced. Since portable code cannot
6939 # rely on this symbol name, it's probably fine to never include it in
6940 # preloaded symbol tables.
6941 extract_expsyms_cmds=
6943 case $host_os in
6944 cygwin* | mingw* | pw32*)
6945 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6946 # When not using gcc, we currently assume that we are using
6947 # Microsoft Visual C++.
6948 if test "$GCC" != yes; then
6949 with_gnu_ld=no
6952 openbsd*)
6953 with_gnu_ld=no
6955 esac
6957 ld_shlibs=yes
6958 if test "$with_gnu_ld" = yes; then
6959 # If archive_cmds runs LD, not CC, wlarc should be empty
6960 wlarc='${wl}'
6962 # See if GNU ld supports shared libraries.
6963 case $host_os in
6964 aix3* | aix4* | aix5*)
6965 # On AIX/PPC, the GNU linker is very broken
6966 if test "$host_cpu" != ia64; then
6967 ld_shlibs=no
6968 cat <<EOF 1>&2
6970 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6971 *** to be unable to reliably create shared libraries on AIX.
6972 *** Therefore, libtool is disabling shared libraries support. If you
6973 *** really care for shared libraries, you may want to modify your PATH
6974 *** so that a non-GNU linker is found, and then restart.
6980 amigaos*)
6981 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)'
6982 hardcode_libdir_flag_spec='-L$libdir'
6983 hardcode_minus_L=yes
6985 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6986 # that the semantics of dynamic libraries on AmigaOS, at least up
6987 # to version 4, is to share data among multiple programs linked
6988 # with the same dynamic library. Since this doesn't match the
6989 # behavior of shared libraries on other platforms, we can't use
6990 # them.
6991 ld_shlibs=no
6994 beos*)
6995 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6996 allow_undefined_flag=unsupported
6997 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6998 # support --undefined. This deserves some investigation. FIXME
6999 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7000 else
7001 ld_shlibs=no
7005 cygwin* | mingw* | pw32*)
7006 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7007 # as there is no search path for DLLs.
7008 hardcode_libdir_flag_spec='-L$libdir'
7009 allow_undefined_flag=unsupported
7010 always_export_symbols=no
7011 enable_shared_with_static_runtimes=yes
7012 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7014 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7016 # If the export-symbols file already is a .def file (1st line
7017 # is EXPORTS), use it as is; otherwise, prepend...
7018 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7019 cp $export_symbols $output_objdir/$soname.def;
7020 else
7021 echo EXPORTS > $output_objdir/$soname.def;
7022 cat $export_symbols >> $output_objdir/$soname.def;
7024 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7025 else
7026 ld_shlibs=no
7030 netbsd*)
7031 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7032 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7033 wlarc=
7034 else
7035 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7036 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7040 solaris* | sysv5*)
7041 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7042 ld_shlibs=no
7043 cat <<EOF 1>&2
7045 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7046 *** create shared libraries on Solaris systems. Therefore, libtool
7047 *** is disabling shared libraries support. We urge you to upgrade GNU
7048 *** binutils to release 2.9.1 or newer. Another option is to modify
7049 *** your PATH or compiler configuration so that the native linker is
7050 *** used, and then restart.
7053 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7054 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7055 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7056 else
7057 ld_shlibs=no
7061 sunos4*)
7062 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7063 wlarc=
7064 hardcode_direct=yes
7065 hardcode_shlibpath_var=no
7069 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7070 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7071 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7072 else
7073 ld_shlibs=no
7076 esac
7078 if test "$ld_shlibs" = yes; then
7079 runpath_var=LD_RUN_PATH
7080 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7081 export_dynamic_flag_spec='${wl}--export-dynamic'
7082 # ancient GNU ld didn't support --whole-archive et. al.
7083 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7084 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7085 else
7086 whole_archive_flag_spec=
7089 else
7090 # PORTME fill in a description of your system's linker (not GNU ld)
7091 case $host_os in
7092 aix3*)
7093 allow_undefined_flag=unsupported
7094 always_export_symbols=yes
7095 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'
7096 # Note: this linker hardcodes the directories in LIBPATH if there
7097 # are no directories specified by -L.
7098 hardcode_minus_L=yes
7099 if test "$GCC" = yes && test -z "$link_static_flag"; then
7100 # Neither direct hardcoding nor static linking is supported with a
7101 # broken collect2.
7102 hardcode_direct=unsupported
7106 aix4* | aix5*)
7107 if test "$host_cpu" = ia64; then
7108 # On IA64, the linker does run time linking by default, so we don't
7109 # have to do anything special.
7110 aix_use_runtimelinking=no
7111 exp_sym_flag='-Bexport'
7112 no_entry_flag=""
7113 else
7114 # If we're using GNU nm, then we don't want the "-C" option.
7115 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7116 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7117 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'
7118 else
7119 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'
7121 aix_use_runtimelinking=no
7123 # Test if we are trying to use run time linking or normal
7124 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7125 # need to do runtime linking.
7126 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7127 for ld_flag in $LDFLAGS; do
7128 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7129 aix_use_runtimelinking=yes
7130 break
7132 done
7133 esac
7135 exp_sym_flag='-bexport'
7136 no_entry_flag='-bnoentry'
7139 # When large executables or shared objects are built, AIX ld can
7140 # have problems creating the table of contents. If linking a library
7141 # or program results in "error TOC overflow" add -mminimal-toc to
7142 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7143 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7145 archive_cmds=''
7146 hardcode_direct=yes
7147 hardcode_libdir_separator=':'
7148 link_all_deplibs=yes
7150 if test "$GCC" = yes; then
7151 case $host_os in aix4.012|aix4.012.*)
7152 # We only want to do this on AIX 4.2 and lower, the check
7153 # below for broken collect2 doesn't work under 4.3+
7154 collect2name=`${CC} -print-prog-name=collect2`
7155 if test -f "$collect2name" && \
7156 strings "$collect2name" | grep resolve_lib_name >/dev/null
7157 then
7158 # We have reworked collect2
7159 hardcode_direct=yes
7160 else
7161 # We have old collect2
7162 hardcode_direct=unsupported
7163 # It fails to find uninstalled libraries when the uninstalled
7164 # path is not listed in the libpath. Setting hardcode_minus_L
7165 # to unsupported forces relinking
7166 hardcode_minus_L=yes
7167 hardcode_libdir_flag_spec='-L$libdir'
7168 hardcode_libdir_separator=
7170 esac
7171 shared_flag='-shared'
7172 else
7173 # not using gcc
7174 if test "$host_cpu" = ia64; then
7175 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7176 # chokes on -Wl,-G. The following line is correct:
7177 shared_flag='-G'
7178 else
7179 if test "$aix_use_runtimelinking" = yes; then
7180 shared_flag='${wl}-G'
7181 else
7182 shared_flag='${wl}-bM:SRE'
7187 # It seems that -bexpall does not export symbols beginning with
7188 # underscore (_), so it is better to generate a list of symbols to export.
7189 always_export_symbols=yes
7190 if test "$aix_use_runtimelinking" = yes; then
7191 # Warning - without using the other runtime loading flags (-brtl),
7192 # -berok will link without error, but may produce a broken library.
7193 allow_undefined_flag='-berok'
7194 # Determine the default libpath from the value encoded in an empty executable.
7195 cat >conftest.$ac_ext <<_ACEOF
7196 /* confdefs.h. */
7197 _ACEOF
7198 cat confdefs.h >>conftest.$ac_ext
7199 cat >>conftest.$ac_ext <<_ACEOF
7200 /* end confdefs.h. */
7203 main ()
7207 return 0;
7209 _ACEOF
7210 rm -f conftest.$ac_objext conftest$ac_exeext
7211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7212 (eval $ac_link) 2>conftest.er1
7213 ac_status=$?
7214 grep -v '^ *+' conftest.er1 >conftest.err
7215 rm -f conftest.er1
7216 cat conftest.err >&5
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); } &&
7219 { ac_try='test -z "$ac_c_werror_flag"
7220 || test ! -s conftest.err'
7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7222 (eval $ac_try) 2>&5
7223 ac_status=$?
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; } &&
7226 { ac_try='test -s conftest$ac_exeext'
7227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7228 (eval $ac_try) 2>&5
7229 ac_status=$?
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); }; }; then
7233 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7235 # Check for a 64-bit object if we didn't find anything.
7236 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; }
7237 }'`; fi
7238 else
7239 echo "$as_me: failed program was:" >&5
7240 sed 's/^/| /' conftest.$ac_ext >&5
7243 rm -f conftest.err conftest.$ac_objext \
7244 conftest$ac_exeext conftest.$ac_ext
7245 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7247 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7248 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"
7249 else
7250 if test "$host_cpu" = ia64; then
7251 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7252 allow_undefined_flag="-z nodefs"
7253 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"
7254 else
7255 # Determine the default libpath from the value encoded in an empty executable.
7256 cat >conftest.$ac_ext <<_ACEOF
7257 /* confdefs.h. */
7258 _ACEOF
7259 cat confdefs.h >>conftest.$ac_ext
7260 cat >>conftest.$ac_ext <<_ACEOF
7261 /* end confdefs.h. */
7264 main ()
7268 return 0;
7270 _ACEOF
7271 rm -f conftest.$ac_objext conftest$ac_exeext
7272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7273 (eval $ac_link) 2>conftest.er1
7274 ac_status=$?
7275 grep -v '^ *+' conftest.er1 >conftest.err
7276 rm -f conftest.er1
7277 cat conftest.err >&5
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); } &&
7280 { ac_try='test -z "$ac_c_werror_flag"
7281 || test ! -s conftest.err'
7282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7283 (eval $ac_try) 2>&5
7284 ac_status=$?
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); }; } &&
7287 { ac_try='test -s conftest$ac_exeext'
7288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7289 (eval $ac_try) 2>&5
7290 ac_status=$?
7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); }; }; then
7294 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7296 # Check for a 64-bit object if we didn't find anything.
7297 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; }
7298 }'`; fi
7299 else
7300 echo "$as_me: failed program was:" >&5
7301 sed 's/^/| /' conftest.$ac_ext >&5
7304 rm -f conftest.err conftest.$ac_objext \
7305 conftest$ac_exeext conftest.$ac_ext
7306 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7308 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7309 # Warning - without using the other run time loading flags,
7310 # -berok will link without error, but may produce a broken library.
7311 no_undefined_flag=' ${wl}-bernotok'
7312 allow_undefined_flag=' ${wl}-berok'
7313 # -bexpall does not export symbols beginning with underscore (_)
7314 always_export_symbols=yes
7315 # Exported symbols can be pulled into shared objects from archives
7316 whole_archive_flag_spec=' '
7317 archive_cmds_need_lc=yes
7318 # This is similar to how AIX traditionally builds it's shared libraries.
7319 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'
7324 amigaos*)
7325 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)'
7326 hardcode_libdir_flag_spec='-L$libdir'
7327 hardcode_minus_L=yes
7328 # see comment about different semantics on the GNU ld section
7329 ld_shlibs=no
7332 bsdi4*)
7333 export_dynamic_flag_spec=-rdynamic
7336 cygwin* | mingw* | pw32*)
7337 # When not using gcc, we currently assume that we are using
7338 # Microsoft Visual C++.
7339 # hardcode_libdir_flag_spec is actually meaningless, as there is
7340 # no search path for DLLs.
7341 hardcode_libdir_flag_spec=' '
7342 allow_undefined_flag=unsupported
7343 # Tell ltmain to make .lib files, not .a files.
7344 libext=lib
7345 # Tell ltmain to make .dll files, not .so files.
7346 shrext=".dll"
7347 # FIXME: Setting linknames here is a bad hack.
7348 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7349 # The linker will automatically build a .lib file if we build a DLL.
7350 old_archive_From_new_cmds='true'
7351 # FIXME: Should let the user specify the lib program.
7352 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7353 fix_srcfile_path='`cygpath -w "$srcfile"`'
7354 enable_shared_with_static_runtimes=yes
7357 darwin* | rhapsody*)
7358 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7359 archive_cmds_need_lc=no
7360 case "$host_os" in
7361 rhapsody* | darwin1.[012])
7362 allow_undefined_flag='-undefined suppress'
7364 *) # Darwin 1.3 on
7365 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7367 esac
7368 # FIXME: Relying on posixy $() will cause problems for
7369 # cross-compilation, but unfortunately the echo tests do not
7370 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
7371 # `"' quotes if we put them in here... so don't!
7372 lt_int_apple_cc_single_mod=no
7373 output_verbose_link_cmd='echo'
7374 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7375 lt_int_apple_cc_single_mod=yes
7377 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7378 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7379 else
7380 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7382 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7383 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7384 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7385 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7386 else
7387 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7389 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7390 hardcode_direct=no
7391 hardcode_automatic=yes
7392 hardcode_shlibpath_var=unsupported
7393 whole_archive_flag_spec='-all_load $convenience'
7394 link_all_deplibs=yes
7398 dgux*)
7399 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7400 hardcode_libdir_flag_spec='-L$libdir'
7401 hardcode_shlibpath_var=no
7404 freebsd1*)
7405 ld_shlibs=no
7408 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7409 # support. Future versions do this automatically, but an explicit c++rt0.o
7410 # does not break anything, and helps significantly (at the cost of a little
7411 # extra space).
7412 freebsd2.2*)
7413 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7414 hardcode_libdir_flag_spec='-R$libdir'
7415 hardcode_direct=yes
7416 hardcode_shlibpath_var=no
7419 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7420 freebsd2*)
7421 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7422 hardcode_direct=yes
7423 hardcode_minus_L=yes
7424 hardcode_shlibpath_var=no
7427 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7428 freebsd*)
7429 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7430 hardcode_libdir_flag_spec='-R$libdir'
7431 hardcode_direct=yes
7432 hardcode_shlibpath_var=no
7435 hpux9*)
7436 if test "$GCC" = yes; then
7437 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'
7438 else
7439 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'
7441 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7442 hardcode_libdir_separator=:
7443 hardcode_direct=yes
7445 # hardcode_minus_L: Not really in the search PATH,
7446 # but as the default location of the library.
7447 hardcode_minus_L=yes
7448 export_dynamic_flag_spec='${wl}-E'
7451 hpux10* | hpux11*)
7452 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7453 case "$host_cpu" in
7454 hppa*64*|ia64*)
7455 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7458 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7460 esac
7461 else
7462 case "$host_cpu" in
7463 hppa*64*|ia64*)
7464 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7467 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7469 esac
7471 if test "$with_gnu_ld" = no; then
7472 case "$host_cpu" in
7473 hppa*64*)
7474 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7475 hardcode_libdir_flag_spec_ld='+b $libdir'
7476 hardcode_libdir_separator=:
7477 hardcode_direct=no
7478 hardcode_shlibpath_var=no
7480 ia64*)
7481 hardcode_libdir_flag_spec='-L$libdir'
7482 hardcode_direct=no
7483 hardcode_shlibpath_var=no
7485 # hardcode_minus_L: Not really in the search PATH,
7486 # but as the default location of the library.
7487 hardcode_minus_L=yes
7490 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7491 hardcode_libdir_separator=:
7492 hardcode_direct=yes
7493 export_dynamic_flag_spec='${wl}-E'
7495 # hardcode_minus_L: Not really in the search PATH,
7496 # but as the default location of the library.
7497 hardcode_minus_L=yes
7499 esac
7503 irix5* | irix6* | nonstopux*)
7504 if test "$GCC" = yes; then
7505 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'
7506 else
7507 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'
7508 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7510 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7511 hardcode_libdir_separator=:
7512 link_all_deplibs=yes
7515 netbsd*)
7516 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7517 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7518 else
7519 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7521 hardcode_libdir_flag_spec='-R$libdir'
7522 hardcode_direct=yes
7523 hardcode_shlibpath_var=no
7526 newsos6)
7527 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7528 hardcode_direct=yes
7529 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7530 hardcode_libdir_separator=:
7531 hardcode_shlibpath_var=no
7534 openbsd*)
7535 hardcode_direct=yes
7536 hardcode_shlibpath_var=no
7537 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7538 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7539 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7540 export_dynamic_flag_spec='${wl}-E'
7541 else
7542 case $host_os in
7543 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7544 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7545 hardcode_libdir_flag_spec='-R$libdir'
7548 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7549 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7551 esac
7555 os2*)
7556 hardcode_libdir_flag_spec='-L$libdir'
7557 hardcode_minus_L=yes
7558 allow_undefined_flag=unsupported
7559 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'
7560 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7563 osf3*)
7564 if test "$GCC" = yes; then
7565 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7566 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'
7567 else
7568 allow_undefined_flag=' -expect_unresolved \*'
7569 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'
7571 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7572 hardcode_libdir_separator=:
7575 osf4* | osf5*) # as osf3* with the addition of -msym flag
7576 if test "$GCC" = yes; then
7577 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7578 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'
7579 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7580 else
7581 allow_undefined_flag=' -expect_unresolved \*'
7582 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'
7583 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7584 $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'
7586 # Both c and cxx compiler support -rpath directly
7587 hardcode_libdir_flag_spec='-rpath $libdir'
7589 hardcode_libdir_separator=:
7592 sco3.2v5*)
7593 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7594 hardcode_shlibpath_var=no
7595 export_dynamic_flag_spec='${wl}-Bexport'
7596 runpath_var=LD_RUN_PATH
7597 hardcode_runpath_var=yes
7600 solaris*)
7601 no_undefined_flag=' -z text'
7602 if test "$GCC" = yes; then
7603 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7604 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7605 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7606 else
7607 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7608 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7609 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7611 hardcode_libdir_flag_spec='-R$libdir'
7612 hardcode_shlibpath_var=no
7613 case $host_os in
7614 solaris2.[0-5] | solaris2.[0-5].*) ;;
7615 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7616 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7617 esac
7618 link_all_deplibs=yes
7621 sunos4*)
7622 if test "x$host_vendor" = xsequent; then
7623 # Use $CC to link under sequent, because it throws in some extra .o
7624 # files that make .init and .fini sections work.
7625 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7626 else
7627 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7629 hardcode_libdir_flag_spec='-L$libdir'
7630 hardcode_direct=yes
7631 hardcode_minus_L=yes
7632 hardcode_shlibpath_var=no
7635 sysv4)
7636 case $host_vendor in
7637 sni)
7638 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7639 hardcode_direct=yes # is this really true???
7641 siemens)
7642 ## LD is ld it makes a PLAMLIB
7643 ## CC just makes a GrossModule.
7644 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7645 reload_cmds='$CC -r -o $output$reload_objs'
7646 hardcode_direct=no
7648 motorola)
7649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7650 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7652 esac
7653 runpath_var='LD_RUN_PATH'
7654 hardcode_shlibpath_var=no
7657 sysv4.3*)
7658 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7659 hardcode_shlibpath_var=no
7660 export_dynamic_flag_spec='-Bexport'
7663 sysv4*MP*)
7664 if test -d /usr/nec; then
7665 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7666 hardcode_shlibpath_var=no
7667 runpath_var=LD_RUN_PATH
7668 hardcode_runpath_var=yes
7669 ld_shlibs=yes
7673 sysv4.2uw2*)
7674 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7675 hardcode_direct=yes
7676 hardcode_minus_L=no
7677 hardcode_shlibpath_var=no
7678 hardcode_runpath_var=yes
7679 runpath_var=LD_RUN_PATH
7682 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7683 no_undefined_flag='${wl}-z ${wl}text'
7684 if test "$GCC" = yes; then
7685 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7686 else
7687 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7689 runpath_var='LD_RUN_PATH'
7690 hardcode_shlibpath_var=no
7693 sysv5*)
7694 no_undefined_flag=' -z text'
7695 # $CC -shared without GNU ld will not create a library from C++
7696 # object files and a static libstdc++, better avoid it by now
7697 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7698 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7699 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7700 hardcode_libdir_flag_spec=
7701 hardcode_shlibpath_var=no
7702 runpath_var='LD_RUN_PATH'
7705 uts4*)
7706 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7707 hardcode_libdir_flag_spec='-L$libdir'
7708 hardcode_shlibpath_var=no
7712 ld_shlibs=no
7714 esac
7717 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7718 echo "${ECHO_T}$ld_shlibs" >&6
7719 test "$ld_shlibs" = no && can_build_shared=no
7721 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7722 if test "$GCC" = yes; then
7723 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7727 # Do we need to explicitly link libc?
7729 case "x$archive_cmds_need_lc" in
7730 x|xyes)
7731 # Assume -lc should be added
7732 archive_cmds_need_lc=yes
7734 if test "$enable_shared" = yes && test "$GCC" = yes; then
7735 case $archive_cmds in
7736 *'~'*)
7737 # FIXME: we may have to deal with multi-command sequences.
7739 '$CC '*)
7740 # Test whether the compiler implicitly links with -lc since on some
7741 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7742 # to ld, don't add -lc before -lgcc.
7743 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7744 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7745 $rm conftest*
7746 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7749 (eval $ac_compile) 2>&5
7750 ac_status=$?
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } 2>conftest.err; then
7753 soname=conftest
7754 lib=conftest
7755 libobjs=conftest.$ac_objext
7756 deplibs=
7757 wl=$lt_prog_compiler_wl
7758 compiler_flags=-v
7759 linker_flags=-v
7760 verstring=
7761 output_objdir=.
7762 libname=conftest
7763 lt_save_allow_undefined_flag=$allow_undefined_flag
7764 allow_undefined_flag=
7765 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7766 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7767 ac_status=$?
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); }
7770 then
7771 archive_cmds_need_lc=no
7772 else
7773 archive_cmds_need_lc=yes
7775 allow_undefined_flag=$lt_save_allow_undefined_flag
7776 else
7777 cat conftest.err 1>&5
7779 $rm conftest*
7780 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7781 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7783 esac
7786 esac
7788 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7789 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7790 hardcode_action=
7791 if test -n "$hardcode_libdir_flag_spec" || \
7792 test -n "$runpath_var " || \
7793 test "X$hardcode_automatic"="Xyes" ; then
7795 # We can hardcode non-existant directories.
7796 if test "$hardcode_direct" != no &&
7797 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7798 # have to relink, otherwise we might link with an installed library
7799 # when we should be linking with a yet-to-be-installed one
7800 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7801 test "$hardcode_minus_L" != no; then
7802 # Linking always hardcodes the temporary library directory.
7803 hardcode_action=relink
7804 else
7805 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7806 hardcode_action=immediate
7808 else
7809 # We cannot hardcode anything, or else we can only hardcode existing
7810 # directories.
7811 hardcode_action=unsupported
7813 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7814 echo "${ECHO_T}$hardcode_action" >&6
7816 if test "$hardcode_action" = relink; then
7817 # Fast installation is not supported
7818 enable_fast_install=no
7819 elif test "$shlibpath_overrides_runpath" = yes ||
7820 test "$enable_shared" = no; then
7821 # Fast installation is not necessary
7822 enable_fast_install=needless
7825 striplib=
7826 old_striplib=
7827 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7828 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7829 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7830 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7831 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7832 echo "$as_me:$LINENO: result: yes" >&5
7833 echo "${ECHO_T}yes" >&6
7834 else
7835 # FIXME - insert some real tests, host_os isn't really good enough
7836 case $host_os in
7837 darwin*)
7838 if test -n "$STRIP" ; then
7839 striplib="$STRIP -x"
7840 echo "$as_me:$LINENO: result: yes" >&5
7841 echo "${ECHO_T}yes" >&6
7842 else
7843 echo "$as_me:$LINENO: result: no" >&5
7844 echo "${ECHO_T}no" >&6
7848 echo "$as_me:$LINENO: result: no" >&5
7849 echo "${ECHO_T}no" >&6
7851 esac
7854 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7855 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7856 library_names_spec=
7857 libname_spec='lib$name'
7858 soname_spec=
7859 shrext=".so"
7860 postinstall_cmds=
7861 postuninstall_cmds=
7862 finish_cmds=
7863 finish_eval=
7864 shlibpath_var=
7865 shlibpath_overrides_runpath=unknown
7866 version_type=none
7867 dynamic_linker="$host_os ld.so"
7868 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7869 if test "$GCC" = yes; then
7870 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7871 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7872 # if the path contains ";" then we assume it to be the separator
7873 # otherwise default to the standard path separator (i.e. ":") - it is
7874 # assumed that no part of a normal pathname contains ";" but that should
7875 # okay in the real world where ";" in dirpaths is itself problematic.
7876 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7877 else
7878 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7880 else
7881 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7883 need_lib_prefix=unknown
7884 hardcode_into_libs=no
7886 # when you set need_version to no, make sure it does not cause -set_version
7887 # flags to be left without arguments
7888 need_version=unknown
7890 case $host_os in
7891 aix3*)
7892 version_type=linux
7893 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7894 shlibpath_var=LIBPATH
7896 # AIX 3 has no versioning support, so we append a major version to the name.
7897 soname_spec='${libname}${release}${shared_ext}$major'
7900 aix4* | aix5*)
7901 version_type=linux
7902 need_lib_prefix=no
7903 need_version=no
7904 hardcode_into_libs=yes
7905 if test "$host_cpu" = ia64; then
7906 # AIX 5 supports IA64
7907 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7908 shlibpath_var=LD_LIBRARY_PATH
7909 else
7910 # With GCC up to 2.95.x, collect2 would create an import file
7911 # for dependence libraries. The import file would start with
7912 # the line `#! .'. This would cause the generated library to
7913 # depend on `.', always an invalid library. This was fixed in
7914 # development snapshots of GCC prior to 3.0.
7915 case $host_os in
7916 aix4 | aix4.[01] | aix4.[01].*)
7917 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7918 echo ' yes '
7919 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7921 else
7922 can_build_shared=no
7925 esac
7926 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7927 # soname into executable. Probably we can add versioning support to
7928 # collect2, so additional links can be useful in future.
7929 if test "$aix_use_runtimelinking" = yes; then
7930 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7931 # instead of lib<name>.a to let people know that these are not
7932 # typical AIX shared libraries.
7933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7934 else
7935 # We preserve .a as extension for shared libraries through AIX4.2
7936 # and later when we are not doing run time linking.
7937 library_names_spec='${libname}${release}.a $libname.a'
7938 soname_spec='${libname}${release}${shared_ext}$major'
7940 shlibpath_var=LIBPATH
7944 amigaos*)
7945 library_names_spec='$libname.ixlibrary $libname.a'
7946 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7947 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'
7950 beos*)
7951 library_names_spec='${libname}${shared_ext}'
7952 dynamic_linker="$host_os ld.so"
7953 shlibpath_var=LIBRARY_PATH
7956 bsdi4*)
7957 version_type=linux
7958 need_version=no
7959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7960 soname_spec='${libname}${release}${shared_ext}$major'
7961 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7962 shlibpath_var=LD_LIBRARY_PATH
7963 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7964 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7965 # the default ld.so.conf also contains /usr/contrib/lib and
7966 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7967 # libtool to hard-code these into programs
7970 cygwin* | mingw* | pw32*)
7971 version_type=windows
7972 shrext=".dll"
7973 need_version=no
7974 need_lib_prefix=no
7976 case $GCC,$host_os in
7977 yes,cygwin* | yes,mingw* | yes,pw32*)
7978 library_names_spec='$libname.dll.a'
7979 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7980 postinstall_cmds='base_file=`basename \${file}`~
7981 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7982 dldir=$destdir/`dirname \$dlpath`~
7983 test -d \$dldir || mkdir -p \$dldir~
7984 $install_prog $dir/$dlname \$dldir/$dlname'
7985 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7986 dlpath=$dir/\$dldll~
7987 $rm \$dlpath'
7988 shlibpath_overrides_runpath=yes
7990 case $host_os in
7991 cygwin*)
7992 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7993 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7994 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7996 mingw*)
7997 # MinGW DLLs use traditional 'lib' prefix
7998 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7999 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8000 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8001 # It is most probably a Windows format PATH printed by
8002 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8003 # path with ; separators, and with drive letters. We can handle the
8004 # drive letters (cygwin fileutils understands them), so leave them,
8005 # especially as we might pass files found there to a mingw objdump,
8006 # which wouldn't understand a cygwinified path. Ahh.
8007 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8008 else
8009 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8012 pw32*)
8013 # pw32 DLLs use 'pw' prefix rather than 'lib'
8014 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8016 esac
8020 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8022 esac
8023 dynamic_linker='Win32 ld.exe'
8024 # FIXME: first we should search . and the directory the executable is in
8025 shlibpath_var=PATH
8028 darwin* | rhapsody*)
8029 dynamic_linker="$host_os dyld"
8030 version_type=darwin
8031 need_lib_prefix=no
8032 need_version=no
8033 # FIXME: Relying on posixy $() will cause problems for
8034 # cross-compilation, but unfortunately the echo tests do not
8035 # yet detect zsh echo's removal of \ escapes.
8036 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8037 soname_spec='${libname}${release}${major}$shared_ext'
8038 shlibpath_overrides_runpath=yes
8039 shlibpath_var=DYLD_LIBRARY_PATH
8040 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
8041 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8042 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8043 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"`
8045 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8048 dgux*)
8049 version_type=linux
8050 need_lib_prefix=no
8051 need_version=no
8052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8053 soname_spec='${libname}${release}${shared_ext}$major'
8054 shlibpath_var=LD_LIBRARY_PATH
8057 freebsd1*)
8058 dynamic_linker=no
8061 freebsd*)
8062 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8063 version_type=freebsd-$objformat
8064 case $version_type in
8065 freebsd-elf*)
8066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8067 need_version=no
8068 need_lib_prefix=no
8070 freebsd-*)
8071 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8072 need_version=yes
8074 esac
8075 shlibpath_var=LD_LIBRARY_PATH
8076 case $host_os in
8077 freebsd2*)
8078 shlibpath_overrides_runpath=yes
8080 freebsd3.01* | freebsdelf3.01*)
8081 shlibpath_overrides_runpath=yes
8082 hardcode_into_libs=yes
8084 *) # from 3.2 on
8085 shlibpath_overrides_runpath=no
8086 hardcode_into_libs=yes
8088 esac
8091 gnu*)
8092 version_type=linux
8093 need_lib_prefix=no
8094 need_version=no
8095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8096 soname_spec='${libname}${release}${shared_ext}$major'
8097 shlibpath_var=LD_LIBRARY_PATH
8098 hardcode_into_libs=yes
8101 hpux9* | hpux10* | hpux11*)
8102 # Give a soname corresponding to the major version so that dld.sl refuses to
8103 # link against other versions.
8104 version_type=sunos
8105 need_lib_prefix=no
8106 need_version=no
8107 case "$host_cpu" in
8108 ia64*)
8109 shrext='.so'
8110 hardcode_into_libs=yes
8111 dynamic_linker="$host_os dld.so"
8112 shlibpath_var=LD_LIBRARY_PATH
8113 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8115 soname_spec='${libname}${release}${shared_ext}$major'
8116 if test "X$HPUX_IA64_MODE" = X32; then
8117 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8118 else
8119 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8121 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8123 hppa*64*)
8124 shrext='.sl'
8125 hardcode_into_libs=yes
8126 dynamic_linker="$host_os dld.sl"
8127 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8128 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8130 soname_spec='${libname}${release}${shared_ext}$major'
8131 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8132 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8135 shrext='.sl'
8136 dynamic_linker="$host_os dld.sl"
8137 shlibpath_var=SHLIB_PATH
8138 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8140 soname_spec='${libname}${release}${shared_ext}$major'
8142 esac
8143 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8144 postinstall_cmds='chmod 555 $lib'
8147 irix5* | irix6* | nonstopux*)
8148 case $host_os in
8149 nonstopux*) version_type=nonstopux ;;
8151 if test "$lt_cv_prog_gnu_ld" = yes; then
8152 version_type=linux
8153 else
8154 version_type=irix
8155 fi ;;
8156 esac
8157 need_lib_prefix=no
8158 need_version=no
8159 soname_spec='${libname}${release}${shared_ext}$major'
8160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8161 case $host_os in
8162 irix5* | nonstopux*)
8163 libsuff= shlibsuff=
8166 case $LD in # libtool.m4 will add one of these switches to LD
8167 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8168 libsuff= shlibsuff= libmagic=32-bit;;
8169 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8170 libsuff=32 shlibsuff=N32 libmagic=N32;;
8171 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8172 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8173 *) libsuff= shlibsuff= libmagic=never-match;;
8174 esac
8176 esac
8177 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8178 shlibpath_overrides_runpath=no
8179 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8180 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8181 hardcode_into_libs=yes
8184 # No shared lib support for Linux oldld, aout, or coff.
8185 linux*oldld* | linux*aout* | linux*coff*)
8186 dynamic_linker=no
8189 # This must be Linux ELF.
8190 linux*)
8191 version_type=linux
8192 need_lib_prefix=no
8193 need_version=no
8194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8195 soname_spec='${libname}${release}${shared_ext}$major'
8196 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8197 shlibpath_var=LD_LIBRARY_PATH
8198 shlibpath_overrides_runpath=no
8199 # This implies no fast_install, which is unacceptable.
8200 # Some rework will be needed to allow for fast_install
8201 # before this can be enabled.
8202 hardcode_into_libs=yes
8204 # We used to test for /lib/ld.so.1 and disable shared libraries on
8205 # powerpc, because MkLinux only supported shared libraries with the
8206 # GNU dynamic linker. Since this was broken with cross compilers,
8207 # most powerpc-linux boxes support dynamic linking these days and
8208 # people can always --disable-shared, the test was removed, and we
8209 # assume the GNU/Linux dynamic linker is in use.
8210 dynamic_linker='GNU/Linux ld.so'
8213 netbsd*)
8214 version_type=sunos
8215 need_lib_prefix=no
8216 need_version=no
8217 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8219 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8220 dynamic_linker='NetBSD (a.out) ld.so'
8221 else
8222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
8223 soname_spec='${libname}${release}${shared_ext}$major'
8224 dynamic_linker='NetBSD ld.elf_so'
8226 shlibpath_var=LD_LIBRARY_PATH
8227 shlibpath_overrides_runpath=yes
8228 hardcode_into_libs=yes
8231 newsos6)
8232 version_type=linux
8233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8234 shlibpath_var=LD_LIBRARY_PATH
8235 shlibpath_overrides_runpath=yes
8238 nto-qnx)
8239 version_type=linux
8240 need_lib_prefix=no
8241 need_version=no
8242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8243 soname_spec='${libname}${release}${shared_ext}$major'
8244 shlibpath_var=LD_LIBRARY_PATH
8245 shlibpath_overrides_runpath=yes
8248 openbsd*)
8249 version_type=sunos
8250 need_lib_prefix=no
8251 need_version=no
8252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8253 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8254 shlibpath_var=LD_LIBRARY_PATH
8255 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8256 case $host_os in
8257 openbsd2.[89] | openbsd2.[89].*)
8258 shlibpath_overrides_runpath=no
8261 shlibpath_overrides_runpath=yes
8263 esac
8264 else
8265 shlibpath_overrides_runpath=yes
8269 os2*)
8270 libname_spec='$name'
8271 shrext=".dll"
8272 need_lib_prefix=no
8273 library_names_spec='$libname${shared_ext} $libname.a'
8274 dynamic_linker='OS/2 ld.exe'
8275 shlibpath_var=LIBPATH
8278 osf3* | osf4* | osf5*)
8279 version_type=osf
8280 need_lib_prefix=no
8281 need_version=no
8282 soname_spec='${libname}${release}${shared_ext}$major'
8283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8284 shlibpath_var=LD_LIBRARY_PATH
8285 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8286 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8289 sco3.2v5*)
8290 version_type=osf
8291 soname_spec='${libname}${release}${shared_ext}$major'
8292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8293 shlibpath_var=LD_LIBRARY_PATH
8296 solaris*)
8297 version_type=linux
8298 need_lib_prefix=no
8299 need_version=no
8300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8301 soname_spec='${libname}${release}${shared_ext}$major'
8302 shlibpath_var=LD_LIBRARY_PATH
8303 shlibpath_overrides_runpath=yes
8304 hardcode_into_libs=yes
8305 # ldd complains unless libraries are executable
8306 postinstall_cmds='chmod +x $lib'
8309 sunos4*)
8310 version_type=sunos
8311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8312 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8313 shlibpath_var=LD_LIBRARY_PATH
8314 shlibpath_overrides_runpath=yes
8315 if test "$with_gnu_ld" = yes; then
8316 need_lib_prefix=no
8318 need_version=yes
8321 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8322 version_type=linux
8323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8324 soname_spec='${libname}${release}${shared_ext}$major'
8325 shlibpath_var=LD_LIBRARY_PATH
8326 case $host_vendor in
8327 sni)
8328 shlibpath_overrides_runpath=no
8329 need_lib_prefix=no
8330 export_dynamic_flag_spec='${wl}-Blargedynsym'
8331 runpath_var=LD_RUN_PATH
8333 siemens)
8334 need_lib_prefix=no
8336 motorola)
8337 need_lib_prefix=no
8338 need_version=no
8339 shlibpath_overrides_runpath=no
8340 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8342 esac
8345 sysv4*MP*)
8346 if test -d /usr/nec ;then
8347 version_type=linux
8348 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8349 soname_spec='$libname${shared_ext}.$major'
8350 shlibpath_var=LD_LIBRARY_PATH
8354 uts4*)
8355 version_type=linux
8356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8357 soname_spec='${libname}${release}${shared_ext}$major'
8358 shlibpath_var=LD_LIBRARY_PATH
8362 dynamic_linker=no
8364 esac
8365 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8366 echo "${ECHO_T}$dynamic_linker" >&6
8367 test "$dynamic_linker" = no && can_build_shared=no
8369 if test "x$enable_dlopen" != xyes; then
8370 enable_dlopen=unknown
8371 enable_dlopen_self=unknown
8372 enable_dlopen_self_static=unknown
8373 else
8374 lt_cv_dlopen=no
8375 lt_cv_dlopen_libs=
8377 case $host_os in
8378 beos*)
8379 lt_cv_dlopen="load_add_on"
8380 lt_cv_dlopen_libs=
8381 lt_cv_dlopen_self=yes
8384 mingw* | pw32*)
8385 lt_cv_dlopen="LoadLibrary"
8386 lt_cv_dlopen_libs=
8389 cygwin*)
8390 lt_cv_dlopen="dlopen"
8391 lt_cv_dlopen_libs=
8394 darwin*)
8395 # if libdl is installed we need to link against it
8396 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8397 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8398 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8399 echo $ECHO_N "(cached) $ECHO_C" >&6
8400 else
8401 ac_check_lib_save_LIBS=$LIBS
8402 LIBS="-ldl $LIBS"
8403 cat >conftest.$ac_ext <<_ACEOF
8404 /* confdefs.h. */
8405 _ACEOF
8406 cat confdefs.h >>conftest.$ac_ext
8407 cat >>conftest.$ac_ext <<_ACEOF
8408 /* end confdefs.h. */
8410 /* Override any gcc2 internal prototype to avoid an error. */
8411 #ifdef __cplusplus
8412 extern "C"
8413 #endif
8414 /* We use char because int might match the return type of a gcc2
8415 builtin and then its argument prototype would still apply. */
8416 char dlopen ();
8418 main ()
8420 dlopen ();
8422 return 0;
8424 _ACEOF
8425 rm -f conftest.$ac_objext conftest$ac_exeext
8426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8427 (eval $ac_link) 2>conftest.er1
8428 ac_status=$?
8429 grep -v '^ *+' conftest.er1 >conftest.err
8430 rm -f conftest.er1
8431 cat conftest.err >&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); } &&
8434 { ac_try='test -z "$ac_c_werror_flag"
8435 || test ! -s conftest.err'
8436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8437 (eval $ac_try) 2>&5
8438 ac_status=$?
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); }; } &&
8441 { ac_try='test -s conftest$ac_exeext'
8442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8443 (eval $ac_try) 2>&5
8444 ac_status=$?
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); }; }; then
8447 ac_cv_lib_dl_dlopen=yes
8448 else
8449 echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.$ac_ext >&5
8452 ac_cv_lib_dl_dlopen=no
8454 rm -f conftest.err conftest.$ac_objext \
8455 conftest$ac_exeext conftest.$ac_ext
8456 LIBS=$ac_check_lib_save_LIBS
8458 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8459 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8460 if test $ac_cv_lib_dl_dlopen = yes; then
8461 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8462 else
8464 lt_cv_dlopen="dyld"
8465 lt_cv_dlopen_libs=
8466 lt_cv_dlopen_self=yes
8473 echo "$as_me:$LINENO: checking for shl_load" >&5
8474 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8475 if test "${ac_cv_func_shl_load+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 shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8486 #define shl_load innocuous_shl_load
8488 /* System header to define __stub macros and hopefully few prototypes,
8489 which can conflict with char shl_load (); 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 shl_load
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 shl_load ();
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_shl_load) || defined (__stub___shl_load)
8513 choke me
8514 #else
8515 char (*f) () = shl_load;
8516 #endif
8517 #ifdef __cplusplus
8519 #endif
8522 main ()
8524 return f != shl_load;
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_shl_load=yes
8552 else
8553 echo "$as_me: failed program was:" >&5
8554 sed 's/^/| /' conftest.$ac_ext >&5
8556 ac_cv_func_shl_load=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_shl_load" >&5
8562 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8563 if test $ac_cv_func_shl_load = yes; then
8564 lt_cv_dlopen="shl_load"
8565 else
8566 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8567 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8568 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8569 echo $ECHO_N "(cached) $ECHO_C" >&6
8570 else
8571 ac_check_lib_save_LIBS=$LIBS
8572 LIBS="-ldld $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 shl_load ();
8588 main ()
8590 shl_load ();
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_dld_shl_load=yes
8618 else
8619 echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.$ac_ext >&5
8622 ac_cv_lib_dld_shl_load=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_dld_shl_load" >&5
8629 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8630 if test $ac_cv_lib_dld_shl_load = yes; then
8631 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8632 else
8633 echo "$as_me:$LINENO: checking for dlopen" >&5
8634 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8635 if test "${ac_cv_func_dlopen+set}" = set; then
8636 echo $ECHO_N "(cached) $ECHO_C" >&6
8637 else
8638 cat >conftest.$ac_ext <<_ACEOF
8639 /* confdefs.h. */
8640 _ACEOF
8641 cat confdefs.h >>conftest.$ac_ext
8642 cat >>conftest.$ac_ext <<_ACEOF
8643 /* end confdefs.h. */
8644 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8646 #define dlopen innocuous_dlopen
8648 /* System header to define __stub macros and hopefully few prototypes,
8649 which can conflict with char dlopen (); below.
8650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8651 <limits.h> exists even on freestanding compilers. */
8653 #ifdef __STDC__
8654 # include <limits.h>
8655 #else
8656 # include <assert.h>
8657 #endif
8659 #undef dlopen
8661 /* Override any gcc2 internal prototype to avoid an error. */
8662 #ifdef __cplusplus
8663 extern "C"
8665 #endif
8666 /* We use char because int might match the return type of a gcc2
8667 builtin and then its argument prototype would still apply. */
8668 char dlopen ();
8669 /* The GNU C library defines this for functions which it implements
8670 to always fail with ENOSYS. Some functions are actually named
8671 something starting with __ and the normal name is an alias. */
8672 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8673 choke me
8674 #else
8675 char (*f) () = dlopen;
8676 #endif
8677 #ifdef __cplusplus
8679 #endif
8682 main ()
8684 return f != dlopen;
8686 return 0;
8688 _ACEOF
8689 rm -f conftest.$ac_objext conftest$ac_exeext
8690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8691 (eval $ac_link) 2>conftest.er1
8692 ac_status=$?
8693 grep -v '^ *+' conftest.er1 >conftest.err
8694 rm -f conftest.er1
8695 cat conftest.err >&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); } &&
8698 { ac_try='test -z "$ac_c_werror_flag"
8699 || test ! -s conftest.err'
8700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8701 (eval $ac_try) 2>&5
8702 ac_status=$?
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); }; } &&
8705 { ac_try='test -s conftest$ac_exeext'
8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707 (eval $ac_try) 2>&5
8708 ac_status=$?
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; }; then
8711 ac_cv_func_dlopen=yes
8712 else
8713 echo "$as_me: failed program was:" >&5
8714 sed 's/^/| /' conftest.$ac_ext >&5
8716 ac_cv_func_dlopen=no
8718 rm -f conftest.err conftest.$ac_objext \
8719 conftest$ac_exeext conftest.$ac_ext
8721 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8722 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8723 if test $ac_cv_func_dlopen = yes; then
8724 lt_cv_dlopen="dlopen"
8725 else
8726 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8727 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8728 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8729 echo $ECHO_N "(cached) $ECHO_C" >&6
8730 else
8731 ac_check_lib_save_LIBS=$LIBS
8732 LIBS="-ldl $LIBS"
8733 cat >conftest.$ac_ext <<_ACEOF
8734 /* confdefs.h. */
8735 _ACEOF
8736 cat confdefs.h >>conftest.$ac_ext
8737 cat >>conftest.$ac_ext <<_ACEOF
8738 /* end confdefs.h. */
8740 /* Override any gcc2 internal prototype to avoid an error. */
8741 #ifdef __cplusplus
8742 extern "C"
8743 #endif
8744 /* We use char because int might match the return type of a gcc2
8745 builtin and then its argument prototype would still apply. */
8746 char dlopen ();
8748 main ()
8750 dlopen ();
8752 return 0;
8754 _ACEOF
8755 rm -f conftest.$ac_objext conftest$ac_exeext
8756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8757 (eval $ac_link) 2>conftest.er1
8758 ac_status=$?
8759 grep -v '^ *+' conftest.er1 >conftest.err
8760 rm -f conftest.er1
8761 cat conftest.err >&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); } &&
8764 { ac_try='test -z "$ac_c_werror_flag"
8765 || test ! -s conftest.err'
8766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8767 (eval $ac_try) 2>&5
8768 ac_status=$?
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); }; } &&
8771 { ac_try='test -s conftest$ac_exeext'
8772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8773 (eval $ac_try) 2>&5
8774 ac_status=$?
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); }; }; then
8777 ac_cv_lib_dl_dlopen=yes
8778 else
8779 echo "$as_me: failed program was:" >&5
8780 sed 's/^/| /' conftest.$ac_ext >&5
8782 ac_cv_lib_dl_dlopen=no
8784 rm -f conftest.err conftest.$ac_objext \
8785 conftest$ac_exeext conftest.$ac_ext
8786 LIBS=$ac_check_lib_save_LIBS
8788 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8789 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8790 if test $ac_cv_lib_dl_dlopen = yes; then
8791 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8792 else
8793 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8794 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8795 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
8797 else
8798 ac_check_lib_save_LIBS=$LIBS
8799 LIBS="-lsvld $LIBS"
8800 cat >conftest.$ac_ext <<_ACEOF
8801 /* confdefs.h. */
8802 _ACEOF
8803 cat confdefs.h >>conftest.$ac_ext
8804 cat >>conftest.$ac_ext <<_ACEOF
8805 /* end confdefs.h. */
8807 /* Override any gcc2 internal prototype to avoid an error. */
8808 #ifdef __cplusplus
8809 extern "C"
8810 #endif
8811 /* We use char because int might match the return type of a gcc2
8812 builtin and then its argument prototype would still apply. */
8813 char dlopen ();
8815 main ()
8817 dlopen ();
8819 return 0;
8821 _ACEOF
8822 rm -f conftest.$ac_objext conftest$ac_exeext
8823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8824 (eval $ac_link) 2>conftest.er1
8825 ac_status=$?
8826 grep -v '^ *+' conftest.er1 >conftest.err
8827 rm -f conftest.er1
8828 cat conftest.err >&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } &&
8831 { ac_try='test -z "$ac_c_werror_flag"
8832 || test ! -s conftest.err'
8833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834 (eval $ac_try) 2>&5
8835 ac_status=$?
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); }; } &&
8838 { ac_try='test -s conftest$ac_exeext'
8839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8840 (eval $ac_try) 2>&5
8841 ac_status=$?
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; }; then
8844 ac_cv_lib_svld_dlopen=yes
8845 else
8846 echo "$as_me: failed program was:" >&5
8847 sed 's/^/| /' conftest.$ac_ext >&5
8849 ac_cv_lib_svld_dlopen=no
8851 rm -f conftest.err conftest.$ac_objext \
8852 conftest$ac_exeext conftest.$ac_ext
8853 LIBS=$ac_check_lib_save_LIBS
8855 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8856 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8857 if test $ac_cv_lib_svld_dlopen = yes; then
8858 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8859 else
8860 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8861 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8862 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8863 echo $ECHO_N "(cached) $ECHO_C" >&6
8864 else
8865 ac_check_lib_save_LIBS=$LIBS
8866 LIBS="-ldld $LIBS"
8867 cat >conftest.$ac_ext <<_ACEOF
8868 /* confdefs.h. */
8869 _ACEOF
8870 cat confdefs.h >>conftest.$ac_ext
8871 cat >>conftest.$ac_ext <<_ACEOF
8872 /* end confdefs.h. */
8874 /* Override any gcc2 internal prototype to avoid an error. */
8875 #ifdef __cplusplus
8876 extern "C"
8877 #endif
8878 /* We use char because int might match the return type of a gcc2
8879 builtin and then its argument prototype would still apply. */
8880 char dld_link ();
8882 main ()
8884 dld_link ();
8886 return 0;
8888 _ACEOF
8889 rm -f conftest.$ac_objext conftest$ac_exeext
8890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8891 (eval $ac_link) 2>conftest.er1
8892 ac_status=$?
8893 grep -v '^ *+' conftest.er1 >conftest.err
8894 rm -f conftest.er1
8895 cat conftest.err >&5
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); } &&
8898 { ac_try='test -z "$ac_c_werror_flag"
8899 || test ! -s conftest.err'
8900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8901 (eval $ac_try) 2>&5
8902 ac_status=$?
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); }; } &&
8905 { ac_try='test -s conftest$ac_exeext'
8906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8907 (eval $ac_try) 2>&5
8908 ac_status=$?
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); }; }; then
8911 ac_cv_lib_dld_dld_link=yes
8912 else
8913 echo "$as_me: failed program was:" >&5
8914 sed 's/^/| /' conftest.$ac_ext >&5
8916 ac_cv_lib_dld_dld_link=no
8918 rm -f conftest.err conftest.$ac_objext \
8919 conftest$ac_exeext conftest.$ac_ext
8920 LIBS=$ac_check_lib_save_LIBS
8922 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8923 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8924 if test $ac_cv_lib_dld_dld_link = yes; then
8925 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8944 esac
8946 if test "x$lt_cv_dlopen" != xno; then
8947 enable_dlopen=yes
8948 else
8949 enable_dlopen=no
8952 case $lt_cv_dlopen in
8953 dlopen)
8954 save_CPPFLAGS="$CPPFLAGS"
8955 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8957 save_LDFLAGS="$LDFLAGS"
8958 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8960 save_LIBS="$LIBS"
8961 LIBS="$lt_cv_dlopen_libs $LIBS"
8963 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8964 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8965 if test "${lt_cv_dlopen_self+set}" = set; then
8966 echo $ECHO_N "(cached) $ECHO_C" >&6
8967 else
8968 if test "$cross_compiling" = yes; then :
8969 lt_cv_dlopen_self=cross
8970 else
8971 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8972 lt_status=$lt_dlunknown
8973 cat > conftest.$ac_ext <<EOF
8974 #line 8974 "configure"
8975 #include "confdefs.h"
8977 #if HAVE_DLFCN_H
8978 #include <dlfcn.h>
8979 #endif
8981 #include <stdio.h>
8983 #ifdef RTLD_GLOBAL
8984 # define LT_DLGLOBAL RTLD_GLOBAL
8985 #else
8986 # ifdef DL_GLOBAL
8987 # define LT_DLGLOBAL DL_GLOBAL
8988 # else
8989 # define LT_DLGLOBAL 0
8990 # endif
8991 #endif
8993 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8994 find out it does not work in some platform. */
8995 #ifndef LT_DLLAZY_OR_NOW
8996 # ifdef RTLD_LAZY
8997 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8998 # else
8999 # ifdef DL_LAZY
9000 # define LT_DLLAZY_OR_NOW DL_LAZY
9001 # else
9002 # ifdef RTLD_NOW
9003 # define LT_DLLAZY_OR_NOW RTLD_NOW
9004 # else
9005 # ifdef DL_NOW
9006 # define LT_DLLAZY_OR_NOW DL_NOW
9007 # else
9008 # define LT_DLLAZY_OR_NOW 0
9009 # endif
9010 # endif
9011 # endif
9012 # endif
9013 #endif
9015 #ifdef __cplusplus
9016 extern "C" void exit (int);
9017 #endif
9019 void fnord() { int i=42;}
9020 int main ()
9022 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9023 int status = $lt_dlunknown;
9025 if (self)
9027 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9028 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9029 /* dlclose (self); */
9032 exit (status);
9035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9036 (eval $ac_link) 2>&5
9037 ac_status=$?
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9040 (./conftest; exit; ) 2>/dev/null
9041 lt_status=$?
9042 case x$lt_status in
9043 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9044 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9045 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9046 esac
9047 else :
9048 # compilation failed
9049 lt_cv_dlopen_self=no
9052 rm -fr conftest*
9056 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9057 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9059 if test "x$lt_cv_dlopen_self" = xyes; then
9060 LDFLAGS="$LDFLAGS $link_static_flag"
9061 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9062 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9063 if test "${lt_cv_dlopen_self_static+set}" = set; then
9064 echo $ECHO_N "(cached) $ECHO_C" >&6
9065 else
9066 if test "$cross_compiling" = yes; then :
9067 lt_cv_dlopen_self_static=cross
9068 else
9069 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9070 lt_status=$lt_dlunknown
9071 cat > conftest.$ac_ext <<EOF
9072 #line 9072 "configure"
9073 #include "confdefs.h"
9075 #if HAVE_DLFCN_H
9076 #include <dlfcn.h>
9077 #endif
9079 #include <stdio.h>
9081 #ifdef RTLD_GLOBAL
9082 # define LT_DLGLOBAL RTLD_GLOBAL
9083 #else
9084 # ifdef DL_GLOBAL
9085 # define LT_DLGLOBAL DL_GLOBAL
9086 # else
9087 # define LT_DLGLOBAL 0
9088 # endif
9089 #endif
9091 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9092 find out it does not work in some platform. */
9093 #ifndef LT_DLLAZY_OR_NOW
9094 # ifdef RTLD_LAZY
9095 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9096 # else
9097 # ifdef DL_LAZY
9098 # define LT_DLLAZY_OR_NOW DL_LAZY
9099 # else
9100 # ifdef RTLD_NOW
9101 # define LT_DLLAZY_OR_NOW RTLD_NOW
9102 # else
9103 # ifdef DL_NOW
9104 # define LT_DLLAZY_OR_NOW DL_NOW
9105 # else
9106 # define LT_DLLAZY_OR_NOW 0
9107 # endif
9108 # endif
9109 # endif
9110 # endif
9111 #endif
9113 #ifdef __cplusplus
9114 extern "C" void exit (int);
9115 #endif
9117 void fnord() { int i=42;}
9118 int main ()
9120 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9121 int status = $lt_dlunknown;
9123 if (self)
9125 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9126 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9127 /* dlclose (self); */
9130 exit (status);
9133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9134 (eval $ac_link) 2>&5
9135 ac_status=$?
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9138 (./conftest; exit; ) 2>/dev/null
9139 lt_status=$?
9140 case x$lt_status in
9141 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9142 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9143 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9144 esac
9145 else :
9146 # compilation failed
9147 lt_cv_dlopen_self_static=no
9150 rm -fr conftest*
9154 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9155 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9158 CPPFLAGS="$save_CPPFLAGS"
9159 LDFLAGS="$save_LDFLAGS"
9160 LIBS="$save_LIBS"
9162 esac
9164 case $lt_cv_dlopen_self in
9165 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9166 *) enable_dlopen_self=unknown ;;
9167 esac
9169 case $lt_cv_dlopen_self_static in
9170 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9171 *) enable_dlopen_self_static=unknown ;;
9172 esac
9176 # Report which librarie types wil actually be built
9177 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9178 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9179 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9180 echo "${ECHO_T}$can_build_shared" >&6
9182 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9183 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9184 test "$can_build_shared" = "no" && enable_shared=no
9186 # On AIX, shared libraries and static libraries use the same namespace, and
9187 # are all built from PIC.
9188 case "$host_os" in
9189 aix3*)
9190 test "$enable_shared" = yes && enable_static=no
9191 if test -n "$RANLIB"; then
9192 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9193 postinstall_cmds='$RANLIB $lib'
9197 aix4*)
9198 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9199 test "$enable_shared" = yes && enable_static=no
9202 darwin* | rhapsody*)
9203 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9204 archive_cmds_need_lc=no
9205 case "$host_os" in
9206 rhapsody* | darwin1.[012])
9207 allow_undefined_flag='-undefined suppress'
9209 *) # Darwin 1.3 on
9210 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
9212 esac
9213 # FIXME: Relying on posixy $() will cause problems for
9214 # cross-compilation, but unfortunately the echo tests do not
9215 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
9216 # `"' quotes if we put them in here... so don't!
9217 output_verbose_link_cmd='echo'
9218 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9219 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9220 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9221 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}'
9222 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9223 hardcode_direct=no
9224 hardcode_automatic=yes
9225 hardcode_shlibpath_var=unsupported
9226 whole_archive_flag_spec='-all_load $convenience'
9227 link_all_deplibs=yes
9230 esac
9231 echo "$as_me:$LINENO: result: $enable_shared" >&5
9232 echo "${ECHO_T}$enable_shared" >&6
9234 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9235 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9236 # Make sure either enable_shared or enable_static is yes.
9237 test "$enable_shared" = yes || enable_static=yes
9238 echo "$as_me:$LINENO: result: $enable_static" >&5
9239 echo "${ECHO_T}$enable_static" >&6
9241 # The else clause should only fire when bootstrapping the
9242 # libtool distribution, otherwise you forgot to ship ltmain.sh
9243 # with your package, and you will get complaints that there are
9244 # no rules to generate ltmain.sh.
9245 if test -f "$ltmain"; then
9246 # See if we are running on zsh, and set the options which allow our commands through
9247 # without removal of \ escapes.
9248 if test -n "${ZSH_VERSION+set}" ; then
9249 setopt NO_GLOB_SUBST
9251 # Now quote all the things that may contain metacharacters while being
9252 # careful not to overquote the AC_SUBSTed values. We take copies of the
9253 # variables and quote the copies for generation of the libtool script.
9254 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
9255 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9256 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9257 deplibs_check_method reload_flag reload_cmds need_locks \
9258 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9259 lt_cv_sys_global_symbol_to_c_name_address \
9260 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9261 old_postinstall_cmds old_postuninstall_cmds \
9262 compiler \
9263 CC \
9264 LD \
9265 lt_prog_compiler_wl \
9266 lt_prog_compiler_pic \
9267 lt_prog_compiler_static \
9268 lt_prog_compiler_no_builtin_flag \
9269 export_dynamic_flag_spec \
9270 thread_safe_flag_spec \
9271 whole_archive_flag_spec \
9272 enable_shared_with_static_runtimes \
9273 old_archive_cmds \
9274 old_archive_from_new_cmds \
9275 predep_objects \
9276 postdep_objects \
9277 predeps \
9278 postdeps \
9279 compiler_lib_search_path \
9280 archive_cmds \
9281 archive_expsym_cmds \
9282 postinstall_cmds \
9283 postuninstall_cmds \
9284 old_archive_from_expsyms_cmds \
9285 allow_undefined_flag \
9286 no_undefined_flag \
9287 export_symbols_cmds \
9288 hardcode_libdir_flag_spec \
9289 hardcode_libdir_flag_spec_ld \
9290 hardcode_libdir_separator \
9291 hardcode_automatic \
9292 module_cmds \
9293 module_expsym_cmds \
9294 lt_cv_prog_compiler_c_o \
9295 exclude_expsyms \
9296 include_expsyms; do
9298 case $var in
9299 old_archive_cmds | \
9300 old_archive_from_new_cmds | \
9301 archive_cmds | \
9302 archive_expsym_cmds | \
9303 module_cmds | \
9304 module_expsym_cmds | \
9305 old_archive_from_expsyms_cmds | \
9306 export_symbols_cmds | \
9307 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9308 postinstall_cmds | postuninstall_cmds | \
9309 old_postinstall_cmds | old_postuninstall_cmds | \
9310 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9311 # Double-quote double-evaled strings.
9312 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9315 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9317 esac
9318 done
9320 case $lt_echo in
9321 *'\$0 --fallback-echo"')
9322 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9324 esac
9326 cfgfile="${ofile}T"
9327 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9328 $rm -f "$cfgfile"
9329 { echo "$as_me:$LINENO: creating $ofile" >&5
9330 echo "$as_me: creating $ofile" >&6;}
9332 cat <<__EOF__ >> "$cfgfile"
9333 #! $SHELL
9335 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9336 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9337 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9339 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9340 # Free Software Foundation, Inc.
9342 # This file is part of GNU Libtool:
9343 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9345 # This program is free software; you can redistribute it and/or modify
9346 # it under the terms of the GNU General Public License as published by
9347 # the Free Software Foundation; either version 2 of the License, or
9348 # (at your option) any later version.
9350 # This program is distributed in the hope that it will be useful, but
9351 # WITHOUT ANY WARRANTY; without even the implied warranty of
9352 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9353 # General Public License for more details.
9355 # You should have received a copy of the GNU General Public License
9356 # along with this program; if not, write to the Free Software
9357 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9359 # As a special exception to the GNU General Public License, if you
9360 # distribute this file as part of a program that contains a
9361 # configuration script generated by Autoconf, you may include it under
9362 # the same distribution terms that you use for the rest of that program.
9364 # A sed program that does not truncate output.
9365 SED=$lt_SED
9367 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9368 Xsed="$SED -e s/^X//"
9370 # The HP-UX ksh and POSIX shell print the target directory to stdout
9371 # if CDPATH is set.
9372 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9374 # The names of the tagged configurations supported by this script.
9375 available_tags=
9377 # ### BEGIN LIBTOOL CONFIG
9379 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9381 # Shell to use when invoking shell scripts.
9382 SHELL=$lt_SHELL
9384 # Whether or not to build shared libraries.
9385 build_libtool_libs=$enable_shared
9387 # Whether or not to build static libraries.
9388 build_old_libs=$enable_static
9390 # Whether or not to add -lc for building shared libraries.
9391 build_libtool_need_lc=$archive_cmds_need_lc
9393 # Whether or not to disallow shared libs when runtime libs are static
9394 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9396 # Whether or not to optimize for fast installation.
9397 fast_install=$enable_fast_install
9399 # The host system.
9400 host_alias=$host_alias
9401 host=$host
9403 # An echo program that does not interpret backslashes.
9404 echo=$lt_echo
9406 # The archiver.
9407 AR=$lt_AR
9408 AR_FLAGS=$lt_AR_FLAGS
9410 # A C compiler.
9411 LTCC=$lt_LTCC
9413 # A language-specific compiler.
9414 CC=$lt_compiler
9416 # Is the compiler the GNU C compiler?
9417 with_gcc=$GCC
9419 # An ERE matcher.
9420 EGREP=$lt_EGREP
9422 # The linker used to build libraries.
9423 LD=$lt_LD
9425 # Whether we need hard or soft links.
9426 LN_S=$lt_LN_S
9428 # A BSD-compatible nm program.
9429 NM=$lt_NM
9431 # A symbol stripping program
9432 STRIP=$STRIP
9434 # Used to examine libraries when file_magic_cmd begins "file"
9435 MAGIC_CMD=$MAGIC_CMD
9437 # Used on cygwin: DLL creation program.
9438 DLLTOOL="$DLLTOOL"
9440 # Used on cygwin: object dumper.
9441 OBJDUMP="$OBJDUMP"
9443 # Used on cygwin: assembler.
9444 AS="$AS"
9446 # The name of the directory that contains temporary libtool files.
9447 objdir=$objdir
9449 # How to create reloadable object files.
9450 reload_flag=$lt_reload_flag
9451 reload_cmds=$lt_reload_cmds
9453 # How to pass a linker flag through the compiler.
9454 wl=$lt_lt_prog_compiler_wl
9456 # Object file suffix (normally "o").
9457 objext="$ac_objext"
9459 # Old archive suffix (normally "a").
9460 libext="$libext"
9462 # Shared library suffix (normally ".so").
9463 shrext='$shrext'
9465 # Executable file suffix (normally "").
9466 exeext="$exeext"
9468 # Additional compiler flags for building library objects.
9469 pic_flag=$lt_lt_prog_compiler_pic
9470 pic_mode=$pic_mode
9472 # What is the maximum length of a command?
9473 max_cmd_len=$lt_cv_sys_max_cmd_len
9475 # Does compiler simultaneously support -c and -o options?
9476 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9478 # Must we lock files when doing compilation ?
9479 need_locks=$lt_need_locks
9481 # Do we need the lib prefix for modules?
9482 need_lib_prefix=$need_lib_prefix
9484 # Do we need a version for libraries?
9485 need_version=$need_version
9487 # Whether dlopen is supported.
9488 dlopen_support=$enable_dlopen
9490 # Whether dlopen of programs is supported.
9491 dlopen_self=$enable_dlopen_self
9493 # Whether dlopen of statically linked programs is supported.
9494 dlopen_self_static=$enable_dlopen_self_static
9496 # Compiler flag to prevent dynamic linking.
9497 link_static_flag=$lt_lt_prog_compiler_static
9499 # Compiler flag to turn off builtin functions.
9500 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9502 # Compiler flag to allow reflexive dlopens.
9503 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9505 # Compiler flag to generate shared objects directly from archives.
9506 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9508 # Compiler flag to generate thread-safe objects.
9509 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9511 # Library versioning type.
9512 version_type=$version_type
9514 # Format of library name prefix.
9515 libname_spec=$lt_libname_spec
9517 # List of archive names. First name is the real one, the rest are links.
9518 # The last name is the one that the linker finds with -lNAME.
9519 library_names_spec=$lt_library_names_spec
9521 # The coded name of the library, if different from the real name.
9522 soname_spec=$lt_soname_spec
9524 # Commands used to build and install an old-style archive.
9525 RANLIB=$lt_RANLIB
9526 old_archive_cmds=$lt_old_archive_cmds
9527 old_postinstall_cmds=$lt_old_postinstall_cmds
9528 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9530 # Create an old-style archive from a shared archive.
9531 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9533 # Create a temporary old-style archive to link instead of a shared archive.
9534 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9536 # Commands used to build and install a shared archive.
9537 archive_cmds=$lt_archive_cmds
9538 archive_expsym_cmds=$lt_archive_expsym_cmds
9539 postinstall_cmds=$lt_postinstall_cmds
9540 postuninstall_cmds=$lt_postuninstall_cmds
9542 # Commands used to build a loadable module (assumed same as above if empty)
9543 module_cmds=$lt_module_cmds
9544 module_expsym_cmds=$lt_module_expsym_cmds
9546 # Commands to strip libraries.
9547 old_striplib=$lt_old_striplib
9548 striplib=$lt_striplib
9550 # Dependencies to place before the objects being linked to create a
9551 # shared library.
9552 predep_objects=$lt_predep_objects
9554 # Dependencies to place after the objects being linked to create a
9555 # shared library.
9556 postdep_objects=$lt_postdep_objects
9558 # Dependencies to place before the objects being linked to create a
9559 # shared library.
9560 predeps=$lt_predeps
9562 # Dependencies to place after the objects being linked to create a
9563 # shared library.
9564 postdeps=$lt_postdeps
9566 # The library search path used internally by the compiler when linking
9567 # a shared library.
9568 compiler_lib_search_path=$lt_compiler_lib_search_path
9570 # Method to check whether dependent libraries are shared objects.
9571 deplibs_check_method=$lt_deplibs_check_method
9573 # Command to use when deplibs_check_method == file_magic.
9574 file_magic_cmd=$lt_file_magic_cmd
9576 # Flag that allows shared libraries with undefined symbols to be built.
9577 allow_undefined_flag=$lt_allow_undefined_flag
9579 # Flag that forces no undefined symbols.
9580 no_undefined_flag=$lt_no_undefined_flag
9582 # Commands used to finish a libtool library installation in a directory.
9583 finish_cmds=$lt_finish_cmds
9585 # Same as above, but a single script fragment to be evaled but not shown.
9586 finish_eval=$lt_finish_eval
9588 # Take the output of nm and produce a listing of raw symbols and C names.
9589 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9591 # Transform the output of nm in a proper C declaration
9592 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9594 # Transform the output of nm in a C name address pair
9595 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9597 # This is the shared library runtime path variable.
9598 runpath_var=$runpath_var
9600 # This is the shared library path variable.
9601 shlibpath_var=$shlibpath_var
9603 # Is shlibpath searched before the hard-coded library search path?
9604 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9606 # How to hardcode a shared library path into an executable.
9607 hardcode_action=$hardcode_action
9609 # Whether we should hardcode library paths into libraries.
9610 hardcode_into_libs=$hardcode_into_libs
9612 # Flag to hardcode \$libdir into a binary during linking.
9613 # This must work even if \$libdir does not exist.
9614 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9616 # If ld is used when linking, flag to hardcode \$libdir into
9617 # a binary during linking. This must work even if \$libdir does
9618 # not exist.
9619 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9621 # Whether we need a single -rpath flag with a separated argument.
9622 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9624 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9625 # resulting binary.
9626 hardcode_direct=$hardcode_direct
9628 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9629 # resulting binary.
9630 hardcode_minus_L=$hardcode_minus_L
9632 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9633 # the resulting binary.
9634 hardcode_shlibpath_var=$hardcode_shlibpath_var
9636 # Set to yes if building a shared library automatically hardcodes DIR into the library
9637 # and all subsequent libraries and executables linked against it.
9638 hardcode_automatic=$hardcode_automatic
9640 # Variables whose values should be saved in libtool wrapper scripts and
9641 # restored at relink time.
9642 variables_saved_for_relink="$variables_saved_for_relink"
9644 # Whether libtool must link a program against all its dependency libraries.
9645 link_all_deplibs=$link_all_deplibs
9647 # Compile-time system search path for libraries
9648 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9650 # Run-time system search path for libraries
9651 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9653 # Fix the shell variable \$srcfile for the compiler.
9654 fix_srcfile_path="$fix_srcfile_path"
9656 # Set to yes if exported symbols are required.
9657 always_export_symbols=$always_export_symbols
9659 # The commands to list exported symbols.
9660 export_symbols_cmds=$lt_export_symbols_cmds
9662 # The commands to extract the exported symbol list from a shared archive.
9663 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9665 # Symbols that should not be listed in the preloaded symbols.
9666 exclude_expsyms=$lt_exclude_expsyms
9668 # Symbols that must always be exported.
9669 include_expsyms=$lt_include_expsyms
9671 # ### END LIBTOOL CONFIG
9673 __EOF__
9676 case $host_os in
9677 aix3*)
9678 cat <<\EOF >> "$cfgfile"
9680 # AIX sometimes has problems with the GCC collect2 program. For some
9681 # reason, if we set the COLLECT_NAMES environment variable, the problems
9682 # vanish in a puff of smoke.
9683 if test "X${COLLECT_NAMES+set}" != Xset; then
9684 COLLECT_NAMES=
9685 export COLLECT_NAMES
9689 esac
9691 # We use sed instead of cat because bash on DJGPP gets confused if
9692 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9693 # text mode, it properly converts lines to CR/LF. This bash problem
9694 # is reportedly fixed, but why not run on old versions too?
9695 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9697 mv -f "$cfgfile" "$ofile" || \
9698 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9699 chmod +x "$ofile"
9701 else
9702 # If there is no Makefile yet, we rely on a make rule to execute
9703 # `config.status --recheck' to rerun these tests and create the
9704 # libtool script then.
9705 test -f Makefile && make "$ltmain"
9709 ac_ext=c
9710 ac_cpp='$CPP $CPPFLAGS'
9711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9715 CC="$lt_save_CC"
9718 # Check whether --with-tags or --without-tags was given.
9719 if test "${with_tags+set}" = set; then
9720 withval="$with_tags"
9721 tagnames="$withval"
9724 if test -f "$ltmain" && test -n "$tagnames"; then
9725 if test ! -f "${ofile}"; then
9726 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9727 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9730 if test -z "$LTCC"; then
9731 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9732 if test -z "$LTCC"; then
9733 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9734 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9735 else
9736 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9737 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9741 # Extract list of available tagged configurations in $ofile.
9742 # Note that this assumes the entire list is on one line.
9743 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9745 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9746 for tagname in $tagnames; do
9747 IFS="$lt_save_ifs"
9748 # Check whether tagname contains only valid characters
9749 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9750 "") ;;
9751 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9752 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9753 { (exit 1); exit 1; }; }
9755 esac
9757 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9758 then
9759 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9760 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9761 { (exit 1); exit 1; }; }
9764 # Update the list of available tags.
9765 if test -n "$tagname"; then
9766 echo appending configuration tag \"$tagname\" to $ofile
9768 case $tagname in
9769 CXX)
9770 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9771 ac_ext=cc
9772 ac_cpp='$CXXCPP $CPPFLAGS'
9773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9780 archive_cmds_need_lc_CXX=no
9781 allow_undefined_flag_CXX=
9782 always_export_symbols_CXX=no
9783 archive_expsym_cmds_CXX=
9784 export_dynamic_flag_spec_CXX=
9785 hardcode_direct_CXX=no
9786 hardcode_libdir_flag_spec_CXX=
9787 hardcode_libdir_flag_spec_ld_CXX=
9788 hardcode_libdir_separator_CXX=
9789 hardcode_minus_L_CXX=no
9790 hardcode_automatic_CXX=no
9791 module_cmds_CXX=
9792 module_expsym_cmds_CXX=
9793 link_all_deplibs_CXX=unknown
9794 old_archive_cmds_CXX=$old_archive_cmds
9795 no_undefined_flag_CXX=
9796 whole_archive_flag_spec_CXX=
9797 enable_shared_with_static_runtimes_CXX=no
9799 # Dependencies to place before and after the object being linked:
9800 predep_objects_CXX=
9801 postdep_objects_CXX=
9802 predeps_CXX=
9803 postdeps_CXX=
9804 compiler_lib_search_path_CXX=
9806 # Source file extension for C++ test sources.
9807 ac_ext=cc
9809 # Object file extension for compiled C++ test sources.
9810 objext=o
9811 objext_CXX=$objext
9813 # Code to be used in simple compile tests
9814 lt_simple_compile_test_code="int some_variable = 0;\n"
9816 # Code to be used in simple link tests
9817 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9819 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9821 # If no C compiler was specified, use CC.
9822 LTCC=${LTCC-"$CC"}
9824 # Allow CC to be a program name with arguments.
9825 compiler=$CC
9828 # Allow CC to be a program name with arguments.
9829 lt_save_CC=$CC
9830 lt_save_LD=$LD
9831 lt_save_GCC=$GCC
9832 GCC=$GXX
9833 lt_save_with_gnu_ld=$with_gnu_ld
9834 lt_save_path_LD=$lt_cv_path_LD
9835 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9836 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9837 else
9838 unset lt_cv_prog_gnu_ld
9840 if test -n "${lt_cv_path_LDCXX+set}"; then
9841 lt_cv_path_LD=$lt_cv_path_LDCXX
9842 else
9843 unset lt_cv_path_LD
9845 test -z "${LDCXX+set}" || LD=$LDCXX
9846 CC=${CXX-"c++"}
9847 compiler=$CC
9848 compiler_CXX=$CC
9849 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9851 # We don't want -fno-exception wen compiling C++ code, so set the
9852 # no_builtin_flag separately
9853 if test "$GXX" = yes; then
9854 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9855 else
9856 lt_prog_compiler_no_builtin_flag_CXX=
9859 if test "$GXX" = yes; then
9860 # Set up default GNU C++ configuration
9863 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9864 if test "${with_gnu_ld+set}" = set; then
9865 withval="$with_gnu_ld"
9866 test "$withval" = no || with_gnu_ld=yes
9867 else
9868 with_gnu_ld=no
9870 ac_prog=ld
9871 if test "$GCC" = yes; then
9872 # Check if gcc -print-prog-name=ld gives a path.
9873 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9874 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9875 case $host in
9876 *-*-mingw*)
9877 # gcc leaves a trailing carriage return which upsets mingw
9878 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9880 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9881 esac
9882 case $ac_prog in
9883 # Accept absolute paths.
9884 [\\/]* | ?:[\\/]*)
9885 re_direlt='/[^/][^/]*/\.\./'
9886 # Canonicalize the path of ld
9887 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9888 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9889 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9890 done
9891 test -z "$LD" && LD="$ac_prog"
9894 # If it fails, then pretend we aren't using GCC.
9895 ac_prog=ld
9898 # If it is relative, then search for the first ld in PATH.
9899 with_gnu_ld=unknown
9901 esac
9902 elif test "$with_gnu_ld" = yes; then
9903 echo "$as_me:$LINENO: checking for GNU ld" >&5
9904 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9905 else
9906 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9907 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9909 if test "${lt_cv_path_LD+set}" = set; then
9910 echo $ECHO_N "(cached) $ECHO_C" >&6
9911 else
9912 if test -z "$LD"; then
9913 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9914 for ac_dir in $PATH; do
9915 IFS="$lt_save_ifs"
9916 test -z "$ac_dir" && ac_dir=.
9917 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9918 lt_cv_path_LD="$ac_dir/$ac_prog"
9919 # Check to see if the program is GNU ld. I'd rather use --version,
9920 # but apparently some GNU ld's only accept -v.
9921 # Break only if it was the GNU/non-GNU ld that we prefer.
9922 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9923 *GNU* | *'with BFD'*)
9924 test "$with_gnu_ld" != no && break
9927 test "$with_gnu_ld" != yes && break
9929 esac
9931 done
9932 IFS="$lt_save_ifs"
9933 else
9934 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9938 LD="$lt_cv_path_LD"
9939 if test -n "$LD"; then
9940 echo "$as_me:$LINENO: result: $LD" >&5
9941 echo "${ECHO_T}$LD" >&6
9942 else
9943 echo "$as_me:$LINENO: result: no" >&5
9944 echo "${ECHO_T}no" >&6
9946 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9947 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9948 { (exit 1); exit 1; }; }
9949 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9950 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9951 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9952 echo $ECHO_N "(cached) $ECHO_C" >&6
9953 else
9954 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9955 case `"$LD" -v 2>&1 </dev/null` in
9956 *GNU* | *'with BFD'*)
9957 lt_cv_prog_gnu_ld=yes
9960 lt_cv_prog_gnu_ld=no
9962 esac
9964 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9965 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9966 with_gnu_ld=$lt_cv_prog_gnu_ld
9970 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9971 # archiving commands below assume that GNU ld is being used.
9972 if test "$with_gnu_ld" = yes; then
9973 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9974 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'
9976 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9977 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9979 # If archive_cmds runs LD, not CC, wlarc should be empty
9980 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9981 # investigate it a little bit more. (MM)
9982 wlarc='${wl}'
9984 # ancient GNU ld didn't support --whole-archive et. al.
9985 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9986 grep 'no-whole-archive' > /dev/null; then
9987 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9988 else
9989 whole_archive_flag_spec_CXX=
9991 else
9992 with_gnu_ld=no
9993 wlarc=
9995 # A generic and very simple default shared library creation
9996 # command for GNU C++ for the case where it uses the native
9997 # linker, instead of GNU ld. If possible, this setting should
9998 # overridden to take advantage of the native linker features on
9999 # the platform it is being used on.
10000 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10003 # Commands to make compiler produce verbose output that lists
10004 # what "hidden" libraries, object files and flags are used when
10005 # linking a shared library.
10006 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10008 else
10009 GXX=no
10010 with_gnu_ld=no
10011 wlarc=
10014 # PORTME: fill in a description of your system's C++ link characteristics
10015 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10016 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10017 ld_shlibs_CXX=yes
10018 case $host_os in
10019 aix3*)
10020 # FIXME: insert proper C++ library support
10021 ld_shlibs_CXX=no
10023 aix4* | aix5*)
10024 if test "$host_cpu" = ia64; then
10025 # On IA64, the linker does run time linking by default, so we don't
10026 # have to do anything special.
10027 aix_use_runtimelinking=no
10028 exp_sym_flag='-Bexport'
10029 no_entry_flag=""
10030 else
10031 aix_use_runtimelinking=no
10033 # Test if we are trying to use run time linking or normal
10034 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10035 # need to do runtime linking.
10036 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10037 for ld_flag in $LDFLAGS; do
10038 case $ld_flag in
10039 *-brtl*)
10040 aix_use_runtimelinking=yes
10041 break
10043 esac
10044 done
10045 esac
10047 exp_sym_flag='-bexport'
10048 no_entry_flag='-bnoentry'
10051 # When large executables or shared objects are built, AIX ld can
10052 # have problems creating the table of contents. If linking a library
10053 # or program results in "error TOC overflow" add -mminimal-toc to
10054 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10055 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10057 archive_cmds_CXX=''
10058 hardcode_direct_CXX=yes
10059 hardcode_libdir_separator_CXX=':'
10060 link_all_deplibs_CXX=yes
10062 if test "$GXX" = yes; then
10063 case $host_os in aix4.012|aix4.012.*)
10064 # We only want to do this on AIX 4.2 and lower, the check
10065 # below for broken collect2 doesn't work under 4.3+
10066 collect2name=`${CC} -print-prog-name=collect2`
10067 if test -f "$collect2name" && \
10068 strings "$collect2name" | grep resolve_lib_name >/dev/null
10069 then
10070 # We have reworked collect2
10071 hardcode_direct_CXX=yes
10072 else
10073 # We have old collect2
10074 hardcode_direct_CXX=unsupported
10075 # It fails to find uninstalled libraries when the uninstalled
10076 # path is not listed in the libpath. Setting hardcode_minus_L
10077 # to unsupported forces relinking
10078 hardcode_minus_L_CXX=yes
10079 hardcode_libdir_flag_spec_CXX='-L$libdir'
10080 hardcode_libdir_separator_CXX=
10082 esac
10083 shared_flag='-shared'
10084 else
10085 # not using gcc
10086 if test "$host_cpu" = ia64; then
10087 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10088 # chokes on -Wl,-G. The following line is correct:
10089 shared_flag='-G'
10090 else
10091 if test "$aix_use_runtimelinking" = yes; then
10092 shared_flag='${wl}-G'
10093 else
10094 shared_flag='${wl}-bM:SRE'
10099 # It seems that -bexpall does not export symbols beginning with
10100 # underscore (_), so it is better to generate a list of symbols to export.
10101 always_export_symbols_CXX=yes
10102 if test "$aix_use_runtimelinking" = yes; then
10103 # Warning - without using the other runtime loading flags (-brtl),
10104 # -berok will link without error, but may produce a broken library.
10105 allow_undefined_flag_CXX='-berok'
10106 # Determine the default libpath from the value encoded in an empty executable.
10107 cat >conftest.$ac_ext <<_ACEOF
10108 /* confdefs.h. */
10109 _ACEOF
10110 cat confdefs.h >>conftest.$ac_ext
10111 cat >>conftest.$ac_ext <<_ACEOF
10112 /* end confdefs.h. */
10115 main ()
10119 return 0;
10121 _ACEOF
10122 rm -f conftest.$ac_objext conftest$ac_exeext
10123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10124 (eval $ac_link) 2>conftest.er1
10125 ac_status=$?
10126 grep -v '^ *+' conftest.er1 >conftest.err
10127 rm -f conftest.er1
10128 cat conftest.err >&5
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); } &&
10131 { ac_try='test -z "$ac_cxx_werror_flag"
10132 || test ! -s conftest.err'
10133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10134 (eval $ac_try) 2>&5
10135 ac_status=$?
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); }; } &&
10138 { ac_try='test -s conftest$ac_exeext'
10139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10140 (eval $ac_try) 2>&5
10141 ac_status=$?
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); }; }; then
10145 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10147 # Check for a 64-bit object if we didn't find anything.
10148 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; }
10149 }'`; fi
10150 else
10151 echo "$as_me: failed program was:" >&5
10152 sed 's/^/| /' conftest.$ac_ext >&5
10155 rm -f conftest.err conftest.$ac_objext \
10156 conftest$ac_exeext conftest.$ac_ext
10157 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10159 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10161 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"
10162 else
10163 if test "$host_cpu" = ia64; then
10164 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10165 allow_undefined_flag_CXX="-z nodefs"
10166 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"
10167 else
10168 # Determine the default libpath from the value encoded in an empty executable.
10169 cat >conftest.$ac_ext <<_ACEOF
10170 /* confdefs.h. */
10171 _ACEOF
10172 cat confdefs.h >>conftest.$ac_ext
10173 cat >>conftest.$ac_ext <<_ACEOF
10174 /* end confdefs.h. */
10177 main ()
10181 return 0;
10183 _ACEOF
10184 rm -f conftest.$ac_objext conftest$ac_exeext
10185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10186 (eval $ac_link) 2>conftest.er1
10187 ac_status=$?
10188 grep -v '^ *+' conftest.er1 >conftest.err
10189 rm -f conftest.er1
10190 cat conftest.err >&5
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); } &&
10193 { ac_try='test -z "$ac_cxx_werror_flag"
10194 || test ! -s conftest.err'
10195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10196 (eval $ac_try) 2>&5
10197 ac_status=$?
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); }; } &&
10200 { ac_try='test -s conftest$ac_exeext'
10201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202 (eval $ac_try) 2>&5
10203 ac_status=$?
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); }; }; then
10207 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10209 # Check for a 64-bit object if we didn't find anything.
10210 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; }
10211 }'`; fi
10212 else
10213 echo "$as_me: failed program was:" >&5
10214 sed 's/^/| /' conftest.$ac_ext >&5
10217 rm -f conftest.err conftest.$ac_objext \
10218 conftest$ac_exeext conftest.$ac_ext
10219 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10221 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10222 # Warning - without using the other run time loading flags,
10223 # -berok will link without error, but may produce a broken library.
10224 no_undefined_flag_CXX=' ${wl}-bernotok'
10225 allow_undefined_flag_CXX=' ${wl}-berok'
10226 # -bexpall does not export symbols beginning with underscore (_)
10227 always_export_symbols_CXX=yes
10228 # Exported symbols can be pulled into shared objects from archives
10229 whole_archive_flag_spec_CXX=' '
10230 archive_cmds_need_lc_CXX=yes
10231 # This is similar to how AIX traditionally builds it's shared libraries.
10232 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'
10236 chorus*)
10237 case $cc_basename in
10239 # FIXME: insert proper C++ library support
10240 ld_shlibs_CXX=no
10242 esac
10245 cygwin* | mingw* | pw32*)
10246 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10247 # as there is no search path for DLLs.
10248 hardcode_libdir_flag_spec_CXX='-L$libdir'
10249 allow_undefined_flag_CXX=unsupported
10250 always_export_symbols_CXX=no
10251 enable_shared_with_static_runtimes_CXX=yes
10253 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10254 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'
10255 # If the export-symbols file already is a .def file (1st line
10256 # is EXPORTS), use it as is; otherwise, prepend...
10257 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10258 cp $export_symbols $output_objdir/$soname.def;
10259 else
10260 echo EXPORTS > $output_objdir/$soname.def;
10261 cat $export_symbols >> $output_objdir/$soname.def;
10263 $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'
10264 else
10265 ld_shlibs_CXX=no
10269 darwin* | rhapsody*)
10270 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10271 archive_cmds_need_lc_CXX=no
10272 case "$host_os" in
10273 rhapsody* | darwin1.[012])
10274 allow_undefined_flag_CXX='-undefined suppress'
10276 *) # Darwin 1.3 on
10277 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10279 esac
10280 lt_int_apple_cc_single_mod=no
10281 output_verbose_link_cmd='echo'
10282 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10283 lt_int_apple_cc_single_mod=yes
10285 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10286 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10287 else
10288 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10290 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
10292 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10293 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10294 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}'
10295 else
10296 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10298 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10299 hardcode_direct_CXX=no
10300 hardcode_automatic_CXX=yes
10301 hardcode_shlibpath_var_CXX=unsupported
10302 whole_archive_flag_spec_CXX='-all_load $convenience'
10303 link_all_deplibs_CXX=yes
10307 dgux*)
10308 case $cc_basename in
10309 ec++)
10310 # FIXME: insert proper C++ library support
10311 ld_shlibs_CXX=no
10313 ghcx)
10314 # Green Hills C++ Compiler
10315 # FIXME: insert proper C++ library support
10316 ld_shlibs_CXX=no
10319 # FIXME: insert proper C++ library support
10320 ld_shlibs_CXX=no
10322 esac
10324 freebsd12*)
10325 # C++ shared libraries reported to be fairly broken before switch to ELF
10326 ld_shlibs_CXX=no
10328 freebsd-elf*)
10329 archive_cmds_need_lc_CXX=no
10331 freebsd*)
10332 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10333 # conventions
10334 ld_shlibs_CXX=yes
10336 gnu*)
10338 hpux9*)
10339 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10340 hardcode_libdir_separator_CXX=:
10341 export_dynamic_flag_spec_CXX='${wl}-E'
10342 hardcode_direct_CXX=yes
10343 hardcode_minus_L_CXX=yes # Not in the search PATH,
10344 # but as the default
10345 # location of the library.
10347 case $cc_basename in
10349 # FIXME: insert proper C++ library support
10350 ld_shlibs_CXX=no
10352 aCC)
10353 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'
10354 # Commands to make compiler produce verbose output that lists
10355 # what "hidden" libraries, object files and flags are used when
10356 # linking a shared library.
10358 # There doesn't appear to be a way to prevent this compiler from
10359 # explicitly linking system object files so we need to strip them
10360 # from the output so that they don't get included in the library
10361 # dependencies.
10362 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10365 if test "$GXX" = yes; then
10366 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'
10367 else
10368 # FIXME: insert proper C++ library support
10369 ld_shlibs_CXX=no
10372 esac
10374 hpux10*|hpux11*)
10375 if test $with_gnu_ld = no; then
10376 case "$host_cpu" in
10377 hppa*64*)
10378 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10379 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10380 hardcode_libdir_separator_CXX=:
10382 ia64*)
10383 hardcode_libdir_flag_spec_CXX='-L$libdir'
10386 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10387 hardcode_libdir_separator_CXX=:
10388 export_dynamic_flag_spec_CXX='${wl}-E'
10390 esac
10392 case "$host_cpu" in
10393 hppa*64*)
10394 hardcode_direct_CXX=no
10395 hardcode_shlibpath_var_CXX=no
10397 ia64*)
10398 hardcode_direct_CXX=no
10399 hardcode_shlibpath_var_CXX=no
10400 hardcode_minus_L_CXX=yes # Not in the search PATH,
10401 # but as the default
10402 # location of the library.
10405 hardcode_direct_CXX=yes
10406 hardcode_minus_L_CXX=yes # Not in the search PATH,
10407 # but as the default
10408 # location of the library.
10410 esac
10412 case $cc_basename in
10414 # FIXME: insert proper C++ library support
10415 ld_shlibs_CXX=no
10417 aCC)
10418 case "$host_cpu" in
10419 hppa*64*|ia64*)
10420 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10423 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10425 esac
10426 # Commands to make compiler produce verbose output that lists
10427 # what "hidden" libraries, object files and flags are used when
10428 # linking a shared library.
10430 # There doesn't appear to be a way to prevent this compiler from
10431 # explicitly linking system object files so we need to strip them
10432 # from the output so that they don't get included in the library
10433 # dependencies.
10434 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'
10437 if test "$GXX" = yes; then
10438 if test $with_gnu_ld = no; then
10439 case "$host_cpu" in
10440 ia64*|hppa*64*)
10441 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10444 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'
10446 esac
10448 else
10449 # FIXME: insert proper C++ library support
10450 ld_shlibs_CXX=no
10453 esac
10455 irix5* | irix6*)
10456 case $cc_basename in
10458 # SGI C++
10459 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'
10461 # Archives containing C++ object files must be created using
10462 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10463 # necessary to make sure instantiated templates are included
10464 # in the archive.
10465 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10468 if test "$GXX" = yes; then
10469 if test "$with_gnu_ld" = no; then
10470 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'
10471 else
10472 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'
10475 link_all_deplibs_CXX=yes
10477 esac
10478 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10479 hardcode_libdir_separator_CXX=:
10481 linux*)
10482 case $cc_basename in
10483 KCC)
10484 # Kuck and Associates, Inc. (KAI) C++ Compiler
10486 # KCC will only create a shared library if the output file
10487 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10488 # to its proper name (with version) after linking.
10489 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'
10490 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'
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 $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'
10501 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10502 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10504 # Archives containing C++ object files must be created using
10505 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10506 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10508 icpc)
10509 # Intel C++
10510 with_gnu_ld=yes
10511 archive_cmds_need_lc_CXX=no
10512 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10513 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'
10514 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10515 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10516 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10518 cxx)
10519 # Compaq C++
10520 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10521 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'
10523 runpath_var=LD_RUN_PATH
10524 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10525 hardcode_libdir_separator_CXX=:
10527 # Commands to make compiler produce verbose output that lists
10528 # what "hidden" libraries, object files and flags are used when
10529 # linking a shared library.
10531 # There doesn't appear to be a way to prevent this compiler from
10532 # explicitly linking system object files so we need to strip them
10533 # from the output so that they don't get included in the library
10534 # dependencies.
10535 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'
10537 esac
10539 lynxos*)
10540 # FIXME: insert proper C++ library support
10541 ld_shlibs_CXX=no
10543 m88k*)
10544 # FIXME: insert proper C++ library support
10545 ld_shlibs_CXX=no
10547 mvs*)
10548 case $cc_basename in
10549 cxx)
10550 # FIXME: insert proper C++ library support
10551 ld_shlibs_CXX=no
10554 # FIXME: insert proper C++ library support
10555 ld_shlibs_CXX=no
10557 esac
10559 netbsd*)
10560 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10561 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10562 wlarc=
10563 hardcode_libdir_flag_spec_CXX='-R$libdir'
10564 hardcode_direct_CXX=yes
10565 hardcode_shlibpath_var_CXX=no
10567 # Workaround some broken pre-1.5 toolchains
10568 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10570 osf3*)
10571 case $cc_basename in
10572 KCC)
10573 # Kuck and Associates, Inc. (KAI) C++ Compiler
10575 # KCC will only create a shared library if the output file
10576 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10577 # to its proper name (with version) after linking.
10578 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'
10580 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10581 hardcode_libdir_separator_CXX=:
10583 # Archives containing C++ object files must be created using
10584 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10585 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10588 RCC)
10589 # Rational C++ 2.4.1
10590 # FIXME: insert proper C++ library support
10591 ld_shlibs_CXX=no
10593 cxx)
10594 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10595 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'
10597 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10598 hardcode_libdir_separator_CXX=:
10600 # Commands to make compiler produce verbose output that lists
10601 # what "hidden" libraries, object files and flags are used when
10602 # linking a shared library.
10604 # There doesn't appear to be a way to prevent this compiler from
10605 # explicitly linking system object files so we need to strip them
10606 # from the output so that they don't get included in the library
10607 # dependencies.
10608 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'
10611 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10612 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10613 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'
10615 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10616 hardcode_libdir_separator_CXX=:
10618 # Commands to make compiler produce verbose output that lists
10619 # what "hidden" libraries, object files and flags are used when
10620 # linking a shared library.
10621 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10623 else
10624 # FIXME: insert proper C++ library support
10625 ld_shlibs_CXX=no
10628 esac
10630 osf4* | osf5*)
10631 case $cc_basename in
10632 KCC)
10633 # Kuck and Associates, Inc. (KAI) C++ Compiler
10635 # KCC will only create a shared library if the output file
10636 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10637 # to its proper name (with version) after linking.
10638 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'
10640 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10641 hardcode_libdir_separator_CXX=:
10643 # Archives containing C++ object files must be created using
10644 # the KAI C++ compiler.
10645 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10647 RCC)
10648 # Rational C++ 2.4.1
10649 # FIXME: insert proper C++ library support
10650 ld_shlibs_CXX=no
10652 cxx)
10653 allow_undefined_flag_CXX=' -expect_unresolved \*'
10654 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'
10655 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10656 echo "-hidden">> $lib.exp~
10657 $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~
10658 $rm $lib.exp'
10660 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10661 hardcode_libdir_separator_CXX=:
10663 # Commands to make compiler produce verbose output that lists
10664 # what "hidden" libraries, object files and flags are used when
10665 # linking a shared library.
10667 # There doesn't appear to be a way to prevent this compiler from
10668 # explicitly linking system object files so we need to strip them
10669 # from the output so that they don't get included in the library
10670 # dependencies.
10671 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'
10674 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10675 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10676 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'
10678 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10679 hardcode_libdir_separator_CXX=:
10681 # Commands to make compiler produce verbose output that lists
10682 # what "hidden" libraries, object files and flags are used when
10683 # linking a shared library.
10684 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10686 else
10687 # FIXME: insert proper C++ library support
10688 ld_shlibs_CXX=no
10691 esac
10693 psos*)
10694 # FIXME: insert proper C++ library support
10695 ld_shlibs_CXX=no
10697 sco*)
10698 archive_cmds_need_lc_CXX=no
10699 case $cc_basename in
10701 # FIXME: insert proper C++ library support
10702 ld_shlibs_CXX=no
10705 # FIXME: insert proper C++ library support
10706 ld_shlibs_CXX=no
10708 esac
10710 sunos4*)
10711 case $cc_basename in
10713 # Sun C++ 4.x
10714 # FIXME: insert proper C++ library support
10715 ld_shlibs_CXX=no
10717 lcc)
10718 # Lucid
10719 # FIXME: insert proper C++ library support
10720 ld_shlibs_CXX=no
10723 # FIXME: insert proper C++ library support
10724 ld_shlibs_CXX=no
10726 esac
10728 solaris*)
10729 case $cc_basename in
10731 # Sun C++ 4.2, 5.x and Centerline C++
10732 no_undefined_flag_CXX=' -zdefs'
10733 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10734 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10735 $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'
10737 hardcode_libdir_flag_spec_CXX='-R$libdir'
10738 hardcode_shlibpath_var_CXX=no
10739 case $host_os in
10740 solaris2.0-5 | solaris2.0-5.*) ;;
10742 # The C++ compiler is used as linker so we must use $wl
10743 # flag to pass the commands to the underlying system
10744 # linker.
10745 # Supported since Solaris 2.6 (maybe 2.5.1?)
10746 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10748 esac
10749 link_all_deplibs_CXX=yes
10751 # Commands to make compiler produce verbose output that lists
10752 # what "hidden" libraries, object files and flags are used when
10753 # linking a shared library.
10755 # There doesn't appear to be a way to prevent this compiler from
10756 # explicitly linking system object files so we need to strip them
10757 # from the output so that they don't get included in the library
10758 # dependencies.
10759 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'
10761 # Archives containing C++ object files must be created using
10762 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10763 # necessary to make sure instantiated templates are included
10764 # in the archive.
10765 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10767 gcx)
10768 # Green Hills C++ Compiler
10769 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10771 # The C++ compiler must be used to create the archive.
10772 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10775 # GNU C++ compiler with Solaris linker
10776 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10777 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10778 if $CC --version | grep -v '^2\.7' > /dev/null; then
10779 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10780 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10781 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10783 # Commands to make compiler produce verbose output that lists
10784 # what "hidden" libraries, object files and flags are used when
10785 # linking a shared library.
10786 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10787 else
10788 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10789 # platform.
10790 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10791 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10792 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10794 # Commands to make compiler produce verbose output that lists
10795 # what "hidden" libraries, object files and flags are used when
10796 # linking a shared library.
10797 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10800 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10803 esac
10805 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10806 archive_cmds_need_lc_CXX=no
10808 tandem*)
10809 case $cc_basename in
10810 NCC)
10811 # NonStop-UX NCC 3.20
10812 # FIXME: insert proper C++ library support
10813 ld_shlibs_CXX=no
10816 # FIXME: insert proper C++ library support
10817 ld_shlibs_CXX=no
10819 esac
10821 vxworks*)
10822 # FIXME: insert proper C++ library support
10823 ld_shlibs_CXX=no
10826 # FIXME: insert proper C++ library support
10827 ld_shlibs_CXX=no
10829 esac
10830 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10831 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10832 test "$ld_shlibs_CXX" = no && can_build_shared=no
10834 GCC_CXX="$GXX"
10835 LD_CXX="$LD"
10838 cat > conftest.$ac_ext <<EOF
10839 class Foo
10841 public:
10842 Foo (void) { a = 0; }
10843 private:
10844 int a;
10848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10849 (eval $ac_compile) 2>&5
10850 ac_status=$?
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); }; then
10853 # Parse the compiler output and extract the necessary
10854 # objects, libraries and library flags.
10856 # Sentinel used to keep track of whether or not we are before
10857 # the conftest object file.
10858 pre_test_object_deps_done=no
10860 # The `*' in the case matches for architectures that use `case' in
10861 # $output_verbose_cmd can trigger glob expansion during the loop
10862 # eval without this substitution.
10863 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10865 for p in `eval $output_verbose_link_cmd`; do
10866 case $p in
10868 -L* | -R* | -l*)
10869 # Some compilers place space between "-{L,R}" and the path.
10870 # Remove the space.
10871 if test $p = "-L" \
10872 || test $p = "-R"; then
10873 prev=$p
10874 continue
10875 else
10876 prev=
10879 if test "$pre_test_object_deps_done" = no; then
10880 case $p in
10881 -L* | -R*)
10882 # Internal compiler library paths should come after those
10883 # provided the user. The postdeps already come after the
10884 # user supplied libs so there is no need to process them.
10885 if test -z "$compiler_lib_search_path_CXX"; then
10886 compiler_lib_search_path_CXX="${prev}${p}"
10887 else
10888 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10891 # The "-l" case would never come before the object being
10892 # linked, so don't bother handling this case.
10893 esac
10894 else
10895 if test -z "$postdeps_CXX"; then
10896 postdeps_CXX="${prev}${p}"
10897 else
10898 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10903 *.$objext)
10904 # This assumes that the test object file only shows up
10905 # once in the compiler output.
10906 if test "$p" = "conftest.$objext"; then
10907 pre_test_object_deps_done=yes
10908 continue
10911 if test "$pre_test_object_deps_done" = no; then
10912 if test -z "$predep_objects_CXX"; then
10913 predep_objects_CXX="$p"
10914 else
10915 predep_objects_CXX="$predep_objects_CXX $p"
10917 else
10918 if test -z "$postdep_objects_CXX"; then
10919 postdep_objects_CXX="$p"
10920 else
10921 postdep_objects_CXX="$postdep_objects_CXX $p"
10926 *) ;; # Ignore the rest.
10928 esac
10929 done
10931 # Clean up.
10932 rm -f a.out a.exe
10933 else
10934 echo "libtool.m4: error: problem compiling CXX test program"
10937 $rm -f confest.$objext
10939 case " $postdeps_CXX " in
10940 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10941 esac
10943 lt_prog_compiler_wl_CXX=
10944 lt_prog_compiler_pic_CXX=
10945 lt_prog_compiler_static_CXX=
10947 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10948 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10950 # C++ specific cases for pic, static, wl, etc.
10951 if test "$GXX" = yes; then
10952 lt_prog_compiler_wl_CXX='-Wl,'
10953 lt_prog_compiler_static_CXX='-static'
10955 case $host_os in
10956 aix*)
10957 # All AIX code is PIC.
10958 if test "$host_cpu" = ia64; then
10959 # AIX 5 now supports IA64 processor
10960 lt_prog_compiler_static_CXX='-Bstatic'
10963 amigaos*)
10964 # FIXME: we need at least 68020 code to build shared libraries, but
10965 # adding the `-m68020' flag to GCC prevents building anything better,
10966 # like `-m68040'.
10967 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10969 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10970 # PIC is the default for these OSes.
10972 mingw* | os2* | pw32*)
10973 # This hack is so that the source file can tell whether it is being
10974 # built for inclusion in a dll (and should export symbols for example).
10975 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10977 darwin* | rhapsody*)
10978 # PIC is the default on this platform
10979 # Common symbols not allowed in MH_DYLIB files
10980 lt_prog_compiler_pic_CXX='-fno-common'
10982 *djgpp*)
10983 # DJGPP does not support shared libraries at all
10984 lt_prog_compiler_pic_CXX=
10986 sysv4*MP*)
10987 if test -d /usr/nec; then
10988 lt_prog_compiler_pic_CXX=-Kconform_pic
10991 hpux*)
10992 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10993 # not for PA HP-UX.
10994 case "$host_cpu" in
10995 hppa*64*|ia64*)
10998 lt_prog_compiler_pic_CXX='-fPIC'
11000 esac
11003 lt_prog_compiler_pic_CXX='-fPIC'
11005 esac
11006 else
11007 case $host_os in
11008 aix4* | aix5*)
11009 # All AIX code is PIC.
11010 if test "$host_cpu" = ia64; then
11011 # AIX 5 now supports IA64 processor
11012 lt_prog_compiler_static_CXX='-Bstatic'
11013 else
11014 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11017 chorus*)
11018 case $cc_basename in
11019 cxch68)
11020 # Green Hills C++ Compiler
11021 # _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"
11023 esac
11025 dgux*)
11026 case $cc_basename in
11027 ec++)
11028 lt_prog_compiler_pic_CXX='-KPIC'
11030 ghcx)
11031 # Green Hills C++ Compiler
11032 lt_prog_compiler_pic_CXX='-pic'
11036 esac
11038 freebsd*)
11039 # FreeBSD uses GNU C++
11041 hpux9* | hpux10* | hpux11*)
11042 case $cc_basename in
11044 lt_prog_compiler_wl_CXX='-Wl,'
11045 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11046 if test "$host_cpu" != ia64; then
11047 lt_prog_compiler_pic_CXX='+Z'
11050 aCC)
11051 lt_prog_compiler_wl_CXX='-Wl,'
11052 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11053 case "$host_cpu" in
11054 hppa*64*|ia64*)
11055 # +Z the default
11058 lt_prog_compiler_pic_CXX='+Z'
11060 esac
11064 esac
11066 irix5* | irix6* | nonstopux*)
11067 case $cc_basename in
11069 lt_prog_compiler_wl_CXX='-Wl,'
11070 lt_prog_compiler_static_CXX='-non_shared'
11071 # CC pic flag -KPIC is the default.
11075 esac
11077 linux*)
11078 case $cc_basename in
11079 KCC)
11080 # KAI C++ Compiler
11081 lt_prog_compiler_wl_CXX='--backend -Wl,'
11082 lt_prog_compiler_pic_CXX='-fPIC'
11084 icpc)
11085 # Intel C++
11086 lt_prog_compiler_wl_CXX='-Wl,'
11087 lt_prog_compiler_pic_CXX='-KPIC'
11088 lt_prog_compiler_static_CXX='-static'
11090 cxx)
11091 # Compaq C++
11092 # Make sure the PIC flag is empty. It appears that all Alpha
11093 # Linux and Compaq Tru64 Unix objects are PIC.
11094 lt_prog_compiler_pic_CXX=
11095 lt_prog_compiler_static_CXX='-non_shared'
11099 esac
11101 lynxos*)
11103 m88k*)
11105 mvs*)
11106 case $cc_basename in
11107 cxx)
11108 lt_prog_compiler_pic_CXX='-W c,exportall'
11112 esac
11114 netbsd*)
11116 osf3* | osf4* | osf5*)
11117 case $cc_basename in
11118 KCC)
11119 lt_prog_compiler_wl_CXX='--backend -Wl,'
11121 RCC)
11122 # Rational C++ 2.4.1
11123 lt_prog_compiler_pic_CXX='-pic'
11125 cxx)
11126 # Digital/Compaq C++
11127 lt_prog_compiler_wl_CXX='-Wl,'
11128 # Make sure the PIC flag is empty. It appears that all Alpha
11129 # Linux and Compaq Tru64 Unix objects are PIC.
11130 lt_prog_compiler_pic_CXX=
11131 lt_prog_compiler_static_CXX='-non_shared'
11135 esac
11137 psos*)
11139 sco*)
11140 case $cc_basename in
11142 lt_prog_compiler_pic_CXX='-fPIC'
11146 esac
11148 solaris*)
11149 case $cc_basename in
11151 # Sun C++ 4.2, 5.x and Centerline C++
11152 lt_prog_compiler_pic_CXX='-KPIC'
11153 lt_prog_compiler_static_CXX='-Bstatic'
11154 lt_prog_compiler_wl_CXX='-Qoption ld '
11156 gcx)
11157 # Green Hills C++ Compiler
11158 lt_prog_compiler_pic_CXX='-PIC'
11162 esac
11164 sunos4*)
11165 case $cc_basename in
11167 # Sun C++ 4.x
11168 lt_prog_compiler_pic_CXX='-pic'
11169 lt_prog_compiler_static_CXX='-Bstatic'
11171 lcc)
11172 # Lucid
11173 lt_prog_compiler_pic_CXX='-pic'
11177 esac
11179 tandem*)
11180 case $cc_basename in
11181 NCC)
11182 # NonStop-UX NCC 3.20
11183 lt_prog_compiler_pic_CXX='-KPIC'
11187 esac
11189 unixware*)
11191 vxworks*)
11194 lt_prog_compiler_can_build_shared_CXX=no
11196 esac
11199 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11200 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11203 # Check to make sure the PIC flag actually works.
11205 if test -n "$lt_prog_compiler_pic_CXX"; then
11206 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11207 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11208 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11209 echo $ECHO_N "(cached) $ECHO_C" >&6
11210 else
11211 lt_prog_compiler_pic_works_CXX=no
11212 ac_outfile=conftest.$ac_objext
11213 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11214 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11215 # Insert the option either (1) after the last *FLAGS variable, or
11216 # (2) before a word containing "conftest.", or (3) at the end.
11217 # Note that $ac_compile itself does not contain backslashes and begins
11218 # with a dollar sign (not a hyphen), so the echo should work correctly.
11219 # The option is referenced via a variable to avoid confusing sed.
11220 lt_compile=`echo "$ac_compile" | $SED \
11221 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11222 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11223 -e 's:$: $lt_compiler_flag:'`
11224 (eval echo "\"\$as_me:11224: $lt_compile\"" >&5)
11225 (eval "$lt_compile" 2>conftest.err)
11226 ac_status=$?
11227 cat conftest.err >&5
11228 echo "$as_me:11228: \$? = $ac_status" >&5
11229 if (exit $ac_status) && test -s "$ac_outfile"; then
11230 # The compiler can only warn and ignore the option if not recognized
11231 # So say no if there are warnings
11232 if test ! -s conftest.err; then
11233 lt_prog_compiler_pic_works_CXX=yes
11236 $rm conftest*
11239 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11240 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11242 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11243 case $lt_prog_compiler_pic_CXX in
11244 "" | " "*) ;;
11245 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11246 esac
11247 else
11248 lt_prog_compiler_pic_CXX=
11249 lt_prog_compiler_can_build_shared_CXX=no
11253 case "$host_os" in
11254 # For platforms which do not support PIC, -DPIC is meaningless:
11255 *djgpp*)
11256 lt_prog_compiler_pic_CXX=
11259 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11261 esac
11263 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11264 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11265 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11266 echo $ECHO_N "(cached) $ECHO_C" >&6
11267 else
11268 lt_cv_prog_compiler_c_o_CXX=no
11269 $rm -r conftest 2>/dev/null
11270 mkdir conftest
11271 cd conftest
11272 mkdir out
11273 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11275 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11276 # that will create temporary files in the current directory regardless of
11277 # the output directory. Thus, making CWD read-only will cause this test
11278 # to fail, enabling locking or at least warning the user not to do parallel
11279 # builds.
11280 chmod -w .
11282 lt_compiler_flag="-o out/conftest2.$ac_objext"
11283 # Insert the option either (1) after the last *FLAGS variable, or
11284 # (2) before a word containing "conftest.", or (3) at the end.
11285 # Note that $ac_compile itself does not contain backslashes and begins
11286 # with a dollar sign (not a hyphen), so the echo should work correctly.
11287 lt_compile=`echo "$ac_compile" | $SED \
11288 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11289 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11290 -e 's:$: $lt_compiler_flag:'`
11291 (eval echo "\"\$as_me:11291: $lt_compile\"" >&5)
11292 (eval "$lt_compile" 2>out/conftest.err)
11293 ac_status=$?
11294 cat out/conftest.err >&5
11295 echo "$as_me:11295: \$? = $ac_status" >&5
11296 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11297 then
11298 # The compiler can only warn and ignore the option if not recognized
11299 # So say no if there are warnings
11300 if test ! -s out/conftest.err; then
11301 lt_cv_prog_compiler_c_o_CXX=yes
11304 chmod u+w .
11305 $rm conftest* out/*
11306 rmdir out
11307 cd ..
11308 rmdir conftest
11309 $rm conftest*
11312 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11313 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11316 hard_links="nottested"
11317 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11318 # do not overwrite the value of need_locks provided by the user
11319 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11320 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11321 hard_links=yes
11322 $rm conftest*
11323 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11324 touch conftest.a
11325 ln conftest.a conftest.b 2>&5 || hard_links=no
11326 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11327 echo "$as_me:$LINENO: result: $hard_links" >&5
11328 echo "${ECHO_T}$hard_links" >&6
11329 if test "$hard_links" = no; then
11330 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11331 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11332 need_locks=warn
11334 else
11335 need_locks=no
11338 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11339 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11341 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11342 case $host_os in
11343 aix4* | aix5*)
11344 # If we're using GNU nm, then we don't want the "-C" option.
11345 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11346 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11347 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'
11348 else
11349 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'
11352 pw32*)
11353 export_symbols_cmds_CXX="$ltdll_cmds"
11355 cygwin* | mingw*)
11356 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11359 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11361 esac
11363 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11364 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11365 test "$ld_shlibs_CXX" = no && can_build_shared=no
11367 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11368 if test "$GCC" = yes; then
11369 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11373 # Do we need to explicitly link libc?
11375 case "x$archive_cmds_need_lc_CXX" in
11376 x|xyes)
11377 # Assume -lc should be added
11378 archive_cmds_need_lc_CXX=yes
11380 if test "$enable_shared" = yes && test "$GCC" = yes; then
11381 case $archive_cmds_CXX in
11382 *'~'*)
11383 # FIXME: we may have to deal with multi-command sequences.
11385 '$CC '*)
11386 # Test whether the compiler implicitly links with -lc since on some
11387 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11388 # to ld, don't add -lc before -lgcc.
11389 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11390 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11391 $rm conftest*
11392 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11395 (eval $ac_compile) 2>&5
11396 ac_status=$?
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); } 2>conftest.err; then
11399 soname=conftest
11400 lib=conftest
11401 libobjs=conftest.$ac_objext
11402 deplibs=
11403 wl=$lt_prog_compiler_wl_CXX
11404 compiler_flags=-v
11405 linker_flags=-v
11406 verstring=
11407 output_objdir=.
11408 libname=conftest
11409 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11410 allow_undefined_flag_CXX=
11411 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11412 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11413 ac_status=$?
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); }
11416 then
11417 archive_cmds_need_lc_CXX=no
11418 else
11419 archive_cmds_need_lc_CXX=yes
11421 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11422 else
11423 cat conftest.err 1>&5
11425 $rm conftest*
11426 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11427 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11429 esac
11432 esac
11434 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11435 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11436 hardcode_action_CXX=
11437 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11438 test -n "$runpath_var CXX" || \
11439 test "X$hardcode_automatic_CXX"="Xyes" ; then
11441 # We can hardcode non-existant directories.
11442 if test "$hardcode_direct_CXX" != no &&
11443 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11444 # have to relink, otherwise we might link with an installed library
11445 # when we should be linking with a yet-to-be-installed one
11446 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11447 test "$hardcode_minus_L_CXX" != no; then
11448 # Linking always hardcodes the temporary library directory.
11449 hardcode_action_CXX=relink
11450 else
11451 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11452 hardcode_action_CXX=immediate
11454 else
11455 # We cannot hardcode anything, or else we can only hardcode existing
11456 # directories.
11457 hardcode_action_CXX=unsupported
11459 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11460 echo "${ECHO_T}$hardcode_action_CXX" >&6
11462 if test "$hardcode_action_CXX" = relink; then
11463 # Fast installation is not supported
11464 enable_fast_install=no
11465 elif test "$shlibpath_overrides_runpath" = yes ||
11466 test "$enable_shared" = no; then
11467 # Fast installation is not necessary
11468 enable_fast_install=needless
11471 striplib=
11472 old_striplib=
11473 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11474 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11475 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11476 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11477 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11478 echo "$as_me:$LINENO: result: yes" >&5
11479 echo "${ECHO_T}yes" >&6
11480 else
11481 # FIXME - insert some real tests, host_os isn't really good enough
11482 case $host_os in
11483 darwin*)
11484 if test -n "$STRIP" ; then
11485 striplib="$STRIP -x"
11486 echo "$as_me:$LINENO: result: yes" >&5
11487 echo "${ECHO_T}yes" >&6
11488 else
11489 echo "$as_me:$LINENO: result: no" >&5
11490 echo "${ECHO_T}no" >&6
11494 echo "$as_me:$LINENO: result: no" >&5
11495 echo "${ECHO_T}no" >&6
11497 esac
11500 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11501 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11502 library_names_spec=
11503 libname_spec='lib$name'
11504 soname_spec=
11505 shrext=".so"
11506 postinstall_cmds=
11507 postuninstall_cmds=
11508 finish_cmds=
11509 finish_eval=
11510 shlibpath_var=
11511 shlibpath_overrides_runpath=unknown
11512 version_type=none
11513 dynamic_linker="$host_os ld.so"
11514 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11515 if test "$GCC" = yes; then
11516 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11517 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11518 # if the path contains ";" then we assume it to be the separator
11519 # otherwise default to the standard path separator (i.e. ":") - it is
11520 # assumed that no part of a normal pathname contains ";" but that should
11521 # okay in the real world where ";" in dirpaths is itself problematic.
11522 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11523 else
11524 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11526 else
11527 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11529 need_lib_prefix=unknown
11530 hardcode_into_libs=no
11532 # when you set need_version to no, make sure it does not cause -set_version
11533 # flags to be left without arguments
11534 need_version=unknown
11536 case $host_os in
11537 aix3*)
11538 version_type=linux
11539 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11540 shlibpath_var=LIBPATH
11542 # AIX 3 has no versioning support, so we append a major version to the name.
11543 soname_spec='${libname}${release}${shared_ext}$major'
11546 aix4* | aix5*)
11547 version_type=linux
11548 need_lib_prefix=no
11549 need_version=no
11550 hardcode_into_libs=yes
11551 if test "$host_cpu" = ia64; then
11552 # AIX 5 supports IA64
11553 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11554 shlibpath_var=LD_LIBRARY_PATH
11555 else
11556 # With GCC up to 2.95.x, collect2 would create an import file
11557 # for dependence libraries. The import file would start with
11558 # the line `#! .'. This would cause the generated library to
11559 # depend on `.', always an invalid library. This was fixed in
11560 # development snapshots of GCC prior to 3.0.
11561 case $host_os in
11562 aix4 | aix4.[01] | aix4.[01].*)
11563 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11564 echo ' yes '
11565 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11567 else
11568 can_build_shared=no
11571 esac
11572 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11573 # soname into executable. Probably we can add versioning support to
11574 # collect2, so additional links can be useful in future.
11575 if test "$aix_use_runtimelinking" = yes; then
11576 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11577 # instead of lib<name>.a to let people know that these are not
11578 # typical AIX shared libraries.
11579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11580 else
11581 # We preserve .a as extension for shared libraries through AIX4.2
11582 # and later when we are not doing run time linking.
11583 library_names_spec='${libname}${release}.a $libname.a'
11584 soname_spec='${libname}${release}${shared_ext}$major'
11586 shlibpath_var=LIBPATH
11590 amigaos*)
11591 library_names_spec='$libname.ixlibrary $libname.a'
11592 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11593 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'
11596 beos*)
11597 library_names_spec='${libname}${shared_ext}'
11598 dynamic_linker="$host_os ld.so"
11599 shlibpath_var=LIBRARY_PATH
11602 bsdi4*)
11603 version_type=linux
11604 need_version=no
11605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11606 soname_spec='${libname}${release}${shared_ext}$major'
11607 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11608 shlibpath_var=LD_LIBRARY_PATH
11609 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11610 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11611 # the default ld.so.conf also contains /usr/contrib/lib and
11612 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11613 # libtool to hard-code these into programs
11616 cygwin* | mingw* | pw32*)
11617 version_type=windows
11618 shrext=".dll"
11619 need_version=no
11620 need_lib_prefix=no
11622 case $GCC,$host_os in
11623 yes,cygwin* | yes,mingw* | yes,pw32*)
11624 library_names_spec='$libname.dll.a'
11625 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11626 postinstall_cmds='base_file=`basename \${file}`~
11627 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11628 dldir=$destdir/`dirname \$dlpath`~
11629 test -d \$dldir || mkdir -p \$dldir~
11630 $install_prog $dir/$dlname \$dldir/$dlname'
11631 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11632 dlpath=$dir/\$dldll~
11633 $rm \$dlpath'
11634 shlibpath_overrides_runpath=yes
11636 case $host_os in
11637 cygwin*)
11638 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11639 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11640 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11642 mingw*)
11643 # MinGW DLLs use traditional 'lib' prefix
11644 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11645 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11646 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11647 # It is most probably a Windows format PATH printed by
11648 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11649 # path with ; separators, and with drive letters. We can handle the
11650 # drive letters (cygwin fileutils understands them), so leave them,
11651 # especially as we might pass files found there to a mingw objdump,
11652 # which wouldn't understand a cygwinified path. Ahh.
11653 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11654 else
11655 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11658 pw32*)
11659 # pw32 DLLs use 'pw' prefix rather than 'lib'
11660 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11662 esac
11666 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11668 esac
11669 dynamic_linker='Win32 ld.exe'
11670 # FIXME: first we should search . and the directory the executable is in
11671 shlibpath_var=PATH
11674 darwin* | rhapsody*)
11675 dynamic_linker="$host_os dyld"
11676 version_type=darwin
11677 need_lib_prefix=no
11678 need_version=no
11679 # FIXME: Relying on posixy $() will cause problems for
11680 # cross-compilation, but unfortunately the echo tests do not
11681 # yet detect zsh echo's removal of \ escapes.
11682 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11683 soname_spec='${libname}${release}${major}$shared_ext'
11684 shlibpath_overrides_runpath=yes
11685 shlibpath_var=DYLD_LIBRARY_PATH
11686 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11687 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11688 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11689 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"`
11691 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11694 dgux*)
11695 version_type=linux
11696 need_lib_prefix=no
11697 need_version=no
11698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11699 soname_spec='${libname}${release}${shared_ext}$major'
11700 shlibpath_var=LD_LIBRARY_PATH
11703 freebsd1*)
11704 dynamic_linker=no
11707 freebsd*)
11708 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11709 version_type=freebsd-$objformat
11710 case $version_type in
11711 freebsd-elf*)
11712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11713 need_version=no
11714 need_lib_prefix=no
11716 freebsd-*)
11717 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11718 need_version=yes
11720 esac
11721 shlibpath_var=LD_LIBRARY_PATH
11722 case $host_os in
11723 freebsd2*)
11724 shlibpath_overrides_runpath=yes
11726 freebsd3.01* | freebsdelf3.01*)
11727 shlibpath_overrides_runpath=yes
11728 hardcode_into_libs=yes
11730 *) # from 3.2 on
11731 shlibpath_overrides_runpath=no
11732 hardcode_into_libs=yes
11734 esac
11737 gnu*)
11738 version_type=linux
11739 need_lib_prefix=no
11740 need_version=no
11741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11742 soname_spec='${libname}${release}${shared_ext}$major'
11743 shlibpath_var=LD_LIBRARY_PATH
11744 hardcode_into_libs=yes
11747 hpux9* | hpux10* | hpux11*)
11748 # Give a soname corresponding to the major version so that dld.sl refuses to
11749 # link against other versions.
11750 version_type=sunos
11751 need_lib_prefix=no
11752 need_version=no
11753 case "$host_cpu" in
11754 ia64*)
11755 shrext='.so'
11756 hardcode_into_libs=yes
11757 dynamic_linker="$host_os dld.so"
11758 shlibpath_var=LD_LIBRARY_PATH
11759 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11761 soname_spec='${libname}${release}${shared_ext}$major'
11762 if test "X$HPUX_IA64_MODE" = X32; then
11763 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11764 else
11765 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11767 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11769 hppa*64*)
11770 shrext='.sl'
11771 hardcode_into_libs=yes
11772 dynamic_linker="$host_os dld.sl"
11773 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11774 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11776 soname_spec='${libname}${release}${shared_ext}$major'
11777 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11778 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11781 shrext='.sl'
11782 dynamic_linker="$host_os dld.sl"
11783 shlibpath_var=SHLIB_PATH
11784 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11786 soname_spec='${libname}${release}${shared_ext}$major'
11788 esac
11789 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11790 postinstall_cmds='chmod 555 $lib'
11793 irix5* | irix6* | nonstopux*)
11794 case $host_os in
11795 nonstopux*) version_type=nonstopux ;;
11797 if test "$lt_cv_prog_gnu_ld" = yes; then
11798 version_type=linux
11799 else
11800 version_type=irix
11801 fi ;;
11802 esac
11803 need_lib_prefix=no
11804 need_version=no
11805 soname_spec='${libname}${release}${shared_ext}$major'
11806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11807 case $host_os in
11808 irix5* | nonstopux*)
11809 libsuff= shlibsuff=
11812 case $LD in # libtool.m4 will add one of these switches to LD
11813 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11814 libsuff= shlibsuff= libmagic=32-bit;;
11815 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11816 libsuff=32 shlibsuff=N32 libmagic=N32;;
11817 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11818 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11819 *) libsuff= shlibsuff= libmagic=never-match;;
11820 esac
11822 esac
11823 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11824 shlibpath_overrides_runpath=no
11825 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11826 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11827 hardcode_into_libs=yes
11830 # No shared lib support for Linux oldld, aout, or coff.
11831 linux*oldld* | linux*aout* | linux*coff*)
11832 dynamic_linker=no
11835 # This must be Linux ELF.
11836 linux*)
11837 version_type=linux
11838 need_lib_prefix=no
11839 need_version=no
11840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11841 soname_spec='${libname}${release}${shared_ext}$major'
11842 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11843 shlibpath_var=LD_LIBRARY_PATH
11844 shlibpath_overrides_runpath=no
11845 # This implies no fast_install, which is unacceptable.
11846 # Some rework will be needed to allow for fast_install
11847 # before this can be enabled.
11848 hardcode_into_libs=yes
11850 # We used to test for /lib/ld.so.1 and disable shared libraries on
11851 # powerpc, because MkLinux only supported shared libraries with the
11852 # GNU dynamic linker. Since this was broken with cross compilers,
11853 # most powerpc-linux boxes support dynamic linking these days and
11854 # people can always --disable-shared, the test was removed, and we
11855 # assume the GNU/Linux dynamic linker is in use.
11856 dynamic_linker='GNU/Linux ld.so'
11859 netbsd*)
11860 version_type=sunos
11861 need_lib_prefix=no
11862 need_version=no
11863 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11865 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11866 dynamic_linker='NetBSD (a.out) ld.so'
11867 else
11868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11869 soname_spec='${libname}${release}${shared_ext}$major'
11870 dynamic_linker='NetBSD ld.elf_so'
11872 shlibpath_var=LD_LIBRARY_PATH
11873 shlibpath_overrides_runpath=yes
11874 hardcode_into_libs=yes
11877 newsos6)
11878 version_type=linux
11879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11880 shlibpath_var=LD_LIBRARY_PATH
11881 shlibpath_overrides_runpath=yes
11884 nto-qnx)
11885 version_type=linux
11886 need_lib_prefix=no
11887 need_version=no
11888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11889 soname_spec='${libname}${release}${shared_ext}$major'
11890 shlibpath_var=LD_LIBRARY_PATH
11891 shlibpath_overrides_runpath=yes
11894 openbsd*)
11895 version_type=sunos
11896 need_lib_prefix=no
11897 need_version=no
11898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11899 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11900 shlibpath_var=LD_LIBRARY_PATH
11901 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11902 case $host_os in
11903 openbsd2.[89] | openbsd2.[89].*)
11904 shlibpath_overrides_runpath=no
11907 shlibpath_overrides_runpath=yes
11909 esac
11910 else
11911 shlibpath_overrides_runpath=yes
11915 os2*)
11916 libname_spec='$name'
11917 shrext=".dll"
11918 need_lib_prefix=no
11919 library_names_spec='$libname${shared_ext} $libname.a'
11920 dynamic_linker='OS/2 ld.exe'
11921 shlibpath_var=LIBPATH
11924 osf3* | osf4* | osf5*)
11925 version_type=osf
11926 need_lib_prefix=no
11927 need_version=no
11928 soname_spec='${libname}${release}${shared_ext}$major'
11929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11930 shlibpath_var=LD_LIBRARY_PATH
11931 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11932 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11935 sco3.2v5*)
11936 version_type=osf
11937 soname_spec='${libname}${release}${shared_ext}$major'
11938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11939 shlibpath_var=LD_LIBRARY_PATH
11942 solaris*)
11943 version_type=linux
11944 need_lib_prefix=no
11945 need_version=no
11946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11947 soname_spec='${libname}${release}${shared_ext}$major'
11948 shlibpath_var=LD_LIBRARY_PATH
11949 shlibpath_overrides_runpath=yes
11950 hardcode_into_libs=yes
11951 # ldd complains unless libraries are executable
11952 postinstall_cmds='chmod +x $lib'
11955 sunos4*)
11956 version_type=sunos
11957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11958 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11959 shlibpath_var=LD_LIBRARY_PATH
11960 shlibpath_overrides_runpath=yes
11961 if test "$with_gnu_ld" = yes; then
11962 need_lib_prefix=no
11964 need_version=yes
11967 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11968 version_type=linux
11969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11970 soname_spec='${libname}${release}${shared_ext}$major'
11971 shlibpath_var=LD_LIBRARY_PATH
11972 case $host_vendor in
11973 sni)
11974 shlibpath_overrides_runpath=no
11975 need_lib_prefix=no
11976 export_dynamic_flag_spec='${wl}-Blargedynsym'
11977 runpath_var=LD_RUN_PATH
11979 siemens)
11980 need_lib_prefix=no
11982 motorola)
11983 need_lib_prefix=no
11984 need_version=no
11985 shlibpath_overrides_runpath=no
11986 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11988 esac
11991 sysv4*MP*)
11992 if test -d /usr/nec ;then
11993 version_type=linux
11994 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11995 soname_spec='$libname${shared_ext}.$major'
11996 shlibpath_var=LD_LIBRARY_PATH
12000 uts4*)
12001 version_type=linux
12002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12003 soname_spec='${libname}${release}${shared_ext}$major'
12004 shlibpath_var=LD_LIBRARY_PATH
12008 dynamic_linker=no
12010 esac
12011 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12012 echo "${ECHO_T}$dynamic_linker" >&6
12013 test "$dynamic_linker" = no && can_build_shared=no
12015 if test "x$enable_dlopen" != xyes; then
12016 enable_dlopen=unknown
12017 enable_dlopen_self=unknown
12018 enable_dlopen_self_static=unknown
12019 else
12020 lt_cv_dlopen=no
12021 lt_cv_dlopen_libs=
12023 case $host_os in
12024 beos*)
12025 lt_cv_dlopen="load_add_on"
12026 lt_cv_dlopen_libs=
12027 lt_cv_dlopen_self=yes
12030 mingw* | pw32*)
12031 lt_cv_dlopen="LoadLibrary"
12032 lt_cv_dlopen_libs=
12035 cygwin*)
12036 lt_cv_dlopen="dlopen"
12037 lt_cv_dlopen_libs=
12040 darwin*)
12041 # if libdl is installed we need to link against it
12042 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12043 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12044 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12045 echo $ECHO_N "(cached) $ECHO_C" >&6
12046 else
12047 ac_check_lib_save_LIBS=$LIBS
12048 LIBS="-ldl $LIBS"
12049 cat >conftest.$ac_ext <<_ACEOF
12050 /* confdefs.h. */
12051 _ACEOF
12052 cat confdefs.h >>conftest.$ac_ext
12053 cat >>conftest.$ac_ext <<_ACEOF
12054 /* end confdefs.h. */
12056 /* Override any gcc2 internal prototype to avoid an error. */
12057 #ifdef __cplusplus
12058 extern "C"
12059 #endif
12060 /* We use char because int might match the return type of a gcc2
12061 builtin and then its argument prototype would still apply. */
12062 char dlopen ();
12064 main ()
12066 dlopen ();
12068 return 0;
12070 _ACEOF
12071 rm -f conftest.$ac_objext conftest$ac_exeext
12072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12073 (eval $ac_link) 2>conftest.er1
12074 ac_status=$?
12075 grep -v '^ *+' conftest.er1 >conftest.err
12076 rm -f conftest.er1
12077 cat conftest.err >&5
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); } &&
12080 { ac_try='test -z "$ac_cxx_werror_flag"
12081 || test ! -s conftest.err'
12082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12083 (eval $ac_try) 2>&5
12084 ac_status=$?
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); }; } &&
12087 { ac_try='test -s conftest$ac_exeext'
12088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12089 (eval $ac_try) 2>&5
12090 ac_status=$?
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); }; }; then
12093 ac_cv_lib_dl_dlopen=yes
12094 else
12095 echo "$as_me: failed program was:" >&5
12096 sed 's/^/| /' conftest.$ac_ext >&5
12098 ac_cv_lib_dl_dlopen=no
12100 rm -f conftest.err conftest.$ac_objext \
12101 conftest$ac_exeext conftest.$ac_ext
12102 LIBS=$ac_check_lib_save_LIBS
12104 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12105 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12106 if test $ac_cv_lib_dl_dlopen = yes; then
12107 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12108 else
12110 lt_cv_dlopen="dyld"
12111 lt_cv_dlopen_libs=
12112 lt_cv_dlopen_self=yes
12119 echo "$as_me:$LINENO: checking for shl_load" >&5
12120 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12121 if test "${ac_cv_func_shl_load+set}" = set; then
12122 echo $ECHO_N "(cached) $ECHO_C" >&6
12123 else
12124 cat >conftest.$ac_ext <<_ACEOF
12125 /* confdefs.h. */
12126 _ACEOF
12127 cat confdefs.h >>conftest.$ac_ext
12128 cat >>conftest.$ac_ext <<_ACEOF
12129 /* end confdefs.h. */
12130 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12132 #define shl_load innocuous_shl_load
12134 /* System header to define __stub macros and hopefully few prototypes,
12135 which can conflict with char shl_load (); below.
12136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12137 <limits.h> exists even on freestanding compilers. */
12139 #ifdef __STDC__
12140 # include <limits.h>
12141 #else
12142 # include <assert.h>
12143 #endif
12145 #undef shl_load
12147 /* Override any gcc2 internal prototype to avoid an error. */
12148 #ifdef __cplusplus
12149 extern "C"
12151 #endif
12152 /* We use char because int might match the return type of a gcc2
12153 builtin and then its argument prototype would still apply. */
12154 char shl_load ();
12155 /* The GNU C library defines this for functions which it implements
12156 to always fail with ENOSYS. Some functions are actually named
12157 something starting with __ and the normal name is an alias. */
12158 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12159 choke me
12160 #else
12161 char (*f) () = shl_load;
12162 #endif
12163 #ifdef __cplusplus
12165 #endif
12168 main ()
12170 return f != shl_load;
12172 return 0;
12174 _ACEOF
12175 rm -f conftest.$ac_objext conftest$ac_exeext
12176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12177 (eval $ac_link) 2>conftest.er1
12178 ac_status=$?
12179 grep -v '^ *+' conftest.er1 >conftest.err
12180 rm -f conftest.er1
12181 cat conftest.err >&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); } &&
12184 { ac_try='test -z "$ac_cxx_werror_flag"
12185 || test ! -s conftest.err'
12186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12187 (eval $ac_try) 2>&5
12188 ac_status=$?
12189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190 (exit $ac_status); }; } &&
12191 { ac_try='test -s conftest$ac_exeext'
12192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12193 (eval $ac_try) 2>&5
12194 ac_status=$?
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); }; }; then
12197 ac_cv_func_shl_load=yes
12198 else
12199 echo "$as_me: failed program was:" >&5
12200 sed 's/^/| /' conftest.$ac_ext >&5
12202 ac_cv_func_shl_load=no
12204 rm -f conftest.err conftest.$ac_objext \
12205 conftest$ac_exeext conftest.$ac_ext
12207 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12208 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12209 if test $ac_cv_func_shl_load = yes; then
12210 lt_cv_dlopen="shl_load"
12211 else
12212 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12213 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12214 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12215 echo $ECHO_N "(cached) $ECHO_C" >&6
12216 else
12217 ac_check_lib_save_LIBS=$LIBS
12218 LIBS="-ldld $LIBS"
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. */
12226 /* Override any gcc2 internal prototype to avoid an error. */
12227 #ifdef __cplusplus
12228 extern "C"
12229 #endif
12230 /* We use char because int might match the return type of a gcc2
12231 builtin and then its argument prototype would still apply. */
12232 char shl_load ();
12234 main ()
12236 shl_load ();
12238 return 0;
12240 _ACEOF
12241 rm -f conftest.$ac_objext conftest$ac_exeext
12242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12243 (eval $ac_link) 2>conftest.er1
12244 ac_status=$?
12245 grep -v '^ *+' conftest.er1 >conftest.err
12246 rm -f conftest.er1
12247 cat conftest.err >&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); } &&
12250 { ac_try='test -z "$ac_cxx_werror_flag"
12251 || test ! -s conftest.err'
12252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12253 (eval $ac_try) 2>&5
12254 ac_status=$?
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); }; } &&
12257 { ac_try='test -s conftest$ac_exeext'
12258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12259 (eval $ac_try) 2>&5
12260 ac_status=$?
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); }; }; then
12263 ac_cv_lib_dld_shl_load=yes
12264 else
12265 echo "$as_me: failed program was:" >&5
12266 sed 's/^/| /' conftest.$ac_ext >&5
12268 ac_cv_lib_dld_shl_load=no
12270 rm -f conftest.err conftest.$ac_objext \
12271 conftest$ac_exeext conftest.$ac_ext
12272 LIBS=$ac_check_lib_save_LIBS
12274 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12275 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12276 if test $ac_cv_lib_dld_shl_load = yes; then
12277 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12278 else
12279 echo "$as_me:$LINENO: checking for dlopen" >&5
12280 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12281 if test "${ac_cv_func_dlopen+set}" = set; then
12282 echo $ECHO_N "(cached) $ECHO_C" >&6
12283 else
12284 cat >conftest.$ac_ext <<_ACEOF
12285 /* confdefs.h. */
12286 _ACEOF
12287 cat confdefs.h >>conftest.$ac_ext
12288 cat >>conftest.$ac_ext <<_ACEOF
12289 /* end confdefs.h. */
12290 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12292 #define dlopen innocuous_dlopen
12294 /* System header to define __stub macros and hopefully few prototypes,
12295 which can conflict with char dlopen (); below.
12296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12297 <limits.h> exists even on freestanding compilers. */
12299 #ifdef __STDC__
12300 # include <limits.h>
12301 #else
12302 # include <assert.h>
12303 #endif
12305 #undef dlopen
12307 /* Override any gcc2 internal prototype to avoid an error. */
12308 #ifdef __cplusplus
12309 extern "C"
12311 #endif
12312 /* We use char because int might match the return type of a gcc2
12313 builtin and then its argument prototype would still apply. */
12314 char dlopen ();
12315 /* The GNU C library defines this for functions which it implements
12316 to always fail with ENOSYS. Some functions are actually named
12317 something starting with __ and the normal name is an alias. */
12318 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12319 choke me
12320 #else
12321 char (*f) () = dlopen;
12322 #endif
12323 #ifdef __cplusplus
12325 #endif
12328 main ()
12330 return f != dlopen;
12332 return 0;
12334 _ACEOF
12335 rm -f conftest.$ac_objext conftest$ac_exeext
12336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12337 (eval $ac_link) 2>conftest.er1
12338 ac_status=$?
12339 grep -v '^ *+' conftest.er1 >conftest.err
12340 rm -f conftest.er1
12341 cat conftest.err >&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); } &&
12344 { ac_try='test -z "$ac_cxx_werror_flag"
12345 || test ! -s conftest.err'
12346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12347 (eval $ac_try) 2>&5
12348 ac_status=$?
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); }; } &&
12351 { ac_try='test -s conftest$ac_exeext'
12352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12353 (eval $ac_try) 2>&5
12354 ac_status=$?
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); }; }; then
12357 ac_cv_func_dlopen=yes
12358 else
12359 echo "$as_me: failed program was:" >&5
12360 sed 's/^/| /' conftest.$ac_ext >&5
12362 ac_cv_func_dlopen=no
12364 rm -f conftest.err conftest.$ac_objext \
12365 conftest$ac_exeext conftest.$ac_ext
12367 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12368 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12369 if test $ac_cv_func_dlopen = yes; then
12370 lt_cv_dlopen="dlopen"
12371 else
12372 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12373 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12374 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12375 echo $ECHO_N "(cached) $ECHO_C" >&6
12376 else
12377 ac_check_lib_save_LIBS=$LIBS
12378 LIBS="-ldl $LIBS"
12379 cat >conftest.$ac_ext <<_ACEOF
12380 /* confdefs.h. */
12381 _ACEOF
12382 cat confdefs.h >>conftest.$ac_ext
12383 cat >>conftest.$ac_ext <<_ACEOF
12384 /* end confdefs.h. */
12386 /* Override any gcc2 internal prototype to avoid an error. */
12387 #ifdef __cplusplus
12388 extern "C"
12389 #endif
12390 /* We use char because int might match the return type of a gcc2
12391 builtin and then its argument prototype would still apply. */
12392 char dlopen ();
12394 main ()
12396 dlopen ();
12398 return 0;
12400 _ACEOF
12401 rm -f conftest.$ac_objext conftest$ac_exeext
12402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12403 (eval $ac_link) 2>conftest.er1
12404 ac_status=$?
12405 grep -v '^ *+' conftest.er1 >conftest.err
12406 rm -f conftest.er1
12407 cat conftest.err >&5
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); } &&
12410 { ac_try='test -z "$ac_cxx_werror_flag"
12411 || test ! -s conftest.err'
12412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12413 (eval $ac_try) 2>&5
12414 ac_status=$?
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); }; } &&
12417 { ac_try='test -s conftest$ac_exeext'
12418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12419 (eval $ac_try) 2>&5
12420 ac_status=$?
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); }; }; then
12423 ac_cv_lib_dl_dlopen=yes
12424 else
12425 echo "$as_me: failed program was:" >&5
12426 sed 's/^/| /' conftest.$ac_ext >&5
12428 ac_cv_lib_dl_dlopen=no
12430 rm -f conftest.err conftest.$ac_objext \
12431 conftest$ac_exeext conftest.$ac_ext
12432 LIBS=$ac_check_lib_save_LIBS
12434 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12435 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12436 if test $ac_cv_lib_dl_dlopen = yes; then
12437 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12438 else
12439 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12440 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12441 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12442 echo $ECHO_N "(cached) $ECHO_C" >&6
12443 else
12444 ac_check_lib_save_LIBS=$LIBS
12445 LIBS="-lsvld $LIBS"
12446 cat >conftest.$ac_ext <<_ACEOF
12447 /* confdefs.h. */
12448 _ACEOF
12449 cat confdefs.h >>conftest.$ac_ext
12450 cat >>conftest.$ac_ext <<_ACEOF
12451 /* end confdefs.h. */
12453 /* Override any gcc2 internal prototype to avoid an error. */
12454 #ifdef __cplusplus
12455 extern "C"
12456 #endif
12457 /* We use char because int might match the return type of a gcc2
12458 builtin and then its argument prototype would still apply. */
12459 char dlopen ();
12461 main ()
12463 dlopen ();
12465 return 0;
12467 _ACEOF
12468 rm -f conftest.$ac_objext conftest$ac_exeext
12469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12470 (eval $ac_link) 2>conftest.er1
12471 ac_status=$?
12472 grep -v '^ *+' conftest.er1 >conftest.err
12473 rm -f conftest.er1
12474 cat conftest.err >&5
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); } &&
12477 { ac_try='test -z "$ac_cxx_werror_flag"
12478 || test ! -s conftest.err'
12479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12480 (eval $ac_try) 2>&5
12481 ac_status=$?
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); }; } &&
12484 { ac_try='test -s conftest$ac_exeext'
12485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12486 (eval $ac_try) 2>&5
12487 ac_status=$?
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); }; }; then
12490 ac_cv_lib_svld_dlopen=yes
12491 else
12492 echo "$as_me: failed program was:" >&5
12493 sed 's/^/| /' conftest.$ac_ext >&5
12495 ac_cv_lib_svld_dlopen=no
12497 rm -f conftest.err conftest.$ac_objext \
12498 conftest$ac_exeext conftest.$ac_ext
12499 LIBS=$ac_check_lib_save_LIBS
12501 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12502 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12503 if test $ac_cv_lib_svld_dlopen = yes; then
12504 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12505 else
12506 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12507 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12508 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12509 echo $ECHO_N "(cached) $ECHO_C" >&6
12510 else
12511 ac_check_lib_save_LIBS=$LIBS
12512 LIBS="-ldld $LIBS"
12513 cat >conftest.$ac_ext <<_ACEOF
12514 /* confdefs.h. */
12515 _ACEOF
12516 cat confdefs.h >>conftest.$ac_ext
12517 cat >>conftest.$ac_ext <<_ACEOF
12518 /* end confdefs.h. */
12520 /* Override any gcc2 internal prototype to avoid an error. */
12521 #ifdef __cplusplus
12522 extern "C"
12523 #endif
12524 /* We use char because int might match the return type of a gcc2
12525 builtin and then its argument prototype would still apply. */
12526 char dld_link ();
12528 main ()
12530 dld_link ();
12532 return 0;
12534 _ACEOF
12535 rm -f conftest.$ac_objext conftest$ac_exeext
12536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12537 (eval $ac_link) 2>conftest.er1
12538 ac_status=$?
12539 grep -v '^ *+' conftest.er1 >conftest.err
12540 rm -f conftest.er1
12541 cat conftest.err >&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } &&
12544 { ac_try='test -z "$ac_cxx_werror_flag"
12545 || test ! -s conftest.err'
12546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12547 (eval $ac_try) 2>&5
12548 ac_status=$?
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; } &&
12551 { ac_try='test -s conftest$ac_exeext'
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12554 ac_status=$?
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; }; then
12557 ac_cv_lib_dld_dld_link=yes
12558 else
12559 echo "$as_me: failed program was:" >&5
12560 sed 's/^/| /' conftest.$ac_ext >&5
12562 ac_cv_lib_dld_dld_link=no
12564 rm -f conftest.err conftest.$ac_objext \
12565 conftest$ac_exeext conftest.$ac_ext
12566 LIBS=$ac_check_lib_save_LIBS
12568 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12569 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12570 if test $ac_cv_lib_dld_dld_link = yes; then
12571 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12590 esac
12592 if test "x$lt_cv_dlopen" != xno; then
12593 enable_dlopen=yes
12594 else
12595 enable_dlopen=no
12598 case $lt_cv_dlopen in
12599 dlopen)
12600 save_CPPFLAGS="$CPPFLAGS"
12601 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12603 save_LDFLAGS="$LDFLAGS"
12604 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12606 save_LIBS="$LIBS"
12607 LIBS="$lt_cv_dlopen_libs $LIBS"
12609 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12610 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12611 if test "${lt_cv_dlopen_self+set}" = set; then
12612 echo $ECHO_N "(cached) $ECHO_C" >&6
12613 else
12614 if test "$cross_compiling" = yes; then :
12615 lt_cv_dlopen_self=cross
12616 else
12617 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12618 lt_status=$lt_dlunknown
12619 cat > conftest.$ac_ext <<EOF
12620 #line 12620 "configure"
12621 #include "confdefs.h"
12623 #if HAVE_DLFCN_H
12624 #include <dlfcn.h>
12625 #endif
12627 #include <stdio.h>
12629 #ifdef RTLD_GLOBAL
12630 # define LT_DLGLOBAL RTLD_GLOBAL
12631 #else
12632 # ifdef DL_GLOBAL
12633 # define LT_DLGLOBAL DL_GLOBAL
12634 # else
12635 # define LT_DLGLOBAL 0
12636 # endif
12637 #endif
12639 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12640 find out it does not work in some platform. */
12641 #ifndef LT_DLLAZY_OR_NOW
12642 # ifdef RTLD_LAZY
12643 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12644 # else
12645 # ifdef DL_LAZY
12646 # define LT_DLLAZY_OR_NOW DL_LAZY
12647 # else
12648 # ifdef RTLD_NOW
12649 # define LT_DLLAZY_OR_NOW RTLD_NOW
12650 # else
12651 # ifdef DL_NOW
12652 # define LT_DLLAZY_OR_NOW DL_NOW
12653 # else
12654 # define LT_DLLAZY_OR_NOW 0
12655 # endif
12656 # endif
12657 # endif
12658 # endif
12659 #endif
12661 #ifdef __cplusplus
12662 extern "C" void exit (int);
12663 #endif
12665 void fnord() { int i=42;}
12666 int main ()
12668 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12669 int status = $lt_dlunknown;
12671 if (self)
12673 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12674 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12675 /* dlclose (self); */
12678 exit (status);
12681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12682 (eval $ac_link) 2>&5
12683 ac_status=$?
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12686 (./conftest; exit; ) 2>/dev/null
12687 lt_status=$?
12688 case x$lt_status in
12689 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12690 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12691 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12692 esac
12693 else :
12694 # compilation failed
12695 lt_cv_dlopen_self=no
12698 rm -fr conftest*
12702 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12703 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12705 if test "x$lt_cv_dlopen_self" = xyes; then
12706 LDFLAGS="$LDFLAGS $link_static_flag"
12707 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12708 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12709 if test "${lt_cv_dlopen_self_static+set}" = set; then
12710 echo $ECHO_N "(cached) $ECHO_C" >&6
12711 else
12712 if test "$cross_compiling" = yes; then :
12713 lt_cv_dlopen_self_static=cross
12714 else
12715 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12716 lt_status=$lt_dlunknown
12717 cat > conftest.$ac_ext <<EOF
12718 #line 12718 "configure"
12719 #include "confdefs.h"
12721 #if HAVE_DLFCN_H
12722 #include <dlfcn.h>
12723 #endif
12725 #include <stdio.h>
12727 #ifdef RTLD_GLOBAL
12728 # define LT_DLGLOBAL RTLD_GLOBAL
12729 #else
12730 # ifdef DL_GLOBAL
12731 # define LT_DLGLOBAL DL_GLOBAL
12732 # else
12733 # define LT_DLGLOBAL 0
12734 # endif
12735 #endif
12737 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12738 find out it does not work in some platform. */
12739 #ifndef LT_DLLAZY_OR_NOW
12740 # ifdef RTLD_LAZY
12741 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12742 # else
12743 # ifdef DL_LAZY
12744 # define LT_DLLAZY_OR_NOW DL_LAZY
12745 # else
12746 # ifdef RTLD_NOW
12747 # define LT_DLLAZY_OR_NOW RTLD_NOW
12748 # else
12749 # ifdef DL_NOW
12750 # define LT_DLLAZY_OR_NOW DL_NOW
12751 # else
12752 # define LT_DLLAZY_OR_NOW 0
12753 # endif
12754 # endif
12755 # endif
12756 # endif
12757 #endif
12759 #ifdef __cplusplus
12760 extern "C" void exit (int);
12761 #endif
12763 void fnord() { int i=42;}
12764 int main ()
12766 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12767 int status = $lt_dlunknown;
12769 if (self)
12771 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12772 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12773 /* dlclose (self); */
12776 exit (status);
12779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12780 (eval $ac_link) 2>&5
12781 ac_status=$?
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12784 (./conftest; exit; ) 2>/dev/null
12785 lt_status=$?
12786 case x$lt_status in
12787 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12788 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12789 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12790 esac
12791 else :
12792 # compilation failed
12793 lt_cv_dlopen_self_static=no
12796 rm -fr conftest*
12800 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12801 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12804 CPPFLAGS="$save_CPPFLAGS"
12805 LDFLAGS="$save_LDFLAGS"
12806 LIBS="$save_LIBS"
12808 esac
12810 case $lt_cv_dlopen_self in
12811 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12812 *) enable_dlopen_self=unknown ;;
12813 esac
12815 case $lt_cv_dlopen_self_static in
12816 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12817 *) enable_dlopen_self_static=unknown ;;
12818 esac
12822 # The else clause should only fire when bootstrapping the
12823 # libtool distribution, otherwise you forgot to ship ltmain.sh
12824 # with your package, and you will get complaints that there are
12825 # no rules to generate ltmain.sh.
12826 if test -f "$ltmain"; then
12827 # See if we are running on zsh, and set the options which allow our commands through
12828 # without removal of \ escapes.
12829 if test -n "${ZSH_VERSION+set}" ; then
12830 setopt NO_GLOB_SUBST
12832 # Now quote all the things that may contain metacharacters while being
12833 # careful not to overquote the AC_SUBSTed values. We take copies of the
12834 # variables and quote the copies for generation of the libtool script.
12835 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12836 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12837 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12838 deplibs_check_method reload_flag reload_cmds need_locks \
12839 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12840 lt_cv_sys_global_symbol_to_c_name_address \
12841 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12842 old_postinstall_cmds old_postuninstall_cmds \
12843 compiler_CXX \
12844 CC_CXX \
12845 LD_CXX \
12846 lt_prog_compiler_wl_CXX \
12847 lt_prog_compiler_pic_CXX \
12848 lt_prog_compiler_static_CXX \
12849 lt_prog_compiler_no_builtin_flag_CXX \
12850 export_dynamic_flag_spec_CXX \
12851 thread_safe_flag_spec_CXX \
12852 whole_archive_flag_spec_CXX \
12853 enable_shared_with_static_runtimes_CXX \
12854 old_archive_cmds_CXX \
12855 old_archive_from_new_cmds_CXX \
12856 predep_objects_CXX \
12857 postdep_objects_CXX \
12858 predeps_CXX \
12859 postdeps_CXX \
12860 compiler_lib_search_path_CXX \
12861 archive_cmds_CXX \
12862 archive_expsym_cmds_CXX \
12863 postinstall_cmds_CXX \
12864 postuninstall_cmds_CXX \
12865 old_archive_from_expsyms_cmds_CXX \
12866 allow_undefined_flag_CXX \
12867 no_undefined_flag_CXX \
12868 export_symbols_cmds_CXX \
12869 hardcode_libdir_flag_spec_CXX \
12870 hardcode_libdir_flag_spec_ld_CXX \
12871 hardcode_libdir_separator_CXX \
12872 hardcode_automatic_CXX \
12873 module_cmds_CXX \
12874 module_expsym_cmds_CXX \
12875 lt_cv_prog_compiler_c_o_CXX \
12876 exclude_expsyms_CXX \
12877 include_expsyms_CXX; do
12879 case $var in
12880 old_archive_cmds_CXX | \
12881 old_archive_from_new_cmds_CXX | \
12882 archive_cmds_CXX | \
12883 archive_expsym_cmds_CXX | \
12884 module_cmds_CXX | \
12885 module_expsym_cmds_CXX | \
12886 old_archive_from_expsyms_cmds_CXX | \
12887 export_symbols_cmds_CXX | \
12888 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12889 postinstall_cmds | postuninstall_cmds | \
12890 old_postinstall_cmds | old_postuninstall_cmds | \
12891 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12892 # Double-quote double-evaled strings.
12893 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12896 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12898 esac
12899 done
12901 case $lt_echo in
12902 *'\$0 --fallback-echo"')
12903 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12905 esac
12907 cfgfile="$ofile"
12909 cat <<__EOF__ >> "$cfgfile"
12910 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12912 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12914 # Shell to use when invoking shell scripts.
12915 SHELL=$lt_SHELL
12917 # Whether or not to build shared libraries.
12918 build_libtool_libs=$enable_shared
12920 # Whether or not to build static libraries.
12921 build_old_libs=$enable_static
12923 # Whether or not to add -lc for building shared libraries.
12924 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12926 # Whether or not to disallow shared libs when runtime libs are static
12927 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12929 # Whether or not to optimize for fast installation.
12930 fast_install=$enable_fast_install
12932 # The host system.
12933 host_alias=$host_alias
12934 host=$host
12936 # An echo program that does not interpret backslashes.
12937 echo=$lt_echo
12939 # The archiver.
12940 AR=$lt_AR
12941 AR_FLAGS=$lt_AR_FLAGS
12943 # A C compiler.
12944 LTCC=$lt_LTCC
12946 # A language-specific compiler.
12947 CC=$lt_compiler_CXX
12949 # Is the compiler the GNU C compiler?
12950 with_gcc=$GCC_CXX
12952 # An ERE matcher.
12953 EGREP=$lt_EGREP
12955 # The linker used to build libraries.
12956 LD=$lt_LD_CXX
12958 # Whether we need hard or soft links.
12959 LN_S=$lt_LN_S
12961 # A BSD-compatible nm program.
12962 NM=$lt_NM
12964 # A symbol stripping program
12965 STRIP=$STRIP
12967 # Used to examine libraries when file_magic_cmd begins "file"
12968 MAGIC_CMD=$MAGIC_CMD
12970 # Used on cygwin: DLL creation program.
12971 DLLTOOL="$DLLTOOL"
12973 # Used on cygwin: object dumper.
12974 OBJDUMP="$OBJDUMP"
12976 # Used on cygwin: assembler.
12977 AS="$AS"
12979 # The name of the directory that contains temporary libtool files.
12980 objdir=$objdir
12982 # How to create reloadable object files.
12983 reload_flag=$lt_reload_flag
12984 reload_cmds=$lt_reload_cmds
12986 # How to pass a linker flag through the compiler.
12987 wl=$lt_lt_prog_compiler_wl_CXX
12989 # Object file suffix (normally "o").
12990 objext="$ac_objext"
12992 # Old archive suffix (normally "a").
12993 libext="$libext"
12995 # Shared library suffix (normally ".so").
12996 shrext='$shrext'
12998 # Executable file suffix (normally "").
12999 exeext="$exeext"
13001 # Additional compiler flags for building library objects.
13002 pic_flag=$lt_lt_prog_compiler_pic_CXX
13003 pic_mode=$pic_mode
13005 # What is the maximum length of a command?
13006 max_cmd_len=$lt_cv_sys_max_cmd_len
13008 # Does compiler simultaneously support -c and -o options?
13009 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13011 # Must we lock files when doing compilation ?
13012 need_locks=$lt_need_locks
13014 # Do we need the lib prefix for modules?
13015 need_lib_prefix=$need_lib_prefix
13017 # Do we need a version for libraries?
13018 need_version=$need_version
13020 # Whether dlopen is supported.
13021 dlopen_support=$enable_dlopen
13023 # Whether dlopen of programs is supported.
13024 dlopen_self=$enable_dlopen_self
13026 # Whether dlopen of statically linked programs is supported.
13027 dlopen_self_static=$enable_dlopen_self_static
13029 # Compiler flag to prevent dynamic linking.
13030 link_static_flag=$lt_lt_prog_compiler_static_CXX
13032 # Compiler flag to turn off builtin functions.
13033 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13035 # Compiler flag to allow reflexive dlopens.
13036 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13038 # Compiler flag to generate shared objects directly from archives.
13039 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13041 # Compiler flag to generate thread-safe objects.
13042 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13044 # Library versioning type.
13045 version_type=$version_type
13047 # Format of library name prefix.
13048 libname_spec=$lt_libname_spec
13050 # List of archive names. First name is the real one, the rest are links.
13051 # The last name is the one that the linker finds with -lNAME.
13052 library_names_spec=$lt_library_names_spec
13054 # The coded name of the library, if different from the real name.
13055 soname_spec=$lt_soname_spec
13057 # Commands used to build and install an old-style archive.
13058 RANLIB=$lt_RANLIB
13059 old_archive_cmds=$lt_old_archive_cmds_CXX
13060 old_postinstall_cmds=$lt_old_postinstall_cmds
13061 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13063 # Create an old-style archive from a shared archive.
13064 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13066 # Create a temporary old-style archive to link instead of a shared archive.
13067 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13069 # Commands used to build and install a shared archive.
13070 archive_cmds=$lt_archive_cmds_CXX
13071 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13072 postinstall_cmds=$lt_postinstall_cmds
13073 postuninstall_cmds=$lt_postuninstall_cmds
13075 # Commands used to build a loadable module (assumed same as above if empty)
13076 module_cmds=$lt_module_cmds_CXX
13077 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13079 # Commands to strip libraries.
13080 old_striplib=$lt_old_striplib
13081 striplib=$lt_striplib
13083 # Dependencies to place before the objects being linked to create a
13084 # shared library.
13085 predep_objects=$lt_predep_objects_CXX
13087 # Dependencies to place after the objects being linked to create a
13088 # shared library.
13089 postdep_objects=$lt_postdep_objects_CXX
13091 # Dependencies to place before the objects being linked to create a
13092 # shared library.
13093 predeps=$lt_predeps_CXX
13095 # Dependencies to place after the objects being linked to create a
13096 # shared library.
13097 postdeps=$lt_postdeps_CXX
13099 # The library search path used internally by the compiler when linking
13100 # a shared library.
13101 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13103 # Method to check whether dependent libraries are shared objects.
13104 deplibs_check_method=$lt_deplibs_check_method
13106 # Command to use when deplibs_check_method == file_magic.
13107 file_magic_cmd=$lt_file_magic_cmd
13109 # Flag that allows shared libraries with undefined symbols to be built.
13110 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13112 # Flag that forces no undefined symbols.
13113 no_undefined_flag=$lt_no_undefined_flag_CXX
13115 # Commands used to finish a libtool library installation in a directory.
13116 finish_cmds=$lt_finish_cmds
13118 # Same as above, but a single script fragment to be evaled but not shown.
13119 finish_eval=$lt_finish_eval
13121 # Take the output of nm and produce a listing of raw symbols and C names.
13122 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13124 # Transform the output of nm in a proper C declaration
13125 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13127 # Transform the output of nm in a C name address pair
13128 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13130 # This is the shared library runtime path variable.
13131 runpath_var=$runpath_var
13133 # This is the shared library path variable.
13134 shlibpath_var=$shlibpath_var
13136 # Is shlibpath searched before the hard-coded library search path?
13137 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13139 # How to hardcode a shared library path into an executable.
13140 hardcode_action=$hardcode_action_CXX
13142 # Whether we should hardcode library paths into libraries.
13143 hardcode_into_libs=$hardcode_into_libs
13145 # Flag to hardcode \$libdir into a binary during linking.
13146 # This must work even if \$libdir does not exist.
13147 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13149 # If ld is used when linking, flag to hardcode \$libdir into
13150 # a binary during linking. This must work even if \$libdir does
13151 # not exist.
13152 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13154 # Whether we need a single -rpath flag with a separated argument.
13155 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13157 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13158 # resulting binary.
13159 hardcode_direct=$hardcode_direct_CXX
13161 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13162 # resulting binary.
13163 hardcode_minus_L=$hardcode_minus_L_CXX
13165 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13166 # the resulting binary.
13167 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13169 # Set to yes if building a shared library automatically hardcodes DIR into the library
13170 # and all subsequent libraries and executables linked against it.
13171 hardcode_automatic=$hardcode_automatic_CXX
13173 # Variables whose values should be saved in libtool wrapper scripts and
13174 # restored at relink time.
13175 variables_saved_for_relink="$variables_saved_for_relink"
13177 # Whether libtool must link a program against all its dependency libraries.
13178 link_all_deplibs=$link_all_deplibs_CXX
13180 # Compile-time system search path for libraries
13181 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13183 # Run-time system search path for libraries
13184 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13186 # Fix the shell variable \$srcfile for the compiler.
13187 fix_srcfile_path="$fix_srcfile_path_CXX"
13189 # Set to yes if exported symbols are required.
13190 always_export_symbols=$always_export_symbols_CXX
13192 # The commands to list exported symbols.
13193 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13195 # The commands to extract the exported symbol list from a shared archive.
13196 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13198 # Symbols that should not be listed in the preloaded symbols.
13199 exclude_expsyms=$lt_exclude_expsyms_CXX
13201 # Symbols that must always be exported.
13202 include_expsyms=$lt_include_expsyms_CXX
13204 # ### END LIBTOOL TAG CONFIG: $tagname
13206 __EOF__
13209 else
13210 # If there is no Makefile yet, we rely on a make rule to execute
13211 # `config.status --recheck' to rerun these tests and create the
13212 # libtool script then.
13213 test -f Makefile && make "$ltmain"
13217 ac_ext=c
13218 ac_cpp='$CPP $CPPFLAGS'
13219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13223 CC=$lt_save_CC
13224 LDCXX=$LD
13225 LD=$lt_save_LD
13226 GCC=$lt_save_GCC
13227 with_gnu_ldcxx=$with_gnu_ld
13228 with_gnu_ld=$lt_save_with_gnu_ld
13229 lt_cv_path_LDCXX=$lt_cv_path_LD
13230 lt_cv_path_LD=$lt_save_path_LD
13231 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13232 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13234 else
13235 tagname=""
13239 F77)
13240 if test -n "$F77" && test "X$F77" != "Xno"; then
13242 ac_ext=f
13243 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13244 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13245 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13248 archive_cmds_need_lc_F77=no
13249 allow_undefined_flag_F77=
13250 always_export_symbols_F77=no
13251 archive_expsym_cmds_F77=
13252 export_dynamic_flag_spec_F77=
13253 hardcode_direct_F77=no
13254 hardcode_libdir_flag_spec_F77=
13255 hardcode_libdir_flag_spec_ld_F77=
13256 hardcode_libdir_separator_F77=
13257 hardcode_minus_L_F77=no
13258 hardcode_automatic_F77=no
13259 module_cmds_F77=
13260 module_expsym_cmds_F77=
13261 link_all_deplibs_F77=unknown
13262 old_archive_cmds_F77=$old_archive_cmds
13263 no_undefined_flag_F77=
13264 whole_archive_flag_spec_F77=
13265 enable_shared_with_static_runtimes_F77=no
13267 # Source file extension for f77 test sources.
13268 ac_ext=f
13270 # Object file extension for compiled f77 test sources.
13271 objext=o
13272 objext_F77=$objext
13274 # Code to be used in simple compile tests
13275 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13277 # Code to be used in simple link tests
13278 lt_simple_link_test_code=" program t\n end\n"
13280 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13282 # If no C compiler was specified, use CC.
13283 LTCC=${LTCC-"$CC"}
13285 # Allow CC to be a program name with arguments.
13286 compiler=$CC
13289 # Allow CC to be a program name with arguments.
13290 lt_save_CC="$CC"
13291 CC=${F77-"f77"}
13292 compiler=$CC
13293 compiler_F77=$CC
13294 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13296 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13297 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13298 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13299 echo "${ECHO_T}$can_build_shared" >&6
13301 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13302 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13303 test "$can_build_shared" = "no" && enable_shared=no
13305 # On AIX, shared libraries and static libraries use the same namespace, and
13306 # are all built from PIC.
13307 case "$host_os" in
13308 aix3*)
13309 test "$enable_shared" = yes && enable_static=no
13310 if test -n "$RANLIB"; then
13311 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13312 postinstall_cmds='$RANLIB $lib'
13315 aix4*)
13316 test "$enable_shared" = yes && enable_static=no
13318 esac
13319 echo "$as_me:$LINENO: result: $enable_shared" >&5
13320 echo "${ECHO_T}$enable_shared" >&6
13322 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13323 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13324 # Make sure either enable_shared or enable_static is yes.
13325 test "$enable_shared" = yes || enable_static=yes
13326 echo "$as_me:$LINENO: result: $enable_static" >&5
13327 echo "${ECHO_T}$enable_static" >&6
13329 test "$ld_shlibs_F77" = no && can_build_shared=no
13331 GCC_F77="$G77"
13332 LD_F77="$LD"
13334 lt_prog_compiler_wl_F77=
13335 lt_prog_compiler_pic_F77=
13336 lt_prog_compiler_static_F77=
13338 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13339 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13341 if test "$GCC" = yes; then
13342 lt_prog_compiler_wl_F77='-Wl,'
13343 lt_prog_compiler_static_F77='-static'
13345 case $host_os in
13346 aix*)
13347 # All AIX code is PIC.
13348 if test "$host_cpu" = ia64; then
13349 # AIX 5 now supports IA64 processor
13350 lt_prog_compiler_static_F77='-Bstatic'
13354 amigaos*)
13355 # FIXME: we need at least 68020 code to build shared libraries, but
13356 # adding the `-m68020' flag to GCC prevents building anything better,
13357 # like `-m68040'.
13358 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13361 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13362 # PIC is the default for these OSes.
13365 mingw* | pw32* | os2*)
13366 # This hack is so that the source file can tell whether it is being
13367 # built for inclusion in a dll (and should export symbols for example).
13368 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13371 darwin* | rhapsody*)
13372 # PIC is the default on this platform
13373 # Common symbols not allowed in MH_DYLIB files
13374 lt_prog_compiler_pic_F77='-fno-common'
13377 msdosdjgpp*)
13378 # Just because we use GCC doesn't mean we suddenly get shared libraries
13379 # on systems that don't support them.
13380 lt_prog_compiler_can_build_shared_F77=no
13381 enable_shared=no
13384 sysv4*MP*)
13385 if test -d /usr/nec; then
13386 lt_prog_compiler_pic_F77=-Kconform_pic
13390 hpux*)
13391 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13392 # not for PA HP-UX.
13393 case "$host_cpu" in
13394 hppa*64*|ia64*)
13395 # +Z the default
13398 lt_prog_compiler_pic_F77='-fPIC'
13400 esac
13404 lt_prog_compiler_pic_F77='-fPIC'
13406 esac
13407 else
13408 # PORTME Check for flag to pass linker flags through the system compiler.
13409 case $host_os in
13410 aix*)
13411 lt_prog_compiler_wl_F77='-Wl,'
13412 if test "$host_cpu" = ia64; then
13413 # AIX 5 now supports IA64 processor
13414 lt_prog_compiler_static_F77='-Bstatic'
13415 else
13416 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13420 mingw* | pw32* | os2*)
13421 # This hack is so that the source file can tell whether it is being
13422 # built for inclusion in a dll (and should export symbols for example).
13423 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13426 hpux9* | hpux10* | hpux11*)
13427 lt_prog_compiler_wl_F77='-Wl,'
13428 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13429 # not for PA HP-UX.
13430 case "$host_cpu" in
13431 hppa*64*|ia64*)
13432 # +Z the default
13435 lt_prog_compiler_pic_F77='+Z'
13437 esac
13438 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13439 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13442 irix5* | irix6* | nonstopux*)
13443 lt_prog_compiler_wl_F77='-Wl,'
13444 # PIC (with -KPIC) is the default.
13445 lt_prog_compiler_static_F77='-non_shared'
13448 newsos6)
13449 lt_prog_compiler_pic_F77='-KPIC'
13450 lt_prog_compiler_static_F77='-Bstatic'
13453 linux*)
13454 case $CC in
13455 icc|ecc)
13456 lt_prog_compiler_wl_F77='-Wl,'
13457 lt_prog_compiler_pic_F77='-KPIC'
13458 lt_prog_compiler_static_F77='-static'
13460 ccc)
13461 lt_prog_compiler_wl_F77='-Wl,'
13462 # All Alpha code is PIC.
13463 lt_prog_compiler_static_F77='-non_shared'
13465 esac
13468 osf3* | osf4* | osf5*)
13469 lt_prog_compiler_wl_F77='-Wl,'
13470 # All OSF/1 code is PIC.
13471 lt_prog_compiler_static_F77='-non_shared'
13474 sco3.2v5*)
13475 lt_prog_compiler_pic_F77='-Kpic'
13476 lt_prog_compiler_static_F77='-dn'
13479 solaris*)
13480 lt_prog_compiler_wl_F77='-Wl,'
13481 lt_prog_compiler_pic_F77='-KPIC'
13482 lt_prog_compiler_static_F77='-Bstatic'
13485 sunos4*)
13486 lt_prog_compiler_wl_F77='-Qoption ld '
13487 lt_prog_compiler_pic_F77='-PIC'
13488 lt_prog_compiler_static_F77='-Bstatic'
13491 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13492 lt_prog_compiler_wl_F77='-Wl,'
13493 lt_prog_compiler_pic_F77='-KPIC'
13494 lt_prog_compiler_static_F77='-Bstatic'
13497 sysv4*MP*)
13498 if test -d /usr/nec ;then
13499 lt_prog_compiler_pic_F77='-Kconform_pic'
13500 lt_prog_compiler_static_F77='-Bstatic'
13504 uts4*)
13505 lt_prog_compiler_pic_F77='-pic'
13506 lt_prog_compiler_static_F77='-Bstatic'
13510 lt_prog_compiler_can_build_shared_F77=no
13512 esac
13515 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13516 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13519 # Check to make sure the PIC flag actually works.
13521 if test -n "$lt_prog_compiler_pic_F77"; then
13522 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13523 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13524 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13525 echo $ECHO_N "(cached) $ECHO_C" >&6
13526 else
13527 lt_prog_compiler_pic_works_F77=no
13528 ac_outfile=conftest.$ac_objext
13529 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13530 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13531 # Insert the option either (1) after the last *FLAGS variable, or
13532 # (2) before a word containing "conftest.", or (3) at the end.
13533 # Note that $ac_compile itself does not contain backslashes and begins
13534 # with a dollar sign (not a hyphen), so the echo should work correctly.
13535 # The option is referenced via a variable to avoid confusing sed.
13536 lt_compile=`echo "$ac_compile" | $SED \
13537 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13538 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13539 -e 's:$: $lt_compiler_flag:'`
13540 (eval echo "\"\$as_me:13540: $lt_compile\"" >&5)
13541 (eval "$lt_compile" 2>conftest.err)
13542 ac_status=$?
13543 cat conftest.err >&5
13544 echo "$as_me:13544: \$? = $ac_status" >&5
13545 if (exit $ac_status) && test -s "$ac_outfile"; then
13546 # The compiler can only warn and ignore the option if not recognized
13547 # So say no if there are warnings
13548 if test ! -s conftest.err; then
13549 lt_prog_compiler_pic_works_F77=yes
13552 $rm conftest*
13555 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13556 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13558 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13559 case $lt_prog_compiler_pic_F77 in
13560 "" | " "*) ;;
13561 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13562 esac
13563 else
13564 lt_prog_compiler_pic_F77=
13565 lt_prog_compiler_can_build_shared_F77=no
13569 case "$host_os" in
13570 # For platforms which do not support PIC, -DPIC is meaningless:
13571 *djgpp*)
13572 lt_prog_compiler_pic_F77=
13575 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13577 esac
13579 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13580 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13581 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13582 echo $ECHO_N "(cached) $ECHO_C" >&6
13583 else
13584 lt_cv_prog_compiler_c_o_F77=no
13585 $rm -r conftest 2>/dev/null
13586 mkdir conftest
13587 cd conftest
13588 mkdir out
13589 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13591 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13592 # that will create temporary files in the current directory regardless of
13593 # the output directory. Thus, making CWD read-only will cause this test
13594 # to fail, enabling locking or at least warning the user not to do parallel
13595 # builds.
13596 chmod -w .
13598 lt_compiler_flag="-o out/conftest2.$ac_objext"
13599 # Insert the option either (1) after the last *FLAGS variable, or
13600 # (2) before a word containing "conftest.", or (3) at the end.
13601 # Note that $ac_compile itself does not contain backslashes and begins
13602 # with a dollar sign (not a hyphen), so the echo should work correctly.
13603 lt_compile=`echo "$ac_compile" | $SED \
13604 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13606 -e 's:$: $lt_compiler_flag:'`
13607 (eval echo "\"\$as_me:13607: $lt_compile\"" >&5)
13608 (eval "$lt_compile" 2>out/conftest.err)
13609 ac_status=$?
13610 cat out/conftest.err >&5
13611 echo "$as_me:13611: \$? = $ac_status" >&5
13612 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13613 then
13614 # The compiler can only warn and ignore the option if not recognized
13615 # So say no if there are warnings
13616 if test ! -s out/conftest.err; then
13617 lt_cv_prog_compiler_c_o_F77=yes
13620 chmod u+w .
13621 $rm conftest* out/*
13622 rmdir out
13623 cd ..
13624 rmdir conftest
13625 $rm conftest*
13628 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13629 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13632 hard_links="nottested"
13633 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13634 # do not overwrite the value of need_locks provided by the user
13635 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13636 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13637 hard_links=yes
13638 $rm conftest*
13639 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13640 touch conftest.a
13641 ln conftest.a conftest.b 2>&5 || hard_links=no
13642 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13643 echo "$as_me:$LINENO: result: $hard_links" >&5
13644 echo "${ECHO_T}$hard_links" >&6
13645 if test "$hard_links" = no; then
13646 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13647 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13648 need_locks=warn
13650 else
13651 need_locks=no
13654 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13655 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13657 runpath_var=
13658 allow_undefined_flag_F77=
13659 enable_shared_with_static_runtimes_F77=no
13660 archive_cmds_F77=
13661 archive_expsym_cmds_F77=
13662 old_archive_From_new_cmds_F77=
13663 old_archive_from_expsyms_cmds_F77=
13664 export_dynamic_flag_spec_F77=
13665 whole_archive_flag_spec_F77=
13666 thread_safe_flag_spec_F77=
13667 hardcode_libdir_flag_spec_F77=
13668 hardcode_libdir_flag_spec_ld_F77=
13669 hardcode_libdir_separator_F77=
13670 hardcode_direct_F77=no
13671 hardcode_minus_L_F77=no
13672 hardcode_shlibpath_var_F77=unsupported
13673 link_all_deplibs_F77=unknown
13674 hardcode_automatic_F77=no
13675 module_cmds_F77=
13676 module_expsym_cmds_F77=
13677 always_export_symbols_F77=no
13678 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13679 # include_expsyms should be a list of space-separated symbols to be *always*
13680 # included in the symbol list
13681 include_expsyms_F77=
13682 # exclude_expsyms can be an extended regexp of symbols to exclude
13683 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13684 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13685 # as well as any symbol that contains `d'.
13686 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13687 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13688 # platforms (ab)use it in PIC code, but their linkers get confused if
13689 # the symbol is explicitly referenced. Since portable code cannot
13690 # rely on this symbol name, it's probably fine to never include it in
13691 # preloaded symbol tables.
13692 extract_expsyms_cmds=
13694 case $host_os in
13695 cygwin* | mingw* | pw32*)
13696 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13697 # When not using gcc, we currently assume that we are using
13698 # Microsoft Visual C++.
13699 if test "$GCC" != yes; then
13700 with_gnu_ld=no
13703 openbsd*)
13704 with_gnu_ld=no
13706 esac
13708 ld_shlibs_F77=yes
13709 if test "$with_gnu_ld" = yes; then
13710 # If archive_cmds runs LD, not CC, wlarc should be empty
13711 wlarc='${wl}'
13713 # See if GNU ld supports shared libraries.
13714 case $host_os in
13715 aix3* | aix4* | aix5*)
13716 # On AIX/PPC, the GNU linker is very broken
13717 if test "$host_cpu" != ia64; then
13718 ld_shlibs_F77=no
13719 cat <<EOF 1>&2
13721 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13722 *** to be unable to reliably create shared libraries on AIX.
13723 *** Therefore, libtool is disabling shared libraries support. If you
13724 *** really care for shared libraries, you may want to modify your PATH
13725 *** so that a non-GNU linker is found, and then restart.
13731 amigaos*)
13732 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)'
13733 hardcode_libdir_flag_spec_F77='-L$libdir'
13734 hardcode_minus_L_F77=yes
13736 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13737 # that the semantics of dynamic libraries on AmigaOS, at least up
13738 # to version 4, is to share data among multiple programs linked
13739 # with the same dynamic library. Since this doesn't match the
13740 # behavior of shared libraries on other platforms, we can't use
13741 # them.
13742 ld_shlibs_F77=no
13745 beos*)
13746 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13747 allow_undefined_flag_F77=unsupported
13748 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13749 # support --undefined. This deserves some investigation. FIXME
13750 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13751 else
13752 ld_shlibs_F77=no
13756 cygwin* | mingw* | pw32*)
13757 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13758 # as there is no search path for DLLs.
13759 hardcode_libdir_flag_spec_F77='-L$libdir'
13760 allow_undefined_flag_F77=unsupported
13761 always_export_symbols_F77=no
13762 enable_shared_with_static_runtimes_F77=yes
13763 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13765 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13766 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13767 # If the export-symbols file already is a .def file (1st line
13768 # is EXPORTS), use it as is; otherwise, prepend...
13769 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13770 cp $export_symbols $output_objdir/$soname.def;
13771 else
13772 echo EXPORTS > $output_objdir/$soname.def;
13773 cat $export_symbols >> $output_objdir/$soname.def;
13775 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13776 else
13777 ld_shlibs=no
13781 netbsd*)
13782 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13783 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13784 wlarc=
13785 else
13786 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13787 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13791 solaris* | sysv5*)
13792 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13793 ld_shlibs_F77=no
13794 cat <<EOF 1>&2
13796 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13797 *** create shared libraries on Solaris systems. Therefore, libtool
13798 *** is disabling shared libraries support. We urge you to upgrade GNU
13799 *** binutils to release 2.9.1 or newer. Another option is to modify
13800 *** your PATH or compiler configuration so that the native linker is
13801 *** used, and then restart.
13804 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13805 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13806 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13807 else
13808 ld_shlibs_F77=no
13812 sunos4*)
13813 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13814 wlarc=
13815 hardcode_direct_F77=yes
13816 hardcode_shlibpath_var_F77=no
13820 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13821 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13822 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13823 else
13824 ld_shlibs_F77=no
13827 esac
13829 if test "$ld_shlibs_F77" = yes; then
13830 runpath_var=LD_RUN_PATH
13831 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13832 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13833 # ancient GNU ld didn't support --whole-archive et. al.
13834 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13835 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13836 else
13837 whole_archive_flag_spec_F77=
13840 else
13841 # PORTME fill in a description of your system's linker (not GNU ld)
13842 case $host_os in
13843 aix3*)
13844 allow_undefined_flag_F77=unsupported
13845 always_export_symbols_F77=yes
13846 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'
13847 # Note: this linker hardcodes the directories in LIBPATH if there
13848 # are no directories specified by -L.
13849 hardcode_minus_L_F77=yes
13850 if test "$GCC" = yes && test -z "$link_static_flag"; then
13851 # Neither direct hardcoding nor static linking is supported with a
13852 # broken collect2.
13853 hardcode_direct_F77=unsupported
13857 aix4* | aix5*)
13858 if test "$host_cpu" = ia64; then
13859 # On IA64, the linker does run time linking by default, so we don't
13860 # have to do anything special.
13861 aix_use_runtimelinking=no
13862 exp_sym_flag='-Bexport'
13863 no_entry_flag=""
13864 else
13865 # If we're using GNU nm, then we don't want the "-C" option.
13866 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13867 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13868 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'
13869 else
13870 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'
13872 aix_use_runtimelinking=no
13874 # Test if we are trying to use run time linking or normal
13875 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13876 # need to do runtime linking.
13877 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13878 for ld_flag in $LDFLAGS; do
13879 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13880 aix_use_runtimelinking=yes
13881 break
13883 done
13884 esac
13886 exp_sym_flag='-bexport'
13887 no_entry_flag='-bnoentry'
13890 # When large executables or shared objects are built, AIX ld can
13891 # have problems creating the table of contents. If linking a library
13892 # or program results in "error TOC overflow" add -mminimal-toc to
13893 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13894 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13896 archive_cmds_F77=''
13897 hardcode_direct_F77=yes
13898 hardcode_libdir_separator_F77=':'
13899 link_all_deplibs_F77=yes
13901 if test "$GCC" = yes; then
13902 case $host_os in aix4.012|aix4.012.*)
13903 # We only want to do this on AIX 4.2 and lower, the check
13904 # below for broken collect2 doesn't work under 4.3+
13905 collect2name=`${CC} -print-prog-name=collect2`
13906 if test -f "$collect2name" && \
13907 strings "$collect2name" | grep resolve_lib_name >/dev/null
13908 then
13909 # We have reworked collect2
13910 hardcode_direct_F77=yes
13911 else
13912 # We have old collect2
13913 hardcode_direct_F77=unsupported
13914 # It fails to find uninstalled libraries when the uninstalled
13915 # path is not listed in the libpath. Setting hardcode_minus_L
13916 # to unsupported forces relinking
13917 hardcode_minus_L_F77=yes
13918 hardcode_libdir_flag_spec_F77='-L$libdir'
13919 hardcode_libdir_separator_F77=
13921 esac
13922 shared_flag='-shared'
13923 else
13924 # not using gcc
13925 if test "$host_cpu" = ia64; then
13926 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13927 # chokes on -Wl,-G. The following line is correct:
13928 shared_flag='-G'
13929 else
13930 if test "$aix_use_runtimelinking" = yes; then
13931 shared_flag='${wl}-G'
13932 else
13933 shared_flag='${wl}-bM:SRE'
13938 # It seems that -bexpall does not export symbols beginning with
13939 # underscore (_), so it is better to generate a list of symbols to export.
13940 always_export_symbols_F77=yes
13941 if test "$aix_use_runtimelinking" = yes; then
13942 # Warning - without using the other runtime loading flags (-brtl),
13943 # -berok will link without error, but may produce a broken library.
13944 allow_undefined_flag_F77='-berok'
13945 # Determine the default libpath from the value encoded in an empty executable.
13946 cat >conftest.$ac_ext <<_ACEOF
13947 program main
13950 _ACEOF
13951 rm -f conftest.$ac_objext conftest$ac_exeext
13952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13953 (eval $ac_link) 2>conftest.er1
13954 ac_status=$?
13955 grep -v '^ *+' conftest.er1 >conftest.err
13956 rm -f conftest.er1
13957 cat conftest.err >&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); } &&
13960 { ac_try='test -z "$ac_f77_werror_flag"
13961 || test ! -s conftest.err'
13962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13963 (eval $ac_try) 2>&5
13964 ac_status=$?
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); }; } &&
13967 { ac_try='test -s conftest$ac_exeext'
13968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13969 (eval $ac_try) 2>&5
13970 ac_status=$?
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); }; }; then
13974 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13976 # Check for a 64-bit object if we didn't find anything.
13977 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; }
13978 }'`; fi
13979 else
13980 echo "$as_me: failed program was:" >&5
13981 sed 's/^/| /' conftest.$ac_ext >&5
13984 rm -f conftest.err conftest.$ac_objext \
13985 conftest$ac_exeext conftest.$ac_ext
13986 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13988 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13989 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"
13990 else
13991 if test "$host_cpu" = ia64; then
13992 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13993 allow_undefined_flag_F77="-z nodefs"
13994 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"
13995 else
13996 # Determine the default libpath from the value encoded in an empty executable.
13997 cat >conftest.$ac_ext <<_ACEOF
13998 program main
14001 _ACEOF
14002 rm -f conftest.$ac_objext conftest$ac_exeext
14003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14004 (eval $ac_link) 2>conftest.er1
14005 ac_status=$?
14006 grep -v '^ *+' conftest.er1 >conftest.err
14007 rm -f conftest.er1
14008 cat conftest.err >&5
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); } &&
14011 { ac_try='test -z "$ac_f77_werror_flag"
14012 || test ! -s conftest.err'
14013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14014 (eval $ac_try) 2>&5
14015 ac_status=$?
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); }; } &&
14018 { ac_try='test -s conftest$ac_exeext'
14019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14020 (eval $ac_try) 2>&5
14021 ac_status=$?
14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); }; }; then
14025 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14027 # Check for a 64-bit object if we didn't find anything.
14028 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; }
14029 }'`; fi
14030 else
14031 echo "$as_me: failed program was:" >&5
14032 sed 's/^/| /' conftest.$ac_ext >&5
14035 rm -f conftest.err conftest.$ac_objext \
14036 conftest$ac_exeext conftest.$ac_ext
14037 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14039 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14040 # Warning - without using the other run time loading flags,
14041 # -berok will link without error, but may produce a broken library.
14042 no_undefined_flag_F77=' ${wl}-bernotok'
14043 allow_undefined_flag_F77=' ${wl}-berok'
14044 # -bexpall does not export symbols beginning with underscore (_)
14045 always_export_symbols_F77=yes
14046 # Exported symbols can be pulled into shared objects from archives
14047 whole_archive_flag_spec_F77=' '
14048 archive_cmds_need_lc_F77=yes
14049 # This is similar to how AIX traditionally builds it's shared libraries.
14050 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'
14055 amigaos*)
14056 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)'
14057 hardcode_libdir_flag_spec_F77='-L$libdir'
14058 hardcode_minus_L_F77=yes
14059 # see comment about different semantics on the GNU ld section
14060 ld_shlibs_F77=no
14063 bsdi4*)
14064 export_dynamic_flag_spec_F77=-rdynamic
14067 cygwin* | mingw* | pw32*)
14068 # When not using gcc, we currently assume that we are using
14069 # Microsoft Visual C++.
14070 # hardcode_libdir_flag_spec is actually meaningless, as there is
14071 # no search path for DLLs.
14072 hardcode_libdir_flag_spec_F77=' '
14073 allow_undefined_flag_F77=unsupported
14074 # Tell ltmain to make .lib files, not .a files.
14075 libext=lib
14076 # Tell ltmain to make .dll files, not .so files.
14077 shrext=".dll"
14078 # FIXME: Setting linknames here is a bad hack.
14079 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14080 # The linker will automatically build a .lib file if we build a DLL.
14081 old_archive_From_new_cmds_F77='true'
14082 # FIXME: Should let the user specify the lib program.
14083 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14084 fix_srcfile_path='`cygpath -w "$srcfile"`'
14085 enable_shared_with_static_runtimes_F77=yes
14088 darwin* | rhapsody*)
14089 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14090 archive_cmds_need_lc_F77=no
14091 case "$host_os" in
14092 rhapsody* | darwin1.[012])
14093 allow_undefined_flag_F77='-undefined suppress'
14095 *) # Darwin 1.3 on
14096 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14098 esac
14099 # FIXME: Relying on posixy $() will cause problems for
14100 # cross-compilation, but unfortunately the echo tests do not
14101 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
14102 # `"' quotes if we put them in here... so don't!
14103 lt_int_apple_cc_single_mod=no
14104 output_verbose_link_cmd='echo'
14105 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14106 lt_int_apple_cc_single_mod=yes
14108 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14109 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14110 else
14111 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14113 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
14114 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14115 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14116 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14117 else
14118 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14120 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14121 hardcode_direct_F77=no
14122 hardcode_automatic_F77=yes
14123 hardcode_shlibpath_var_F77=unsupported
14124 whole_archive_flag_spec_F77='-all_load $convenience'
14125 link_all_deplibs_F77=yes
14129 dgux*)
14130 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14131 hardcode_libdir_flag_spec_F77='-L$libdir'
14132 hardcode_shlibpath_var_F77=no
14135 freebsd1*)
14136 ld_shlibs_F77=no
14139 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14140 # support. Future versions do this automatically, but an explicit c++rt0.o
14141 # does not break anything, and helps significantly (at the cost of a little
14142 # extra space).
14143 freebsd2.2*)
14144 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14145 hardcode_libdir_flag_spec_F77='-R$libdir'
14146 hardcode_direct_F77=yes
14147 hardcode_shlibpath_var_F77=no
14150 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14151 freebsd2*)
14152 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14153 hardcode_direct_F77=yes
14154 hardcode_minus_L_F77=yes
14155 hardcode_shlibpath_var_F77=no
14158 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14159 freebsd*)
14160 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14161 hardcode_libdir_flag_spec_F77='-R$libdir'
14162 hardcode_direct_F77=yes
14163 hardcode_shlibpath_var_F77=no
14166 hpux9*)
14167 if test "$GCC" = yes; then
14168 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'
14169 else
14170 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'
14172 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14173 hardcode_libdir_separator_F77=:
14174 hardcode_direct_F77=yes
14176 # hardcode_minus_L: Not really in the search PATH,
14177 # but as the default location of the library.
14178 hardcode_minus_L_F77=yes
14179 export_dynamic_flag_spec_F77='${wl}-E'
14182 hpux10* | hpux11*)
14183 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14184 case "$host_cpu" in
14185 hppa*64*|ia64*)
14186 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14189 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14191 esac
14192 else
14193 case "$host_cpu" in
14194 hppa*64*|ia64*)
14195 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14198 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14200 esac
14202 if test "$with_gnu_ld" = no; then
14203 case "$host_cpu" in
14204 hppa*64*)
14205 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14206 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14207 hardcode_libdir_separator_F77=:
14208 hardcode_direct_F77=no
14209 hardcode_shlibpath_var_F77=no
14211 ia64*)
14212 hardcode_libdir_flag_spec_F77='-L$libdir'
14213 hardcode_direct_F77=no
14214 hardcode_shlibpath_var_F77=no
14216 # hardcode_minus_L: Not really in the search PATH,
14217 # but as the default location of the library.
14218 hardcode_minus_L_F77=yes
14221 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14222 hardcode_libdir_separator_F77=:
14223 hardcode_direct_F77=yes
14224 export_dynamic_flag_spec_F77='${wl}-E'
14226 # hardcode_minus_L: Not really in the search PATH,
14227 # but as the default location of the library.
14228 hardcode_minus_L_F77=yes
14230 esac
14234 irix5* | irix6* | nonstopux*)
14235 if test "$GCC" = yes; then
14236 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'
14237 else
14238 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'
14239 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14241 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14242 hardcode_libdir_separator_F77=:
14243 link_all_deplibs_F77=yes
14246 netbsd*)
14247 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14248 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14249 else
14250 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14252 hardcode_libdir_flag_spec_F77='-R$libdir'
14253 hardcode_direct_F77=yes
14254 hardcode_shlibpath_var_F77=no
14257 newsos6)
14258 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14259 hardcode_direct_F77=yes
14260 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14261 hardcode_libdir_separator_F77=:
14262 hardcode_shlibpath_var_F77=no
14265 openbsd*)
14266 hardcode_direct_F77=yes
14267 hardcode_shlibpath_var_F77=no
14268 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14269 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14270 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14271 export_dynamic_flag_spec_F77='${wl}-E'
14272 else
14273 case $host_os in
14274 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14275 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14276 hardcode_libdir_flag_spec_F77='-R$libdir'
14279 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14280 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14282 esac
14286 os2*)
14287 hardcode_libdir_flag_spec_F77='-L$libdir'
14288 hardcode_minus_L_F77=yes
14289 allow_undefined_flag_F77=unsupported
14290 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'
14291 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14294 osf3*)
14295 if test "$GCC" = yes; then
14296 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14297 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'
14298 else
14299 allow_undefined_flag_F77=' -expect_unresolved \*'
14300 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'
14302 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14303 hardcode_libdir_separator_F77=:
14306 osf4* | osf5*) # as osf3* with the addition of -msym flag
14307 if test "$GCC" = yes; then
14308 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14309 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'
14310 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14311 else
14312 allow_undefined_flag_F77=' -expect_unresolved \*'
14313 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'
14314 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~
14315 $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'
14317 # Both c and cxx compiler support -rpath directly
14318 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14320 hardcode_libdir_separator_F77=:
14323 sco3.2v5*)
14324 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14325 hardcode_shlibpath_var_F77=no
14326 export_dynamic_flag_spec_F77='${wl}-Bexport'
14327 runpath_var=LD_RUN_PATH
14328 hardcode_runpath_var=yes
14331 solaris*)
14332 no_undefined_flag_F77=' -z text'
14333 if test "$GCC" = yes; then
14334 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14335 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14336 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14337 else
14338 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14339 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14340 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14342 hardcode_libdir_flag_spec_F77='-R$libdir'
14343 hardcode_shlibpath_var_F77=no
14344 case $host_os in
14345 solaris2.[0-5] | solaris2.[0-5].*) ;;
14346 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14347 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14348 esac
14349 link_all_deplibs_F77=yes
14352 sunos4*)
14353 if test "x$host_vendor" = xsequent; then
14354 # Use $CC to link under sequent, because it throws in some extra .o
14355 # files that make .init and .fini sections work.
14356 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14357 else
14358 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14360 hardcode_libdir_flag_spec_F77='-L$libdir'
14361 hardcode_direct_F77=yes
14362 hardcode_minus_L_F77=yes
14363 hardcode_shlibpath_var_F77=no
14366 sysv4)
14367 case $host_vendor in
14368 sni)
14369 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14370 hardcode_direct_F77=yes # is this really true???
14372 siemens)
14373 ## LD is ld it makes a PLAMLIB
14374 ## CC just makes a GrossModule.
14375 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14376 reload_cmds_F77='$CC -r -o $output$reload_objs'
14377 hardcode_direct_F77=no
14379 motorola)
14380 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14381 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14383 esac
14384 runpath_var='LD_RUN_PATH'
14385 hardcode_shlibpath_var_F77=no
14388 sysv4.3*)
14389 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14390 hardcode_shlibpath_var_F77=no
14391 export_dynamic_flag_spec_F77='-Bexport'
14394 sysv4*MP*)
14395 if test -d /usr/nec; then
14396 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14397 hardcode_shlibpath_var_F77=no
14398 runpath_var=LD_RUN_PATH
14399 hardcode_runpath_var=yes
14400 ld_shlibs_F77=yes
14404 sysv4.2uw2*)
14405 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14406 hardcode_direct_F77=yes
14407 hardcode_minus_L_F77=no
14408 hardcode_shlibpath_var_F77=no
14409 hardcode_runpath_var=yes
14410 runpath_var=LD_RUN_PATH
14413 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14414 no_undefined_flag_F77='${wl}-z ${wl}text'
14415 if test "$GCC" = yes; then
14416 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14417 else
14418 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14420 runpath_var='LD_RUN_PATH'
14421 hardcode_shlibpath_var_F77=no
14424 sysv5*)
14425 no_undefined_flag_F77=' -z text'
14426 # $CC -shared without GNU ld will not create a library from C++
14427 # object files and a static libstdc++, better avoid it by now
14428 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14429 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14430 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14431 hardcode_libdir_flag_spec_F77=
14432 hardcode_shlibpath_var_F77=no
14433 runpath_var='LD_RUN_PATH'
14436 uts4*)
14437 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14438 hardcode_libdir_flag_spec_F77='-L$libdir'
14439 hardcode_shlibpath_var_F77=no
14443 ld_shlibs_F77=no
14445 esac
14448 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14449 echo "${ECHO_T}$ld_shlibs_F77" >&6
14450 test "$ld_shlibs_F77" = no && can_build_shared=no
14452 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14453 if test "$GCC" = yes; then
14454 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14458 # Do we need to explicitly link libc?
14460 case "x$archive_cmds_need_lc_F77" in
14461 x|xyes)
14462 # Assume -lc should be added
14463 archive_cmds_need_lc_F77=yes
14465 if test "$enable_shared" = yes && test "$GCC" = yes; then
14466 case $archive_cmds_F77 in
14467 *'~'*)
14468 # FIXME: we may have to deal with multi-command sequences.
14470 '$CC '*)
14471 # Test whether the compiler implicitly links with -lc since on some
14472 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14473 # to ld, don't add -lc before -lgcc.
14474 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14475 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14476 $rm conftest*
14477 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14480 (eval $ac_compile) 2>&5
14481 ac_status=$?
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); } 2>conftest.err; then
14484 soname=conftest
14485 lib=conftest
14486 libobjs=conftest.$ac_objext
14487 deplibs=
14488 wl=$lt_prog_compiler_wl_F77
14489 compiler_flags=-v
14490 linker_flags=-v
14491 verstring=
14492 output_objdir=.
14493 libname=conftest
14494 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14495 allow_undefined_flag_F77=
14496 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14497 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14498 ac_status=$?
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); }
14501 then
14502 archive_cmds_need_lc_F77=no
14503 else
14504 archive_cmds_need_lc_F77=yes
14506 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14507 else
14508 cat conftest.err 1>&5
14510 $rm conftest*
14511 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14512 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14514 esac
14517 esac
14519 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14520 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14521 hardcode_action_F77=
14522 if test -n "$hardcode_libdir_flag_spec_F77" || \
14523 test -n "$runpath_var F77" || \
14524 test "X$hardcode_automatic_F77"="Xyes" ; then
14526 # We can hardcode non-existant directories.
14527 if test "$hardcode_direct_F77" != no &&
14528 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14529 # have to relink, otherwise we might link with an installed library
14530 # when we should be linking with a yet-to-be-installed one
14531 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14532 test "$hardcode_minus_L_F77" != no; then
14533 # Linking always hardcodes the temporary library directory.
14534 hardcode_action_F77=relink
14535 else
14536 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14537 hardcode_action_F77=immediate
14539 else
14540 # We cannot hardcode anything, or else we can only hardcode existing
14541 # directories.
14542 hardcode_action_F77=unsupported
14544 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14545 echo "${ECHO_T}$hardcode_action_F77" >&6
14547 if test "$hardcode_action_F77" = relink; then
14548 # Fast installation is not supported
14549 enable_fast_install=no
14550 elif test "$shlibpath_overrides_runpath" = yes ||
14551 test "$enable_shared" = no; then
14552 # Fast installation is not necessary
14553 enable_fast_install=needless
14556 striplib=
14557 old_striplib=
14558 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14559 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14560 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14561 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14562 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14563 echo "$as_me:$LINENO: result: yes" >&5
14564 echo "${ECHO_T}yes" >&6
14565 else
14566 # FIXME - insert some real tests, host_os isn't really good enough
14567 case $host_os in
14568 darwin*)
14569 if test -n "$STRIP" ; then
14570 striplib="$STRIP -x"
14571 echo "$as_me:$LINENO: result: yes" >&5
14572 echo "${ECHO_T}yes" >&6
14573 else
14574 echo "$as_me:$LINENO: result: no" >&5
14575 echo "${ECHO_T}no" >&6
14579 echo "$as_me:$LINENO: result: no" >&5
14580 echo "${ECHO_T}no" >&6
14582 esac
14585 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14586 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14587 library_names_spec=
14588 libname_spec='lib$name'
14589 soname_spec=
14590 shrext=".so"
14591 postinstall_cmds=
14592 postuninstall_cmds=
14593 finish_cmds=
14594 finish_eval=
14595 shlibpath_var=
14596 shlibpath_overrides_runpath=unknown
14597 version_type=none
14598 dynamic_linker="$host_os ld.so"
14599 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14600 if test "$GCC" = yes; then
14601 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14602 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14603 # if the path contains ";" then we assume it to be the separator
14604 # otherwise default to the standard path separator (i.e. ":") - it is
14605 # assumed that no part of a normal pathname contains ";" but that should
14606 # okay in the real world where ";" in dirpaths is itself problematic.
14607 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14608 else
14609 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14611 else
14612 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14614 need_lib_prefix=unknown
14615 hardcode_into_libs=no
14617 # when you set need_version to no, make sure it does not cause -set_version
14618 # flags to be left without arguments
14619 need_version=unknown
14621 case $host_os in
14622 aix3*)
14623 version_type=linux
14624 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14625 shlibpath_var=LIBPATH
14627 # AIX 3 has no versioning support, so we append a major version to the name.
14628 soname_spec='${libname}${release}${shared_ext}$major'
14631 aix4* | aix5*)
14632 version_type=linux
14633 need_lib_prefix=no
14634 need_version=no
14635 hardcode_into_libs=yes
14636 if test "$host_cpu" = ia64; then
14637 # AIX 5 supports IA64
14638 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14639 shlibpath_var=LD_LIBRARY_PATH
14640 else
14641 # With GCC up to 2.95.x, collect2 would create an import file
14642 # for dependence libraries. The import file would start with
14643 # the line `#! .'. This would cause the generated library to
14644 # depend on `.', always an invalid library. This was fixed in
14645 # development snapshots of GCC prior to 3.0.
14646 case $host_os in
14647 aix4 | aix4.[01] | aix4.[01].*)
14648 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14649 echo ' yes '
14650 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14652 else
14653 can_build_shared=no
14656 esac
14657 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14658 # soname into executable. Probably we can add versioning support to
14659 # collect2, so additional links can be useful in future.
14660 if test "$aix_use_runtimelinking" = yes; then
14661 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14662 # instead of lib<name>.a to let people know that these are not
14663 # typical AIX shared libraries.
14664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14665 else
14666 # We preserve .a as extension for shared libraries through AIX4.2
14667 # and later when we are not doing run time linking.
14668 library_names_spec='${libname}${release}.a $libname.a'
14669 soname_spec='${libname}${release}${shared_ext}$major'
14671 shlibpath_var=LIBPATH
14675 amigaos*)
14676 library_names_spec='$libname.ixlibrary $libname.a'
14677 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14678 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'
14681 beos*)
14682 library_names_spec='${libname}${shared_ext}'
14683 dynamic_linker="$host_os ld.so"
14684 shlibpath_var=LIBRARY_PATH
14687 bsdi4*)
14688 version_type=linux
14689 need_version=no
14690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14691 soname_spec='${libname}${release}${shared_ext}$major'
14692 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14693 shlibpath_var=LD_LIBRARY_PATH
14694 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14695 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14696 # the default ld.so.conf also contains /usr/contrib/lib and
14697 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14698 # libtool to hard-code these into programs
14701 cygwin* | mingw* | pw32*)
14702 version_type=windows
14703 shrext=".dll"
14704 need_version=no
14705 need_lib_prefix=no
14707 case $GCC,$host_os in
14708 yes,cygwin* | yes,mingw* | yes,pw32*)
14709 library_names_spec='$libname.dll.a'
14710 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14711 postinstall_cmds='base_file=`basename \${file}`~
14712 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14713 dldir=$destdir/`dirname \$dlpath`~
14714 test -d \$dldir || mkdir -p \$dldir~
14715 $install_prog $dir/$dlname \$dldir/$dlname'
14716 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14717 dlpath=$dir/\$dldll~
14718 $rm \$dlpath'
14719 shlibpath_overrides_runpath=yes
14721 case $host_os in
14722 cygwin*)
14723 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14724 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14725 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14727 mingw*)
14728 # MinGW DLLs use traditional 'lib' prefix
14729 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14730 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14731 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14732 # It is most probably a Windows format PATH printed by
14733 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14734 # path with ; separators, and with drive letters. We can handle the
14735 # drive letters (cygwin fileutils understands them), so leave them,
14736 # especially as we might pass files found there to a mingw objdump,
14737 # which wouldn't understand a cygwinified path. Ahh.
14738 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14739 else
14740 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14743 pw32*)
14744 # pw32 DLLs use 'pw' prefix rather than 'lib'
14745 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14747 esac
14751 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14753 esac
14754 dynamic_linker='Win32 ld.exe'
14755 # FIXME: first we should search . and the directory the executable is in
14756 shlibpath_var=PATH
14759 darwin* | rhapsody*)
14760 dynamic_linker="$host_os dyld"
14761 version_type=darwin
14762 need_lib_prefix=no
14763 need_version=no
14764 # FIXME: Relying on posixy $() will cause problems for
14765 # cross-compilation, but unfortunately the echo tests do not
14766 # yet detect zsh echo's removal of \ escapes.
14767 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14768 soname_spec='${libname}${release}${major}$shared_ext'
14769 shlibpath_overrides_runpath=yes
14770 shlibpath_var=DYLD_LIBRARY_PATH
14771 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14772 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14773 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14774 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"`
14776 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14779 dgux*)
14780 version_type=linux
14781 need_lib_prefix=no
14782 need_version=no
14783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14784 soname_spec='${libname}${release}${shared_ext}$major'
14785 shlibpath_var=LD_LIBRARY_PATH
14788 freebsd1*)
14789 dynamic_linker=no
14792 freebsd*)
14793 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14794 version_type=freebsd-$objformat
14795 case $version_type in
14796 freebsd-elf*)
14797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14798 need_version=no
14799 need_lib_prefix=no
14801 freebsd-*)
14802 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14803 need_version=yes
14805 esac
14806 shlibpath_var=LD_LIBRARY_PATH
14807 case $host_os in
14808 freebsd2*)
14809 shlibpath_overrides_runpath=yes
14811 freebsd3.01* | freebsdelf3.01*)
14812 shlibpath_overrides_runpath=yes
14813 hardcode_into_libs=yes
14815 *) # from 3.2 on
14816 shlibpath_overrides_runpath=no
14817 hardcode_into_libs=yes
14819 esac
14822 gnu*)
14823 version_type=linux
14824 need_lib_prefix=no
14825 need_version=no
14826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14827 soname_spec='${libname}${release}${shared_ext}$major'
14828 shlibpath_var=LD_LIBRARY_PATH
14829 hardcode_into_libs=yes
14832 hpux9* | hpux10* | hpux11*)
14833 # Give a soname corresponding to the major version so that dld.sl refuses to
14834 # link against other versions.
14835 version_type=sunos
14836 need_lib_prefix=no
14837 need_version=no
14838 case "$host_cpu" in
14839 ia64*)
14840 shrext='.so'
14841 hardcode_into_libs=yes
14842 dynamic_linker="$host_os dld.so"
14843 shlibpath_var=LD_LIBRARY_PATH
14844 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14846 soname_spec='${libname}${release}${shared_ext}$major'
14847 if test "X$HPUX_IA64_MODE" = X32; then
14848 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14849 else
14850 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14852 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14854 hppa*64*)
14855 shrext='.sl'
14856 hardcode_into_libs=yes
14857 dynamic_linker="$host_os dld.sl"
14858 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14859 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14861 soname_spec='${libname}${release}${shared_ext}$major'
14862 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14863 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14866 shrext='.sl'
14867 dynamic_linker="$host_os dld.sl"
14868 shlibpath_var=SHLIB_PATH
14869 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14871 soname_spec='${libname}${release}${shared_ext}$major'
14873 esac
14874 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14875 postinstall_cmds='chmod 555 $lib'
14878 irix5* | irix6* | nonstopux*)
14879 case $host_os in
14880 nonstopux*) version_type=nonstopux ;;
14882 if test "$lt_cv_prog_gnu_ld" = yes; then
14883 version_type=linux
14884 else
14885 version_type=irix
14886 fi ;;
14887 esac
14888 need_lib_prefix=no
14889 need_version=no
14890 soname_spec='${libname}${release}${shared_ext}$major'
14891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14892 case $host_os in
14893 irix5* | nonstopux*)
14894 libsuff= shlibsuff=
14897 case $LD in # libtool.m4 will add one of these switches to LD
14898 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14899 libsuff= shlibsuff= libmagic=32-bit;;
14900 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14901 libsuff=32 shlibsuff=N32 libmagic=N32;;
14902 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14903 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14904 *) libsuff= shlibsuff= libmagic=never-match;;
14905 esac
14907 esac
14908 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14909 shlibpath_overrides_runpath=no
14910 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14911 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14912 hardcode_into_libs=yes
14915 # No shared lib support for Linux oldld, aout, or coff.
14916 linux*oldld* | linux*aout* | linux*coff*)
14917 dynamic_linker=no
14920 # This must be Linux ELF.
14921 linux*)
14922 version_type=linux
14923 need_lib_prefix=no
14924 need_version=no
14925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14926 soname_spec='${libname}${release}${shared_ext}$major'
14927 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14928 shlibpath_var=LD_LIBRARY_PATH
14929 shlibpath_overrides_runpath=no
14930 # This implies no fast_install, which is unacceptable.
14931 # Some rework will be needed to allow for fast_install
14932 # before this can be enabled.
14933 hardcode_into_libs=yes
14935 # We used to test for /lib/ld.so.1 and disable shared libraries on
14936 # powerpc, because MkLinux only supported shared libraries with the
14937 # GNU dynamic linker. Since this was broken with cross compilers,
14938 # most powerpc-linux boxes support dynamic linking these days and
14939 # people can always --disable-shared, the test was removed, and we
14940 # assume the GNU/Linux dynamic linker is in use.
14941 dynamic_linker='GNU/Linux ld.so'
14944 netbsd*)
14945 version_type=sunos
14946 need_lib_prefix=no
14947 need_version=no
14948 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14950 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14951 dynamic_linker='NetBSD (a.out) ld.so'
14952 else
14953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14954 soname_spec='${libname}${release}${shared_ext}$major'
14955 dynamic_linker='NetBSD ld.elf_so'
14957 shlibpath_var=LD_LIBRARY_PATH
14958 shlibpath_overrides_runpath=yes
14959 hardcode_into_libs=yes
14962 newsos6)
14963 version_type=linux
14964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14965 shlibpath_var=LD_LIBRARY_PATH
14966 shlibpath_overrides_runpath=yes
14969 nto-qnx)
14970 version_type=linux
14971 need_lib_prefix=no
14972 need_version=no
14973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14974 soname_spec='${libname}${release}${shared_ext}$major'
14975 shlibpath_var=LD_LIBRARY_PATH
14976 shlibpath_overrides_runpath=yes
14979 openbsd*)
14980 version_type=sunos
14981 need_lib_prefix=no
14982 need_version=no
14983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14984 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14985 shlibpath_var=LD_LIBRARY_PATH
14986 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14987 case $host_os in
14988 openbsd2.[89] | openbsd2.[89].*)
14989 shlibpath_overrides_runpath=no
14992 shlibpath_overrides_runpath=yes
14994 esac
14995 else
14996 shlibpath_overrides_runpath=yes
15000 os2*)
15001 libname_spec='$name'
15002 shrext=".dll"
15003 need_lib_prefix=no
15004 library_names_spec='$libname${shared_ext} $libname.a'
15005 dynamic_linker='OS/2 ld.exe'
15006 shlibpath_var=LIBPATH
15009 osf3* | osf4* | osf5*)
15010 version_type=osf
15011 need_lib_prefix=no
15012 need_version=no
15013 soname_spec='${libname}${release}${shared_ext}$major'
15014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15015 shlibpath_var=LD_LIBRARY_PATH
15016 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15017 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15020 sco3.2v5*)
15021 version_type=osf
15022 soname_spec='${libname}${release}${shared_ext}$major'
15023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15024 shlibpath_var=LD_LIBRARY_PATH
15027 solaris*)
15028 version_type=linux
15029 need_lib_prefix=no
15030 need_version=no
15031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15032 soname_spec='${libname}${release}${shared_ext}$major'
15033 shlibpath_var=LD_LIBRARY_PATH
15034 shlibpath_overrides_runpath=yes
15035 hardcode_into_libs=yes
15036 # ldd complains unless libraries are executable
15037 postinstall_cmds='chmod +x $lib'
15040 sunos4*)
15041 version_type=sunos
15042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15043 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15044 shlibpath_var=LD_LIBRARY_PATH
15045 shlibpath_overrides_runpath=yes
15046 if test "$with_gnu_ld" = yes; then
15047 need_lib_prefix=no
15049 need_version=yes
15052 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15053 version_type=linux
15054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15055 soname_spec='${libname}${release}${shared_ext}$major'
15056 shlibpath_var=LD_LIBRARY_PATH
15057 case $host_vendor in
15058 sni)
15059 shlibpath_overrides_runpath=no
15060 need_lib_prefix=no
15061 export_dynamic_flag_spec='${wl}-Blargedynsym'
15062 runpath_var=LD_RUN_PATH
15064 siemens)
15065 need_lib_prefix=no
15067 motorola)
15068 need_lib_prefix=no
15069 need_version=no
15070 shlibpath_overrides_runpath=no
15071 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15073 esac
15076 sysv4*MP*)
15077 if test -d /usr/nec ;then
15078 version_type=linux
15079 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15080 soname_spec='$libname${shared_ext}.$major'
15081 shlibpath_var=LD_LIBRARY_PATH
15085 uts4*)
15086 version_type=linux
15087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15088 soname_spec='${libname}${release}${shared_ext}$major'
15089 shlibpath_var=LD_LIBRARY_PATH
15093 dynamic_linker=no
15095 esac
15096 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15097 echo "${ECHO_T}$dynamic_linker" >&6
15098 test "$dynamic_linker" = no && can_build_shared=no
15101 # The else clause should only fire when bootstrapping the
15102 # libtool distribution, otherwise you forgot to ship ltmain.sh
15103 # with your package, and you will get complaints that there are
15104 # no rules to generate ltmain.sh.
15105 if test -f "$ltmain"; then
15106 # See if we are running on zsh, and set the options which allow our commands through
15107 # without removal of \ escapes.
15108 if test -n "${ZSH_VERSION+set}" ; then
15109 setopt NO_GLOB_SUBST
15111 # Now quote all the things that may contain metacharacters while being
15112 # careful not to overquote the AC_SUBSTed values. We take copies of the
15113 # variables and quote the copies for generation of the libtool script.
15114 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
15115 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15116 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15117 deplibs_check_method reload_flag reload_cmds need_locks \
15118 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15119 lt_cv_sys_global_symbol_to_c_name_address \
15120 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15121 old_postinstall_cmds old_postuninstall_cmds \
15122 compiler_F77 \
15123 CC_F77 \
15124 LD_F77 \
15125 lt_prog_compiler_wl_F77 \
15126 lt_prog_compiler_pic_F77 \
15127 lt_prog_compiler_static_F77 \
15128 lt_prog_compiler_no_builtin_flag_F77 \
15129 export_dynamic_flag_spec_F77 \
15130 thread_safe_flag_spec_F77 \
15131 whole_archive_flag_spec_F77 \
15132 enable_shared_with_static_runtimes_F77 \
15133 old_archive_cmds_F77 \
15134 old_archive_from_new_cmds_F77 \
15135 predep_objects_F77 \
15136 postdep_objects_F77 \
15137 predeps_F77 \
15138 postdeps_F77 \
15139 compiler_lib_search_path_F77 \
15140 archive_cmds_F77 \
15141 archive_expsym_cmds_F77 \
15142 postinstall_cmds_F77 \
15143 postuninstall_cmds_F77 \
15144 old_archive_from_expsyms_cmds_F77 \
15145 allow_undefined_flag_F77 \
15146 no_undefined_flag_F77 \
15147 export_symbols_cmds_F77 \
15148 hardcode_libdir_flag_spec_F77 \
15149 hardcode_libdir_flag_spec_ld_F77 \
15150 hardcode_libdir_separator_F77 \
15151 hardcode_automatic_F77 \
15152 module_cmds_F77 \
15153 module_expsym_cmds_F77 \
15154 lt_cv_prog_compiler_c_o_F77 \
15155 exclude_expsyms_F77 \
15156 include_expsyms_F77; do
15158 case $var in
15159 old_archive_cmds_F77 | \
15160 old_archive_from_new_cmds_F77 | \
15161 archive_cmds_F77 | \
15162 archive_expsym_cmds_F77 | \
15163 module_cmds_F77 | \
15164 module_expsym_cmds_F77 | \
15165 old_archive_from_expsyms_cmds_F77 | \
15166 export_symbols_cmds_F77 | \
15167 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15168 postinstall_cmds | postuninstall_cmds | \
15169 old_postinstall_cmds | old_postuninstall_cmds | \
15170 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15171 # Double-quote double-evaled strings.
15172 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15175 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15177 esac
15178 done
15180 case $lt_echo in
15181 *'\$0 --fallback-echo"')
15182 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15184 esac
15186 cfgfile="$ofile"
15188 cat <<__EOF__ >> "$cfgfile"
15189 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15191 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15193 # Shell to use when invoking shell scripts.
15194 SHELL=$lt_SHELL
15196 # Whether or not to build shared libraries.
15197 build_libtool_libs=$enable_shared
15199 # Whether or not to build static libraries.
15200 build_old_libs=$enable_static
15202 # Whether or not to add -lc for building shared libraries.
15203 build_libtool_need_lc=$archive_cmds_need_lc_F77
15205 # Whether or not to disallow shared libs when runtime libs are static
15206 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15208 # Whether or not to optimize for fast installation.
15209 fast_install=$enable_fast_install
15211 # The host system.
15212 host_alias=$host_alias
15213 host=$host
15215 # An echo program that does not interpret backslashes.
15216 echo=$lt_echo
15218 # The archiver.
15219 AR=$lt_AR
15220 AR_FLAGS=$lt_AR_FLAGS
15222 # A C compiler.
15223 LTCC=$lt_LTCC
15225 # A language-specific compiler.
15226 CC=$lt_compiler_F77
15228 # Is the compiler the GNU C compiler?
15229 with_gcc=$GCC_F77
15231 # An ERE matcher.
15232 EGREP=$lt_EGREP
15234 # The linker used to build libraries.
15235 LD=$lt_LD_F77
15237 # Whether we need hard or soft links.
15238 LN_S=$lt_LN_S
15240 # A BSD-compatible nm program.
15241 NM=$lt_NM
15243 # A symbol stripping program
15244 STRIP=$STRIP
15246 # Used to examine libraries when file_magic_cmd begins "file"
15247 MAGIC_CMD=$MAGIC_CMD
15249 # Used on cygwin: DLL creation program.
15250 DLLTOOL="$DLLTOOL"
15252 # Used on cygwin: object dumper.
15253 OBJDUMP="$OBJDUMP"
15255 # Used on cygwin: assembler.
15256 AS="$AS"
15258 # The name of the directory that contains temporary libtool files.
15259 objdir=$objdir
15261 # How to create reloadable object files.
15262 reload_flag=$lt_reload_flag
15263 reload_cmds=$lt_reload_cmds
15265 # How to pass a linker flag through the compiler.
15266 wl=$lt_lt_prog_compiler_wl_F77
15268 # Object file suffix (normally "o").
15269 objext="$ac_objext"
15271 # Old archive suffix (normally "a").
15272 libext="$libext"
15274 # Shared library suffix (normally ".so").
15275 shrext='$shrext'
15277 # Executable file suffix (normally "").
15278 exeext="$exeext"
15280 # Additional compiler flags for building library objects.
15281 pic_flag=$lt_lt_prog_compiler_pic_F77
15282 pic_mode=$pic_mode
15284 # What is the maximum length of a command?
15285 max_cmd_len=$lt_cv_sys_max_cmd_len
15287 # Does compiler simultaneously support -c and -o options?
15288 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15290 # Must we lock files when doing compilation ?
15291 need_locks=$lt_need_locks
15293 # Do we need the lib prefix for modules?
15294 need_lib_prefix=$need_lib_prefix
15296 # Do we need a version for libraries?
15297 need_version=$need_version
15299 # Whether dlopen is supported.
15300 dlopen_support=$enable_dlopen
15302 # Whether dlopen of programs is supported.
15303 dlopen_self=$enable_dlopen_self
15305 # Whether dlopen of statically linked programs is supported.
15306 dlopen_self_static=$enable_dlopen_self_static
15308 # Compiler flag to prevent dynamic linking.
15309 link_static_flag=$lt_lt_prog_compiler_static_F77
15311 # Compiler flag to turn off builtin functions.
15312 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15314 # Compiler flag to allow reflexive dlopens.
15315 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15317 # Compiler flag to generate shared objects directly from archives.
15318 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15320 # Compiler flag to generate thread-safe objects.
15321 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15323 # Library versioning type.
15324 version_type=$version_type
15326 # Format of library name prefix.
15327 libname_spec=$lt_libname_spec
15329 # List of archive names. First name is the real one, the rest are links.
15330 # The last name is the one that the linker finds with -lNAME.
15331 library_names_spec=$lt_library_names_spec
15333 # The coded name of the library, if different from the real name.
15334 soname_spec=$lt_soname_spec
15336 # Commands used to build and install an old-style archive.
15337 RANLIB=$lt_RANLIB
15338 old_archive_cmds=$lt_old_archive_cmds_F77
15339 old_postinstall_cmds=$lt_old_postinstall_cmds
15340 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15342 # Create an old-style archive from a shared archive.
15343 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15345 # Create a temporary old-style archive to link instead of a shared archive.
15346 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15348 # Commands used to build and install a shared archive.
15349 archive_cmds=$lt_archive_cmds_F77
15350 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15351 postinstall_cmds=$lt_postinstall_cmds
15352 postuninstall_cmds=$lt_postuninstall_cmds
15354 # Commands used to build a loadable module (assumed same as above if empty)
15355 module_cmds=$lt_module_cmds_F77
15356 module_expsym_cmds=$lt_module_expsym_cmds_F77
15358 # Commands to strip libraries.
15359 old_striplib=$lt_old_striplib
15360 striplib=$lt_striplib
15362 # Dependencies to place before the objects being linked to create a
15363 # shared library.
15364 predep_objects=$lt_predep_objects_F77
15366 # Dependencies to place after the objects being linked to create a
15367 # shared library.
15368 postdep_objects=$lt_postdep_objects_F77
15370 # Dependencies to place before the objects being linked to create a
15371 # shared library.
15372 predeps=$lt_predeps_F77
15374 # Dependencies to place after the objects being linked to create a
15375 # shared library.
15376 postdeps=$lt_postdeps_F77
15378 # The library search path used internally by the compiler when linking
15379 # a shared library.
15380 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15382 # Method to check whether dependent libraries are shared objects.
15383 deplibs_check_method=$lt_deplibs_check_method
15385 # Command to use when deplibs_check_method == file_magic.
15386 file_magic_cmd=$lt_file_magic_cmd
15388 # Flag that allows shared libraries with undefined symbols to be built.
15389 allow_undefined_flag=$lt_allow_undefined_flag_F77
15391 # Flag that forces no undefined symbols.
15392 no_undefined_flag=$lt_no_undefined_flag_F77
15394 # Commands used to finish a libtool library installation in a directory.
15395 finish_cmds=$lt_finish_cmds
15397 # Same as above, but a single script fragment to be evaled but not shown.
15398 finish_eval=$lt_finish_eval
15400 # Take the output of nm and produce a listing of raw symbols and C names.
15401 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15403 # Transform the output of nm in a proper C declaration
15404 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15406 # Transform the output of nm in a C name address pair
15407 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15409 # This is the shared library runtime path variable.
15410 runpath_var=$runpath_var
15412 # This is the shared library path variable.
15413 shlibpath_var=$shlibpath_var
15415 # Is shlibpath searched before the hard-coded library search path?
15416 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15418 # How to hardcode a shared library path into an executable.
15419 hardcode_action=$hardcode_action_F77
15421 # Whether we should hardcode library paths into libraries.
15422 hardcode_into_libs=$hardcode_into_libs
15424 # Flag to hardcode \$libdir into a binary during linking.
15425 # This must work even if \$libdir does not exist.
15426 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15428 # If ld is used when linking, flag to hardcode \$libdir into
15429 # a binary during linking. This must work even if \$libdir does
15430 # not exist.
15431 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15433 # Whether we need a single -rpath flag with a separated argument.
15434 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15436 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15437 # resulting binary.
15438 hardcode_direct=$hardcode_direct_F77
15440 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15441 # resulting binary.
15442 hardcode_minus_L=$hardcode_minus_L_F77
15444 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15445 # the resulting binary.
15446 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15448 # Set to yes if building a shared library automatically hardcodes DIR into the library
15449 # and all subsequent libraries and executables linked against it.
15450 hardcode_automatic=$hardcode_automatic_F77
15452 # Variables whose values should be saved in libtool wrapper scripts and
15453 # restored at relink time.
15454 variables_saved_for_relink="$variables_saved_for_relink"
15456 # Whether libtool must link a program against all its dependency libraries.
15457 link_all_deplibs=$link_all_deplibs_F77
15459 # Compile-time system search path for libraries
15460 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15462 # Run-time system search path for libraries
15463 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15465 # Fix the shell variable \$srcfile for the compiler.
15466 fix_srcfile_path="$fix_srcfile_path_F77"
15468 # Set to yes if exported symbols are required.
15469 always_export_symbols=$always_export_symbols_F77
15471 # The commands to list exported symbols.
15472 export_symbols_cmds=$lt_export_symbols_cmds_F77
15474 # The commands to extract the exported symbol list from a shared archive.
15475 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15477 # Symbols that should not be listed in the preloaded symbols.
15478 exclude_expsyms=$lt_exclude_expsyms_F77
15480 # Symbols that must always be exported.
15481 include_expsyms=$lt_include_expsyms_F77
15483 # ### END LIBTOOL TAG CONFIG: $tagname
15485 __EOF__
15488 else
15489 # If there is no Makefile yet, we rely on a make rule to execute
15490 # `config.status --recheck' to rerun these tests and create the
15491 # libtool script then.
15492 test -f Makefile && make "$ltmain"
15496 ac_ext=c
15497 ac_cpp='$CPP $CPPFLAGS'
15498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15502 CC="$lt_save_CC"
15504 else
15505 tagname=""
15509 GCJ)
15510 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15514 # Source file extension for Java test sources.
15515 ac_ext=java
15517 # Object file extension for compiled Java test sources.
15518 objext=o
15519 objext_GCJ=$objext
15521 # Code to be used in simple compile tests
15522 lt_simple_compile_test_code="class foo {}\n"
15524 # Code to be used in simple link tests
15525 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15527 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15529 # If no C compiler was specified, use CC.
15530 LTCC=${LTCC-"$CC"}
15532 # Allow CC to be a program name with arguments.
15533 compiler=$CC
15536 # Allow CC to be a program name with arguments.
15537 lt_save_CC="$CC"
15538 CC=${GCJ-"gcj"}
15539 compiler=$CC
15540 compiler_GCJ=$CC
15542 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15543 archive_cmds_need_lc_GCJ=no
15546 lt_prog_compiler_no_builtin_flag_GCJ=
15548 if test "$GCC" = yes; then
15549 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15551 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15552 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15553 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15554 echo $ECHO_N "(cached) $ECHO_C" >&6
15555 else
15556 lt_cv_prog_compiler_rtti_exceptions=no
15557 ac_outfile=conftest.$ac_objext
15558 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15559 lt_compiler_flag="-fno-rtti -fno-exceptions"
15560 # Insert the option either (1) after the last *FLAGS variable, or
15561 # (2) before a word containing "conftest.", or (3) at the end.
15562 # Note that $ac_compile itself does not contain backslashes and begins
15563 # with a dollar sign (not a hyphen), so the echo should work correctly.
15564 # The option is referenced via a variable to avoid confusing sed.
15565 lt_compile=`echo "$ac_compile" | $SED \
15566 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15567 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15568 -e 's:$: $lt_compiler_flag:'`
15569 (eval echo "\"\$as_me:15569: $lt_compile\"" >&5)
15570 (eval "$lt_compile" 2>conftest.err)
15571 ac_status=$?
15572 cat conftest.err >&5
15573 echo "$as_me:15573: \$? = $ac_status" >&5
15574 if (exit $ac_status) && test -s "$ac_outfile"; then
15575 # The compiler can only warn and ignore the option if not recognized
15576 # So say no if there are warnings
15577 if test ! -s conftest.err; then
15578 lt_cv_prog_compiler_rtti_exceptions=yes
15581 $rm conftest*
15584 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15585 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15587 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15588 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15589 else
15595 lt_prog_compiler_wl_GCJ=
15596 lt_prog_compiler_pic_GCJ=
15597 lt_prog_compiler_static_GCJ=
15599 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15600 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15602 if test "$GCC" = yes; then
15603 lt_prog_compiler_wl_GCJ='-Wl,'
15604 lt_prog_compiler_static_GCJ='-static'
15606 case $host_os in
15607 aix*)
15608 # All AIX code is PIC.
15609 if test "$host_cpu" = ia64; then
15610 # AIX 5 now supports IA64 processor
15611 lt_prog_compiler_static_GCJ='-Bstatic'
15615 amigaos*)
15616 # FIXME: we need at least 68020 code to build shared libraries, but
15617 # adding the `-m68020' flag to GCC prevents building anything better,
15618 # like `-m68040'.
15619 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15622 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15623 # PIC is the default for these OSes.
15626 mingw* | pw32* | os2*)
15627 # This hack is so that the source file can tell whether it is being
15628 # built for inclusion in a dll (and should export symbols for example).
15629 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15632 darwin* | rhapsody*)
15633 # PIC is the default on this platform
15634 # Common symbols not allowed in MH_DYLIB files
15635 lt_prog_compiler_pic_GCJ='-fno-common'
15638 msdosdjgpp*)
15639 # Just because we use GCC doesn't mean we suddenly get shared libraries
15640 # on systems that don't support them.
15641 lt_prog_compiler_can_build_shared_GCJ=no
15642 enable_shared=no
15645 sysv4*MP*)
15646 if test -d /usr/nec; then
15647 lt_prog_compiler_pic_GCJ=-Kconform_pic
15651 hpux*)
15652 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15653 # not for PA HP-UX.
15654 case "$host_cpu" in
15655 hppa*64*|ia64*)
15656 # +Z the default
15659 lt_prog_compiler_pic_GCJ='-fPIC'
15661 esac
15665 lt_prog_compiler_pic_GCJ='-fPIC'
15667 esac
15668 else
15669 # PORTME Check for flag to pass linker flags through the system compiler.
15670 case $host_os in
15671 aix*)
15672 lt_prog_compiler_wl_GCJ='-Wl,'
15673 if test "$host_cpu" = ia64; then
15674 # AIX 5 now supports IA64 processor
15675 lt_prog_compiler_static_GCJ='-Bstatic'
15676 else
15677 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15681 mingw* | pw32* | os2*)
15682 # This hack is so that the source file can tell whether it is being
15683 # built for inclusion in a dll (and should export symbols for example).
15684 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15687 hpux9* | hpux10* | hpux11*)
15688 lt_prog_compiler_wl_GCJ='-Wl,'
15689 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15690 # not for PA HP-UX.
15691 case "$host_cpu" in
15692 hppa*64*|ia64*)
15693 # +Z the default
15696 lt_prog_compiler_pic_GCJ='+Z'
15698 esac
15699 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15700 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15703 irix5* | irix6* | nonstopux*)
15704 lt_prog_compiler_wl_GCJ='-Wl,'
15705 # PIC (with -KPIC) is the default.
15706 lt_prog_compiler_static_GCJ='-non_shared'
15709 newsos6)
15710 lt_prog_compiler_pic_GCJ='-KPIC'
15711 lt_prog_compiler_static_GCJ='-Bstatic'
15714 linux*)
15715 case $CC in
15716 icc|ecc)
15717 lt_prog_compiler_wl_GCJ='-Wl,'
15718 lt_prog_compiler_pic_GCJ='-KPIC'
15719 lt_prog_compiler_static_GCJ='-static'
15721 ccc)
15722 lt_prog_compiler_wl_GCJ='-Wl,'
15723 # All Alpha code is PIC.
15724 lt_prog_compiler_static_GCJ='-non_shared'
15726 esac
15729 osf3* | osf4* | osf5*)
15730 lt_prog_compiler_wl_GCJ='-Wl,'
15731 # All OSF/1 code is PIC.
15732 lt_prog_compiler_static_GCJ='-non_shared'
15735 sco3.2v5*)
15736 lt_prog_compiler_pic_GCJ='-Kpic'
15737 lt_prog_compiler_static_GCJ='-dn'
15740 solaris*)
15741 lt_prog_compiler_wl_GCJ='-Wl,'
15742 lt_prog_compiler_pic_GCJ='-KPIC'
15743 lt_prog_compiler_static_GCJ='-Bstatic'
15746 sunos4*)
15747 lt_prog_compiler_wl_GCJ='-Qoption ld '
15748 lt_prog_compiler_pic_GCJ='-PIC'
15749 lt_prog_compiler_static_GCJ='-Bstatic'
15752 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15753 lt_prog_compiler_wl_GCJ='-Wl,'
15754 lt_prog_compiler_pic_GCJ='-KPIC'
15755 lt_prog_compiler_static_GCJ='-Bstatic'
15758 sysv4*MP*)
15759 if test -d /usr/nec ;then
15760 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15761 lt_prog_compiler_static_GCJ='-Bstatic'
15765 uts4*)
15766 lt_prog_compiler_pic_GCJ='-pic'
15767 lt_prog_compiler_static_GCJ='-Bstatic'
15771 lt_prog_compiler_can_build_shared_GCJ=no
15773 esac
15776 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15777 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15780 # Check to make sure the PIC flag actually works.
15782 if test -n "$lt_prog_compiler_pic_GCJ"; then
15783 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15784 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15785 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15786 echo $ECHO_N "(cached) $ECHO_C" >&6
15787 else
15788 lt_prog_compiler_pic_works_GCJ=no
15789 ac_outfile=conftest.$ac_objext
15790 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15791 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15792 # Insert the option either (1) after the last *FLAGS variable, or
15793 # (2) before a word containing "conftest.", or (3) at the end.
15794 # Note that $ac_compile itself does not contain backslashes and begins
15795 # with a dollar sign (not a hyphen), so the echo should work correctly.
15796 # The option is referenced via a variable to avoid confusing sed.
15797 lt_compile=`echo "$ac_compile" | $SED \
15798 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15799 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15800 -e 's:$: $lt_compiler_flag:'`
15801 (eval echo "\"\$as_me:15801: $lt_compile\"" >&5)
15802 (eval "$lt_compile" 2>conftest.err)
15803 ac_status=$?
15804 cat conftest.err >&5
15805 echo "$as_me:15805: \$? = $ac_status" >&5
15806 if (exit $ac_status) && test -s "$ac_outfile"; then
15807 # The compiler can only warn and ignore the option if not recognized
15808 # So say no if there are warnings
15809 if test ! -s conftest.err; then
15810 lt_prog_compiler_pic_works_GCJ=yes
15813 $rm conftest*
15816 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15817 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15819 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15820 case $lt_prog_compiler_pic_GCJ in
15821 "" | " "*) ;;
15822 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15823 esac
15824 else
15825 lt_prog_compiler_pic_GCJ=
15826 lt_prog_compiler_can_build_shared_GCJ=no
15830 case "$host_os" in
15831 # For platforms which do not support PIC, -DPIC is meaningless:
15832 *djgpp*)
15833 lt_prog_compiler_pic_GCJ=
15836 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15838 esac
15840 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15841 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15842 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15843 echo $ECHO_N "(cached) $ECHO_C" >&6
15844 else
15845 lt_cv_prog_compiler_c_o_GCJ=no
15846 $rm -r conftest 2>/dev/null
15847 mkdir conftest
15848 cd conftest
15849 mkdir out
15850 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15852 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15853 # that will create temporary files in the current directory regardless of
15854 # the output directory. Thus, making CWD read-only will cause this test
15855 # to fail, enabling locking or at least warning the user not to do parallel
15856 # builds.
15857 chmod -w .
15859 lt_compiler_flag="-o out/conftest2.$ac_objext"
15860 # Insert the option either (1) after the last *FLAGS variable, or
15861 # (2) before a word containing "conftest.", or (3) at the end.
15862 # Note that $ac_compile itself does not contain backslashes and begins
15863 # with a dollar sign (not a hyphen), so the echo should work correctly.
15864 lt_compile=`echo "$ac_compile" | $SED \
15865 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15866 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15867 -e 's:$: $lt_compiler_flag:'`
15868 (eval echo "\"\$as_me:15868: $lt_compile\"" >&5)
15869 (eval "$lt_compile" 2>out/conftest.err)
15870 ac_status=$?
15871 cat out/conftest.err >&5
15872 echo "$as_me:15872: \$? = $ac_status" >&5
15873 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15874 then
15875 # The compiler can only warn and ignore the option if not recognized
15876 # So say no if there are warnings
15877 if test ! -s out/conftest.err; then
15878 lt_cv_prog_compiler_c_o_GCJ=yes
15881 chmod u+w .
15882 $rm conftest* out/*
15883 rmdir out
15884 cd ..
15885 rmdir conftest
15886 $rm conftest*
15889 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15890 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15893 hard_links="nottested"
15894 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15895 # do not overwrite the value of need_locks provided by the user
15896 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15897 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15898 hard_links=yes
15899 $rm conftest*
15900 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15901 touch conftest.a
15902 ln conftest.a conftest.b 2>&5 || hard_links=no
15903 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15904 echo "$as_me:$LINENO: result: $hard_links" >&5
15905 echo "${ECHO_T}$hard_links" >&6
15906 if test "$hard_links" = no; then
15907 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15908 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15909 need_locks=warn
15911 else
15912 need_locks=no
15915 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15916 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15918 runpath_var=
15919 allow_undefined_flag_GCJ=
15920 enable_shared_with_static_runtimes_GCJ=no
15921 archive_cmds_GCJ=
15922 archive_expsym_cmds_GCJ=
15923 old_archive_From_new_cmds_GCJ=
15924 old_archive_from_expsyms_cmds_GCJ=
15925 export_dynamic_flag_spec_GCJ=
15926 whole_archive_flag_spec_GCJ=
15927 thread_safe_flag_spec_GCJ=
15928 hardcode_libdir_flag_spec_GCJ=
15929 hardcode_libdir_flag_spec_ld_GCJ=
15930 hardcode_libdir_separator_GCJ=
15931 hardcode_direct_GCJ=no
15932 hardcode_minus_L_GCJ=no
15933 hardcode_shlibpath_var_GCJ=unsupported
15934 link_all_deplibs_GCJ=unknown
15935 hardcode_automatic_GCJ=no
15936 module_cmds_GCJ=
15937 module_expsym_cmds_GCJ=
15938 always_export_symbols_GCJ=no
15939 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15940 # include_expsyms should be a list of space-separated symbols to be *always*
15941 # included in the symbol list
15942 include_expsyms_GCJ=
15943 # exclude_expsyms can be an extended regexp of symbols to exclude
15944 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15945 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15946 # as well as any symbol that contains `d'.
15947 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15948 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15949 # platforms (ab)use it in PIC code, but their linkers get confused if
15950 # the symbol is explicitly referenced. Since portable code cannot
15951 # rely on this symbol name, it's probably fine to never include it in
15952 # preloaded symbol tables.
15953 extract_expsyms_cmds=
15955 case $host_os in
15956 cygwin* | mingw* | pw32*)
15957 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15958 # When not using gcc, we currently assume that we are using
15959 # Microsoft Visual C++.
15960 if test "$GCC" != yes; then
15961 with_gnu_ld=no
15964 openbsd*)
15965 with_gnu_ld=no
15967 esac
15969 ld_shlibs_GCJ=yes
15970 if test "$with_gnu_ld" = yes; then
15971 # If archive_cmds runs LD, not CC, wlarc should be empty
15972 wlarc='${wl}'
15974 # See if GNU ld supports shared libraries.
15975 case $host_os in
15976 aix3* | aix4* | aix5*)
15977 # On AIX/PPC, the GNU linker is very broken
15978 if test "$host_cpu" != ia64; then
15979 ld_shlibs_GCJ=no
15980 cat <<EOF 1>&2
15982 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15983 *** to be unable to reliably create shared libraries on AIX.
15984 *** Therefore, libtool is disabling shared libraries support. If you
15985 *** really care for shared libraries, you may want to modify your PATH
15986 *** so that a non-GNU linker is found, and then restart.
15992 amigaos*)
15993 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)'
15994 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15995 hardcode_minus_L_GCJ=yes
15997 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15998 # that the semantics of dynamic libraries on AmigaOS, at least up
15999 # to version 4, is to share data among multiple programs linked
16000 # with the same dynamic library. Since this doesn't match the
16001 # behavior of shared libraries on other platforms, we can't use
16002 # them.
16003 ld_shlibs_GCJ=no
16006 beos*)
16007 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16008 allow_undefined_flag_GCJ=unsupported
16009 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16010 # support --undefined. This deserves some investigation. FIXME
16011 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16012 else
16013 ld_shlibs_GCJ=no
16017 cygwin* | mingw* | pw32*)
16018 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16019 # as there is no search path for DLLs.
16020 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16021 allow_undefined_flag_GCJ=unsupported
16022 always_export_symbols_GCJ=no
16023 enable_shared_with_static_runtimes_GCJ=yes
16024 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16026 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16027 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16028 # If the export-symbols file already is a .def file (1st line
16029 # is EXPORTS), use it as is; otherwise, prepend...
16030 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16031 cp $export_symbols $output_objdir/$soname.def;
16032 else
16033 echo EXPORTS > $output_objdir/$soname.def;
16034 cat $export_symbols >> $output_objdir/$soname.def;
16036 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16037 else
16038 ld_shlibs=no
16042 netbsd*)
16043 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16044 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16045 wlarc=
16046 else
16047 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16048 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16052 solaris* | sysv5*)
16053 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16054 ld_shlibs_GCJ=no
16055 cat <<EOF 1>&2
16057 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16058 *** create shared libraries on Solaris systems. Therefore, libtool
16059 *** is disabling shared libraries support. We urge you to upgrade GNU
16060 *** binutils to release 2.9.1 or newer. Another option is to modify
16061 *** your PATH or compiler configuration so that the native linker is
16062 *** used, and then restart.
16065 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16066 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16067 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16068 else
16069 ld_shlibs_GCJ=no
16073 sunos4*)
16074 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16075 wlarc=
16076 hardcode_direct_GCJ=yes
16077 hardcode_shlibpath_var_GCJ=no
16081 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16082 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16083 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16084 else
16085 ld_shlibs_GCJ=no
16088 esac
16090 if test "$ld_shlibs_GCJ" = yes; then
16091 runpath_var=LD_RUN_PATH
16092 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16093 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16094 # ancient GNU ld didn't support --whole-archive et. al.
16095 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16096 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16097 else
16098 whole_archive_flag_spec_GCJ=
16101 else
16102 # PORTME fill in a description of your system's linker (not GNU ld)
16103 case $host_os in
16104 aix3*)
16105 allow_undefined_flag_GCJ=unsupported
16106 always_export_symbols_GCJ=yes
16107 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'
16108 # Note: this linker hardcodes the directories in LIBPATH if there
16109 # are no directories specified by -L.
16110 hardcode_minus_L_GCJ=yes
16111 if test "$GCC" = yes && test -z "$link_static_flag"; then
16112 # Neither direct hardcoding nor static linking is supported with a
16113 # broken collect2.
16114 hardcode_direct_GCJ=unsupported
16118 aix4* | aix5*)
16119 if test "$host_cpu" = ia64; then
16120 # On IA64, the linker does run time linking by default, so we don't
16121 # have to do anything special.
16122 aix_use_runtimelinking=no
16123 exp_sym_flag='-Bexport'
16124 no_entry_flag=""
16125 else
16126 # If we're using GNU nm, then we don't want the "-C" option.
16127 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16128 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16129 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'
16130 else
16131 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'
16133 aix_use_runtimelinking=no
16135 # Test if we are trying to use run time linking or normal
16136 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16137 # need to do runtime linking.
16138 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16139 for ld_flag in $LDFLAGS; do
16140 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16141 aix_use_runtimelinking=yes
16142 break
16144 done
16145 esac
16147 exp_sym_flag='-bexport'
16148 no_entry_flag='-bnoentry'
16151 # When large executables or shared objects are built, AIX ld can
16152 # have problems creating the table of contents. If linking a library
16153 # or program results in "error TOC overflow" add -mminimal-toc to
16154 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16155 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16157 archive_cmds_GCJ=''
16158 hardcode_direct_GCJ=yes
16159 hardcode_libdir_separator_GCJ=':'
16160 link_all_deplibs_GCJ=yes
16162 if test "$GCC" = yes; then
16163 case $host_os in aix4.012|aix4.012.*)
16164 # We only want to do this on AIX 4.2 and lower, the check
16165 # below for broken collect2 doesn't work under 4.3+
16166 collect2name=`${CC} -print-prog-name=collect2`
16167 if test -f "$collect2name" && \
16168 strings "$collect2name" | grep resolve_lib_name >/dev/null
16169 then
16170 # We have reworked collect2
16171 hardcode_direct_GCJ=yes
16172 else
16173 # We have old collect2
16174 hardcode_direct_GCJ=unsupported
16175 # It fails to find uninstalled libraries when the uninstalled
16176 # path is not listed in the libpath. Setting hardcode_minus_L
16177 # to unsupported forces relinking
16178 hardcode_minus_L_GCJ=yes
16179 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16180 hardcode_libdir_separator_GCJ=
16182 esac
16183 shared_flag='-shared'
16184 else
16185 # not using gcc
16186 if test "$host_cpu" = ia64; then
16187 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16188 # chokes on -Wl,-G. The following line is correct:
16189 shared_flag='-G'
16190 else
16191 if test "$aix_use_runtimelinking" = yes; then
16192 shared_flag='${wl}-G'
16193 else
16194 shared_flag='${wl}-bM:SRE'
16199 # It seems that -bexpall does not export symbols beginning with
16200 # underscore (_), so it is better to generate a list of symbols to export.
16201 always_export_symbols_GCJ=yes
16202 if test "$aix_use_runtimelinking" = yes; then
16203 # Warning - without using the other runtime loading flags (-brtl),
16204 # -berok will link without error, but may produce a broken library.
16205 allow_undefined_flag_GCJ='-berok'
16206 # Determine the default libpath from the value encoded in an empty executable.
16207 cat >conftest.$ac_ext <<_ACEOF
16208 /* confdefs.h. */
16209 _ACEOF
16210 cat confdefs.h >>conftest.$ac_ext
16211 cat >>conftest.$ac_ext <<_ACEOF
16212 /* end confdefs.h. */
16215 main ()
16219 return 0;
16221 _ACEOF
16222 rm -f conftest.$ac_objext conftest$ac_exeext
16223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16224 (eval $ac_link) 2>conftest.er1
16225 ac_status=$?
16226 grep -v '^ *+' conftest.er1 >conftest.err
16227 rm -f conftest.er1
16228 cat conftest.err >&5
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); } &&
16231 { ac_try='test -z "$ac_c_werror_flag"
16232 || test ! -s conftest.err'
16233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16234 (eval $ac_try) 2>&5
16235 ac_status=$?
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); }; } &&
16238 { ac_try='test -s conftest$ac_exeext'
16239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16240 (eval $ac_try) 2>&5
16241 ac_status=$?
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); }; }; then
16245 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16247 # Check for a 64-bit object if we didn't find anything.
16248 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; }
16249 }'`; fi
16250 else
16251 echo "$as_me: failed program was:" >&5
16252 sed 's/^/| /' conftest.$ac_ext >&5
16255 rm -f conftest.err conftest.$ac_objext \
16256 conftest$ac_exeext conftest.$ac_ext
16257 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16259 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16260 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"
16261 else
16262 if test "$host_cpu" = ia64; then
16263 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16264 allow_undefined_flag_GCJ="-z nodefs"
16265 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"
16266 else
16267 # Determine the default libpath from the value encoded in an empty executable.
16268 cat >conftest.$ac_ext <<_ACEOF
16269 /* confdefs.h. */
16270 _ACEOF
16271 cat confdefs.h >>conftest.$ac_ext
16272 cat >>conftest.$ac_ext <<_ACEOF
16273 /* end confdefs.h. */
16276 main ()
16280 return 0;
16282 _ACEOF
16283 rm -f conftest.$ac_objext conftest$ac_exeext
16284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16285 (eval $ac_link) 2>conftest.er1
16286 ac_status=$?
16287 grep -v '^ *+' conftest.er1 >conftest.err
16288 rm -f conftest.er1
16289 cat conftest.err >&5
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); } &&
16292 { ac_try='test -z "$ac_c_werror_flag"
16293 || test ! -s conftest.err'
16294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16295 (eval $ac_try) 2>&5
16296 ac_status=$?
16297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); }; } &&
16299 { ac_try='test -s conftest$ac_exeext'
16300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16301 (eval $ac_try) 2>&5
16302 ac_status=$?
16303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16304 (exit $ac_status); }; }; then
16306 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16308 # Check for a 64-bit object if we didn't find anything.
16309 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; }
16310 }'`; fi
16311 else
16312 echo "$as_me: failed program was:" >&5
16313 sed 's/^/| /' conftest.$ac_ext >&5
16316 rm -f conftest.err conftest.$ac_objext \
16317 conftest$ac_exeext conftest.$ac_ext
16318 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16320 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16321 # Warning - without using the other run time loading flags,
16322 # -berok will link without error, but may produce a broken library.
16323 no_undefined_flag_GCJ=' ${wl}-bernotok'
16324 allow_undefined_flag_GCJ=' ${wl}-berok'
16325 # -bexpall does not export symbols beginning with underscore (_)
16326 always_export_symbols_GCJ=yes
16327 # Exported symbols can be pulled into shared objects from archives
16328 whole_archive_flag_spec_GCJ=' '
16329 archive_cmds_need_lc_GCJ=yes
16330 # This is similar to how AIX traditionally builds it's shared libraries.
16331 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'
16336 amigaos*)
16337 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)'
16338 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16339 hardcode_minus_L_GCJ=yes
16340 # see comment about different semantics on the GNU ld section
16341 ld_shlibs_GCJ=no
16344 bsdi4*)
16345 export_dynamic_flag_spec_GCJ=-rdynamic
16348 cygwin* | mingw* | pw32*)
16349 # When not using gcc, we currently assume that we are using
16350 # Microsoft Visual C++.
16351 # hardcode_libdir_flag_spec is actually meaningless, as there is
16352 # no search path for DLLs.
16353 hardcode_libdir_flag_spec_GCJ=' '
16354 allow_undefined_flag_GCJ=unsupported
16355 # Tell ltmain to make .lib files, not .a files.
16356 libext=lib
16357 # Tell ltmain to make .dll files, not .so files.
16358 shrext=".dll"
16359 # FIXME: Setting linknames here is a bad hack.
16360 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16361 # The linker will automatically build a .lib file if we build a DLL.
16362 old_archive_From_new_cmds_GCJ='true'
16363 # FIXME: Should let the user specify the lib program.
16364 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16365 fix_srcfile_path='`cygpath -w "$srcfile"`'
16366 enable_shared_with_static_runtimes_GCJ=yes
16369 darwin* | rhapsody*)
16370 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16371 archive_cmds_need_lc_GCJ=no
16372 case "$host_os" in
16373 rhapsody* | darwin1.[012])
16374 allow_undefined_flag_GCJ='-undefined suppress'
16376 *) # Darwin 1.3 on
16377 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16379 esac
16380 # FIXME: Relying on posixy $() will cause problems for
16381 # cross-compilation, but unfortunately the echo tests do not
16382 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
16383 # `"' quotes if we put them in here... so don't!
16384 lt_int_apple_cc_single_mod=no
16385 output_verbose_link_cmd='echo'
16386 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16387 lt_int_apple_cc_single_mod=yes
16389 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16390 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16391 else
16392 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16394 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
16395 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16396 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16397 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16398 else
16399 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16401 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16402 hardcode_direct_GCJ=no
16403 hardcode_automatic_GCJ=yes
16404 hardcode_shlibpath_var_GCJ=unsupported
16405 whole_archive_flag_spec_GCJ='-all_load $convenience'
16406 link_all_deplibs_GCJ=yes
16410 dgux*)
16411 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16412 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16413 hardcode_shlibpath_var_GCJ=no
16416 freebsd1*)
16417 ld_shlibs_GCJ=no
16420 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16421 # support. Future versions do this automatically, but an explicit c++rt0.o
16422 # does not break anything, and helps significantly (at the cost of a little
16423 # extra space).
16424 freebsd2.2*)
16425 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16426 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16427 hardcode_direct_GCJ=yes
16428 hardcode_shlibpath_var_GCJ=no
16431 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16432 freebsd2*)
16433 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16434 hardcode_direct_GCJ=yes
16435 hardcode_minus_L_GCJ=yes
16436 hardcode_shlibpath_var_GCJ=no
16439 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16440 freebsd*)
16441 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16442 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16443 hardcode_direct_GCJ=yes
16444 hardcode_shlibpath_var_GCJ=no
16447 hpux9*)
16448 if test "$GCC" = yes; then
16449 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'
16450 else
16451 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'
16453 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16454 hardcode_libdir_separator_GCJ=:
16455 hardcode_direct_GCJ=yes
16457 # hardcode_minus_L: Not really in the search PATH,
16458 # but as the default location of the library.
16459 hardcode_minus_L_GCJ=yes
16460 export_dynamic_flag_spec_GCJ='${wl}-E'
16463 hpux10* | hpux11*)
16464 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16465 case "$host_cpu" in
16466 hppa*64*|ia64*)
16467 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16470 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16472 esac
16473 else
16474 case "$host_cpu" in
16475 hppa*64*|ia64*)
16476 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16479 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16481 esac
16483 if test "$with_gnu_ld" = no; then
16484 case "$host_cpu" in
16485 hppa*64*)
16486 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16487 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16488 hardcode_libdir_separator_GCJ=:
16489 hardcode_direct_GCJ=no
16490 hardcode_shlibpath_var_GCJ=no
16492 ia64*)
16493 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16494 hardcode_direct_GCJ=no
16495 hardcode_shlibpath_var_GCJ=no
16497 # hardcode_minus_L: Not really in the search PATH,
16498 # but as the default location of the library.
16499 hardcode_minus_L_GCJ=yes
16502 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16503 hardcode_libdir_separator_GCJ=:
16504 hardcode_direct_GCJ=yes
16505 export_dynamic_flag_spec_GCJ='${wl}-E'
16507 # hardcode_minus_L: Not really in the search PATH,
16508 # but as the default location of the library.
16509 hardcode_minus_L_GCJ=yes
16511 esac
16515 irix5* | irix6* | nonstopux*)
16516 if test "$GCC" = yes; then
16517 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'
16518 else
16519 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'
16520 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16522 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16523 hardcode_libdir_separator_GCJ=:
16524 link_all_deplibs_GCJ=yes
16527 netbsd*)
16528 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16529 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16530 else
16531 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16533 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16534 hardcode_direct_GCJ=yes
16535 hardcode_shlibpath_var_GCJ=no
16538 newsos6)
16539 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16540 hardcode_direct_GCJ=yes
16541 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16542 hardcode_libdir_separator_GCJ=:
16543 hardcode_shlibpath_var_GCJ=no
16546 openbsd*)
16547 hardcode_direct_GCJ=yes
16548 hardcode_shlibpath_var_GCJ=no
16549 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16550 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16551 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16552 export_dynamic_flag_spec_GCJ='${wl}-E'
16553 else
16554 case $host_os in
16555 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16556 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16557 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16560 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16561 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16563 esac
16567 os2*)
16568 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16569 hardcode_minus_L_GCJ=yes
16570 allow_undefined_flag_GCJ=unsupported
16571 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'
16572 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16575 osf3*)
16576 if test "$GCC" = yes; then
16577 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16578 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'
16579 else
16580 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16581 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'
16583 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16584 hardcode_libdir_separator_GCJ=:
16587 osf4* | osf5*) # as osf3* with the addition of -msym flag
16588 if test "$GCC" = yes; then
16589 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16590 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'
16591 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16592 else
16593 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16594 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'
16595 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~
16596 $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'
16598 # Both c and cxx compiler support -rpath directly
16599 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16601 hardcode_libdir_separator_GCJ=:
16604 sco3.2v5*)
16605 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16606 hardcode_shlibpath_var_GCJ=no
16607 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16608 runpath_var=LD_RUN_PATH
16609 hardcode_runpath_var=yes
16612 solaris*)
16613 no_undefined_flag_GCJ=' -z text'
16614 if test "$GCC" = yes; then
16615 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16616 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16617 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16618 else
16619 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16620 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16621 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16623 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16624 hardcode_shlibpath_var_GCJ=no
16625 case $host_os in
16626 solaris2.[0-5] | solaris2.[0-5].*) ;;
16627 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16628 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16629 esac
16630 link_all_deplibs_GCJ=yes
16633 sunos4*)
16634 if test "x$host_vendor" = xsequent; then
16635 # Use $CC to link under sequent, because it throws in some extra .o
16636 # files that make .init and .fini sections work.
16637 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16638 else
16639 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16641 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16642 hardcode_direct_GCJ=yes
16643 hardcode_minus_L_GCJ=yes
16644 hardcode_shlibpath_var_GCJ=no
16647 sysv4)
16648 case $host_vendor in
16649 sni)
16650 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16651 hardcode_direct_GCJ=yes # is this really true???
16653 siemens)
16654 ## LD is ld it makes a PLAMLIB
16655 ## CC just makes a GrossModule.
16656 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16657 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16658 hardcode_direct_GCJ=no
16660 motorola)
16661 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16662 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16664 esac
16665 runpath_var='LD_RUN_PATH'
16666 hardcode_shlibpath_var_GCJ=no
16669 sysv4.3*)
16670 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16671 hardcode_shlibpath_var_GCJ=no
16672 export_dynamic_flag_spec_GCJ='-Bexport'
16675 sysv4*MP*)
16676 if test -d /usr/nec; then
16677 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16678 hardcode_shlibpath_var_GCJ=no
16679 runpath_var=LD_RUN_PATH
16680 hardcode_runpath_var=yes
16681 ld_shlibs_GCJ=yes
16685 sysv4.2uw2*)
16686 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16687 hardcode_direct_GCJ=yes
16688 hardcode_minus_L_GCJ=no
16689 hardcode_shlibpath_var_GCJ=no
16690 hardcode_runpath_var=yes
16691 runpath_var=LD_RUN_PATH
16694 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16695 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16696 if test "$GCC" = yes; then
16697 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16698 else
16699 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16701 runpath_var='LD_RUN_PATH'
16702 hardcode_shlibpath_var_GCJ=no
16705 sysv5*)
16706 no_undefined_flag_GCJ=' -z text'
16707 # $CC -shared without GNU ld will not create a library from C++
16708 # object files and a static libstdc++, better avoid it by now
16709 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16710 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16711 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16712 hardcode_libdir_flag_spec_GCJ=
16713 hardcode_shlibpath_var_GCJ=no
16714 runpath_var='LD_RUN_PATH'
16717 uts4*)
16718 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16719 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16720 hardcode_shlibpath_var_GCJ=no
16724 ld_shlibs_GCJ=no
16726 esac
16729 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16730 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16731 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16733 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16734 if test "$GCC" = yes; then
16735 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16739 # Do we need to explicitly link libc?
16741 case "x$archive_cmds_need_lc_GCJ" in
16742 x|xyes)
16743 # Assume -lc should be added
16744 archive_cmds_need_lc_GCJ=yes
16746 if test "$enable_shared" = yes && test "$GCC" = yes; then
16747 case $archive_cmds_GCJ in
16748 *'~'*)
16749 # FIXME: we may have to deal with multi-command sequences.
16751 '$CC '*)
16752 # Test whether the compiler implicitly links with -lc since on some
16753 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16754 # to ld, don't add -lc before -lgcc.
16755 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16756 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16757 $rm conftest*
16758 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16761 (eval $ac_compile) 2>&5
16762 ac_status=$?
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); } 2>conftest.err; then
16765 soname=conftest
16766 lib=conftest
16767 libobjs=conftest.$ac_objext
16768 deplibs=
16769 wl=$lt_prog_compiler_wl_GCJ
16770 compiler_flags=-v
16771 linker_flags=-v
16772 verstring=
16773 output_objdir=.
16774 libname=conftest
16775 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16776 allow_undefined_flag_GCJ=
16777 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16778 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16779 ac_status=$?
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); }
16782 then
16783 archive_cmds_need_lc_GCJ=no
16784 else
16785 archive_cmds_need_lc_GCJ=yes
16787 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16788 else
16789 cat conftest.err 1>&5
16791 $rm conftest*
16792 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16793 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16795 esac
16798 esac
16800 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16801 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16802 hardcode_action_GCJ=
16803 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16804 test -n "$runpath_var GCJ" || \
16805 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16807 # We can hardcode non-existant directories.
16808 if test "$hardcode_direct_GCJ" != no &&
16809 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16810 # have to relink, otherwise we might link with an installed library
16811 # when we should be linking with a yet-to-be-installed one
16812 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16813 test "$hardcode_minus_L_GCJ" != no; then
16814 # Linking always hardcodes the temporary library directory.
16815 hardcode_action_GCJ=relink
16816 else
16817 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16818 hardcode_action_GCJ=immediate
16820 else
16821 # We cannot hardcode anything, or else we can only hardcode existing
16822 # directories.
16823 hardcode_action_GCJ=unsupported
16825 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16826 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16828 if test "$hardcode_action_GCJ" = relink; then
16829 # Fast installation is not supported
16830 enable_fast_install=no
16831 elif test "$shlibpath_overrides_runpath" = yes ||
16832 test "$enable_shared" = no; then
16833 # Fast installation is not necessary
16834 enable_fast_install=needless
16837 striplib=
16838 old_striplib=
16839 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16840 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16841 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16842 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16843 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16844 echo "$as_me:$LINENO: result: yes" >&5
16845 echo "${ECHO_T}yes" >&6
16846 else
16847 # FIXME - insert some real tests, host_os isn't really good enough
16848 case $host_os in
16849 darwin*)
16850 if test -n "$STRIP" ; then
16851 striplib="$STRIP -x"
16852 echo "$as_me:$LINENO: result: yes" >&5
16853 echo "${ECHO_T}yes" >&6
16854 else
16855 echo "$as_me:$LINENO: result: no" >&5
16856 echo "${ECHO_T}no" >&6
16860 echo "$as_me:$LINENO: result: no" >&5
16861 echo "${ECHO_T}no" >&6
16863 esac
16866 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16867 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16868 library_names_spec=
16869 libname_spec='lib$name'
16870 soname_spec=
16871 shrext=".so"
16872 postinstall_cmds=
16873 postuninstall_cmds=
16874 finish_cmds=
16875 finish_eval=
16876 shlibpath_var=
16877 shlibpath_overrides_runpath=unknown
16878 version_type=none
16879 dynamic_linker="$host_os ld.so"
16880 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16881 if test "$GCC" = yes; then
16882 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16883 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16884 # if the path contains ";" then we assume it to be the separator
16885 # otherwise default to the standard path separator (i.e. ":") - it is
16886 # assumed that no part of a normal pathname contains ";" but that should
16887 # okay in the real world where ";" in dirpaths is itself problematic.
16888 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16889 else
16890 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16892 else
16893 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16895 need_lib_prefix=unknown
16896 hardcode_into_libs=no
16898 # when you set need_version to no, make sure it does not cause -set_version
16899 # flags to be left without arguments
16900 need_version=unknown
16902 case $host_os in
16903 aix3*)
16904 version_type=linux
16905 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16906 shlibpath_var=LIBPATH
16908 # AIX 3 has no versioning support, so we append a major version to the name.
16909 soname_spec='${libname}${release}${shared_ext}$major'
16912 aix4* | aix5*)
16913 version_type=linux
16914 need_lib_prefix=no
16915 need_version=no
16916 hardcode_into_libs=yes
16917 if test "$host_cpu" = ia64; then
16918 # AIX 5 supports IA64
16919 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16920 shlibpath_var=LD_LIBRARY_PATH
16921 else
16922 # With GCC up to 2.95.x, collect2 would create an import file
16923 # for dependence libraries. The import file would start with
16924 # the line `#! .'. This would cause the generated library to
16925 # depend on `.', always an invalid library. This was fixed in
16926 # development snapshots of GCC prior to 3.0.
16927 case $host_os in
16928 aix4 | aix4.[01] | aix4.[01].*)
16929 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16930 echo ' yes '
16931 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16933 else
16934 can_build_shared=no
16937 esac
16938 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16939 # soname into executable. Probably we can add versioning support to
16940 # collect2, so additional links can be useful in future.
16941 if test "$aix_use_runtimelinking" = yes; then
16942 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16943 # instead of lib<name>.a to let people know that these are not
16944 # typical AIX shared libraries.
16945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16946 else
16947 # We preserve .a as extension for shared libraries through AIX4.2
16948 # and later when we are not doing run time linking.
16949 library_names_spec='${libname}${release}.a $libname.a'
16950 soname_spec='${libname}${release}${shared_ext}$major'
16952 shlibpath_var=LIBPATH
16956 amigaos*)
16957 library_names_spec='$libname.ixlibrary $libname.a'
16958 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16959 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'
16962 beos*)
16963 library_names_spec='${libname}${shared_ext}'
16964 dynamic_linker="$host_os ld.so"
16965 shlibpath_var=LIBRARY_PATH
16968 bsdi4*)
16969 version_type=linux
16970 need_version=no
16971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16972 soname_spec='${libname}${release}${shared_ext}$major'
16973 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16974 shlibpath_var=LD_LIBRARY_PATH
16975 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16976 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16977 # the default ld.so.conf also contains /usr/contrib/lib and
16978 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16979 # libtool to hard-code these into programs
16982 cygwin* | mingw* | pw32*)
16983 version_type=windows
16984 shrext=".dll"
16985 need_version=no
16986 need_lib_prefix=no
16988 case $GCC,$host_os in
16989 yes,cygwin* | yes,mingw* | yes,pw32*)
16990 library_names_spec='$libname.dll.a'
16991 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16992 postinstall_cmds='base_file=`basename \${file}`~
16993 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16994 dldir=$destdir/`dirname \$dlpath`~
16995 test -d \$dldir || mkdir -p \$dldir~
16996 $install_prog $dir/$dlname \$dldir/$dlname'
16997 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16998 dlpath=$dir/\$dldll~
16999 $rm \$dlpath'
17000 shlibpath_overrides_runpath=yes
17002 case $host_os in
17003 cygwin*)
17004 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17005 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17006 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
17008 mingw*)
17009 # MinGW DLLs use traditional 'lib' prefix
17010 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17011 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17012 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17013 # It is most probably a Windows format PATH printed by
17014 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17015 # path with ; separators, and with drive letters. We can handle the
17016 # drive letters (cygwin fileutils understands them), so leave them,
17017 # especially as we might pass files found there to a mingw objdump,
17018 # which wouldn't understand a cygwinified path. Ahh.
17019 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17020 else
17021 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17024 pw32*)
17025 # pw32 DLLs use 'pw' prefix rather than 'lib'
17026 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17028 esac
17032 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17034 esac
17035 dynamic_linker='Win32 ld.exe'
17036 # FIXME: first we should search . and the directory the executable is in
17037 shlibpath_var=PATH
17040 darwin* | rhapsody*)
17041 dynamic_linker="$host_os dyld"
17042 version_type=darwin
17043 need_lib_prefix=no
17044 need_version=no
17045 # FIXME: Relying on posixy $() will cause problems for
17046 # cross-compilation, but unfortunately the echo tests do not
17047 # yet detect zsh echo's removal of \ escapes.
17048 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17049 soname_spec='${libname}${release}${major}$shared_ext'
17050 shlibpath_overrides_runpath=yes
17051 shlibpath_var=DYLD_LIBRARY_PATH
17052 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
17053 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17054 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
17055 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"`
17057 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17060 dgux*)
17061 version_type=linux
17062 need_lib_prefix=no
17063 need_version=no
17064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17065 soname_spec='${libname}${release}${shared_ext}$major'
17066 shlibpath_var=LD_LIBRARY_PATH
17069 freebsd1*)
17070 dynamic_linker=no
17073 freebsd*)
17074 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17075 version_type=freebsd-$objformat
17076 case $version_type in
17077 freebsd-elf*)
17078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17079 need_version=no
17080 need_lib_prefix=no
17082 freebsd-*)
17083 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17084 need_version=yes
17086 esac
17087 shlibpath_var=LD_LIBRARY_PATH
17088 case $host_os in
17089 freebsd2*)
17090 shlibpath_overrides_runpath=yes
17092 freebsd3.01* | freebsdelf3.01*)
17093 shlibpath_overrides_runpath=yes
17094 hardcode_into_libs=yes
17096 *) # from 3.2 on
17097 shlibpath_overrides_runpath=no
17098 hardcode_into_libs=yes
17100 esac
17103 gnu*)
17104 version_type=linux
17105 need_lib_prefix=no
17106 need_version=no
17107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17108 soname_spec='${libname}${release}${shared_ext}$major'
17109 shlibpath_var=LD_LIBRARY_PATH
17110 hardcode_into_libs=yes
17113 hpux9* | hpux10* | hpux11*)
17114 # Give a soname corresponding to the major version so that dld.sl refuses to
17115 # link against other versions.
17116 version_type=sunos
17117 need_lib_prefix=no
17118 need_version=no
17119 case "$host_cpu" in
17120 ia64*)
17121 shrext='.so'
17122 hardcode_into_libs=yes
17123 dynamic_linker="$host_os dld.so"
17124 shlibpath_var=LD_LIBRARY_PATH
17125 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17127 soname_spec='${libname}${release}${shared_ext}$major'
17128 if test "X$HPUX_IA64_MODE" = X32; then
17129 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17130 else
17131 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17133 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17135 hppa*64*)
17136 shrext='.sl'
17137 hardcode_into_libs=yes
17138 dynamic_linker="$host_os dld.sl"
17139 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17140 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17142 soname_spec='${libname}${release}${shared_ext}$major'
17143 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17144 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17147 shrext='.sl'
17148 dynamic_linker="$host_os dld.sl"
17149 shlibpath_var=SHLIB_PATH
17150 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17152 soname_spec='${libname}${release}${shared_ext}$major'
17154 esac
17155 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17156 postinstall_cmds='chmod 555 $lib'
17159 irix5* | irix6* | nonstopux*)
17160 case $host_os in
17161 nonstopux*) version_type=nonstopux ;;
17163 if test "$lt_cv_prog_gnu_ld" = yes; then
17164 version_type=linux
17165 else
17166 version_type=irix
17167 fi ;;
17168 esac
17169 need_lib_prefix=no
17170 need_version=no
17171 soname_spec='${libname}${release}${shared_ext}$major'
17172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17173 case $host_os in
17174 irix5* | nonstopux*)
17175 libsuff= shlibsuff=
17178 case $LD in # libtool.m4 will add one of these switches to LD
17179 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17180 libsuff= shlibsuff= libmagic=32-bit;;
17181 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17182 libsuff=32 shlibsuff=N32 libmagic=N32;;
17183 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17184 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17185 *) libsuff= shlibsuff= libmagic=never-match;;
17186 esac
17188 esac
17189 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17190 shlibpath_overrides_runpath=no
17191 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17192 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17193 hardcode_into_libs=yes
17196 # No shared lib support for Linux oldld, aout, or coff.
17197 linux*oldld* | linux*aout* | linux*coff*)
17198 dynamic_linker=no
17201 # This must be Linux ELF.
17202 linux*)
17203 version_type=linux
17204 need_lib_prefix=no
17205 need_version=no
17206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17207 soname_spec='${libname}${release}${shared_ext}$major'
17208 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17209 shlibpath_var=LD_LIBRARY_PATH
17210 shlibpath_overrides_runpath=no
17211 # This implies no fast_install, which is unacceptable.
17212 # Some rework will be needed to allow for fast_install
17213 # before this can be enabled.
17214 hardcode_into_libs=yes
17216 # We used to test for /lib/ld.so.1 and disable shared libraries on
17217 # powerpc, because MkLinux only supported shared libraries with the
17218 # GNU dynamic linker. Since this was broken with cross compilers,
17219 # most powerpc-linux boxes support dynamic linking these days and
17220 # people can always --disable-shared, the test was removed, and we
17221 # assume the GNU/Linux dynamic linker is in use.
17222 dynamic_linker='GNU/Linux ld.so'
17225 netbsd*)
17226 version_type=sunos
17227 need_lib_prefix=no
17228 need_version=no
17229 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17232 dynamic_linker='NetBSD (a.out) ld.so'
17233 else
17234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
17235 soname_spec='${libname}${release}${shared_ext}$major'
17236 dynamic_linker='NetBSD ld.elf_so'
17238 shlibpath_var=LD_LIBRARY_PATH
17239 shlibpath_overrides_runpath=yes
17240 hardcode_into_libs=yes
17243 newsos6)
17244 version_type=linux
17245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17246 shlibpath_var=LD_LIBRARY_PATH
17247 shlibpath_overrides_runpath=yes
17250 nto-qnx)
17251 version_type=linux
17252 need_lib_prefix=no
17253 need_version=no
17254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17255 soname_spec='${libname}${release}${shared_ext}$major'
17256 shlibpath_var=LD_LIBRARY_PATH
17257 shlibpath_overrides_runpath=yes
17260 openbsd*)
17261 version_type=sunos
17262 need_lib_prefix=no
17263 need_version=no
17264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17265 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17266 shlibpath_var=LD_LIBRARY_PATH
17267 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17268 case $host_os in
17269 openbsd2.[89] | openbsd2.[89].*)
17270 shlibpath_overrides_runpath=no
17273 shlibpath_overrides_runpath=yes
17275 esac
17276 else
17277 shlibpath_overrides_runpath=yes
17281 os2*)
17282 libname_spec='$name'
17283 shrext=".dll"
17284 need_lib_prefix=no
17285 library_names_spec='$libname${shared_ext} $libname.a'
17286 dynamic_linker='OS/2 ld.exe'
17287 shlibpath_var=LIBPATH
17290 osf3* | osf4* | osf5*)
17291 version_type=osf
17292 need_lib_prefix=no
17293 need_version=no
17294 soname_spec='${libname}${release}${shared_ext}$major'
17295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17296 shlibpath_var=LD_LIBRARY_PATH
17297 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17298 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17301 sco3.2v5*)
17302 version_type=osf
17303 soname_spec='${libname}${release}${shared_ext}$major'
17304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17305 shlibpath_var=LD_LIBRARY_PATH
17308 solaris*)
17309 version_type=linux
17310 need_lib_prefix=no
17311 need_version=no
17312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17313 soname_spec='${libname}${release}${shared_ext}$major'
17314 shlibpath_var=LD_LIBRARY_PATH
17315 shlibpath_overrides_runpath=yes
17316 hardcode_into_libs=yes
17317 # ldd complains unless libraries are executable
17318 postinstall_cmds='chmod +x $lib'
17321 sunos4*)
17322 version_type=sunos
17323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17324 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17325 shlibpath_var=LD_LIBRARY_PATH
17326 shlibpath_overrides_runpath=yes
17327 if test "$with_gnu_ld" = yes; then
17328 need_lib_prefix=no
17330 need_version=yes
17333 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17334 version_type=linux
17335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17336 soname_spec='${libname}${release}${shared_ext}$major'
17337 shlibpath_var=LD_LIBRARY_PATH
17338 case $host_vendor in
17339 sni)
17340 shlibpath_overrides_runpath=no
17341 need_lib_prefix=no
17342 export_dynamic_flag_spec='${wl}-Blargedynsym'
17343 runpath_var=LD_RUN_PATH
17345 siemens)
17346 need_lib_prefix=no
17348 motorola)
17349 need_lib_prefix=no
17350 need_version=no
17351 shlibpath_overrides_runpath=no
17352 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17354 esac
17357 sysv4*MP*)
17358 if test -d /usr/nec ;then
17359 version_type=linux
17360 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17361 soname_spec='$libname${shared_ext}.$major'
17362 shlibpath_var=LD_LIBRARY_PATH
17366 uts4*)
17367 version_type=linux
17368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17369 soname_spec='${libname}${release}${shared_ext}$major'
17370 shlibpath_var=LD_LIBRARY_PATH
17374 dynamic_linker=no
17376 esac
17377 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17378 echo "${ECHO_T}$dynamic_linker" >&6
17379 test "$dynamic_linker" = no && can_build_shared=no
17381 if test "x$enable_dlopen" != xyes; then
17382 enable_dlopen=unknown
17383 enable_dlopen_self=unknown
17384 enable_dlopen_self_static=unknown
17385 else
17386 lt_cv_dlopen=no
17387 lt_cv_dlopen_libs=
17389 case $host_os in
17390 beos*)
17391 lt_cv_dlopen="load_add_on"
17392 lt_cv_dlopen_libs=
17393 lt_cv_dlopen_self=yes
17396 mingw* | pw32*)
17397 lt_cv_dlopen="LoadLibrary"
17398 lt_cv_dlopen_libs=
17401 cygwin*)
17402 lt_cv_dlopen="dlopen"
17403 lt_cv_dlopen_libs=
17406 darwin*)
17407 # if libdl is installed we need to link against it
17408 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17409 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17410 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17411 echo $ECHO_N "(cached) $ECHO_C" >&6
17412 else
17413 ac_check_lib_save_LIBS=$LIBS
17414 LIBS="-ldl $LIBS"
17415 cat >conftest.$ac_ext <<_ACEOF
17416 /* confdefs.h. */
17417 _ACEOF
17418 cat confdefs.h >>conftest.$ac_ext
17419 cat >>conftest.$ac_ext <<_ACEOF
17420 /* end confdefs.h. */
17422 /* Override any gcc2 internal prototype to avoid an error. */
17423 #ifdef __cplusplus
17424 extern "C"
17425 #endif
17426 /* We use char because int might match the return type of a gcc2
17427 builtin and then its argument prototype would still apply. */
17428 char dlopen ();
17430 main ()
17432 dlopen ();
17434 return 0;
17436 _ACEOF
17437 rm -f conftest.$ac_objext conftest$ac_exeext
17438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17439 (eval $ac_link) 2>conftest.er1
17440 ac_status=$?
17441 grep -v '^ *+' conftest.er1 >conftest.err
17442 rm -f conftest.er1
17443 cat conftest.err >&5
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); } &&
17446 { ac_try='test -z "$ac_c_werror_flag"
17447 || test ! -s conftest.err'
17448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17449 (eval $ac_try) 2>&5
17450 ac_status=$?
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); }; } &&
17453 { ac_try='test -s conftest$ac_exeext'
17454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17455 (eval $ac_try) 2>&5
17456 ac_status=$?
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); }; }; then
17459 ac_cv_lib_dl_dlopen=yes
17460 else
17461 echo "$as_me: failed program was:" >&5
17462 sed 's/^/| /' conftest.$ac_ext >&5
17464 ac_cv_lib_dl_dlopen=no
17466 rm -f conftest.err conftest.$ac_objext \
17467 conftest$ac_exeext conftest.$ac_ext
17468 LIBS=$ac_check_lib_save_LIBS
17470 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17471 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17472 if test $ac_cv_lib_dl_dlopen = yes; then
17473 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17474 else
17476 lt_cv_dlopen="dyld"
17477 lt_cv_dlopen_libs=
17478 lt_cv_dlopen_self=yes
17485 echo "$as_me:$LINENO: checking for shl_load" >&5
17486 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17487 if test "${ac_cv_func_shl_load+set}" = set; then
17488 echo $ECHO_N "(cached) $ECHO_C" >&6
17489 else
17490 cat >conftest.$ac_ext <<_ACEOF
17491 /* confdefs.h. */
17492 _ACEOF
17493 cat confdefs.h >>conftest.$ac_ext
17494 cat >>conftest.$ac_ext <<_ACEOF
17495 /* end confdefs.h. */
17496 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17498 #define shl_load innocuous_shl_load
17500 /* System header to define __stub macros and hopefully few prototypes,
17501 which can conflict with char shl_load (); below.
17502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17503 <limits.h> exists even on freestanding compilers. */
17505 #ifdef __STDC__
17506 # include <limits.h>
17507 #else
17508 # include <assert.h>
17509 #endif
17511 #undef shl_load
17513 /* Override any gcc2 internal prototype to avoid an error. */
17514 #ifdef __cplusplus
17515 extern "C"
17517 #endif
17518 /* We use char because int might match the return type of a gcc2
17519 builtin and then its argument prototype would still apply. */
17520 char shl_load ();
17521 /* The GNU C library defines this for functions which it implements
17522 to always fail with ENOSYS. Some functions are actually named
17523 something starting with __ and the normal name is an alias. */
17524 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17525 choke me
17526 #else
17527 char (*f) () = shl_load;
17528 #endif
17529 #ifdef __cplusplus
17531 #endif
17534 main ()
17536 return f != shl_load;
17538 return 0;
17540 _ACEOF
17541 rm -f conftest.$ac_objext conftest$ac_exeext
17542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17543 (eval $ac_link) 2>conftest.er1
17544 ac_status=$?
17545 grep -v '^ *+' conftest.er1 >conftest.err
17546 rm -f conftest.er1
17547 cat conftest.err >&5
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); } &&
17550 { ac_try='test -z "$ac_c_werror_flag"
17551 || test ! -s conftest.err'
17552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17553 (eval $ac_try) 2>&5
17554 ac_status=$?
17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); }; } &&
17557 { ac_try='test -s conftest$ac_exeext'
17558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17559 (eval $ac_try) 2>&5
17560 ac_status=$?
17561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); }; }; then
17563 ac_cv_func_shl_load=yes
17564 else
17565 echo "$as_me: failed program was:" >&5
17566 sed 's/^/| /' conftest.$ac_ext >&5
17568 ac_cv_func_shl_load=no
17570 rm -f conftest.err conftest.$ac_objext \
17571 conftest$ac_exeext conftest.$ac_ext
17573 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17574 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17575 if test $ac_cv_func_shl_load = yes; then
17576 lt_cv_dlopen="shl_load"
17577 else
17578 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17579 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17580 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17581 echo $ECHO_N "(cached) $ECHO_C" >&6
17582 else
17583 ac_check_lib_save_LIBS=$LIBS
17584 LIBS="-ldld $LIBS"
17585 cat >conftest.$ac_ext <<_ACEOF
17586 /* confdefs.h. */
17587 _ACEOF
17588 cat confdefs.h >>conftest.$ac_ext
17589 cat >>conftest.$ac_ext <<_ACEOF
17590 /* end confdefs.h. */
17592 /* Override any gcc2 internal prototype to avoid an error. */
17593 #ifdef __cplusplus
17594 extern "C"
17595 #endif
17596 /* We use char because int might match the return type of a gcc2
17597 builtin and then its argument prototype would still apply. */
17598 char shl_load ();
17600 main ()
17602 shl_load ();
17604 return 0;
17606 _ACEOF
17607 rm -f conftest.$ac_objext conftest$ac_exeext
17608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17609 (eval $ac_link) 2>conftest.er1
17610 ac_status=$?
17611 grep -v '^ *+' conftest.er1 >conftest.err
17612 rm -f conftest.er1
17613 cat conftest.err >&5
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); } &&
17616 { ac_try='test -z "$ac_c_werror_flag"
17617 || test ! -s conftest.err'
17618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17619 (eval $ac_try) 2>&5
17620 ac_status=$?
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); }; } &&
17623 { ac_try='test -s conftest$ac_exeext'
17624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17625 (eval $ac_try) 2>&5
17626 ac_status=$?
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); }; }; then
17629 ac_cv_lib_dld_shl_load=yes
17630 else
17631 echo "$as_me: failed program was:" >&5
17632 sed 's/^/| /' conftest.$ac_ext >&5
17634 ac_cv_lib_dld_shl_load=no
17636 rm -f conftest.err conftest.$ac_objext \
17637 conftest$ac_exeext conftest.$ac_ext
17638 LIBS=$ac_check_lib_save_LIBS
17640 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17641 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17642 if test $ac_cv_lib_dld_shl_load = yes; then
17643 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17644 else
17645 echo "$as_me:$LINENO: checking for dlopen" >&5
17646 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17647 if test "${ac_cv_func_dlopen+set}" = set; then
17648 echo $ECHO_N "(cached) $ECHO_C" >&6
17649 else
17650 cat >conftest.$ac_ext <<_ACEOF
17651 /* confdefs.h. */
17652 _ACEOF
17653 cat confdefs.h >>conftest.$ac_ext
17654 cat >>conftest.$ac_ext <<_ACEOF
17655 /* end confdefs.h. */
17656 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17658 #define dlopen innocuous_dlopen
17660 /* System header to define __stub macros and hopefully few prototypes,
17661 which can conflict with char dlopen (); below.
17662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17663 <limits.h> exists even on freestanding compilers. */
17665 #ifdef __STDC__
17666 # include <limits.h>
17667 #else
17668 # include <assert.h>
17669 #endif
17671 #undef dlopen
17673 /* Override any gcc2 internal prototype to avoid an error. */
17674 #ifdef __cplusplus
17675 extern "C"
17677 #endif
17678 /* We use char because int might match the return type of a gcc2
17679 builtin and then its argument prototype would still apply. */
17680 char dlopen ();
17681 /* The GNU C library defines this for functions which it implements
17682 to always fail with ENOSYS. Some functions are actually named
17683 something starting with __ and the normal name is an alias. */
17684 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17685 choke me
17686 #else
17687 char (*f) () = dlopen;
17688 #endif
17689 #ifdef __cplusplus
17691 #endif
17694 main ()
17696 return f != dlopen;
17698 return 0;
17700 _ACEOF
17701 rm -f conftest.$ac_objext conftest$ac_exeext
17702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17703 (eval $ac_link) 2>conftest.er1
17704 ac_status=$?
17705 grep -v '^ *+' conftest.er1 >conftest.err
17706 rm -f conftest.er1
17707 cat conftest.err >&5
17708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); } &&
17710 { ac_try='test -z "$ac_c_werror_flag"
17711 || test ! -s conftest.err'
17712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17713 (eval $ac_try) 2>&5
17714 ac_status=$?
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); }; } &&
17717 { ac_try='test -s conftest$ac_exeext'
17718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17719 (eval $ac_try) 2>&5
17720 ac_status=$?
17721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722 (exit $ac_status); }; }; then
17723 ac_cv_func_dlopen=yes
17724 else
17725 echo "$as_me: failed program was:" >&5
17726 sed 's/^/| /' conftest.$ac_ext >&5
17728 ac_cv_func_dlopen=no
17730 rm -f conftest.err conftest.$ac_objext \
17731 conftest$ac_exeext conftest.$ac_ext
17733 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17734 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17735 if test $ac_cv_func_dlopen = yes; then
17736 lt_cv_dlopen="dlopen"
17737 else
17738 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17739 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17740 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17741 echo $ECHO_N "(cached) $ECHO_C" >&6
17742 else
17743 ac_check_lib_save_LIBS=$LIBS
17744 LIBS="-ldl $LIBS"
17745 cat >conftest.$ac_ext <<_ACEOF
17746 /* confdefs.h. */
17747 _ACEOF
17748 cat confdefs.h >>conftest.$ac_ext
17749 cat >>conftest.$ac_ext <<_ACEOF
17750 /* end confdefs.h. */
17752 /* Override any gcc2 internal prototype to avoid an error. */
17753 #ifdef __cplusplus
17754 extern "C"
17755 #endif
17756 /* We use char because int might match the return type of a gcc2
17757 builtin and then its argument prototype would still apply. */
17758 char dlopen ();
17760 main ()
17762 dlopen ();
17764 return 0;
17766 _ACEOF
17767 rm -f conftest.$ac_objext conftest$ac_exeext
17768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17769 (eval $ac_link) 2>conftest.er1
17770 ac_status=$?
17771 grep -v '^ *+' conftest.er1 >conftest.err
17772 rm -f conftest.er1
17773 cat conftest.err >&5
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); } &&
17776 { ac_try='test -z "$ac_c_werror_flag"
17777 || test ! -s conftest.err'
17778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17779 (eval $ac_try) 2>&5
17780 ac_status=$?
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); }; } &&
17783 { ac_try='test -s conftest$ac_exeext'
17784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785 (eval $ac_try) 2>&5
17786 ac_status=$?
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); }; }; then
17789 ac_cv_lib_dl_dlopen=yes
17790 else
17791 echo "$as_me: failed program was:" >&5
17792 sed 's/^/| /' conftest.$ac_ext >&5
17794 ac_cv_lib_dl_dlopen=no
17796 rm -f conftest.err conftest.$ac_objext \
17797 conftest$ac_exeext conftest.$ac_ext
17798 LIBS=$ac_check_lib_save_LIBS
17800 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17801 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17802 if test $ac_cv_lib_dl_dlopen = yes; then
17803 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17804 else
17805 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17806 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17807 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17808 echo $ECHO_N "(cached) $ECHO_C" >&6
17809 else
17810 ac_check_lib_save_LIBS=$LIBS
17811 LIBS="-lsvld $LIBS"
17812 cat >conftest.$ac_ext <<_ACEOF
17813 /* confdefs.h. */
17814 _ACEOF
17815 cat confdefs.h >>conftest.$ac_ext
17816 cat >>conftest.$ac_ext <<_ACEOF
17817 /* end confdefs.h. */
17819 /* Override any gcc2 internal prototype to avoid an error. */
17820 #ifdef __cplusplus
17821 extern "C"
17822 #endif
17823 /* We use char because int might match the return type of a gcc2
17824 builtin and then its argument prototype would still apply. */
17825 char dlopen ();
17827 main ()
17829 dlopen ();
17831 return 0;
17833 _ACEOF
17834 rm -f conftest.$ac_objext conftest$ac_exeext
17835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17836 (eval $ac_link) 2>conftest.er1
17837 ac_status=$?
17838 grep -v '^ *+' conftest.er1 >conftest.err
17839 rm -f conftest.er1
17840 cat conftest.err >&5
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); } &&
17843 { ac_try='test -z "$ac_c_werror_flag"
17844 || test ! -s conftest.err'
17845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17846 (eval $ac_try) 2>&5
17847 ac_status=$?
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); }; } &&
17850 { ac_try='test -s conftest$ac_exeext'
17851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17852 (eval $ac_try) 2>&5
17853 ac_status=$?
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); }; }; then
17856 ac_cv_lib_svld_dlopen=yes
17857 else
17858 echo "$as_me: failed program was:" >&5
17859 sed 's/^/| /' conftest.$ac_ext >&5
17861 ac_cv_lib_svld_dlopen=no
17863 rm -f conftest.err conftest.$ac_objext \
17864 conftest$ac_exeext conftest.$ac_ext
17865 LIBS=$ac_check_lib_save_LIBS
17867 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17868 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17869 if test $ac_cv_lib_svld_dlopen = yes; then
17870 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17871 else
17872 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17873 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17874 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17875 echo $ECHO_N "(cached) $ECHO_C" >&6
17876 else
17877 ac_check_lib_save_LIBS=$LIBS
17878 LIBS="-ldld $LIBS"
17879 cat >conftest.$ac_ext <<_ACEOF
17880 /* confdefs.h. */
17881 _ACEOF
17882 cat confdefs.h >>conftest.$ac_ext
17883 cat >>conftest.$ac_ext <<_ACEOF
17884 /* end confdefs.h. */
17886 /* Override any gcc2 internal prototype to avoid an error. */
17887 #ifdef __cplusplus
17888 extern "C"
17889 #endif
17890 /* We use char because int might match the return type of a gcc2
17891 builtin and then its argument prototype would still apply. */
17892 char dld_link ();
17894 main ()
17896 dld_link ();
17898 return 0;
17900 _ACEOF
17901 rm -f conftest.$ac_objext conftest$ac_exeext
17902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17903 (eval $ac_link) 2>conftest.er1
17904 ac_status=$?
17905 grep -v '^ *+' conftest.er1 >conftest.err
17906 rm -f conftest.er1
17907 cat conftest.err >&5
17908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909 (exit $ac_status); } &&
17910 { ac_try='test -z "$ac_c_werror_flag"
17911 || test ! -s conftest.err'
17912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17913 (eval $ac_try) 2>&5
17914 ac_status=$?
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); }; } &&
17917 { ac_try='test -s conftest$ac_exeext'
17918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17919 (eval $ac_try) 2>&5
17920 ac_status=$?
17921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922 (exit $ac_status); }; }; then
17923 ac_cv_lib_dld_dld_link=yes
17924 else
17925 echo "$as_me: failed program was:" >&5
17926 sed 's/^/| /' conftest.$ac_ext >&5
17928 ac_cv_lib_dld_dld_link=no
17930 rm -f conftest.err conftest.$ac_objext \
17931 conftest$ac_exeext conftest.$ac_ext
17932 LIBS=$ac_check_lib_save_LIBS
17934 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17935 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17936 if test $ac_cv_lib_dld_dld_link = yes; then
17937 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17956 esac
17958 if test "x$lt_cv_dlopen" != xno; then
17959 enable_dlopen=yes
17960 else
17961 enable_dlopen=no
17964 case $lt_cv_dlopen in
17965 dlopen)
17966 save_CPPFLAGS="$CPPFLAGS"
17967 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17969 save_LDFLAGS="$LDFLAGS"
17970 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17972 save_LIBS="$LIBS"
17973 LIBS="$lt_cv_dlopen_libs $LIBS"
17975 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17976 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17977 if test "${lt_cv_dlopen_self+set}" = set; then
17978 echo $ECHO_N "(cached) $ECHO_C" >&6
17979 else
17980 if test "$cross_compiling" = yes; then :
17981 lt_cv_dlopen_self=cross
17982 else
17983 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17984 lt_status=$lt_dlunknown
17985 cat > conftest.$ac_ext <<EOF
17986 #line 17986 "configure"
17987 #include "confdefs.h"
17989 #if HAVE_DLFCN_H
17990 #include <dlfcn.h>
17991 #endif
17993 #include <stdio.h>
17995 #ifdef RTLD_GLOBAL
17996 # define LT_DLGLOBAL RTLD_GLOBAL
17997 #else
17998 # ifdef DL_GLOBAL
17999 # define LT_DLGLOBAL DL_GLOBAL
18000 # else
18001 # define LT_DLGLOBAL 0
18002 # endif
18003 #endif
18005 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18006 find out it does not work in some platform. */
18007 #ifndef LT_DLLAZY_OR_NOW
18008 # ifdef RTLD_LAZY
18009 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18010 # else
18011 # ifdef DL_LAZY
18012 # define LT_DLLAZY_OR_NOW DL_LAZY
18013 # else
18014 # ifdef RTLD_NOW
18015 # define LT_DLLAZY_OR_NOW RTLD_NOW
18016 # else
18017 # ifdef DL_NOW
18018 # define LT_DLLAZY_OR_NOW DL_NOW
18019 # else
18020 # define LT_DLLAZY_OR_NOW 0
18021 # endif
18022 # endif
18023 # endif
18024 # endif
18025 #endif
18027 #ifdef __cplusplus
18028 extern "C" void exit (int);
18029 #endif
18031 void fnord() { int i=42;}
18032 int main ()
18034 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18035 int status = $lt_dlunknown;
18037 if (self)
18039 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18040 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18041 /* dlclose (self); */
18044 exit (status);
18047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18048 (eval $ac_link) 2>&5
18049 ac_status=$?
18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18052 (./conftest; exit; ) 2>/dev/null
18053 lt_status=$?
18054 case x$lt_status in
18055 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18056 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18057 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18058 esac
18059 else :
18060 # compilation failed
18061 lt_cv_dlopen_self=no
18064 rm -fr conftest*
18068 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18069 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18071 if test "x$lt_cv_dlopen_self" = xyes; then
18072 LDFLAGS="$LDFLAGS $link_static_flag"
18073 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18074 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18075 if test "${lt_cv_dlopen_self_static+set}" = set; then
18076 echo $ECHO_N "(cached) $ECHO_C" >&6
18077 else
18078 if test "$cross_compiling" = yes; then :
18079 lt_cv_dlopen_self_static=cross
18080 else
18081 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18082 lt_status=$lt_dlunknown
18083 cat > conftest.$ac_ext <<EOF
18084 #line 18084 "configure"
18085 #include "confdefs.h"
18087 #if HAVE_DLFCN_H
18088 #include <dlfcn.h>
18089 #endif
18091 #include <stdio.h>
18093 #ifdef RTLD_GLOBAL
18094 # define LT_DLGLOBAL RTLD_GLOBAL
18095 #else
18096 # ifdef DL_GLOBAL
18097 # define LT_DLGLOBAL DL_GLOBAL
18098 # else
18099 # define LT_DLGLOBAL 0
18100 # endif
18101 #endif
18103 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18104 find out it does not work in some platform. */
18105 #ifndef LT_DLLAZY_OR_NOW
18106 # ifdef RTLD_LAZY
18107 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18108 # else
18109 # ifdef DL_LAZY
18110 # define LT_DLLAZY_OR_NOW DL_LAZY
18111 # else
18112 # ifdef RTLD_NOW
18113 # define LT_DLLAZY_OR_NOW RTLD_NOW
18114 # else
18115 # ifdef DL_NOW
18116 # define LT_DLLAZY_OR_NOW DL_NOW
18117 # else
18118 # define LT_DLLAZY_OR_NOW 0
18119 # endif
18120 # endif
18121 # endif
18122 # endif
18123 #endif
18125 #ifdef __cplusplus
18126 extern "C" void exit (int);
18127 #endif
18129 void fnord() { int i=42;}
18130 int main ()
18132 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18133 int status = $lt_dlunknown;
18135 if (self)
18137 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18138 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18139 /* dlclose (self); */
18142 exit (status);
18145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18146 (eval $ac_link) 2>&5
18147 ac_status=$?
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18150 (./conftest; exit; ) 2>/dev/null
18151 lt_status=$?
18152 case x$lt_status in
18153 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18154 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18155 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18156 esac
18157 else :
18158 # compilation failed
18159 lt_cv_dlopen_self_static=no
18162 rm -fr conftest*
18166 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18167 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18170 CPPFLAGS="$save_CPPFLAGS"
18171 LDFLAGS="$save_LDFLAGS"
18172 LIBS="$save_LIBS"
18174 esac
18176 case $lt_cv_dlopen_self in
18177 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18178 *) enable_dlopen_self=unknown ;;
18179 esac
18181 case $lt_cv_dlopen_self_static in
18182 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18183 *) enable_dlopen_self_static=unknown ;;
18184 esac
18188 # The else clause should only fire when bootstrapping the
18189 # libtool distribution, otherwise you forgot to ship ltmain.sh
18190 # with your package, and you will get complaints that there are
18191 # no rules to generate ltmain.sh.
18192 if test -f "$ltmain"; then
18193 # See if we are running on zsh, and set the options which allow our commands through
18194 # without removal of \ escapes.
18195 if test -n "${ZSH_VERSION+set}" ; then
18196 setopt NO_GLOB_SUBST
18198 # Now quote all the things that may contain metacharacters while being
18199 # careful not to overquote the AC_SUBSTed values. We take copies of the
18200 # variables and quote the copies for generation of the libtool script.
18201 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18202 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18203 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18204 deplibs_check_method reload_flag reload_cmds need_locks \
18205 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18206 lt_cv_sys_global_symbol_to_c_name_address \
18207 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18208 old_postinstall_cmds old_postuninstall_cmds \
18209 compiler_GCJ \
18210 CC_GCJ \
18211 LD_GCJ \
18212 lt_prog_compiler_wl_GCJ \
18213 lt_prog_compiler_pic_GCJ \
18214 lt_prog_compiler_static_GCJ \
18215 lt_prog_compiler_no_builtin_flag_GCJ \
18216 export_dynamic_flag_spec_GCJ \
18217 thread_safe_flag_spec_GCJ \
18218 whole_archive_flag_spec_GCJ \
18219 enable_shared_with_static_runtimes_GCJ \
18220 old_archive_cmds_GCJ \
18221 old_archive_from_new_cmds_GCJ \
18222 predep_objects_GCJ \
18223 postdep_objects_GCJ \
18224 predeps_GCJ \
18225 postdeps_GCJ \
18226 compiler_lib_search_path_GCJ \
18227 archive_cmds_GCJ \
18228 archive_expsym_cmds_GCJ \
18229 postinstall_cmds_GCJ \
18230 postuninstall_cmds_GCJ \
18231 old_archive_from_expsyms_cmds_GCJ \
18232 allow_undefined_flag_GCJ \
18233 no_undefined_flag_GCJ \
18234 export_symbols_cmds_GCJ \
18235 hardcode_libdir_flag_spec_GCJ \
18236 hardcode_libdir_flag_spec_ld_GCJ \
18237 hardcode_libdir_separator_GCJ \
18238 hardcode_automatic_GCJ \
18239 module_cmds_GCJ \
18240 module_expsym_cmds_GCJ \
18241 lt_cv_prog_compiler_c_o_GCJ \
18242 exclude_expsyms_GCJ \
18243 include_expsyms_GCJ; do
18245 case $var in
18246 old_archive_cmds_GCJ | \
18247 old_archive_from_new_cmds_GCJ | \
18248 archive_cmds_GCJ | \
18249 archive_expsym_cmds_GCJ | \
18250 module_cmds_GCJ | \
18251 module_expsym_cmds_GCJ | \
18252 old_archive_from_expsyms_cmds_GCJ | \
18253 export_symbols_cmds_GCJ | \
18254 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18255 postinstall_cmds | postuninstall_cmds | \
18256 old_postinstall_cmds | old_postuninstall_cmds | \
18257 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18258 # Double-quote double-evaled strings.
18259 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18262 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18264 esac
18265 done
18267 case $lt_echo in
18268 *'\$0 --fallback-echo"')
18269 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18271 esac
18273 cfgfile="$ofile"
18275 cat <<__EOF__ >> "$cfgfile"
18276 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18278 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18280 # Shell to use when invoking shell scripts.
18281 SHELL=$lt_SHELL
18283 # Whether or not to build shared libraries.
18284 build_libtool_libs=$enable_shared
18286 # Whether or not to build static libraries.
18287 build_old_libs=$enable_static
18289 # Whether or not to add -lc for building shared libraries.
18290 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18292 # Whether or not to disallow shared libs when runtime libs are static
18293 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18295 # Whether or not to optimize for fast installation.
18296 fast_install=$enable_fast_install
18298 # The host system.
18299 host_alias=$host_alias
18300 host=$host
18302 # An echo program that does not interpret backslashes.
18303 echo=$lt_echo
18305 # The archiver.
18306 AR=$lt_AR
18307 AR_FLAGS=$lt_AR_FLAGS
18309 # A C compiler.
18310 LTCC=$lt_LTCC
18312 # A language-specific compiler.
18313 CC=$lt_compiler_GCJ
18315 # Is the compiler the GNU C compiler?
18316 with_gcc=$GCC_GCJ
18318 # An ERE matcher.
18319 EGREP=$lt_EGREP
18321 # The linker used to build libraries.
18322 LD=$lt_LD_GCJ
18324 # Whether we need hard or soft links.
18325 LN_S=$lt_LN_S
18327 # A BSD-compatible nm program.
18328 NM=$lt_NM
18330 # A symbol stripping program
18331 STRIP=$STRIP
18333 # Used to examine libraries when file_magic_cmd begins "file"
18334 MAGIC_CMD=$MAGIC_CMD
18336 # Used on cygwin: DLL creation program.
18337 DLLTOOL="$DLLTOOL"
18339 # Used on cygwin: object dumper.
18340 OBJDUMP="$OBJDUMP"
18342 # Used on cygwin: assembler.
18343 AS="$AS"
18345 # The name of the directory that contains temporary libtool files.
18346 objdir=$objdir
18348 # How to create reloadable object files.
18349 reload_flag=$lt_reload_flag
18350 reload_cmds=$lt_reload_cmds
18352 # How to pass a linker flag through the compiler.
18353 wl=$lt_lt_prog_compiler_wl_GCJ
18355 # Object file suffix (normally "o").
18356 objext="$ac_objext"
18358 # Old archive suffix (normally "a").
18359 libext="$libext"
18361 # Shared library suffix (normally ".so").
18362 shrext='$shrext'
18364 # Executable file suffix (normally "").
18365 exeext="$exeext"
18367 # Additional compiler flags for building library objects.
18368 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18369 pic_mode=$pic_mode
18371 # What is the maximum length of a command?
18372 max_cmd_len=$lt_cv_sys_max_cmd_len
18374 # Does compiler simultaneously support -c and -o options?
18375 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18377 # Must we lock files when doing compilation ?
18378 need_locks=$lt_need_locks
18380 # Do we need the lib prefix for modules?
18381 need_lib_prefix=$need_lib_prefix
18383 # Do we need a version for libraries?
18384 need_version=$need_version
18386 # Whether dlopen is supported.
18387 dlopen_support=$enable_dlopen
18389 # Whether dlopen of programs is supported.
18390 dlopen_self=$enable_dlopen_self
18392 # Whether dlopen of statically linked programs is supported.
18393 dlopen_self_static=$enable_dlopen_self_static
18395 # Compiler flag to prevent dynamic linking.
18396 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18398 # Compiler flag to turn off builtin functions.
18399 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18401 # Compiler flag to allow reflexive dlopens.
18402 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18404 # Compiler flag to generate shared objects directly from archives.
18405 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18407 # Compiler flag to generate thread-safe objects.
18408 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18410 # Library versioning type.
18411 version_type=$version_type
18413 # Format of library name prefix.
18414 libname_spec=$lt_libname_spec
18416 # List of archive names. First name is the real one, the rest are links.
18417 # The last name is the one that the linker finds with -lNAME.
18418 library_names_spec=$lt_library_names_spec
18420 # The coded name of the library, if different from the real name.
18421 soname_spec=$lt_soname_spec
18423 # Commands used to build and install an old-style archive.
18424 RANLIB=$lt_RANLIB
18425 old_archive_cmds=$lt_old_archive_cmds_GCJ
18426 old_postinstall_cmds=$lt_old_postinstall_cmds
18427 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18429 # Create an old-style archive from a shared archive.
18430 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18432 # Create a temporary old-style archive to link instead of a shared archive.
18433 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18435 # Commands used to build and install a shared archive.
18436 archive_cmds=$lt_archive_cmds_GCJ
18437 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18438 postinstall_cmds=$lt_postinstall_cmds
18439 postuninstall_cmds=$lt_postuninstall_cmds
18441 # Commands used to build a loadable module (assumed same as above if empty)
18442 module_cmds=$lt_module_cmds_GCJ
18443 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18445 # Commands to strip libraries.
18446 old_striplib=$lt_old_striplib
18447 striplib=$lt_striplib
18449 # Dependencies to place before the objects being linked to create a
18450 # shared library.
18451 predep_objects=$lt_predep_objects_GCJ
18453 # Dependencies to place after the objects being linked to create a
18454 # shared library.
18455 postdep_objects=$lt_postdep_objects_GCJ
18457 # Dependencies to place before the objects being linked to create a
18458 # shared library.
18459 predeps=$lt_predeps_GCJ
18461 # Dependencies to place after the objects being linked to create a
18462 # shared library.
18463 postdeps=$lt_postdeps_GCJ
18465 # The library search path used internally by the compiler when linking
18466 # a shared library.
18467 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18469 # Method to check whether dependent libraries are shared objects.
18470 deplibs_check_method=$lt_deplibs_check_method
18472 # Command to use when deplibs_check_method == file_magic.
18473 file_magic_cmd=$lt_file_magic_cmd
18475 # Flag that allows shared libraries with undefined symbols to be built.
18476 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18478 # Flag that forces no undefined symbols.
18479 no_undefined_flag=$lt_no_undefined_flag_GCJ
18481 # Commands used to finish a libtool library installation in a directory.
18482 finish_cmds=$lt_finish_cmds
18484 # Same as above, but a single script fragment to be evaled but not shown.
18485 finish_eval=$lt_finish_eval
18487 # Take the output of nm and produce a listing of raw symbols and C names.
18488 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18490 # Transform the output of nm in a proper C declaration
18491 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18493 # Transform the output of nm in a C name address pair
18494 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18496 # This is the shared library runtime path variable.
18497 runpath_var=$runpath_var
18499 # This is the shared library path variable.
18500 shlibpath_var=$shlibpath_var
18502 # Is shlibpath searched before the hard-coded library search path?
18503 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18505 # How to hardcode a shared library path into an executable.
18506 hardcode_action=$hardcode_action_GCJ
18508 # Whether we should hardcode library paths into libraries.
18509 hardcode_into_libs=$hardcode_into_libs
18511 # Flag to hardcode \$libdir into a binary during linking.
18512 # This must work even if \$libdir does not exist.
18513 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18515 # If ld is used when linking, flag to hardcode \$libdir into
18516 # a binary during linking. This must work even if \$libdir does
18517 # not exist.
18518 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18520 # Whether we need a single -rpath flag with a separated argument.
18521 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18523 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18524 # resulting binary.
18525 hardcode_direct=$hardcode_direct_GCJ
18527 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18528 # resulting binary.
18529 hardcode_minus_L=$hardcode_minus_L_GCJ
18531 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18532 # the resulting binary.
18533 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18535 # Set to yes if building a shared library automatically hardcodes DIR into the library
18536 # and all subsequent libraries and executables linked against it.
18537 hardcode_automatic=$hardcode_automatic_GCJ
18539 # Variables whose values should be saved in libtool wrapper scripts and
18540 # restored at relink time.
18541 variables_saved_for_relink="$variables_saved_for_relink"
18543 # Whether libtool must link a program against all its dependency libraries.
18544 link_all_deplibs=$link_all_deplibs_GCJ
18546 # Compile-time system search path for libraries
18547 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18549 # Run-time system search path for libraries
18550 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18552 # Fix the shell variable \$srcfile for the compiler.
18553 fix_srcfile_path="$fix_srcfile_path_GCJ"
18555 # Set to yes if exported symbols are required.
18556 always_export_symbols=$always_export_symbols_GCJ
18558 # The commands to list exported symbols.
18559 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18561 # The commands to extract the exported symbol list from a shared archive.
18562 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18564 # Symbols that should not be listed in the preloaded symbols.
18565 exclude_expsyms=$lt_exclude_expsyms_GCJ
18567 # Symbols that must always be exported.
18568 include_expsyms=$lt_include_expsyms_GCJ
18570 # ### END LIBTOOL TAG CONFIG: $tagname
18572 __EOF__
18575 else
18576 # If there is no Makefile yet, we rely on a make rule to execute
18577 # `config.status --recheck' to rerun these tests and create the
18578 # libtool script then.
18579 test -f Makefile && make "$ltmain"
18583 ac_ext=c
18584 ac_cpp='$CPP $CPPFLAGS'
18585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18589 CC="$lt_save_CC"
18591 else
18592 tagname=""
18600 # Source file extension for RC test sources.
18601 ac_ext=rc
18603 # Object file extension for compiled RC test sources.
18604 objext=o
18605 objext_RC=$objext
18607 # Code to be used in simple compile tests
18608 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18610 # Code to be used in simple link tests
18611 lt_simple_link_test_code="$lt_simple_compile_test_code"
18613 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18615 # If no C compiler was specified, use CC.
18616 LTCC=${LTCC-"$CC"}
18618 # Allow CC to be a program name with arguments.
18619 compiler=$CC
18622 # Allow CC to be a program name with arguments.
18623 lt_save_CC="$CC"
18624 CC=${RC-"windres"}
18625 compiler=$CC
18626 compiler_RC=$CC
18627 lt_cv_prog_compiler_c_o_RC=yes
18629 # The else clause should only fire when bootstrapping the
18630 # libtool distribution, otherwise you forgot to ship ltmain.sh
18631 # with your package, and you will get complaints that there are
18632 # no rules to generate ltmain.sh.
18633 if test -f "$ltmain"; then
18634 # See if we are running on zsh, and set the options which allow our commands through
18635 # without removal of \ escapes.
18636 if test -n "${ZSH_VERSION+set}" ; then
18637 setopt NO_GLOB_SUBST
18639 # Now quote all the things that may contain metacharacters while being
18640 # careful not to overquote the AC_SUBSTed values. We take copies of the
18641 # variables and quote the copies for generation of the libtool script.
18642 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18643 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18644 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18645 deplibs_check_method reload_flag reload_cmds need_locks \
18646 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18647 lt_cv_sys_global_symbol_to_c_name_address \
18648 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18649 old_postinstall_cmds old_postuninstall_cmds \
18650 compiler_RC \
18651 CC_RC \
18652 LD_RC \
18653 lt_prog_compiler_wl_RC \
18654 lt_prog_compiler_pic_RC \
18655 lt_prog_compiler_static_RC \
18656 lt_prog_compiler_no_builtin_flag_RC \
18657 export_dynamic_flag_spec_RC \
18658 thread_safe_flag_spec_RC \
18659 whole_archive_flag_spec_RC \
18660 enable_shared_with_static_runtimes_RC \
18661 old_archive_cmds_RC \
18662 old_archive_from_new_cmds_RC \
18663 predep_objects_RC \
18664 postdep_objects_RC \
18665 predeps_RC \
18666 postdeps_RC \
18667 compiler_lib_search_path_RC \
18668 archive_cmds_RC \
18669 archive_expsym_cmds_RC \
18670 postinstall_cmds_RC \
18671 postuninstall_cmds_RC \
18672 old_archive_from_expsyms_cmds_RC \
18673 allow_undefined_flag_RC \
18674 no_undefined_flag_RC \
18675 export_symbols_cmds_RC \
18676 hardcode_libdir_flag_spec_RC \
18677 hardcode_libdir_flag_spec_ld_RC \
18678 hardcode_libdir_separator_RC \
18679 hardcode_automatic_RC \
18680 module_cmds_RC \
18681 module_expsym_cmds_RC \
18682 lt_cv_prog_compiler_c_o_RC \
18683 exclude_expsyms_RC \
18684 include_expsyms_RC; do
18686 case $var in
18687 old_archive_cmds_RC | \
18688 old_archive_from_new_cmds_RC | \
18689 archive_cmds_RC | \
18690 archive_expsym_cmds_RC | \
18691 module_cmds_RC | \
18692 module_expsym_cmds_RC | \
18693 old_archive_from_expsyms_cmds_RC | \
18694 export_symbols_cmds_RC | \
18695 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18696 postinstall_cmds | postuninstall_cmds | \
18697 old_postinstall_cmds | old_postuninstall_cmds | \
18698 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18699 # Double-quote double-evaled strings.
18700 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18703 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18705 esac
18706 done
18708 case $lt_echo in
18709 *'\$0 --fallback-echo"')
18710 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18712 esac
18714 cfgfile="$ofile"
18716 cat <<__EOF__ >> "$cfgfile"
18717 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18719 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18721 # Shell to use when invoking shell scripts.
18722 SHELL=$lt_SHELL
18724 # Whether or not to build shared libraries.
18725 build_libtool_libs=$enable_shared
18727 # Whether or not to build static libraries.
18728 build_old_libs=$enable_static
18730 # Whether or not to add -lc for building shared libraries.
18731 build_libtool_need_lc=$archive_cmds_need_lc_RC
18733 # Whether or not to disallow shared libs when runtime libs are static
18734 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18736 # Whether or not to optimize for fast installation.
18737 fast_install=$enable_fast_install
18739 # The host system.
18740 host_alias=$host_alias
18741 host=$host
18743 # An echo program that does not interpret backslashes.
18744 echo=$lt_echo
18746 # The archiver.
18747 AR=$lt_AR
18748 AR_FLAGS=$lt_AR_FLAGS
18750 # A C compiler.
18751 LTCC=$lt_LTCC
18753 # A language-specific compiler.
18754 CC=$lt_compiler_RC
18756 # Is the compiler the GNU C compiler?
18757 with_gcc=$GCC_RC
18759 # An ERE matcher.
18760 EGREP=$lt_EGREP
18762 # The linker used to build libraries.
18763 LD=$lt_LD_RC
18765 # Whether we need hard or soft links.
18766 LN_S=$lt_LN_S
18768 # A BSD-compatible nm program.
18769 NM=$lt_NM
18771 # A symbol stripping program
18772 STRIP=$STRIP
18774 # Used to examine libraries when file_magic_cmd begins "file"
18775 MAGIC_CMD=$MAGIC_CMD
18777 # Used on cygwin: DLL creation program.
18778 DLLTOOL="$DLLTOOL"
18780 # Used on cygwin: object dumper.
18781 OBJDUMP="$OBJDUMP"
18783 # Used on cygwin: assembler.
18784 AS="$AS"
18786 # The name of the directory that contains temporary libtool files.
18787 objdir=$objdir
18789 # How to create reloadable object files.
18790 reload_flag=$lt_reload_flag
18791 reload_cmds=$lt_reload_cmds
18793 # How to pass a linker flag through the compiler.
18794 wl=$lt_lt_prog_compiler_wl_RC
18796 # Object file suffix (normally "o").
18797 objext="$ac_objext"
18799 # Old archive suffix (normally "a").
18800 libext="$libext"
18802 # Shared library suffix (normally ".so").
18803 shrext='$shrext'
18805 # Executable file suffix (normally "").
18806 exeext="$exeext"
18808 # Additional compiler flags for building library objects.
18809 pic_flag=$lt_lt_prog_compiler_pic_RC
18810 pic_mode=$pic_mode
18812 # What is the maximum length of a command?
18813 max_cmd_len=$lt_cv_sys_max_cmd_len
18815 # Does compiler simultaneously support -c and -o options?
18816 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18818 # Must we lock files when doing compilation ?
18819 need_locks=$lt_need_locks
18821 # Do we need the lib prefix for modules?
18822 need_lib_prefix=$need_lib_prefix
18824 # Do we need a version for libraries?
18825 need_version=$need_version
18827 # Whether dlopen is supported.
18828 dlopen_support=$enable_dlopen
18830 # Whether dlopen of programs is supported.
18831 dlopen_self=$enable_dlopen_self
18833 # Whether dlopen of statically linked programs is supported.
18834 dlopen_self_static=$enable_dlopen_self_static
18836 # Compiler flag to prevent dynamic linking.
18837 link_static_flag=$lt_lt_prog_compiler_static_RC
18839 # Compiler flag to turn off builtin functions.
18840 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18842 # Compiler flag to allow reflexive dlopens.
18843 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18845 # Compiler flag to generate shared objects directly from archives.
18846 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18848 # Compiler flag to generate thread-safe objects.
18849 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18851 # Library versioning type.
18852 version_type=$version_type
18854 # Format of library name prefix.
18855 libname_spec=$lt_libname_spec
18857 # List of archive names. First name is the real one, the rest are links.
18858 # The last name is the one that the linker finds with -lNAME.
18859 library_names_spec=$lt_library_names_spec
18861 # The coded name of the library, if different from the real name.
18862 soname_spec=$lt_soname_spec
18864 # Commands used to build and install an old-style archive.
18865 RANLIB=$lt_RANLIB
18866 old_archive_cmds=$lt_old_archive_cmds_RC
18867 old_postinstall_cmds=$lt_old_postinstall_cmds
18868 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18870 # Create an old-style archive from a shared archive.
18871 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18873 # Create a temporary old-style archive to link instead of a shared archive.
18874 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18876 # Commands used to build and install a shared archive.
18877 archive_cmds=$lt_archive_cmds_RC
18878 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18879 postinstall_cmds=$lt_postinstall_cmds
18880 postuninstall_cmds=$lt_postuninstall_cmds
18882 # Commands used to build a loadable module (assumed same as above if empty)
18883 module_cmds=$lt_module_cmds_RC
18884 module_expsym_cmds=$lt_module_expsym_cmds_RC
18886 # Commands to strip libraries.
18887 old_striplib=$lt_old_striplib
18888 striplib=$lt_striplib
18890 # Dependencies to place before the objects being linked to create a
18891 # shared library.
18892 predep_objects=$lt_predep_objects_RC
18894 # Dependencies to place after the objects being linked to create a
18895 # shared library.
18896 postdep_objects=$lt_postdep_objects_RC
18898 # Dependencies to place before the objects being linked to create a
18899 # shared library.
18900 predeps=$lt_predeps_RC
18902 # Dependencies to place after the objects being linked to create a
18903 # shared library.
18904 postdeps=$lt_postdeps_RC
18906 # The library search path used internally by the compiler when linking
18907 # a shared library.
18908 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18910 # Method to check whether dependent libraries are shared objects.
18911 deplibs_check_method=$lt_deplibs_check_method
18913 # Command to use when deplibs_check_method == file_magic.
18914 file_magic_cmd=$lt_file_magic_cmd
18916 # Flag that allows shared libraries with undefined symbols to be built.
18917 allow_undefined_flag=$lt_allow_undefined_flag_RC
18919 # Flag that forces no undefined symbols.
18920 no_undefined_flag=$lt_no_undefined_flag_RC
18922 # Commands used to finish a libtool library installation in a directory.
18923 finish_cmds=$lt_finish_cmds
18925 # Same as above, but a single script fragment to be evaled but not shown.
18926 finish_eval=$lt_finish_eval
18928 # Take the output of nm and produce a listing of raw symbols and C names.
18929 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18931 # Transform the output of nm in a proper C declaration
18932 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18934 # Transform the output of nm in a C name address pair
18935 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18937 # This is the shared library runtime path variable.
18938 runpath_var=$runpath_var
18940 # This is the shared library path variable.
18941 shlibpath_var=$shlibpath_var
18943 # Is shlibpath searched before the hard-coded library search path?
18944 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18946 # How to hardcode a shared library path into an executable.
18947 hardcode_action=$hardcode_action_RC
18949 # Whether we should hardcode library paths into libraries.
18950 hardcode_into_libs=$hardcode_into_libs
18952 # Flag to hardcode \$libdir into a binary during linking.
18953 # This must work even if \$libdir does not exist.
18954 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18956 # If ld is used when linking, flag to hardcode \$libdir into
18957 # a binary during linking. This must work even if \$libdir does
18958 # not exist.
18959 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18961 # Whether we need a single -rpath flag with a separated argument.
18962 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18964 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18965 # resulting binary.
18966 hardcode_direct=$hardcode_direct_RC
18968 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18969 # resulting binary.
18970 hardcode_minus_L=$hardcode_minus_L_RC
18972 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18973 # the resulting binary.
18974 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18976 # Set to yes if building a shared library automatically hardcodes DIR into the library
18977 # and all subsequent libraries and executables linked against it.
18978 hardcode_automatic=$hardcode_automatic_RC
18980 # Variables whose values should be saved in libtool wrapper scripts and
18981 # restored at relink time.
18982 variables_saved_for_relink="$variables_saved_for_relink"
18984 # Whether libtool must link a program against all its dependency libraries.
18985 link_all_deplibs=$link_all_deplibs_RC
18987 # Compile-time system search path for libraries
18988 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18990 # Run-time system search path for libraries
18991 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18993 # Fix the shell variable \$srcfile for the compiler.
18994 fix_srcfile_path="$fix_srcfile_path_RC"
18996 # Set to yes if exported symbols are required.
18997 always_export_symbols=$always_export_symbols_RC
18999 # The commands to list exported symbols.
19000 export_symbols_cmds=$lt_export_symbols_cmds_RC
19002 # The commands to extract the exported symbol list from a shared archive.
19003 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19005 # Symbols that should not be listed in the preloaded symbols.
19006 exclude_expsyms=$lt_exclude_expsyms_RC
19008 # Symbols that must always be exported.
19009 include_expsyms=$lt_include_expsyms_RC
19011 # ### END LIBTOOL TAG CONFIG: $tagname
19013 __EOF__
19016 else
19017 # If there is no Makefile yet, we rely on a make rule to execute
19018 # `config.status --recheck' to rerun these tests and create the
19019 # libtool script then.
19020 test -f Makefile && make "$ltmain"
19024 ac_ext=c
19025 ac_cpp='$CPP $CPPFLAGS'
19026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19030 CC="$lt_save_CC"
19035 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19036 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19037 { (exit 1); exit 1; }; }
19039 esac
19041 # Append the new tag name to the list of available tags.
19042 if test -n "$tagname" ; then
19043 available_tags="$available_tags $tagname"
19046 done
19047 IFS="$lt_save_ifs"
19049 # Now substitute the updated list of available tags.
19050 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19051 mv "${ofile}T" "$ofile"
19052 chmod +x "$ofile"
19053 else
19054 rm -f "${ofile}T"
19055 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19056 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19057 { (exit 1); exit 1; }; }
19063 # This can be used to rebuild libtool when needed
19064 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19066 # Always use our own libtool.
19067 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19069 # Prevent multiple expansion
19090 ac_ext=c
19091 ac_cpp='$CPP $CPPFLAGS'
19092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19095 if test -n "$ac_tool_prefix"; then
19096 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19097 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19098 echo "$as_me:$LINENO: checking for $ac_word" >&5
19099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19100 if test "${ac_cv_prog_CC+set}" = set; then
19101 echo $ECHO_N "(cached) $ECHO_C" >&6
19102 else
19103 if test -n "$CC"; then
19104 ac_cv_prog_CC="$CC" # Let the user override the test.
19105 else
19106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19107 for as_dir in $PATH
19109 IFS=$as_save_IFS
19110 test -z "$as_dir" && as_dir=.
19111 for ac_exec_ext in '' $ac_executable_extensions; do
19112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19113 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19115 break 2
19117 done
19118 done
19122 CC=$ac_cv_prog_CC
19123 if test -n "$CC"; then
19124 echo "$as_me:$LINENO: result: $CC" >&5
19125 echo "${ECHO_T}$CC" >&6
19126 else
19127 echo "$as_me:$LINENO: result: no" >&5
19128 echo "${ECHO_T}no" >&6
19132 if test -z "$ac_cv_prog_CC"; then
19133 ac_ct_CC=$CC
19134 # Extract the first word of "gcc", so it can be a program name with args.
19135 set dummy gcc; ac_word=$2
19136 echo "$as_me:$LINENO: checking for $ac_word" >&5
19137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19138 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19139 echo $ECHO_N "(cached) $ECHO_C" >&6
19140 else
19141 if test -n "$ac_ct_CC"; then
19142 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19143 else
19144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19145 for as_dir in $PATH
19147 IFS=$as_save_IFS
19148 test -z "$as_dir" && as_dir=.
19149 for ac_exec_ext in '' $ac_executable_extensions; do
19150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19151 ac_cv_prog_ac_ct_CC="gcc"
19152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19153 break 2
19155 done
19156 done
19160 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19161 if test -n "$ac_ct_CC"; then
19162 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19163 echo "${ECHO_T}$ac_ct_CC" >&6
19164 else
19165 echo "$as_me:$LINENO: result: no" >&5
19166 echo "${ECHO_T}no" >&6
19169 CC=$ac_ct_CC
19170 else
19171 CC="$ac_cv_prog_CC"
19174 if test -z "$CC"; then
19175 if test -n "$ac_tool_prefix"; then
19176 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19177 set dummy ${ac_tool_prefix}cc; ac_word=$2
19178 echo "$as_me:$LINENO: checking for $ac_word" >&5
19179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19180 if test "${ac_cv_prog_CC+set}" = set; then
19181 echo $ECHO_N "(cached) $ECHO_C" >&6
19182 else
19183 if test -n "$CC"; then
19184 ac_cv_prog_CC="$CC" # Let the user override the test.
19185 else
19186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19187 for as_dir in $PATH
19189 IFS=$as_save_IFS
19190 test -z "$as_dir" && as_dir=.
19191 for ac_exec_ext in '' $ac_executable_extensions; do
19192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19193 ac_cv_prog_CC="${ac_tool_prefix}cc"
19194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19195 break 2
19197 done
19198 done
19202 CC=$ac_cv_prog_CC
19203 if test -n "$CC"; then
19204 echo "$as_me:$LINENO: result: $CC" >&5
19205 echo "${ECHO_T}$CC" >&6
19206 else
19207 echo "$as_me:$LINENO: result: no" >&5
19208 echo "${ECHO_T}no" >&6
19212 if test -z "$ac_cv_prog_CC"; then
19213 ac_ct_CC=$CC
19214 # Extract the first word of "cc", so it can be a program name with args.
19215 set dummy cc; ac_word=$2
19216 echo "$as_me:$LINENO: checking for $ac_word" >&5
19217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19218 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19219 echo $ECHO_N "(cached) $ECHO_C" >&6
19220 else
19221 if test -n "$ac_ct_CC"; then
19222 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19223 else
19224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19225 for as_dir in $PATH
19227 IFS=$as_save_IFS
19228 test -z "$as_dir" && as_dir=.
19229 for ac_exec_ext in '' $ac_executable_extensions; do
19230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19231 ac_cv_prog_ac_ct_CC="cc"
19232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19233 break 2
19235 done
19236 done
19240 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19241 if test -n "$ac_ct_CC"; then
19242 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19243 echo "${ECHO_T}$ac_ct_CC" >&6
19244 else
19245 echo "$as_me:$LINENO: result: no" >&5
19246 echo "${ECHO_T}no" >&6
19249 CC=$ac_ct_CC
19250 else
19251 CC="$ac_cv_prog_CC"
19255 if test -z "$CC"; then
19256 # Extract the first word of "cc", so it can be a program name with args.
19257 set dummy cc; ac_word=$2
19258 echo "$as_me:$LINENO: checking for $ac_word" >&5
19259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19260 if test "${ac_cv_prog_CC+set}" = set; then
19261 echo $ECHO_N "(cached) $ECHO_C" >&6
19262 else
19263 if test -n "$CC"; then
19264 ac_cv_prog_CC="$CC" # Let the user override the test.
19265 else
19266 ac_prog_rejected=no
19267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19268 for as_dir in $PATH
19270 IFS=$as_save_IFS
19271 test -z "$as_dir" && as_dir=.
19272 for ac_exec_ext in '' $ac_executable_extensions; do
19273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19274 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19275 ac_prog_rejected=yes
19276 continue
19278 ac_cv_prog_CC="cc"
19279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19280 break 2
19282 done
19283 done
19285 if test $ac_prog_rejected = yes; then
19286 # We found a bogon in the path, so make sure we never use it.
19287 set dummy $ac_cv_prog_CC
19288 shift
19289 if test $# != 0; then
19290 # We chose a different compiler from the bogus one.
19291 # However, it has the same basename, so the bogon will be chosen
19292 # first if we set CC to just the basename; use the full file name.
19293 shift
19294 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19299 CC=$ac_cv_prog_CC
19300 if test -n "$CC"; then
19301 echo "$as_me:$LINENO: result: $CC" >&5
19302 echo "${ECHO_T}$CC" >&6
19303 else
19304 echo "$as_me:$LINENO: result: no" >&5
19305 echo "${ECHO_T}no" >&6
19309 if test -z "$CC"; then
19310 if test -n "$ac_tool_prefix"; then
19311 for ac_prog in cl
19313 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19314 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19315 echo "$as_me:$LINENO: checking for $ac_word" >&5
19316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19317 if test "${ac_cv_prog_CC+set}" = set; then
19318 echo $ECHO_N "(cached) $ECHO_C" >&6
19319 else
19320 if test -n "$CC"; then
19321 ac_cv_prog_CC="$CC" # Let the user override the test.
19322 else
19323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19324 for as_dir in $PATH
19326 IFS=$as_save_IFS
19327 test -z "$as_dir" && as_dir=.
19328 for ac_exec_ext in '' $ac_executable_extensions; do
19329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19330 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19332 break 2
19334 done
19335 done
19339 CC=$ac_cv_prog_CC
19340 if test -n "$CC"; then
19341 echo "$as_me:$LINENO: result: $CC" >&5
19342 echo "${ECHO_T}$CC" >&6
19343 else
19344 echo "$as_me:$LINENO: result: no" >&5
19345 echo "${ECHO_T}no" >&6
19348 test -n "$CC" && break
19349 done
19351 if test -z "$CC"; then
19352 ac_ct_CC=$CC
19353 for ac_prog in cl
19355 # Extract the first word of "$ac_prog", so it can be a program name with args.
19356 set dummy $ac_prog; ac_word=$2
19357 echo "$as_me:$LINENO: checking for $ac_word" >&5
19358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19359 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19360 echo $ECHO_N "(cached) $ECHO_C" >&6
19361 else
19362 if test -n "$ac_ct_CC"; then
19363 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19364 else
19365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19366 for as_dir in $PATH
19368 IFS=$as_save_IFS
19369 test -z "$as_dir" && as_dir=.
19370 for ac_exec_ext in '' $ac_executable_extensions; do
19371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19372 ac_cv_prog_ac_ct_CC="$ac_prog"
19373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19374 break 2
19376 done
19377 done
19381 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19382 if test -n "$ac_ct_CC"; then
19383 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19384 echo "${ECHO_T}$ac_ct_CC" >&6
19385 else
19386 echo "$as_me:$LINENO: result: no" >&5
19387 echo "${ECHO_T}no" >&6
19390 test -n "$ac_ct_CC" && break
19391 done
19393 CC=$ac_ct_CC
19399 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19400 See \`config.log' for more details." >&5
19401 echo "$as_me: error: no acceptable C compiler found in \$PATH
19402 See \`config.log' for more details." >&2;}
19403 { (exit 1); exit 1; }; }
19405 # Provide some information about the compiler.
19406 echo "$as_me:$LINENO:" \
19407 "checking for C compiler version" >&5
19408 ac_compiler=`set X $ac_compile; echo $2`
19409 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19410 (eval $ac_compiler --version </dev/null >&5) 2>&5
19411 ac_status=$?
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); }
19414 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19415 (eval $ac_compiler -v </dev/null >&5) 2>&5
19416 ac_status=$?
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); }
19419 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19420 (eval $ac_compiler -V </dev/null >&5) 2>&5
19421 ac_status=$?
19422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423 (exit $ac_status); }
19425 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19426 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19427 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19428 echo $ECHO_N "(cached) $ECHO_C" >&6
19429 else
19430 cat >conftest.$ac_ext <<_ACEOF
19431 /* confdefs.h. */
19432 _ACEOF
19433 cat confdefs.h >>conftest.$ac_ext
19434 cat >>conftest.$ac_ext <<_ACEOF
19435 /* end confdefs.h. */
19438 main ()
19440 #ifndef __GNUC__
19441 choke me
19442 #endif
19445 return 0;
19447 _ACEOF
19448 rm -f conftest.$ac_objext
19449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19450 (eval $ac_compile) 2>conftest.er1
19451 ac_status=$?
19452 grep -v '^ *+' conftest.er1 >conftest.err
19453 rm -f conftest.er1
19454 cat conftest.err >&5
19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456 (exit $ac_status); } &&
19457 { ac_try='test -z "$ac_c_werror_flag"
19458 || test ! -s conftest.err'
19459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19460 (eval $ac_try) 2>&5
19461 ac_status=$?
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); }; } &&
19464 { ac_try='test -s conftest.$ac_objext'
19465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19466 (eval $ac_try) 2>&5
19467 ac_status=$?
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); }; }; then
19470 ac_compiler_gnu=yes
19471 else
19472 echo "$as_me: failed program was:" >&5
19473 sed 's/^/| /' conftest.$ac_ext >&5
19475 ac_compiler_gnu=no
19477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19478 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19481 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19482 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19483 GCC=`test $ac_compiler_gnu = yes && echo yes`
19484 ac_test_CFLAGS=${CFLAGS+set}
19485 ac_save_CFLAGS=$CFLAGS
19486 CFLAGS="-g"
19487 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19488 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19489 if test "${ac_cv_prog_cc_g+set}" = set; then
19490 echo $ECHO_N "(cached) $ECHO_C" >&6
19491 else
19492 cat >conftest.$ac_ext <<_ACEOF
19493 /* confdefs.h. */
19494 _ACEOF
19495 cat confdefs.h >>conftest.$ac_ext
19496 cat >>conftest.$ac_ext <<_ACEOF
19497 /* end confdefs.h. */
19500 main ()
19504 return 0;
19506 _ACEOF
19507 rm -f conftest.$ac_objext
19508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19509 (eval $ac_compile) 2>conftest.er1
19510 ac_status=$?
19511 grep -v '^ *+' conftest.er1 >conftest.err
19512 rm -f conftest.er1
19513 cat conftest.err >&5
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); } &&
19516 { ac_try='test -z "$ac_c_werror_flag"
19517 || test ! -s conftest.err'
19518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19519 (eval $ac_try) 2>&5
19520 ac_status=$?
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); }; } &&
19523 { ac_try='test -s conftest.$ac_objext'
19524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19525 (eval $ac_try) 2>&5
19526 ac_status=$?
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); }; }; then
19529 ac_cv_prog_cc_g=yes
19530 else
19531 echo "$as_me: failed program was:" >&5
19532 sed 's/^/| /' conftest.$ac_ext >&5
19534 ac_cv_prog_cc_g=no
19536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19538 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19539 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19540 if test "$ac_test_CFLAGS" = set; then
19541 CFLAGS=$ac_save_CFLAGS
19542 elif test $ac_cv_prog_cc_g = yes; then
19543 if test "$GCC" = yes; then
19544 CFLAGS="-g -O2"
19545 else
19546 CFLAGS="-g"
19548 else
19549 if test "$GCC" = yes; then
19550 CFLAGS="-O2"
19551 else
19552 CFLAGS=
19555 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19556 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19557 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19558 echo $ECHO_N "(cached) $ECHO_C" >&6
19559 else
19560 ac_cv_prog_cc_stdc=no
19561 ac_save_CC=$CC
19562 cat >conftest.$ac_ext <<_ACEOF
19563 /* confdefs.h. */
19564 _ACEOF
19565 cat confdefs.h >>conftest.$ac_ext
19566 cat >>conftest.$ac_ext <<_ACEOF
19567 /* end confdefs.h. */
19568 #include <stdarg.h>
19569 #include <stdio.h>
19570 #include <sys/types.h>
19571 #include <sys/stat.h>
19572 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19573 struct buf { int x; };
19574 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19575 static char *e (p, i)
19576 char **p;
19577 int i;
19579 return p[i];
19581 static char *f (char * (*g) (char **, int), char **p, ...)
19583 char *s;
19584 va_list v;
19585 va_start (v,p);
19586 s = g (p, va_arg (v,int));
19587 va_end (v);
19588 return s;
19591 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19592 function prototypes and stuff, but not '\xHH' hex character constants.
19593 These don't provoke an error unfortunately, instead are silently treated
19594 as 'x'. The following induces an error, until -std1 is added to get
19595 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19596 array size at least. It's necessary to write '\x00'==0 to get something
19597 that's true only with -std1. */
19598 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19600 int test (int i, double x);
19601 struct s1 {int (*f) (int a);};
19602 struct s2 {int (*f) (double a);};
19603 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19604 int argc;
19605 char **argv;
19607 main ()
19609 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19611 return 0;
19613 _ACEOF
19614 # Don't try gcc -ansi; that turns off useful extensions and
19615 # breaks some systems' header files.
19616 # AIX -qlanglvl=ansi
19617 # Ultrix and OSF/1 -std1
19618 # HP-UX 10.20 and later -Ae
19619 # HP-UX older versions -Aa -D_HPUX_SOURCE
19620 # SVR4 -Xc -D__EXTENSIONS__
19621 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19623 CC="$ac_save_CC $ac_arg"
19624 rm -f conftest.$ac_objext
19625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19626 (eval $ac_compile) 2>conftest.er1
19627 ac_status=$?
19628 grep -v '^ *+' conftest.er1 >conftest.err
19629 rm -f conftest.er1
19630 cat conftest.err >&5
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); } &&
19633 { ac_try='test -z "$ac_c_werror_flag"
19634 || test ! -s conftest.err'
19635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19636 (eval $ac_try) 2>&5
19637 ac_status=$?
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); }; } &&
19640 { ac_try='test -s conftest.$ac_objext'
19641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19642 (eval $ac_try) 2>&5
19643 ac_status=$?
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); }; }; then
19646 ac_cv_prog_cc_stdc=$ac_arg
19647 break
19648 else
19649 echo "$as_me: failed program was:" >&5
19650 sed 's/^/| /' conftest.$ac_ext >&5
19653 rm -f conftest.err conftest.$ac_objext
19654 done
19655 rm -f conftest.$ac_ext conftest.$ac_objext
19656 CC=$ac_save_CC
19660 case "x$ac_cv_prog_cc_stdc" in
19661 x|xno)
19662 echo "$as_me:$LINENO: result: none needed" >&5
19663 echo "${ECHO_T}none needed" >&6 ;;
19665 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19666 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19667 CC="$CC $ac_cv_prog_cc_stdc" ;;
19668 esac
19670 # Some people use a C++ compiler to compile C. Since we use `exit',
19671 # in C++ we need to declare it. In case someone uses the same compiler
19672 # for both compiling C and C++ we need to have the C++ compiler decide
19673 # the declaration of exit, since it's the most demanding environment.
19674 cat >conftest.$ac_ext <<_ACEOF
19675 #ifndef __cplusplus
19676 choke me
19677 #endif
19678 _ACEOF
19679 rm -f conftest.$ac_objext
19680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19681 (eval $ac_compile) 2>conftest.er1
19682 ac_status=$?
19683 grep -v '^ *+' conftest.er1 >conftest.err
19684 rm -f conftest.er1
19685 cat conftest.err >&5
19686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687 (exit $ac_status); } &&
19688 { ac_try='test -z "$ac_c_werror_flag"
19689 || test ! -s conftest.err'
19690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19691 (eval $ac_try) 2>&5
19692 ac_status=$?
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); }; } &&
19695 { ac_try='test -s conftest.$ac_objext'
19696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19697 (eval $ac_try) 2>&5
19698 ac_status=$?
19699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700 (exit $ac_status); }; }; then
19701 for ac_declaration in \
19702 '' \
19703 'extern "C" void std::exit (int) throw (); using std::exit;' \
19704 'extern "C" void std::exit (int); using std::exit;' \
19705 'extern "C" void exit (int) throw ();' \
19706 'extern "C" void exit (int);' \
19707 'void exit (int);'
19709 cat >conftest.$ac_ext <<_ACEOF
19710 /* confdefs.h. */
19711 _ACEOF
19712 cat confdefs.h >>conftest.$ac_ext
19713 cat >>conftest.$ac_ext <<_ACEOF
19714 /* end confdefs.h. */
19715 $ac_declaration
19716 #include <stdlib.h>
19718 main ()
19720 exit (42);
19722 return 0;
19724 _ACEOF
19725 rm -f conftest.$ac_objext
19726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19727 (eval $ac_compile) 2>conftest.er1
19728 ac_status=$?
19729 grep -v '^ *+' conftest.er1 >conftest.err
19730 rm -f conftest.er1
19731 cat conftest.err >&5
19732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733 (exit $ac_status); } &&
19734 { ac_try='test -z "$ac_c_werror_flag"
19735 || test ! -s conftest.err'
19736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19737 (eval $ac_try) 2>&5
19738 ac_status=$?
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); }; } &&
19741 { ac_try='test -s conftest.$ac_objext'
19742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19743 (eval $ac_try) 2>&5
19744 ac_status=$?
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); }; }; then
19748 else
19749 echo "$as_me: failed program was:" >&5
19750 sed 's/^/| /' conftest.$ac_ext >&5
19752 continue
19754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19755 cat >conftest.$ac_ext <<_ACEOF
19756 /* confdefs.h. */
19757 _ACEOF
19758 cat confdefs.h >>conftest.$ac_ext
19759 cat >>conftest.$ac_ext <<_ACEOF
19760 /* end confdefs.h. */
19761 $ac_declaration
19763 main ()
19765 exit (42);
19767 return 0;
19769 _ACEOF
19770 rm -f conftest.$ac_objext
19771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19772 (eval $ac_compile) 2>conftest.er1
19773 ac_status=$?
19774 grep -v '^ *+' conftest.er1 >conftest.err
19775 rm -f conftest.er1
19776 cat conftest.err >&5
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); } &&
19779 { ac_try='test -z "$ac_c_werror_flag"
19780 || test ! -s conftest.err'
19781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19782 (eval $ac_try) 2>&5
19783 ac_status=$?
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); }; } &&
19786 { ac_try='test -s conftest.$ac_objext'
19787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19788 (eval $ac_try) 2>&5
19789 ac_status=$?
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); }; }; then
19792 break
19793 else
19794 echo "$as_me: failed program was:" >&5
19795 sed 's/^/| /' conftest.$ac_ext >&5
19798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19799 done
19800 rm -f conftest*
19801 if test -n "$ac_declaration"; then
19802 echo '#ifdef __cplusplus' >>confdefs.h
19803 echo $ac_declaration >>confdefs.h
19804 echo '#endif' >>confdefs.h
19807 else
19808 echo "$as_me: failed program was:" >&5
19809 sed 's/^/| /' conftest.$ac_ext >&5
19812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19813 ac_ext=c
19814 ac_cpp='$CPP $CPPFLAGS'
19815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19819 depcc="$CC" am_compiler_list=
19821 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19822 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19823 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19824 echo $ECHO_N "(cached) $ECHO_C" >&6
19825 else
19826 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19827 # We make a subdir and do the tests there. Otherwise we can end up
19828 # making bogus files that we don't know about and never remove. For
19829 # instance it was reported that on HP-UX the gcc test will end up
19830 # making a dummy file named `D' -- because `-MD' means `put the output
19831 # in D'.
19832 mkdir conftest.dir
19833 # Copy depcomp to subdir because otherwise we won't find it if we're
19834 # using a relative directory.
19835 cp "$am_depcomp" conftest.dir
19836 cd conftest.dir
19837 # We will build objects and dependencies in a subdirectory because
19838 # it helps to detect inapplicable dependency modes. For instance
19839 # both Tru64's cc and ICC support -MD to output dependencies as a
19840 # side effect of compilation, but ICC will put the dependencies in
19841 # the current directory while Tru64 will put them in the object
19842 # directory.
19843 mkdir sub
19845 am_cv_CC_dependencies_compiler_type=none
19846 if test "$am_compiler_list" = ""; then
19847 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19849 for depmode in $am_compiler_list; do
19850 # Setup a source with many dependencies, because some compilers
19851 # like to wrap large dependency lists on column 80 (with \), and
19852 # we should not choose a depcomp mode which is confused by this.
19854 # We need to recreate these files for each test, as the compiler may
19855 # overwrite some of them when testing with obscure command lines.
19856 # This happens at least with the AIX C compiler.
19857 : > sub/conftest.c
19858 for i in 1 2 3 4 5 6; do
19859 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19860 : > sub/conftst$i.h
19861 done
19862 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19864 case $depmode in
19865 nosideeffect)
19866 # after this tag, mechanisms are not by side-effect, so they'll
19867 # only be used when explicitly requested
19868 if test "x$enable_dependency_tracking" = xyes; then
19869 continue
19870 else
19871 break
19874 none) break ;;
19875 esac
19876 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19877 # mode. It turns out that the SunPro C++ compiler does not properly
19878 # handle `-M -o', and we need to detect this.
19879 if depmode=$depmode \
19880 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19881 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19882 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19883 >/dev/null 2>conftest.err &&
19884 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19885 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19886 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19887 # icc doesn't choke on unknown options, it will just issue warnings
19888 # (even with -Werror). So we grep stderr for any message
19889 # that says an option was ignored.
19890 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
19891 am_cv_CC_dependencies_compiler_type=$depmode
19892 break
19895 done
19897 cd ..
19898 rm -rf conftest.dir
19899 else
19900 am_cv_CC_dependencies_compiler_type=none
19904 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19905 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19906 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19911 test "x$enable_dependency_tracking" != xno \
19912 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19913 am__fastdepCC_TRUE=
19914 am__fastdepCC_FALSE='#'
19915 else
19916 am__fastdepCC_TRUE='#'
19917 am__fastdepCC_FALSE=
19921 # Find a good install program. We prefer a C program (faster),
19922 # so one script is as good as another. But avoid the broken or
19923 # incompatible versions:
19924 # SysV /etc/install, /usr/sbin/install
19925 # SunOS /usr/etc/install
19926 # IRIX /sbin/install
19927 # AIX /bin/install
19928 # AmigaOS /C/install, which installs bootblocks on floppy discs
19929 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19930 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19931 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19932 # OS/2's system install, which has a completely different semantic
19933 # ./install, which can be erroneously created by make from ./install.sh.
19934 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19935 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
19936 if test -z "$INSTALL"; then
19937 if test "${ac_cv_path_install+set}" = set; then
19938 echo $ECHO_N "(cached) $ECHO_C" >&6
19939 else
19940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19941 for as_dir in $PATH
19943 IFS=$as_save_IFS
19944 test -z "$as_dir" && as_dir=.
19945 # Account for people who put trailing slashes in PATH elements.
19946 case $as_dir/ in
19947 ./ | .// | /cC/* | \
19948 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19949 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19950 /usr/ucb/* ) ;;
19952 # OSF1 and SCO ODT 3.0 have their own names for install.
19953 # Don't use installbsd from OSF since it installs stuff as root
19954 # by default.
19955 for ac_prog in ginstall scoinst install; do
19956 for ac_exec_ext in '' $ac_executable_extensions; do
19957 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
19958 if test $ac_prog = install &&
19959 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19960 # AIX install. It has an incompatible calling convention.
19962 elif test $ac_prog = install &&
19963 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19964 # program-specific install script used by HP pwplus--don't use.
19966 else
19967 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19968 break 3
19971 done
19972 done
19974 esac
19975 done
19979 if test "${ac_cv_path_install+set}" = set; then
19980 INSTALL=$ac_cv_path_install
19981 else
19982 # As a last resort, use the slow shell script. We don't cache a
19983 # path for INSTALL within a source directory, because that will
19984 # break other packages using the cache if that directory is
19985 # removed, or if the path is relative.
19986 INSTALL=$ac_install_sh
19989 echo "$as_me:$LINENO: result: $INSTALL" >&5
19990 echo "${ECHO_T}$INSTALL" >&6
19992 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19993 # It thinks the first close brace ends the variable substitution.
19994 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19996 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19998 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20001 # The alpha architecture needs special flags for binary portability
20002 case "$target" in
20003 alpha*-*-linux*)
20004 CFLAGS="$CFLAGS -mcpu=ev4 -Wa,-mall"
20006 *-*-beos*)
20007 ac_default_prefix=/boot/develop/tools/gnupro
20009 *-*-cygwin* | *-*-mingw32*)
20010 if test "$build" != "$target"; then # cross-compiling
20011 ac_default_prefix=/usr/local/cross-tools/i386-mingw32msvc
20014 esac
20016 # Check for Pango
20019 succeeded=no
20021 if test -z "$PKG_CONFIG"; then
20022 # Extract the first word of "pkg-config", so it can be a program name with args.
20023 set dummy pkg-config; ac_word=$2
20024 echo "$as_me:$LINENO: checking for $ac_word" >&5
20025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20026 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20027 echo $ECHO_N "(cached) $ECHO_C" >&6
20028 else
20029 case $PKG_CONFIG in
20030 [\\/]* | ?:[\\/]*)
20031 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20035 for as_dir in $PATH
20037 IFS=$as_save_IFS
20038 test -z "$as_dir" && as_dir=.
20039 for ac_exec_ext in '' $ac_executable_extensions; do
20040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20041 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20043 break 2
20045 done
20046 done
20048 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20050 esac
20052 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20054 if test -n "$PKG_CONFIG"; then
20055 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20056 echo "${ECHO_T}$PKG_CONFIG" >&6
20057 else
20058 echo "$as_me:$LINENO: result: no" >&5
20059 echo "${ECHO_T}no" >&6
20064 if test "$PKG_CONFIG" = "no" ; then
20065 echo "*** The pkg-config script could not be found. Make sure it is"
20066 echo "*** in your path, or set the PKG_CONFIG environment variable"
20067 echo "*** to the full path to pkg-config."
20068 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20069 else
20070 PKG_CONFIG_MIN_VERSION=0.9.0
20071 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20072 echo "$as_me:$LINENO: checking for pango >= 1.2.0" >&5
20073 echo $ECHO_N "checking for pango >= 1.2.0... $ECHO_C" >&6
20075 if $PKG_CONFIG --exists "pango >= 1.2.0" ; then
20076 echo "$as_me:$LINENO: result: yes" >&5
20077 echo "${ECHO_T}yes" >&6
20078 succeeded=yes
20080 echo "$as_me:$LINENO: checking PANGO_CFLAGS" >&5
20081 echo $ECHO_N "checking PANGO_CFLAGS... $ECHO_C" >&6
20082 PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.2.0"`
20083 echo "$as_me:$LINENO: result: $PANGO_CFLAGS" >&5
20084 echo "${ECHO_T}$PANGO_CFLAGS" >&6
20086 echo "$as_me:$LINENO: checking PANGO_LIBS" >&5
20087 echo $ECHO_N "checking PANGO_LIBS... $ECHO_C" >&6
20088 PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.2.0"`
20089 echo "$as_me:$LINENO: result: $PANGO_LIBS" >&5
20090 echo "${ECHO_T}$PANGO_LIBS" >&6
20091 else
20092 PANGO_CFLAGS=""
20093 PANGO_LIBS=""
20094 ## If we have a custom action on failure, don't print errors, but
20095 ## do set a variable so people can do so.
20096 PANGO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pango >= 1.2.0"`
20102 else
20103 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20104 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20108 if test $succeeded = yes; then
20110 else
20111 { { echo "$as_me:$LINENO: error: *** pango >= 1.2.0 not found!" >&5
20112 echo "$as_me: error: *** pango >= 1.2.0 not found!" >&2;}
20113 { (exit 1); exit 1; }; }
20116 CFLAGS="$CFLAGS $PANGO_CFLAGS"
20117 LIBS="$LIBS $PANGO_LIBS"
20120 succeeded=no
20122 if test -z "$PKG_CONFIG"; then
20123 # Extract the first word of "pkg-config", so it can be a program name with args.
20124 set dummy pkg-config; ac_word=$2
20125 echo "$as_me:$LINENO: checking for $ac_word" >&5
20126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20127 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20128 echo $ECHO_N "(cached) $ECHO_C" >&6
20129 else
20130 case $PKG_CONFIG in
20131 [\\/]* | ?:[\\/]*)
20132 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20136 for as_dir in $PATH
20138 IFS=$as_save_IFS
20139 test -z "$as_dir" && as_dir=.
20140 for ac_exec_ext in '' $ac_executable_extensions; do
20141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20142 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20144 break 2
20146 done
20147 done
20149 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20151 esac
20153 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20155 if test -n "$PKG_CONFIG"; then
20156 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20157 echo "${ECHO_T}$PKG_CONFIG" >&6
20158 else
20159 echo "$as_me:$LINENO: result: no" >&5
20160 echo "${ECHO_T}no" >&6
20165 if test "$PKG_CONFIG" = "no" ; then
20166 echo "*** The pkg-config script could not be found. Make sure it is"
20167 echo "*** in your path, or set the PKG_CONFIG environment variable"
20168 echo "*** to the full path to pkg-config."
20169 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20170 else
20171 PKG_CONFIG_MIN_VERSION=0.9.0
20172 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20173 echo "$as_me:$LINENO: checking for pangoft2 >= 1.2.0" >&5
20174 echo $ECHO_N "checking for pangoft2 >= 1.2.0... $ECHO_C" >&6
20176 if $PKG_CONFIG --exists "pangoft2 >= 1.2.0" ; then
20177 echo "$as_me:$LINENO: result: yes" >&5
20178 echo "${ECHO_T}yes" >&6
20179 succeeded=yes
20181 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
20182 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
20183 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2 >= 1.2.0"`
20184 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
20185 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
20187 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
20188 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
20189 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2 >= 1.2.0"`
20190 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
20191 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
20192 else
20193 PANGOFT2_CFLAGS=""
20194 PANGOFT2_LIBS=""
20195 ## If we have a custom action on failure, don't print errors, but
20196 ## do set a variable so people can do so.
20197 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2 >= 1.2.0"`
20203 else
20204 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20205 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20209 if test $succeeded = yes; then
20211 else
20212 { { echo "$as_me:$LINENO: error: *** pangoft2 >= 1.2.0 not found!" >&5
20213 echo "$as_me: error: *** pangoft2 >= 1.2.0 not found!" >&2;}
20214 { (exit 1); exit 1; }; }
20217 CFLAGS="$CFLAGS $PANGOFT2_CFLAGS"
20218 LIBS="$LIBS $PANGOFT2_LIBS"
20220 # Check for SDL
20222 SDL_VERSION=1.2.4
20224 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
20225 if test "${with_sdl_prefix+set}" = set; then
20226 withval="$with_sdl_prefix"
20227 sdl_prefix="$withval"
20228 else
20229 sdl_prefix=""
20232 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
20233 if test "${with_sdl_exec_prefix+set}" = set; then
20234 withval="$with_sdl_exec_prefix"
20235 sdl_exec_prefix="$withval"
20236 else
20237 sdl_exec_prefix=""
20239 # Check whether --enable-sdltest or --disable-sdltest was given.
20240 if test "${enable_sdltest+set}" = set; then
20241 enableval="$enable_sdltest"
20243 else
20244 enable_sdltest=yes
20247 if test x$sdl_exec_prefix != x ; then
20248 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
20249 if test x${SDL_CONFIG+set} != xset ; then
20250 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
20253 if test x$sdl_prefix != x ; then
20254 sdl_args="$sdl_args --prefix=$sdl_prefix"
20255 if test x${SDL_CONFIG+set} != xset ; then
20256 SDL_CONFIG=$sdl_prefix/bin/sdl-config
20261 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
20262 # Extract the first word of "sdl-config", so it can be a program name with args.
20263 set dummy sdl-config; ac_word=$2
20264 echo "$as_me:$LINENO: checking for $ac_word" >&5
20265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20266 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
20267 echo $ECHO_N "(cached) $ECHO_C" >&6
20268 else
20269 case $SDL_CONFIG in
20270 [\\/]* | ?:[\\/]*)
20271 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
20274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20275 for as_dir in $PATH
20277 IFS=$as_save_IFS
20278 test -z "$as_dir" && as_dir=.
20279 for ac_exec_ext in '' $ac_executable_extensions; do
20280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20281 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20283 break 2
20285 done
20286 done
20288 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
20290 esac
20292 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
20294 if test -n "$SDL_CONFIG"; then
20295 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
20296 echo "${ECHO_T}$SDL_CONFIG" >&6
20297 else
20298 echo "$as_me:$LINENO: result: no" >&5
20299 echo "${ECHO_T}no" >&6
20302 min_sdl_version=$SDL_VERSION
20303 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
20304 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
20305 no_sdl=""
20306 if test "$SDL_CONFIG" = "no" ; then
20307 no_sdl=yes
20308 else
20309 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
20310 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
20312 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
20313 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20314 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
20315 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20316 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
20317 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20318 if test "x$enable_sdltest" = "xyes" ; then
20319 ac_save_CFLAGS="$CFLAGS"
20320 ac_save_LIBS="$LIBS"
20321 CFLAGS="$CFLAGS $SDL_CFLAGS"
20322 LIBS="$LIBS $SDL_LIBS"
20323 rm -f conf.sdltest
20324 if test "$cross_compiling" = yes; then
20325 echo $ac_n "cross compiling; assumed OK... $ac_c"
20326 else
20327 cat >conftest.$ac_ext <<_ACEOF
20328 /* confdefs.h. */
20329 _ACEOF
20330 cat confdefs.h >>conftest.$ac_ext
20331 cat >>conftest.$ac_ext <<_ACEOF
20332 /* end confdefs.h. */
20334 #include <stdio.h>
20335 #include <stdlib.h>
20336 #include <string.h>
20337 #include "SDL.h"
20339 char*
20340 my_strdup (char *str)
20342 char *new_str;
20344 if (str)
20346 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
20347 strcpy (new_str, str);
20349 else
20350 new_str = NULL;
20352 return new_str;
20355 int main (int argc, char *argv[])
20357 int major, minor, micro;
20358 char *tmp_version;
20360 /* This hangs on some systems (?)
20361 system ("touch conf.sdltest");
20363 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
20365 /* HP/UX 9 (%@#!) writes to sscanf strings */
20366 tmp_version = my_strdup("$min_sdl_version");
20367 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20368 printf("%s, bad version string\n", "$min_sdl_version");
20369 exit(1);
20372 if (($sdl_major_version > major) ||
20373 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
20374 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
20376 return 0;
20378 else
20380 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
20381 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
20382 printf("*** best to upgrade to the required version.\n");
20383 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
20384 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
20385 printf("*** config.cache before re-running configure\n");
20386 return 1;
20391 _ACEOF
20392 rm -f conftest$ac_exeext
20393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20394 (eval $ac_link) 2>&5
20395 ac_status=$?
20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20399 (eval $ac_try) 2>&5
20400 ac_status=$?
20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402 (exit $ac_status); }; }; then
20404 else
20405 echo "$as_me: program exited with status $ac_status" >&5
20406 echo "$as_me: failed program was:" >&5
20407 sed 's/^/| /' conftest.$ac_ext >&5
20409 ( exit $ac_status )
20410 no_sdl=yes
20412 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20414 CFLAGS="$ac_save_CFLAGS"
20415 LIBS="$ac_save_LIBS"
20418 if test "x$no_sdl" = x ; then
20419 echo "$as_me:$LINENO: result: yes" >&5
20420 echo "${ECHO_T}yes" >&6
20422 else
20423 echo "$as_me:$LINENO: result: no" >&5
20424 echo "${ECHO_T}no" >&6
20425 if test "$SDL_CONFIG" = "no" ; then
20426 echo "*** The sdl-config script installed by SDL could not be found"
20427 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
20428 echo "*** your path, or set the SDL_CONFIG environment variable to the"
20429 echo "*** full path to sdl-config."
20430 else
20431 if test -f conf.sdltest ; then
20433 else
20434 echo "*** Could not run SDL test program, checking why..."
20435 CFLAGS="$CFLAGS $SDL_CFLAGS"
20436 LIBS="$LIBS $SDL_LIBS"
20437 cat >conftest.$ac_ext <<_ACEOF
20438 /* confdefs.h. */
20439 _ACEOF
20440 cat confdefs.h >>conftest.$ac_ext
20441 cat >>conftest.$ac_ext <<_ACEOF
20442 /* end confdefs.h. */
20444 #include <stdio.h>
20445 #include "SDL.h"
20447 int main(int argc, char *argv[])
20448 { return 0; }
20449 #undef main
20450 #define main K_and_R_C_main
20453 main ()
20455 return 0;
20457 return 0;
20459 _ACEOF
20460 rm -f conftest.$ac_objext conftest$ac_exeext
20461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20462 (eval $ac_link) 2>conftest.er1
20463 ac_status=$?
20464 grep -v '^ *+' conftest.er1 >conftest.err
20465 rm -f conftest.er1
20466 cat conftest.err >&5
20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 (exit $ac_status); } &&
20469 { ac_try='test -z "$ac_c_werror_flag"
20470 || test ! -s conftest.err'
20471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20472 (eval $ac_try) 2>&5
20473 ac_status=$?
20474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475 (exit $ac_status); }; } &&
20476 { ac_try='test -s conftest$ac_exeext'
20477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20478 (eval $ac_try) 2>&5
20479 ac_status=$?
20480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481 (exit $ac_status); }; }; then
20482 echo "*** The test program compiled, but did not run. This usually means"
20483 echo "*** that the run-time linker is not finding SDL or finding the wrong"
20484 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
20485 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20486 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20487 echo "*** is required on your system"
20488 echo "***"
20489 echo "*** If you have an old version installed, it is best to remove it, although"
20490 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20491 else
20492 echo "$as_me: failed program was:" >&5
20493 sed 's/^/| /' conftest.$ac_ext >&5
20495 echo "*** The test program failed to compile or link. See the file config.log for the"
20496 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
20497 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
20498 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
20500 rm -f conftest.err conftest.$ac_objext \
20501 conftest$ac_exeext conftest.$ac_ext
20502 CFLAGS="$ac_save_CFLAGS"
20503 LIBS="$ac_save_LIBS"
20506 SDL_CFLAGS=""
20507 SDL_LIBS=""
20508 { { echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION not found!" >&5
20509 echo "$as_me: error: *** SDL version $SDL_VERSION not found!" >&2;}
20510 { (exit 1); exit 1; }; }
20515 rm -f conf.sdltest
20517 CFLAGS="$CFLAGS $SDL_CFLAGS"
20518 LIBS="$LIBS $SDL_LIBS"
20520 ac_config_files="$ac_config_files Makefile src/Makefile SDL_Pango.pc docs/Makefile docs/Doxyfile VisualC2003/Makefile Wix/Makefile Wix/merge_module.xml Wix/dev.xml Wix/testbench.xml"
20523 # Finally create all the generated files
20524 cat >confcache <<\_ACEOF
20525 # This file is a shell script that caches the results of configure
20526 # tests run on this system so they can be shared between configure
20527 # scripts and configure runs, see configure's option --config-cache.
20528 # It is not useful on other systems. If it contains results you don't
20529 # want to keep, you may remove or edit it.
20531 # config.status only pays attention to the cache file if you give it
20532 # the --recheck option to rerun configure.
20534 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20535 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20536 # following values.
20538 _ACEOF
20540 # The following way of writing the cache mishandles newlines in values,
20541 # but we know of no workaround that is simple, portable, and efficient.
20542 # So, don't put newlines in cache variables' values.
20543 # Ultrix sh set writes to stderr and can't be redirected directly,
20544 # and sets the high bit in the cache file unless we assign to the vars.
20546 (set) 2>&1 |
20547 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20548 *ac_space=\ *)
20549 # `set' does not quote correctly, so add quotes (double-quote
20550 # substitution turns \\\\ into \\, and sed turns \\ into \).
20551 sed -n \
20552 "s/'/'\\\\''/g;
20553 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20556 # `set' quotes correctly as required by POSIX, so do not add quotes.
20557 sed -n \
20558 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20560 esac;
20562 sed '
20563 t clear
20564 : clear
20565 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20566 t end
20567 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20568 : end' >>confcache
20569 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20570 if test -w $cache_file; then
20571 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20572 cat confcache >$cache_file
20573 else
20574 echo "not updating unwritable cache $cache_file"
20577 rm -f confcache
20579 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20580 # Let make expand exec_prefix.
20581 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20583 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20584 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20585 # trailing colons and then remove the whole line if VPATH becomes empty
20586 # (actually we leave an empty line to preserve line numbers).
20587 if test "x$srcdir" = x.; then
20588 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20589 s/:*\$(srcdir):*/:/;
20590 s/:*\${srcdir}:*/:/;
20591 s/:*@srcdir@:*/:/;
20592 s/^\([^=]*=[ ]*\):*/\1/;
20593 s/:*$//;
20594 s/^[^=]*=[ ]*$//;
20598 # Transform confdefs.h into DEFS.
20599 # Protect against shell expansion while executing Makefile rules.
20600 # Protect against Makefile macro expansion.
20602 # If the first sed substitution is executed (which looks for macros that
20603 # take arguments), then we branch to the quote section. Otherwise,
20604 # look for a macro that doesn't take arguments.
20605 cat >confdef2opt.sed <<\_ACEOF
20606 t clear
20607 : clear
20608 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
20609 t quote
20610 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
20611 t quote
20613 : quote
20614 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
20615 s,\[,\\&,g
20616 s,\],\\&,g
20617 s,\$,$$,g
20619 _ACEOF
20620 # We use echo to avoid assuming a particular line-breaking character.
20621 # The extra dot is to prevent the shell from consuming trailing
20622 # line-breaks from the sub-command output. A line-break within
20623 # single-quotes doesn't work because, if this script is created in a
20624 # platform that uses two characters for line-breaks (e.g., DOS), tr
20625 # would break.
20626 ac_LF_and_DOT=`echo; echo .`
20627 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
20628 rm -f confdef2opt.sed
20631 ac_libobjs=
20632 ac_ltlibobjs=
20633 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20634 # 1. Remove the extension, and $U if already installed.
20635 ac_i=`echo "$ac_i" |
20636 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20637 # 2. Add them.
20638 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20639 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20640 done
20641 LIBOBJS=$ac_libobjs
20643 LTLIBOBJS=$ac_ltlibobjs
20646 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20647 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20648 Usually this means the macro was only invoked conditionally." >&5
20649 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20650 Usually this means the macro was only invoked conditionally." >&2;}
20651 { (exit 1); exit 1; }; }
20653 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20654 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20655 Usually this means the macro was only invoked conditionally." >&5
20656 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20657 Usually this means the macro was only invoked conditionally." >&2;}
20658 { (exit 1); exit 1; }; }
20660 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20661 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20662 Usually this means the macro was only invoked conditionally." >&5
20663 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20664 Usually this means the macro was only invoked conditionally." >&2;}
20665 { (exit 1); exit 1; }; }
20667 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20668 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20669 Usually this means the macro was only invoked conditionally." >&5
20670 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20671 Usually this means the macro was only invoked conditionally." >&2;}
20672 { (exit 1); exit 1; }; }
20675 : ${CONFIG_STATUS=./config.status}
20676 ac_clean_files_save=$ac_clean_files
20677 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20678 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20679 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20680 cat >$CONFIG_STATUS <<_ACEOF
20681 #! $SHELL
20682 # Generated by $as_me.
20683 # Run this file to recreate the current configuration.
20684 # Compiler output produced by configure, useful for debugging
20685 # configure, is in config.log if it exists.
20687 debug=false
20688 ac_cs_recheck=false
20689 ac_cs_silent=false
20690 SHELL=\${CONFIG_SHELL-$SHELL}
20691 _ACEOF
20693 cat >>$CONFIG_STATUS <<\_ACEOF
20694 ## --------------------- ##
20695 ## M4sh Initialization. ##
20696 ## --------------------- ##
20698 # Be Bourne compatible
20699 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20700 emulate sh
20701 NULLCMD=:
20702 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20703 # is contrary to our usage. Disable this feature.
20704 alias -g '${1+"$@"}'='"$@"'
20705 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20706 set -o posix
20708 DUALCASE=1; export DUALCASE # for MKS sh
20710 # Support unset when possible.
20711 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20712 as_unset=unset
20713 else
20714 as_unset=false
20718 # Work around bugs in pre-3.0 UWIN ksh.
20719 $as_unset ENV MAIL MAILPATH
20720 PS1='$ '
20721 PS2='> '
20722 PS4='+ '
20724 # NLS nuisances.
20725 for as_var in \
20726 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20727 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20728 LC_TELEPHONE LC_TIME
20730 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20731 eval $as_var=C; export $as_var
20732 else
20733 $as_unset $as_var
20735 done
20737 # Required to use basename.
20738 if expr a : '\(a\)' >/dev/null 2>&1; then
20739 as_expr=expr
20740 else
20741 as_expr=false
20744 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20745 as_basename=basename
20746 else
20747 as_basename=false
20751 # Name of the executable.
20752 as_me=`$as_basename "$0" ||
20753 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20754 X"$0" : 'X\(//\)$' \| \
20755 X"$0" : 'X\(/\)$' \| \
20756 . : '\(.\)' 2>/dev/null ||
20757 echo X/"$0" |
20758 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20759 /^X\/\(\/\/\)$/{ s//\1/; q; }
20760 /^X\/\(\/\).*/{ s//\1/; q; }
20761 s/.*/./; q'`
20764 # PATH needs CR, and LINENO needs CR and PATH.
20765 # Avoid depending upon Character Ranges.
20766 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20767 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20768 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20769 as_cr_digits='0123456789'
20770 as_cr_alnum=$as_cr_Letters$as_cr_digits
20772 # The user is always right.
20773 if test "${PATH_SEPARATOR+set}" != set; then
20774 echo "#! /bin/sh" >conf$$.sh
20775 echo "exit 0" >>conf$$.sh
20776 chmod +x conf$$.sh
20777 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20778 PATH_SEPARATOR=';'
20779 else
20780 PATH_SEPARATOR=:
20782 rm -f conf$$.sh
20786 as_lineno_1=$LINENO
20787 as_lineno_2=$LINENO
20788 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20789 test "x$as_lineno_1" != "x$as_lineno_2" &&
20790 test "x$as_lineno_3" = "x$as_lineno_2" || {
20791 # Find who we are. Look in the path if we contain no path at all
20792 # relative or not.
20793 case $0 in
20794 *[\\/]* ) as_myself=$0 ;;
20795 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20796 for as_dir in $PATH
20798 IFS=$as_save_IFS
20799 test -z "$as_dir" && as_dir=.
20800 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20801 done
20804 esac
20805 # We did not find ourselves, most probably we were run as `sh COMMAND'
20806 # in which case we are not to be found in the path.
20807 if test "x$as_myself" = x; then
20808 as_myself=$0
20810 if test ! -f "$as_myself"; then
20811 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20812 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20813 { (exit 1); exit 1; }; }
20815 case $CONFIG_SHELL in
20817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20818 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20820 IFS=$as_save_IFS
20821 test -z "$as_dir" && as_dir=.
20822 for as_base in sh bash ksh sh5; do
20823 case $as_dir in
20825 if ("$as_dir/$as_base" -c '
20826 as_lineno_1=$LINENO
20827 as_lineno_2=$LINENO
20828 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20829 test "x$as_lineno_1" != "x$as_lineno_2" &&
20830 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20831 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20832 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20833 CONFIG_SHELL=$as_dir/$as_base
20834 export CONFIG_SHELL
20835 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20836 fi;;
20837 esac
20838 done
20839 done
20841 esac
20843 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20844 # uniformly replaced by the line number. The first 'sed' inserts a
20845 # line-number line before each line; the second 'sed' does the real
20846 # work. The second script uses 'N' to pair each line-number line
20847 # with the numbered line, and appends trailing '-' during
20848 # substitution so that $LINENO is not a special case at line end.
20849 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20850 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20851 sed '=' <$as_myself |
20852 sed '
20854 s,$,-,
20855 : loop
20856 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20857 t loop
20858 s,-$,,
20859 s,^['$as_cr_digits']*\n,,
20860 ' >$as_me.lineno &&
20861 chmod +x $as_me.lineno ||
20862 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20863 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20864 { (exit 1); exit 1; }; }
20866 # Don't try to exec as it changes $[0], causing all sort of problems
20867 # (the dirname of $[0] is not the place where we might find the
20868 # original and so on. Autoconf is especially sensible to this).
20869 . ./$as_me.lineno
20870 # Exit status is that of the last command.
20871 exit
20875 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20876 *c*,-n*) ECHO_N= ECHO_C='
20877 ' ECHO_T=' ' ;;
20878 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20879 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20880 esac
20882 if expr a : '\(a\)' >/dev/null 2>&1; then
20883 as_expr=expr
20884 else
20885 as_expr=false
20888 rm -f conf$$ conf$$.exe conf$$.file
20889 echo >conf$$.file
20890 if ln -s conf$$.file conf$$ 2>/dev/null; then
20891 # We could just check for DJGPP; but this test a) works b) is more generic
20892 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20893 if test -f conf$$.exe; then
20894 # Don't use ln at all; we don't have any links
20895 as_ln_s='cp -p'
20896 else
20897 as_ln_s='ln -s'
20899 elif ln conf$$.file conf$$ 2>/dev/null; then
20900 as_ln_s=ln
20901 else
20902 as_ln_s='cp -p'
20904 rm -f conf$$ conf$$.exe conf$$.file
20906 if mkdir -p . 2>/dev/null; then
20907 as_mkdir_p=:
20908 else
20909 test -d ./-p && rmdir ./-p
20910 as_mkdir_p=false
20913 as_executable_p="test -f"
20915 # Sed expression to map a string onto a valid CPP name.
20916 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20918 # Sed expression to map a string onto a valid variable name.
20919 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20922 # IFS
20923 # We need space, tab and new line, in precisely that order.
20924 as_nl='
20926 IFS=" $as_nl"
20928 # CDPATH.
20929 $as_unset CDPATH
20931 exec 6>&1
20933 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20934 # report actual input values of CONFIG_FILES etc. instead of their
20935 # values after options handling. Logging --version etc. is OK.
20936 exec 5>>config.log
20938 echo
20939 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20940 ## Running $as_me. ##
20941 _ASBOX
20942 } >&5
20943 cat >&5 <<_CSEOF
20945 This file was extended by $as_me, which was
20946 generated by GNU Autoconf 2.59. Invocation command line was
20948 CONFIG_FILES = $CONFIG_FILES
20949 CONFIG_HEADERS = $CONFIG_HEADERS
20950 CONFIG_LINKS = $CONFIG_LINKS
20951 CONFIG_COMMANDS = $CONFIG_COMMANDS
20952 $ $0 $@
20954 _CSEOF
20955 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20956 echo >&5
20957 _ACEOF
20959 # Files that config.status was made for.
20960 if test -n "$ac_config_files"; then
20961 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20964 if test -n "$ac_config_headers"; then
20965 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20968 if test -n "$ac_config_links"; then
20969 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20972 if test -n "$ac_config_commands"; then
20973 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20976 cat >>$CONFIG_STATUS <<\_ACEOF
20978 ac_cs_usage="\
20979 \`$as_me' instantiates files from templates according to the
20980 current configuration.
20982 Usage: $0 [OPTIONS] [FILE]...
20984 -h, --help print this help, then exit
20985 -V, --version print version number, then exit
20986 -q, --quiet do not print progress messages
20987 -d, --debug don't remove temporary files
20988 --recheck update $as_me by reconfiguring in the same conditions
20989 --file=FILE[:TEMPLATE]
20990 instantiate the configuration file FILE
20992 Configuration files:
20993 $config_files
20995 Configuration commands:
20996 $config_commands
20998 Report bugs to <bug-autoconf@gnu.org>."
20999 _ACEOF
21001 cat >>$CONFIG_STATUS <<_ACEOF
21002 ac_cs_version="\\
21003 config.status
21004 configured by $0, generated by GNU Autoconf 2.59,
21005 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21007 Copyright (C) 2003 Free Software Foundation, Inc.
21008 This config.status script is free software; the Free Software Foundation
21009 gives unlimited permission to copy, distribute and modify it."
21010 srcdir=$srcdir
21011 INSTALL="$INSTALL"
21012 _ACEOF
21014 cat >>$CONFIG_STATUS <<\_ACEOF
21015 # If no file are specified by the user, then we need to provide default
21016 # value. By we need to know if files were specified by the user.
21017 ac_need_defaults=:
21018 while test $# != 0
21020 case $1 in
21021 --*=*)
21022 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21023 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21024 ac_shift=:
21027 ac_option=$1
21028 ac_optarg=$2
21029 ac_shift=shift
21031 *) # This is not an option, so the user has probably given explicit
21032 # arguments.
21033 ac_option=$1
21034 ac_need_defaults=false;;
21035 esac
21037 case $ac_option in
21038 # Handling of the options.
21039 _ACEOF
21040 cat >>$CONFIG_STATUS <<\_ACEOF
21041 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21042 ac_cs_recheck=: ;;
21043 --version | --vers* | -V )
21044 echo "$ac_cs_version"; exit 0 ;;
21045 --he | --h)
21046 # Conflict between --help and --header
21047 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21048 Try \`$0 --help' for more information." >&5
21049 echo "$as_me: error: ambiguous option: $1
21050 Try \`$0 --help' for more information." >&2;}
21051 { (exit 1); exit 1; }; };;
21052 --help | --hel | -h )
21053 echo "$ac_cs_usage"; exit 0 ;;
21054 --debug | --d* | -d )
21055 debug=: ;;
21056 --file | --fil | --fi | --f )
21057 $ac_shift
21058 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21059 ac_need_defaults=false;;
21060 --header | --heade | --head | --hea )
21061 $ac_shift
21062 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21063 ac_need_defaults=false;;
21064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21065 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21066 ac_cs_silent=: ;;
21068 # This is an error.
21069 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21070 Try \`$0 --help' for more information." >&5
21071 echo "$as_me: error: unrecognized option: $1
21072 Try \`$0 --help' for more information." >&2;}
21073 { (exit 1); exit 1; }; } ;;
21075 *) ac_config_targets="$ac_config_targets $1" ;;
21077 esac
21078 shift
21079 done
21081 ac_configure_extra_args=
21083 if $ac_cs_silent; then
21084 exec 6>/dev/null
21085 ac_configure_extra_args="$ac_configure_extra_args --silent"
21088 _ACEOF
21089 cat >>$CONFIG_STATUS <<_ACEOF
21090 if \$ac_cs_recheck; then
21091 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21092 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21095 _ACEOF
21097 cat >>$CONFIG_STATUS <<_ACEOF
21099 # INIT-COMMANDS section.
21102 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21104 _ACEOF
21108 cat >>$CONFIG_STATUS <<\_ACEOF
21109 for ac_config_target in $ac_config_targets
21111 case "$ac_config_target" in
21112 # Handling of arguments.
21113 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21114 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21115 "SDL_Pango.pc" ) CONFIG_FILES="$CONFIG_FILES SDL_Pango.pc" ;;
21116 "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
21117 "docs/Doxyfile" ) CONFIG_FILES="$CONFIG_FILES docs/Doxyfile" ;;
21118 "VisualC2003/Makefile" ) CONFIG_FILES="$CONFIG_FILES VisualC2003/Makefile" ;;
21119 "Wix/Makefile" ) CONFIG_FILES="$CONFIG_FILES Wix/Makefile" ;;
21120 "Wix/merge_module.xml" ) CONFIG_FILES="$CONFIG_FILES Wix/merge_module.xml" ;;
21121 "Wix/dev.xml" ) CONFIG_FILES="$CONFIG_FILES Wix/dev.xml" ;;
21122 "Wix/testbench.xml" ) CONFIG_FILES="$CONFIG_FILES Wix/testbench.xml" ;;
21123 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21124 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21125 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21126 { (exit 1); exit 1; }; };;
21127 esac
21128 done
21130 # If the user did not use the arguments to specify the items to instantiate,
21131 # then the envvar interface is used. Set only those that are not.
21132 # We use the long form for the default assignment because of an extremely
21133 # bizarre bug on SunOS 4.1.3.
21134 if $ac_need_defaults; then
21135 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21136 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21139 # Have a temporary directory for convenience. Make it in the build tree
21140 # simply because there is no reason to put it here, and in addition,
21141 # creating and moving files from /tmp can sometimes cause problems.
21142 # Create a temporary directory, and hook for its removal unless debugging.
21143 $debug ||
21145 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21146 trap '{ (exit 1); exit 1; }' 1 2 13 15
21149 # Create a (secure) tmp directory for tmp files.
21152 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21153 test -n "$tmp" && test -d "$tmp"
21154 } ||
21156 tmp=./confstat$$-$RANDOM
21157 (umask 077 && mkdir $tmp)
21158 } ||
21160 echo "$me: cannot create a temporary directory in ." >&2
21161 { (exit 1); exit 1; }
21164 _ACEOF
21166 cat >>$CONFIG_STATUS <<_ACEOF
21169 # CONFIG_FILES section.
21172 # No need to generate the scripts if there are no CONFIG_FILES.
21173 # This happens for instance when ./config.status config.h
21174 if test -n "\$CONFIG_FILES"; then
21175 # Protect against being on the right side of a sed subst in config.status.
21176 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21177 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21178 s,@SHELL@,$SHELL,;t t
21179 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21180 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21181 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21182 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21183 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21184 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21185 s,@exec_prefix@,$exec_prefix,;t t
21186 s,@prefix@,$prefix,;t t
21187 s,@program_transform_name@,$program_transform_name,;t t
21188 s,@bindir@,$bindir,;t t
21189 s,@sbindir@,$sbindir,;t t
21190 s,@libexecdir@,$libexecdir,;t t
21191 s,@datadir@,$datadir,;t t
21192 s,@sysconfdir@,$sysconfdir,;t t
21193 s,@sharedstatedir@,$sharedstatedir,;t t
21194 s,@localstatedir@,$localstatedir,;t t
21195 s,@libdir@,$libdir,;t t
21196 s,@includedir@,$includedir,;t t
21197 s,@oldincludedir@,$oldincludedir,;t t
21198 s,@infodir@,$infodir,;t t
21199 s,@mandir@,$mandir,;t t
21200 s,@build_alias@,$build_alias,;t t
21201 s,@host_alias@,$host_alias,;t t
21202 s,@target_alias@,$target_alias,;t t
21203 s,@DEFS@,$DEFS,;t t
21204 s,@ECHO_C@,$ECHO_C,;t t
21205 s,@ECHO_N@,$ECHO_N,;t t
21206 s,@ECHO_T@,$ECHO_T,;t t
21207 s,@LIBS@,$LIBS,;t t
21208 s,@MAJOR_VERSION@,$MAJOR_VERSION,;t t
21209 s,@MINOR_VERSION@,$MINOR_VERSION,;t t
21210 s,@MICRO_VERSION@,$MICRO_VERSION,;t t
21211 s,@INTERFACE_AGE@,$INTERFACE_AGE,;t t
21212 s,@BINARY_AGE@,$BINARY_AGE,;t t
21213 s,@VERSION@,$VERSION,;t t
21214 s,@LT_RELEASE@,$LT_RELEASE,;t t
21215 s,@LT_CURRENT@,$LT_CURRENT,;t t
21216 s,@LT_REVISION@,$LT_REVISION,;t t
21217 s,@LT_AGE@,$LT_AGE,;t t
21218 s,@build@,$build,;t t
21219 s,@build_cpu@,$build_cpu,;t t
21220 s,@build_vendor@,$build_vendor,;t t
21221 s,@build_os@,$build_os,;t t
21222 s,@host@,$host,;t t
21223 s,@host_cpu@,$host_cpu,;t t
21224 s,@host_vendor@,$host_vendor,;t t
21225 s,@host_os@,$host_os,;t t
21226 s,@target@,$target,;t t
21227 s,@target_cpu@,$target_cpu,;t t
21228 s,@target_vendor@,$target_vendor,;t t
21229 s,@target_os@,$target_os,;t t
21230 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21231 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21232 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21233 s,@CYGPATH_W@,$CYGPATH_W,;t t
21234 s,@PACKAGE@,$PACKAGE,;t t
21235 s,@ACLOCAL@,$ACLOCAL,;t t
21236 s,@AUTOCONF@,$AUTOCONF,;t t
21237 s,@AUTOMAKE@,$AUTOMAKE,;t t
21238 s,@AUTOHEADER@,$AUTOHEADER,;t t
21239 s,@MAKEINFO@,$MAKEINFO,;t t
21240 s,@AMTAR@,$AMTAR,;t t
21241 s,@install_sh@,$install_sh,;t t
21242 s,@STRIP@,$STRIP,;t t
21243 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21244 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21245 s,@mkdir_p@,$mkdir_p,;t t
21246 s,@AWK@,$AWK,;t t
21247 s,@SET_MAKE@,$SET_MAKE,;t t
21248 s,@am__leading_dot@,$am__leading_dot,;t t
21249 s,@CC@,$CC,;t t
21250 s,@CFLAGS@,$CFLAGS,;t t
21251 s,@LDFLAGS@,$LDFLAGS,;t t
21252 s,@CPPFLAGS@,$CPPFLAGS,;t t
21253 s,@ac_ct_CC@,$ac_ct_CC,;t t
21254 s,@EXEEXT@,$EXEEXT,;t t
21255 s,@OBJEXT@,$OBJEXT,;t t
21256 s,@DEPDIR@,$DEPDIR,;t t
21257 s,@am__include@,$am__include,;t t
21258 s,@am__quote@,$am__quote,;t t
21259 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21260 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21261 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21262 s,@CCDEPMODE@,$CCDEPMODE,;t t
21263 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21264 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21265 s,@EGREP@,$EGREP,;t t
21266 s,@LN_S@,$LN_S,;t t
21267 s,@ECHO@,$ECHO,;t t
21268 s,@AR@,$AR,;t t
21269 s,@ac_ct_AR@,$ac_ct_AR,;t t
21270 s,@RANLIB@,$RANLIB,;t t
21271 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21272 s,@DLLTOOL@,$DLLTOOL,;t t
21273 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
21274 s,@AS@,$AS,;t t
21275 s,@ac_ct_AS@,$ac_ct_AS,;t t
21276 s,@OBJDUMP@,$OBJDUMP,;t t
21277 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
21278 s,@CPP@,$CPP,;t t
21279 s,@CXX@,$CXX,;t t
21280 s,@CXXFLAGS@,$CXXFLAGS,;t t
21281 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21282 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21283 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21284 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21285 s,@CXXCPP@,$CXXCPP,;t t
21286 s,@F77@,$F77,;t t
21287 s,@FFLAGS@,$FFLAGS,;t t
21288 s,@ac_ct_F77@,$ac_ct_F77,;t t
21289 s,@LIBTOOL@,$LIBTOOL,;t t
21290 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21291 s,@PANGO_CFLAGS@,$PANGO_CFLAGS,;t t
21292 s,@PANGO_LIBS@,$PANGO_LIBS,;t t
21293 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
21294 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
21295 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
21296 s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
21297 s,@SDL_LIBS@,$SDL_LIBS,;t t
21298 s,@LIBOBJS@,$LIBOBJS,;t t
21299 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21300 CEOF
21302 _ACEOF
21304 cat >>$CONFIG_STATUS <<\_ACEOF
21305 # Split the substitutions into bite-sized pieces for seds with
21306 # small command number limits, like on Digital OSF/1 and HP-UX.
21307 ac_max_sed_lines=48
21308 ac_sed_frag=1 # Number of current file.
21309 ac_beg=1 # First line for current file.
21310 ac_end=$ac_max_sed_lines # Line after last line for current file.
21311 ac_more_lines=:
21312 ac_sed_cmds=
21313 while $ac_more_lines; do
21314 if test $ac_beg -gt 1; then
21315 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21316 else
21317 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21319 if test ! -s $tmp/subs.frag; then
21320 ac_more_lines=false
21321 else
21322 # The purpose of the label and of the branching condition is to
21323 # speed up the sed processing (if there are no `@' at all, there
21324 # is no need to browse any of the substitutions).
21325 # These are the two extra sed commands mentioned above.
21326 (echo ':t
21327 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21328 if test -z "$ac_sed_cmds"; then
21329 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21330 else
21331 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21333 ac_sed_frag=`expr $ac_sed_frag + 1`
21334 ac_beg=$ac_end
21335 ac_end=`expr $ac_end + $ac_max_sed_lines`
21337 done
21338 if test -z "$ac_sed_cmds"; then
21339 ac_sed_cmds=cat
21341 fi # test -n "$CONFIG_FILES"
21343 _ACEOF
21344 cat >>$CONFIG_STATUS <<\_ACEOF
21345 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21346 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21347 case $ac_file in
21348 - | *:- | *:-:* ) # input from stdin
21349 cat >$tmp/stdin
21350 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21351 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21352 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21353 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21354 * ) ac_file_in=$ac_file.in ;;
21355 esac
21357 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21358 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21359 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21360 X"$ac_file" : 'X\(//\)[^/]' \| \
21361 X"$ac_file" : 'X\(//\)$' \| \
21362 X"$ac_file" : 'X\(/\)' \| \
21363 . : '\(.\)' 2>/dev/null ||
21364 echo X"$ac_file" |
21365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21366 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21367 /^X\(\/\/\)$/{ s//\1/; q; }
21368 /^X\(\/\).*/{ s//\1/; q; }
21369 s/.*/./; q'`
21370 { if $as_mkdir_p; then
21371 mkdir -p "$ac_dir"
21372 else
21373 as_dir="$ac_dir"
21374 as_dirs=
21375 while test ! -d "$as_dir"; do
21376 as_dirs="$as_dir $as_dirs"
21377 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21378 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21379 X"$as_dir" : 'X\(//\)[^/]' \| \
21380 X"$as_dir" : 'X\(//\)$' \| \
21381 X"$as_dir" : 'X\(/\)' \| \
21382 . : '\(.\)' 2>/dev/null ||
21383 echo X"$as_dir" |
21384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21385 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21386 /^X\(\/\/\)$/{ s//\1/; q; }
21387 /^X\(\/\).*/{ s//\1/; q; }
21388 s/.*/./; q'`
21389 done
21390 test ! -n "$as_dirs" || mkdir $as_dirs
21391 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21392 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21393 { (exit 1); exit 1; }; }; }
21395 ac_builddir=.
21397 if test "$ac_dir" != .; then
21398 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21399 # A "../" for each directory in $ac_dir_suffix.
21400 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21401 else
21402 ac_dir_suffix= ac_top_builddir=
21405 case $srcdir in
21406 .) # No --srcdir option. We are building in place.
21407 ac_srcdir=.
21408 if test -z "$ac_top_builddir"; then
21409 ac_top_srcdir=.
21410 else
21411 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21412 fi ;;
21413 [\\/]* | ?:[\\/]* ) # Absolute path.
21414 ac_srcdir=$srcdir$ac_dir_suffix;
21415 ac_top_srcdir=$srcdir ;;
21416 *) # Relative path.
21417 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21418 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21419 esac
21421 # Do not use `cd foo && pwd` to compute absolute paths, because
21422 # the directories may not exist.
21423 case `pwd` in
21424 .) ac_abs_builddir="$ac_dir";;
21426 case "$ac_dir" in
21427 .) ac_abs_builddir=`pwd`;;
21428 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21429 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21430 esac;;
21431 esac
21432 case $ac_abs_builddir in
21433 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21435 case ${ac_top_builddir}. in
21436 .) ac_abs_top_builddir=$ac_abs_builddir;;
21437 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21438 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21439 esac;;
21440 esac
21441 case $ac_abs_builddir in
21442 .) ac_abs_srcdir=$ac_srcdir;;
21444 case $ac_srcdir in
21445 .) ac_abs_srcdir=$ac_abs_builddir;;
21446 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21447 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21448 esac;;
21449 esac
21450 case $ac_abs_builddir in
21451 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21453 case $ac_top_srcdir in
21454 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21455 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21456 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21457 esac;;
21458 esac
21461 case $INSTALL in
21462 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21463 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21464 esac
21466 if test x"$ac_file" != x-; then
21467 { echo "$as_me:$LINENO: creating $ac_file" >&5
21468 echo "$as_me: creating $ac_file" >&6;}
21469 rm -f "$ac_file"
21471 # Let's still pretend it is `configure' which instantiates (i.e., don't
21472 # use $as_me), people would be surprised to read:
21473 # /* config.h. Generated by config.status. */
21474 if test x"$ac_file" = x-; then
21475 configure_input=
21476 else
21477 configure_input="$ac_file. "
21479 configure_input=$configure_input"Generated from `echo $ac_file_in |
21480 sed 's,.*/,,'` by configure."
21482 # First look for the input files in the build tree, otherwise in the
21483 # src tree.
21484 ac_file_inputs=`IFS=:
21485 for f in $ac_file_in; do
21486 case $f in
21487 -) echo $tmp/stdin ;;
21488 [\\/$]*)
21489 # Absolute (can't be DOS-style, as IFS=:)
21490 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21491 echo "$as_me: error: cannot find input file: $f" >&2;}
21492 { (exit 1); exit 1; }; }
21493 echo "$f";;
21494 *) # Relative
21495 if test -f "$f"; then
21496 # Build tree
21497 echo "$f"
21498 elif test -f "$srcdir/$f"; then
21499 # Source tree
21500 echo "$srcdir/$f"
21501 else
21502 # /dev/null tree
21503 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21504 echo "$as_me: error: cannot find input file: $f" >&2;}
21505 { (exit 1); exit 1; }; }
21506 fi;;
21507 esac
21508 done` || { (exit 1); exit 1; }
21509 _ACEOF
21510 cat >>$CONFIG_STATUS <<_ACEOF
21511 sed "$ac_vpsub
21512 $extrasub
21513 _ACEOF
21514 cat >>$CONFIG_STATUS <<\_ACEOF
21516 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21517 s,@configure_input@,$configure_input,;t t
21518 s,@srcdir@,$ac_srcdir,;t t
21519 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21520 s,@top_srcdir@,$ac_top_srcdir,;t t
21521 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21522 s,@builddir@,$ac_builddir,;t t
21523 s,@abs_builddir@,$ac_abs_builddir,;t t
21524 s,@top_builddir@,$ac_top_builddir,;t t
21525 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21526 s,@INSTALL@,$ac_INSTALL,;t t
21527 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21528 rm -f $tmp/stdin
21529 if test x"$ac_file" != x-; then
21530 mv $tmp/out $ac_file
21531 else
21532 cat $tmp/out
21533 rm -f $tmp/out
21536 done
21537 _ACEOF
21538 cat >>$CONFIG_STATUS <<\_ACEOF
21541 # CONFIG_COMMANDS section.
21543 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21544 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21545 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21546 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21547 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21548 X"$ac_dest" : 'X\(//\)[^/]' \| \
21549 X"$ac_dest" : 'X\(//\)$' \| \
21550 X"$ac_dest" : 'X\(/\)' \| \
21551 . : '\(.\)' 2>/dev/null ||
21552 echo X"$ac_dest" |
21553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21554 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21555 /^X\(\/\/\)$/{ s//\1/; q; }
21556 /^X\(\/\).*/{ s//\1/; q; }
21557 s/.*/./; q'`
21558 { if $as_mkdir_p; then
21559 mkdir -p "$ac_dir"
21560 else
21561 as_dir="$ac_dir"
21562 as_dirs=
21563 while test ! -d "$as_dir"; do
21564 as_dirs="$as_dir $as_dirs"
21565 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21566 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21567 X"$as_dir" : 'X\(//\)[^/]' \| \
21568 X"$as_dir" : 'X\(//\)$' \| \
21569 X"$as_dir" : 'X\(/\)' \| \
21570 . : '\(.\)' 2>/dev/null ||
21571 echo X"$as_dir" |
21572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21573 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21574 /^X\(\/\/\)$/{ s//\1/; q; }
21575 /^X\(\/\).*/{ s//\1/; q; }
21576 s/.*/./; q'`
21577 done
21578 test ! -n "$as_dirs" || mkdir $as_dirs
21579 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21580 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21581 { (exit 1); exit 1; }; }; }
21583 ac_builddir=.
21585 if test "$ac_dir" != .; then
21586 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21587 # A "../" for each directory in $ac_dir_suffix.
21588 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21589 else
21590 ac_dir_suffix= ac_top_builddir=
21593 case $srcdir in
21594 .) # No --srcdir option. We are building in place.
21595 ac_srcdir=.
21596 if test -z "$ac_top_builddir"; then
21597 ac_top_srcdir=.
21598 else
21599 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21600 fi ;;
21601 [\\/]* | ?:[\\/]* ) # Absolute path.
21602 ac_srcdir=$srcdir$ac_dir_suffix;
21603 ac_top_srcdir=$srcdir ;;
21604 *) # Relative path.
21605 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21606 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21607 esac
21609 # Do not use `cd foo && pwd` to compute absolute paths, because
21610 # the directories may not exist.
21611 case `pwd` in
21612 .) ac_abs_builddir="$ac_dir";;
21614 case "$ac_dir" in
21615 .) ac_abs_builddir=`pwd`;;
21616 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21617 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21618 esac;;
21619 esac
21620 case $ac_abs_builddir in
21621 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21623 case ${ac_top_builddir}. in
21624 .) ac_abs_top_builddir=$ac_abs_builddir;;
21625 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21626 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21627 esac;;
21628 esac
21629 case $ac_abs_builddir in
21630 .) ac_abs_srcdir=$ac_srcdir;;
21632 case $ac_srcdir in
21633 .) ac_abs_srcdir=$ac_abs_builddir;;
21634 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21635 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21636 esac;;
21637 esac
21638 case $ac_abs_builddir in
21639 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21641 case $ac_top_srcdir in
21642 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21643 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21644 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21645 esac;;
21646 esac
21649 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21650 echo "$as_me: executing $ac_dest commands" >&6;}
21651 case $ac_dest in
21652 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21653 # Strip MF so we end up with the name of the file.
21654 mf=`echo "$mf" | sed -e 's/:.*$//'`
21655 # Check whether this is an Automake generated Makefile or not.
21656 # We used to match only the files named `Makefile.in', but
21657 # some people rename them; so instead we look at the file content.
21658 # Grep'ing the first line is not enough: some people post-process
21659 # each Makefile.in and add a new line on top of each file to say so.
21660 # So let's grep whole file.
21661 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21662 dirpart=`(dirname "$mf") 2>/dev/null ||
21663 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21664 X"$mf" : 'X\(//\)[^/]' \| \
21665 X"$mf" : 'X\(//\)$' \| \
21666 X"$mf" : 'X\(/\)' \| \
21667 . : '\(.\)' 2>/dev/null ||
21668 echo X"$mf" |
21669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21670 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21671 /^X\(\/\/\)$/{ s//\1/; q; }
21672 /^X\(\/\).*/{ s//\1/; q; }
21673 s/.*/./; q'`
21674 else
21675 continue
21677 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
21678 # Extract the definition of DEP_FILES from the Makefile without
21679 # running `make'.
21680 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
21681 test -z "$DEPDIR" && continue
21682 # When using ansi2knr, U may be empty or an underscore; expand it
21683 U=`sed -n -e '/^U = / s///p' < "$mf"`
21684 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
21685 # We invoke sed twice because it is the simplest approach to
21686 # changing $(DEPDIR) to its actual value in the expansion.
21687 for file in `sed -n -e '
21688 /^DEP_FILES = .*\\\\$/ {
21689 s/^DEP_FILES = //
21690 :loop
21691 s/\\\\$//
21694 /\\\\$/ b loop
21697 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
21698 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21699 # Make sure the directory exists.
21700 test -f "$dirpart/$file" && continue
21701 fdir=`(dirname "$file") 2>/dev/null ||
21702 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21703 X"$file" : 'X\(//\)[^/]' \| \
21704 X"$file" : 'X\(//\)$' \| \
21705 X"$file" : 'X\(/\)' \| \
21706 . : '\(.\)' 2>/dev/null ||
21707 echo X"$file" |
21708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21709 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21710 /^X\(\/\/\)$/{ s//\1/; q; }
21711 /^X\(\/\).*/{ s//\1/; q; }
21712 s/.*/./; q'`
21713 { if $as_mkdir_p; then
21714 mkdir -p $dirpart/$fdir
21715 else
21716 as_dir=$dirpart/$fdir
21717 as_dirs=
21718 while test ! -d "$as_dir"; do
21719 as_dirs="$as_dir $as_dirs"
21720 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21721 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21722 X"$as_dir" : 'X\(//\)[^/]' \| \
21723 X"$as_dir" : 'X\(//\)$' \| \
21724 X"$as_dir" : 'X\(/\)' \| \
21725 . : '\(.\)' 2>/dev/null ||
21726 echo X"$as_dir" |
21727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21728 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21729 /^X\(\/\/\)$/{ s//\1/; q; }
21730 /^X\(\/\).*/{ s//\1/; q; }
21731 s/.*/./; q'`
21732 done
21733 test ! -n "$as_dirs" || mkdir $as_dirs
21734 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21735 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21736 { (exit 1); exit 1; }; }; }
21738 # echo "creating $dirpart/$file"
21739 echo '# dummy' > "$dirpart/$file"
21740 done
21741 done
21743 esac
21744 done
21745 _ACEOF
21747 cat >>$CONFIG_STATUS <<\_ACEOF
21749 { (exit 0); exit 0; }
21750 _ACEOF
21751 chmod +x $CONFIG_STATUS
21752 ac_clean_files=$ac_clean_files_save
21755 # configure is writing to config.log, and then calls config.status.
21756 # config.status does its own redirection, appending to config.log.
21757 # Unfortunately, on DOS this fails, as config.log is still kept open
21758 # by configure, so config.status won't be able to write to it; its
21759 # output is simply discarded. So we exec the FD to /dev/null,
21760 # effectively closing config.log, so it can be properly (re)opened and
21761 # appended to by config.status. When coming back to configure, we
21762 # need to make the FD available again.
21763 if test "$no_create" != yes; then
21764 ac_cs_success=:
21765 ac_config_status_args=
21766 test "$silent" = yes &&
21767 ac_config_status_args="$ac_config_status_args --quiet"
21768 exec 5>/dev/null
21769 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21770 exec 5>>config.log
21771 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21772 # would make configure fail if this is the last instruction.
21773 $ac_cs_success || { (exit 1); exit 1; }