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-optimizations turn on compiler optimizations (recommended for avi2swf)"
21 --disable-mp3 don't compile any mp3 code in"
23 --enable-shared[=PKGS] build shared libraries [default=yes]"
25 --enable-static[=PKGS] build static libraries [default=yes]"
27 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
29 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
31 # Find the correct PATH separator. Usually this is `:', but
32 # DJGPP uses `;' like DOS.
33 if test "X${PATH_SEPARATOR+set}" != Xset; then
34 UNAME=${UNAME-`uname 2>/dev/null`}
36 *-DOS) lt_cv_sys_path_separator=';' ;;
37 *) lt_cv_sys_path_separator=':' ;;
39 PATH_SEPARATOR=$lt_cv_sys_path_separator
43 # Check that we are running under the correct shell.
44 SHELL=${CONFIG_SHELL-/bin/sh}
48 # Remove one level of quotation (which was required for Make).
49 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
54 if test "X$1" = X--no-reexec; then
55 # Discard the --no-reexec flag, and continue.
57 elif test "X$1" = X--fallback-echo; then
58 # Avoid inline document here, it may be left over
60 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
61 # Yippee, $echo works!
64 # Restart under the correct shell.
65 exec $SHELL "$0" --no-reexec ${1+"$@"}
68 if test "X$1" = X--fallback-echo; then
69 # used as fallback echo
77 # The HP-UX ksh and POSIX shell print the target directory to stdout
79 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
81 if test -z "$ECHO"; then
82 if test "X${echo_test_string+set}" != Xset; then
83 # find a string as large as possible, as long as the shell can cope with it
84 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
85 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
86 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
87 echo_test_string="`eval $cmd`" &&
88 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
95 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
96 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
97 test "X$echo_testing_string" = "X$echo_test_string"; then
100 # The Solaris, AIX, and Digital Unix default echo programs unquote
101 # backslashes. This makes it impossible to quote backslashes using
102 # echo "$something" | sed 's/\\/\\\\/g'
104 # So, first we look for a working echo in the user's PATH.
106 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
107 for dir in $PATH /usr/ucb; do
108 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
109 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
110 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
111 test "X$echo_testing_string" = "X$echo_test_string"; then
118 if test "X$echo" = Xecho; then
119 # We didn't find a better echo, so look for alternatives.
120 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
121 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
122 test "X$echo_testing_string" = "X$echo_test_string"; then
123 # This shell has a builtin print -r that does the trick.
125 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
126 test "X$CONFIG_SHELL" != X/bin/ksh; then
127 # If we have ksh, try running configure again with it.
128 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
129 export ORIGINAL_CONFIG_SHELL
130 CONFIG_SHELL=/bin/ksh
132 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
136 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
137 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
138 test "X$echo_testing_string" = "X$echo_test_string"; then
141 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
142 test "X$echo_testing_string" = 'X\t' &&
143 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
144 test "X$echo_testing_string" = "X$echo_test_string"; then
145 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
147 SHELL="$CONFIG_SHELL"
149 echo="$CONFIG_SHELL $0 --fallback-echo"
150 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
151 test "X$echo_testing_string" = 'X\t' &&
152 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
153 test "X$echo_testing_string" = "X$echo_test_string"; then
154 echo="$CONFIG_SHELL $0 --fallback-echo"
156 # maybe with a smaller string...
159 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
160 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
167 if test "$prev" != 'sed 50q "$0"'; then
168 echo_test_string=`eval $prev`
169 export echo_test_string
170 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
172 # Oops. We lost completely, so just stick with echo.
181 # Copy echo and quote the copy suitably for passing to libtool from
182 # the Makefile, instead of quoting the original, which is used later.
184 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
185 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
190 --disable-libtool-lock avoid locking (might break parallel builds)"
192 --with-pic try to use only PIC/non-PIC objects [default=use both]"
194 # Initialize some variables set by options.
195 # The variables have the same names as the options, with
196 # dashes changed to underlines.
198 cache_file=./config.cache
207 program_transform_name=s,x,x,
215 bindir='${exec_prefix}/bin'
216 sbindir='${exec_prefix}/sbin'
217 libexecdir='${exec_prefix}/libexec'
218 datadir='${prefix}/share'
219 sysconfdir='${prefix}/etc'
220 sharedstatedir='${prefix}/com'
221 localstatedir='${prefix}/var'
222 libdir='${exec_prefix}/lib'
223 includedir='${prefix}/include'
224 oldincludedir='/usr/include'
225 infodir='${prefix}/info'
226 mandir='${prefix}/man'
228 # Initialize some other variables.
231 SHELL=${CONFIG_SHELL-/bin/sh}
232 # Maximum number of lines to put in a shell here document.
239 # If the previous option needs an argument, assign it.
240 if test -n "$ac_prev"; then
241 eval "$ac_prev=\$ac_option"
247 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
251 # Accept the important Cygnus configure options, so we can diagnose typos.
255 -bindir | --bindir | --bindi | --bind | --bin | --bi)
257 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
258 bindir="$ac_optarg" ;;
260 -build | --build | --buil | --bui | --bu)
262 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
263 build="$ac_optarg" ;;
265 -cache-file | --cache-file | --cache-fil | --cache-fi \
266 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
267 ac_prev=cache_file ;;
268 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
269 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
270 cache_file="$ac_optarg" ;;
272 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
274 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
276 datadir="$ac_optarg" ;;
278 -disable-* | --disable-*)
279 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
280 # Reject names that are not valid shell variable names.
281 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
282 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
284 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
285 eval "enable_${ac_feature}=no" ;;
287 -enable-* | --enable-*)
288 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
289 # Reject names that are not valid shell variable names.
290 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
291 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
293 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
298 eval "enable_${ac_feature}='$ac_optarg'" ;;
300 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
301 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
302 | --exec | --exe | --ex)
303 ac_prev=exec_prefix ;;
304 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
305 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
306 | --exec=* | --exe=* | --ex=*)
307 exec_prefix="$ac_optarg" ;;
309 -gas | --gas | --ga | --g)
310 # Obsolete; use --with-gas.
313 -help | --help | --hel | --he)
314 # Omit some internal or obsolete options to make the list less imposing.
315 # This message is too long to be a string in the A/UX 3.1 sh.
317 Usage: configure [options] [host]
318 Options: [defaults in brackets after descriptions]
320 --cache-file=FILE cache test results in FILE
321 --help print this message
322 --no-create do not create output files
323 --quiet, --silent do not print \`checking...' messages
324 --version print the version of autoconf that created configure
325 Directory and file names:
326 --prefix=PREFIX install architecture-independent files in PREFIX
328 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
330 --bindir=DIR user executables in DIR [EPREFIX/bin]
331 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
332 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
333 --datadir=DIR read-only architecture-independent data in DIR
335 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
336 --sharedstatedir=DIR modifiable architecture-independent data in DIR
338 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
339 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
340 --includedir=DIR C header files in DIR [PREFIX/include]
341 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
342 --infodir=DIR info documentation in DIR [PREFIX/info]
343 --mandir=DIR man documentation in DIR [PREFIX/man]
344 --srcdir=DIR find the sources in DIR [configure dir or ..]
345 --program-prefix=PREFIX prepend PREFIX to installed program names
346 --program-suffix=SUFFIX append SUFFIX to installed program names
347 --program-transform-name=PROGRAM
348 run sed PROGRAM on installed program names
352 --build=BUILD configure for building on BUILD [BUILD=HOST]
353 --host=HOST configure for HOST [guessed]
354 --target=TARGET configure for TARGET [TARGET=HOST]
355 Features and packages:
356 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
357 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
358 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
359 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
360 --x-includes=DIR X include files are in DIR
361 --x-libraries=DIR X library files are in DIR
363 if test -n "$ac_help"; then
364 echo "--enable and --with options recognized:$ac_help"
368 -host | --host | --hos | --ho)
370 -host=* | --host=* | --hos=* | --ho=*)
373 -includedir | --includedir | --includedi | --included | --include \
374 | --includ | --inclu | --incl | --inc)
375 ac_prev=includedir ;;
376 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
377 | --includ=* | --inclu=* | --incl=* | --inc=*)
378 includedir="$ac_optarg" ;;
380 -infodir | --infodir | --infodi | --infod | --info | --inf)
382 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
383 infodir="$ac_optarg" ;;
385 -libdir | --libdir | --libdi | --libd)
387 -libdir=* | --libdir=* | --libdi=* | --libd=*)
388 libdir="$ac_optarg" ;;
390 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
391 | --libexe | --libex | --libe)
392 ac_prev=libexecdir ;;
393 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
394 | --libexe=* | --libex=* | --libe=*)
395 libexecdir="$ac_optarg" ;;
397 -localstatedir | --localstatedir | --localstatedi | --localstated \
398 | --localstate | --localstat | --localsta | --localst \
399 | --locals | --local | --loca | --loc | --lo)
400 ac_prev=localstatedir ;;
401 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
402 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
403 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
404 localstatedir="$ac_optarg" ;;
406 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
408 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
409 mandir="$ac_optarg" ;;
412 # Obsolete; use --without-fp.
415 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
419 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
420 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
423 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
424 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
425 | --oldin | --oldi | --old | --ol | --o)
426 ac_prev=oldincludedir ;;
427 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
428 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
429 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
430 oldincludedir="$ac_optarg" ;;
432 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
434 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
435 prefix="$ac_optarg" ;;
437 -program-prefix | --program-prefix | --program-prefi | --program-pref \
438 | --program-pre | --program-pr | --program-p)
439 ac_prev=program_prefix ;;
440 -program-prefix=* | --program-prefix=* | --program-prefi=* \
441 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
442 program_prefix="$ac_optarg" ;;
444 -program-suffix | --program-suffix | --program-suffi | --program-suff \
445 | --program-suf | --program-su | --program-s)
446 ac_prev=program_suffix ;;
447 -program-suffix=* | --program-suffix=* | --program-suffi=* \
448 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
449 program_suffix="$ac_optarg" ;;
451 -program-transform-name | --program-transform-name \
452 | --program-transform-nam | --program-transform-na \
453 | --program-transform-n | --program-transform- \
454 | --program-transform | --program-transfor \
455 | --program-transfo | --program-transf \
456 | --program-trans | --program-tran \
457 | --progr-tra | --program-tr | --program-t)
458 ac_prev=program_transform_name ;;
459 -program-transform-name=* | --program-transform-name=* \
460 | --program-transform-nam=* | --program-transform-na=* \
461 | --program-transform-n=* | --program-transform-=* \
462 | --program-transform=* | --program-transfor=* \
463 | --program-transfo=* | --program-transf=* \
464 | --program-trans=* | --program-tran=* \
465 | --progr-tra=* | --program-tr=* | --program-t=*)
466 program_transform_name="$ac_optarg" ;;
468 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
469 | -silent | --silent | --silen | --sile | --sil)
472 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
474 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
476 sbindir="$ac_optarg" ;;
478 -sharedstatedir | --sharedstatedir | --sharedstatedi \
479 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
480 | --sharedst | --shareds | --shared | --share | --shar \
482 ac_prev=sharedstatedir ;;
483 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
484 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
485 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
487 sharedstatedir="$ac_optarg" ;;
489 -site | --site | --sit)
491 -site=* | --site=* | --sit=*)
494 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
496 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
497 srcdir="$ac_optarg" ;;
499 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
500 | --syscon | --sysco | --sysc | --sys | --sy)
501 ac_prev=sysconfdir ;;
502 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
503 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
504 sysconfdir="$ac_optarg" ;;
506 -target | --target | --targe | --targ | --tar | --ta | --t)
508 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
509 target="$ac_optarg" ;;
511 -v | -verbose | --verbose | --verbos | --verbo | --verb)
514 -version | --version | --versio | --versi | --vers)
515 echo "configure generated by autoconf version 2.13"
519 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
520 # Reject names that are not valid shell variable names.
521 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
522 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
524 ac_package=`echo $ac_package| sed 's/-/_/g'`
529 eval "with_${ac_package}='$ac_optarg'" ;;
531 -without-* | --without-*)
532 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
533 # Reject names that are not valid shell variable names.
534 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
535 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
537 ac_package=`echo $ac_package| sed 's/-/_/g'`
538 eval "with_${ac_package}=no" ;;
541 # Obsolete; use --with-x.
544 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
545 | --x-incl | --x-inc | --x-in | --x-i)
546 ac_prev=x_includes ;;
547 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
548 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
549 x_includes="$ac_optarg" ;;
551 -x-libraries | --x-libraries | --x-librarie | --x-librari \
552 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
553 ac_prev=x_libraries ;;
554 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
555 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
556 x_libraries="$ac_optarg" ;;
558 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
562 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
563 echo "configure: warning: $ac_option: invalid host type" 1>&2
565 if test "x$nonopt" != xNONE; then
566 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
574 if test -n "$ac_prev"; then
575 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
578 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
580 # File descriptor usage:
583 # 2 errors and warnings
584 # 3 some systems may open it to /dev/tty
585 # 4 used on the Kubota Titan
586 # 6 checking for... messages and results
587 # 5 compiler messages saved in config.log
588 if test "$silent" = yes; then
596 This file contains any messages produced by compilers while
597 running configure, to aid debugging if configure makes a mistake.
600 # Strip out --no-create and --no-recursion so they do not pile up.
601 # Also quote any args containing shell metacharacters.
606 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
607 | --no-cr | --no-c) ;;
608 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
609 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
610 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
611 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
612 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
617 # Only set these to C if already set. These must not be set unconditionally
618 # because not all systems understand e.g. LANG=C (notably SCO).
619 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
620 # Non-C LC_CTYPE values break the ctype check.
621 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
622 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
623 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
624 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
626 # confdefs.h avoids OS command line length limits that DEFS can exceed.
627 rm -rf conftest* confdefs.h
628 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
631 # A filename unique to this package, relative to the directory that
632 # configure is in, which we can look for to find out if srcdir is correct.
635 # Find the source files, if location was not specified.
636 if test -z "$srcdir"; then
637 ac_srcdir_defaulted=yes
638 # Try the directory containing this script, then its parent.
640 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
641 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
643 if test ! -r $srcdir/$ac_unique_file; then
647 ac_srcdir_defaulted=no
649 if test ! -r $srcdir/$ac_unique_file; then
650 if test "$ac_srcdir_defaulted" = yes; then
651 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
653 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
656 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
658 # Prefer explicitly selected file to automatically selected ones.
659 if test -z "$CONFIG_SITE"; then
660 if test "x$prefix" != xNONE; then
661 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
663 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
666 for ac_site_file in $CONFIG_SITE; do
667 if test -r "$ac_site_file"; then
668 echo "loading site script $ac_site_file"
673 if test -r "$cache_file"; then
674 echo "loading cache $cache_file"
677 echo "creating cache $cache_file"
682 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
683 ac_cpp='$CPP $CPPFLAGS'
684 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
685 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
686 cross_compiling=$ac_cv_prog_cc_cross
690 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
691 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
692 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
699 ac_n= ac_c='\c' ac_t=
704 # Check whether --enable-checkmem or --disable-checkmem was given.
705 if test "${enable_checkmem+set}" = set; then
706 enableval="$enable_checkmem"
710 # Check whether --enable-debug or --disable-debug was given.
711 if test "${enable_debug+set}" = set; then
712 enableval="$enable_debug"
716 # Check whether --enable-optimizations or --disable-optimizations was given.
717 if test "${enable_optimizations+set}" = set; then
718 enableval="$enable_optimizations"
722 # Check whether --enable-mp3 or --disable-mp3 was given.
723 if test "${enable_mp3+set}" = set; then
724 enableval="$enable_mp3"
730 VERSION=2004-02-01-1614
737 if test "x$CHECKMEM" '!=' "x";then
740 if test "x$DEBUG" '!=' "x";then
741 CFLAGS="-Wparentheses -Wimplicit -Wreturn-type -g $CFLAGS"
742 CXXFLAGS="-Wparentheses -Wimplicit -Wreturn-type -g $CXXFLAGS"
743 STRIP="@echo debug enabled, not stripping "
746 else if test "x$OPTIMIZE" '!=' "x"; then
747 CFLAGS="-Wparentheses -Wimplicit -Wreturn-type -Winline -O3 -fomit-frame-pointer $CFLAGS"
748 CXXFLAGS="-Wparentheses -Wimplicit -Wreturn-type -Winline -O3 -fomit-frame-pointer $CXXFLAGS"
750 CFLAGS="-Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer $CFLAGS"
751 CXXFLAGS="-Wparentheses -Wimplicit -Wreturn-type -O -fomit-frame-pointer $CXXFLAGS"
755 #if test "x$OLDGCC" '!=' "x";then
756 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
757 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
758 # CFLAGS="$CFLAGS -ansi -pendantic"
759 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
762 export PACKAGE VERSION CFLAGS CXXFLAGS
765 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
766 if test -f $ac_dir/install-sh; then
768 ac_install_sh="$ac_aux_dir/install-sh -c"
770 elif test -f $ac_dir/install.sh; then
772 ac_install_sh="$ac_aux_dir/install.sh -c"
776 if test -z "$ac_aux_dir"; then
777 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
779 ac_config_guess=$ac_aux_dir/config.guess
780 ac_config_sub=$ac_aux_dir/config.sub
781 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
784 # Make sure we can run config.sub.
785 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
786 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
789 echo $ac_n "checking host system type""... $ac_c" 1>&6
790 echo "configure:791: checking host system type" >&5
793 case "$host_alias" in
797 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
798 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
800 *) host_alias=$nonopt ;;
804 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
805 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
806 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
807 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
808 echo "$ac_t""$host" 1>&6
814 CFLAGS="$CFLAGS -fno-rtti"
815 CXXFLAGS="$CXXFLAGS -fno-rtti"
818 # Extract the first word of "gcc", so it can be a program name with args.
819 set dummy gcc; ac_word=$2
820 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
821 echo "configure:822: checking for $ac_word" >&5
822 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
823 echo $ac_n "(cached) $ac_c" 1>&6
825 if test -n "$CC"; then
826 ac_cv_prog_CC="$CC" # Let the user override the test.
828 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
830 for ac_dir in $ac_dummy; do
831 test -z "$ac_dir" && ac_dir=.
832 if test -f $ac_dir/$ac_word; then
841 if test -n "$CC"; then
842 echo "$ac_t""$CC" 1>&6
844 echo "$ac_t""no" 1>&6
847 if test -z "$CC"; then
848 # Extract the first word of "cc", so it can be a program name with args.
849 set dummy cc; ac_word=$2
850 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
851 echo "configure:852: checking for $ac_word" >&5
852 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
853 echo $ac_n "(cached) $ac_c" 1>&6
855 if test -n "$CC"; then
856 ac_cv_prog_CC="$CC" # Let the user override the test.
858 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
861 for ac_dir in $ac_dummy; do
862 test -z "$ac_dir" && ac_dir=.
863 if test -f $ac_dir/$ac_word; then
864 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
873 if test $ac_prog_rejected = yes; then
874 # We found a bogon in the path, so make sure we never use it.
875 set dummy $ac_cv_prog_CC
877 if test $# -gt 0; then
878 # We chose a different compiler from the bogus one.
879 # However, it has the same basename, so the bogon will be chosen
880 # first if we set CC to just the basename; use the full file name.
882 set dummy "$ac_dir/$ac_word" "$@"
890 if test -n "$CC"; then
891 echo "$ac_t""$CC" 1>&6
893 echo "$ac_t""no" 1>&6
896 if test -z "$CC"; then
899 # Extract the first word of "cl", so it can be a program name with args.
900 set dummy cl; ac_word=$2
901 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
902 echo "configure:903: checking for $ac_word" >&5
903 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
904 echo $ac_n "(cached) $ac_c" 1>&6
906 if test -n "$CC"; then
907 ac_cv_prog_CC="$CC" # Let the user override the test.
909 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
911 for ac_dir in $ac_dummy; do
912 test -z "$ac_dir" && ac_dir=.
913 if test -f $ac_dir/$ac_word; then
922 if test -n "$CC"; then
923 echo "$ac_t""$CC" 1>&6
925 echo "$ac_t""no" 1>&6
930 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
933 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
934 echo "configure:935: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
937 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
938 ac_cpp='$CPP $CPPFLAGS'
939 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
940 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
941 cross_compiling=$ac_cv_prog_cc_cross
943 cat > conftest.$ac_ext << EOF
945 #line 946 "configure"
946 #include "confdefs.h"
950 if { (eval echo configure:951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
951 ac_cv_prog_cc_works=yes
952 # If we can't run a trivial program, we are probably using a cross compiler.
953 if (./conftest; exit) 2>/dev/null; then
954 ac_cv_prog_cc_cross=no
956 ac_cv_prog_cc_cross=yes
959 echo "configure: failed program was:" >&5
960 cat conftest.$ac_ext >&5
961 ac_cv_prog_cc_works=no
965 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
966 ac_cpp='$CPP $CPPFLAGS'
967 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
968 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
969 cross_compiling=$ac_cv_prog_cc_cross
971 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
972 if test $ac_cv_prog_cc_works = no; then
973 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
975 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
976 echo "configure:977: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
977 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
978 cross_compiling=$ac_cv_prog_cc_cross
980 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
981 echo "configure:982: checking whether we are using GNU C" >&5
982 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
983 echo $ac_n "(cached) $ac_c" 1>&6
985 cat > conftest.c <<EOF
990 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
997 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
999 if test $ac_cv_prog_gcc = yes; then
1005 ac_test_CFLAGS="${CFLAGS+set}"
1006 ac_save_CFLAGS="$CFLAGS"
1008 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1009 echo "configure:1010: checking whether ${CC-cc} accepts -g" >&5
1010 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1011 echo $ac_n "(cached) $ac_c" 1>&6
1013 echo 'void f(){}' > conftest.c
1014 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1023 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1024 if test "$ac_test_CFLAGS" = set; then
1025 CFLAGS="$ac_save_CFLAGS"
1026 elif test $ac_cv_prog_cc_g = yes; then
1027 if test "$GCC" = yes; then
1033 if test "$GCC" = yes; then
1040 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1042 # Extract the first word of "$ac_prog", so it can be a program name with args.
1043 set dummy $ac_prog; ac_word=$2
1044 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1045 echo "configure:1046: checking for $ac_word" >&5
1046 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1047 echo $ac_n "(cached) $ac_c" 1>&6
1049 if test -n "$CXX"; then
1050 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1052 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1054 for ac_dir in $ac_dummy; do
1055 test -z "$ac_dir" && ac_dir=.
1056 if test -f $ac_dir/$ac_word; then
1057 ac_cv_prog_CXX="$ac_prog"
1064 CXX="$ac_cv_prog_CXX"
1065 if test -n "$CXX"; then
1066 echo "$ac_t""$CXX" 1>&6
1068 echo "$ac_t""no" 1>&6
1071 test -n "$CXX" && break
1073 test -n "$CXX" || CXX="gcc"
1076 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1077 echo "configure:1078: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1080 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1081 ac_cpp='$CXXCPP $CPPFLAGS'
1082 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1083 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1084 cross_compiling=$ac_cv_prog_cxx_cross
1086 cat > conftest.$ac_ext << EOF
1088 #line 1089 "configure"
1089 #include "confdefs.h"
1091 int main(){return(0);}
1093 if { (eval echo configure:1094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1094 ac_cv_prog_cxx_works=yes
1095 # If we can't run a trivial program, we are probably using a cross compiler.
1096 if (./conftest; exit) 2>/dev/null; then
1097 ac_cv_prog_cxx_cross=no
1099 ac_cv_prog_cxx_cross=yes
1102 echo "configure: failed program was:" >&5
1103 cat conftest.$ac_ext >&5
1104 ac_cv_prog_cxx_works=no
1108 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1109 ac_cpp='$CPP $CPPFLAGS'
1110 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1111 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1112 cross_compiling=$ac_cv_prog_cc_cross
1114 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1115 if test $ac_cv_prog_cxx_works = no; then
1116 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1118 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1119 echo "configure:1120: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1120 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1121 cross_compiling=$ac_cv_prog_cxx_cross
1123 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1124 echo "configure:1125: checking whether we are using GNU C++" >&5
1125 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1126 echo $ac_n "(cached) $ac_c" 1>&6
1128 cat > conftest.C <<EOF
1133 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1140 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1142 if test $ac_cv_prog_gxx = yes; then
1148 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1149 ac_save_CXXFLAGS="$CXXFLAGS"
1151 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1152 echo "configure:1153: checking whether ${CXX-g++} accepts -g" >&5
1153 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1154 echo $ac_n "(cached) $ac_c" 1>&6
1156 echo 'void f(){}' > conftest.cc
1157 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1158 ac_cv_prog_cxx_g=yes
1166 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1167 if test "$ac_test_CXXFLAGS" = set; then
1168 CXXFLAGS="$ac_save_CXXFLAGS"
1169 elif test $ac_cv_prog_cxx_g = yes; then
1170 if test "$GXX" = yes; then
1176 if test "$GXX" = yes; then
1184 if test "x$CHECKMEM" '!=' "x";then
1188 #unset ac_cv_prog_CC
1189 #unset ac_cv_prog_CXX
1193 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1194 echo "configure:1195: checking how to run the C preprocessor" >&5
1195 # On Suns, sometimes $CPP names a directory.
1196 if test -n "$CPP" && test -d "$CPP"; then
1199 if test -z "$CPP"; then
1200 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1201 echo $ac_n "(cached) $ac_c" 1>&6
1203 # This must be in double quotes, not single quotes, because CPP may get
1204 # substituted into the Makefile and "${CC-cc}" will confuse make.
1206 # On the NeXT, cc -E runs the code through the compiler's parser,
1207 # not just through cpp.
1208 cat > conftest.$ac_ext <<EOF
1209 #line 1210 "configure"
1210 #include "confdefs.h"
1214 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1215 { (eval echo configure:1216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1216 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1217 if test -z "$ac_err"; then
1221 echo "configure: failed program was:" >&5
1222 cat conftest.$ac_ext >&5
1224 CPP="${CC-cc} -E -traditional-cpp"
1225 cat > conftest.$ac_ext <<EOF
1226 #line 1227 "configure"
1227 #include "confdefs.h"
1231 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1232 { (eval echo configure:1233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1233 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1234 if test -z "$ac_err"; then
1238 echo "configure: failed program was:" >&5
1239 cat conftest.$ac_ext >&5
1241 CPP="${CC-cc} -nologo -E"
1242 cat > conftest.$ac_ext <<EOF
1243 #line 1244 "configure"
1244 #include "confdefs.h"
1248 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1249 { (eval echo configure:1250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1250 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1251 if test -z "$ac_err"; then
1255 echo "configure: failed program was:" >&5
1256 cat conftest.$ac_ext >&5
1265 ac_cv_prog_CPP="$CPP"
1267 CPP="$ac_cv_prog_CPP"
1269 ac_cv_prog_CPP="$CPP"
1271 echo "$ac_t""$CPP" 1>&6
1274 # Extract the first word of "ranlib", so it can be a program name with args.
1275 set dummy ranlib; ac_word=$2
1276 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1277 echo "configure:1278: checking for $ac_word" >&5
1278 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1279 echo $ac_n "(cached) $ac_c" 1>&6
1281 if test -n "$RANLIB"; then
1282 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1284 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1286 for ac_dir in $ac_dummy; do
1287 test -z "$ac_dir" && ac_dir=.
1288 if test -f $ac_dir/$ac_word; then
1289 ac_cv_prog_RANLIB="ranlib"
1294 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1297 RANLIB="$ac_cv_prog_RANLIB"
1298 if test -n "$RANLIB"; then
1299 echo "$ac_t""$RANLIB" 1>&6
1301 echo "$ac_t""no" 1>&6
1304 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1305 echo "configure:1306: checking whether ${MAKE-make} sets \${MAKE}" >&5
1306 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1307 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1308 echo $ac_n "(cached) $ac_c" 1>&6
1310 cat > conftestmake <<\EOF
1312 @echo 'ac_maketemp="${MAKE}"'
1314 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1315 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1316 if test -n "$ac_maketemp"; then
1317 eval ac_cv_prog_make_${ac_make}_set=yes
1319 eval ac_cv_prog_make_${ac_make}_set=no
1323 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1324 echo "$ac_t""yes" 1>&6
1327 echo "$ac_t""no" 1>&6
1328 SET_MAKE="MAKE=${MAKE-make}"
1331 # Find a good install program. We prefer a C program (faster),
1332 # so one script is as good as another. But avoid the broken or
1333 # incompatible versions:
1334 # SysV /etc/install, /usr/sbin/install
1335 # SunOS /usr/etc/install
1336 # IRIX /sbin/install
1338 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1339 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1340 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1341 # ./install, which can be erroneously created by make from ./install.sh.
1342 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1343 echo "configure:1344: checking for a BSD compatible install" >&5
1344 if test -z "$INSTALL"; then
1345 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1346 echo $ac_n "(cached) $ac_c" 1>&6
1348 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1349 for ac_dir in $PATH; do
1350 # Account for people who put trailing slashes in PATH elements.
1352 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1354 # OSF1 and SCO ODT 3.0 have their own names for install.
1355 # Don't use installbsd from OSF since it installs stuff as root
1357 for ac_prog in ginstall scoinst install; do
1358 if test -f $ac_dir/$ac_prog; then
1359 if test $ac_prog = install &&
1360 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1361 # AIX install. It has an incompatible calling convention.
1364 ac_cv_path_install="$ac_dir/$ac_prog -c"
1375 if test "${ac_cv_path_install+set}" = set; then
1376 INSTALL="$ac_cv_path_install"
1378 # As a last resort, use the slow shell script. We don't cache a
1379 # path for INSTALL within a source directory, because that will
1380 # break other packages using the cache if that directory is
1381 # removed, or if the path is relative.
1382 INSTALL="$ac_install_sh"
1385 echo "$ac_t""$INSTALL" 1>&6
1387 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1388 # It thinks the first close brace ends the variable substitution.
1389 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1391 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1393 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1395 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1396 echo "configure:1397: checking whether ln -s works" >&5
1397 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1398 echo $ac_n "(cached) $ac_c" 1>&6
1401 if ln -s X conftestdata 2>/dev/null
1404 ac_cv_prog_LN_S="ln -s"
1409 LN_S="$ac_cv_prog_LN_S"
1410 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1411 echo "$ac_t""yes" 1>&6
1413 echo "$ac_t""no" 1>&6
1416 # Find the correct PATH separator. Usually this is `:', but
1417 # DJGPP uses `;' like DOS.
1418 if test "X${PATH_SEPARATOR+set}" != Xset; then
1419 UNAME=${UNAME-`uname 2>/dev/null`}
1421 *-DOS) lt_cv_sys_path_separator=';' ;;
1422 *) lt_cv_sys_path_separator=':' ;;
1424 PATH_SEPARATOR=$lt_cv_sys_path_separator
1427 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1428 echo "configure:1429: checking for Cygwin environment" >&5
1429 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1430 echo $ac_n "(cached) $ac_c" 1>&6
1432 cat > conftest.$ac_ext <<EOF
1433 #line 1434 "configure"
1434 #include "confdefs.h"
1439 #define __CYGWIN__ __CYGWIN32__
1444 if { (eval echo configure:1445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1448 echo "configure: failed program was:" >&5
1449 cat conftest.$ac_ext >&5
1457 echo "$ac_t""$ac_cv_cygwin" 1>&6
1459 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1460 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1461 echo "configure:1462: checking for mingw32 environment" >&5
1462 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1463 echo $ac_n "(cached) $ac_c" 1>&6
1465 cat > conftest.$ac_ext <<EOF
1466 #line 1467 "configure"
1467 #include "confdefs.h"
1473 if { (eval echo configure:1474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1477 echo "configure: failed program was:" >&5
1478 cat conftest.$ac_ext >&5
1486 echo "$ac_t""$ac_cv_mingw32" 1>&6
1488 test "$ac_cv_mingw32" = yes && MINGW32=yes
1489 # Check whether --enable-shared or --disable-shared was given.
1490 if test "${enable_shared+set}" = set; then
1491 enableval="$enable_shared"
1492 p=${PACKAGE-default}
1494 yes) enable_shared=yes ;;
1495 no) enable_shared=no ;;
1498 # Look at the argument we got. We use all the common list separators.
1499 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1500 for pkg in $enableval; do
1501 if test "X$pkg" = "X$p"; then
1512 # Check whether --enable-static or --disable-static was given.
1513 if test "${enable_static+set}" = set; then
1514 enableval="$enable_static"
1515 p=${PACKAGE-default}
1517 yes) enable_static=yes ;;
1518 no) enable_static=no ;;
1521 # Look at the argument we got. We use all the common list separators.
1522 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1523 for pkg in $enableval; do
1524 if test "X$pkg" = "X$p"; then
1535 # Check whether --enable-fast-install or --disable-fast-install was given.
1536 if test "${enable_fast_install+set}" = set; then
1537 enableval="$enable_fast_install"
1538 p=${PACKAGE-default}
1540 yes) enable_fast_install=yes ;;
1541 no) enable_fast_install=no ;;
1543 enable_fast_install=no
1544 # Look at the argument we got. We use all the common list separators.
1545 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1546 for pkg in $enableval; do
1547 if test "X$pkg" = "X$p"; then
1548 enable_fast_install=yes
1555 enable_fast_install=yes
1558 echo $ac_n "checking build system type""... $ac_c" 1>&6
1559 echo "configure:1560: checking build system type" >&5
1562 case "$build_alias" in
1565 NONE) build_alias=$host_alias ;;
1566 *) build_alias=$nonopt ;;
1570 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1571 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1572 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1573 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1574 echo "$ac_t""$build" 1>&6
1576 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1577 if test "${with_gnu_ld+set}" = set; then
1578 withval="$with_gnu_ld"
1579 test "$withval" = no || with_gnu_ld=yes
1585 if test "$GCC" = yes; then
1586 # Check if gcc -print-prog-name=ld gives a path.
1587 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1588 echo "configure:1589: checking for ld used by GCC" >&5
1591 # gcc leaves a trailing carriage return which upsets mingw
1592 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1594 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1597 # Accept absolute paths.
1598 [\\/]* | [A-Za-z]:[\\/]*)
1599 re_direlt='/[^/][^/]*/\.\./'
1600 # Canonicalize the path of ld
1601 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1602 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1603 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1605 test -z "$LD" && LD="$ac_prog"
1608 # If it fails, then pretend we aren't using GCC.
1612 # If it is relative, then search for the first ld in PATH.
1616 elif test "$with_gnu_ld" = yes; then
1617 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1618 echo "configure:1619: checking for GNU ld" >&5
1620 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1621 echo "configure:1622: checking for non-GNU ld" >&5
1623 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1624 echo $ac_n "(cached) $ac_c" 1>&6
1626 if test -z "$LD"; then
1627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1628 for ac_dir in $PATH; do
1629 test -z "$ac_dir" && ac_dir=.
1630 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1631 lt_cv_path_LD="$ac_dir/$ac_prog"
1632 # Check to see if the program is GNU ld. I'd rather use --version,
1633 # but apparently some GNU ld's only accept -v.
1634 # Break only if it was the GNU/non-GNU ld that we prefer.
1635 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1636 test "$with_gnu_ld" != no && break
1638 test "$with_gnu_ld" != yes && break
1644 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1649 if test -n "$LD"; then
1650 echo "$ac_t""$LD" 1>&6
1652 echo "$ac_t""no" 1>&6
1654 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1655 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1656 echo "configure:1657: checking if the linker ($LD) is GNU ld" >&5
1657 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1658 echo $ac_n "(cached) $ac_c" 1>&6
1660 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1661 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1662 lt_cv_prog_gnu_ld=yes
1664 lt_cv_prog_gnu_ld=no
1668 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1669 with_gnu_ld=$lt_cv_prog_gnu_ld
1672 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1673 echo "configure:1674: checking for $LD option to reload object files" >&5
1674 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1677 lt_cv_ld_reload_flag='-r'
1680 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1681 reload_flag=$lt_cv_ld_reload_flag
1682 test -n "$reload_flag" && reload_flag=" $reload_flag"
1684 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1685 echo "configure:1686: checking for BSD-compatible nm" >&5
1686 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1687 echo $ac_n "(cached) $ac_c" 1>&6
1689 if test -n "$NM"; then
1690 # Let the user override the test.
1693 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1694 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1695 test -z "$ac_dir" && ac_dir=.
1696 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1697 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1698 # Check to see if the nm accepts a BSD-compat flag.
1699 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1700 # nm: unknown option "B" ignored
1701 # Tru64's nm complains that /dev/null is an invalid object file
1702 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1703 lt_cv_path_NM="$tmp_nm -B"
1705 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1706 lt_cv_path_NM="$tmp_nm -p"
1709 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1710 continue # so that we can try to find one that supports BSD flags
1715 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1720 echo "$ac_t""$NM" 1>&6
1722 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
1723 echo "configure:1724: checking for a sed that does not truncate output" >&5
1724 if eval "test \"`echo '$''{'lt_cv_path_SED'+set}'`\" = set"; then
1725 echo $ac_n "(cached) $ac_c" 1>&6
1727 # Loop through the user's path and test for sed and gsed.
1728 # Then use that list of sed's as ones to test for truncation.
1729 as_executable_p="test -f"
1730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1734 test -z "$as_dir" && as_dir=.
1735 for ac_prog in sed gsed; do
1736 for ac_exec_ext in '' $ac_executable_extensions; do
1737 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1738 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
1744 # Create a temporary directory, and hook for its removal unless debugging.
1747 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
1748 trap '{ (exit 1); exit 1; }' 1 2 13 15
1751 # Create a (secure) tmp directory for tmp files.
1754 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
1755 test -n "$tmp" && test -d "$tmp"
1758 tmp=$TMPDIR/sed$$-$RANDOM
1759 (umask 077 && mkdir $tmp)
1762 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
1763 { (exit 1); exit 1; }
1767 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
1768 # along with /bin/sed that truncates output.
1769 for _sed in $_sed_list /usr/xpg4/bin/sed; do
1770 test ! -f ${_sed} && break
1771 cat /dev/null > "$tmp/sed.in"
1773 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
1774 # Check for GNU sed and select it if it is found.
1775 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
1776 lt_cv_path_SED=${_sed}
1780 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
1781 mv "$tmp/sed.tmp" "$tmp/sed.in"
1782 cp "$tmp/sed.in" "$tmp/sed.nl"
1783 echo >>"$tmp/sed.nl"
1784 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
1785 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
1786 # 40000 chars as input seems more than enough
1787 test $_count -gt 10 && break
1788 _count=`expr $_count + 1`
1789 if test $_count -gt $_max; then
1791 lt_cv_path_SED=$_sed
1799 if test "X$SED" != "X"; then
1804 echo "$ac_t""$SED" 1>&6
1806 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
1807 echo "configure:1808: checking how to recognise dependent libraries" >&5
1808 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1809 echo $ac_n "(cached) $ac_c" 1>&6
1811 lt_cv_file_magic_cmd='$MAGIC_CMD'
1812 lt_cv_file_magic_test_file=
1813 lt_cv_deplibs_check_method='unknown'
1814 # Need to set the preceding variable on all platforms that support
1815 # interlibrary dependencies.
1816 # 'none' -- dependencies not supported.
1817 # `unknown' -- same as none, but documents that we really don't know.
1818 # 'pass_all' -- all dependencies passed with no checks.
1819 # 'test_compile' -- check by making test program.
1820 # 'file_magic [[regex]]' -- check by looking for files in library path
1821 # which responds to the $file_magic_cmd with a given egrep regex.
1822 # If you have `file' or equivalent on your system and you're not sure
1823 # whether `pass_all' will *always* work, you probably want this one.
1827 lt_cv_deplibs_check_method=pass_all
1831 lt_cv_deplibs_check_method=pass_all
1835 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1836 lt_cv_file_magic_cmd='/usr/bin/file -L'
1837 lt_cv_file_magic_test_file=/shlib/libc.so
1840 cygwin* | mingw* | pw32*)
1841 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1842 lt_cv_file_magic_cmd='$OBJDUMP -f'
1845 darwin* | rhapsody*)
1846 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1847 lt_cv_file_magic_cmd='/usr/bin/file -L'
1849 rhapsody* | darwin1.[012])
1850 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
1853 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1859 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1862 # Not sure whether the presence of OpenBSD here was a mistake.
1863 # Let's accept both of them until this is cleared up.
1864 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1865 lt_cv_file_magic_cmd=/usr/bin/file
1866 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1870 lt_cv_deplibs_check_method=pass_all
1875 lt_cv_deplibs_check_method=pass_all
1879 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1880 lt_cv_file_magic_cmd=/usr/bin/file
1881 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1884 irix5* | irix6* | nonstopux*)
1886 irix5* | nonstopux*)
1887 # this will be overridden with pass_all, but let us keep it just in case
1888 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1892 *-32|*"-32 ") libmagic=32-bit;;
1893 *-n32|*"-n32 ") libmagic=N32;;
1894 *-64|*"-64 ") libmagic=64-bit;;
1895 *) libmagic=never-match;;
1897 # this will be overridden with pass_all, but let us keep it just in case
1898 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1901 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1902 lt_cv_deplibs_check_method=pass_all
1905 # This must be Linux ELF.
1908 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
1909 lt_cv_deplibs_check_method=pass_all ;;
1911 # glibc up to 2.1.1 does not perform some relocations on ARM
1912 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1914 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1918 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1919 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1921 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1926 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1927 lt_cv_file_magic_cmd=/usr/bin/file
1928 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1932 lt_cv_file_magic_cmd=/usr/bin/file
1933 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1934 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1935 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1937 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
1941 osf3* | osf4* | osf5*)
1942 # this will be overridden with pass_all, but let us keep it just in case
1943 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1944 lt_cv_file_magic_test_file=/shlib/libc.so
1945 lt_cv_deplibs_check_method=pass_all
1949 lt_cv_deplibs_check_method=pass_all
1953 lt_cv_deplibs_check_method=pass_all
1954 lt_cv_file_magic_test_file=/lib/libc.so
1957 sysv5uw[78]* | sysv4*uw2*)
1958 lt_cv_deplibs_check_method=pass_all
1961 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1962 case $host_vendor in
1964 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]'
1965 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1968 lt_cv_deplibs_check_method=pass_all
1971 lt_cv_file_magic_cmd='/bin/file'
1972 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
1975 lt_cv_file_magic_cmd='/bin/file'
1976 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
1977 lt_cv_file_magic_test_file=/lib/libc.so
1980 lt_cv_deplibs_check_method=pass_all
1988 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1989 file_magic_cmd=$lt_cv_file_magic_cmd
1990 deplibs_check_method=$lt_cv_deplibs_check_method
1992 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1993 echo "configure:1994: checking for object suffix" >&5
1994 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1995 echo $ac_n "(cached) $ac_c" 1>&6
1998 echo 'int i = 1;' > conftest.$ac_ext
1999 if { (eval echo configure:2000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2000 for ac_file in conftest.*; do
2003 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2007 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2012 echo "$ac_t""$ac_cv_objext" 1>&6
2013 OBJEXT=$ac_cv_objext
2014 ac_objext=$ac_cv_objext
2018 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2019 echo "configure:2020: checking for executable suffix" >&5
2020 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2021 echo $ac_n "(cached) $ac_c" 1>&6
2023 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2027 echo 'int main () { return 0; }' > conftest.$ac_ext
2029 if { (eval echo configure:2030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2030 for file in conftest.*; do
2032 *.c | *.o | *.obj) ;;
2033 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2037 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2040 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2045 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2046 echo "$ac_t""${ac_cv_exeext}" 1>&6
2049 if test $host != $build; then
2050 ac_tool_prefix=${host_alias}-
2058 # Check for command to grab the raw symbol name followed by C symbol from nm.
2059 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
2060 echo "configure:2061: checking command to parse $NM output" >&5
2061 if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
2062 echo $ac_n "(cached) $ac_c" 1>&6
2065 # These are sane defaults that work on at least a few old systems.
2066 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
2068 # Character class describing NM global symbol codes.
2069 symcode='[BCDEGRST]'
2071 # Regexp to match symbols that can be accessed directly from C.
2072 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2074 # Transform the above into a raw symbol and a C symbol.
2075 symxfrm='\1 \2\3 \3'
2077 # Transform an extracted symbol line into a proper C declaration
2078 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2080 # Transform an extracted symbol line into symbol name and symbol address
2081 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'"
2083 # Define system-specific variables.
2088 cygwin* | mingw* | pw32*)
2089 symcode='[ABCDGISTW]'
2091 hpux*) # Its linker distinguishes data from code symbols
2092 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2093 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'"
2096 symcode='[BCDEGRST]'
2099 symcode='[BCDEGQRST]'
2109 # Handle CRLF in mingw tool chain
2113 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2117 # If we're using GNU nm, then use its standard symbol codes.
2118 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2119 symcode='[ABCDGISTW]'
2122 # Try without a prefix undercore, then with it.
2123 for ac_symprfx in "" "_"; do
2125 # Write the raw and C identifiers.
2126 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2128 # Check to see that the pipe works correctly.
2131 cat > conftest.$ac_ext <<EOF
2136 void nm_test_func(){}
2140 int main(){nm_test_var='a';nm_test_func();return(0);}
2143 if { (eval echo configure:2144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2144 # Now try to grab the symbols.
2146 if { (eval echo configure:2147: \"$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
2147 # Try sorting and uniquifying the output.
2148 if sort "$nlist" | uniq > "$nlist"T; then
2149 mv -f "$nlist"T "$nlist"
2154 # Make sure that we snagged all the symbols we need.
2155 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
2156 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
2157 cat <<EOF > conftest.$ac_ext
2163 # Now generate the symbol file.
2164 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
2166 cat <<EOF >> conftest.$ac_ext
2167 #if defined (__STDC__) && __STDC__
2168 # define lt_ptr void *
2170 # define lt_ptr char *
2174 /* The mapping between symbol names and symbols. */
2179 lt_preloaded_symbols[] =
2182 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
2183 cat <<\EOF >> conftest.$ac_ext
2191 # Now try linking the two files.
2192 mv conftest.$ac_objext conftstm.$ac_objext
2194 save_CFLAGS="$CFLAGS"
2195 LIBS="conftstm.$ac_objext"
2196 CFLAGS="$CFLAGS$no_builtin_flag"
2197 if { (eval echo configure:2198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
2201 CFLAGS="$save_CFLAGS"
2203 echo "cannot find nm_test_func in $nlist" >&5
2206 echo "cannot find nm_test_var in $nlist" >&5
2209 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
2212 echo "$progname: failed program was:" >&5
2213 cat conftest.$ac_ext >&5
2215 rm -f conftest* conftst*
2217 # Do not use the global_symbol_pipe unless it works.
2218 if test "$pipe_works" = yes; then
2221 lt_cv_sys_global_symbol_pipe=
2227 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
2228 if test -z "$lt_cv_sys_global_symbol_pipe"; then
2229 global_symbol_to_cdecl=
2230 global_symbol_to_c_name_address=
2232 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2233 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
2235 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
2237 echo "$ac_t""failed" 1>&6
2239 echo "$ac_t""ok" 1>&6
2242 for ac_hdr in dlfcn.h
2244 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2245 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2246 echo "configure:2247: checking for $ac_hdr" >&5
2247 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2248 echo $ac_n "(cached) $ac_c" 1>&6
2250 cat > conftest.$ac_ext <<EOF
2251 #line 2252 "configure"
2252 #include "confdefs.h"
2255 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2256 { (eval echo configure:2257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2257 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2258 if test -z "$ac_err"; then
2260 eval "ac_cv_header_$ac_safe=yes"
2263 echo "configure: failed program was:" >&5
2264 cat conftest.$ac_ext >&5
2266 eval "ac_cv_header_$ac_safe=no"
2270 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2271 echo "$ac_t""yes" 1>&6
2272 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2273 cat >> confdefs.h <<EOF
2274 #define $ac_tr_hdr 1
2278 echo "$ac_t""no" 1>&6
2287 # Only perform the check for file, if the check method requires it
2288 case $deplibs_check_method in
2290 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2291 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2292 echo "configure:2293: checking for ${ac_tool_prefix}file" >&5
2293 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2294 echo $ac_n "(cached) $ac_c" 1>&6
2298 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2301 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2304 ac_save_MAGIC_CMD="$MAGIC_CMD"
2305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2306 ac_dummy="/usr/bin:$PATH"
2307 for ac_dir in $ac_dummy; do
2308 test -z "$ac_dir" && ac_dir=.
2309 if test -f $ac_dir/${ac_tool_prefix}file; then
2310 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2311 if test -n "$file_magic_test_file"; then
2312 case $deplibs_check_method in
2314 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2315 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2316 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2317 egrep "$file_magic_regex" > /dev/null; then
2322 *** Warning: the command libtool uses to detect shared libraries,
2323 *** $file_magic_cmd, produces output that libtool cannot recognize.
2324 *** The result is that libtool may fail to recognize shared libraries
2325 *** as such. This will affect the creation of libtool libraries that
2326 *** depend on shared libraries, but programs linked with such libtool
2327 *** libraries will work regardless of this problem. Nevertheless, you
2328 *** may want to report the problem to your system manager and/or to
2329 *** bug-libtool@gnu.org
2339 MAGIC_CMD="$ac_save_MAGIC_CMD"
2344 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2345 if test -n "$MAGIC_CMD"; then
2346 echo "$ac_t""$MAGIC_CMD" 1>&6
2348 echo "$ac_t""no" 1>&6
2351 if test -z "$lt_cv_path_MAGIC_CMD"; then
2352 if test -n "$ac_tool_prefix"; then
2353 echo $ac_n "checking for file""... $ac_c" 1>&6
2354 echo "configure:2355: checking for file" >&5
2355 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2356 echo $ac_n "(cached) $ac_c" 1>&6
2360 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2363 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2366 ac_save_MAGIC_CMD="$MAGIC_CMD"
2367 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2368 ac_dummy="/usr/bin:$PATH"
2369 for ac_dir in $ac_dummy; do
2370 test -z "$ac_dir" && ac_dir=.
2371 if test -f $ac_dir/file; then
2372 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2373 if test -n "$file_magic_test_file"; then
2374 case $deplibs_check_method in
2376 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2377 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2378 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2379 egrep "$file_magic_regex" > /dev/null; then
2384 *** Warning: the command libtool uses to detect shared libraries,
2385 *** $file_magic_cmd, produces output that libtool cannot recognize.
2386 *** The result is that libtool may fail to recognize shared libraries
2387 *** as such. This will affect the creation of libtool libraries that
2388 *** depend on shared libraries, but programs linked with such libtool
2389 *** libraries will work regardless of this problem. Nevertheless, you
2390 *** may want to report the problem to your system manager and/or to
2391 *** bug-libtool@gnu.org
2401 MAGIC_CMD="$ac_save_MAGIC_CMD"
2406 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2407 if test -n "$MAGIC_CMD"; then
2408 echo "$ac_t""$MAGIC_CMD" 1>&6
2410 echo "$ac_t""no" 1>&6
2422 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2423 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2424 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2425 echo "configure:2426: checking for $ac_word" >&5
2426 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2427 echo $ac_n "(cached) $ac_c" 1>&6
2429 if test -n "$RANLIB"; then
2430 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2432 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2434 for ac_dir in $ac_dummy; do
2435 test -z "$ac_dir" && ac_dir=.
2436 if test -f $ac_dir/$ac_word; then
2437 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2444 RANLIB="$ac_cv_prog_RANLIB"
2445 if test -n "$RANLIB"; then
2446 echo "$ac_t""$RANLIB" 1>&6
2448 echo "$ac_t""no" 1>&6
2452 if test -z "$ac_cv_prog_RANLIB"; then
2453 if test -n "$ac_tool_prefix"; then
2454 # Extract the first word of "ranlib", so it can be a program name with args.
2455 set dummy ranlib; ac_word=$2
2456 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2457 echo "configure:2458: checking for $ac_word" >&5
2458 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2459 echo $ac_n "(cached) $ac_c" 1>&6
2461 if test -n "$RANLIB"; then
2462 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2464 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2466 for ac_dir in $ac_dummy; do
2467 test -z "$ac_dir" && ac_dir=.
2468 if test -f $ac_dir/$ac_word; then
2469 ac_cv_prog_RANLIB="ranlib"
2474 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2477 RANLIB="$ac_cv_prog_RANLIB"
2478 if test -n "$RANLIB"; then
2479 echo "$ac_t""$RANLIB" 1>&6
2481 echo "$ac_t""no" 1>&6
2489 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2490 set dummy ${ac_tool_prefix}strip; ac_word=$2
2491 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2492 echo "configure:2493: checking for $ac_word" >&5
2493 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2494 echo $ac_n "(cached) $ac_c" 1>&6
2496 if test -n "$STRIP"; then
2497 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2499 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2501 for ac_dir in $ac_dummy; do
2502 test -z "$ac_dir" && ac_dir=.
2503 if test -f $ac_dir/$ac_word; then
2504 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2511 STRIP="$ac_cv_prog_STRIP"
2512 if test -n "$STRIP"; then
2513 echo "$ac_t""$STRIP" 1>&6
2515 echo "$ac_t""no" 1>&6
2519 if test -z "$ac_cv_prog_STRIP"; then
2520 if test -n "$ac_tool_prefix"; then
2521 # Extract the first word of "strip", so it can be a program name with args.
2522 set dummy strip; ac_word=$2
2523 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2524 echo "configure:2525: checking for $ac_word" >&5
2525 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2526 echo $ac_n "(cached) $ac_c" 1>&6
2528 if test -n "$STRIP"; then
2529 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2531 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2533 for ac_dir in $ac_dummy; do
2534 test -z "$ac_dir" && ac_dir=.
2535 if test -f $ac_dir/$ac_word; then
2536 ac_cv_prog_STRIP="strip"
2541 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2544 STRIP="$ac_cv_prog_STRIP"
2545 if test -n "$STRIP"; then
2546 echo "$ac_t""$STRIP" 1>&6
2548 echo "$ac_t""no" 1>&6
2560 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2561 if test "${enable_libtool_lock+set}" = set; then
2562 enableval="$enable_libtool_lock"
2566 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2568 # Some flags need to be propagated to the compiler or linker for good
2572 # Find out which ABI we are using.
2573 echo '#line 2574 "configure"' > conftest.$ac_ext
2574 if { (eval echo configure:2575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2575 case `/usr/bin/file conftest.$ac_objext` in
2591 # Test if the compiler is 64bit
2592 echo 'int i;' > conftest.$ac_ext
2593 lt_cv_cc_64bit_output=no
2594 if { (eval echo configure:2595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2595 case `/usr/bin/file conftest.$ac_objext` in
2597 lt_cv_cc_64bit_output=yes
2605 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2606 SAVE_CFLAGS="$CFLAGS"
2607 CFLAGS="$CFLAGS -belf"
2608 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2609 echo "configure:2610: checking whether the C compiler needs -belf" >&5
2610 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2611 echo $ac_n "(cached) $ac_c" 1>&6
2615 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2616 ac_cpp='$CPP $CPPFLAGS'
2617 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2618 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2619 cross_compiling=$ac_cv_prog_cc_cross
2621 cat > conftest.$ac_ext <<EOF
2622 #line 2623 "configure"
2623 #include "confdefs.h"
2629 if { (eval echo configure:2630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2631 lt_cv_cc_needs_belf=yes
2633 echo "configure: failed program was:" >&5
2634 cat conftest.$ac_ext >&5
2636 lt_cv_cc_needs_belf=no
2640 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2641 ac_cpp='$CPP $CPPFLAGS'
2642 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2643 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2644 cross_compiling=$ac_cv_prog_cc_cross
2648 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2649 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2650 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2651 CFLAGS="$SAVE_CFLAGS"
2658 # Sed substitution that helps us do robust quoting. It backslashifies
2659 # metacharacters that are still active within double-quoted strings.
2660 Xsed='sed -e s/^X//'
2661 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
2663 # Same as above, but do not quote variable references.
2664 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
2666 # Sed substitution to delay expansion of an escaped shell variable in a
2667 # double_quote_subst'ed string.
2668 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2674 default_ofile=libtool
2675 can_build_shared=yes
2677 # All known linkers require a `.a' archive for static linking (except M$VC,
2678 # which needs '.lib').
2680 ltmain="$ac_aux_dir/ltmain.sh"
2681 ofile="$default_ofile"
2682 with_gnu_ld="$lt_cv_prog_gnu_ld"
2683 need_locks="$enable_libtool_lock"
2686 old_CFLAGS="$CFLAGS"
2688 # Set sane defaults for various variables
2689 test -z "$AR" && AR=ar
2690 test -z "$AR_FLAGS" && AR_FLAGS=cru
2691 test -z "$AS" && AS=as
2692 test -z "$CC" && CC=cc
2693 test -z "$DLLTOOL" && DLLTOOL=dlltool
2694 test -z "$LD" && LD=ld
2695 test -z "$LN_S" && LN_S="ln -s"
2696 test -z "$MAGIC_CMD" && MAGIC_CMD=file
2697 test -z "$NM" && NM=nm
2698 test -z "$OBJDUMP" && OBJDUMP=objdump
2699 test -z "$RANLIB" && RANLIB=:
2700 test -z "$STRIP" && STRIP=:
2701 test -z "$ac_objext" && ac_objext=o
2703 if test x"$host" != x"$build"; then
2704 ac_tool_prefix=${host_alias}-
2709 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
2712 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
2717 # AIX sometimes has problems with the GCC collect2 program. For some
2718 # reason, if we set the COLLECT_NAMES environment variable, the problems
2719 # vanish in a puff of smoke.
2720 if test "X${COLLECT_NAMES+set}" != Xset; then
2722 export COLLECT_NAMES
2727 # Determine commands to create old-style static archives.
2728 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
2729 old_postinstall_cmds='chmod 644 $oldlib'
2730 old_postuninstall_cmds=
2732 if test -n "$RANLIB"; then
2735 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
2738 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
2741 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2744 # Allow CC to be a program name with arguments.
2748 echo $ac_n "checking for objdir""... $ac_c" 1>&6
2749 echo "configure:2750: checking for objdir" >&5
2750 rm -f .libs 2>/dev/null
2751 mkdir .libs 2>/dev/null
2752 if test -d .libs; then
2755 # MS-DOS does not allow filenames that begin with a dot.
2758 rmdir .libs 2>/dev/null
2759 echo "$ac_t""$objdir" 1>&6
2762 # Check whether --with-pic or --without-pic was given.
2763 if test "${with_pic+set}" = set; then
2770 test -z "$pic_mode" && pic_mode=default
2772 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
2773 # in isolation, and that seeing it set (from the cache) indicates that
2774 # the associated values are set (in the cache) correctly too.
2775 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
2776 echo "configure:2777: checking for $compiler option to produce PIC" >&5
2777 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
2778 echo $ac_n "(cached) $ac_c" 1>&6
2781 lt_cv_prog_cc_shlib=
2783 lt_cv_prog_cc_static=
2784 lt_cv_prog_cc_no_builtin=
2785 lt_cv_prog_cc_can_build_shared=$can_build_shared
2787 if test "$GCC" = yes; then
2788 lt_cv_prog_cc_wl='-Wl,'
2789 lt_cv_prog_cc_static='-static'
2793 # Below there is a dirty hack to force normal static linking with -ldl
2794 # The problem is because libdl dynamically linked with both libc and
2795 # libC (AIX C++ library), which obviously doesn't included in libraries
2796 # list by gcc. This cause undefined symbols with -static flags.
2797 # This hack allows C programs to be linked with "-static -ldl", but
2798 # not sure about C++ programs.
2799 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
2802 # FIXME: we need at least 68020 code to build shared libraries, but
2803 # adding the `-m68020' flag to GCC prevents building anything better,
2805 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
2807 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
2808 # PIC is the default for these OSes.
2810 darwin* | rhapsody*)
2811 # PIC is the default on this platform
2812 # Common symbols not allowed in MH_DYLIB files
2813 lt_cv_prog_cc_pic='-fno-common'
2815 cygwin* | mingw* | pw32* | os2*)
2816 # This hack is so that the source file can tell whether it is being
2817 # built for inclusion in a dll (and should export symbols for example).
2818 lt_cv_prog_cc_pic='-DDLL_EXPORT'
2821 if test -d /usr/nec; then
2822 lt_cv_prog_cc_pic=-Kconform_pic
2826 lt_cv_prog_cc_pic='-fPIC'
2830 # PORTME Check for PIC flags for the system compiler.
2832 aix3* | aix4* | aix5*)
2833 lt_cv_prog_cc_wl='-Wl,'
2834 # All AIX code is PIC.
2835 if test "$host_cpu" = ia64; then
2836 # AIX 5 now supports IA64 processor
2837 lt_cv_prog_cc_static='-Bstatic'
2839 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
2843 hpux9* | hpux10* | hpux11*)
2844 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
2845 lt_cv_prog_cc_wl='-Wl,'
2846 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
2847 lt_cv_prog_cc_pic='+Z'
2850 irix5* | irix6* | nonstopux*)
2851 lt_cv_prog_cc_wl='-Wl,'
2852 lt_cv_prog_cc_static='-non_shared'
2853 # PIC (with -KPIC) is the default.
2856 cygwin* | mingw* | pw32* | os2*)
2857 # This hack is so that the source file can tell whether it is being
2858 # built for inclusion in a dll (and should export symbols for example).
2859 lt_cv_prog_cc_pic='-DDLL_EXPORT'
2863 lt_cv_prog_cc_pic='-KPIC'
2864 lt_cv_prog_cc_static='-Bstatic'
2867 osf3* | osf4* | osf5*)
2868 # All OSF/1 code is PIC.
2869 lt_cv_prog_cc_wl='-Wl,'
2870 lt_cv_prog_cc_static='-non_shared'
2874 lt_cv_prog_cc_pic='-Kpic'
2875 lt_cv_prog_cc_static='-dn'
2876 lt_cv_prog_cc_shlib='-belf'
2880 lt_cv_prog_cc_pic='-KPIC'
2881 lt_cv_prog_cc_static='-Bstatic'
2882 lt_cv_prog_cc_wl='-Wl,'
2886 lt_cv_prog_cc_pic='-PIC'
2887 lt_cv_prog_cc_static='-Bstatic'
2888 lt_cv_prog_cc_wl='-Qoption ld '
2891 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2892 lt_cv_prog_cc_pic='-KPIC'
2893 lt_cv_prog_cc_static='-Bstatic'
2894 lt_cv_prog_cc_wl='-Wl,'
2898 lt_cv_prog_cc_pic='-pic'
2899 lt_cv_prog_cc_static='-Bstatic'
2903 if test -d /usr/nec ;then
2904 lt_cv_prog_cc_pic='-Kconform_pic'
2905 lt_cv_prog_cc_static='-Bstatic'
2910 lt_cv_prog_cc_can_build_shared=no
2917 if test -z "$lt_cv_prog_cc_pic"; then
2918 echo "$ac_t""none" 1>&6
2920 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
2922 # Check to make sure the pic_flag actually works.
2923 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
2924 echo "configure:2925: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
2925 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
2926 echo $ac_n "(cached) $ac_c" 1>&6
2928 save_CFLAGS="$CFLAGS"
2929 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2930 cat > conftest.$ac_ext <<EOF
2931 #line 2932 "configure"
2932 #include "confdefs.h"
2938 if { (eval echo configure:2939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2941 hpux9* | hpux10* | hpux11*)
2942 # On HP-UX, both CC and GCC only warn that PIC is supported... then
2943 # they create non-PIC objects. So, if there were any warnings, we
2944 # assume that PIC is not supported.
2945 if test -s conftest.err; then
2946 lt_cv_prog_cc_pic_works=no
2948 lt_cv_prog_cc_pic_works=yes
2952 lt_cv_prog_cc_pic_works=yes
2957 echo "configure: failed program was:" >&5
2958 cat conftest.$ac_ext >&5
2960 lt_cv_prog_cc_pic_works=no
2964 CFLAGS="$save_CFLAGS"
2969 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
2971 lt_cv_prog_cc_can_build_shared=no
2973 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
2976 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
2979 # Check for any special shared library compilation flags.
2980 if test -n "$lt_cv_prog_cc_shlib"; then
2981 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
2982 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
2984 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
2985 lt_cv_prog_cc_can_build_shared=no
2989 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
2990 echo "configure:2991: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
2991 if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
2992 echo $ac_n "(cached) $ac_c" 1>&6
2994 lt_cv_prog_cc_static_works=no
2995 save_LDFLAGS="$LDFLAGS"
2996 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
2997 cat > conftest.$ac_ext <<EOF
2998 #line 2999 "configure"
2999 #include "confdefs.h"
3005 if { (eval echo configure:3006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3007 lt_cv_prog_cc_static_works=yes
3009 echo "configure: failed program was:" >&5
3010 cat conftest.$ac_ext >&5
3013 LDFLAGS="$save_LDFLAGS"
3018 # Belt *and* braces to stop my trousers falling down:
3019 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
3020 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
3022 pic_flag="$lt_cv_prog_cc_pic"
3023 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
3024 wl="$lt_cv_prog_cc_wl"
3025 link_static_flag="$lt_cv_prog_cc_static"
3026 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
3027 can_build_shared="$lt_cv_prog_cc_can_build_shared"
3030 # Check to see if options -o and -c are simultaneously supported by compiler
3031 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
3032 echo "configure:3033: checking if $compiler supports -c -o file.$ac_objext" >&5
3033 if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
3034 echo $ac_n "(cached) $ac_c" 1>&6
3037 $rm -r conftest 2>/dev/null
3040 echo "int some_variable = 0;" > conftest.$ac_ext
3042 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
3043 # that will create temporary files in the current directory regardless of
3044 # the output directory. Thus, making CWD read-only will cause this test
3045 # to fail, enabling locking or at least warning the user not to do parallel
3048 save_CFLAGS="$CFLAGS"
3049 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
3051 if { (eval echo configure:3052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
3052 # The compiler can only warn and ignore the option if not recognized
3053 # So say no if there are warnings
3054 if test -s out/conftest.err; then
3055 lt_cv_compiler_c_o=no
3057 lt_cv_compiler_c_o=yes
3060 # Append any errors to the config.log.
3061 cat out/conftest.err 1>&5
3062 lt_cv_compiler_c_o=no
3064 CFLAGS="$save_CFLAGS"
3070 $rm -r conftest 2>/dev/null
3074 compiler_c_o=$lt_cv_compiler_c_o
3075 echo "$ac_t""$compiler_c_o" 1>&6
3077 if test x"$compiler_c_o" = x"yes"; then
3078 # Check to see if we can write to a .lo
3079 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
3080 echo "configure:3081: checking if $compiler supports -c -o file.lo" >&5
3081 if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
3082 echo $ac_n "(cached) $ac_c" 1>&6
3085 lt_cv_compiler_o_lo=no
3086 save_CFLAGS="$CFLAGS"
3087 CFLAGS="$CFLAGS -c -o conftest.lo"
3088 save_objext="$ac_objext"
3090 cat > conftest.$ac_ext <<EOF
3091 #line 3092 "configure"
3092 #include "confdefs.h"
3095 int some_variable = 0;
3098 if { (eval echo configure:3099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3100 # The compiler can only warn and ignore the option if not recognized
3101 # So say no if there are warnings
3102 if test -s conftest.err; then
3103 lt_cv_compiler_o_lo=no
3105 lt_cv_compiler_o_lo=yes
3109 echo "configure: failed program was:" >&5
3110 cat conftest.$ac_ext >&5
3113 ac_objext="$save_objext"
3114 CFLAGS="$save_CFLAGS"
3118 compiler_o_lo=$lt_cv_compiler_o_lo
3119 echo "$ac_t""$compiler_o_lo" 1>&6
3124 # Check to see if we can do hard links to lock some files if needed
3125 hard_links="nottested"
3126 if test "$compiler_c_o" = no && test "$need_locks" != no; then
3127 # do not overwrite the value of need_locks provided by the user
3128 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
3129 echo "configure:3130: checking if we can lock with hard links" >&5
3132 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3134 ln conftest.a conftest.b 2>&5 || hard_links=no
3135 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3136 echo "$ac_t""$hard_links" 1>&6
3137 if test "$hard_links" = no; then
3138 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
3145 if test "$GCC" = yes; then
3146 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
3147 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
3148 echo "configure:3149: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3149 echo "int some_variable = 0;" > conftest.$ac_ext
3150 save_CFLAGS="$CFLAGS"
3151 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3152 compiler_rtti_exceptions=no
3153 cat > conftest.$ac_ext <<EOF
3154 #line 3155 "configure"
3155 #include "confdefs.h"
3158 int some_variable = 0;
3161 if { (eval echo configure:3162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3163 # The compiler can only warn and ignore the option if not recognized
3164 # So say no if there are warnings
3165 if test -s conftest.err; then
3166 compiler_rtti_exceptions=no
3168 compiler_rtti_exceptions=yes
3172 echo "configure: failed program was:" >&5
3173 cat conftest.$ac_ext >&5
3176 CFLAGS="$save_CFLAGS"
3177 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
3179 if test "$compiler_rtti_exceptions" = "yes"; then
3180 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3182 no_builtin_flag=' -fno-builtin'
3186 # See if the linker supports building shared libraries.
3187 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
3188 echo "configure:3189: checking whether the linker ($LD) supports shared libraries" >&5
3190 allow_undefined_flag=
3192 need_lib_prefix=unknown
3193 need_version=unknown
3194 # when you set need_version to no, make sure it does not cause -set_version
3195 # flags to be left without arguments
3197 archive_expsym_cmds=
3198 old_archive_from_new_cmds=
3199 old_archive_from_expsyms_cmds=
3200 export_dynamic_flag_spec=
3201 whole_archive_flag_spec=
3202 thread_safe_flag_spec=
3203 hardcode_into_libs=no
3204 hardcode_libdir_flag_spec=
3205 hardcode_libdir_separator=
3208 hardcode_shlibpath_var=unsupported
3210 link_all_deplibs=unknown
3211 always_export_symbols=no
3212 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
3213 # include_expsyms should be a list of space-separated symbols to be *always*
3214 # included in the symbol list
3216 # exclude_expsyms can be an egrep regular expression of symbols to exclude
3217 # it will be wrapped by ` (' and `)$', so one must not match beginning or
3218 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
3219 # as well as any symbol that contains `d'.
3220 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
3221 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
3222 # platforms (ab)use it in PIC code, but their linkers get confused if
3223 # the symbol is explicitly referenced. Since portable code cannot
3224 # rely on this symbol name, it's probably fine to never include it in
3225 # preloaded symbol tables.
3226 extract_expsyms_cmds=
3229 cygwin* | mingw* | pw32*)
3230 # FIXME: the MSVC++ port hasn't been tested in a loooong time
3231 # When not using gcc, we currently assume that we are using
3232 # Microsoft Visual C++.
3233 if test "$GCC" != yes; then
3243 if test "$with_gnu_ld" = yes; then
3244 # If archive_cmds runs LD, not CC, wlarc should be empty
3247 # See if GNU ld supports shared libraries.
3249 aix3* | aix4* | aix5*)
3250 # On AIX, the GNU linker is very broken
3251 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
3255 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
3256 *** to be unable to reliably create shared libraries on AIX.
3257 *** Therefore, libtool is disabling shared libraries support. If you
3258 *** really care for shared libraries, you may want to modify your PATH
3259 *** so that a non-GNU linker is found, and then restart.
3265 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)'
3266 hardcode_libdir_flag_spec='-L$libdir'
3267 hardcode_minus_L=yes
3269 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
3270 # that the semantics of dynamic libraries on AmigaOS, at least up
3271 # to version 4, is to share data among multiple programs linked
3272 # with the same dynamic library. Since this doesn't match the
3273 # behavior of shared libraries on other platforms, we can use
3279 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3280 allow_undefined_flag=unsupported
3281 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3282 # support --undefined. This deserves some investigation. FIXME
3283 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3289 cygwin* | mingw* | pw32*)
3290 # hardcode_libdir_flag_spec is actually meaningless, as there is
3291 # no search path for DLLs.
3292 hardcode_libdir_flag_spec='-L$libdir'
3293 allow_undefined_flag=unsupported
3294 always_export_symbols=yes
3296 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
3297 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
3298 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
3299 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
3300 else $CC -o impgen impgen.c ; fi)~
3301 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
3303 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
3305 # cygwin and mingw dlls have different entry points and sets of symbols
3307 # FIXME: what about values for MSVC?
3308 dll_entry=__cygwin_dll_entry@12
3309 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
3313 dll_entry=_DllMainCRTStartup@12
3314 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
3318 # mingw and cygwin differ, and it's simplest to just exclude the union
3319 # of the two symbol sets.
3320 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
3322 # recent cygwin and mingw systems supply a stub DllMain which the user
3323 # can override, but on older systems we have to supply one (in ltdll.c)
3324 if test "x$lt_cv_need_dllmain" = "xyes"; then
3325 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
3326 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~
3327 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
3333 # Extract the symbol export list from an `--export-all' def file,
3334 # then regenerate the def file from the symbol export list, so that
3335 # the compiled dll only exports the symbol export list.
3336 # Be careful not to strip the DATA tag left be newer dlltools.
3337 export_symbols_cmds="$ltdll_cmds"'
3338 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
3339 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
3341 # If the export-symbols file already is a .def file (1st line
3342 # is EXPORTS), use it as is.
3343 # If DATA tags from a recent dlltool are present, honour them!
3344 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
3345 cp $export_symbols $output_objdir/$soname-def;
3347 echo EXPORTS > $output_objdir/$soname-def;
3349 cat $export_symbols | while read symbol; do
3352 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
3353 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
3354 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
3356 _lt_hint=`expr 1 + \$_lt_hint`;
3360 $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~
3361 $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~
3362 $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~
3363 $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~
3364 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
3368 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3369 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3372 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3373 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3378 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
3382 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
3383 *** create shared libraries on Solaris systems. Therefore, libtool
3384 *** is disabling shared libraries support. We urge you to upgrade GNU
3385 *** binutils to release 2.9.1 or newer. Another option is to modify
3386 *** your PATH or compiler configuration so that the native linker is
3387 *** used, and then restart.
3390 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3391 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3392 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3399 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3402 hardcode_shlibpath_var=no
3406 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3407 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3408 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3415 if test "$ld_shlibs" = yes; then
3416 runpath_var=LD_RUN_PATH
3417 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
3418 export_dynamic_flag_spec='${wl}--export-dynamic'
3420 cygwin* | mingw* | pw32*)
3421 # dlltool doesn't understand --whole-archive et. al.
3422 whole_archive_flag_spec=
3425 # ancient GNU ld didn't support --whole-archive et. al.
3426 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
3427 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3429 whole_archive_flag_spec=
3435 # PORTME fill in a description of your system's linker (not GNU ld)
3438 allow_undefined_flag=unsupported
3439 always_export_symbols=yes
3440 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'
3441 # Note: this linker hardcodes the directories in LIBPATH if there
3442 # are no directories specified by -L.
3443 hardcode_minus_L=yes
3444 if test "$GCC" = yes && test -z "$link_static_flag"; then
3445 # Neither direct hardcoding nor static linking is supported with a
3447 hardcode_direct=unsupported
3452 if test "$host_cpu" = ia64; then
3453 # On IA64, the linker does run time linking by default, so we don't
3454 # have to do anything special.
3455 aix_use_runtimelinking=no
3456 exp_sym_flag='-Bexport'
3459 aix_use_runtimelinking=no
3461 # Test if we are trying to use run time linking or normal
3462 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3463 # need to do runtime linking.
3464 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
3465 for ld_flag in $LDFLAGS; do
3468 aix_use_runtimelinking=yes
3475 exp_sym_flag='-bexport'
3476 no_entry_flag='-bnoentry'
3479 # When large executables or shared objects are built, AIX ld can
3480 # have problems creating the table of contents. If linking a library
3481 # or program results in "error TOC overflow" add -mminimal-toc to
3482 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3483 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3487 hardcode_libdir_separator=':'
3488 if test "$GCC" = yes; then
3489 case $host_os in aix4.[012]|aix4.[012].*)
3490 collect2name=`${CC} -print-prog-name=collect2`
3491 if test -f "$collect2name" && \
3492 strings "$collect2name" | grep resolve_lib_name >/dev/null
3494 # We have reworked collect2
3497 # We have old collect2
3498 hardcode_direct=unsupported
3499 # It fails to find uninstalled libraries when the uninstalled
3500 # path is not listed in the libpath. Setting hardcode_minus_L
3501 # to unsupported forces relinking
3502 hardcode_minus_L=yes
3503 hardcode_libdir_flag_spec='-L$libdir'
3504 hardcode_libdir_separator=
3508 shared_flag='-shared'
3511 if test "$host_cpu" = ia64; then
3512 shared_flag='${wl}-G'
3514 if test "$aix_use_runtimelinking" = yes; then
3515 shared_flag='${wl}-G'
3517 shared_flag='${wl}-bM:SRE'
3522 # It seems that -bexpall can do strange things, so it is better to
3523 # generate a list of symbols to export.
3524 always_export_symbols=yes
3525 if test "$aix_use_runtimelinking" = yes; then
3526 # Warning - without using the other runtime loading flags (-brtl),
3527 # -berok will link without error, but may produce a broken library.
3528 allow_undefined_flag='-berok'
3529 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
3530 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"
3532 if test "$host_cpu" = ia64; then
3533 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
3534 allow_undefined_flag="-z nodefs"
3535 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"
3537 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
3538 # Warning - without using the other run time loading flags,
3539 # -berok will link without error, but may produce a broken library.
3540 allow_undefined_flag='${wl}-berok'
3541 # This is a bit strange, but is similar to how AIX traditionally builds
3542 # it's shared libraries.
3543 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'
3549 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)'
3550 hardcode_libdir_flag_spec='-L$libdir'
3551 hardcode_minus_L=yes
3552 # see comment about different semantics on the GNU ld section
3556 cygwin* | mingw* | pw32*)
3557 # When not using gcc, we currently assume that we are using
3558 # Microsoft Visual C++.
3559 # hardcode_libdir_flag_spec is actually meaningless, as there is
3560 # no search path for DLLs.
3561 hardcode_libdir_flag_spec=' '
3562 allow_undefined_flag=unsupported
3563 # Tell ltmain to make .lib files, not .a files.
3565 # FIXME: Setting linknames here is a bad hack.
3566 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
3567 # The linker will automatically build a .lib file if we build a DLL.
3568 old_archive_from_new_cmds='true'
3569 # FIXME: Should let the user specify the lib program.
3570 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
3571 fix_srcfile_path='`cygpath -w "$srcfile"`'
3574 darwin* | rhapsody*)
3576 rhapsody* | darwin1.[012])
3577 allow_undefined_flag='-undefined suppress'
3580 allow_undefined_flag='-flat_namespace -undefined suppress'
3583 # FIXME: Relying on posixy $() will cause problems for
3584 # cross-compilation, but unfortunately the echo tests do not
3585 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
3586 # `"' quotes if we put them in here... so don't!
3587 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)'
3588 # We need to add '_' to the symbols in $export_symbols first
3589 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
3591 hardcode_shlibpath_var=no
3592 whole_archive_flag_spec='-all_load $convenience'
3599 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
3600 # support. Future versions do this automatically, but an explicit c++rt0.o
3601 # does not break anything, and helps significantly (at the cost of a little
3604 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
3605 hardcode_libdir_flag_spec='-R$libdir'
3607 hardcode_shlibpath_var=no
3610 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
3612 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3614 hardcode_minus_L=yes
3615 hardcode_shlibpath_var=no
3618 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
3620 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
3621 hardcode_libdir_flag_spec='-R$libdir'
3623 hardcode_shlibpath_var=no
3626 hpux9* | hpux10* | hpux11*)
3628 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' ;;
3629 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
3631 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
3632 hardcode_libdir_separator=:
3634 hardcode_minus_L=yes # Not in the search PATH, but as the default
3635 # location of the library.
3636 export_dynamic_flag_spec='${wl}-E'
3639 irix5* | irix6* | nonstopux*)
3640 if test "$GCC" = yes; then
3641 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'
3642 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3644 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'
3645 hardcode_libdir_flag_spec='-rpath $libdir'
3647 hardcode_libdir_separator=:
3648 link_all_deplibs=yes
3652 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3653 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
3655 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
3657 hardcode_libdir_flag_spec='-R$libdir'
3659 hardcode_shlibpath_var=no
3663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3665 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3666 hardcode_libdir_separator=:
3667 hardcode_shlibpath_var=no
3672 hardcode_shlibpath_var=no
3673 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3674 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
3675 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3676 export_dynamic_flag_spec='${wl}-E'
3679 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
3680 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3681 hardcode_libdir_flag_spec='-R$libdir'
3684 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
3685 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3692 hardcode_libdir_flag_spec='-L$libdir'
3693 hardcode_minus_L=yes
3694 allow_undefined_flag=unsupported
3695 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'
3696 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
3700 if test "$GCC" = yes; then
3701 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3702 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'
3704 allow_undefined_flag=' -expect_unresolved \*'
3705 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'
3707 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3708 hardcode_libdir_separator=:
3711 osf4* | osf5*) # as osf3* with the addition of -msym flag
3712 if test "$GCC" = yes; then
3713 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3714 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'
3715 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3717 allow_undefined_flag=' -expect_unresolved \*'
3718 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'
3719 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
3720 $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'
3722 #Both c and cxx compiler support -rpath directly
3723 hardcode_libdir_flag_spec='-rpath $libdir'
3725 hardcode_libdir_separator=:
3729 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3730 hardcode_shlibpath_var=no
3731 runpath_var=LD_RUN_PATH
3732 hardcode_runpath_var=yes
3733 export_dynamic_flag_spec='${wl}-Bexport'
3737 # gcc --version < 3.0 without binutils cannot create self contained
3738 # shared libraries reliably, requiring libgcc.a to resolve some of
3739 # the object symbols generated in some cases. Libraries that use
3740 # assert need libgcc.a to resolve __eprintf, for example. Linking
3741 # a copy of libgcc.a into every shared library to guarantee resolving
3742 # such symbols causes other problems: According to Tim Van Holder
3743 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
3744 # (to the application) exception stack for one thing.
3745 no_undefined_flag=' -z defs'
3746 if test "$GCC" = yes; then
3747 case `$CC --version 2>/dev/null` in
3751 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
3752 *** create self contained shared libraries on Solaris systems, without
3753 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
3754 *** -no-undefined support, which will at least allow you to build shared
3755 *** libraries. However, you may find that when you link such libraries
3756 *** into an application without using GCC, you have to manually add
3757 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
3758 *** upgrade to a newer version of GCC. Another option is to rebuild your
3759 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
3766 # $CC -shared without GNU ld will not create a library from C++
3767 # object files and a static libstdc++, better avoid it by now
3768 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3769 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3770 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3771 hardcode_libdir_flag_spec='-R$libdir'
3772 hardcode_shlibpath_var=no
3774 solaris2.[0-5] | solaris2.[0-5].*) ;;
3775 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
3776 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
3778 link_all_deplibs=yes
3782 if test "x$host_vendor" = xsequent; then
3783 # Use $CC to link under sequent, because it throws in some extra .o
3784 # files that make .init and .fini sections work.
3785 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
3787 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
3789 hardcode_libdir_flag_spec='-L$libdir'
3791 hardcode_minus_L=yes
3792 hardcode_shlibpath_var=no
3796 case $host_vendor in
3798 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3799 hardcode_direct=yes # is this really true???
3802 ## LD is ld it makes a PLAMLIB
3803 ## CC just makes a GrossModule.
3804 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
3805 reload_cmds='$CC -r -o $output$reload_objs'
3809 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3810 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
3813 runpath_var='LD_RUN_PATH'
3814 hardcode_shlibpath_var=no
3818 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3819 hardcode_shlibpath_var=no
3820 export_dynamic_flag_spec='-Bexport'
3824 no_undefined_flag=' -z text'
3825 # $CC -shared without GNU ld will not create a library from C++
3826 # object files and a static libstdc++, better avoid it by now
3827 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3828 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3829 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3830 hardcode_libdir_flag_spec=
3831 hardcode_shlibpath_var=no
3832 runpath_var='LD_RUN_PATH'
3836 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3837 hardcode_libdir_flag_spec='-L$libdir'
3838 hardcode_shlibpath_var=no
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 if test -d /usr/nec; then
3849 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3850 hardcode_shlibpath_var=no
3851 runpath_var=LD_RUN_PATH
3852 hardcode_runpath_var=yes
3858 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
3861 hardcode_shlibpath_var=no
3862 hardcode_runpath_var=yes
3863 runpath_var=LD_RUN_PATH
3866 sysv5uw7* | unixware7*)
3867 no_undefined_flag='${wl}-z ${wl}text'
3868 if test "$GCC" = yes; then
3869 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3871 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3873 runpath_var='LD_RUN_PATH'
3874 hardcode_shlibpath_var=no
3882 echo "$ac_t""$ld_shlibs" 1>&6
3883 test "$ld_shlibs" = no && can_build_shared=no
3885 # Check hardcoding attributes.
3886 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
3887 echo "configure:3888: checking how to hardcode library paths into programs" >&5
3889 if test -n "$hardcode_libdir_flag_spec" || \
3890 test -n "$runpath_var"; then
3892 # We can hardcode non-existant directories.
3893 if test "$hardcode_direct" != no &&
3894 # If the only mechanism to avoid hardcoding is shlibpath_var, we
3895 # have to relink, otherwise we might link with an installed library
3896 # when we should be linking with a yet-to-be-installed one
3897 ## test "$hardcode_shlibpath_var" != no &&
3898 test "$hardcode_minus_L" != no; then
3899 # Linking always hardcodes the temporary library directory.
3900 hardcode_action=relink
3902 # We can link without hardcoding, and we can hardcode nonexisting dirs.
3903 hardcode_action=immediate
3906 # We cannot hardcode anything, or else we can only hardcode existing
3908 hardcode_action=unsupported
3910 echo "$ac_t""$hardcode_action" 1>&6
3914 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
3915 echo "configure:3916: checking whether stripping libraries is possible" >&5
3916 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
3917 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3918 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3919 echo "$ac_t""yes" 1>&6
3921 echo "$ac_t""no" 1>&6
3924 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3925 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3927 # PORTME Fill in your ld.so characteristics
3928 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
3929 echo "configure:3930: checking dynamic linker characteristics" >&5
3931 libname_spec='lib$name'
3938 shlibpath_overrides_runpath=unknown
3940 dynamic_linker="$host_os ld.so"
3941 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib"
3942 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib"
3947 library_names_spec='${libname}${release}.so$versuffix $libname.a'
3948 shlibpath_var=LIBPATH
3950 # AIX has no versioning support, so we append a major version to the name.
3951 soname_spec='${libname}${release}.so$major'
3958 hardcode_into_libs=yes
3959 if test "$host_cpu" = ia64; then
3960 # AIX 5 supports IA64
3961 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
3962 shlibpath_var=LD_LIBRARY_PATH
3964 # With GCC up to 2.95.x, collect2 would create an import file
3965 # for dependence libraries. The import file would start with
3966 # the line `#! .'. This would cause the generated library to
3967 # depend on `.', always an invalid library. This was fixed in
3968 # development snapshots of GCC prior to 3.0.
3970 aix4 | aix4.[01] | aix4.[01].*)
3971 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3973 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
3980 # AIX (on Power*) has no versioning support, so currently we can
3981 # not hardcode correct soname into executable. Probably we can
3982 # add versioning support to collect2, so additional links can
3983 # be useful in future.
3984 if test "$aix_use_runtimelinking" = yes; then
3985 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
3986 # instead of lib<name>.a to let people know that these are not
3987 # typical AIX shared libraries.
3988 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3990 # We preserve .a as extension for shared libraries through AIX4.2
3991 # and later when we are not doing run time linking.
3992 library_names_spec='${libname}${release}.a $libname.a'
3993 soname_spec='${libname}${release}.so$major'
3995 shlibpath_var=LIBPATH
3997 hardcode_into_libs=yes
4001 library_names_spec='$libname.ixlibrary $libname.a'
4002 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4003 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'