3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-checkmem turn on ccmalloc debugging"
17 --enable-debug turn on debugging"
19 --enable-warnings turn on compiler warnings"
21 --enable-optimizations turn on compiler optimizations (recommended for avi2swf)"
23 --disable-lame don't compile any L.A.M.E. mp3 encoding code in"
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
27 --enable-static[=PKGS] build static libraries [default=yes]"
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
33 # Find the correct PATH separator. Usually this is `:', but
34 # DJGPP uses `;' like DOS.
35 if test "X${PATH_SEPARATOR+set}" != Xset; then
36 UNAME=${UNAME-`uname 2>/dev/null`}
38 *-DOS) lt_cv_sys_path_separator=';' ;;
39 *) lt_cv_sys_path_separator=':' ;;
41 PATH_SEPARATOR=$lt_cv_sys_path_separator
45 # Check that we are running under the correct shell.
46 SHELL=${CONFIG_SHELL-/bin/sh}
50 # Remove one level of quotation (which was required for Make).
51 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
56 if test "X$1" = X--no-reexec; then
57 # Discard the --no-reexec flag, and continue.
59 elif test "X$1" = X--fallback-echo; then
60 # Avoid inline document here, it may be left over
62 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
63 # Yippee, $echo works!
66 # Restart under the correct shell.
67 exec $SHELL "$0" --no-reexec ${1+"$@"}
70 if test "X$1" = X--fallback-echo; then
71 # used as fallback echo
79 # The HP-UX ksh and POSIX shell print the target directory to stdout
81 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
83 if test -z "$ECHO"; then
84 if test "X${echo_test_string+set}" != Xset; then
85 # find a string as large as possible, as long as the shell can cope with it
86 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
87 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
88 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
89 echo_test_string="`eval $cmd`" &&
90 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
97 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
98 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
99 test "X$echo_testing_string" = "X$echo_test_string"; then
102 # The Solaris, AIX, and Digital Unix default echo programs unquote
103 # backslashes. This makes it impossible to quote backslashes using
104 # echo "$something" | sed 's/\\/\\\\/g'
106 # So, first we look for a working echo in the user's PATH.
108 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
109 for dir in $PATH /usr/ucb; do
110 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
111 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
112 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
113 test "X$echo_testing_string" = "X$echo_test_string"; then
120 if test "X$echo" = Xecho; then
121 # We didn't find a better echo, so look for alternatives.
122 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
123 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
124 test "X$echo_testing_string" = "X$echo_test_string"; then
125 # This shell has a builtin print -r that does the trick.
127 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
128 test "X$CONFIG_SHELL" != X/bin/ksh; then
129 # If we have ksh, try running configure again with it.
130 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
131 export ORIGINAL_CONFIG_SHELL
132 CONFIG_SHELL=/bin/ksh
134 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
138 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
139 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
140 test "X$echo_testing_string" = "X$echo_test_string"; then
143 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
144 test "X$echo_testing_string" = 'X\t' &&
145 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
146 test "X$echo_testing_string" = "X$echo_test_string"; then
147 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
149 SHELL="$CONFIG_SHELL"
151 echo="$CONFIG_SHELL $0 --fallback-echo"
152 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
153 test "X$echo_testing_string" = 'X\t' &&
154 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
155 test "X$echo_testing_string" = "X$echo_test_string"; then
156 echo="$CONFIG_SHELL $0 --fallback-echo"
158 # maybe with a smaller string...
161 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
162 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
169 if test "$prev" != 'sed 50q "$0"'; then
170 echo_test_string=`eval $prev`
171 export echo_test_string
172 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
174 # Oops. We lost completely, so just stick with echo.
183 # Copy echo and quote the copy suitably for passing to libtool from
184 # the Makefile, instead of quoting the original, which is used later.
186 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
187 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
192 --disable-libtool-lock avoid locking (might break parallel builds)"
194 --with-pic try to use only PIC/non-PIC objects [default=use both]"
196 # Initialize some variables set by options.
197 # The variables have the same names as the options, with
198 # dashes changed to underlines.
200 cache_file=./config.cache
209 program_transform_name=s,x,x,
217 bindir='${exec_prefix}/bin'
218 sbindir='${exec_prefix}/sbin'
219 libexecdir='${exec_prefix}/libexec'
220 datadir='${prefix}/share'
221 sysconfdir='${prefix}/etc'
222 sharedstatedir='${prefix}/com'
223 localstatedir='${prefix}/var'
224 libdir='${exec_prefix}/lib'
225 includedir='${prefix}/include'
226 oldincludedir='/usr/include'
227 infodir='${prefix}/info'
228 mandir='${prefix}/man'
230 # Initialize some other variables.
233 SHELL=${CONFIG_SHELL-/bin/sh}
234 # Maximum number of lines to put in a shell here document.
241 # If the previous option needs an argument, assign it.
242 if test -n "$ac_prev"; then
243 eval "$ac_prev=\$ac_option"
249 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
253 # Accept the important Cygnus configure options, so we can diagnose typos.
257 -bindir | --bindir | --bindi | --bind | --bin | --bi)
259 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
260 bindir="$ac_optarg" ;;
262 -build | --build | --buil | --bui | --bu)
264 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
265 build="$ac_optarg" ;;
267 -cache-file | --cache-file | --cache-fil | --cache-fi \
268 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
269 ac_prev=cache_file ;;
270 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
271 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
272 cache_file="$ac_optarg" ;;
274 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
276 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
278 datadir="$ac_optarg" ;;
280 -disable-* | --disable-*)
281 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
282 # Reject names that are not valid shell variable names.
283 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
284 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
286 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
287 eval "enable_${ac_feature}=no" ;;
289 -enable-* | --enable-*)
290 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
291 # Reject names that are not valid shell variable names.
292 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
293 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
295 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
300 eval "enable_${ac_feature}='$ac_optarg'" ;;
302 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
303 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
304 | --exec | --exe | --ex)
305 ac_prev=exec_prefix ;;
306 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
307 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
308 | --exec=* | --exe=* | --ex=*)
309 exec_prefix="$ac_optarg" ;;
311 -gas | --gas | --ga | --g)
312 # Obsolete; use --with-gas.
315 -help | --help | --hel | --he)
316 # Omit some internal or obsolete options to make the list less imposing.
317 # This message is too long to be a string in the A/UX 3.1 sh.
319 Usage: configure [options] [host]
320 Options: [defaults in brackets after descriptions]
322 --cache-file=FILE cache test results in FILE
323 --help print this message
324 --no-create do not create output files
325 --quiet, --silent do not print \`checking...' messages
326 --version print the version of autoconf that created configure
327 Directory and file names:
328 --prefix=PREFIX install architecture-independent files in PREFIX
330 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
332 --bindir=DIR user executables in DIR [EPREFIX/bin]
333 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
334 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
335 --datadir=DIR read-only architecture-independent data in DIR
337 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
338 --sharedstatedir=DIR modifiable architecture-independent data in DIR
340 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
341 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
342 --includedir=DIR C header files in DIR [PREFIX/include]
343 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
344 --infodir=DIR info documentation in DIR [PREFIX/info]
345 --mandir=DIR man documentation in DIR [PREFIX/man]
346 --srcdir=DIR find the sources in DIR [configure dir or ..]
347 --program-prefix=PREFIX prepend PREFIX to installed program names
348 --program-suffix=SUFFIX append SUFFIX to installed program names
349 --program-transform-name=PROGRAM
350 run sed PROGRAM on installed program names
354 --build=BUILD configure for building on BUILD [BUILD=HOST]
355 --host=HOST configure for HOST [guessed]
356 --target=TARGET configure for TARGET [TARGET=HOST]
357 Features and packages:
358 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
359 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
360 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
361 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
362 --x-includes=DIR X include files are in DIR
363 --x-libraries=DIR X library files are in DIR
365 if test -n "$ac_help"; then
366 echo "--enable and --with options recognized:$ac_help"
370 -host | --host | --hos | --ho)
372 -host=* | --host=* | --hos=* | --ho=*)
375 -includedir | --includedir | --includedi | --included | --include \
376 | --includ | --inclu | --incl | --inc)
377 ac_prev=includedir ;;
378 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
379 | --includ=* | --inclu=* | --incl=* | --inc=*)
380 includedir="$ac_optarg" ;;
382 -infodir | --infodir | --infodi | --infod | --info | --inf)
384 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
385 infodir="$ac_optarg" ;;
387 -libdir | --libdir | --libdi | --libd)
389 -libdir=* | --libdir=* | --libdi=* | --libd=*)
390 libdir="$ac_optarg" ;;
392 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
393 | --libexe | --libex | --libe)
394 ac_prev=libexecdir ;;
395 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
396 | --libexe=* | --libex=* | --libe=*)
397 libexecdir="$ac_optarg" ;;
399 -localstatedir | --localstatedir | --localstatedi | --localstated \
400 | --localstate | --localstat | --localsta | --localst \
401 | --locals | --local | --loca | --loc | --lo)
402 ac_prev=localstatedir ;;
403 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
404 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
405 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
406 localstatedir="$ac_optarg" ;;
408 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
410 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
411 mandir="$ac_optarg" ;;
414 # Obsolete; use --without-fp.
417 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
421 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
422 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
425 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
426 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
427 | --oldin | --oldi | --old | --ol | --o)
428 ac_prev=oldincludedir ;;
429 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
430 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
431 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
432 oldincludedir="$ac_optarg" ;;
434 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
436 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
437 prefix="$ac_optarg" ;;
439 -program-prefix | --program-prefix | --program-prefi | --program-pref \
440 | --program-pre | --program-pr | --program-p)
441 ac_prev=program_prefix ;;
442 -program-prefix=* | --program-prefix=* | --program-prefi=* \
443 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
444 program_prefix="$ac_optarg" ;;
446 -program-suffix | --program-suffix | --program-suffi | --program-suff \
447 | --program-suf | --program-su | --program-s)
448 ac_prev=program_suffix ;;
449 -program-suffix=* | --program-suffix=* | --program-suffi=* \
450 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
451 program_suffix="$ac_optarg" ;;
453 -program-transform-name | --program-transform-name \
454 | --program-transform-nam | --program-transform-na \
455 | --program-transform-n | --program-transform- \
456 | --program-transform | --program-transfor \
457 | --program-transfo | --program-transf \
458 | --program-trans | --program-tran \
459 | --progr-tra | --program-tr | --program-t)
460 ac_prev=program_transform_name ;;
461 -program-transform-name=* | --program-transform-name=* \
462 | --program-transform-nam=* | --program-transform-na=* \
463 | --program-transform-n=* | --program-transform-=* \
464 | --program-transform=* | --program-transfor=* \
465 | --program-transfo=* | --program-transf=* \
466 | --program-trans=* | --program-tran=* \
467 | --progr-tra=* | --program-tr=* | --program-t=*)
468 program_transform_name="$ac_optarg" ;;
470 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
471 | -silent | --silent | --silen | --sile | --sil)
474 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
476 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
478 sbindir="$ac_optarg" ;;
480 -sharedstatedir | --sharedstatedir | --sharedstatedi \
481 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
482 | --sharedst | --shareds | --shared | --share | --shar \
484 ac_prev=sharedstatedir ;;
485 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
486 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
487 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
489 sharedstatedir="$ac_optarg" ;;
491 -site | --site | --sit)
493 -site=* | --site=* | --sit=*)
496 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
498 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
499 srcdir="$ac_optarg" ;;
501 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
502 | --syscon | --sysco | --sysc | --sys | --sy)
503 ac_prev=sysconfdir ;;
504 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
505 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
506 sysconfdir="$ac_optarg" ;;
508 -target | --target | --targe | --targ | --tar | --ta | --t)
510 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
511 target="$ac_optarg" ;;
513 -v | -verbose | --verbose | --verbos | --verbo | --verb)
516 -version | --version | --versio | --versi | --vers)
517 echo "configure generated by autoconf version 2.13"
521 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
522 # Reject names that are not valid shell variable names.
523 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
524 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
526 ac_package=`echo $ac_package| sed 's/-/_/g'`
531 eval "with_${ac_package}='$ac_optarg'" ;;
533 -without-* | --without-*)
534 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
535 # Reject names that are not valid shell variable names.
536 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
537 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
539 ac_package=`echo $ac_package| sed 's/-/_/g'`
540 eval "with_${ac_package}=no" ;;
543 # Obsolete; use --with-x.
546 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
547 | --x-incl | --x-inc | --x-in | --x-i)
548 ac_prev=x_includes ;;
549 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
550 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
551 x_includes="$ac_optarg" ;;
553 -x-libraries | --x-libraries | --x-librarie | --x-librari \
554 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
555 ac_prev=x_libraries ;;
556 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
557 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
558 x_libraries="$ac_optarg" ;;
560 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
564 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
565 echo "configure: warning: $ac_option: invalid host type" 1>&2
567 if test "x$nonopt" != xNONE; then
568 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
576 if test -n "$ac_prev"; then
577 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
580 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
582 # File descriptor usage:
585 # 2 errors and warnings
586 # 3 some systems may open it to /dev/tty
587 # 4 used on the Kubota Titan
588 # 6 checking for... messages and results
589 # 5 compiler messages saved in config.log
590 if test "$silent" = yes; then
598 This file contains any messages produced by compilers while
599 running configure, to aid debugging if configure makes a mistake.
602 # Strip out --no-create and --no-recursion so they do not pile up.
603 # Also quote any args containing shell metacharacters.
608 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
609 | --no-cr | --no-c) ;;
610 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
611 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
612 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
613 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
614 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
619 # Only set these to C if already set. These must not be set unconditionally
620 # because not all systems understand e.g. LANG=C (notably SCO).
621 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
622 # Non-C LC_CTYPE values break the ctype check.
623 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
624 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
625 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
626 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
628 # confdefs.h avoids OS command line length limits that DEFS can exceed.
629 rm -rf conftest* confdefs.h
630 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
633 # A filename unique to this package, relative to the directory that
634 # configure is in, which we can look for to find out if srcdir is correct.
637 # Find the source files, if location was not specified.
638 if test -z "$srcdir"; then
639 ac_srcdir_defaulted=yes
640 # Try the directory containing this script, then its parent.
642 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
643 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
645 if test ! -r $srcdir/$ac_unique_file; then
649 ac_srcdir_defaulted=no
651 if test ! -r $srcdir/$ac_unique_file; then
652 if test "$ac_srcdir_defaulted" = yes; then
653 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
655 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
658 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
660 # Prefer explicitly selected file to automatically selected ones.
661 if test -z "$CONFIG_SITE"; then
662 if test "x$prefix" != xNONE; then
663 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
665 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
668 for ac_site_file in $CONFIG_SITE; do
669 if test -r "$ac_site_file"; then
670 echo "loading site script $ac_site_file"
675 if test -r "$cache_file"; then
676 echo "loading cache $cache_file"
679 echo "creating cache $cache_file"
684 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
685 ac_cpp='$CPP $CPPFLAGS'
686 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
687 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
688 cross_compiling=$ac_cv_prog_cc_cross
692 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
693 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
694 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
701 ac_n= ac_c='\c' ac_t=
706 # Check whether --enable-checkmem or --disable-checkmem was given.
707 if test "${enable_checkmem+set}" = set; then
708 enableval="$enable_checkmem"
712 # Check whether --enable-debug or --disable-debug was given.
713 if test "${enable_debug+set}" = set; then
714 enableval="$enable_debug"
718 # Check whether --enable-warnings or --disable-warnings was given.
719 if test "${enable_warnings+set}" = set; then
720 enableval="$enable_warnings"
724 # Check whether --enable-optimizations or --disable-optimizations was given.
725 if test "${enable_optimizations+set}" = set; then
726 enableval="$enable_optimizations"
730 # Check whether --enable-lame or --disable-lame was given.
731 if test "${enable_lame+set}" = set; then
732 enableval="$enable_lame"
738 VERSION=2004-02-05-1504
741 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
742 if test "x$ENABLE_WARNINGS" '!=' "x";then
743 WARNINGS="-Wall -Wno-unused -Wno-format"
746 if test "x$CHECKMEM" '!=' "x";then
749 if test "x$DEBUG" '!=' "x";then
750 CFLAGS="$WARNINGS -g $CFLAGS"
751 CXXFLAGS="$WARNINGS -g $CXXFLAGS"
752 else if test "x$OPTIMIZE" '!=' "x"; then
753 CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
754 CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
756 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
757 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
761 #if test "x$OLDGCC" '!=' "x";then
762 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
763 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
764 # CFLAGS="$CFLAGS -ansi -pendantic"
765 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
768 export PACKAGE VERSION CFLAGS CXXFLAGS
771 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
772 if test -f $ac_dir/install-sh; then
774 ac_install_sh="$ac_aux_dir/install-sh -c"
776 elif test -f $ac_dir/install.sh; then
778 ac_install_sh="$ac_aux_dir/install.sh -c"
782 if test -z "$ac_aux_dir"; then
783 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
785 ac_config_guess=$ac_aux_dir/config.guess
786 ac_config_sub=$ac_aux_dir/config.sub
787 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
790 # Make sure we can run config.sub.
791 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
792 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
795 echo $ac_n "checking host system type""... $ac_c" 1>&6
796 echo "configure:797: checking host system type" >&5
799 case "$host_alias" in
803 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
804 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
806 *) host_alias=$nonopt ;;
810 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
811 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
812 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
813 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
814 echo "$ac_t""$host" 1>&6
820 CFLAGS="$CFLAGS -fno-rtti"
821 CXXFLAGS="$CXXFLAGS -fno-rtti"
824 # Extract the first word of "gcc", so it can be a program name with args.
825 set dummy gcc; ac_word=$2
826 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
827 echo "configure:828: checking for $ac_word" >&5
828 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
829 echo $ac_n "(cached) $ac_c" 1>&6
831 if test -n "$CC"; then
832 ac_cv_prog_CC="$CC" # Let the user override the test.
834 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
836 for ac_dir in $ac_dummy; do
837 test -z "$ac_dir" && ac_dir=.
838 if test -f $ac_dir/$ac_word; then
847 if test -n "$CC"; then
848 echo "$ac_t""$CC" 1>&6
850 echo "$ac_t""no" 1>&6
853 if test -z "$CC"; then
854 # Extract the first word of "cc", so it can be a program name with args.
855 set dummy cc; ac_word=$2
856 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
857 echo "configure:858: checking for $ac_word" >&5
858 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
859 echo $ac_n "(cached) $ac_c" 1>&6
861 if test -n "$CC"; then
862 ac_cv_prog_CC="$CC" # Let the user override the test.
864 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
867 for ac_dir in $ac_dummy; do
868 test -z "$ac_dir" && ac_dir=.
869 if test -f $ac_dir/$ac_word; then
870 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
879 if test $ac_prog_rejected = yes; then
880 # We found a bogon in the path, so make sure we never use it.
881 set dummy $ac_cv_prog_CC
883 if test $# -gt 0; then
884 # We chose a different compiler from the bogus one.
885 # However, it has the same basename, so the bogon will be chosen
886 # first if we set CC to just the basename; use the full file name.
888 set dummy "$ac_dir/$ac_word" "$@"
896 if test -n "$CC"; then
897 echo "$ac_t""$CC" 1>&6
899 echo "$ac_t""no" 1>&6
902 if test -z "$CC"; then
905 # Extract the first word of "cl", so it can be a program name with args.
906 set dummy cl; ac_word=$2
907 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
908 echo "configure:909: checking for $ac_word" >&5
909 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
910 echo $ac_n "(cached) $ac_c" 1>&6
912 if test -n "$CC"; then
913 ac_cv_prog_CC="$CC" # Let the user override the test.
915 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
917 for ac_dir in $ac_dummy; do
918 test -z "$ac_dir" && ac_dir=.
919 if test -f $ac_dir/$ac_word; then
928 if test -n "$CC"; then
929 echo "$ac_t""$CC" 1>&6
931 echo "$ac_t""no" 1>&6
936 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
939 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
940 echo "configure:941: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
943 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
944 ac_cpp='$CPP $CPPFLAGS'
945 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
946 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
947 cross_compiling=$ac_cv_prog_cc_cross
949 cat > conftest.$ac_ext << EOF
951 #line 952 "configure"
952 #include "confdefs.h"
956 if { (eval echo configure:957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
957 ac_cv_prog_cc_works=yes
958 # If we can't run a trivial program, we are probably using a cross compiler.
959 if (./conftest; exit) 2>/dev/null; then
960 ac_cv_prog_cc_cross=no
962 ac_cv_prog_cc_cross=yes
965 echo "configure: failed program was:" >&5
966 cat conftest.$ac_ext >&5
967 ac_cv_prog_cc_works=no
971 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
972 ac_cpp='$CPP $CPPFLAGS'
973 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
974 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
975 cross_compiling=$ac_cv_prog_cc_cross
977 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
978 if test $ac_cv_prog_cc_works = no; then
979 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
981 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
982 echo "configure:983: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
983 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
984 cross_compiling=$ac_cv_prog_cc_cross
986 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
987 echo "configure:988: checking whether we are using GNU C" >&5
988 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
989 echo $ac_n "(cached) $ac_c" 1>&6
991 cat > conftest.c <<EOF
996 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1003 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1005 if test $ac_cv_prog_gcc = yes; then
1011 ac_test_CFLAGS="${CFLAGS+set}"
1012 ac_save_CFLAGS="$CFLAGS"
1014 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1015 echo "configure:1016: checking whether ${CC-cc} accepts -g" >&5
1016 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1017 echo $ac_n "(cached) $ac_c" 1>&6
1019 echo 'void f(){}' > conftest.c
1020 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1029 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1030 if test "$ac_test_CFLAGS" = set; then
1031 CFLAGS="$ac_save_CFLAGS"
1032 elif test $ac_cv_prog_cc_g = yes; then
1033 if test "$GCC" = yes; then
1039 if test "$GCC" = yes; then
1046 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1048 # Extract the first word of "$ac_prog", so it can be a program name with args.
1049 set dummy $ac_prog; ac_word=$2
1050 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1051 echo "configure:1052: checking for $ac_word" >&5
1052 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1053 echo $ac_n "(cached) $ac_c" 1>&6
1055 if test -n "$CXX"; then
1056 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1058 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1060 for ac_dir in $ac_dummy; do
1061 test -z "$ac_dir" && ac_dir=.
1062 if test -f $ac_dir/$ac_word; then
1063 ac_cv_prog_CXX="$ac_prog"
1070 CXX="$ac_cv_prog_CXX"
1071 if test -n "$CXX"; then
1072 echo "$ac_t""$CXX" 1>&6
1074 echo "$ac_t""no" 1>&6
1077 test -n "$CXX" && break
1079 test -n "$CXX" || CXX="gcc"
1082 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1083 echo "configure:1084: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1086 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1087 ac_cpp='$CXXCPP $CPPFLAGS'
1088 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1089 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1090 cross_compiling=$ac_cv_prog_cxx_cross
1092 cat > conftest.$ac_ext << EOF
1094 #line 1095 "configure"
1095 #include "confdefs.h"
1097 int main(){return(0);}
1099 if { (eval echo configure:1100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1100 ac_cv_prog_cxx_works=yes
1101 # If we can't run a trivial program, we are probably using a cross compiler.
1102 if (./conftest; exit) 2>/dev/null; then
1103 ac_cv_prog_cxx_cross=no
1105 ac_cv_prog_cxx_cross=yes
1108 echo "configure: failed program was:" >&5
1109 cat conftest.$ac_ext >&5
1110 ac_cv_prog_cxx_works=no
1114 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1115 ac_cpp='$CPP $CPPFLAGS'
1116 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1117 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1118 cross_compiling=$ac_cv_prog_cc_cross
1120 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1121 if test $ac_cv_prog_cxx_works = no; then
1122 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1124 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1125 echo "configure:1126: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1126 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1127 cross_compiling=$ac_cv_prog_cxx_cross
1129 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1130 echo "configure:1131: checking whether we are using GNU C++" >&5
1131 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1132 echo $ac_n "(cached) $ac_c" 1>&6
1134 cat > conftest.C <<EOF
1139 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1146 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1148 if test $ac_cv_prog_gxx = yes; then
1154 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1155 ac_save_CXXFLAGS="$CXXFLAGS"
1157 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1158 echo "configure:1159: checking whether ${CXX-g++} accepts -g" >&5
1159 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1160 echo $ac_n "(cached) $ac_c" 1>&6
1162 echo 'void f(){}' > conftest.cc
1163 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1164 ac_cv_prog_cxx_g=yes
1172 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1173 if test "$ac_test_CXXFLAGS" = set; then
1174 CXXFLAGS="$ac_save_CXXFLAGS"
1175 elif test $ac_cv_prog_cxx_g = yes; then
1176 if test "$GXX" = yes; then
1182 if test "$GXX" = yes; then
1190 if test "x$CHECKMEM" '!=' "x";then
1194 #unset ac_cv_prog_CC
1195 #unset ac_cv_prog_CXX
1199 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1200 echo "configure:1201: checking how to run the C preprocessor" >&5
1201 # On Suns, sometimes $CPP names a directory.
1202 if test -n "$CPP" && test -d "$CPP"; then
1205 if test -z "$CPP"; then
1206 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1207 echo $ac_n "(cached) $ac_c" 1>&6
1209 # This must be in double quotes, not single quotes, because CPP may get
1210 # substituted into the Makefile and "${CC-cc}" will confuse make.
1212 # On the NeXT, cc -E runs the code through the compiler's parser,
1213 # not just through cpp.
1214 cat > conftest.$ac_ext <<EOF
1215 #line 1216 "configure"
1216 #include "confdefs.h"
1220 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1221 { (eval echo configure:1222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1222 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1223 if test -z "$ac_err"; then
1227 echo "configure: failed program was:" >&5
1228 cat conftest.$ac_ext >&5
1230 CPP="${CC-cc} -E -traditional-cpp"
1231 cat > conftest.$ac_ext <<EOF
1232 #line 1233 "configure"
1233 #include "confdefs.h"
1237 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1238 { (eval echo configure:1239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1239 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1240 if test -z "$ac_err"; then
1244 echo "configure: failed program was:" >&5
1245 cat conftest.$ac_ext >&5
1247 CPP="${CC-cc} -nologo -E"
1248 cat > conftest.$ac_ext <<EOF
1249 #line 1250 "configure"
1250 #include "confdefs.h"
1254 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1255 { (eval echo configure:1256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1256 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1257 if test -z "$ac_err"; then
1261 echo "configure: failed program was:" >&5
1262 cat conftest.$ac_ext >&5
1271 ac_cv_prog_CPP="$CPP"
1273 CPP="$ac_cv_prog_CPP"
1275 ac_cv_prog_CPP="$CPP"
1277 echo "$ac_t""$CPP" 1>&6
1280 # Extract the first word of "ranlib", so it can be a program name with args.
1281 set dummy ranlib; ac_word=$2
1282 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1283 echo "configure:1284: checking for $ac_word" >&5
1284 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1285 echo $ac_n "(cached) $ac_c" 1>&6
1287 if test -n "$RANLIB"; then
1288 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1290 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1292 for ac_dir in $ac_dummy; do
1293 test -z "$ac_dir" && ac_dir=.
1294 if test -f $ac_dir/$ac_word; then
1295 ac_cv_prog_RANLIB="ranlib"
1300 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1303 RANLIB="$ac_cv_prog_RANLIB"
1304 if test -n "$RANLIB"; then
1305 echo "$ac_t""$RANLIB" 1>&6
1307 echo "$ac_t""no" 1>&6
1310 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1311 echo "configure:1312: checking whether ${MAKE-make} sets \${MAKE}" >&5
1312 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1313 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1314 echo $ac_n "(cached) $ac_c" 1>&6
1316 cat > conftestmake <<\EOF
1318 @echo 'ac_maketemp="${MAKE}"'
1320 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1321 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1322 if test -n "$ac_maketemp"; then
1323 eval ac_cv_prog_make_${ac_make}_set=yes
1325 eval ac_cv_prog_make_${ac_make}_set=no
1329 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1330 echo "$ac_t""yes" 1>&6
1333 echo "$ac_t""no" 1>&6
1334 SET_MAKE="MAKE=${MAKE-make}"
1337 # Find a good install program. We prefer a C program (faster),
1338 # so one script is as good as another. But avoid the broken or
1339 # incompatible versions:
1340 # SysV /etc/install, /usr/sbin/install
1341 # SunOS /usr/etc/install
1342 # IRIX /sbin/install
1344 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1345 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1346 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1347 # ./install, which can be erroneously created by make from ./install.sh.
1348 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1349 echo "configure:1350: checking for a BSD compatible install" >&5
1350 if test -z "$INSTALL"; then
1351 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1352 echo $ac_n "(cached) $ac_c" 1>&6
1354 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1355 for ac_dir in $PATH; do
1356 # Account for people who put trailing slashes in PATH elements.
1358 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1360 # OSF1 and SCO ODT 3.0 have their own names for install.
1361 # Don't use installbsd from OSF since it installs stuff as root
1363 for ac_prog in ginstall scoinst install; do
1364 if test -f $ac_dir/$ac_prog; then
1365 if test $ac_prog = install &&
1366 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1367 # AIX install. It has an incompatible calling convention.
1370 ac_cv_path_install="$ac_dir/$ac_prog -c"
1381 if test "${ac_cv_path_install+set}" = set; then
1382 INSTALL="$ac_cv_path_install"
1384 # As a last resort, use the slow shell script. We don't cache a
1385 # path for INSTALL within a source directory, because that will
1386 # break other packages using the cache if that directory is
1387 # removed, or if the path is relative.
1388 INSTALL="$ac_install_sh"
1391 echo "$ac_t""$INSTALL" 1>&6
1393 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1394 # It thinks the first close brace ends the variable substitution.
1395 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1397 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1399 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1401 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1402 echo "configure:1403: checking whether ln -s works" >&5
1403 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1404 echo $ac_n "(cached) $ac_c" 1>&6
1407 if ln -s X conftestdata 2>/dev/null
1410 ac_cv_prog_LN_S="ln -s"
1415 LN_S="$ac_cv_prog_LN_S"
1416 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1417 echo "$ac_t""yes" 1>&6
1419 echo "$ac_t""no" 1>&6
1422 # Find the correct PATH separator. Usually this is `:', but
1423 # DJGPP uses `;' like DOS.
1424 if test "X${PATH_SEPARATOR+set}" != Xset; then
1425 UNAME=${UNAME-`uname 2>/dev/null`}
1427 *-DOS) lt_cv_sys_path_separator=';' ;;
1428 *) lt_cv_sys_path_separator=':' ;;
1430 PATH_SEPARATOR=$lt_cv_sys_path_separator
1433 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1434 echo "configure:1435: checking for Cygwin environment" >&5
1435 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1436 echo $ac_n "(cached) $ac_c" 1>&6
1438 cat > conftest.$ac_ext <<EOF
1439 #line 1440 "configure"
1440 #include "confdefs.h"
1445 #define __CYGWIN__ __CYGWIN32__
1450 if { (eval echo configure:1451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1454 echo "configure: failed program was:" >&5
1455 cat conftest.$ac_ext >&5
1463 echo "$ac_t""$ac_cv_cygwin" 1>&6
1465 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1466 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1467 echo "configure:1468: checking for mingw32 environment" >&5
1468 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1469 echo $ac_n "(cached) $ac_c" 1>&6
1471 cat > conftest.$ac_ext <<EOF
1472 #line 1473 "configure"
1473 #include "confdefs.h"
1479 if { (eval echo configure:1480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1483 echo "configure: failed program was:" >&5
1484 cat conftest.$ac_ext >&5
1492 echo "$ac_t""$ac_cv_mingw32" 1>&6
1494 test "$ac_cv_mingw32" = yes && MINGW32=yes
1495 # Check whether --enable-shared or --disable-shared was given.
1496 if test "${enable_shared+set}" = set; then
1497 enableval="$enable_shared"
1498 p=${PACKAGE-default}
1500 yes) enable_shared=yes ;;
1501 no) enable_shared=no ;;
1504 # Look at the argument we got. We use all the common list separators.
1505 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1506 for pkg in $enableval; do
1507 if test "X$pkg" = "X$p"; then
1518 # Check whether --enable-static or --disable-static was given.
1519 if test "${enable_static+set}" = set; then
1520 enableval="$enable_static"
1521 p=${PACKAGE-default}
1523 yes) enable_static=yes ;;
1524 no) enable_static=no ;;
1527 # Look at the argument we got. We use all the common list separators.
1528 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1529 for pkg in $enableval; do
1530 if test "X$pkg" = "X$p"; then
1541 # Check whether --enable-fast-install or --disable-fast-install was given.
1542 if test "${enable_fast_install+set}" = set; then
1543 enableval="$enable_fast_install"
1544 p=${PACKAGE-default}
1546 yes) enable_fast_install=yes ;;
1547 no) enable_fast_install=no ;;
1549 enable_fast_install=no
1550 # Look at the argument we got. We use all the common list separators.
1551 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1552 for pkg in $enableval; do
1553 if test "X$pkg" = "X$p"; then
1554 enable_fast_install=yes
1561 enable_fast_install=yes
1564 echo $ac_n "checking build system type""... $ac_c" 1>&6
1565 echo "configure:1566: checking build system type" >&5
1568 case "$build_alias" in
1571 NONE) build_alias=$host_alias ;;
1572 *) build_alias=$nonopt ;;
1576 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1577 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1578 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1579 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1580 echo "$ac_t""$build" 1>&6
1582 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1583 if test "${with_gnu_ld+set}" = set; then
1584 withval="$with_gnu_ld"
1585 test "$withval" = no || with_gnu_ld=yes
1591 if test "$GCC" = yes; then
1592 # Check if gcc -print-prog-name=ld gives a path.
1593 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1594 echo "configure:1595: checking for ld used by GCC" >&5
1597 # gcc leaves a trailing carriage return which upsets mingw
1598 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1600 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1603 # Accept absolute paths.
1604 [\\/]* | [A-Za-z]:[\\/]*)
1605 re_direlt='/[^/][^/]*/\.\./'
1606 # Canonicalize the path of ld
1607 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1608 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1609 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1611 test -z "$LD" && LD="$ac_prog"
1614 # If it fails, then pretend we aren't using GCC.
1618 # If it is relative, then search for the first ld in PATH.
1622 elif test "$with_gnu_ld" = yes; then
1623 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1624 echo "configure:1625: checking for GNU ld" >&5
1626 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1627 echo "configure:1628: checking for non-GNU ld" >&5
1629 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1630 echo $ac_n "(cached) $ac_c" 1>&6
1632 if test -z "$LD"; then
1633 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1634 for ac_dir in $PATH; do
1635 test -z "$ac_dir" && ac_dir=.
1636 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1637 lt_cv_path_LD="$ac_dir/$ac_prog"
1638 # Check to see if the program is GNU ld. I'd rather use --version,
1639 # but apparently some GNU ld's only accept -v.
1640 # Break only if it was the GNU/non-GNU ld that we prefer.
1641 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1642 test "$with_gnu_ld" != no && break
1644 test "$with_gnu_ld" != yes && break
1650 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1655 if test -n "$LD"; then
1656 echo "$ac_t""$LD" 1>&6
1658 echo "$ac_t""no" 1>&6
1660 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1661 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1662 echo "configure:1663: checking if the linker ($LD) is GNU ld" >&5
1663 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1664 echo $ac_n "(cached) $ac_c" 1>&6
1666 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1667 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1668 lt_cv_prog_gnu_ld=yes
1670 lt_cv_prog_gnu_ld=no
1674 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1675 with_gnu_ld=$lt_cv_prog_gnu_ld
1678 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1679 echo "configure:1680: checking for $LD option to reload object files" >&5
1680 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1681 echo $ac_n "(cached) $ac_c" 1>&6
1683 lt_cv_ld_reload_flag='-r'
1686 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1687 reload_flag=$lt_cv_ld_reload_flag
1688 test -n "$reload_flag" && reload_flag=" $reload_flag"
1690 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1691 echo "configure:1692: checking for BSD-compatible nm" >&5
1692 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1693 echo $ac_n "(cached) $ac_c" 1>&6
1695 if test -n "$NM"; then
1696 # Let the user override the test.
1699 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1700 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1701 test -z "$ac_dir" && ac_dir=.
1702 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1703 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1704 # Check to see if the nm accepts a BSD-compat flag.
1705 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1706 # nm: unknown option "B" ignored
1707 # Tru64's nm complains that /dev/null is an invalid object file
1708 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1709 lt_cv_path_NM="$tmp_nm -B"
1711 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1712 lt_cv_path_NM="$tmp_nm -p"
1715 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1716 continue # so that we can try to find one that supports BSD flags
1721 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1726 echo "$ac_t""$NM" 1>&6
1728 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
1729 echo "configure:1730: checking for a sed that does not truncate output" >&5
1730 if eval "test \"`echo '$''{'lt_cv_path_SED'+set}'`\" = set"; then
1731 echo $ac_n "(cached) $ac_c" 1>&6
1733 # Loop through the user's path and test for sed and gsed.
1734 # Then use that list of sed's as ones to test for truncation.
1735 as_executable_p="test -f"
1736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1740 test -z "$as_dir" && as_dir=.
1741 for ac_prog in sed gsed; do
1742 for ac_exec_ext in '' $ac_executable_extensions; do
1743 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1744 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
1750 # Create a temporary directory, and hook for its removal unless debugging.
1753 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
1754 trap '{ (exit 1); exit 1; }' 1 2 13 15
1757 # Create a (secure) tmp directory for tmp files.
1760 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
1761 test -n "$tmp" && test -d "$tmp"
1764 tmp=$TMPDIR/sed$$-$RANDOM
1765 (umask 077 && mkdir $tmp)
1768 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
1769 { (exit 1); exit 1; }
1773 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
1774 # along with /bin/sed that truncates output.
1775 for _sed in $_sed_list /usr/xpg4/bin/sed; do
1776 test ! -f ${_sed} && break
1777 cat /dev/null > "$tmp/sed.in"
1779 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
1780 # Check for GNU sed and select it if it is found.
1781 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
1782 lt_cv_path_SED=${_sed}
1786 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
1787 mv "$tmp/sed.tmp" "$tmp/sed.in"
1788 cp "$tmp/sed.in" "$tmp/sed.nl"
1789 echo >>"$tmp/sed.nl"
1790 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
1791 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
1792 # 40000 chars as input seems more than enough
1793 test $_count -gt 10 && break
1794 _count=`expr $_count + 1`
1795 if test $_count -gt $_max; then
1797 lt_cv_path_SED=$_sed
1805 if test "X$SED" != "X"; then
1810 echo "$ac_t""$SED" 1>&6
1812 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
1813 echo "configure:1814: checking how to recognise dependent libraries" >&5
1814 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1815 echo $ac_n "(cached) $ac_c" 1>&6
1817 lt_cv_file_magic_cmd='$MAGIC_CMD'
1818 lt_cv_file_magic_test_file=
1819 lt_cv_deplibs_check_method='unknown'
1820 # Need to set the preceding variable on all platforms that support
1821 # interlibrary dependencies.
1822 # 'none' -- dependencies not supported.
1823 # `unknown' -- same as none, but documents that we really don't know.
1824 # 'pass_all' -- all dependencies passed with no checks.
1825 # 'test_compile' -- check by making test program.
1826 # 'file_magic [[regex]]' -- check by looking for files in library path
1827 # which responds to the $file_magic_cmd with a given egrep regex.
1828 # If you have `file' or equivalent on your system and you're not sure
1829 # whether `pass_all' will *always* work, you probably want this one.
1833 lt_cv_deplibs_check_method=pass_all
1837 lt_cv_deplibs_check_method=pass_all
1841 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1842 lt_cv_file_magic_cmd='/usr/bin/file -L'
1843 lt_cv_file_magic_test_file=/shlib/libc.so
1846 cygwin* | mingw* | pw32*)
1847 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1848 lt_cv_file_magic_cmd='$OBJDUMP -f'
1851 darwin* | rhapsody*)
1852 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1853 lt_cv_file_magic_cmd='/usr/bin/file -L'
1855 rhapsody* | darwin1.[012])
1856 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
1859 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1865 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1868 # Not sure whether the presence of OpenBSD here was a mistake.
1869 # Let's accept both of them until this is cleared up.
1870 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1871 lt_cv_file_magic_cmd=/usr/bin/file
1872 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1876 lt_cv_deplibs_check_method=pass_all
1881 lt_cv_deplibs_check_method=pass_all
1885 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1886 lt_cv_file_magic_cmd=/usr/bin/file
1887 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1890 irix5* | irix6* | nonstopux*)
1892 irix5* | nonstopux*)
1893 # this will be overridden with pass_all, but let us keep it just in case
1894 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1898 *-32|*"-32 ") libmagic=32-bit;;
1899 *-n32|*"-n32 ") libmagic=N32;;
1900 *-64|*"-64 ") libmagic=64-bit;;
1901 *) libmagic=never-match;;
1903 # this will be overridden with pass_all, but let us keep it just in case
1904 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1907 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1908 lt_cv_deplibs_check_method=pass_all
1911 # This must be Linux ELF.
1914 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
1915 lt_cv_deplibs_check_method=pass_all ;;
1917 # glibc up to 2.1.1 does not perform some relocations on ARM
1918 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1920 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1924 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1925 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1927 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1932 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1933 lt_cv_file_magic_cmd=/usr/bin/file
1934 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1938 lt_cv_file_magic_cmd=/usr/bin/file
1939 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1940 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1941 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1943 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
1947 osf3* | osf4* | osf5*)
1948 # this will be overridden with pass_all, but let us keep it just in case
1949 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1950 lt_cv_file_magic_test_file=/shlib/libc.so
1951 lt_cv_deplibs_check_method=pass_all
1955 lt_cv_deplibs_check_method=pass_all
1959 lt_cv_deplibs_check_method=pass_all
1960 lt_cv_file_magic_test_file=/lib/libc.so
1963 sysv5uw[78]* | sysv4*uw2*)
1964 lt_cv_deplibs_check_method=pass_all
1967 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1968 case $host_vendor in
1970 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]'
1971 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1974 lt_cv_deplibs_check_method=pass_all
1977 lt_cv_file_magic_cmd='/bin/file'
1978 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
1981 lt_cv_file_magic_cmd='/bin/file'
1982 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
1983 lt_cv_file_magic_test_file=/lib/libc.so
1986 lt_cv_deplibs_check_method=pass_all
1994 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1995 file_magic_cmd=$lt_cv_file_magic_cmd
1996 deplibs_check_method=$lt_cv_deplibs_check_method
1998 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1999 echo "configure:2000: checking for object suffix" >&5
2000 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2001 echo $ac_n "(cached) $ac_c" 1>&6
2004 echo 'int i = 1;' > conftest.$ac_ext
2005 if { (eval echo configure:2006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2006 for ac_file in conftest.*; do
2009 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2013 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2018 echo "$ac_t""$ac_cv_objext" 1>&6
2019 OBJEXT=$ac_cv_objext
2020 ac_objext=$ac_cv_objext
2024 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2025 echo "configure:2026: checking for executable suffix" >&5
2026 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2027 echo $ac_n "(cached) $ac_c" 1>&6
2029 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2033 echo 'int main () { return 0; }' > conftest.$ac_ext
2035 if { (eval echo configure:2036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2036 for file in conftest.*; do
2038 *.c | *.o | *.obj) ;;
2039 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2043 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2046 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2051 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2052 echo "$ac_t""${ac_cv_exeext}" 1>&6
2055 if test $host != $build; then
2056 ac_tool_prefix=${host_alias}-
2064 # Check for command to grab the raw symbol name followed by C symbol from nm.
2065 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
2066 echo "configure:2067: checking command to parse $NM output" >&5
2067 if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
2068 echo $ac_n "(cached) $ac_c" 1>&6
2071 # These are sane defaults that work on at least a few old systems.
2072 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
2074 # Character class describing NM global symbol codes.
2075 symcode='[BCDEGRST]'
2077 # Regexp to match symbols that can be accessed directly from C.
2078 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2080 # Transform the above into a raw symbol and a C symbol.
2081 symxfrm='\1 \2\3 \3'
2083 # Transform an extracted symbol line into a proper C declaration
2084 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2086 # Transform an extracted symbol line into symbol name and symbol address
2087 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
2089 # Define system-specific variables.
2094 cygwin* | mingw* | pw32*)
2095 symcode='[ABCDGISTW]'
2097 hpux*) # Its linker distinguishes data from code symbols
2098 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2099 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
2102 symcode='[BCDEGRST]'
2105 symcode='[BCDEGQRST]'
2115 # Handle CRLF in mingw tool chain
2119 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2123 # If we're using GNU nm, then use its standard symbol codes.
2124 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2125 symcode='[ABCDGISTW]'
2128 # Try without a prefix undercore, then with it.
2129 for ac_symprfx in "" "_"; do
2131 # Write the raw and C identifiers.
2132 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2134 # Check to see that the pipe works correctly.
2137 cat > conftest.$ac_ext <<EOF
2142 void nm_test_func(){}
2146 int main(){nm_test_var='a';nm_test_func();return(0);}
2149 if { (eval echo configure:2150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2150 # Now try to grab the symbols.
2152 if { (eval echo configure:2153: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
2153 # Try sorting and uniquifying the output.
2154 if sort "$nlist" | uniq > "$nlist"T; then
2155 mv -f "$nlist"T "$nlist"
2160 # Make sure that we snagged all the symbols we need.
2161 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
2162 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
2163 cat <<EOF > conftest.$ac_ext
2169 # Now generate the symbol file.
2170 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
2172 cat <<EOF >> conftest.$ac_ext
2173 #if defined (__STDC__) && __STDC__
2174 # define lt_ptr void *
2176 # define lt_ptr char *
2180 /* The mapping between symbol names and symbols. */
2185 lt_preloaded_symbols[] =
2188 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
2189 cat <<\EOF >> conftest.$ac_ext
2197 # Now try linking the two files.
2198 mv conftest.$ac_objext conftstm.$ac_objext
2200 save_CFLAGS="$CFLAGS"
2201 LIBS="conftstm.$ac_objext"
2202 CFLAGS="$CFLAGS$no_builtin_flag"
2203 if { (eval echo configure:2204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
2207 CFLAGS="$save_CFLAGS"
2209 echo "cannot find nm_test_func in $nlist" >&5
2212 echo "cannot find nm_test_var in $nlist" >&5
2215 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
2218 echo "$progname: failed program was:" >&5
2219 cat conftest.$ac_ext >&5
2221 rm -f conftest* conftst*
2223 # Do not use the global_symbol_pipe unless it works.
2224 if test "$pipe_works" = yes; then
2227 lt_cv_sys_global_symbol_pipe=
2233 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
2234 if test -z "$lt_cv_sys_global_symbol_pipe"; then
2235 global_symbol_to_cdecl=
2236 global_symbol_to_c_name_address=
2238 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2239 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
2241 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
2243 echo "$ac_t""failed" 1>&6
2245 echo "$ac_t""ok" 1>&6
2248 for ac_hdr in dlfcn.h
2250 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2251 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2252 echo "configure:2253: checking for $ac_hdr" >&5
2253 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2254 echo $ac_n "(cached) $ac_c" 1>&6
2256 cat > conftest.$ac_ext <<EOF
2257 #line 2258 "configure"
2258 #include "confdefs.h"
2261 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2262 { (eval echo configure:2263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2263 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2264 if test -z "$ac_err"; then
2266 eval "ac_cv_header_$ac_safe=yes"
2269 echo "configure: failed program was:" >&5
2270 cat conftest.$ac_ext >&5
2272 eval "ac_cv_header_$ac_safe=no"
2276 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2277 echo "$ac_t""yes" 1>&6
2278 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2279 cat >> confdefs.h <<EOF
2280 #define $ac_tr_hdr 1
2284 echo "$ac_t""no" 1>&6
2293 # Only perform the check for file, if the check method requires it
2294 case $deplibs_check_method in
2296 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2297 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2298 echo "configure:2299: checking for ${ac_tool_prefix}file" >&5
2299 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2300 echo $ac_n "(cached) $ac_c" 1>&6
2304 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2307 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2310 ac_save_MAGIC_CMD="$MAGIC_CMD"
2311 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2312 ac_dummy="/usr/bin:$PATH"
2313 for ac_dir in $ac_dummy; do
2314 test -z "$ac_dir" && ac_dir=.
2315 if test -f $ac_dir/${ac_tool_prefix}file; then
2316 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2317 if test -n "$file_magic_test_file"; then
2318 case $deplibs_check_method in
2320 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2321 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2322 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2323 egrep "$file_magic_regex" > /dev/null; then
2328 *** Warning: the command libtool uses to detect shared libraries,
2329 *** $file_magic_cmd, produces output that libtool cannot recognize.
2330 *** The result is that libtool may fail to recognize shared libraries
2331 *** as such. This will affect the creation of libtool libraries that
2332 *** depend on shared libraries, but programs linked with such libtool
2333 *** libraries will work regardless of this problem. Nevertheless, you
2334 *** may want to report the problem to your system manager and/or to
2335 *** bug-libtool@gnu.org
2345 MAGIC_CMD="$ac_save_MAGIC_CMD"
2350 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2351 if test -n "$MAGIC_CMD"; then
2352 echo "$ac_t""$MAGIC_CMD" 1>&6
2354 echo "$ac_t""no" 1>&6
2357 if test -z "$lt_cv_path_MAGIC_CMD"; then
2358 if test -n "$ac_tool_prefix"; then
2359 echo $ac_n "checking for file""... $ac_c" 1>&6
2360 echo "configure:2361: checking for file" >&5
2361 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2362 echo $ac_n "(cached) $ac_c" 1>&6
2366 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2369 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2372 ac_save_MAGIC_CMD="$MAGIC_CMD"
2373 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2374 ac_dummy="/usr/bin:$PATH"
2375 for ac_dir in $ac_dummy; do
2376 test -z "$ac_dir" && ac_dir=.
2377 if test -f $ac_dir/file; then
2378 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2379 if test -n "$file_magic_test_file"; then
2380 case $deplibs_check_method in
2382 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2383 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2384 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2385 egrep "$file_magic_regex" > /dev/null; then
2390 *** Warning: the command libtool uses to detect shared libraries,
2391 *** $file_magic_cmd, produces output that libtool cannot recognize.
2392 *** The result is that libtool may fail to recognize shared libraries
2393 *** as such. This will affect the creation of libtool libraries that
2394 *** depend on shared libraries, but programs linked with such libtool
2395 *** libraries will work regardless of this problem. Nevertheless, you
2396 *** may want to report the problem to your system manager and/or to
2397 *** bug-libtool@gnu.org
2407 MAGIC_CMD="$ac_save_MAGIC_CMD"
2412 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2413 if test -n "$MAGIC_CMD"; then
2414 echo "$ac_t""$MAGIC_CMD" 1>&6
2416 echo "$ac_t""no" 1>&6
2428 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2429 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2430 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2431 echo "configure:2432: checking for $ac_word" >&5
2432 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2433 echo $ac_n "(cached) $ac_c" 1>&6
2435 if test -n "$RANLIB"; then
2436 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2438 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2440 for ac_dir in $ac_dummy; do
2441 test -z "$ac_dir" && ac_dir=.
2442 if test -f $ac_dir/$ac_word; then
2443 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2450 RANLIB="$ac_cv_prog_RANLIB"
2451 if test -n "$RANLIB"; then
2452 echo "$ac_t""$RANLIB" 1>&6
2454 echo "$ac_t""no" 1>&6
2458 if test -z "$ac_cv_prog_RANLIB"; then
2459 if test -n "$ac_tool_prefix"; then
2460 # Extract the first word of "ranlib", so it can be a program name with args.
2461 set dummy ranlib; ac_word=$2
2462 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2463 echo "configure:2464: checking for $ac_word" >&5
2464 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2465 echo $ac_n "(cached) $ac_c" 1>&6
2467 if test -n "$RANLIB"; then
2468 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2470 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2472 for ac_dir in $ac_dummy; do
2473 test -z "$ac_dir" && ac_dir=.
2474 if test -f $ac_dir/$ac_word; then
2475 ac_cv_prog_RANLIB="ranlib"
2480 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2483 RANLIB="$ac_cv_prog_RANLIB"
2484 if test -n "$RANLIB"; then
2485 echo "$ac_t""$RANLIB" 1>&6
2487 echo "$ac_t""no" 1>&6
2495 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2496 set dummy ${ac_tool_prefix}strip; ac_word=$2
2497 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2498 echo "configure:2499: checking for $ac_word" >&5
2499 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2500 echo $ac_n "(cached) $ac_c" 1>&6
2502 if test -n "$STRIP"; then
2503 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2505 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2507 for ac_dir in $ac_dummy; do
2508 test -z "$ac_dir" && ac_dir=.
2509 if test -f $ac_dir/$ac_word; then
2510 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2517 STRIP="$ac_cv_prog_STRIP"
2518 if test -n "$STRIP"; then
2519 echo "$ac_t""$STRIP" 1>&6
2521 echo "$ac_t""no" 1>&6
2525 if test -z "$ac_cv_prog_STRIP"; then
2526 if test -n "$ac_tool_prefix"; then
2527 # Extract the first word of "strip", so it can be a program name with args.
2528 set dummy strip; ac_word=$2
2529 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2530 echo "configure:2531: checking for $ac_word" >&5
2531 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2532 echo $ac_n "(cached) $ac_c" 1>&6
2534 if test -n "$STRIP"; then
2535 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2537 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2539 for ac_dir in $ac_dummy; do
2540 test -z "$ac_dir" && ac_dir=.
2541 if test -f $ac_dir/$ac_word; then
2542 ac_cv_prog_STRIP="strip"
2547 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2550 STRIP="$ac_cv_prog_STRIP"
2551 if test -n "$STRIP"; then
2552 echo "$ac_t""$STRIP" 1>&6
2554 echo "$ac_t""no" 1>&6
2566 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2567 if test "${enable_libtool_lock+set}" = set; then
2568 enableval="$enable_libtool_lock"
2572 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2574 # Some flags need to be propagated to the compiler or linker for good
2578 # Find out which ABI we are using.
2579 echo '#line 2580 "configure"' > conftest.$ac_ext
2580 if { (eval echo configure:2581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2581 case `/usr/bin/file conftest.$ac_objext` in
2597 # Test if the compiler is 64bit
2598 echo 'int i;' > conftest.$ac_ext
2599 lt_cv_cc_64bit_output=no
2600 if { (eval echo configure:2601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2601 case `/usr/bin/file conftest.$ac_objext` in
2603 lt_cv_cc_64bit_output=yes
2611 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2612 SAVE_CFLAGS="$CFLAGS"
2613 CFLAGS="$CFLAGS -belf"
2614 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2615 echo "configure:2616: checking whether the C compiler needs -belf" >&5
2616 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2617 echo $ac_n "(cached) $ac_c" 1>&6
2621 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2622 ac_cpp='$CPP $CPPFLAGS'
2623 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2624 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2625 cross_compiling=$ac_cv_prog_cc_cross
2627 cat > conftest.$ac_ext <<EOF
2628 #line 2629 "configure"
2629 #include "confdefs.h"
2635 if { (eval echo configure:2636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2637 lt_cv_cc_needs_belf=yes
2639 echo "configure: failed program was:" >&5
2640 cat conftest.$ac_ext >&5
2642 lt_cv_cc_needs_belf=no
2646 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2647 ac_cpp='$CPP $CPPFLAGS'
2648 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2649 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2650 cross_compiling=$ac_cv_prog_cc_cross
2654 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2655 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2656 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2657 CFLAGS="$SAVE_CFLAGS"
2664 # Sed substitution that helps us do robust quoting. It backslashifies
2665 # metacharacters that are still active within double-quoted strings.
2666 Xsed='sed -e s/^X//'
2667 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
2669 # Same as above, but do not quote variable references.
2670 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
2672 # Sed substitution to delay expansion of an escaped shell variable in a
2673 # double_quote_subst'ed string.
2674 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2680 default_ofile=libtool
2681 can_build_shared=yes
2683 # All known linkers require a `.a' archive for static linking (except M$VC,
2684 # which needs '.lib').
2686 ltmain="$ac_aux_dir/ltmain.sh"
2687 ofile="$default_ofile"
2688 with_gnu_ld="$lt_cv_prog_gnu_ld"
2689 need_locks="$enable_libtool_lock"
2692 old_CFLAGS="$CFLAGS"
2694 # Set sane defaults for various variables
2695 test -z "$AR" && AR=ar
2696 test -z "$AR_FLAGS" && AR_FLAGS=cru
2697 test -z "$AS" && AS=as
2698 test -z "$CC" && CC=cc
2699 test -z "$DLLTOOL" && DLLTOOL=dlltool
2700 test -z "$LD" && LD=ld
2701 test -z "$LN_S" && LN_S="ln -s"
2702 test -z "$MAGIC_CMD" && MAGIC_CMD=file
2703 test -z "$NM" && NM=nm
2704 test -z "$OBJDUMP" && OBJDUMP=objdump
2705 test -z "$RANLIB" && RANLIB=:
2706 test -z "$STRIP" && STRIP=:
2707 test -z "$ac_objext" && ac_objext=o
2709 if test x"$host" != x"$build"; then
2710 ac_tool_prefix=${host_alias}-
2715 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
2718 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
2723 # AIX sometimes has problems with the GCC collect2 program. For some
2724 # reason, if we set the COLLECT_NAMES environment variable, the problems
2725 # vanish in a puff of smoke.
2726 if test "X${COLLECT_NAMES+set}" != Xset; then
2728 export COLLECT_NAMES
2733 # Determine commands to create old-style static archives.
2734 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
2735 old_postinstall_cmds='chmod 644 $oldlib'
2736 old_postuninstall_cmds=
2738 if test -n "$RANLIB"; then
2741 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
2744 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
2747 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2750 # Allow CC to be a program name with arguments.
2754 echo $ac_n "checking for objdir""... $ac_c" 1>&6
2755 echo "configure:2756: checking for objdir" >&5
2756 rm -f .libs 2>/dev/null
2757 mkdir .libs 2>/dev/null
2758 if test -d .libs; then
2761 # MS-DOS does not allow filenames that begin with a dot.
2764 rmdir .libs 2>/dev/null
2765 echo "$ac_t""$objdir" 1>&6
2768 # Check whether --with-pic or --without-pic was given.
2769 if test "${with_pic+set}" = set; then
2776 test -z "$pic_mode" && pic_mode=default
2778 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
2779 # in isolation, and that seeing it set (from the cache) indicates that
2780 # the associated values are set (in the cache) correctly too.
2781 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
2782 echo "configure:2783: checking for $compiler option to produce PIC" >&5
2783 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
2784 echo $ac_n "(cached) $ac_c" 1>&6
2787 lt_cv_prog_cc_shlib=
2789 lt_cv_prog_cc_static=
2790 lt_cv_prog_cc_no_builtin=
2791 lt_cv_prog_cc_can_build_shared=$can_build_shared
2793 if test "$GCC" = yes; then
2794 lt_cv_prog_cc_wl='-Wl,'
2795 lt_cv_prog_cc_static='-static'
2799 # Below there is a dirty hack to force normal static linking with -ldl
2800 # The problem is because libdl dynamically linked with both libc and
2801 # libC (AIX C++ library), which obviously doesn't included in libraries
2802 # list by gcc. This cause undefined symbols with -static flags.
2803 # This hack allows C programs to be linked with "-static -ldl", but
2804 # not sure about C++ programs.
2805 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
2808 # FIXME: we need at least 68020 code to build shared libraries, but
2809 # adding the `-m68020' flag to GCC prevents building anything better,
2811 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
2813 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
2814 # PIC is the default for these OSes.
2816 darwin* | rhapsody*)
2817 # PIC is the default on this platform
2818 # Common symbols not allowed in MH_DYLIB files
2819 lt_cv_prog_cc_pic='-fno-common'
2821 cygwin* | mingw* | pw32* | os2*)
2822 # This hack is so that the source file can tell whether it is being
2823 # built for inclusion in a dll (and should export symbols for example).
2824 lt_cv_prog_cc_pic='-DDLL_EXPORT'
2827 if test -d /usr/nec; then
2828 lt_cv_prog_cc_pic=-Kconform_pic
2832 lt_cv_prog_cc_pic='-fPIC'
2836 # PORTME Check for PIC flags for the system compiler.
2838 aix3* | aix4* | aix5*)
2839 lt_cv_prog_cc_wl='-Wl,'
2840 # All AIX code is PIC.
2841 if test "$host_cpu" = ia64; then
2842 # AIX 5 now supports IA64 processor
2843 lt_cv_prog_cc_static='-Bstatic'
2845 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
2849 hpux9* | hpux10* | hpux11*)
2850 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
2851 lt_cv_prog_cc_wl='-Wl,'
2852 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
2853 lt_cv_prog_cc_pic='+Z'
2856 irix5* | irix6* | nonstopux*)
2857 lt_cv_prog_cc_wl='-Wl,'
2858 lt_cv_prog_cc_static='-non_shared'
2859 # PIC (with -KPIC) is the default.
2862 cygwin* | mingw* | pw32* | os2*)
2863 # This hack is so that the source file can tell whether it is being
2864 # built for inclusion in a dll (and should export symbols for example).
2865 lt_cv_prog_cc_pic='-DDLL_EXPORT'
2869 lt_cv_prog_cc_pic='-KPIC'
2870 lt_cv_prog_cc_static='-Bstatic'
2873 osf3* | osf4* | osf5*)
2874 # All OSF/1 code is PIC.
2875 lt_cv_prog_cc_wl='-Wl,'
2876 lt_cv_prog_cc_static='-non_shared'
2880 lt_cv_prog_cc_pic='-Kpic'
2881 lt_cv_prog_cc_static='-dn'
2882 lt_cv_prog_cc_shlib='-belf'
2886 lt_cv_prog_cc_pic='-KPIC'
2887 lt_cv_prog_cc_static='-Bstatic'
2888 lt_cv_prog_cc_wl='-Wl,'
2892 lt_cv_prog_cc_pic='-PIC'
2893 lt_cv_prog_cc_static='-Bstatic'
2894 lt_cv_prog_cc_wl='-Qoption ld '
2897 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2898 lt_cv_prog_cc_pic='-KPIC'
2899 lt_cv_prog_cc_static='-Bstatic'
2900 lt_cv_prog_cc_wl='-Wl,'
2904 lt_cv_prog_cc_pic='-pic'
2905 lt_cv_prog_cc_static='-Bstatic'
2909 if test -d /usr/nec ;then
2910 lt_cv_prog_cc_pic='-Kconform_pic'
2911 lt_cv_prog_cc_static='-Bstatic'
2916 lt_cv_prog_cc_can_build_shared=no
2923 if test -z "$lt_cv_prog_cc_pic"; then
2924 echo "$ac_t""none" 1>&6
2926 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
2928 # Check to make sure the pic_flag actually works.
2929 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
2930 echo "configure:2931: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
2931 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
2932 echo $ac_n "(cached) $ac_c" 1>&6
2934 save_CFLAGS="$CFLAGS"
2935 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2936 cat > conftest.$ac_ext <<EOF
2937 #line 2938 "configure"
2938 #include "confdefs.h"
2944 if { (eval echo configure:2945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2947 hpux9* | hpux10* | hpux11*)
2948 # On HP-UX, both CC and GCC only warn that PIC is supported... then
2949 # they create non-PIC objects. So, if there were any warnings, we
2950 # assume that PIC is not supported.
2951 if test -s conftest.err; then
2952 lt_cv_prog_cc_pic_works=no
2954 lt_cv_prog_cc_pic_works=yes
2958 lt_cv_prog_cc_pic_works=yes
2963 echo "configure: failed program was:" >&5
2964 cat conftest.$ac_ext >&5
2966 lt_cv_prog_cc_pic_works=no
2970 CFLAGS="$save_CFLAGS"
2975 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
2977 lt_cv_prog_cc_can_build_shared=no
2979 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
2982 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
2985 # Check for any special shared library compilation flags.
2986 if test -n "$lt_cv_prog_cc_shlib"; then
2987 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
2988 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
2990 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
2991 lt_cv_prog_cc_can_build_shared=no
2995 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
2996 echo "configure:2997: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
2997 if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
2998 echo $ac_n "(cached) $ac_c" 1>&6
3000 lt_cv_prog_cc_static_works=no
3001 save_LDFLAGS="$LDFLAGS"
3002 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
3003 cat > conftest.$ac_ext <<EOF
3004 #line 3005 "configure"
3005 #include "confdefs.h"
3011 if { (eval echo configure:3012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3013 lt_cv_prog_cc_static_works=yes
3015 echo "configure: failed program was:" >&5
3016 cat conftest.$ac_ext >&5
3019 LDFLAGS="$save_LDFLAGS"
3024 # Belt *and* braces to stop my trousers falling down:
3025 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
3026 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
3028 pic_flag="$lt_cv_prog_cc_pic"
3029 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
3030 wl="$lt_cv_prog_cc_wl"
3031 link_static_flag="$lt_cv_prog_cc_static"
3032 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
3033 can_build_shared="$lt_cv_prog_cc_can_build_shared"
3036 # Check to see if options -o and -c are simultaneously supported by compiler
3037 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
3038 echo "configure:3039: checking if $compiler supports -c -o file.$ac_objext" >&5
3039 if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
3040 echo $ac_n "(cached) $ac_c" 1>&6
3043 $rm -r conftest 2>/dev/null
3046 echo "int some_variable = 0;" > conftest.$ac_ext
3048 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
3049 # that will create temporary files in the current directory regardless of
3050 # the output directory. Thus, making CWD read-only will cause this test
3051 # to fail, enabling locking or at least warning the user not to do parallel
3054 save_CFLAGS="$CFLAGS"
3055 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
3057 if { (eval echo configure:3058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
3058 # The compiler can only warn and ignore the option if not recognized
3059 # So say no if there are warnings
3060 if test -s out/conftest.err; then
3061 lt_cv_compiler_c_o=no
3063 lt_cv_compiler_c_o=yes
3066 # Append any errors to the config.log.
3067 cat out/conftest.err 1>&5
3068 lt_cv_compiler_c_o=no
3070 CFLAGS="$save_CFLAGS"
3076 $rm -r conftest 2>/dev/null
3080 compiler_c_o=$lt_cv_compiler_c_o
3081 echo "$ac_t""$compiler_c_o" 1>&6
3083 if test x"$compiler_c_o" = x"yes"; then
3084 # Check to see if we can write to a .lo
3085 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
3086 echo "configure:3087: checking if $compiler supports -c -o file.lo" >&5
3087 if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
3088 echo $ac_n "(cached) $ac_c" 1>&6
3091 lt_cv_compiler_o_lo=no
3092 save_CFLAGS="$CFLAGS"
3093 CFLAGS="$CFLAGS -c -o conftest.lo"
3094 save_objext="$ac_objext"
3096 cat > conftest.$ac_ext <<EOF
3097 #line 3098 "configure"
3098 #include "confdefs.h"
3101 int some_variable = 0;
3104 if { (eval echo configure:3105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3106 # The compiler can only warn and ignore the option if not recognized
3107 # So say no if there are warnings
3108 if test -s conftest.err; then
3109 lt_cv_compiler_o_lo=no
3111 lt_cv_compiler_o_lo=yes
3115 echo "configure: failed program was:" >&5
3116 cat conftest.$ac_ext >&5
3119 ac_objext="$save_objext"
3120 CFLAGS="$save_CFLAGS"
3124 compiler_o_lo=$lt_cv_compiler_o_lo
3125 echo "$ac_t""$compiler_o_lo" 1>&6
3130 # Check to see if we can do hard links to lock some files if needed
3131 hard_links="nottested"
3132 if test "$compiler_c_o" = no && test "$need_locks" != no; then
3133 # do not overwrite the value of need_locks provided by the user
3134 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
3135 echo "configure:3136: checking if we can lock with hard links" >&5
3138 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3140 ln conftest.a conftest.b 2>&5 || hard_links=no
3141 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3142 echo "$ac_t""$hard_links" 1>&6
3143 if test "$hard_links" = no; then
3144 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
3151 if test "$GCC" = yes; then
3152 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
3153 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
3154 echo "configure:3155: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3155 echo "int some_variable = 0;" > conftest.$ac_ext
3156 save_CFLAGS="$CFLAGS"
3157 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3158 compiler_rtti_exceptions=no
3159 cat > conftest.$ac_ext <<EOF
3160 #line 3161 "configure"
3161 #include "confdefs.h"
3164 int some_variable = 0;
3167 if { (eval echo configure:3168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3169 # The compiler can only warn and ignore the option if not recognized
3170 # So say no if there are warnings
3171 if test -s conftest.err; then
3172 compiler_rtti_exceptions=no
3174 compiler_rtti_exceptions=yes
3178 echo "configure: failed program was:" >&5
3179 cat conftest.$ac_ext >&5
3182 CFLAGS="$save_CFLAGS"
3183 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
3185 if test "$compiler_rtti_exceptions" = "yes"; then
3186 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3188 no_builtin_flag=' -fno-builtin'
3192 # See if the linker supports building shared libraries.
3193 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
3194 echo "configure:3195: checking whether the linker ($LD) supports shared libraries" >&5
3196 allow_undefined_flag=
3198 need_lib_prefix=unknown
3199 need_version=unknown
3200 # when you set need_version to no, make sure it does not cause -set_version
3201 # flags to be left without arguments
3203 archive_expsym_cmds=
3204 old_archive_from_new_cmds=
3205 old_archive_from_expsyms_cmds=
3206 export_dynamic_flag_spec=
3207 whole_archive_flag_spec=
3208 thread_safe_flag_spec=
3209 hardcode_into_libs=no
3210 hardcode_libdir_flag_spec=
3211 hardcode_libdir_separator=
3214 hardcode_shlibpath_var=unsupported
3216 link_all_deplibs=unknown
3217 always_export_symbols=no
3218 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
3219 # include_expsyms should be a list of space-separated symbols to be *always*
3220 # included in the symbol list
3222 # exclude_expsyms can be an egrep regular expression of symbols to exclude
3223 # it will be wrapped by ` (' and `)$', so one must not match beginning or
3224 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
3225 # as well as any symbol that contains `d'.
3226 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
3227 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
3228 # platforms (ab)use it in PIC code, but their linkers get confused if
3229 # the symbol is explicitly referenced. Since portable code cannot
3230 # rely on this symbol name, it's probably fine to never include it in
3231 # preloaded symbol tables.
3232 extract_expsyms_cmds=
3235 cygwin* | mingw* | pw32*)
3236 # FIXME: the MSVC++ port hasn't been tested in a loooong time
3237 # When not using gcc, we currently assume that we are using
3238 # Microsoft Visual C++.
3239 if test "$GCC" != yes; then
3249 if test "$with_gnu_ld" = yes; then
3250 # If archive_cmds runs LD, not CC, wlarc should be empty
3253 # See if GNU ld supports shared libraries.
3255 aix3* | aix4* | aix5*)
3256 # On AIX, the GNU linker is very broken
3257 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
3261 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
3262 *** to be unable to reliably create shared libraries on AIX.
3263 *** Therefore, libtool is disabling shared libraries support. If you
3264 *** really care for shared libraries, you may want to modify your PATH
3265 *** so that a non-GNU linker is found, and then restart.
3271 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)'
3272 hardcode_libdir_flag_spec='-L$libdir'
3273 hardcode_minus_L=yes
3275 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
3276 # that the semantics of dynamic libraries on AmigaOS, at least up
3277 # to version 4, is to share data among multiple programs linked
3278 # with the same dynamic library. Since this doesn't match the
3279 # behavior of shared libraries on other platforms, we can use
3285 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3286 allow_undefined_flag=unsupported
3287 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3288 # support --undefined. This deserves some investigation. FIXME
3289 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3295 cygwin* | mingw* | pw32*)
3296 # hardcode_libdir_flag_spec is actually meaningless, as there is
3297 # no search path for DLLs.
3298 hardcode_libdir_flag_spec='-L$libdir'
3299 allow_undefined_flag=unsupported
3300 always_export_symbols=yes
3302 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
3303 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
3304 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
3305 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
3306 else $CC -o impgen impgen.c ; fi)~
3307 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
3309 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
3311 # cygwin and mingw dlls have different entry points and sets of symbols
3313 # FIXME: what about values for MSVC?
3314 dll_entry=__cygwin_dll_entry@12
3315 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
3319 dll_entry=_DllMainCRTStartup@12
3320 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
3324 # mingw and cygwin differ, and it's simplest to just exclude the union
3325 # of the two symbol sets.
3326 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
3328 # recent cygwin and mingw systems supply a stub DllMain which the user
3329 # can override, but on older systems we have to supply one (in ltdll.c)
3330 if test "x$lt_cv_need_dllmain" = "xyes"; then
3331 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
3332 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
3333 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
3339 # Extract the symbol export list from an `--export-all' def file,
3340 # then regenerate the def file from the symbol export list, so that
3341 # the compiled dll only exports the symbol export list.
3342 # Be careful not to strip the DATA tag left be newer dlltools.
3343 export_symbols_cmds="$ltdll_cmds"'
3344 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
3345 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
3347 # If the export-symbols file already is a .def file (1st line
3348 # is EXPORTS), use it as is.
3349 # If DATA tags from a recent dlltool are present, honour them!
3350 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
3351 cp $export_symbols $output_objdir/$soname-def;
3353 echo EXPORTS > $output_objdir/$soname-def;
3355 cat $export_symbols | while read symbol; do
3358 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
3359 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
3360 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
3362 _lt_hint=`expr 1 + \$_lt_hint`;
3366 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
3367 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
3368 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
3369 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
3370 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
3374 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3375 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3378 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3379 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3384 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
3388 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
3389 *** create shared libraries on Solaris systems. Therefore, libtool
3390 *** is disabling shared libraries support. We urge you to upgrade GNU
3391 *** binutils to release 2.9.1 or newer. Another option is to modify
3392 *** your PATH or compiler configuration so that the native linker is
3393 *** used, and then restart.
3396 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3397 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3398 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3405 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3408 hardcode_shlibpath_var=no
3412 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3413 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3414 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3421 if test "$ld_shlibs" = yes; then
3422 runpath_var=LD_RUN_PATH
3423 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
3424 export_dynamic_flag_spec='${wl}--export-dynamic'
3426 cygwin* | mingw* | pw32*)
3427 # dlltool doesn't understand --whole-archive et. al.
3428 whole_archive_flag_spec=
3431 # ancient GNU ld didn't support --whole-archive et. al.
3432 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
3433 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3435 whole_archive_flag_spec=
3441 # PORTME fill in a description of your system's linker (not GNU ld)
3444 allow_undefined_flag=unsupported
3445 always_export_symbols=yes
3446 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'
3447 # Note: this linker hardcodes the directories in LIBPATH if there
3448 # are no directories specified by -L.
3449 hardcode_minus_L=yes
3450 if test "$GCC" = yes && test -z "$link_static_flag"; then
3451 # Neither direct hardcoding nor static linking is supported with a
3453 hardcode_direct=unsupported
3458 if test "$host_cpu" = ia64; then
3459 # On IA64, the linker does run time linking by default, so we don't
3460 # have to do anything special.
3461 aix_use_runtimelinking=no
3462 exp_sym_flag='-Bexport'
3465 aix_use_runtimelinking=no
3467 # Test if we are trying to use run time linking or normal
3468 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3469 # need to do runtime linking.
3470 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
3471 for ld_flag in $LDFLAGS; do
3474 aix_use_runtimelinking=yes
3481 exp_sym_flag='-bexport'
3482 no_entry_flag='-bnoentry'
3485 # When large executables or shared objects are built, AIX ld can
3486 # have problems creating the table of contents. If linking a library
3487 # or program results in "error TOC overflow" add -mminimal-toc to
3488 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3489 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3493 hardcode_libdir_separator=':'
3494 if test "$GCC" = yes; then
3495 case $host_os in aix4.[012]|aix4.[012].*)
3496 collect2name=`${CC} -print-prog-name=collect2`
3497 if test -f "$collect2name" && \
3498 strings "$collect2name" | grep resolve_lib_name >/dev/null
3500 # We have reworked collect2
3503 # We have old collect2
3504 hardcode_direct=unsupported
3505 # It fails to find uninstalled libraries when the uninstalled
3506 # path is not listed in the libpath. Setting hardcode_minus_L
3507 # to unsupported forces relinking
3508 hardcode_minus_L=yes
3509 hardcode_libdir_flag_spec='-L$libdir'
3510 hardcode_libdir_separator=
3514 shared_flag='-shared'
3517 if test "$host_cpu" = ia64; then
3518 shared_flag='${wl}-G'
3520 if test "$aix_use_runtimelinking" = yes; then
3521 shared_flag='${wl}-G'
3523 shared_flag='${wl}-bM:SRE'
3528 # It seems that -bexpall can do strange things, so it is better to
3529 # generate a list of symbols to export.
3530 always_export_symbols=yes
3531 if test "$aix_use_runtimelinking" = yes; then
3532 # Warning - without using the other runtime loading flags (-brtl),
3533 # -berok will link without error, but may produce a broken library.
3534 allow_undefined_flag='-berok'
3535 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
3536 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"
3538 if test "$host_cpu" = ia64; then
3539 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
3540 allow_undefined_flag="-z nodefs"
3541 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
3543 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
3544 # Warning - without using the other run time loading flags,
3545 # -berok will link without error, but may produce a broken library.
3546 allow_undefined_flag='${wl}-berok'
3547 # This is a bit strange, but is similar to how AIX traditionally builds
3548 # it's shared libraries.
3549 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
3555 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)'
3556 hardcode_libdir_flag_spec='-L$libdir'
3557 hardcode_minus_L=yes
3558 # see comment about different semantics on the GNU ld section
3562 cygwin* | mingw* | pw32*)
3563 # When not using gcc, we currently assume that we are using
3564 # Microsoft Visual C++.
3565 # hardcode_libdir_flag_spec is actually meaningless, as there is
3566 # no search path for DLLs.
3567 hardcode_libdir_flag_spec=' '
3568 allow_undefined_flag=unsupported
3569 # Tell ltmain to make .lib files, not .a files.
3571 # FIXME: Setting linknames here is a bad hack.
3572 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
3573 # The linker will automatically build a .lib file if we build a DLL.
3574 old_archive_from_new_cmds='true'
3575 # FIXME: Should let the user specify the lib program.
3576 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
3577 fix_srcfile_path='`cygpath -w "$srcfile"`'
3580 darwin* | rhapsody*)
3582 rhapsody* | darwin1.[012])
3583 allow_undefined_flag='-undefined suppress'
3586 allow_undefined_flag='-flat_namespace -undefined suppress'
3589 # FIXME: Relying on posixy $() will cause problems for
3590 # cross-compilation, but unfortunately the echo tests do not
3591 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
3592 # `"' quotes if we put them in here... so don't!
3593 archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
3594 # We need to add '_' to the symbols in $export_symbols first
3595 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
3597 hardcode_shlibpath_var=no
3598 whole_archive_flag_spec='-all_load $convenience'
3605 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
3606 # support. Future versions do this automatically, but an explicit c++rt0.o
3607 # does not break anything, and helps significantly (at the cost of a little
3610 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
3611 hardcode_libdir_flag_spec='-R$libdir'
3613 hardcode_shlibpath_var=no
3616 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
3618 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3620 hardcode_minus_L=yes
3621 hardcode_shlibpath_var=no
3624 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
3626 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
3627 hardcode_libdir_flag_spec='-R$libdir'
3629 hardcode_shlibpath_var=no
3632 hpux9* | hpux10* | hpux11*)
3634 hpux9*) 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' ;;
3635 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
3637 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
3638 hardcode_libdir_separator=:
3640 hardcode_minus_L=yes # Not in the search PATH, but as the default
3641 # location of the library.
3642 export_dynamic_flag_spec='${wl}-E'
3645 irix5* | irix6* | nonstopux*)
3646 if test "$GCC" = yes; then
3647 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'
3648 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3650 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'
3651 hardcode_libdir_flag_spec='-rpath $libdir'
3653 hardcode_libdir_separator=:
3654 link_all_deplibs=yes
3658 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3659 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
3661 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
3663 hardcode_libdir_flag_spec='-R$libdir'
3665 hardcode_shlibpath_var=no
3669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3671 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3672 hardcode_libdir_separator=:
3673 hardcode_shlibpath_var=no
3678 hardcode_shlibpath_var=no
3679 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3680 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
3681 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3682 export_dynamic_flag_spec='${wl}-E'
3685 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
3686 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3687 hardcode_libdir_flag_spec='-R$libdir'
3690 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
3691 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3698 hardcode_libdir_flag_spec='-L$libdir'
3699 hardcode_minus_L=yes
3700 allow_undefined_flag=unsupported
3701 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'
3702 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
3706 if test "$GCC" = yes; then
3707 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3708 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'
3710 allow_undefined_flag=' -expect_unresolved \*'
3711 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'
3713 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3714 hardcode_libdir_separator=:
3717 osf4* | osf5*) # as osf3* with the addition of -msym flag
3718 if test "$GCC" = yes; then
3719 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3720 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'
3721 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3723 allow_undefined_flag=' -expect_unresolved \*'
3724 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'
3725 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
3726 $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'
3728 #Both c and cxx compiler support -rpath directly
3729 hardcode_libdir_flag_spec='-rpath $libdir'
3731 hardcode_libdir_separator=:
3735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3736 hardcode_shlibpath_var=no
3737 runpath_var=LD_RUN_PATH
3738 hardcode_runpath_var=yes
3739 export_dynamic_flag_spec='${wl}-Bexport'
3743 # gcc --version < 3.0 without binutils cannot create self contained
3744 # shared libraries reliably, requiring libgcc.a to resolve some of
3745 # the object symbols generated in some cases. Libraries that use
3746 # assert need libgcc.a to resolve __eprintf, for example. Linking
3747 # a copy of libgcc.a into every shared library to guarantee resolving
3748 # such symbols causes other problems: According to Tim Van Holder
3749 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
3750 # (to the application) exception stack for one thing.
3751 no_undefined_flag=' -z defs'
3752 if test "$GCC" = yes; then
3753 case `$CC --version 2>/dev/null` in
3757 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
3758 *** create self contained shared libraries on Solaris systems, without
3759 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
3760 *** -no-undefined support, which will at least allow you to build shared
3761 *** libraries. However, you may find that when you link such libraries
3762 *** into an application without using GCC, you have to manually add
3763 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
3764 *** upgrade to a newer version of GCC. Another option is to rebuild your
3765 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
3772 # $CC -shared without GNU ld will not create a library from C++
3773 # object files and a static libstdc++, better avoid it by now
3774 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3775 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3776 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3777 hardcode_libdir_flag_spec='-R$libdir'
3778 hardcode_shlibpath_var=no
3780 solaris2.[0-5] | solaris2.[0-5].*) ;;
3781 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
3782 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
3784 link_all_deplibs=yes
3788 if test "x$host_vendor" = xsequent; then
3789 # Use $CC to link under sequent, because it throws in some extra .o
3790 # files that make .init and .fini sections work.
3791 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
3793 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
3795 hardcode_libdir_flag_spec='-L$libdir'
3797 hardcode_minus_L=yes
3798 hardcode_shlibpath_var=no
3802 case $host_vendor in
3804 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3805 hardcode_direct=yes # is this really true???
3808 ## LD is ld it makes a PLAMLIB
3809 ## CC just makes a GrossModule.
3810 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
3811 reload_cmds='$CC -r -o $output$reload_objs'
3815 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3816 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
3819 runpath_var='LD_RUN_PATH'
3820 hardcode_shlibpath_var=no
3824 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3825 hardcode_shlibpath_var=no
3826 export_dynamic_flag_spec='-Bexport'
3830 no_undefined_flag=' -z text'
3831 # $CC -shared without GNU ld will not create a library from C++
3832 # object files and a static libstdc++, better avoid it by now
3833 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3834 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3835 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3836 hardcode_libdir_flag_spec=
3837 hardcode_shlibpath_var=no
3838 runpath_var='LD_RUN_PATH'
3842 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3843 hardcode_libdir_flag_spec='-L$libdir'
3844 hardcode_shlibpath_var=no
3848 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3849 hardcode_libdir_flag_spec='-L$libdir'
3850 hardcode_shlibpath_var=no
3854 if test -d /usr/nec; then
3855 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3856 hardcode_shlibpath_var=no
3857 runpath_var=LD_RUN_PATH
3858 hardcode_runpath_var=yes
3864 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
3867 hardcode_shlibpath_var=no
3868 hardcode_runpath_var=yes
3869 runpath_var=LD_RUN_PATH
3872 sysv5uw7* | unixware7*)
3873 no_undefined_flag='${wl}-z ${wl}text'
3874 if test "$GCC" = yes; then
3875 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3877 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3879 runpath_var='LD_RUN_PATH'
3880 hardcode_shlibpath_var=no
3888 echo "$ac_t""$ld_shlibs" 1>&6
3889 test "$ld_shlibs" = no && can_build_shared=no
3891 # Check hardcoding attributes.
3892 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
3893 echo "configure:3894: checking how to hardcode library paths into programs" >&5
3895 if test -n "$hardcode_libdir_flag_spec" || \
3896 test -n "$runpath_var"; then
3898 # We can hardcode non-existant directories.
3899 if test "$hardcode_direct" != no &&
3900 # If the only mechanism to avoid hardcoding is shlibpath_var, we
3901 # have to relink, otherwise we might link with an installed library
3902 # when we should be linking with a yet-to-be-installed one
3903 ## test "$hardcode_shlibpath_var" != no &&
3904 test "$hardcode_minus_L" != no; then
3905 # Linking always hardcodes the temporary library directory.
3906 hardcode_action=relink
3908 # We can link without hardcoding, and we can hardcode nonexisting dirs.
3909 hardcode_action=immediate
3912 # We cannot hardcode anything, or else we can only hardcode existing
3914 hardcode_action=unsupported
3916 echo "$ac_t""$hardcode_action" 1>&6
3920 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
3921 echo "configure:3922: checking whether stripping libraries is possible" >&5
3922 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
3923 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3924 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3925 echo "$ac_t""yes" 1>&6
3927 echo "$ac_t""no" 1>&6
3930 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3931 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3933 # PORTME Fill in your ld.so characteristics
3934 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
3935 echo "configure:3936: checking dynamic linker characteristics" >&5
3937 libname_spec='lib$name'
3944 shlibpath_overrides_runpath=unknown
3946 dynamic_linker="$host_os ld.so"
3947 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib"
3948 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib"
3953 library_names_spec='${libname}${release}.so$versuffix $libname.a'
3954 shlibpath_var=LIBPATH
3956 # AIX has no versioning support, so we append a major version to the name.
3957 soname_spec='${libname}${release}.so$major'
3964 hardcode_into_libs=yes
3965 if test "$host_cpu" = ia64; then
3966 # AIX 5 supports IA64
3967 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
3968 shlibpath_var=LD_LIBRARY_PATH
3970 # With GCC up to 2.95.x, collect2 would create an import file
3971 # for dependence libraries. The import file would start with
3972 # the line `#! .'. This would cause the generated library to
3973 # depend on `.', always an invalid library. This was fixed in
3974 # development snapshots of GCC prior to 3.0.
3976 aix4 | aix4.[01] | aix4.[01].*)
3977 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3979 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
3986 # AIX (on Power*) has no versioning support, so currently we can
3987 # not hardcode correct soname into executable. Probably we can
3988 # add versioning support to collect2, so additional links can
3989 # be useful in future.
3990 if test "$aix_use_runtimelinking" = yes; then
3991 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
3992 # instead of lib<name>.a to let people know that these are not
3993 # typical AIX shared libraries.
3994 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3996 # We preserve .a as extension for shared libraries through AIX4.2
3997 # and later when we are not doing run time linking.
3998 library_names_spec='${libname}${release}.a $libname.a'
3999 soname_spec='${libname}${release}.so$major'
4001 shlibpath_var=LIBPATH
4003 hardcode_into_libs=yes
4007 library_names_spec='$libname.ixlibrary $libname.a'
4008 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4009 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'
4013 library_names_spec='${libname}.so'
4014 dynamic_linker="$host_os ld.so"
4015 shlibpath_var=LIBRARY_PATH
4021 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4022 soname_spec='${libname}${release}.so$major'
4023 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4024 shlibpath_var=LD_LIBRARY_PATH
4025 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4026 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4027 export_dynamic_flag_spec=-rdynamic
4028 # the default ld.so.conf also contains /usr/contrib/lib and
4029 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4030 # libtool to hard-code these into programs
4033 cygwin* | mingw* | pw32*)
4034 version_type=windows
4037 case $GCC,$host_os in
4039 library_names_spec='$libname.dll.a'
4040 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4041 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
4042 dldir=$destdir/`dirname \$dlpath`~
4043 test -d \$dldir || mkdir -p \$dldir~
4044 $install_prog .libs/$dlname \$dldir/$dlname'
4045 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
4046 dlpath=$dir/\$dldll~
4050 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4051 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
4054 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
4057 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
4060 dynamic_linker='Win32 ld.exe'
4061 # FIXME: first we should search . and the directory the executable is in
4065 darwin* | rhapsody*)
4066 dynamic_linker="$host_os dyld"
4070 # FIXME: Relying on posixy $() will cause problems for
4071 # cross-compilation, but unfortunately the echo tests do not
4072 # yet detect zsh echo's removal of \ escapes.
4073 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
4074 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
4075 shlibpath_overrides_runpath=yes
4076 shlibpath_var=DYLD_LIBRARY_PATH
4084 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4085 version_type=freebsd-$objformat
4086 case $version_type in
4088 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4093 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
4097 shlibpath_var=LD_LIBRARY_PATH
4100 shlibpath_overrides_runpath=yes
4103 shlibpath_overrides_runpath=no
4104 hardcode_into_libs=yes
4113 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
4114 soname_spec='${libname}${release}.so$major'
4115 shlibpath_var=LD_LIBRARY_PATH
4116 hardcode_into_libs=yes
4119 hpux9* | hpux10* | hpux11*)
4120 # Give a soname corresponding to the major version so that dld.sl refuses to
4121 # link against other versions.
4122 dynamic_linker="$host_os dld.sl"
4126 shlibpath_var=SHLIB_PATH
4127 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4128 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
4129 soname_spec='${libname}${release}.sl$major'
4130 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4131 postinstall_cmds='chmod 555 $lib'
4134 irix5* | irix6* | nonstopux*)
4136 nonstopux*) version_type=nonstopux ;;
4137 *) version_type=irix ;;
4141 soname_spec='${libname}${release}.so$major'
4142 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
4144 irix5* | nonstopux*)
4148 case $LD in # libtool.m4 will add one of these switches to LD
4149 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
4150 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
4151 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
4152 *) libsuff= shlibsuff= libmagic=never-match;;
4156 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4157 shlibpath_overrides_runpath=no
4158 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4159 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4162 # No shared lib support for Linux oldld, aout, or coff.
4163 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
4167 # This must be Linux ELF.
4172 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4173 soname_spec='${libname}${release}.so$major'
4174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4175 shlibpath_var=LD_LIBRARY_PATH
4176 shlibpath_overrides_runpath=no
4177 # This implies no fast_install, which is unacceptable.
4178 # Some rework will be needed to allow for fast_install
4179 # before this can be enabled.
4180 hardcode_into_libs=yes
4182 case $host_cpu:$lt_cv_cc_64bit_output in
4183 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
4184 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
4185 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
4189 # We used to test for /lib/ld.so.1 and disable shared libraries on
4190 # powerpc, because MkLinux only supported shared libraries with the
4191 # GNU dynamic linker. Since this was broken with cross compilers,
4192 # most powerpc-linux boxes support dynamic linking these days and
4193 # people can always --disable-shared, the test was removed, and we
4194 # assume the GNU/Linux dynamic linker is in use.
4195 dynamic_linker='GNU/Linux ld.so'
4197 # Find out which ABI we are using (multilib Linux x86_64 hack).
4201 echo '#line 4202 "configure"' > conftest.$ac_ext
4202 if { (eval echo configure:4203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4203 case `/usr/bin/file conftest.$ac_objext` in
4214 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
4215 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
4222 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4223 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4224 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4225 dynamic_linker='NetBSD (a.out) ld.so'
4227 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
4228 soname_spec='${libname}${release}.so$major'
4229 dynamic_linker='NetBSD ld.elf_so'
4231 shlibpath_var=LD_LIBRARY_PATH
4232 shlibpath_overrides_runpath=yes
4233 hardcode_into_libs=yes
4238 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4239 shlibpath_var=LD_LIBRARY_PATH
4240 shlibpath_overrides_runpath=yes
4247 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4249 openbsd2.[89] | openbsd2.[89].*)
4250 shlibpath_overrides_runpath=no
4253 shlibpath_overrides_runpath=yes
4257 shlibpath_overrides_runpath=yes
4259 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4260 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4261 shlibpath_var=LD_LIBRARY_PATH
4265 libname_spec='$name'
4267 library_names_spec='$libname.dll $libname.a'
4268 dynamic_linker='OS/2 ld.exe'
4269 shlibpath_var=LIBPATH
4272 osf3* | osf4* | osf5*)
4275 soname_spec='${libname}${release}.so$major'
4276 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4277 shlibpath_var=LD_LIBRARY_PATH
4278 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4279 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4280 hardcode_into_libs=yes
4285 soname_spec='${libname}${release}.so$major'
4286 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4287 shlibpath_var=LD_LIBRARY_PATH
4294 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4295 soname_spec='${libname}${release}.so$major'
4296 shlibpath_var=LD_LIBRARY_PATH
4297 shlibpath_overrides_runpath=yes
4298 hardcode_into_libs=yes
4299 # ldd complains unless libraries are executable
4300 postinstall_cmds='chmod +x $lib'
4305 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4306 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4307 shlibpath_var=LD_LIBRARY_PATH
4308 shlibpath_overrides_runpath=yes
4309 if test "$with_gnu_ld" = yes; then
4315 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4317 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4318 soname_spec='${libname}${release}.so$major'
4319 shlibpath_var=LD_LIBRARY_PATH
4320 case $host_vendor in
4322 shlibpath_overrides_runpath=no
4324 export_dynamic_flag_spec='${wl}-Blargedynsym'
4325 runpath_var=LD_RUN_PATH
4333 shlibpath_overrides_runpath=no
4334 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4341 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4342 soname_spec='${libname}${release}.so$major'
4343 shlibpath_var=LD_LIBRARY_PATH
4350 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4351 soname_spec='${libname}${release}.so$major'
4352 shlibpath_var=LD_LIBRARY_PATH
4356 if test -d /usr/nec ;then
4358 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
4359 soname_spec='$libname.so.$major'
4360 shlibpath_var=LD_LIBRARY_PATH
4368 echo "$ac_t""$dynamic_linker" 1>&6
4369 test "$dynamic_linker" = no && can_build_shared=no
4371 # Report the final consequences.
4372 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
4373 echo "configure:4374: checking if libtool supports shared libraries" >&5
4374 echo "$ac_t""$can_build_shared" 1>&6
4376 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
4377 echo "configure:4378: checking whether to build shared libraries" >&5
4378 test "$can_build_shared" = "no" && enable_shared=no
4380 # On AIX, shared libraries and static libraries use the same namespace, and
4381 # are all built from PIC.
4384 test "$enable_shared" = yes && enable_static=no
4385 if test -n "$RANLIB"; then
4386 archive_cmds="$archive_cmds~\$RANLIB \$lib"
4387 postinstall_cmds='$RANLIB $lib'
4392 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4393 test "$enable_shared" = yes && enable_static=no
4397 echo "$ac_t""$enable_shared" 1>&6
4399 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
4400 echo "configure:4401: checking whether to build static libraries" >&5
4401 # Make sure either enable_shared or enable_static is yes.
4402 test "$enable_shared" = yes || enable_static=yes
4403 echo "$ac_t""$enable_static" 1>&6
4405 if test "$hardcode_action" = relink; then
4406 # Fast installation is not supported
4407 enable_fast_install=no
4408 elif test "$shlibpath_overrides_runpath" = yes ||
4409 test "$enable_shared" = no; then
4410 # Fast installation is not necessary
4411 enable_fast_install=needless
4414 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4415 if test "$GCC" = yes; then
4416 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4419 if test "x$enable_dlopen" != xyes; then
4420 enable_dlopen=unknown
4421 enable_dlopen_self=unknown
4422 enable_dlopen_self_static=unknown
4429 lt_cv_dlopen="load_add_on"
4431 lt_cv_dlopen_self=yes
4434 cygwin* | mingw* | pw32*)
4435 lt_cv_dlopen="LoadLibrary"
4440 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
4441 echo "configure:4442: checking for shl_load" >&5
4442 if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
4443 echo $ac_n "(cached) $ac_c" 1>&6
4445 cat > conftest.$ac_ext <<EOF
4446 #line 4447 "configure"
4447 #include "confdefs.h"
4448 /* System header to define __stub macros and hopefully few prototypes,
4449 which can conflict with char shl_load(); below. */
4451 /* Override any gcc2 internal prototype to avoid an error. */
4452 /* We use char because int might match the return type of a gcc2
4453 builtin and then its argument prototype would still apply. */
4458 /* The GNU C library defines this for functions which it implements
4459 to always fail with ENOSYS. Some functions are actually named
4460 something starting with __ and the normal name is an alias. */
4461 #if defined (__stub_shl_load) || defined (__stub___shl_load)
4469 if { (eval echo configure:4470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4471 eval "ac_cv_func_shl_load=yes"
4473 echo "configure: failed program was:" >&5
4474 cat conftest.$ac_ext >&5
4476 eval "ac_cv_func_shl_load=no"
4481 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
4482 echo "$ac_t""yes" 1>&6
4483 lt_cv_dlopen="shl_load"
4485 echo "$ac_t""no" 1>&6
4486 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
4487 echo "configure:4488: checking for shl_load in -ldld" >&5
4488 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
4489 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4490 echo $ac_n "(cached) $ac_c" 1>&6
4492 ac_save_LIBS="$LIBS"
4494 cat > conftest.$ac_ext <<EOF
4495 #line 4496 "configure"
4496 #include "confdefs.h"
4497 /* Override any gcc2 internal prototype to avoid an error. */
4498 /* We use char because int might match the return type of a gcc2
4499 builtin and then its argument prototype would still apply. */
4506 if { (eval echo configure:4507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4508 eval "ac_cv_lib_$ac_lib_var=yes"
4510 echo "configure: failed program was:" >&5
4511 cat conftest.$ac_ext >&5
4513 eval "ac_cv_lib_$ac_lib_var=no"
4516 LIBS="$ac_save_LIBS"
4519 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4520 echo "$ac_t""yes" 1>&6
4521 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
4523 echo "$ac_t""no" 1>&6
4524 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
4525 echo "configure:4526: checking for dlopen" >&5
4526 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
4527 echo $ac_n "(cached) $ac_c" 1>&6
4529 cat > conftest.$ac_ext <<EOF
4530 #line 4531 "configure"
4531 #include "confdefs.h"
4532 /* System header to define __stub macros and hopefully few prototypes,
4533 which can conflict with char dlopen(); below. */
4535 /* Override any gcc2 internal prototype to avoid an error. */
4536 /* We use char because int might match the return type of a gcc2
4537 builtin and then its argument prototype would still apply. */
4542 /* The GNU C library defines this for functions which it implements
4543 to always fail with ENOSYS. Some functions are actually named
4544 something starting with __ and the normal name is an alias. */
4545 #if defined (__stub_dlopen) || defined (__stub___dlopen)
4553 if { (eval echo configure:4554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4555 eval "ac_cv_func_dlopen=yes"
4557 echo "configure: failed program was:" >&5
4558 cat conftest.$ac_ext >&5
4560 eval "ac_cv_func_dlopen=no"
4565 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
4566 echo "$ac_t""yes" 1>&6
4567 lt_cv_dlopen="dlopen"
4569 echo "$ac_t""no" 1>&6
4570 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4571 echo "configure:4572: checking for dlopen in -ldl" >&5
4572 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4573 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4574 echo $ac_n "(cached) $ac_c" 1>&6
4576 ac_save_LIBS="$LIBS"
4578 cat > conftest.$ac_ext <<EOF
4579 #line 4580 "configure"
4580 #include "confdefs.h"
4581 /* Override any gcc2 internal prototype to avoid an error. */
4582 /* We use char because int might match the return type of a gcc2
4583 builtin and then its argument prototype would still apply. */
4590 if { (eval echo configure:4591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4592 eval "ac_cv_lib_$ac_lib_var=yes"
4594 echo "configure: failed program was:" >&5
4595 cat conftest.$ac_ext >&5
4597 eval "ac_cv_lib_$ac_lib_var=no"
4600 LIBS="$ac_save_LIBS"
4603 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4604 echo "$ac_t""yes" 1>&6
4605 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
4607 echo "$ac_t""no" 1>&6
4608 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
4609 echo "configure:4610: checking for dlopen in -lsvld" >&5
4610 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
4611 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4612 echo $ac_n "(cached) $ac_c" 1>&6
4614 ac_save_LIBS="$LIBS"
4616 cat > conftest.$ac_ext <<EOF
4617 #line 4618 "configure"
4618 #include "confdefs.h"
4619 /* Override any gcc2 internal prototype to avoid an error. */
4620 /* We use char because int might match the return type of a gcc2
4621 builtin and then its argument prototype would still apply. */
4628 if { (eval echo configure:4629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4630 eval "ac_cv_lib_$ac_lib_var=yes"
4632 echo "configure: failed program was:" >&5
4633 cat conftest.$ac_ext >&5
4635 eval "ac_cv_lib_$ac_lib_var=no"
4638 LIBS="$ac_save_LIBS"
4641 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4642 echo "$ac_t""yes" 1>&6
4643 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
4645 echo "$ac_t""no" 1>&6
4646 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
4647 echo "configure:4648: checking for dld_link in -ldld" >&5
4648 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
4649 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4650 echo $ac_n "(cached) $ac_c" 1>&6
4652 ac_save_LIBS="$LIBS"
4654 cat > conftest.$ac_ext <<EOF
4655 #line 4656 "configure"
4656 #include "confdefs.h"
4657 /* Override any gcc2 internal prototype to avoid an error. */
4658 /* We use char because int might match the return type of a gcc2
4659 builtin and then its argument prototype would still apply. */
4666 if { (eval echo configure:4667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4668 eval "ac_cv_lib_$ac_lib_var=yes"
4670 echo "configure: failed program was:" >&5
4671 cat conftest.$ac_ext >&5
4673 eval "ac_cv_lib_$ac_lib_var=no"
4676 LIBS="$ac_save_LIBS"
4679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4680 echo "$ac_t""yes" 1>&6
4681 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
4683 echo "$ac_t""no" 1>&6
4704 if test "x$lt_cv_dlopen" != xno; then
4710 case $lt_cv_dlopen in
4712 save_CPPFLAGS="$CPPFLAGS"
4713 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
4715 save_LDFLAGS="$LDFLAGS"
4716 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
4719 LIBS="$lt_cv_dlopen_libs $LIBS"
4721 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
4722 echo "configure:4723: checking whether a program can dlopen itself" >&5
4723 if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
4724 echo $ac_n "(cached) $ac_c" 1>&6
4726 if test "$cross_compiling" = yes; then :
4727 lt_cv_dlopen_self=cross
4729 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4730 lt_status=$lt_dlunknown
4731 cat > conftest.$ac_ext <<EOF
4732 #line 4733 "configure"
4733 #include "confdefs.h"
4742 # define LT_DLGLOBAL RTLD_GLOBAL
4745 # define LT_DLGLOBAL DL_GLOBAL
4747 # define LT_DLGLOBAL 0
4751 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4752 find out it does not work in some platform. */
4753 #ifndef LT_DLLAZY_OR_NOW
4755 # define LT_DLLAZY_OR_NOW RTLD_LAZY
4758 # define LT_DLLAZY_OR_NOW DL_LAZY
4761 # define LT_DLLAZY_OR_NOW RTLD_NOW
4764 # define LT_DLLAZY_OR_NOW DL_NOW
4766 # define LT_DLLAZY_OR_NOW 0
4774 extern "C" void exit (int);
4777 void fnord() { int i=42;}
4780 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4781 int status = $lt_dlunknown;
4785 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
4786 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4787 /* dlclose (self); */
4793 if { (eval echo configure:4794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4794 (./conftest; exit; ) 2>/dev/null
4797 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
4798 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
4799 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
4802 # compilation failed
4803 lt_cv_dlopen_self=no
4811 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
4813 if test "x$lt_cv_dlopen_self" = xyes; then
4814 LDFLAGS="$LDFLAGS $link_static_flag"
4815 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
4816 echo "configure:4817: checking whether a statically linked program can dlopen itself" >&5
4817 if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
4818 echo $ac_n "(cached) $ac_c" 1>&6
4820 if test "$cross_compiling" = yes; then :
4821 lt_cv_dlopen_self_static=cross
4823 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4824 lt_status=$lt_dlunknown
4825 cat > conftest.$ac_ext <<EOF
4826 #line 4827 "configure"
4827 #include "confdefs.h"
4836 # define LT_DLGLOBAL RTLD_GLOBAL
4839 # define LT_DLGLOBAL DL_GLOBAL
4841 # define LT_DLGLOBAL 0
4845 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4846 find out it does not work in some platform. */
4847 #ifndef LT_DLLAZY_OR_NOW
4849 # define LT_DLLAZY_OR_NOW RTLD_LAZY
4852 # define LT_DLLAZY_OR_NOW DL_LAZY
4855 # define LT_DLLAZY_OR_NOW RTLD_NOW
4858 # define LT_DLLAZY_OR_NOW DL_NOW
4860 # define LT_DLLAZY_OR_NOW 0