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-shared[=PKGS] build shared libraries [default=yes]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 # Find the correct PATH separator. Usually this is `:', but
24 # DJGPP uses `;' like DOS.
25 if test "X${PATH_SEPARATOR+set}" != Xset; then
26 UNAME=${UNAME-`uname 2>/dev/null`}
28 *-DOS) lt_cv_sys_path_separator=';' ;;
29 *) lt_cv_sys_path_separator=':' ;;
31 PATH_SEPARATOR=$lt_cv_sys_path_separator
35 # Check that we are running under the correct shell.
36 SHELL=${CONFIG_SHELL-/bin/sh}
40 # Remove one level of quotation (which was required for Make).
41 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
46 if test "X$1" = X--no-reexec; then
47 # Discard the --no-reexec flag, and continue.
49 elif test "X$1" = X--fallback-echo; then
50 # Avoid inline document here, it may be left over
52 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
53 # Yippee, $echo works!
56 # Restart under the correct shell.
57 exec $SHELL "$0" --no-reexec ${1+"$@"}
60 if test "X$1" = X--fallback-echo; then
61 # used as fallback echo
69 # The HP-UX ksh and POSIX shell print the target directory to stdout
71 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
73 if test -z "$ECHO"; then
74 if test "X${echo_test_string+set}" != Xset; then
75 # find a string as large as possible, as long as the shell can cope with it
76 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
77 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
78 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
79 echo_test_string="`eval $cmd`" &&
80 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
87 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
88 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
89 test "X$echo_testing_string" = "X$echo_test_string"; then
92 # The Solaris, AIX, and Digital Unix default echo programs unquote
93 # backslashes. This makes it impossible to quote backslashes using
94 # echo "$something" | sed 's/\\/\\\\/g'
96 # So, first we look for a working echo in the user's PATH.
98 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
99 for dir in $PATH /usr/ucb; do
100 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
101 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
102 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
103 test "X$echo_testing_string" = "X$echo_test_string"; then
110 if test "X$echo" = Xecho; then
111 # We didn't find a better echo, so look for alternatives.
112 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
113 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
114 test "X$echo_testing_string" = "X$echo_test_string"; then
115 # This shell has a builtin print -r that does the trick.
117 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
118 test "X$CONFIG_SHELL" != X/bin/ksh; then
119 # If we have ksh, try running configure again with it.
120 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
121 export ORIGINAL_CONFIG_SHELL
122 CONFIG_SHELL=/bin/ksh
124 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
128 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
129 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
130 test "X$echo_testing_string" = "X$echo_test_string"; then
133 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
134 test "X$echo_testing_string" = 'X\t' &&
135 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
136 test "X$echo_testing_string" = "X$echo_test_string"; then
137 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
139 SHELL="$CONFIG_SHELL"
141 echo="$CONFIG_SHELL $0 --fallback-echo"
142 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
143 test "X$echo_testing_string" = 'X\t' &&
144 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
145 test "X$echo_testing_string" = "X$echo_test_string"; then
146 echo="$CONFIG_SHELL $0 --fallback-echo"
148 # maybe with a smaller string...
151 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
152 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
159 if test "$prev" != 'sed 50q "$0"'; then
160 echo_test_string=`eval $prev`
161 export echo_test_string
162 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
164 # Oops. We lost completely, so just stick with echo.
173 # Copy echo and quote the copy suitably for passing to libtool from
174 # the Makefile, instead of quoting the original, which is used later.
176 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
177 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
182 --disable-libtool-lock avoid locking (might break parallel builds)"
184 --with-pic try to use only PIC/non-PIC objects [default=use both]"
186 # Initialize some variables set by options.
187 # The variables have the same names as the options, with
188 # dashes changed to underlines.
190 cache_file=./config.cache
199 program_transform_name=s,x,x,
207 bindir='${exec_prefix}/bin'
208 sbindir='${exec_prefix}/sbin'
209 libexecdir='${exec_prefix}/libexec'
210 datadir='${prefix}/share'
211 sysconfdir='${prefix}/etc'
212 sharedstatedir='${prefix}/com'
213 localstatedir='${prefix}/var'
214 libdir='${exec_prefix}/lib'
215 includedir='${prefix}/include'
216 oldincludedir='/usr/include'
217 infodir='${prefix}/info'
218 mandir='${prefix}/man'
220 # Initialize some other variables.
223 SHELL=${CONFIG_SHELL-/bin/sh}
224 # Maximum number of lines to put in a shell here document.
231 # If the previous option needs an argument, assign it.
232 if test -n "$ac_prev"; then
233 eval "$ac_prev=\$ac_option"
239 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
243 # Accept the important Cygnus configure options, so we can diagnose typos.
247 -bindir | --bindir | --bindi | --bind | --bin | --bi)
249 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
250 bindir="$ac_optarg" ;;
252 -build | --build | --buil | --bui | --bu)
254 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
255 build="$ac_optarg" ;;
257 -cache-file | --cache-file | --cache-fil | --cache-fi \
258 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
259 ac_prev=cache_file ;;
260 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
261 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
262 cache_file="$ac_optarg" ;;
264 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
266 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
268 datadir="$ac_optarg" ;;
270 -disable-* | --disable-*)
271 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
272 # Reject names that are not valid shell variable names.
273 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
274 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
276 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
277 eval "enable_${ac_feature}=no" ;;
279 -enable-* | --enable-*)
280 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
281 # Reject names that are not valid shell variable names.
282 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
283 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
285 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
290 eval "enable_${ac_feature}='$ac_optarg'" ;;
292 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
293 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
294 | --exec | --exe | --ex)
295 ac_prev=exec_prefix ;;
296 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
297 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
298 | --exec=* | --exe=* | --ex=*)
299 exec_prefix="$ac_optarg" ;;
301 -gas | --gas | --ga | --g)
302 # Obsolete; use --with-gas.
305 -help | --help | --hel | --he)
306 # Omit some internal or obsolete options to make the list less imposing.
307 # This message is too long to be a string in the A/UX 3.1 sh.
309 Usage: configure [options] [host]
310 Options: [defaults in brackets after descriptions]
312 --cache-file=FILE cache test results in FILE
313 --help print this message
314 --no-create do not create output files
315 --quiet, --silent do not print \`checking...' messages
316 --version print the version of autoconf that created configure
317 Directory and file names:
318 --prefix=PREFIX install architecture-independent files in PREFIX
320 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
322 --bindir=DIR user executables in DIR [EPREFIX/bin]
323 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
324 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
325 --datadir=DIR read-only architecture-independent data in DIR
327 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
328 --sharedstatedir=DIR modifiable architecture-independent data in DIR
330 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
331 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
332 --includedir=DIR C header files in DIR [PREFIX/include]
333 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
334 --infodir=DIR info documentation in DIR [PREFIX/info]
335 --mandir=DIR man documentation in DIR [PREFIX/man]
336 --srcdir=DIR find the sources in DIR [configure dir or ..]
337 --program-prefix=PREFIX prepend PREFIX to installed program names
338 --program-suffix=SUFFIX append SUFFIX to installed program names
339 --program-transform-name=PROGRAM
340 run sed PROGRAM on installed program names
344 --build=BUILD configure for building on BUILD [BUILD=HOST]
345 --host=HOST configure for HOST [guessed]
346 --target=TARGET configure for TARGET [TARGET=HOST]
347 Features and packages:
348 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
349 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
350 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
351 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
352 --x-includes=DIR X include files are in DIR
353 --x-libraries=DIR X library files are in DIR
355 if test -n "$ac_help"; then
356 echo "--enable and --with options recognized:$ac_help"
360 -host | --host | --hos | --ho)
362 -host=* | --host=* | --hos=* | --ho=*)
365 -includedir | --includedir | --includedi | --included | --include \
366 | --includ | --inclu | --incl | --inc)
367 ac_prev=includedir ;;
368 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
369 | --includ=* | --inclu=* | --incl=* | --inc=*)
370 includedir="$ac_optarg" ;;
372 -infodir | --infodir | --infodi | --infod | --info | --inf)
374 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
375 infodir="$ac_optarg" ;;
377 -libdir | --libdir | --libdi | --libd)
379 -libdir=* | --libdir=* | --libdi=* | --libd=*)
380 libdir="$ac_optarg" ;;
382 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
383 | --libexe | --libex | --libe)
384 ac_prev=libexecdir ;;
385 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
386 | --libexe=* | --libex=* | --libe=*)
387 libexecdir="$ac_optarg" ;;
389 -localstatedir | --localstatedir | --localstatedi | --localstated \
390 | --localstate | --localstat | --localsta | --localst \
391 | --locals | --local | --loca | --loc | --lo)
392 ac_prev=localstatedir ;;
393 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
394 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
395 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
396 localstatedir="$ac_optarg" ;;
398 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
400 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
401 mandir="$ac_optarg" ;;
404 # Obsolete; use --without-fp.
407 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
411 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
412 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
415 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
416 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
417 | --oldin | --oldi | --old | --ol | --o)
418 ac_prev=oldincludedir ;;
419 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
420 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
421 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
422 oldincludedir="$ac_optarg" ;;
424 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
426 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
427 prefix="$ac_optarg" ;;
429 -program-prefix | --program-prefix | --program-prefi | --program-pref \
430 | --program-pre | --program-pr | --program-p)
431 ac_prev=program_prefix ;;
432 -program-prefix=* | --program-prefix=* | --program-prefi=* \
433 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
434 program_prefix="$ac_optarg" ;;
436 -program-suffix | --program-suffix | --program-suffi | --program-suff \
437 | --program-suf | --program-su | --program-s)
438 ac_prev=program_suffix ;;
439 -program-suffix=* | --program-suffix=* | --program-suffi=* \
440 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
441 program_suffix="$ac_optarg" ;;
443 -program-transform-name | --program-transform-name \
444 | --program-transform-nam | --program-transform-na \
445 | --program-transform-n | --program-transform- \
446 | --program-transform | --program-transfor \
447 | --program-transfo | --program-transf \
448 | --program-trans | --program-tran \
449 | --progr-tra | --program-tr | --program-t)
450 ac_prev=program_transform_name ;;
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 program_transform_name="$ac_optarg" ;;
460 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
461 | -silent | --silent | --silen | --sile | --sil)
464 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
466 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
468 sbindir="$ac_optarg" ;;
470 -sharedstatedir | --sharedstatedir | --sharedstatedi \
471 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
472 | --sharedst | --shareds | --shared | --share | --shar \
474 ac_prev=sharedstatedir ;;
475 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
476 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
477 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
479 sharedstatedir="$ac_optarg" ;;
481 -site | --site | --sit)
483 -site=* | --site=* | --sit=*)
486 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
488 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
489 srcdir="$ac_optarg" ;;
491 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
492 | --syscon | --sysco | --sysc | --sys | --sy)
493 ac_prev=sysconfdir ;;
494 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
495 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
496 sysconfdir="$ac_optarg" ;;
498 -target | --target | --targe | --targ | --tar | --ta | --t)
500 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
501 target="$ac_optarg" ;;
503 -v | -verbose | --verbose | --verbos | --verbo | --verb)
506 -version | --version | --versio | --versi | --vers)
507 echo "configure generated by autoconf version 2.13"
511 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
512 # Reject names that are not valid shell variable names.
513 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
514 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
516 ac_package=`echo $ac_package| sed 's/-/_/g'`
521 eval "with_${ac_package}='$ac_optarg'" ;;
523 -without-* | --without-*)
524 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
525 # Reject names that are not valid shell variable names.
526 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
527 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
529 ac_package=`echo $ac_package| sed 's/-/_/g'`
530 eval "with_${ac_package}=no" ;;
533 # Obsolete; use --with-x.
536 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
537 | --x-incl | --x-inc | --x-in | --x-i)
538 ac_prev=x_includes ;;
539 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
540 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
541 x_includes="$ac_optarg" ;;
543 -x-libraries | --x-libraries | --x-librarie | --x-librari \
544 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
545 ac_prev=x_libraries ;;
546 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
547 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
548 x_libraries="$ac_optarg" ;;
550 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
554 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
555 echo "configure: warning: $ac_option: invalid host type" 1>&2
557 if test "x$nonopt" != xNONE; then
558 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
566 if test -n "$ac_prev"; then
567 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
570 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
572 # File descriptor usage:
575 # 2 errors and warnings
576 # 3 some systems may open it to /dev/tty
577 # 4 used on the Kubota Titan
578 # 6 checking for... messages and results
579 # 5 compiler messages saved in config.log
580 if test "$silent" = yes; then
588 This file contains any messages produced by compilers while
589 running configure, to aid debugging if configure makes a mistake.
592 # Strip out --no-create and --no-recursion so they do not pile up.
593 # Also quote any args containing shell metacharacters.
598 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
599 | --no-cr | --no-c) ;;
600 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
601 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
602 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
603 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
604 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
609 # Only set these to C if already set. These must not be set unconditionally
610 # because not all systems understand e.g. LANG=C (notably SCO).
611 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
612 # Non-C LC_CTYPE values break the ctype check.
613 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
614 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
615 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
616 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
618 # confdefs.h avoids OS command line length limits that DEFS can exceed.
619 rm -rf conftest* confdefs.h
620 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
623 # A filename unique to this package, relative to the directory that
624 # configure is in, which we can look for to find out if srcdir is correct.
625 ac_unique_file=src/framing.c
627 # Find the source files, if location was not specified.
628 if test -z "$srcdir"; then
629 ac_srcdir_defaulted=yes
630 # Try the directory containing this script, then its parent.
632 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
633 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
635 if test ! -r $srcdir/$ac_unique_file; then
639 ac_srcdir_defaulted=no
641 if test ! -r $srcdir/$ac_unique_file; then
642 if test "$ac_srcdir_defaulted" = yes; then
643 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
645 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
648 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
650 # Prefer explicitly selected file to automatically selected ones.
651 if test -z "$CONFIG_SITE"; then
652 if test "x$prefix" != xNONE; then
653 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
655 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
658 for ac_site_file in $CONFIG_SITE; do
659 if test -r "$ac_site_file"; then
660 echo "loading site script $ac_site_file"
665 if test -r "$cache_file"; then
666 echo "loading cache $cache_file"
669 echo "creating cache $cache_file"
674 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
675 ac_cpp='$CPP $CPPFLAGS'
676 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
677 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
678 cross_compiling=$ac_cv_prog_cc_cross
682 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
683 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
684 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
691 ac_n= ac_c='\c' ac_t=
697 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
698 if test -f $ac_dir/install-sh; then
700 ac_install_sh="$ac_aux_dir/install-sh -c"
702 elif test -f $ac_dir/install.sh; then
704 ac_install_sh="$ac_aux_dir/install.sh -c"
708 if test -z "$ac_aux_dir"; then
709 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
711 ac_config_guess=$ac_aux_dir/config.guess
712 ac_config_sub=$ac_aux_dir/config.sub
713 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
715 # Find a good install program. We prefer a C program (faster),
716 # so one script is as good as another. But avoid the broken or
717 # incompatible versions:
718 # SysV /etc/install, /usr/sbin/install
719 # SunOS /usr/etc/install
722 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
723 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
724 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
725 # ./install, which can be erroneously created by make from ./install.sh.
726 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
727 echo "configure:728: checking for a BSD compatible install" >&5
728 if test -z "$INSTALL"; then
729 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
730 echo $ac_n "(cached) $ac_c" 1>&6
732 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
733 for ac_dir in $PATH; do
734 # Account for people who put trailing slashes in PATH elements.
736 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
738 # OSF1 and SCO ODT 3.0 have their own names for install.
739 # Don't use installbsd from OSF since it installs stuff as root
741 for ac_prog in ginstall scoinst install; do
742 if test -f $ac_dir/$ac_prog; then
743 if test $ac_prog = install &&
744 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
745 # AIX install. It has an incompatible calling convention.
748 ac_cv_path_install="$ac_dir/$ac_prog -c"
759 if test "${ac_cv_path_install+set}" = set; then
760 INSTALL="$ac_cv_path_install"
762 # As a last resort, use the slow shell script. We don't cache a
763 # path for INSTALL within a source directory, because that will
764 # break other packages using the cache if that directory is
765 # removed, or if the path is relative.
766 INSTALL="$ac_install_sh"
769 echo "$ac_t""$INSTALL" 1>&6
771 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
772 # It thinks the first close brace ends the variable substitution.
773 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
775 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
777 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
779 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
780 echo "configure:781: checking whether build environment is sane" >&5
783 echo timestamp > conftestfile
784 # Do `set' in a subshell so we don't clobber the current shell's
785 # arguments. Must try -L first in case configure is actually a
786 # symlink; some systems play weird games with the mod time of symlinks
787 # (eg FreeBSD returns the mod time of the symlink's containing
790 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
791 if test "$*" = "X"; then
793 set X `ls -t $srcdir/configure conftestfile`
795 if test "$*" != "X $srcdir/configure conftestfile" \
796 && test "$*" != "X conftestfile $srcdir/configure"; then
798 # If neither matched, then we have a broken ls. This can happen
799 # if, for instance, CONFIG_SHELL is bash and it inherits a
800 # broken ls alias from the environment. This has actually
801 # happened. Such a system could not be considered "sane".
802 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
803 alias in your environment" 1>&2; exit 1; }
806 test "$2" = conftestfile
812 { echo "configure: error: newly created file is older than distributed files!
813 Check your system clock" 1>&2; exit 1; }
816 echo "$ac_t""yes" 1>&6
817 if test "$program_transform_name" = s,x,x,; then
818 program_transform_name=
820 # Double any \ or $. echo might interpret backslashes.
821 cat <<\EOF_SED > conftestsed
822 s,\\,\\\\,g; s,\$,$$,g
824 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
827 test "$program_prefix" != NONE &&
828 program_transform_name="s,^,${program_prefix},; $program_transform_name"
829 # Use a double $ so make ignores it.
830 test "$program_suffix" != NONE &&
831 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
833 # sed with no file args requires a program.
834 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
836 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
837 echo "configure:838: checking whether ${MAKE-make} sets \${MAKE}" >&5
838 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
839 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
840 echo $ac_n "(cached) $ac_c" 1>&6
842 cat > conftestmake <<\EOF
844 @echo 'ac_maketemp="${MAKE}"'
846 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
847 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
848 if test -n "$ac_maketemp"; then
849 eval ac_cv_prog_make_${ac_make}_set=yes
851 eval ac_cv_prog_make_${ac_make}_set=no
855 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
856 echo "$ac_t""yes" 1>&6
859 echo "$ac_t""no" 1>&6
860 SET_MAKE="MAKE=${MAKE-make}"
868 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
869 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
871 cat >> confdefs.h <<EOF
872 #define PACKAGE "$PACKAGE"
875 cat >> confdefs.h <<EOF
876 #define VERSION "$VERSION"
881 missing_dir=`cd $ac_aux_dir && pwd`
882 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
883 echo "configure:884: checking for working aclocal" >&5
884 # Run test in a subshell; some versions of sh will print an error if
885 # an executable is not found, even if stderr is redirected.
886 # Redirect stdin to placate older versions of autoconf. Sigh.
887 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
889 echo "$ac_t""found" 1>&6
891 ACLOCAL="$missing_dir/missing aclocal"
892 echo "$ac_t""missing" 1>&6
895 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
896 echo "configure:897: checking for working autoconf" >&5
897 # Run test in a subshell; some versions of sh will print an error if
898 # an executable is not found, even if stderr is redirected.
899 # Redirect stdin to placate older versions of autoconf. Sigh.
900 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
902 echo "$ac_t""found" 1>&6
904 AUTOCONF="$missing_dir/missing autoconf"
905 echo "$ac_t""missing" 1>&6
908 echo $ac_n "checking for working automake""... $ac_c" 1>&6
909 echo "configure:910: checking for working automake" >&5
910 # Run test in a subshell; some versions of sh will print an error if
911 # an executable is not found, even if stderr is redirected.
912 # Redirect stdin to placate older versions of autoconf. Sigh.
913 if (automake --version) < /dev/null > /dev/null 2>&1; then
915 echo "$ac_t""found" 1>&6
917 AUTOMAKE="$missing_dir/missing automake"
918 echo "$ac_t""missing" 1>&6
921 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
922 echo "configure:923: checking for working autoheader" >&5
923 # Run test in a subshell; some versions of sh will print an error if
924 # an executable is not found, even if stderr is redirected.
925 # Redirect stdin to placate older versions of autoconf. Sigh.
926 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
927 AUTOHEADER=autoheader
928 echo "$ac_t""found" 1>&6
930 AUTOHEADER="$missing_dir/missing autoheader"
931 echo "$ac_t""missing" 1>&6
934 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
935 echo "configure:936: checking for working makeinfo" >&5
936 # Run test in a subshell; some versions of sh will print an error if
937 # an executable is not found, even if stderr is redirected.
938 # Redirect stdin to placate older versions of autoconf. Sigh.
939 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
941 echo "$ac_t""found" 1>&6
943 MAKEINFO="$missing_dir/missing makeinfo"
944 echo "$ac_t""missing" 1>&6
957 # Extract the first word of "gcc", so it can be a program name with args.
958 set dummy gcc; ac_word=$2
959 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
960 echo "configure:961: checking for $ac_word" >&5
961 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
962 echo $ac_n "(cached) $ac_c" 1>&6
964 if test -n "$CC"; then
965 ac_cv_prog_CC="$CC" # Let the user override the test.
967 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
969 for ac_dir in $ac_dummy; do
970 test -z "$ac_dir" && ac_dir=.
971 if test -f $ac_dir/$ac_word; then
980 if test -n "$CC"; then
981 echo "$ac_t""$CC" 1>&6
983 echo "$ac_t""no" 1>&6
986 if test -z "$CC"; then
987 # Extract the first word of "cc", so it can be a program name with args.
988 set dummy cc; ac_word=$2
989 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
990 echo "configure:991: checking for $ac_word" >&5
991 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
992 echo $ac_n "(cached) $ac_c" 1>&6
994 if test -n "$CC"; then
995 ac_cv_prog_CC="$CC" # Let the user override the test.
997 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1000 for ac_dir in $ac_dummy; do
1001 test -z "$ac_dir" && ac_dir=.
1002 if test -f $ac_dir/$ac_word; then
1003 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1004 ac_prog_rejected=yes
1012 if test $ac_prog_rejected = yes; then
1013 # We found a bogon in the path, so make sure we never use it.
1014 set dummy $ac_cv_prog_CC
1016 if test $# -gt 0; then
1017 # We chose a different compiler from the bogus one.
1018 # However, it has the same basename, so the bogon will be chosen
1019 # first if we set CC to just the basename; use the full file name.
1021 set dummy "$ac_dir/$ac_word" "$@"
1029 if test -n "$CC"; then
1030 echo "$ac_t""$CC" 1>&6
1032 echo "$ac_t""no" 1>&6
1035 if test -z "$CC"; then
1036 case "`uname -s`" in
1038 # Extract the first word of "cl", so it can be a program name with args.
1039 set dummy cl; ac_word=$2
1040 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1041 echo "configure:1042: checking for $ac_word" >&5
1042 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1043 echo $ac_n "(cached) $ac_c" 1>&6
1045 if test -n "$CC"; then
1046 ac_cv_prog_CC="$CC" # Let the user override the test.
1048 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1050 for ac_dir in $ac_dummy; do
1051 test -z "$ac_dir" && ac_dir=.
1052 if test -f $ac_dir/$ac_word; then
1061 if test -n "$CC"; then
1062 echo "$ac_t""$CC" 1>&6
1064 echo "$ac_t""no" 1>&6
1069 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1072 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1073 echo "configure:1074: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1076 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1077 ac_cpp='$CPP $CPPFLAGS'
1078 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1079 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1080 cross_compiling=$ac_cv_prog_cc_cross
1082 cat > conftest.$ac_ext << EOF
1084 #line 1085 "configure"
1085 #include "confdefs.h"
1089 if { (eval echo configure:1090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1090 ac_cv_prog_cc_works=yes
1091 # If we can't run a trivial program, we are probably using a cross compiler.
1092 if (./conftest; exit) 2>/dev/null; then
1093 ac_cv_prog_cc_cross=no
1095 ac_cv_prog_cc_cross=yes
1098 echo "configure: failed program was:" >&5
1099 cat conftest.$ac_ext >&5
1100 ac_cv_prog_cc_works=no
1104 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1105 ac_cpp='$CPP $CPPFLAGS'
1106 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1107 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1108 cross_compiling=$ac_cv_prog_cc_cross
1110 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1111 if test $ac_cv_prog_cc_works = no; then
1112 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1114 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1115 echo "configure:1116: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1116 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1117 cross_compiling=$ac_cv_prog_cc_cross
1119 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1120 echo "configure:1121: checking whether we are using GNU C" >&5
1121 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1122 echo $ac_n "(cached) $ac_c" 1>&6
1124 cat > conftest.c <<EOF
1129 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1136 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1138 if test $ac_cv_prog_gcc = yes; then
1144 ac_test_CFLAGS="${CFLAGS+set}"
1145 ac_save_CFLAGS="$CFLAGS"
1147 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1148 echo "configure:1149: checking whether ${CC-cc} accepts -g" >&5
1149 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1150 echo $ac_n "(cached) $ac_c" 1>&6
1152 echo 'void f(){}' > conftest.c
1153 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1162 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1163 if test "$ac_test_CFLAGS" = set; then
1164 CFLAGS="$ac_save_CFLAGS"
1165 elif test $ac_cv_prog_cc_g = yes; then
1166 if test "$GCC" = yes; then
1172 if test "$GCC" = yes; then
1179 # Find the correct PATH separator. Usually this is `:', but
1180 # DJGPP uses `;' like DOS.
1181 if test "X${PATH_SEPARATOR+set}" != Xset; then
1182 UNAME=${UNAME-`uname 2>/dev/null`}
1184 *-DOS) lt_cv_sys_path_separator=';' ;;
1185 *) lt_cv_sys_path_separator=':' ;;
1187 PATH_SEPARATOR=$lt_cv_sys_path_separator
1190 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1191 echo "configure:1192: checking for Cygwin environment" >&5
1192 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1193 echo $ac_n "(cached) $ac_c" 1>&6
1195 cat > conftest.$ac_ext <<EOF
1196 #line 1197 "configure"
1197 #include "confdefs.h"
1202 #define __CYGWIN__ __CYGWIN32__
1207 if { (eval echo configure:1208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1211 echo "configure: failed program was:" >&5
1212 cat conftest.$ac_ext >&5
1220 echo "$ac_t""$ac_cv_cygwin" 1>&6
1222 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1223 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1224 echo "configure:1225: checking for mingw32 environment" >&5
1225 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1226 echo $ac_n "(cached) $ac_c" 1>&6
1228 cat > conftest.$ac_ext <<EOF
1229 #line 1230 "configure"
1230 #include "confdefs.h"
1236 if { (eval echo configure:1237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1240 echo "configure: failed program was:" >&5
1241 cat conftest.$ac_ext >&5
1249 echo "$ac_t""$ac_cv_mingw32" 1>&6
1251 test "$ac_cv_mingw32" = yes && MINGW32=yes
1252 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1253 echo "configure:1254: checking how to run the C preprocessor" >&5
1254 # On Suns, sometimes $CPP names a directory.
1255 if test -n "$CPP" && test -d "$CPP"; then
1258 if test -z "$CPP"; then
1259 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1260 echo $ac_n "(cached) $ac_c" 1>&6
1262 # This must be in double quotes, not single quotes, because CPP may get
1263 # substituted into the Makefile and "${CC-cc}" will confuse make.
1265 # On the NeXT, cc -E runs the code through the compiler's parser,
1266 # not just through cpp.
1267 cat > conftest.$ac_ext <<EOF
1268 #line 1269 "configure"
1269 #include "confdefs.h"
1273 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1274 { (eval echo configure:1275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1275 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1276 if test -z "$ac_err"; then
1280 echo "configure: failed program was:" >&5
1281 cat conftest.$ac_ext >&5
1283 CPP="${CC-cc} -E -traditional-cpp"
1284 cat > conftest.$ac_ext <<EOF
1285 #line 1286 "configure"
1286 #include "confdefs.h"
1290 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1291 { (eval echo configure:1292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1292 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1293 if test -z "$ac_err"; then
1297 echo "configure: failed program was:" >&5
1298 cat conftest.$ac_ext >&5
1300 CPP="${CC-cc} -nologo -E"
1301 cat > conftest.$ac_ext <<EOF
1302 #line 1303 "configure"
1303 #include "confdefs.h"
1307 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1308 { (eval echo configure:1309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1309 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1310 if test -z "$ac_err"; then
1314 echo "configure: failed program was:" >&5
1315 cat conftest.$ac_ext >&5
1324 ac_cv_prog_CPP="$CPP"
1326 CPP="$ac_cv_prog_CPP"
1328 ac_cv_prog_CPP="$CPP"
1330 echo "$ac_t""$CPP" 1>&6
1332 # Check whether --enable-shared or --disable-shared was given.
1333 if test "${enable_shared+set}" = set; then
1334 enableval="$enable_shared"
1335 p=${PACKAGE-default}
1337 yes) enable_shared=yes ;;
1338 no) enable_shared=no ;;
1341 # Look at the argument we got. We use all the common list separators.
1342 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1343 for pkg in $enableval; do
1344 if test "X$pkg" = "X$p"; then
1355 # Check whether --enable-static or --disable-static was given.
1356 if test "${enable_static+set}" = set; then
1357 enableval="$enable_static"
1358 p=${PACKAGE-default}
1360 yes) enable_static=yes ;;
1361 no) enable_static=no ;;
1364 # Look at the argument we got. We use all the common list separators.
1365 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1366 for pkg in $enableval; do
1367 if test "X$pkg" = "X$p"; then
1378 # Check whether --enable-fast-install or --disable-fast-install was given.
1379 if test "${enable_fast_install+set}" = set; then
1380 enableval="$enable_fast_install"
1381 p=${PACKAGE-default}
1383 yes) enable_fast_install=yes ;;
1384 no) enable_fast_install=no ;;
1386 enable_fast_install=no
1387 # Look at the argument we got. We use all the common list separators.
1388 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1389 for pkg in $enableval; do
1390 if test "X$pkg" = "X$p"; then
1391 enable_fast_install=yes
1398 enable_fast_install=yes
1402 # Make sure we can run config.sub.
1403 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1404 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1407 echo $ac_n "checking host system type""... $ac_c" 1>&6
1408 echo "configure:1409: checking host system type" >&5
1411 case "$host_alias" in
1415 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1416 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1418 *) host_alias=$nonopt ;;
1422 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1423 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1424 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1425 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1426 echo "$ac_t""$host" 1>&6
1428 echo $ac_n "checking build system type""... $ac_c" 1>&6
1429 echo "configure:1430: checking build system type" >&5
1432 case "$build_alias" in
1435 NONE) build_alias=$host_alias ;;
1436 *) build_alias=$nonopt ;;
1440 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1441 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1442 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1443 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1444 echo "$ac_t""$build" 1>&6
1446 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1447 if test "${with_gnu_ld+set}" = set; then
1448 withval="$with_gnu_ld"
1449 test "$withval" = no || with_gnu_ld=yes
1455 if test "$GCC" = yes; then
1456 # Check if gcc -print-prog-name=ld gives a path.
1457 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1458 echo "configure:1459: checking for ld used by GCC" >&5
1461 # gcc leaves a trailing carriage return which upsets mingw
1462 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1464 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1467 # Accept absolute paths.
1468 [\\/]* | [A-Za-z]:[\\/]*)
1469 re_direlt='/[^/][^/]*/\.\./'
1470 # Canonicalize the path of ld
1471 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1472 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1473 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1475 test -z "$LD" && LD="$ac_prog"
1478 # If it fails, then pretend we aren't using GCC.
1482 # If it is relative, then search for the first ld in PATH.
1486 elif test "$with_gnu_ld" = yes; then
1487 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1488 echo "configure:1489: checking for GNU ld" >&5
1490 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1491 echo "configure:1492: checking for non-GNU ld" >&5
1493 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1494 echo $ac_n "(cached) $ac_c" 1>&6
1496 if test -z "$LD"; then
1497 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1498 for ac_dir in $PATH; do
1499 test -z "$ac_dir" && ac_dir=.
1500 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1501 lt_cv_path_LD="$ac_dir/$ac_prog"
1502 # Check to see if the program is GNU ld. I'd rather use --version,
1503 # but apparently some GNU ld's only accept -v.
1504 # Break only if it was the GNU/non-GNU ld that we prefer.
1505 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1506 test "$with_gnu_ld" != no && break
1508 test "$with_gnu_ld" != yes && break
1514 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1519 if test -n "$LD"; then
1520 echo "$ac_t""$LD" 1>&6
1522 echo "$ac_t""no" 1>&6
1524 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1525 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1526 echo "configure:1527: checking if the linker ($LD) is GNU ld" >&5
1527 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1528 echo $ac_n "(cached) $ac_c" 1>&6
1530 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1531 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1532 lt_cv_prog_gnu_ld=yes
1534 lt_cv_prog_gnu_ld=no
1538 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1539 with_gnu_ld=$lt_cv_prog_gnu_ld
1542 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1543 echo "configure:1544: checking for $LD option to reload object files" >&5
1544 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1545 echo $ac_n "(cached) $ac_c" 1>&6
1547 lt_cv_ld_reload_flag='-r'
1550 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1551 reload_flag=$lt_cv_ld_reload_flag
1552 test -n "$reload_flag" && reload_flag=" $reload_flag"
1554 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1555 echo "configure:1556: checking for BSD-compatible nm" >&5
1556 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1557 echo $ac_n "(cached) $ac_c" 1>&6
1559 if test -n "$NM"; then
1560 # Let the user override the test.
1563 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1564 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1565 test -z "$ac_dir" && ac_dir=.
1566 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1567 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1568 # Check to see if the nm accepts a BSD-compat flag.
1569 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1570 # nm: unknown option "B" ignored
1571 # Tru64's nm complains that /dev/null is an invalid object file
1572 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1573 lt_cv_path_NM="$tmp_nm -B"
1575 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1576 lt_cv_path_NM="$tmp_nm -p"
1579 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1580 continue # so that we can try to find one that supports BSD flags
1585 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1590 echo "$ac_t""$NM" 1>&6
1592 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
1593 echo "configure:1594: checking for a sed that does not truncate output" >&5
1594 if eval "test \"`echo '$''{'lt_cv_path_SED'+set}'`\" = set"; then
1595 echo $ac_n "(cached) $ac_c" 1>&6
1597 # Loop through the user's path and test for sed and gsed.
1598 # Then use that list of sed's as ones to test for truncation.
1599 as_executable_p="test -f"
1600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1604 test -z "$as_dir" && as_dir=.
1605 for ac_prog in sed gsed; do
1606 for ac_exec_ext in '' $ac_executable_extensions; do
1607 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1608 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
1614 # Create a temporary directory, and hook for its removal unless debugging.
1617 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
1618 trap '{ (exit 1); exit 1; }' 1 2 13 15
1621 # Create a (secure) tmp directory for tmp files.
1624 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
1625 test -n "$tmp" && test -d "$tmp"
1628 tmp=$TMPDIR/sed$$-$RANDOM
1629 (umask 077 && mkdir $tmp)
1632 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
1633 { (exit 1); exit 1; }
1637 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
1638 # along with /bin/sed that truncates output.
1639 for _sed in $_sed_list /usr/xpg4/bin/sed; do
1640 test ! -f ${_sed} && break
1641 cat /dev/null > "$tmp/sed.in"
1643 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
1644 # Check for GNU sed and select it if it is found.
1645 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
1646 lt_cv_path_SED=${_sed}
1650 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
1651 mv "$tmp/sed.tmp" "$tmp/sed.in"
1652 cp "$tmp/sed.in" "$tmp/sed.nl"
1653 echo >>"$tmp/sed.nl"
1654 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
1655 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
1656 # 40000 chars as input seems more than enough
1657 test $_count -gt 10 && break
1658 _count=`expr $_count + 1`
1659 if test $_count -gt $_max; then
1661 lt_cv_path_SED=$_sed
1669 if test "X$SED" != "X"; then
1674 echo "$ac_t""$SED" 1>&6
1676 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1677 echo "configure:1678: checking whether ln -s works" >&5
1678 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1679 echo $ac_n "(cached) $ac_c" 1>&6
1682 if ln -s X conftestdata 2>/dev/null
1685 ac_cv_prog_LN_S="ln -s"
1690 LN_S="$ac_cv_prog_LN_S"
1691 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1692 echo "$ac_t""yes" 1>&6
1694 echo "$ac_t""no" 1>&6
1697 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
1698 echo "configure:1699: checking how to recognise dependent libraries" >&5
1699 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1700 echo $ac_n "(cached) $ac_c" 1>&6
1702 lt_cv_file_magic_cmd='$MAGIC_CMD'
1703 lt_cv_file_magic_test_file=
1704 lt_cv_deplibs_check_method='unknown'
1705 # Need to set the preceding variable on all platforms that support
1706 # interlibrary dependencies.
1707 # 'none' -- dependencies not supported.
1708 # `unknown' -- same as none, but documents that we really don't know.
1709 # 'pass_all' -- all dependencies passed with no checks.
1710 # 'test_compile' -- check by making test program.
1711 # 'file_magic [[regex]]' -- check by looking for files in library path
1712 # which responds to the $file_magic_cmd with a given egrep regex.
1713 # If you have `file' or equivalent on your system and you're not sure
1714 # whether `pass_all' will *always* work, you probably want this one.
1718 lt_cv_deplibs_check_method=pass_all
1722 lt_cv_deplibs_check_method=pass_all
1726 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1727 lt_cv_file_magic_cmd='/usr/bin/file -L'
1728 lt_cv_file_magic_test_file=/shlib/libc.so
1731 cygwin* | mingw* | pw32*)
1732 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1733 lt_cv_file_magic_cmd='$OBJDUMP -f'
1736 darwin* | rhapsody*)
1737 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1738 lt_cv_file_magic_cmd='/usr/bin/file -L'
1740 rhapsody* | darwin1.[012])
1741 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
1744 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1750 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1753 # Not sure whether the presence of OpenBSD here was a mistake.
1754 # Let's accept both of them until this is cleared up.
1755 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1756 lt_cv_file_magic_cmd=/usr/bin/file
1757 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1761 lt_cv_deplibs_check_method=pass_all
1766 lt_cv_deplibs_check_method=pass_all
1770 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1771 lt_cv_file_magic_cmd=/usr/bin/file
1772 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1775 irix5* | irix6* | nonstopux*)
1777 irix5* | nonstopux*)
1778 # this will be overridden with pass_all, but let us keep it just in case
1779 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1783 *-32|*"-32 ") libmagic=32-bit;;
1784 *-n32|*"-n32 ") libmagic=N32;;
1785 *-64|*"-64 ") libmagic=64-bit;;
1786 *) libmagic=never-match;;
1788 # this will be overridden with pass_all, but let us keep it just in case
1789 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1792 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1793 lt_cv_deplibs_check_method=pass_all
1796 # This must be Linux ELF.
1799 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
1800 lt_cv_deplibs_check_method=pass_all ;;
1802 # glibc up to 2.1.1 does not perform some relocations on ARM
1803 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1805 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1809 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1810 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1812 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1817 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1818 lt_cv_file_magic_cmd=/usr/bin/file
1819 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1823 lt_cv_file_magic_cmd=/usr/bin/file
1824 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1825 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1826 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1828 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
1832 osf3* | osf4* | osf5*)
1833 # this will be overridden with pass_all, but let us keep it just in case
1834 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1835 lt_cv_file_magic_test_file=/shlib/libc.so
1836 lt_cv_deplibs_check_method=pass_all
1840 lt_cv_deplibs_check_method=pass_all
1844 lt_cv_deplibs_check_method=pass_all
1845 lt_cv_file_magic_test_file=/lib/libc.so
1848 sysv5uw[78]* | sysv4*uw2*)
1849 lt_cv_deplibs_check_method=pass_all
1852 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1853 case $host_vendor in
1855 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]'
1856 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1859 lt_cv_deplibs_check_method=pass_all
1862 lt_cv_file_magic_cmd='/bin/file'
1863 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
1866 lt_cv_file_magic_cmd='/bin/file'
1867 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
1868 lt_cv_file_magic_test_file=/lib/libc.so
1871 lt_cv_deplibs_check_method=pass_all
1879 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1880 file_magic_cmd=$lt_cv_file_magic_cmd
1881 deplibs_check_method=$lt_cv_deplibs_check_method
1883 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1884 echo "configure:1885: checking for object suffix" >&5
1885 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1886 echo $ac_n "(cached) $ac_c" 1>&6
1889 echo 'int i = 1;' > conftest.$ac_ext
1890 if { (eval echo configure:1891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1891 for ac_file in conftest.*; do
1894 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1898 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1903 echo "$ac_t""$ac_cv_objext" 1>&6
1904 OBJEXT=$ac_cv_objext
1905 ac_objext=$ac_cv_objext
1909 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1910 echo "configure:1911: checking for executable suffix" >&5
1911 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1912 echo $ac_n "(cached) $ac_c" 1>&6
1914 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1918 echo 'int main () { return 0; }' > conftest.$ac_ext
1920 if { (eval echo configure:1921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1921 for file in conftest.*; do
1923 *.$ac_ext | *.c | *.o | *.obj) ;;
1924 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1928 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1931 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1936 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1937 echo "$ac_t""${ac_cv_exeext}" 1>&6
1940 if test $host != $build; then
1941 ac_tool_prefix=${host_alias}-
1949 # Check for command to grab the raw symbol name followed by C symbol from nm.
1950 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
1951 echo "configure:1952: checking command to parse $NM output" >&5
1952 if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
1953 echo $ac_n "(cached) $ac_c" 1>&6
1956 # These are sane defaults that work on at least a few old systems.
1957 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
1959 # Character class describing NM global symbol codes.
1960 symcode='[BCDEGRST]'
1962 # Regexp to match symbols that can be accessed directly from C.
1963 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1965 # Transform the above into a raw symbol and a C symbol.
1966 symxfrm='\1 \2\3 \3'
1968 # Transform an extracted symbol line into a proper C declaration
1969 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1971 # Transform an extracted symbol line into symbol name and symbol address
1972 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'"
1974 # Define system-specific variables.
1979 cygwin* | mingw* | pw32*)
1980 symcode='[ABCDGISTW]'
1982 hpux*) # Its linker distinguishes data from code symbols
1983 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1984 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'"
1987 symcode='[BCDEGRST]'
1997 # Handle CRLF in mingw tool chain
2001 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2005 # If we're using GNU nm, then use its standard symbol codes.
2006 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2007 symcode='[ABCDGISTW]'
2010 # Try without a prefix undercore, then with it.
2011 for ac_symprfx in "" "_"; do
2013 # Write the raw and C identifiers.
2014 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2016 # Check to see that the pipe works correctly.
2019 cat > conftest.$ac_ext <<EOF
2024 void nm_test_func(){}
2028 int main(){nm_test_var='a';nm_test_func();return(0);}
2031 if { (eval echo configure:2032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2032 # Now try to grab the symbols.
2034 if { (eval echo configure:2035: \"$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
2035 # Try sorting and uniquifying the output.
2036 if sort "$nlist" | uniq > "$nlist"T; then
2037 mv -f "$nlist"T "$nlist"
2042 # Make sure that we snagged all the symbols we need.
2043 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
2044 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
2045 cat <<EOF > conftest.$ac_ext
2051 # Now generate the symbol file.
2052 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
2054 cat <<EOF >> conftest.$ac_ext
2055 #if defined (__STDC__) && __STDC__
2056 # define lt_ptr void *
2058 # define lt_ptr char *
2062 /* The mapping between symbol names and symbols. */
2067 lt_preloaded_symbols[] =
2070 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
2071 cat <<\EOF >> conftest.$ac_ext
2079 # Now try linking the two files.
2080 mv conftest.$ac_objext conftstm.$ac_objext
2082 save_CFLAGS="$CFLAGS"
2083 LIBS="conftstm.$ac_objext"
2084 CFLAGS="$CFLAGS$no_builtin_flag"
2085 if { (eval echo configure:2086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2089 CFLAGS="$save_CFLAGS"
2091 echo "cannot find nm_test_func in $nlist" >&5
2094 echo "cannot find nm_test_var in $nlist" >&5
2097 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
2100 echo "$progname: failed program was:" >&5
2101 cat conftest.$ac_ext >&5
2103 rm -f conftest* conftst*
2105 # Do not use the global_symbol_pipe unless it works.
2106 if test "$pipe_works" = yes; then
2109 lt_cv_sys_global_symbol_pipe=
2115 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
2116 if test -z "$lt_cv_sys_global_symbol_pipe"; then
2117 global_symbol_to_cdecl=
2118 global_symbol_to_c_name_address=
2120 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2121 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
2123 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
2125 echo "$ac_t""failed" 1>&6
2127 echo "$ac_t""ok" 1>&6
2130 for ac_hdr in dlfcn.h
2132 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2133 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2134 echo "configure:2135: checking for $ac_hdr" >&5
2135 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2136 echo $ac_n "(cached) $ac_c" 1>&6
2138 cat > conftest.$ac_ext <<EOF
2139 #line 2140 "configure"
2140 #include "confdefs.h"
2143 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2144 { (eval echo configure:2145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2145 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2146 if test -z "$ac_err"; then
2148 eval "ac_cv_header_$ac_safe=yes"
2151 echo "configure: failed program was:" >&5
2152 cat conftest.$ac_ext >&5
2154 eval "ac_cv_header_$ac_safe=no"
2158 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2159 echo "$ac_t""yes" 1>&6
2160 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2161 cat >> confdefs.h <<EOF
2162 #define $ac_tr_hdr 1
2166 echo "$ac_t""no" 1>&6
2175 # Only perform the check for file, if the check method requires it
2176 case $deplibs_check_method in
2178 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2179 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2180 echo "configure:2181: checking for ${ac_tool_prefix}file" >&5
2181 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2182 echo $ac_n "(cached) $ac_c" 1>&6
2186 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2189 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2192 ac_save_MAGIC_CMD="$MAGIC_CMD"
2193 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2194 ac_dummy="/usr/bin:$PATH"
2195 for ac_dir in $ac_dummy; do
2196 test -z "$ac_dir" && ac_dir=.
2197 if test -f $ac_dir/${ac_tool_prefix}file; then
2198 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2199 if test -n "$file_magic_test_file"; then
2200 case $deplibs_check_method in
2202 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2203 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2204 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2205 egrep "$file_magic_regex" > /dev/null; then
2210 *** Warning: the command libtool uses to detect shared libraries,
2211 *** $file_magic_cmd, produces output that libtool cannot recognize.
2212 *** The result is that libtool may fail to recognize shared libraries
2213 *** as such. This will affect the creation of libtool libraries that
2214 *** depend on shared libraries, but programs linked with such libtool
2215 *** libraries will work regardless of this problem. Nevertheless, you
2216 *** may want to report the problem to your system manager and/or to
2217 *** bug-libtool@gnu.org
2227 MAGIC_CMD="$ac_save_MAGIC_CMD"
2232 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2233 if test -n "$MAGIC_CMD"; then
2234 echo "$ac_t""$MAGIC_CMD" 1>&6
2236 echo "$ac_t""no" 1>&6
2239 if test -z "$lt_cv_path_MAGIC_CMD"; then
2240 if test -n "$ac_tool_prefix"; then
2241 echo $ac_n "checking for file""... $ac_c" 1>&6
2242 echo "configure:2243: checking for file" >&5
2243 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2244 echo $ac_n "(cached) $ac_c" 1>&6
2248 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2251 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2254 ac_save_MAGIC_CMD="$MAGIC_CMD"
2255 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2256 ac_dummy="/usr/bin:$PATH"
2257 for ac_dir in $ac_dummy; do
2258 test -z "$ac_dir" && ac_dir=.
2259 if test -f $ac_dir/file; then
2260 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2261 if test -n "$file_magic_test_file"; then
2262 case $deplibs_check_method in
2264 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2265 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2266 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2267 egrep "$file_magic_regex" > /dev/null; then
2272 *** Warning: the command libtool uses to detect shared libraries,
2273 *** $file_magic_cmd, produces output that libtool cannot recognize.
2274 *** The result is that libtool may fail to recognize shared libraries
2275 *** as such. This will affect the creation of libtool libraries that
2276 *** depend on shared libraries, but programs linked with such libtool
2277 *** libraries will work regardless of this problem. Nevertheless, you
2278 *** may want to report the problem to your system manager and/or to
2279 *** bug-libtool@gnu.org
2289 MAGIC_CMD="$ac_save_MAGIC_CMD"
2294 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2295 if test -n "$MAGIC_CMD"; then
2296 echo "$ac_t""$MAGIC_CMD" 1>&6
2298 echo "$ac_t""no" 1>&6
2310 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2311 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2312 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2313 echo "configure:2314: checking for $ac_word" >&5
2314 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2315 echo $ac_n "(cached) $ac_c" 1>&6
2317 if test -n "$RANLIB"; then
2318 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2320 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2322 for ac_dir in $ac_dummy; do
2323 test -z "$ac_dir" && ac_dir=.
2324 if test -f $ac_dir/$ac_word; then
2325 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2332 RANLIB="$ac_cv_prog_RANLIB"
2333 if test -n "$RANLIB"; then
2334 echo "$ac_t""$RANLIB" 1>&6
2336 echo "$ac_t""no" 1>&6
2340 if test -z "$ac_cv_prog_RANLIB"; then
2341 if test -n "$ac_tool_prefix"; then
2342 # Extract the first word of "ranlib", so it can be a program name with args.
2343 set dummy ranlib; ac_word=$2
2344 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2345 echo "configure:2346: checking for $ac_word" >&5
2346 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2347 echo $ac_n "(cached) $ac_c" 1>&6
2349 if test -n "$RANLIB"; then
2350 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2354 for ac_dir in $ac_dummy; do
2355 test -z "$ac_dir" && ac_dir=.
2356 if test -f $ac_dir/$ac_word; then
2357 ac_cv_prog_RANLIB="ranlib"
2362 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2365 RANLIB="$ac_cv_prog_RANLIB"
2366 if test -n "$RANLIB"; then
2367 echo "$ac_t""$RANLIB" 1>&6
2369 echo "$ac_t""no" 1>&6
2377 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2378 set dummy ${ac_tool_prefix}strip; ac_word=$2
2379 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2380 echo "configure:2381: checking for $ac_word" >&5
2381 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2382 echo $ac_n "(cached) $ac_c" 1>&6
2384 if test -n "$STRIP"; then
2385 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2387 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2389 for ac_dir in $ac_dummy; do
2390 test -z "$ac_dir" && ac_dir=.
2391 if test -f $ac_dir/$ac_word; then
2392 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2399 STRIP="$ac_cv_prog_STRIP"
2400 if test -n "$STRIP"; then
2401 echo "$ac_t""$STRIP" 1>&6
2403 echo "$ac_t""no" 1>&6
2407 if test -z "$ac_cv_prog_STRIP"; then
2408 if test -n "$ac_tool_prefix"; then
2409 # Extract the first word of "strip", so it can be a program name with args.
2410 set dummy strip; ac_word=$2
2411 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2412 echo "configure:2413: checking for $ac_word" >&5
2413 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2414 echo $ac_n "(cached) $ac_c" 1>&6
2416 if test -n "$STRIP"; then
2417 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2419 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2421 for ac_dir in $ac_dummy; do
2422 test -z "$ac_dir" && ac_dir=.
2423 if test -f $ac_dir/$ac_word; then
2424 ac_cv_prog_STRIP="strip"
2429 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2432 STRIP="$ac_cv_prog_STRIP"
2433 if test -n "$STRIP"; then
2434 echo "$ac_t""$STRIP" 1>&6
2436 echo "$ac_t""no" 1>&6
2448 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2449 if test "${enable_libtool_lock+set}" = set; then
2450 enableval="$enable_libtool_lock"
2454 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2456 # Some flags need to be propagated to the compiler or linker for good
2460 # Find out which ABI we are using.
2461 echo '#line 2462 "configure"' > conftest.$ac_ext
2462 if { (eval echo configure:2463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2463 case `/usr/bin/file conftest.$ac_objext` in
2479 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2480 SAVE_CFLAGS="$CFLAGS"
2481 CFLAGS="$CFLAGS -belf"
2482 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2483 echo "configure:2484: checking whether the C compiler needs -belf" >&5
2484 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2485 echo $ac_n "(cached) $ac_c" 1>&6
2489 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2490 ac_cpp='$CPP $CPPFLAGS'
2491 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2492 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2493 cross_compiling=$ac_cv_prog_cc_cross
2495 cat > conftest.$ac_ext <<EOF
2496 #line 2497 "configure"
2497 #include "confdefs.h"
2503 if { (eval echo configure:2504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2505 lt_cv_cc_needs_belf=yes
2507 echo "configure: failed program was:" >&5
2508 cat conftest.$ac_ext >&5
2510 lt_cv_cc_needs_belf=no
2514 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2515 ac_cpp='$CPP $CPPFLAGS'
2516 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2517 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2518 cross_compiling=$ac_cv_prog_cc_cross
2522 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2523 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2524 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2525 CFLAGS="$SAVE_CFLAGS"
2532 # Sed substitution that helps us do robust quoting. It backslashifies
2533 # metacharacters that are still active within double-quoted strings.
2534 Xsed='sed -e s/^X//'
2535 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
2537 # Same as above, but do not quote variable references.
2538 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
2540 # Sed substitution to delay expansion of an escaped shell variable in a
2541 # double_quote_subst'ed string.
2542 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2548 default_ofile=libtool
2549 can_build_shared=yes
2551 # All known linkers require a `.a' archive for static linking (except M$VC,
2552 # which needs '.lib').
2554 ltmain="$ac_aux_dir/ltmain.sh"
2555 ofile="$default_ofile"
2556 with_gnu_ld="$lt_cv_prog_gnu_ld"
2557 need_locks="$enable_libtool_lock"
2560 old_CFLAGS="$CFLAGS"
2562 # Set sane defaults for various variables
2563 test -z "$AR" && AR=ar
2564 test -z "$AR_FLAGS" && AR_FLAGS=cru
2565 test -z "$AS" && AS=as
2566 test -z "$CC" && CC=cc
2567 test -z "$DLLTOOL" && DLLTOOL=dlltool
2568 test -z "$LD" && LD=ld
2569 test -z "$LN_S" && LN_S="ln -s"
2570 test -z "$MAGIC_CMD" && MAGIC_CMD=file
2571 test -z "$NM" && NM=nm
2572 test -z "$OBJDUMP" && OBJDUMP=objdump
2573 test -z "$RANLIB" && RANLIB=:
2574 test -z "$STRIP" && STRIP=:
2575 test -z "$ac_objext" && ac_objext=o
2577 if test x"$host" != x"$build"; then
2578 ac_tool_prefix=${host_alias}-
2583 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
2586 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
2591 # AIX sometimes has problems with the GCC collect2 program. For some
2592 # reason, if we set the COLLECT_NAMES environment variable, the problems
2593 # vanish in a puff of smoke.
2594 if test "X${COLLECT_NAMES+set}" != Xset; then
2596 export COLLECT_NAMES
2601 # Determine commands to create old-style static archives.
2602 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
2603 old_postinstall_cmds='chmod 644 $oldlib'
2604 old_postuninstall_cmds=
2606 if test -n "$RANLIB"; then
2609 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
2612 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
2615 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2618 # Allow CC to be a program name with arguments.
2622 echo $ac_n "checking for objdir""... $ac_c" 1>&6
2623 echo "configure:2624: checking for objdir" >&5
2624 rm -f .libs 2>/dev/null
2625 mkdir .libs 2>/dev/null
2626 if test -d .libs; then
2629 # MS-DOS does not allow filenames that begin with a dot.
2632 rmdir .libs 2>/dev/null
2633 echo "$ac_t""$objdir" 1>&6
2636 # Check whether --with-pic or --without-pic was given.
2637 if test "${with_pic+set}" = set; then
2644 test -z "$pic_mode" && pic_mode=default
2646 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
2647 # in isolation, and that seeing it set (from the cache) indicates that
2648 # the associated values are set (in the cache) correctly too.
2649 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
2650 echo "configure:2651: checking for $compiler option to produce PIC" >&5
2651 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
2652 echo $ac_n "(cached) $ac_c" 1>&6
2655 lt_cv_prog_cc_shlib=
2657 lt_cv_prog_cc_static=
2658 lt_cv_prog_cc_no_builtin=
2659 lt_cv_prog_cc_can_build_shared=$can_build_shared
2661 if test "$GCC" = yes; then
2662 lt_cv_prog_cc_wl='-Wl,'
2663 lt_cv_prog_cc_static='-static'
2667 # Below there is a dirty hack to force normal static linking with -ldl
2668 # The problem is because libdl dynamically linked with both libc and
2669 # libC (AIX C++ library), which obviously doesn't included in libraries
2670 # list by gcc. This cause undefined symbols with -static flags.
2671 # This hack allows C programs to be linked with "-static -ldl", but
2672 # not sure about C++ programs.
2673 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
2676 # FIXME: we need at least 68020 code to build shared libraries, but
2677 # adding the `-m68020' flag to GCC prevents building anything better,
2679 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
2681 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
2682 # PIC is the default for these OSes.
2684 darwin* | rhapsody*)
2685 # PIC is the default on this platform
2686 # Common symbols not allowed in MH_DYLIB files
2687 lt_cv_prog_cc_pic='-fno-common'
2689 cygwin* | mingw* | pw32* | os2*)
2690 # This hack is so that the source file can tell whether it is being
2691 # built for inclusion in a dll (and should export symbols for example).
2692 lt_cv_prog_cc_pic='-DDLL_EXPORT'
2695 if test -d /usr/nec; then
2696 lt_cv_prog_cc_pic=-Kconform_pic
2700 lt_cv_prog_cc_pic='-fPIC'
2704 # PORTME Check for PIC flags for the system compiler.
2706 aix3* | aix4* | aix5*)
2707 lt_cv_prog_cc_wl='-Wl,'
2708 # All AIX code is PIC.
2709 if test "$host_cpu" = ia64; then
2710 # AIX 5 now supports IA64 processor
2711 lt_cv_prog_cc_static='-Bstatic'
2713 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
2717 hpux9* | hpux10* | hpux11*)
2718 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
2719 lt_cv_prog_cc_wl='-Wl,'
2720 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
2721 lt_cv_prog_cc_pic='+Z'
2724 irix5* | irix6* | nonstopux*)
2725 lt_cv_prog_cc_wl='-Wl,'
2726 lt_cv_prog_cc_static='-non_shared'
2727 # PIC (with -KPIC) is the default.
2730 cygwin* | mingw* | pw32* | os2*)
2731 # This hack is so that the source file can tell whether it is being
2732 # built for inclusion in a dll (and should export symbols for example).
2733 lt_cv_prog_cc_pic='-DDLL_EXPORT'
2737 lt_cv_prog_cc_pic='-KPIC'
2738 lt_cv_prog_cc_static='-Bstatic'
2741 osf3* | osf4* | osf5*)
2742 # All OSF/1 code is PIC.
2743 lt_cv_prog_cc_wl='-Wl,'
2744 lt_cv_prog_cc_static='-non_shared'
2748 lt_cv_prog_cc_pic='-Kpic'
2749 lt_cv_prog_cc_static='-dn'
2750 lt_cv_prog_cc_shlib='-belf'
2754 lt_cv_prog_cc_pic='-KPIC'
2755 lt_cv_prog_cc_static='-Bstatic'
2756 lt_cv_prog_cc_wl='-Wl,'
2760 lt_cv_prog_cc_pic='-PIC'
2761 lt_cv_prog_cc_static='-Bstatic'
2762 lt_cv_prog_cc_wl='-Qoption ld '
2765 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2766 lt_cv_prog_cc_pic='-KPIC'
2767 lt_cv_prog_cc_static='-Bstatic'
2768 lt_cv_prog_cc_wl='-Wl,'
2772 lt_cv_prog_cc_pic='-pic'
2773 lt_cv_prog_cc_static='-Bstatic'
2777 if test -d /usr/nec ;then
2778 lt_cv_prog_cc_pic='-Kconform_pic'
2779 lt_cv_prog_cc_static='-Bstatic'
2784 lt_cv_prog_cc_can_build_shared=no
2791 if test -z "$lt_cv_prog_cc_pic"; then
2792 echo "$ac_t""none" 1>&6
2794 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
2796 # Check to make sure the pic_flag actually works.
2797 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
2798 echo "configure:2799: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
2799 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
2800 echo $ac_n "(cached) $ac_c" 1>&6
2802 save_CFLAGS="$CFLAGS"
2803 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2804 cat > conftest.$ac_ext <<EOF
2805 #line 2806 "configure"
2806 #include "confdefs.h"
2812 if { (eval echo configure:2813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2815 hpux9* | hpux10* | hpux11*)
2816 # On HP-UX, both CC and GCC only warn that PIC is supported... then
2817 # they create non-PIC objects. So, if there were any warnings, we
2818 # assume that PIC is not supported.
2819 if test -s conftest.err; then
2820 lt_cv_prog_cc_pic_works=no
2822 lt_cv_prog_cc_pic_works=yes
2826 lt_cv_prog_cc_pic_works=yes
2831 echo "configure: failed program was:" >&5
2832 cat conftest.$ac_ext >&5
2834 lt_cv_prog_cc_pic_works=no
2838 CFLAGS="$save_CFLAGS"
2843 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
2845 lt_cv_prog_cc_can_build_shared=no
2847 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
2850 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
2853 # Check for any special shared library compilation flags.
2854 if test -n "$lt_cv_prog_cc_shlib"; then
2855 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
2856 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
2858 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
2859 lt_cv_prog_cc_can_build_shared=no
2863 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
2864 echo "configure:2865: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
2865 if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
2866 echo $ac_n "(cached) $ac_c" 1>&6
2868 lt_cv_prog_cc_static_works=no
2869 save_LDFLAGS="$LDFLAGS"
2870 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
2871 cat > conftest.$ac_ext <<EOF
2872 #line 2873 "configure"
2873 #include "confdefs.h"
2879 if { (eval echo configure:2880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2881 lt_cv_prog_cc_static_works=yes
2883 echo "configure: failed program was:" >&5
2884 cat conftest.$ac_ext >&5
2887 LDFLAGS="$save_LDFLAGS"
2892 # Belt *and* braces to stop my trousers falling down:
2893 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
2894 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
2896 pic_flag="$lt_cv_prog_cc_pic"
2897 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
2898 wl="$lt_cv_prog_cc_wl"
2899 link_static_flag="$lt_cv_prog_cc_static"
2900 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
2901 can_build_shared="$lt_cv_prog_cc_can_build_shared"
2904 # Check to see if options -o and -c are simultaneously supported by compiler
2905 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
2906 echo "configure:2907: checking if $compiler supports -c -o file.$ac_objext" >&5
2907 if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
2908 echo $ac_n "(cached) $ac_c" 1>&6
2911 $rm -r conftest 2>/dev/null
2914 echo "int some_variable = 0;" > conftest.$ac_ext
2916 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
2917 # that will create temporary files in the current directory regardless of
2918 # the output directory. Thus, making CWD read-only will cause this test
2919 # to fail, enabling locking or at least warning the user not to do parallel
2922 save_CFLAGS="$CFLAGS"
2923 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
2925 if { (eval echo configure:2926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
2926 # The compiler can only warn and ignore the option if not recognized
2927 # So say no if there are warnings
2928 if test -s out/conftest.err; then
2929 lt_cv_compiler_c_o=no
2931 lt_cv_compiler_c_o=yes
2934 # Append any errors to the config.log.
2935 cat out/conftest.err 1>&5
2936 lt_cv_compiler_c_o=no
2938 CFLAGS="$save_CFLAGS"
2944 $rm -r conftest 2>/dev/null
2948 compiler_c_o=$lt_cv_compiler_c_o
2949 echo "$ac_t""$compiler_c_o" 1>&6
2951 if test x"$compiler_c_o" = x"yes"; then
2952 # Check to see if we can write to a .lo
2953 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
2954 echo "configure:2955: checking if $compiler supports -c -o file.lo" >&5
2955 if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
2956 echo $ac_n "(cached) $ac_c" 1>&6
2959 lt_cv_compiler_o_lo=no
2960 save_CFLAGS="$CFLAGS"
2961 CFLAGS="$CFLAGS -c -o conftest.lo"
2962 save_objext="$ac_objext"
2964 cat > conftest.$ac_ext <<EOF
2965 #line 2966 "configure"
2966 #include "confdefs.h"
2969 int some_variable = 0;
2972 if { (eval echo configure:2973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2974 # The compiler can only warn and ignore the option if not recognized
2975 # So say no if there are warnings
2976 if test -s conftest.err; then
2977 lt_cv_compiler_o_lo=no
2979 lt_cv_compiler_o_lo=yes
2983 echo "configure: failed program was:" >&5
2984 cat conftest.$ac_ext >&5
2987 ac_objext="$save_objext"
2988 CFLAGS="$save_CFLAGS"
2992 compiler_o_lo=$lt_cv_compiler_o_lo
2993 echo "$ac_t""$compiler_o_lo" 1>&6
2998 # Check to see if we can do hard links to lock some files if needed
2999 hard_links="nottested"
3000 if test "$compiler_c_o" = no && test "$need_locks" != no; then
3001 # do not overwrite the value of need_locks provided by the user
3002 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
3003 echo "configure:3004: checking if we can lock with hard links" >&5
3006 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3008 ln conftest.a conftest.b 2>&5 || hard_links=no
3009 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3010 echo "$ac_t""$hard_links" 1>&6
3011 if test "$hard_links" = no; then
3012 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
3019 if test "$GCC" = yes; then
3020 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
3021 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
3022 echo "configure:3023: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3023 echo "int some_variable = 0;" > conftest.$ac_ext
3024 save_CFLAGS="$CFLAGS"
3025 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3026 compiler_rtti_exceptions=no
3027 cat > conftest.$ac_ext <<EOF
3028 #line 3029 "configure"
3029 #include "confdefs.h"
3032 int some_variable = 0;
3035 if { (eval echo configure:3036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3037 # The compiler can only warn and ignore the option if not recognized
3038 # So say no if there are warnings
3039 if test -s conftest.err; then
3040 compiler_rtti_exceptions=no
3042 compiler_rtti_exceptions=yes
3046 echo "configure: failed program was:" >&5
3047 cat conftest.$ac_ext >&5
3050 CFLAGS="$save_CFLAGS"
3051 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
3053 if test "$compiler_rtti_exceptions" = "yes"; then
3054 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3056 no_builtin_flag=' -fno-builtin'
3060 # See if the linker supports building shared libraries.
3061 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
3062 echo "configure:3063: checking whether the linker ($LD) supports shared libraries" >&5
3064 allow_undefined_flag=
3066 need_lib_prefix=unknown
3067 need_version=unknown
3068 # when you set need_version to no, make sure it does not cause -set_version
3069 # flags to be left without arguments
3071 archive_expsym_cmds=
3072 old_archive_from_new_cmds=
3073 old_archive_from_expsyms_cmds=
3074 export_dynamic_flag_spec=
3075 whole_archive_flag_spec=
3076 thread_safe_flag_spec=
3077 hardcode_into_libs=no
3078 hardcode_libdir_flag_spec=
3079 hardcode_libdir_separator=
3082 hardcode_shlibpath_var=unsupported
3084 link_all_deplibs=unknown
3085 always_export_symbols=no
3086 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
3087 # include_expsyms should be a list of space-separated symbols to be *always*
3088 # included in the symbol list
3090 # exclude_expsyms can be an egrep regular expression of symbols to exclude
3091 # it will be wrapped by ` (' and `)$', so one must not match beginning or
3092 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
3093 # as well as any symbol that contains `d'.
3094 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
3095 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
3096 # platforms (ab)use it in PIC code, but their linkers get confused if
3097 # the symbol is explicitly referenced. Since portable code cannot
3098 # rely on this symbol name, it's probably fine to never include it in
3099 # preloaded symbol tables.
3100 extract_expsyms_cmds=
3103 cygwin* | mingw* | pw32*)
3104 # FIXME: the MSVC++ port hasn't been tested in a loooong time
3105 # When not using gcc, we currently assume that we are using
3106 # Microsoft Visual C++.
3107 if test "$GCC" != yes; then
3117 if test "$with_gnu_ld" = yes; then
3118 # If archive_cmds runs LD, not CC, wlarc should be empty
3121 # See if GNU ld supports shared libraries.
3123 aix3* | aix4* | aix5*)
3124 # On AIX, the GNU linker is very broken
3125 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
3129 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
3130 *** to be unable to reliably create shared libraries on AIX.
3131 *** Therefore, libtool is disabling shared libraries support. If you
3132 *** really care for shared libraries, you may want to modify your PATH
3133 *** so that a non-GNU linker is found, and then restart.
3139 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)'
3140 hardcode_libdir_flag_spec='-L$libdir'
3141 hardcode_minus_L=yes
3143 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
3144 # that the semantics of dynamic libraries on AmigaOS, at least up
3145 # to version 4, is to share data among multiple programs linked
3146 # with the same dynamic library. Since this doesn't match the
3147 # behavior of shared libraries on other platforms, we can use
3153 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3154 allow_undefined_flag=unsupported
3155 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3156 # support --undefined. This deserves some investigation. FIXME
3157 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3163 cygwin* | mingw* | pw32*)
3164 # hardcode_libdir_flag_spec is actually meaningless, as there is
3165 # no search path for DLLs.
3166 hardcode_libdir_flag_spec='-L$libdir'
3167 allow_undefined_flag=unsupported
3168 always_export_symbols=yes
3170 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
3171 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
3172 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
3173 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
3174 else $CC -o impgen impgen.c ; fi)~
3175 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
3177 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
3179 # cygwin and mingw dlls have different entry points and sets of symbols
3181 # FIXME: what about values for MSVC?
3182 dll_entry=__cygwin_dll_entry@12
3183 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
3187 dll_entry=_DllMainCRTStartup@12
3188 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
3192 # mingw and cygwin differ, and it's simplest to just exclude the union
3193 # of the two symbol sets.
3194 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
3196 # recent cygwin and mingw systems supply a stub DllMain which the user
3197 # can override, but on older systems we have to supply one (in ltdll.c)
3198 if test "x$lt_cv_need_dllmain" = "xyes"; then
3199 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
3200 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~
3201 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
3207 # Extract the symbol export list from an `--export-all' def file,
3208 # then regenerate the def file from the symbol export list, so that
3209 # the compiled dll only exports the symbol export list.
3210 # Be careful not to strip the DATA tag left be newer dlltools.
3211 export_symbols_cmds="$ltdll_cmds"'
3212 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
3213 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
3215 # If the export-symbols file already is a .def file (1st line
3216 # is EXPORTS), use it as is.
3217 # If DATA tags from a recent dlltool are present, honour them!
3218 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
3219 cp $export_symbols $output_objdir/$soname-def;
3221 echo EXPORTS > $output_objdir/$soname-def;
3223 cat $export_symbols | while read symbol; do
3226 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
3227 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
3228 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
3230 _lt_hint=`expr 1 + \$_lt_hint`;
3234 $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~
3235 $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~
3236 $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~
3237 $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~
3238 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
3242 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3243 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3246 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3247 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3252 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
3256 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
3257 *** create shared libraries on Solaris systems. Therefore, libtool
3258 *** is disabling shared libraries support. We urge you to upgrade GNU
3259 *** binutils to release 2.9.1 or newer. Another option is to modify
3260 *** your PATH or compiler configuration so that the native linker is
3261 *** used, and then restart.
3264 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3265 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3266 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3273 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3276 hardcode_shlibpath_var=no
3280 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3281 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3282 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3289 if test "$ld_shlibs" = yes; then
3290 runpath_var=LD_RUN_PATH
3291 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
3292 export_dynamic_flag_spec='${wl}--export-dynamic'
3294 cygwin* | mingw* | pw32*)
3295 # dlltool doesn't understand --whole-archive et. al.
3296 whole_archive_flag_spec=
3299 # ancient GNU ld didn't support --whole-archive et. al.
3300 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
3301 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3303 whole_archive_flag_spec=
3309 # PORTME fill in a description of your system's linker (not GNU ld)
3312 allow_undefined_flag=unsupported
3313 always_export_symbols=yes
3314 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'
3315 # Note: this linker hardcodes the directories in LIBPATH if there
3316 # are no directories specified by -L.
3317 hardcode_minus_L=yes
3318 if test "$GCC" = yes && test -z "$link_static_flag"; then
3319 # Neither direct hardcoding nor static linking is supported with a
3321 hardcode_direct=unsupported
3326 if test "$host_cpu" = ia64; then
3327 # On IA64, the linker does run time linking by default, so we don't
3328 # have to do anything special.
3329 aix_use_runtimelinking=no
3330 exp_sym_flag='-Bexport'
3333 aix_use_runtimelinking=no
3335 # Test if we are trying to use run time linking or normal
3336 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3337 # need to do runtime linking.
3338 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
3339 for ld_flag in $LDFLAGS; do
3340 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
3341 aix_use_runtimelinking=yes
3347 exp_sym_flag='-bexport'
3348 no_entry_flag='-bnoentry'
3351 # When large executables or shared objects are built, AIX ld can
3352 # have problems creating the table of contents. If linking a library
3353 # or program results in "error TOC overflow" add -mminimal-toc to
3354 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3355 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3359 hardcode_libdir_separator=':'
3360 if test "$GCC" = yes; then
3361 case $host_os in aix4.[012]|aix4.[012].*)
3362 collect2name=`${CC} -print-prog-name=collect2`
3363 if test -f "$collect2name" && \
3364 strings "$collect2name" | grep resolve_lib_name >/dev/null
3366 # We have reworked collect2
3369 # We have old collect2
3370 hardcode_direct=unsupported
3371 # It fails to find uninstalled libraries when the uninstalled
3372 # path is not listed in the libpath. Setting hardcode_minus_L
3373 # to unsupported forces relinking
3374 hardcode_minus_L=yes
3375 hardcode_libdir_flag_spec='-L$libdir'
3376 hardcode_libdir_separator=
3380 shared_flag='-shared'
3383 if test "$host_cpu" = ia64; then
3384 shared_flag='${wl}-G'
3386 if test "$aix_use_runtimelinking" = yes; then
3387 shared_flag='${wl}-G'
3389 shared_flag='${wl}-bM:SRE'
3394 # It seems that -bexpall can do strange things, so it is better to
3395 # generate a list of symbols to export.
3396 always_export_symbols=yes
3397 if test "$aix_use_runtimelinking" = yes; then
3398 # Warning - without using the other runtime loading flags (-brtl),
3399 # -berok will link without error, but may produce a broken library.
3400 allow_undefined_flag='-berok'
3401 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
3402 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"
3404 if test "$host_cpu" = ia64; then
3405 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
3406 allow_undefined_flag="-z nodefs"
3407 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"
3409 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
3410 # Warning - without using the other run time loading flags,
3411 # -berok will link without error, but may produce a broken library.
3412 allow_undefined_flag='${wl}-berok'
3413 # This is a bit strange, but is similar to how AIX traditionally builds
3414 # it's shared libraries.
3415 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'
3421 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)'
3422 hardcode_libdir_flag_spec='-L$libdir'
3423 hardcode_minus_L=yes
3424 # see comment about different semantics on the GNU ld section
3428 cygwin* | mingw* | pw32*)
3429 # When not using gcc, we currently assume that we are using
3430 # Microsoft Visual C++.
3431 # hardcode_libdir_flag_spec is actually meaningless, as there is
3432 # no search path for DLLs.
3433 hardcode_libdir_flag_spec=' '
3434 allow_undefined_flag=unsupported
3435 # Tell ltmain to make .lib files, not .a files.
3437 # FIXME: Setting linknames here is a bad hack.
3438 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
3439 # The linker will automatically build a .lib file if we build a DLL.
3440 old_archive_from_new_cmds='true'
3441 # FIXME: Should let the user specify the lib program.
3442 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
3443 fix_srcfile_path='`cygpath -w "$srcfile"`'
3446 darwin* | rhapsody*)
3448 rhapsody* | darwin1.[012])
3449 allow_undefined_flag='-undefined suppress'
3452 allow_undefined_flag='-flat_namespace -undefined suppress'
3455 # FIXME: Relying on posixy $() will cause problems for
3456 # cross-compilation, but unfortunately the echo tests do not
3457 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
3458 # `"' quotes if we put them in here... so don't!
3459 archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
3460 # We need to add '_' to the symbols in $export_symbols first
3461 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
3463 hardcode_shlibpath_var=no
3464 whole_archive_flag_spec='-all_load $convenience'
3471 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
3472 # support. Future versions do this automatically, but an explicit c++rt0.o
3473 # does not break anything, and helps significantly (at the cost of a little
3476 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
3477 hardcode_libdir_flag_spec='-R$libdir'
3479 hardcode_shlibpath_var=no
3482 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
3484 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3486 hardcode_minus_L=yes
3487 hardcode_shlibpath_var=no
3490 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
3492 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
3493 hardcode_libdir_flag_spec='-R$libdir'
3495 hardcode_shlibpath_var=no
3498 hpux9* | hpux10* | hpux11*)
3500 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' ;;
3501 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
3503 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
3504 hardcode_libdir_separator=:
3506 hardcode_minus_L=yes # Not in the search PATH, but as the default
3507 # location of the library.
3508 export_dynamic_flag_spec='${wl}-E'
3511 irix5* | irix6* | nonstopux*)
3512 if test "$GCC" = yes; then
3513 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'
3515 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'
3517 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3518 hardcode_libdir_separator=:
3519 link_all_deplibs=yes
3523 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3524 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
3526 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
3528 hardcode_libdir_flag_spec='-R$libdir'
3530 hardcode_shlibpath_var=no
3534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3536 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3537 hardcode_libdir_separator=:
3538 hardcode_shlibpath_var=no
3543 hardcode_shlibpath_var=no
3544 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3545 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
3546 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3547 export_dynamic_flag_spec='${wl}-E'
3550 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
3551 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3552 hardcode_libdir_flag_spec='-R$libdir'
3555 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
3556 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3563 hardcode_libdir_flag_spec='-L$libdir'
3564 hardcode_minus_L=yes
3565 allow_undefined_flag=unsupported
3566 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'
3567 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
3571 if test "$GCC" = yes; then
3572 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3573 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'
3575 allow_undefined_flag=' -expect_unresolved \*'
3576 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'
3578 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3579 hardcode_libdir_separator=:
3582 osf4* | osf5*) # as osf3* with the addition of -msym flag
3583 if test "$GCC" = yes; then
3584 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3585 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'
3586 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3588 allow_undefined_flag=' -expect_unresolved \*'
3589 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'
3590 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
3591 $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'
3593 #Both c and cxx compiler support -rpath directly
3594 hardcode_libdir_flag_spec='-rpath $libdir'
3596 hardcode_libdir_separator=:
3600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3601 hardcode_shlibpath_var=no
3602 runpath_var=LD_RUN_PATH
3603 hardcode_runpath_var=yes
3604 export_dynamic_flag_spec='${wl}-Bexport'
3608 # gcc --version < 3.0 without binutils cannot create self contained
3609 # shared libraries reliably, requiring libgcc.a to resolve some of
3610 # the object symbols generated in some cases. Libraries that use
3611 # assert need libgcc.a to resolve __eprintf, for example. Linking
3612 # a copy of libgcc.a into every shared library to guarantee resolving
3613 # such symbols causes other problems: According to Tim Van Holder
3614 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
3615 # (to the application) exception stack for one thing.
3616 no_undefined_flag=' -z defs'
3617 if test "$GCC" = yes; then
3618 case `$CC --version 2>/dev/null` in
3622 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
3623 *** create self contained shared libraries on Solaris systems, without
3624 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
3625 *** -no-undefined support, which will at least allow you to build shared
3626 *** libraries. However, you may find that when you link such libraries
3627 *** into an application without using GCC, you have to manually add
3628 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
3629 *** upgrade to a newer version of GCC. Another option is to rebuild your
3630 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
3637 # $CC -shared without GNU ld will not create a library from C++
3638 # object files and a static libstdc++, better avoid it by now
3639 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3640 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3641 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3642 hardcode_libdir_flag_spec='-R$libdir'
3643 hardcode_shlibpath_var=no
3645 solaris2.[0-5] | solaris2.[0-5].*) ;;
3646 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
3647 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
3649 link_all_deplibs=yes
3653 if test "x$host_vendor" = xsequent; then
3654 # Use $CC to link under sequent, because it throws in some extra .o
3655 # files that make .init and .fini sections work.
3656 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
3658 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
3660 hardcode_libdir_flag_spec='-L$libdir'
3662 hardcode_minus_L=yes
3663 hardcode_shlibpath_var=no
3667 case $host_vendor in
3669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3670 hardcode_direct=yes # is this really true???
3673 ## LD is ld it makes a PLAMLIB
3674 ## CC just makes a GrossModule.
3675 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
3676 reload_cmds='$CC -r -o $output$reload_objs'
3680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3681 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
3684 runpath_var='LD_RUN_PATH'
3685 hardcode_shlibpath_var=no
3689 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3690 hardcode_shlibpath_var=no
3691 export_dynamic_flag_spec='-Bexport'
3695 no_undefined_flag=' -z text'
3696 # $CC -shared without GNU ld will not create a library from C++
3697 # object files and a static libstdc++, better avoid it by now
3698 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3699 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3700 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3701 hardcode_libdir_flag_spec=
3702 hardcode_shlibpath_var=no
3703 runpath_var='LD_RUN_PATH'
3707 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3708 hardcode_libdir_flag_spec='-L$libdir'
3709 hardcode_shlibpath_var=no
3713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3714 hardcode_libdir_flag_spec='-L$libdir'
3715 hardcode_shlibpath_var=no
3719 if test -d /usr/nec; then
3720 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3721 hardcode_shlibpath_var=no
3722 runpath_var=LD_RUN_PATH
3723 hardcode_runpath_var=yes
3729 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
3732 hardcode_shlibpath_var=no
3733 hardcode_runpath_var=yes
3734 runpath_var=LD_RUN_PATH
3737 sysv5uw7* | unixware7*)
3738 no_undefined_flag='${wl}-z ${wl}text'
3739 if test "$GCC" = yes; then
3740 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3742 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3744 runpath_var='LD_RUN_PATH'
3745 hardcode_shlibpath_var=no
3753 echo "$ac_t""$ld_shlibs" 1>&6
3754 test "$ld_shlibs" = no && can_build_shared=no
3756 # Check hardcoding attributes.
3757 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
3758 echo "configure:3759: checking how to hardcode library paths into programs" >&5
3760 if test -n "$hardcode_libdir_flag_spec" || \
3761 test -n "$runpath_var"; then
3763 # We can hardcode non-existant directories.
3764 if test "$hardcode_direct" != no &&
3765 # If the only mechanism to avoid hardcoding is shlibpath_var, we
3766 # have to relink, otherwise we might link with an installed library
3767 # when we should be linking with a yet-to-be-installed one
3768 ## test "$hardcode_shlibpath_var" != no &&
3769 test "$hardcode_minus_L" != no; then
3770 # Linking always hardcodes the temporary library directory.
3771 hardcode_action=relink
3773 # We can link without hardcoding, and we can hardcode nonexisting dirs.
3774 hardcode_action=immediate
3777 # We cannot hardcode anything, or else we can only hardcode existing
3779 hardcode_action=unsupported
3781 echo "$ac_t""$hardcode_action" 1>&6
3785 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
3786 echo "configure:3787: checking whether stripping libraries is possible" >&5
3787 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
3788 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3789 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3790 echo "$ac_t""yes" 1>&6
3792 echo "$ac_t""no" 1>&6
3795 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3796 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3798 # PORTME Fill in your ld.so characteristics
3799 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
3800 echo "configure:3801: checking dynamic linker characteristics" >&5
3802 libname_spec='lib$name'
3809 shlibpath_overrides_runpath=unknown
3811 dynamic_linker="$host_os ld.so"
3812 sys_lib_dlsearch_path_spec="/lib /usr/lib"
3813 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3818 library_names_spec='${libname}${release}.so$versuffix $libname.a'
3819 shlibpath_var=LIBPATH
3821 # AIX has no versioning support, so we append a major version to the name.
3822 soname_spec='${libname}${release}.so$major'
3827 if test "$host_cpu" = ia64; then
3828 # AIX 5 supports IA64
3829 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
3830 shlibpath_var=LD_LIBRARY_PATH
3832 # With GCC up to 2.95.x, collect2 would create an import file
3833 # for dependence libraries. The import file would start with
3834 # the line `#! .'. This would cause the generated library to
3835 # depend on `.', always an invalid library. This was fixed in
3836 # development snapshots of GCC prior to 3.0.
3838 aix4 | aix4.[01] | aix4.[01].*)
3839 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3841 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
3848 # AIX (on Power*) has no versioning support, so currently we can
3849 # not hardcode correct soname into executable. Probably we can
3850 # add versioning support to collect2, so additional links can
3851 # be useful in future.
3852 if test "$aix_use_runtimelinking" = yes; then
3853 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
3854 # instead of lib<name>.a to let people know that these are not
3855 # typical AIX shared libraries.
3856 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3858 # We preserve .a as extension for shared libraries through AIX4.2
3859 # and later when we are not doing run time linking.
3860 library_names_spec='${libname}${release}.a $libname.a'
3861 soname_spec='${libname}${release}.so$major'
3863 shlibpath_var=LIBPATH
3868 library_names_spec='$libname.ixlibrary $libname.a'
3869 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3870 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'
3874 library_names_spec='${libname}.so'
3875 dynamic_linker="$host_os ld.so"
3876 shlibpath_var=LIBRARY_PATH
3882 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3883 soname_spec='${libname}${release}.so$major'
3884 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
3885 shlibpath_var=LD_LIBRARY_PATH
3886 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
3887 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
3888 export_dynamic_flag_spec=-rdynamic
3889 # the default ld.so.conf also contains /usr/contrib/lib and
3890 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
3891 # libtool to hard-code these into programs
3894 cygwin* | mingw* | pw32*)
3895 version_type=windows
3898 case $GCC,$host_os in
3900 library_names_spec='$libname.dll.a'
3901 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
3902 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
3903 dldir=$destdir/`dirname \$dlpath`~
3904 test -d \$dldir || mkdir -p \$dldir~
3905 $install_prog .libs/$dlname \$dldir/$dlname'
3906 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
3907 dlpath=$dir/\$dldll~
3911 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
3912 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
3915 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
3918 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
3921 dynamic_linker='Win32 ld.exe'
3922 # FIXME: first we should search . and the directory the executable is in
3926 darwin* | rhapsody*)
3927 dynamic_linker="$host_os dyld"
3931 # FIXME: Relying on posixy $() will cause problems for
3932 # cross-compilation, but unfortunately the echo tests do not
3933 # yet detect zsh echo's removal of \ escapes.
3934 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
3935 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
3936 shlibpath_overrides_runpath=yes
3937 shlibpath_var=DYLD_LIBRARY_PATH
3945 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
3946 version_type=freebsd-$objformat
3947 case $version_type in
3949 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
3954 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
3958 shlibpath_var=LD_LIBRARY_PATH
3961 shlibpath_overrides_runpath=yes
3964 shlibpath_overrides_runpath=no
3965 hardcode_into_libs=yes
3974 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
3975 soname_spec='${libname}${release}.so$major'
3976 shlibpath_var=LD_LIBRARY_PATH
3977 hardcode_into_libs=yes
3980 hpux9* | hpux10* | hpux11*)
3981 # Give a soname corresponding to the major version so that dld.sl refuses to
3982 # link against other versions.
3983 dynamic_linker="$host_os dld.sl"
3987 shlibpath_var=SHLIB_PATH
3988 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3989 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
3990 soname_spec='${libname}${release}.sl$major'
3991 # HP-UX runs *really* slowly unless shared libraries are mode 555.
3992 postinstall_cmds='chmod 555 $lib'
3995 irix5* | irix6* | nonstopux*)
3997 nonstopux*) version_type=nonstopux ;;
3998 *) version_type=irix ;;
4002 soname_spec='${libname}${release}.so$major'
4003 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
4005 irix5* | nonstopux*)
4009 case $LD in # libtool.m4 will add one of these switches to LD
4010 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
4011 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
4012 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
4013 *) libsuff= shlibsuff= libmagic=never-match;;
4017 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4018 shlibpath_overrides_runpath=no
4019 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4020 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4023 # No shared lib support for Linux oldld, aout, or coff.
4024 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
4028 # This must be Linux ELF.
4033 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4034 soname_spec='${libname}${release}.so$major'
4035 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4036 shlibpath_var=LD_LIBRARY_PATH
4037 shlibpath_overrides_runpath=no
4038 # This implies no fast_install, which is unacceptable.
4039 # Some rework will be needed to allow for fast_install
4040 # before this can be enabled.
4041 hardcode_into_libs=yes
4043 # We used to test for /lib/ld.so.1 and disable shared libraries on
4044 # powerpc, because MkLinux only supported shared libraries with the
4045 # GNU dynamic linker. Since this was broken with cross compilers,
4046 # most powerpc-linux boxes support dynamic linking these days and
4047 # people can always --disable-shared, the test was removed, and we
4048 # assume the GNU/Linux dynamic linker is in use.
4049 dynamic_linker='GNU/Linux ld.so'
4056 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4057 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4058 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4059 dynamic_linker='NetBSD (a.out) ld.so'
4061 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
4062 soname_spec='${libname}${release}.so$major'
4063 dynamic_linker='NetBSD ld.elf_so'
4065 shlibpath_var=LD_LIBRARY_PATH
4066 shlibpath_overrides_runpath=yes
4067 hardcode_into_libs=yes
4072 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4073 shlibpath_var=LD_LIBRARY_PATH
4074 shlibpath_overrides_runpath=yes
4081 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4083 openbsd2.[89] | openbsd2.[89].*)
4084 shlibpath_overrides_runpath=no
4087 shlibpath_overrides_runpath=yes
4091 shlibpath_overrides_runpath=yes
4093 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4094 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4095 shlibpath_var=LD_LIBRARY_PATH
4099 libname_spec='$name'
4101 library_names_spec='$libname.dll $libname.a'
4102 dynamic_linker='OS/2 ld.exe'
4103 shlibpath_var=LIBPATH
4106 osf3* | osf4* | osf5*)
4109 soname_spec='${libname}${release}.so'
4110 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4111 shlibpath_var=LD_LIBRARY_PATH
4112 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4113 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4118 soname_spec='${libname}${release}.so$major'
4119 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4120 shlibpath_var=LD_LIBRARY_PATH
4127 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4128 soname_spec='${libname}${release}.so$major'
4129 shlibpath_var=LD_LIBRARY_PATH
4130 shlibpath_overrides_runpath=yes
4131 hardcode_into_libs=yes
4132 # ldd complains unless libraries are executable
4133 postinstall_cmds='chmod +x $lib'
4138 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4139 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4140 shlibpath_var=LD_LIBRARY_PATH
4141 shlibpath_overrides_runpath=yes
4142 if test "$with_gnu_ld" = yes; then
4148 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4150 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4151 soname_spec='${libname}${release}.so$major'
4152 shlibpath_var=LD_LIBRARY_PATH
4153 case $host_vendor in
4155 shlibpath_overrides_runpath=no
4157 export_dynamic_flag_spec='${wl}-Blargedynsym'
4158 runpath_var=LD_RUN_PATH
4166 shlibpath_overrides_runpath=no
4167 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4174 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4175 soname_spec='${libname}${release}.so$major'
4176 shlibpath_var=LD_LIBRARY_PATH
4183 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4184 soname_spec='${libname}${release}.so$major'
4185 shlibpath_var=LD_LIBRARY_PATH
4189 if test -d /usr/nec ;then
4191 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
4192 soname_spec='$libname.so.$major'
4193 shlibpath_var=LD_LIBRARY_PATH
4201 echo "$ac_t""$dynamic_linker" 1>&6
4202 test "$dynamic_linker" = no && can_build_shared=no
4204 # Report the final consequences.
4205 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
4206 echo "configure:4207: checking if libtool supports shared libraries" >&5
4207 echo "$ac_t""$can_build_shared" 1>&6
4209 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
4210 echo "configure:4211: checking whether to build shared libraries" >&5
4211 test "$can_build_shared" = "no" && enable_shared=no
4213 # On AIX, shared libraries and static libraries use the same namespace, and
4214 # are all built from PIC.
4217 test "$enable_shared" = yes && enable_static=no
4218 if test -n "$RANLIB"; then
4219 archive_cmds="$archive_cmds~\$RANLIB \$lib"
4220 postinstall_cmds='$RANLIB $lib'
4225 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4226 test "$enable_shared" = yes && enable_static=no
4230 echo "$ac_t""$enable_shared" 1>&6
4232 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
4233 echo "configure:4234: checking whether to build static libraries" >&5
4234 # Make sure either enable_shared or enable_static is yes.
4235 test "$enable_shared" = yes || enable_static=yes
4236 echo "$ac_t""$enable_static" 1>&6
4238 if test "$hardcode_action" = relink; then
4239 # Fast installation is not supported
4240 enable_fast_install=no
4241 elif test "$shlibpath_overrides_runpath" = yes ||
4242 test "$enable_shared" = no; then
4243 # Fast installation is not necessary
4244 enable_fast_install=needless
4247 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4248 if test "$GCC" = yes; then
4249 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4252 if test "x$enable_dlopen" != xyes; then
4253 enable_dlopen=unknown
4254 enable_dlopen_self=unknown
4255 enable_dlopen_self_static=unknown
4262 lt_cv_dlopen="load_add_on"
4264 lt_cv_dlopen_self=yes
4267 cygwin* | mingw* | pw32*)
4268 lt_cv_dlopen="LoadLibrary"
4273 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
4274 echo "configure:4275: checking for shl_load" >&5
4275 if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
4276 echo $ac_n "(cached) $ac_c" 1>&6
4278 cat > conftest.$ac_ext <<EOF
4279 #line 4280 "configure"
4280 #include "confdefs.h"
4281 /* System header to define __stub macros and hopefully few prototypes,
4282 which can conflict with char shl_load(); below. */
4284 /* Override any gcc2 internal prototype to avoid an error. */
4285 /* We use char because int might match the return type of a gcc2
4286 builtin and then its argument prototype would still apply. */
4291 /* The GNU C library defines this for functions which it implements
4292 to always fail with ENOSYS. Some functions are actually named
4293 something starting with __ and the normal name is an alias. */
4294 #if defined (__stub_shl_load) || defined (__stub___shl_load)
4302 if { (eval echo configure:4303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4304 eval "ac_cv_func_shl_load=yes"
4306 echo "configure: failed program was:" >&5
4307 cat conftest.$ac_ext >&5
4309 eval "ac_cv_func_shl_load=no"
4314 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
4315 echo "$ac_t""yes" 1>&6
4316 lt_cv_dlopen="shl_load"
4318 echo "$ac_t""no" 1>&6
4319 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
4320 echo "configure:4321: checking for shl_load in -ldld" >&5
4321 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
4322 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4323 echo $ac_n "(cached) $ac_c" 1>&6
4325 ac_save_LIBS="$LIBS"
4327 cat > conftest.$ac_ext <<EOF
4328 #line 4329 "configure"
4329 #include "confdefs.h"
4330 /* Override any gcc2 internal prototype to avoid an error. */
4331 /* We use char because int might match the return type of a gcc2
4332 builtin and then its argument prototype would still apply. */
4339 if { (eval echo configure:4340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4341 eval "ac_cv_lib_$ac_lib_var=yes"
4343 echo "configure: failed program was:" >&5
4344 cat conftest.$ac_ext >&5
4346 eval "ac_cv_lib_$ac_lib_var=no"
4349 LIBS="$ac_save_LIBS"
4352 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4353 echo "$ac_t""yes" 1>&6
4354 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
4356 echo "$ac_t""no" 1>&6
4357 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
4358 echo "configure:4359: checking for dlopen" >&5
4359 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
4360 echo $ac_n "(cached) $ac_c" 1>&6
4362 cat > conftest.$ac_ext <<EOF
4363 #line 4364 "configure"
4364 #include "confdefs.h"
4365 /* System header to define __stub macros and hopefully few prototypes,
4366 which can conflict with char dlopen(); below. */
4368 /* Override any gcc2 internal prototype to avoid an error. */
4369 /* We use char because int might match the return type of a gcc2
4370 builtin and then its argument prototype would still apply. */
4375 /* The GNU C library defines this for functions which it implements
4376 to always fail with ENOSYS. Some functions are actually named
4377 something starting with __ and the normal name is an alias. */
4378 #if defined (__stub_dlopen) || defined (__stub___dlopen)
4386 if { (eval echo configure:4387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4388 eval "ac_cv_func_dlopen=yes"
4390 echo "configure: failed program was:" >&5
4391 cat conftest.$ac_ext >&5
4393 eval "ac_cv_func_dlopen=no"
4398 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
4399 echo "$ac_t""yes" 1>&6
4400 lt_cv_dlopen="dlopen"
4402 echo "$ac_t""no" 1>&6
4403 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4404 echo "configure:4405: checking for dlopen in -ldl" >&5
4405 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4406 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4407 echo $ac_n "(cached) $ac_c" 1>&6
4409 ac_save_LIBS="$LIBS"
4411 cat > conftest.$ac_ext <<EOF
4412 #line 4413 "configure"
4413 #include "confdefs.h"
4414 /* Override any gcc2 internal prototype to avoid an error. */
4415 /* We use char because int might match the return type of a gcc2
4416 builtin and then its argument prototype would still apply. */
4423 if { (eval echo configure:4424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4425 eval "ac_cv_lib_$ac_lib_var=yes"
4427 echo "configure: failed program was:" >&5
4428 cat conftest.$ac_ext >&5
4430 eval "ac_cv_lib_$ac_lib_var=no"
4433 LIBS="$ac_save_LIBS"
4436 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4437 echo "$ac_t""yes" 1>&6
4438 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
4440 echo "$ac_t""no" 1>&6
4441 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
4442 echo "configure:4443: checking for dlopen in -lsvld" >&5
4443 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
4444 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4445 echo $ac_n "(cached) $ac_c" 1>&6
4447 ac_save_LIBS="$LIBS"
4449 cat > conftest.$ac_ext <<EOF
4450 #line 4451 "configure"
4451 #include "confdefs.h"
4452 /* Override any gcc2 internal prototype to avoid an error. */
4453 /* We use char because int might match the return type of a gcc2
4454 builtin and then its argument prototype would still apply. */
4461 if { (eval echo configure:4462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4463 eval "ac_cv_lib_$ac_lib_var=yes"
4465 echo "configure: failed program was:" >&5
4466 cat conftest.$ac_ext >&5
4468 eval "ac_cv_lib_$ac_lib_var=no"
4471 LIBS="$ac_save_LIBS"
4474 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4475 echo "$ac_t""yes" 1>&6
4476 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
4478 echo "$ac_t""no" 1>&6
4479 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
4480 echo "configure:4481: checking for dld_link in -ldld" >&5
4481 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
4482 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4483 echo $ac_n "(cached) $ac_c" 1>&6
4485 ac_save_LIBS="$LIBS"
4487 cat > conftest.$ac_ext <<EOF
4488 #line 4489 "configure"
4489 #include "confdefs.h"
4490 /* Override any gcc2 internal prototype to avoid an error. */
4491 /* We use char because int might match the return type of a gcc2
4492 builtin and then its argument prototype would still apply. */
4499 if { (eval echo configure:4500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4501 eval "ac_cv_lib_$ac_lib_var=yes"
4503 echo "configure: failed program was:" >&5
4504 cat conftest.$ac_ext >&5
4506 eval "ac_cv_lib_$ac_lib_var=no"
4509 LIBS="$ac_save_LIBS"
4512 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4513 echo "$ac_t""yes" 1>&6
4514 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
4516 echo "$ac_t""no" 1>&6
4537 if test "x$lt_cv_dlopen" != xno; then
4543 case $lt_cv_dlopen in
4545 save_CPPFLAGS="$CPPFLAGS"
4546 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
4548 save_LDFLAGS="$LDFLAGS"
4549 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
4552 LIBS="$lt_cv_dlopen_libs $LIBS"
4554 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
4555 echo "configure:4556: checking whether a program can dlopen itself" >&5
4556 if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
4557 echo $ac_n "(cached) $ac_c" 1>&6
4559 if test "$cross_compiling" = yes; then :
4560 lt_cv_dlopen_self=cross
4562 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4563 lt_status=$lt_dlunknown
4564 cat > conftest.$ac_ext <<EOF
4565 #line 4566 "configure"
4566 #include "confdefs.h"
4575 # define LT_DLGLOBAL RTLD_GLOBAL
4578 # define LT_DLGLOBAL DL_GLOBAL
4580 # define LT_DLGLOBAL 0
4584 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4585 find out it does not work in some platform. */
4586 #ifndef LT_DLLAZY_OR_NOW
4588 # define LT_DLLAZY_OR_NOW RTLD_LAZY
4591 # define LT_DLLAZY_OR_NOW DL_LAZY
4594 # define LT_DLLAZY_OR_NOW RTLD_NOW
4597 # define LT_DLLAZY_OR_NOW DL_NOW
4599 # define LT_DLLAZY_OR_NOW 0
4607 extern "C" void exit (int);
4610 void fnord() { int i=42;}
4613 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4614 int status = $lt_dlunknown;
4618 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
4619 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4620 /* dlclose (self); */
4626 if { (eval echo configure:4627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4627 (./conftest; exit; ) 2>/dev/null
4630 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
4631 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
4632 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
4635 # compilation failed
4636 lt_cv_dlopen_self=no
4644 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
4646 if test "x$lt_cv_dlopen_self" = xyes; then
4647 LDFLAGS="$LDFLAGS $link_static_flag"
4648 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
4649 echo "configure:4650: checking whether a statically linked program can dlopen itself" >&5
4650 if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
4651 echo $ac_n "(cached) $ac_c" 1>&6
4653 if test "$cross_compiling" = yes; then :
4654 lt_cv_dlopen_self_static=cross
4656 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4657 lt_status=$lt_dlunknown
4658 cat > conftest.$ac_ext <<EOF
4659 #line 4660 "configure"
4660 #include "confdefs.h"
4669 # define LT_DLGLOBAL RTLD_GLOBAL
4672 # define LT_DLGLOBAL DL_GLOBAL
4674 # define LT_DLGLOBAL 0
4678 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4679 find out it does not work in some platform. */
4680 #ifndef LT_DLLAZY_OR_NOW
4682 # define LT_DLLAZY_OR_NOW RTLD_LAZY
4685 # define LT_DLLAZY_OR_NOW DL_LAZY
4688 # define LT_DLLAZY_OR_NOW RTLD_NOW
4691 # define LT_DLLAZY_OR_NOW DL_NOW
4693 # define LT_DLLAZY_OR_NOW 0
4701 extern "C" void exit (int);
4704 void fnord() { int i=42;}
4707 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4708 int status = $lt_dlunknown;
4712 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
4713 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4714 /* dlclose (self); */
4720 if { (eval echo configure:4721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4721 (./conftest; exit; ) 2>/dev/null
4724 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
4725 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
4726 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
4729 # compilation failed
4730 lt_cv_dlopen_self_static=no
4738 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
4741 CPPFLAGS="$save_CPPFLAGS"
4742 LDFLAGS="$save_LDFLAGS"
4747 case $lt_cv_dlopen_self in
4748 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
4749 *) enable_dlopen_self=unknown ;;
4752 case $lt_cv_dlopen_self_static in
4753 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
4754 *) enable_dlopen_self_static=unknown ;;
4759 if test "$enable_shared" = yes && test "$GCC" = yes; then
4760 case $archive_cmds in
4762 # FIXME: we may have to deal with multi-command sequences.
4765 # Test whether the compiler implicitly links with -lc since on some
4766 # systems, -lgcc has to come before -lc. If gcc already passes -lc
4767 # to ld, don't add -lc before -lgcc.
4768 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
4769 echo "configure:4770: checking whether -lc should be explicitly linked in" >&5
4770 if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
4771 echo $ac_n "(cached) $ac_c" 1>&6
4774 echo 'static int dummy;' > conftest.$ac_ext
4776 if { (eval echo configure:4777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4779 libobjs=conftest.$ac_objext
4781 wl=$lt_cv_prog_cc_wl
4787 save_allow_undefined_flag=$allow_undefined_flag
4788 allow_undefined_flag=
4789 if { (eval echo configure:4790: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; }
4791 lt_cv_archive_cmds_need_lc=no
4793 lt_cv_archive_cmds_need_lc=yes
4795 allow_undefined_flag=$save_allow_undefined_flag
4797 cat conftest.err 1>&5
4801 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
4805 need_lc=${lt_cv_archive_cmds_need_lc-yes}
4807 # The second clause should only fire when bootstrapping the
4808 # libtool distribution, otherwise you forgot to ship ltmain.sh
4809 # with your package, and you will get complaints that there are
4810 # no rules to generate ltmain.sh.
4811 if test -f "$ltmain"; then
4814 # If there is no Makefile yet, we rely on a make rule to execute
4815 # `config.status --recheck' to rerun these tests and create the
4816 # libtool script then.
4817 test -f Makefile && make "$ltmain"
4820 if test -f "$ltmain"; then
4821 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
4824 echo creating $ofile
4826 # Now quote all the things that may contain metacharacters while being
4827 # careful not to overquote the AC_SUBSTed values. We take copies of the
4828 # variables and quote the copies for generation of the libtool script.
4829 for var in echo old_CC old_CFLAGS SED \
4830 AR AR_FLAGS CC LD LN_S NM SHELL \
4831 reload_flag reload_cmds wl \
4832 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
4833 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
4834 library_names_spec soname_spec \
4835 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
4836 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
4837 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
4838 old_striplib striplib file_magic_cmd export_symbols_cmds \
4839 deplibs_check_method allow_undefined_flag no_undefined_flag \
4840 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
4841 global_symbol_to_c_name_address \
4842 hardcode_libdir_flag_spec hardcode_libdir_separator \
4843 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4844 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
4847 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
4848 old_postinstall_cmds | old_postuninstall_cmds | \
4849 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
4850 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
4851 postinstall_cmds | postuninstall_cmds | \
4852 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4853 # Double-quote double-evaled strings.
4854 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4857 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4862 cat <<__EOF__ > "${ofile}T"
4865 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4866 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4867 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
4869 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
4870 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4872 # This program is free software; you can redistribute it and/or modify
4873 # it under the terms of the GNU General Public License as published by
4874 # the Free Software Foundation; either version 2 of the License, or
4875 # (at your option) any later version.
4877 # This program is distributed in the hope that it will be useful, but
4878 # WITHOUT ANY WARRANTY; without even the implied warranty of
4879 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4880 # General Public License for more details.
4882 # You should have received a copy of the GNU General Public License
4883 # along with this program; if not, write to the Free Software
4884 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4886 # As a special exception to the GNU General Public License, if you
4887 # distribute this file as part of a program that contains a
4888 # configuration script generated by Autoconf, you may include it under
4889 # the same distribution terms that you use for the rest of that program.
4891 # A sed that does not truncate output.
4894 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
4895 Xsed="${SED} -e s/^X//"
4897 # The HP-UX ksh and POSIX shell print the target directory to stdout
4899 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
4901 # ### BEGIN LIBTOOL CONFIG
4903 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4905 # Shell to use when invoking shell scripts.
4908 # Whether or not to build shared libraries.
4909 build_libtool_libs=$enable_shared
4911 # Whether or not to build static libraries.
4912 build_old_libs=$enable_static
4914 # Whether or not to add -lc for building shared libraries.
4915 build_libtool_need_lc=$need_lc
4917 # Whether or not to optimize for fast installation.
4918 fast_install=$enable_fast_install
4921 host_alias=$host_alias
4924 # An echo program that does not interpret backslashes.
4929 AR_FLAGS=$lt_AR_FLAGS
4931 # The default C compiler.
4934 # Is the compiler the GNU C compiler?
4937 # The linker used to build libraries.
4940 # Whether we need hard or soft links.
4943 # A BSD-compatible nm program.
4946 # A symbol stripping program
4949 # Used to examine libraries when file_magic_cmd begins "file"
4950 MAGIC_CMD=$MAGIC_CMD
4952 # Used on cygwin: DLL creation program.
4955 # Used on cygwin: object dumper.
4958 # Used on cygwin: assembler.
4961 # The name of the directory that contains temporary libtool files.
4964 # How to create reloadable object files.
4965 reload_flag=$lt_reload_flag
4966 reload_cmds=$lt_reload_cmds
4968 # How to pass a linker flag through the compiler.
4971 # Object file suffix (normally "o").
4974 # Old archive suffix (normally "a").
4977 # Executable file suffix (normally "").
4980 # Additional compiler flags for building library objects.
4981 pic_flag=$lt_pic_flag
4984 # Does compiler simultaneously support -c and -o options?
4985 compiler_c_o=$lt_compiler_c_o
4987 # Can we write directly to a .lo ?
4988 compiler_o_lo=$lt_compiler_o_lo
4990 # Must we lock files when doing compilation ?
4991 need_locks=$lt_need_locks
4993 # Do we need the lib prefix for modules?
4994 need_lib_prefix=$need_lib_prefix
4996 # Do we need a version for libraries?
4997 need_version=$need_version
4999 # Whether dlopen is supported.
5000 dlopen_support=$enable_dlopen
5002 # Whether dlopen of programs is supported.
5003 dlopen_self=$enable_dlopen_self
5005 # Whether dlopen of statically linked programs is supported.
5006 dlopen_self_static=$enable_dlopen_self_static
5008 # Compiler flag to prevent dynamic linking.
5009 link_static_flag=$lt_link_static_flag
5011 # Compiler flag to turn off builtin functions.
5012 no_builtin_flag=$lt_no_builtin_flag
5014 # Compiler flag to allow reflexive dlopens.
5015 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
5017 # Compiler flag to generate shared objects directly from archives.
5018 whole_archive_flag_spec=$lt_whole_archive_flag_spec
5020 # Compiler flag to generate thread-safe objects.
5021 thread_safe_flag_spec=$lt_thread_safe_flag_spec
5023 # Library versioning type.
5024 version_type=$version_type
5026 # Format of library name prefix.
5027 libname_spec=$lt_libname_spec
5029 # List of archive names. First name is the real one, the rest are links.
5030 # The last name is the one that the linker finds with -lNAME.
5031 library_names_spec=$lt_library_names_spec
5033 # The coded name of the library, if different from the real name.
5034 soname_spec=$lt_soname_spec
5036 # Commands used to build and install an old-style archive.
5038 old_archive_cmds=$lt_old_archive_cmds
5039 old_postinstall_cmds=$lt_old_postinstall_cmds
5040 old_postuninstall_cmds=$lt_old_postuninstall_cmds
5042 # Create an old-style archive from a shared archive.
5043 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
5045 # Create a temporary old-style archive to link instead of a shared archive.
5046 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
5048 # Commands used to build and install a shared archive.
5049 archive_cmds=$lt_archive_cmds
5050 archive_expsym_cmds=$lt_archive_expsym_cmds
5051 postinstall_cmds=$lt_postinstall_cmds
5052 postuninstall_cmds=$lt_postuninstall_cmds
5054 # Commands to strip libraries.
5055 old_striplib=$lt_old_striplib
5056 striplib=$lt_striplib
5058 # Method to check whether dependent libraries are shared objects.
5059 deplibs_check_method=$lt_deplibs_check_method
5061 # Command to use when deplibs_check_method == file_magic.
5062 file_magic_cmd=$lt_file_magic_cmd
5064 # Flag that allows shared libraries with undefined symbols to be built.
5065 allow_undefined_flag=$lt_allow_undefined_flag
5067 # Flag that forces no undefined symbols.
5068 no_undefined_flag=$lt_no_undefined_flag
5070 # Commands used to finish a libtool library installation in a directory.
5071 finish_cmds=$lt_finish_cmds
5073 # Same as above, but a single script fragment to be evaled but not shown.
5074 finish_eval=$lt_finish_eval
5076 # Take the output of nm and produce a listing of raw symbols and C names.
5077 global_symbol_pipe=$lt_global_symbol_pipe
5079 # Transform the output of nm in a proper C declaration
5080 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
5082 # Transform the output of nm in a C name address pair
5083 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
5085 # This is the shared library runtime path variable.
5086 runpath_var=$runpath_var
5088 # This is the shared library path variable.
5089 shlibpath_var=$shlibpath_var
5091 # Is shlibpath searched before the hard-coded library search path?
5092 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5094 # How to hardcode a shared library path into an executable.
5095 hardcode_action=$hardcode_action
5097 # Whether we should hardcode library paths into libraries.
5098 hardcode_into_libs=$hardcode_into_libs
5100 # Flag to hardcode \$libdir into a binary during linking.
5101 # This must work even if \$libdir does not exist.
5102 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
5104 # Whether we need a single -rpath flag with a separated argument.
5105 hardcode_libdir_separator=$lt_hardcode_libdir_separator
5107 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
5109 hardcode_direct=$hardcode_direct
5111 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5113 hardcode_minus_L=$hardcode_minus_L
5115 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5116 # the resulting binary.
5117 hardcode_shlibpath_var=$hardcode_shlibpath_var
5119 # Variables whose values should be saved in libtool wrapper scripts and
5120 # restored at relink time.
5121 variables_saved_for_relink="$variables_saved_for_relink"
5123 # Whether libtool must link a program against all its dependency libraries.
5124 link_all_deplibs=$link_all_deplibs
5126 # Compile-time system search path for libraries
5127 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5129 # Run-time system search path for libraries
5130 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5132 # Fix the shell variable \$srcfile for the compiler.
5133 fix_srcfile_path="$fix_srcfile_path"
5135 # Set to yes if exported symbols are required.
5136 always_export_symbols=$always_export_symbols
5138 # The commands to list exported symbols.
5139 export_symbols_cmds=$lt_export_symbols_cmds
5141 # The commands to extract the exported symbol list from a shared archive.
5142 extract_expsyms_cmds=$lt_extract_expsyms_cmds
5144 # Symbols that should not be listed in the preloaded symbols.
5145 exclude_expsyms=$lt_exclude_expsyms
5147 # Symbols that must always be exported.
5148 include_expsyms=$lt_include_expsyms
5150 # ### END LIBTOOL CONFIG
5156 cat <<\EOF >> "${ofile}T"
5158 # AIX sometimes has problems with the GCC collect2 program. For some
5159 # reason, if we set the COLLECT_NAMES environment variable, the problems
5160 # vanish in a puff of smoke.
5161 if test "X${COLLECT_NAMES+set}" != Xset; then
5163 export COLLECT_NAMES
5170 cygwin* | mingw* | pw32* | os2*)
5171 cat <<'EOF' >> "${ofile}T"
5172 # This is a source program that is used to create dlls on Windows
5173 # Don't remove nor modify the starting and closing comments
5174 # /* ltdll.c starts here */
5175 # #define WIN32_LEAN_AND_MEAN
5176 # #include <windows.h>
5177 # #undef WIN32_LEAN_AND_MEAN
5178 # #include <stdio.h>
5180 # #ifndef __CYGWIN__
5181 # # ifdef __CYGWIN32__
5182 # # define __CYGWIN__ __CYGWIN32__
5186 # #ifdef __cplusplus
5189 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
5190 # #ifdef __cplusplus
5195 # #include <cygwin/cygwin_dll.h>
5196 # DECLARE_CYGWIN_DLL( DllMain );
5198 # HINSTANCE __hDllInstance_base;
5201 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
5203 # __hDllInstance_base = hInst;
5206 # /* ltdll.c ends here */
5207 # This is a source program that is used to create import libraries
5208 # on Windows for dlls which lack them. Don't remove nor modify the
5209 # starting and closing comments
5210 # /* impgen.c starts here */
5211 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
5213 # This file is part of GNU libtool.
5215 # This program is free software; you can redistribute it and/or modify
5216 # it under the terms of the GNU General Public License as published by
5217 # the Free Software Foundation; either version 2 of the License, or
5218 # (at your option) any later version.
5220 # This program is distributed in the hope that it will be useful,
5221 # but WITHOUT ANY WARRANTY; without even the implied warranty of
5222 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5223 # GNU General Public License for more details.
5225 # You should have received a copy of the GNU General Public License
5226 # along with this program; if not, write to the Free Software
5227 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5230 # #include <stdio.h> /* for printf() */
5231 # #include <unistd.h> /* for open(), lseek(), read() */
5232 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
5233 # #include <string.h> /* for strdup() */
5235 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
5237 # #define O_BINARY 0
5240 # static unsigned int
5241 # pe_get16 (fd, offset)
5245 # unsigned char b[2];
5246 # lseek (fd, offset, SEEK_SET);
5248 # return b[0] + (b[1]<<8);
5251 # static unsigned int
5252 # pe_get32 (fd, offset)
5256 # unsigned char b[4];
5257 # lseek (fd, offset, SEEK_SET);
5259 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5262 # static unsigned int
5266 # unsigned char *b = ptr;
5267 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5276 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
5277 # unsigned long export_rva, export_size, nsections, secptr, expptr;
5278 # unsigned long name_rvas, nexp;
5279 # unsigned char *expdata, *erva;
5280 # char *filename, *dll_name;
5282 # filename = argv[1];
5284 # dll = open(filename, O_RDONLY|O_BINARY);
5288 # dll_name = filename;
5290 # for (i=0; filename[i]; i++)
5291 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
5292 # dll_name = filename + i +1;
5294 # pe_header_offset = pe_get32 (dll, 0x3c);
5295 # opthdr_ofs = pe_header_offset + 4 + 20;
5296 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
5298 # if (num_entries < 1) /* no exports */
5301 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
5302 # export_size = pe_get32 (dll, opthdr_ofs + 100);
5303 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
5304 # secptr = (pe_header_offset + 4 + 20 +
5305 # pe_get16 (dll, pe_header_offset + 4 + 16));
5308 # for (i = 0; i < nsections; i++)
5311 # unsigned long secptr1 = secptr + 40 * i;
5312 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
5313 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
5314 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
5315 # lseek(dll, secptr1, SEEK_SET);
5316 # read(dll, sname, 8);
5317 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
5319 # expptr = fptr + (export_rva - vaddr);
5320 # if (export_rva + export_size > vaddr + vsize)
5321 # export_size = vsize - (export_rva - vaddr);
5326 # expdata = (unsigned char*)malloc(export_size);
5327 # lseek (dll, expptr, SEEK_SET);
5328 # read (dll, expdata, export_size);
5329 # erva = expdata - export_rva;
5331 # nexp = pe_as32 (expdata+24);
5332 # name_rvas = pe_as32 (expdata+32);
5334 # printf ("EXPORTS\n");
5335 # for (i = 0; i<nexp; i++)
5337 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
5338 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
5343 # /* impgen.c ends here */
5349 # We use sed instead of cat because bash on DJGPP gets confused if
5350 # if finds mixed CR/LF and LF-only lines. Since sed operates in
5351 # text mode, it properly converts lines to CR/LF. This bash problem
5352 # is reportedly fixed, but why not run on old versions too?
5353 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
5355 mv -f "${ofile}T" "$ofile" || \
5356 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
5364 # This can be used to rebuild libtool when needed
5365 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
5367 # Always use our own libtool.
5368 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5370 # Prevent multiple expansion
5375 cflags_save="$CFLAGS"
5376 ldflags_save="$LDFLAGS"
5377 if test -z "$GCC"; then
5381 CFLAGS="-O2 -w -signed"
5382 PROFILE="-p -g3 -O2 -signed"
5386 CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
5387 PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc"
5398 DEBUG="-g -Wall -fsigned-char"
5399 CFLAGS="-O20 -ffast-math -fsigned-char"
5400 PROFILE="-Wall -W -pg -g -O20 -ffast-math -fsigned-char"
5403 DEBUG="-g -Wall -fsigned-char -mv8"
5404 CFLAGS="-O20 -ffast-math -fsigned-char -mv8"
5405 PROFILE="-pg -g -O20 -fsigned-char -mv8"
5408 DEBUG="-fno-common -g -Wall -fsigned-char"
5409 CFLAGS="-fno-common -O4 -Wall -fsigned-char -ffast-math"
5410 PROFILE="-fno-common -O4 -Wall -pg -g -fsigned-char -ffast-math"
5413 DEBUG="-g -Wall -fsigned-char"
5414 CFLAGS="-O20 -fsigned-char"
5415 PROFILE="-O20 -g -pg -fsigned-char"
5419 CFLAGS="$CFLAGS $cflags_save"
5420 DEBUG="$DEBUG $cflags_save"
5421 PROFILE="$PROFILE $cflags_save"
5422 LDFLAGS="$LDFLAGS $ldflags_save"
5426 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5427 echo "configure:5428: checking for ANSI C header files" >&5
5428 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5429 echo $ac_n "(cached) $ac_c" 1>&6
5431 cat > conftest.$ac_ext <<EOF
5432 #line 5433 "configure"
5433 #include "confdefs.h"
5439 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5440 { (eval echo configure:5441: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5441 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5442 if test -z "$ac_err"; then
5444 ac_cv_header_stdc=yes
5447 echo "configure: failed program was:" >&5
5448 cat conftest.$ac_ext >&5
5450 ac_cv_header_stdc=no
5454 if test $ac_cv_header_stdc = yes; then
5455 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5456 cat > conftest.$ac_ext <<EOF
5457 #line 5458 "configure"
5458 #include "confdefs.h"
5461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5462 egrep "memchr" >/dev/null 2>&1; then
5466 ac_cv_header_stdc=no
5472 if test $ac_cv_header_stdc = yes; then
5473 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5474 cat > conftest.$ac_ext <<EOF
5475 #line 5476 "configure"
5476 #include "confdefs.h"
5479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5480 egrep "free" >/dev/null 2>&1; then
5484 ac_cv_header_stdc=no
5490 if test $ac_cv_header_stdc = yes; then
5491 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5492 if test "$cross_compiling" = yes; then
5495 cat > conftest.$ac_ext <<EOF
5496 #line 5497 "configure"
5497 #include "confdefs.h"
5499 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5500 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5501 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5502 int main () { int i; for (i = 0; i < 256; i++)
5503 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5507 if { (eval echo configure:5508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5511 echo "configure: failed program was:" >&5
5512 cat conftest.$ac_ext >&5
5514 ac_cv_header_stdc=no
5522 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5523 if test $ac_cv_header_stdc = yes; then
5524 cat >> confdefs.h <<\EOF
5525 #define STDC_HEADERS 1
5531 echo $ac_n "checking for working const""... $ac_c" 1>&6
5532 echo "configure:5533: checking for working const" >&5
5533 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5534 echo $ac_n "(cached) $ac_c" 1>&6
5536 cat > conftest.$ac_ext <<EOF
5537 #line 5538 "configure"
5538 #include "confdefs.h"
5542 /* Ultrix mips cc rejects this. */
5543 typedef int charset[2]; const charset x;
5544 /* SunOS 4.1.1 cc rejects this. */
5545 char const *const *ccp;
5547 /* NEC SVR4.0.2 mips cc rejects this. */
5548 struct point {int x, y;};
5549 static struct point const zero = {0,0};
5550 /* AIX XL C 1.02.0.0 rejects this.
5551 It does not let you subtract one const X* pointer from another in an arm
5552 of an if-expression whose if-part is not a constant expression */
5553 const char *g = "string";
5554 ccp = &g + (g ? g-g : 0);
5555 /* HPUX 7.0 cc rejects these. */
5558 ccp = (char const *const *) p;
5559 { /* SCO 3.2v4 cc rejects this. */
5561 char const *s = 0 ? (char *) 0 : (char const *) 0;
5565 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5567 const int *foo = &x[0];
5570 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5571 typedef const int *iptr;
5575 { /* AIX XL C 1.02.0.0 rejects this saying
5576 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5577 struct s { int j; const int *ap[3]; };
5578 struct s *b; b->j = 5;
5580 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5586 if { (eval echo configure:5587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5590 echo "configure: failed program was:" >&5
5591 cat conftest.$ac_ext >&5
5598 echo "$ac_t""$ac_cv_c_const" 1>&6
5599 if test $ac_cv_c_const = no; then
5600 cat >> confdefs.h <<\EOF
5608 echo $ac_n "checking for int16_t""... $ac_c" 1>&6
5609 echo "configure:5610: checking for int16_t" >&5
5610 if eval "test \"`echo '$''{'has_int16_t'+set}'`\" = set"; then
5611 echo $ac_n "(cached) $ac_c" 1>&6
5613 if test "$cross_compiling" = yes; then
5617 cat > conftest.$ac_ext <<EOF
5618 #line 5619 "configure"
5619 #include "confdefs.h"
5622 #include <inttypes.h>
5624 #include <sys/types.h>
5626 int main() {return 0;}
5629 if { (eval echo configure:5630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5633 echo "configure: failed program was:" >&5
5634 cat conftest.$ac_ext >&5
5643 echo "$ac_t""$has_int16_t" 1>&6
5645 echo $ac_n "checking for int32_t""... $ac_c" 1>&6
5646 echo "configure:5647: checking for int32_t" >&5
5647 if eval "test \"`echo '$''{'has_int32_t'+set}'`\" = set"; then
5648 echo $ac_n "(cached) $ac_c" 1>&6
5650 if test "$cross_compiling" = yes; then
5654 cat > conftest.$ac_ext <<EOF
5655 #line 5656 "configure"
5656 #include "confdefs.h"
5659 #include <inttypes.h>
5661 #include <sys/types.h>
5663 int main() {return 0;}
5666 if { (eval echo configure:5667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5670 echo "configure: failed program was:" >&5
5671 cat conftest.$ac_ext >&5
5680 echo "$ac_t""$has_int32_t" 1>&6
5682 echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
5683 echo "configure:5684: checking for uint32_t" >&5
5684 if eval "test \"`echo '$''{'has_uint32_t'+set}'`\" = set"; then
5685 echo $ac_n "(cached) $ac_c" 1>&6
5687 if test "$cross_compiling" = yes; then
5691 cat > conftest.$ac_ext <<EOF
5692 #line 5693 "configure"
5693 #include "confdefs.h"
5696 #include <inttypes.h>
5698 #include <sys/types.h>
5700 int main() {return 0;}
5703 if { (eval echo configure:5704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5707 echo "configure: failed program was:" >&5
5708 cat conftest.$ac_ext >&5
5717 echo "$ac_t""$has_uint32_t" 1>&6
5719 echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
5720 echo "configure:5721: checking for u_int32_t" >&5
5721 if eval "test \"`echo '$''{'has_u_int32_t'+set}'`\" = set"; then
5722 echo $ac_n "(cached) $ac_c" 1>&6
5724 if test "$cross_compiling" = yes; then
5728 cat > conftest.$ac_ext <<EOF
5729 #line 5730 "configure"
5730 #include "confdefs.h"
5733 #include <inttypes.h>
5735 #include <sys/types.h>
5737 int main() {return 0;}
5740 if { (eval echo configure:5741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5744 echo "configure: failed program was:" >&5
5745 cat conftest.$ac_ext >&5
5754 echo "$ac_t""$has_u_int32_t" 1>&6
5756 echo $ac_n "checking for int64_t""... $ac_c" 1>&6
5757 echo "configure:5758: checking for int64_t" >&5
5758 if eval "test \"`echo '$''{'has_int64_t'+set}'`\" = set"; then
5759 echo $ac_n "(cached) $ac_c" 1>&6
5761 if test "$cross_compiling" = yes; then
5765 cat > conftest.$ac_ext <<EOF
5766 #line 5767 "configure"
5767 #include "confdefs.h"
5770 #include <inttypes.h>
5772 #include <sys/types.h>
5774 int main() {return 0;}
5777 if { (eval echo configure:5778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5781 echo "configure: failed program was:" >&5
5782 cat conftest.$ac_ext >&5
5791 echo "$ac_t""$has_int64_t" 1>&6
5793 echo $ac_n "checking size of short""... $ac_c" 1>&6
5794 echo "configure:5795: checking size of short" >&5
5795 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
5796 echo $ac_n "(cached) $ac_c" 1>&6
5798 if test "$cross_compiling" = yes; then
5799 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5801 cat > conftest.$ac_ext <<EOF
5802 #line 5803 "configure"
5803 #include "confdefs.h"
5805 #include <sys/types.h>
5808 FILE *f=fopen("conftestval", "w");
5810 fprintf(f, "%d\n", sizeof(short));
5814 if { (eval echo configure:5815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5816 ac_cv_sizeof_short=`cat conftestval`
5818 echo "configure: failed program was:" >&5
5819 cat conftest.$ac_ext >&5
5821 ac_cv_sizeof_short=0
5827 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
5828 cat >> confdefs.h <<EOF
5829 #define SIZEOF_SHORT $ac_cv_sizeof_short
5833 echo $ac_n "checking size of int""... $ac_c" 1>&6
5834 echo "configure:5835: checking size of int" >&5
5835 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
5836 echo $ac_n "(cached) $ac_c" 1>&6
5838 if test "$cross_compiling" = yes; then
5839 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5841 cat > conftest.$ac_ext <<EOF
5842 #line 5843 "configure"
5843 #include "confdefs.h"
5845 #include <sys/types.h>
5848 FILE *f=fopen("conftestval", "w");
5850 fprintf(f, "%d\n", sizeof(int));
5854 if { (eval echo configure:5855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5856 ac_cv_sizeof_int=`cat conftestval`
5858 echo "configure: failed program was:" >&5
5859 cat conftest.$ac_ext >&5
5867 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
5868 cat >> confdefs.h <<EOF
5869 #define SIZEOF_INT $ac_cv_sizeof_int
5873 echo $ac_n "checking size of long""... $ac_c" 1>&6
5874 echo "configure:5875: checking size of long" >&5
5875 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
5876 echo $ac_n "(cached) $ac_c" 1>&6
5878 if test "$cross_compiling" = yes; then
5879 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5881 cat > conftest.$ac_ext <<EOF
5882 #line 5883 "configure"
5883 #include "confdefs.h"
5885 #include <sys/types.h>
5888 FILE *f=fopen("conftestval", "w");
5890 fprintf(f, "%d\n", sizeof(long));
5894 if { (eval echo configure:5895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5896 ac_cv_sizeof_long=`cat conftestval`
5898 echo "configure: failed program was:" >&5
5899 cat conftest.$ac_ext >&5
5907 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
5908 cat >> confdefs.h <<EOF
5909 #define SIZEOF_LONG $ac_cv_sizeof_long
5913 echo $ac_n "checking size of long long""... $ac_c" 1>&6
5914 echo "configure:5915: checking size of long long" >&5
5915 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
5916 echo $ac_n "(cached) $ac_c" 1>&6
5918 if test "$cross_compiling" = yes; then
5919 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5921 cat > conftest.$ac_ext <<EOF
5922 #line 5923 "configure"
5923 #include "confdefs.h"
5925 #include <sys/types.h>
5928 FILE *f=fopen("conftestval", "w");
5930 fprintf(f, "%d\n", sizeof(long long));
5934 if { (eval echo configure:5935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5936 ac_cv_sizeof_long_long=`cat conftestval`
5938 echo "configure: failed program was:" >&5
5939 cat conftest.$ac_ext >&5
5941 ac_cv_sizeof_long_long=0
5947 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
5948 cat >> confdefs.h <<EOF
5949 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5955 if test x$has_int16_t = "xyes" ; then
5959 $ac_cv_sizeof_short) SIZE16="short";;
5960 $ac_cv_sizeof_int) SIZE16="int";;
5964 if test x$has_int32_t = "xyes" ; then
5968 $ac_cv_sizeof_short) SIZE32="short";;
5969 $ac_cv_sizeof_int) SIZE32="int";;
5970 $ac_cv_sizeof_long) SIZE32="long";;
5974 if test x$has_uint32_t = "xyes" ; then
5977 if test x$has_u_int32_t = "xyes" ; then
5981 $ac_cv_sizeof_short) USIZE32="unsigned short";;
5982 $ac_cv_sizeof_int) USIZE32="unsigned int";;
5983 $ac_cv_sizeof_long) USIZE32="unsigned long";;
5988 if test x$has_int64_t = "xyes" ; then
5992 $ac_cv_sizeof_int) SIZE64="int";;
5993 $ac_cv_sizeof_long) SIZE64="long";;
5994 $ac_cv_sizeof_long_long) SIZE64="long long";;
5998 if test -z "$SIZE16"; then
5999 { echo "configure: error: No 16 bit type found on this platform!" 1>&2; exit 1; }
6001 if test -z "$SIZE32"; then
6002 { echo "configure: error: No 32 bit type found on this platform!" 1>&2; exit 1; }
6004 if test -z "$USIZE32"; then
6005 { echo "configure: error: No unsigned 32 bit type found on this platform!" 1>&2; exit 1; }
6007 if test -z "$SIZE64"; then
6008 echo "configure: warning: No 64 bit type found on this platform!" 1>&2
6011 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
6012 echo "configure:6013: checking for 8-bit clean memcmp" >&5
6013 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
6014 echo $ac_n "(cached) $ac_c" 1>&6
6016 if test "$cross_compiling" = yes; then
6017 ac_cv_func_memcmp_clean=no
6019 cat > conftest.$ac_ext <<EOF
6020 #line 6021 "configure"
6021 #include "confdefs.h"
6025 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
6026 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
6030 if { (eval echo configure:6031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6032 ac_cv_func_memcmp_clean=yes
6034 echo "configure: failed program was:" >&5
6035 cat conftest.$ac_ext >&5
6037 ac_cv_func_memcmp_clean=no
6044 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
6045 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
6061 cat > confcache <<\EOF
6062 # This file is a shell script that caches the results of configure
6063 # tests run on this system so they can be shared between configure
6064 # scripts and configure runs. It is not useful on other systems.
6065 # If it contains results you don't want to keep, you may remove or edit it.
6067 # By default, configure uses ./config.cache as the cache file,
6068 # creating it if it does not exist already. You can give configure
6069 # the --cache-file=FILE option to use a different cache file; that is
6070 # what configure does when it calls configure scripts in
6071 # subdirectories, so they share the cache.
6072 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6073 # config.status only pays attention to the cache file if you give it the
6074 # --recheck option to rerun configure.
6077 # The following way of writing the cache mishandles newlines in values,
6078 # but we know of no workaround that is simple, portable, and efficient.
6079 # So, don't put newlines in cache variables' values.
6080 # Ultrix sh set writes to stderr and can't be redirected directly,
6081 # and sets the high bit in the cache file unless we assign to the vars.
6083 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6085 # `set' does not quote correctly, so add quotes (double-quote substitution
6086 # turns \\\\ into \\, and sed turns \\ into \).
6088 -e "s/'/'\\\\''/g" \
6089 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6092 # `set' quotes correctly as required by POSIX, so do not add quotes.
6093 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6096 if cmp -s $cache_file confcache; then
6099 if test -w $cache_file; then
6100 echo "updating cache $cache_file"
6101 cat confcache > $cache_file
6103 echo "not updating unwritable cache $cache_file"
6108 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6110 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6111 # Let make expand exec_prefix.
6112 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6114 # Any assignment to VPATH causes Sun make to only execute
6115 # the first set of double-colon rules, so remove it if not needed.
6116 # If there is a colon in the path, we need to keep it.
6117 if test "x$srcdir" = x.; then
6118 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6121 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6123 # Transform confdefs.h into DEFS.
6124 # Protect against shell expansion while executing Makefile rules.
6125 # Protect against Makefile macro expansion.
6126 cat > conftest.defs <<\EOF
6127 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
6128 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
6133 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
6137 # Without the "./", some shells look in PATH for config.status.
6138 : ${CONFIG_STATUS=./config.status}
6140 echo creating $CONFIG_STATUS
6141 rm -f $CONFIG_STATUS
6142 cat > $CONFIG_STATUS <<EOF
6144 # Generated automatically by configure.
6145 # Run this file to recreate the current configuration.
6146 # This directory was configured as follows,
6147 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6149 # $0 $ac_configure_args
6151 # Compiler output produced by configure, useful for debugging
6152 # configure, is in ./config.log if it exists.
6154 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6157 case "\$ac_option" in
6158 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6159 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6160 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6161 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6162 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6164 -help | --help | --hel | --he | --h)
6165 echo "\$ac_cs_usage"; exit 0 ;;
6166 *) echo "\$ac_cs_usage"; exit 1 ;;
6170 ac_given_srcdir=$srcdir
6171 ac_given_INSTALL="$INSTALL"
6173 trap 'rm -fr `echo "Makefile src/Makefile doc/Makefile doc/ogg/Makefile include/Makefile include/ogg/Makefile include/ogg/config_types.h win32/Makefile debian/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6175 cat >> $CONFIG_STATUS <<EOF
6177 # Protect against being on the right side of a sed subst in config.status.
6178 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6179 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6183 s%@CFLAGS@%$CFLAGS%g
6184 s%@CPPFLAGS@%$CPPFLAGS%g
6185 s%@CXXFLAGS@%$CXXFLAGS%g
6186 s%@FFLAGS@%$FFLAGS%g
6188 s%@LDFLAGS@%$LDFLAGS%g
6190 s%@exec_prefix@%$exec_prefix%g
6191 s%@prefix@%$prefix%g
6192 s%@program_transform_name@%$program_transform_name%g
6193 s%@bindir@%$bindir%g
6194 s%@sbindir@%$sbindir%g
6195 s%@libexecdir@%$libexecdir%g
6196 s%@datadir@%$datadir%g
6197 s%@sysconfdir@%$sysconfdir%g
6198 s%@sharedstatedir@%$sharedstatedir%g
6199 s%@localstatedir@%$localstatedir%g
6200 s%@libdir@%$libdir%g
6201 s%@includedir@%$includedir%g
6202 s%@oldincludedir@%$oldincludedir%g
6203 s%@infodir@%$infodir%g
6204 s%@mandir@%$mandir%g
6205 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6206 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6207 s%@INSTALL_DATA@%$INSTALL_DATA%g
6208 s%@PACKAGE@%$PACKAGE%g
6209 s%@VERSION@%$VERSION%g
6210 s%@ACLOCAL@%$ACLOCAL%g
6211 s%@AUTOCONF@%$AUTOCONF%g
6212 s%@AUTOMAKE@%$AUTOMAKE%g
6213 s%@AUTOHEADER@%$AUTOHEADER%g
6214 s%@MAKEINFO@%$MAKEINFO%g
6215 s%@SET_MAKE@%$SET_MAKE%g
6216 s%@LIB_CURRENT@%$LIB_CURRENT%g
6217 s%@LIB_REVISION@%$LIB_REVISION%g
6218 s%@LIB_AGE@%$LIB_AGE%g
6221 s%@host_alias@%$host_alias%g
6222 s%@host_cpu@%$host_cpu%g
6223 s%@host_vendor@%$host_vendor%g
6224 s%@host_os@%$host_os%g
6226 s%@build_alias@%$build_alias%g
6227 s%@build_cpu@%$build_cpu%g
6228 s%@build_vendor@%$build_vendor%g
6229 s%@build_os@%$build_os%g
6231 s%@OBJEXT@%$OBJEXT%g
6232 s%@EXEEXT@%$EXEEXT%g
6234 s%@RANLIB@%$RANLIB%g
6237 s%@LIBTOOL@%$LIBTOOL%g
6238 s%@LIBOBJS@%$LIBOBJS%g
6239 s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
6240 s%@SIZE16@%$SIZE16%g
6241 s%@SIZE32@%$SIZE32%g
6242 s%@USIZE32@%$USIZE32%g
6243 s%@SIZE64@%$SIZE64%g
6246 s%@PROFILE@%$PROFILE%g
6251 cat >> $CONFIG_STATUS <<\EOF
6253 # Split the substitutions into bite-sized pieces for seds with
6254 # small command number limits, like on Digital OSF/1 and HP-UX.
6255 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6256 ac_file=1 # Number of current file.
6257 ac_beg=1 # First line for current file.
6258 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6261 while $ac_more_lines; do
6262 if test $ac_beg -gt 1; then
6263 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6265 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6267 if test ! -s conftest.s$ac_file; then
6269 rm -f conftest.s$ac_file
6271 if test -z "$ac_sed_cmds"; then
6272 ac_sed_cmds="sed -f conftest.s$ac_file"
6274 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6276 ac_file=`expr $ac_file + 1`
6278 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6281 if test -z "$ac_sed_cmds"; then
6286 cat >> $CONFIG_STATUS <<EOF
6288 CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile doc/Makefile doc/ogg/Makefile include/Makefile include/ogg/Makefile include/ogg/config_types.h win32/Makefile debian/Makefile"}
6290 cat >> $CONFIG_STATUS <<\EOF
6291 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6292 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6294 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6295 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6296 *) ac_file_in="${ac_file}.in" ;;
6299 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6301 # Remove last slash and all that follows it. Not all systems have dirname.
6302 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6303 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6304 # The file is in a subdirectory.
6305 test ! -d "$ac_dir" && mkdir "$ac_dir"
6306 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6307 # A "../" for each directory in $ac_dir_suffix.
6308 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6310 ac_dir_suffix= ac_dots=
6313 case "$ac_given_srcdir" in
6315 if test -z "$ac_dots"; then top_srcdir=.
6316 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6317 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6319 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6320 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6323 case "$ac_given_INSTALL" in
6324 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6325 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6328 echo creating "$ac_file"
6330 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6332 *Makefile*) ac_comsub="1i\\
6333 # $configure_input" ;;
6337 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6339 s%@configure_input@%$configure_input%g
6340 s%@srcdir@%$srcdir%g
6341 s%@top_srcdir@%$top_srcdir%g
6342 s%@INSTALL@%$INSTALL%g
6343 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6348 cat >> $CONFIG_STATUS <<EOF
6351 cat >> $CONFIG_STATUS <<\EOF
6355 chmod +x $CONFIG_STATUS
6356 rm -fr confdefs* $ac_clean_files
6357 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1