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.
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=
699 CFLAGS="-Wparentheses -Wimplicit -Wreturn-type -O2 -fomit-frame-pointer"
700 CXXFLAGS="-Wparentheses -Wimplicit -Wreturn-type -O2 -fomit-frame-pointer"
701 export PACKAGE VERSION CFLAGS CXXFLAGS
703 # Extract the first word of "gcc", so it can be a program name with args.
704 set dummy gcc; ac_word=$2
705 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
706 echo "configure:707: checking for $ac_word" >&5
707 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
708 echo $ac_n "(cached) $ac_c" 1>&6
710 if test -n "$CC"; then
711 ac_cv_prog_CC="$CC" # Let the user override the test.
713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
715 for ac_dir in $ac_dummy; do
716 test -z "$ac_dir" && ac_dir=.
717 if test -f $ac_dir/$ac_word; then
726 if test -n "$CC"; then
727 echo "$ac_t""$CC" 1>&6
729 echo "$ac_t""no" 1>&6
732 if test -z "$CC"; then
733 # Extract the first word of "cc", so it can be a program name with args.
734 set dummy cc; ac_word=$2
735 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
736 echo "configure:737: checking for $ac_word" >&5
737 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
738 echo $ac_n "(cached) $ac_c" 1>&6
740 if test -n "$CC"; then
741 ac_cv_prog_CC="$CC" # Let the user override the test.
743 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
746 for ac_dir in $ac_dummy; do
747 test -z "$ac_dir" && ac_dir=.
748 if test -f $ac_dir/$ac_word; then
749 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
758 if test $ac_prog_rejected = yes; then
759 # We found a bogon in the path, so make sure we never use it.
760 set dummy $ac_cv_prog_CC
762 if test $# -gt 0; then
763 # We chose a different compiler from the bogus one.
764 # However, it has the same basename, so the bogon will be chosen
765 # first if we set CC to just the basename; use the full file name.
767 set dummy "$ac_dir/$ac_word" "$@"
775 if test -n "$CC"; then
776 echo "$ac_t""$CC" 1>&6
778 echo "$ac_t""no" 1>&6
781 if test -z "$CC"; then
784 # Extract the first word of "cl", so it can be a program name with args.
785 set dummy cl; ac_word=$2
786 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
787 echo "configure:788: checking for $ac_word" >&5
788 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
789 echo $ac_n "(cached) $ac_c" 1>&6
791 if test -n "$CC"; then
792 ac_cv_prog_CC="$CC" # Let the user override the test.
794 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
796 for ac_dir in $ac_dummy; do
797 test -z "$ac_dir" && ac_dir=.
798 if test -f $ac_dir/$ac_word; then
807 if test -n "$CC"; then
808 echo "$ac_t""$CC" 1>&6
810 echo "$ac_t""no" 1>&6
815 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
818 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
819 echo "configure:820: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
822 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
823 ac_cpp='$CPP $CPPFLAGS'
824 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
825 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
826 cross_compiling=$ac_cv_prog_cc_cross
828 cat > conftest.$ac_ext << EOF
830 #line 831 "configure"
831 #include "confdefs.h"
835 if { (eval echo configure:836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
836 ac_cv_prog_cc_works=yes
837 # If we can't run a trivial program, we are probably using a cross compiler.
838 if (./conftest; exit) 2>/dev/null; then
839 ac_cv_prog_cc_cross=no
841 ac_cv_prog_cc_cross=yes
844 echo "configure: failed program was:" >&5
845 cat conftest.$ac_ext >&5
846 ac_cv_prog_cc_works=no
850 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
851 ac_cpp='$CPP $CPPFLAGS'
852 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
853 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
854 cross_compiling=$ac_cv_prog_cc_cross
856 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
857 if test $ac_cv_prog_cc_works = no; then
858 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
860 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
861 echo "configure:862: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
862 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
863 cross_compiling=$ac_cv_prog_cc_cross
865 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
866 echo "configure:867: checking whether we are using GNU C" >&5
867 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
868 echo $ac_n "(cached) $ac_c" 1>&6
870 cat > conftest.c <<EOF
875 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
882 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
884 if test $ac_cv_prog_gcc = yes; then
890 ac_test_CFLAGS="${CFLAGS+set}"
891 ac_save_CFLAGS="$CFLAGS"
893 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
894 echo "configure:895: checking whether ${CC-cc} accepts -g" >&5
895 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
896 echo $ac_n "(cached) $ac_c" 1>&6
898 echo 'void f(){}' > conftest.c
899 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
908 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
909 if test "$ac_test_CFLAGS" = set; then
910 CFLAGS="$ac_save_CFLAGS"
911 elif test $ac_cv_prog_cc_g = yes; then
912 if test "$GCC" = yes; then
918 if test "$GCC" = yes; then
925 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
926 echo "configure:927: checking how to run the C preprocessor" >&5
927 # On Suns, sometimes $CPP names a directory.
928 if test -n "$CPP" && test -d "$CPP"; then
931 if test -z "$CPP"; then
932 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
933 echo $ac_n "(cached) $ac_c" 1>&6
935 # This must be in double quotes, not single quotes, because CPP may get
936 # substituted into the Makefile and "${CC-cc}" will confuse make.
938 # On the NeXT, cc -E runs the code through the compiler's parser,
939 # not just through cpp.
940 cat > conftest.$ac_ext <<EOF
941 #line 942 "configure"
942 #include "confdefs.h"
946 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
947 { (eval echo configure:948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
948 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
949 if test -z "$ac_err"; then
953 echo "configure: failed program was:" >&5
954 cat conftest.$ac_ext >&5
956 CPP="${CC-cc} -E -traditional-cpp"
957 cat > conftest.$ac_ext <<EOF
958 #line 959 "configure"
959 #include "confdefs.h"
963 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
964 { (eval echo configure:965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
965 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
966 if test -z "$ac_err"; then
970 echo "configure: failed program was:" >&5
971 cat conftest.$ac_ext >&5
973 CPP="${CC-cc} -nologo -E"
974 cat > conftest.$ac_ext <<EOF
975 #line 976 "configure"
976 #include "confdefs.h"
980 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
981 { (eval echo configure:982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
982 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
983 if test -z "$ac_err"; then
987 echo "configure: failed program was:" >&5
988 cat conftest.$ac_ext >&5
997 ac_cv_prog_CPP="$CPP"
999 CPP="$ac_cv_prog_CPP"
1001 ac_cv_prog_CPP="$CPP"
1003 echo "$ac_t""$CPP" 1>&6
1005 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1007 # Extract the first word of "$ac_prog", so it can be a program name with args.
1008 set dummy $ac_prog; ac_word=$2
1009 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1010 echo "configure:1011: checking for $ac_word" >&5
1011 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1012 echo $ac_n "(cached) $ac_c" 1>&6
1014 if test -n "$CXX"; then
1015 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1017 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1019 for ac_dir in $ac_dummy; do
1020 test -z "$ac_dir" && ac_dir=.
1021 if test -f $ac_dir/$ac_word; then
1022 ac_cv_prog_CXX="$ac_prog"
1029 CXX="$ac_cv_prog_CXX"
1030 if test -n "$CXX"; then
1031 echo "$ac_t""$CXX" 1>&6
1033 echo "$ac_t""no" 1>&6
1036 test -n "$CXX" && break
1038 test -n "$CXX" || CXX="gcc"
1041 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1042 echo "configure:1043: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1045 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1046 ac_cpp='$CXXCPP $CPPFLAGS'
1047 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1048 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1049 cross_compiling=$ac_cv_prog_cxx_cross
1051 cat > conftest.$ac_ext << EOF
1053 #line 1054 "configure"
1054 #include "confdefs.h"
1056 int main(){return(0);}
1058 if { (eval echo configure:1059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1059 ac_cv_prog_cxx_works=yes
1060 # If we can't run a trivial program, we are probably using a cross compiler.
1061 if (./conftest; exit) 2>/dev/null; then
1062 ac_cv_prog_cxx_cross=no
1064 ac_cv_prog_cxx_cross=yes
1067 echo "configure: failed program was:" >&5
1068 cat conftest.$ac_ext >&5
1069 ac_cv_prog_cxx_works=no
1073 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1074 ac_cpp='$CPP $CPPFLAGS'
1075 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1076 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1077 cross_compiling=$ac_cv_prog_cc_cross
1079 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1080 if test $ac_cv_prog_cxx_works = no; then
1081 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1083 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1084 echo "configure:1085: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1085 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1086 cross_compiling=$ac_cv_prog_cxx_cross
1088 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1089 echo "configure:1090: checking whether we are using GNU C++" >&5
1090 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1091 echo $ac_n "(cached) $ac_c" 1>&6
1093 cat > conftest.C <<EOF
1098 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1105 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1107 if test $ac_cv_prog_gxx = yes; then
1113 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1114 ac_save_CXXFLAGS="$CXXFLAGS"
1116 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1117 echo "configure:1118: checking whether ${CXX-g++} accepts -g" >&5
1118 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1119 echo $ac_n "(cached) $ac_c" 1>&6
1121 echo 'void f(){}' > conftest.cc
1122 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1123 ac_cv_prog_cxx_g=yes
1131 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1132 if test "$ac_test_CXXFLAGS" = set; then
1133 CXXFLAGS="$ac_save_CXXFLAGS"
1134 elif test $ac_cv_prog_cxx_g = yes; then
1135 if test "$GXX" = yes; then
1141 if test "$GXX" = yes; then
1148 # Extract the first word of "ranlib", so it can be a program name with args.
1149 set dummy ranlib; ac_word=$2
1150 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1151 echo "configure:1152: checking for $ac_word" >&5
1152 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1153 echo $ac_n "(cached) $ac_c" 1>&6
1155 if test -n "$RANLIB"; then
1156 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1158 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1160 for ac_dir in $ac_dummy; do
1161 test -z "$ac_dir" && ac_dir=.
1162 if test -f $ac_dir/$ac_word; then
1163 ac_cv_prog_RANLIB="ranlib"
1168 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1171 RANLIB="$ac_cv_prog_RANLIB"
1172 if test -n "$RANLIB"; then
1173 echo "$ac_t""$RANLIB" 1>&6
1175 echo "$ac_t""no" 1>&6
1178 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1179 echo "configure:1180: checking whether ${MAKE-make} sets \${MAKE}" >&5
1180 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1181 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1182 echo $ac_n "(cached) $ac_c" 1>&6
1184 cat > conftestmake <<\EOF
1186 @echo 'ac_maketemp="${MAKE}"'
1188 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1189 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1190 if test -n "$ac_maketemp"; then
1191 eval ac_cv_prog_make_${ac_make}_set=yes
1193 eval ac_cv_prog_make_${ac_make}_set=no
1197 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1198 echo "$ac_t""yes" 1>&6
1201 echo "$ac_t""no" 1>&6
1202 SET_MAKE="MAKE=${MAKE-make}"
1206 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1207 if test -f $ac_dir/install-sh; then
1209 ac_install_sh="$ac_aux_dir/install-sh -c"
1211 elif test -f $ac_dir/install.sh; then
1213 ac_install_sh="$ac_aux_dir/install.sh -c"
1217 if test -z "$ac_aux_dir"; then
1218 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1220 ac_config_guess=$ac_aux_dir/config.guess
1221 ac_config_sub=$ac_aux_dir/config.sub
1222 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1224 # Find a good install program. We prefer a C program (faster),
1225 # so one script is as good as another. But avoid the broken or
1226 # incompatible versions:
1227 # SysV /etc/install, /usr/sbin/install
1228 # SunOS /usr/etc/install
1229 # IRIX /sbin/install
1231 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1232 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1233 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1234 # ./install, which can be erroneously created by make from ./install.sh.
1235 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1236 echo "configure:1237: checking for a BSD compatible install" >&5
1237 if test -z "$INSTALL"; then
1238 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1239 echo $ac_n "(cached) $ac_c" 1>&6
1241 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1242 for ac_dir in $PATH; do
1243 # Account for people who put trailing slashes in PATH elements.
1245 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1247 # OSF1 and SCO ODT 3.0 have their own names for install.
1248 # Don't use installbsd from OSF since it installs stuff as root
1250 for ac_prog in ginstall scoinst install; do
1251 if test -f $ac_dir/$ac_prog; then
1252 if test $ac_prog = install &&
1253 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1254 # AIX install. It has an incompatible calling convention.
1257 ac_cv_path_install="$ac_dir/$ac_prog -c"
1268 if test "${ac_cv_path_install+set}" = set; then
1269 INSTALL="$ac_cv_path_install"
1271 # As a last resort, use the slow shell script. We don't cache a
1272 # path for INSTALL within a source directory, because that will
1273 # break other packages using the cache if that directory is
1274 # removed, or if the path is relative.
1275 INSTALL="$ac_install_sh"
1278 echo "$ac_t""$INSTALL" 1>&6
1280 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1281 # It thinks the first close brace ends the variable substitution.
1282 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1284 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1286 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1288 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1289 echo "configure:1290: checking whether ln -s works" >&5
1290 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1291 echo $ac_n "(cached) $ac_c" 1>&6
1294 if ln -s X conftestdata 2>/dev/null
1297 ac_cv_prog_LN_S="ln -s"
1302 LN_S="$ac_cv_prog_LN_S"
1303 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1304 echo "$ac_t""yes" 1>&6
1306 echo "$ac_t""no" 1>&6
1309 # Find the correct PATH separator. Usually this is `:', but
1310 # DJGPP uses `;' like DOS.
1311 if test "X${PATH_SEPARATOR+set}" != Xset; then
1312 UNAME=${UNAME-`uname 2>/dev/null`}
1314 *-DOS) lt_cv_sys_path_separator=';' ;;
1315 *) lt_cv_sys_path_separator=':' ;;
1317 PATH_SEPARATOR=$lt_cv_sys_path_separator
1320 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1321 echo "configure:1322: checking for Cygwin environment" >&5
1322 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1323 echo $ac_n "(cached) $ac_c" 1>&6
1325 cat > conftest.$ac_ext <<EOF
1326 #line 1327 "configure"
1327 #include "confdefs.h"
1332 #define __CYGWIN__ __CYGWIN32__
1337 if { (eval echo configure:1338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1341 echo "configure: failed program was:" >&5
1342 cat conftest.$ac_ext >&5
1350 echo "$ac_t""$ac_cv_cygwin" 1>&6
1352 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1353 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1354 echo "configure:1355: checking for mingw32 environment" >&5
1355 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1356 echo $ac_n "(cached) $ac_c" 1>&6
1358 cat > conftest.$ac_ext <<EOF
1359 #line 1360 "configure"
1360 #include "confdefs.h"
1366 if { (eval echo configure:1367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1370 echo "configure: failed program was:" >&5
1371 cat conftest.$ac_ext >&5
1379 echo "$ac_t""$ac_cv_mingw32" 1>&6
1381 test "$ac_cv_mingw32" = yes && MINGW32=yes
1382 # Check whether --enable-shared or --disable-shared was given.
1383 if test "${enable_shared+set}" = set; then
1384 enableval="$enable_shared"
1385 p=${PACKAGE-default}
1387 yes) enable_shared=yes ;;
1388 no) enable_shared=no ;;
1391 # Look at the argument we got. We use all the common list separators.
1392 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1393 for pkg in $enableval; do
1394 if test "X$pkg" = "X$p"; then
1405 # Check whether --enable-static or --disable-static was given.
1406 if test "${enable_static+set}" = set; then
1407 enableval="$enable_static"
1408 p=${PACKAGE-default}
1410 yes) enable_static=yes ;;
1411 no) enable_static=no ;;
1414 # Look at the argument we got. We use all the common list separators.
1415 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1416 for pkg in $enableval; do
1417 if test "X$pkg" = "X$p"; then
1428 # Check whether --enable-fast-install or --disable-fast-install was given.
1429 if test "${enable_fast_install+set}" = set; then
1430 enableval="$enable_fast_install"
1431 p=${PACKAGE-default}
1433 yes) enable_fast_install=yes ;;
1434 no) enable_fast_install=no ;;
1436 enable_fast_install=no
1437 # Look at the argument we got. We use all the common list separators.
1438 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1439 for pkg in $enableval; do
1440 if test "X$pkg" = "X$p"; then
1441 enable_fast_install=yes
1448 enable_fast_install=yes
1452 # Make sure we can run config.sub.
1453 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1454 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1457 echo $ac_n "checking host system type""... $ac_c" 1>&6
1458 echo "configure:1459: checking host system type" >&5
1461 case "$host_alias" in
1465 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1466 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1468 *) host_alias=$nonopt ;;
1472 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1473 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1474 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1475 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1476 echo "$ac_t""$host" 1>&6
1478 echo $ac_n "checking build system type""... $ac_c" 1>&6
1479 echo "configure:1480: checking build system type" >&5
1482 case "$build_alias" in
1485 NONE) build_alias=$host_alias ;;
1486 *) build_alias=$nonopt ;;
1490 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1491 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1492 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1493 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1494 echo "$ac_t""$build" 1>&6
1496 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1497 if test "${with_gnu_ld+set}" = set; then
1498 withval="$with_gnu_ld"
1499 test "$withval" = no || with_gnu_ld=yes
1505 if test "$GCC" = yes; then
1506 # Check if gcc -print-prog-name=ld gives a path.
1507 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1508 echo "configure:1509: checking for ld used by GCC" >&5
1511 # gcc leaves a trailing carriage return which upsets mingw
1512 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1514 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1517 # Accept absolute paths.
1518 [\\/]* | [A-Za-z]:[\\/]*)
1519 re_direlt='/[^/][^/]*/\.\./'
1520 # Canonicalize the path of ld
1521 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1522 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1523 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1525 test -z "$LD" && LD="$ac_prog"
1528 # If it fails, then pretend we aren't using GCC.
1532 # If it is relative, then search for the first ld in PATH.
1536 elif test "$with_gnu_ld" = yes; then
1537 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1538 echo "configure:1539: checking for GNU ld" >&5
1540 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1541 echo "configure:1542: checking for non-GNU ld" >&5
1543 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1544 echo $ac_n "(cached) $ac_c" 1>&6
1546 if test -z "$LD"; then
1547 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1548 for ac_dir in $PATH; do
1549 test -z "$ac_dir" && ac_dir=.
1550 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1551 lt_cv_path_LD="$ac_dir/$ac_prog"
1552 # Check to see if the program is GNU ld. I'd rather use --version,
1553 # but apparently some GNU ld's only accept -v.
1554 # Break only if it was the GNU/non-GNU ld that we prefer.
1555 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1556 test "$with_gnu_ld" != no && break
1558 test "$with_gnu_ld" != yes && break
1564 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1569 if test -n "$LD"; then
1570 echo "$ac_t""$LD" 1>&6
1572 echo "$ac_t""no" 1>&6
1574 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1575 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1576 echo "configure:1577: checking if the linker ($LD) is GNU ld" >&5
1577 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1578 echo $ac_n "(cached) $ac_c" 1>&6
1580 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1581 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1582 lt_cv_prog_gnu_ld=yes
1584 lt_cv_prog_gnu_ld=no
1588 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1589 with_gnu_ld=$lt_cv_prog_gnu_ld
1592 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1593 echo "configure:1594: checking for $LD option to reload object files" >&5
1594 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1595 echo $ac_n "(cached) $ac_c" 1>&6
1597 lt_cv_ld_reload_flag='-r'
1600 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1601 reload_flag=$lt_cv_ld_reload_flag
1602 test -n "$reload_flag" && reload_flag=" $reload_flag"
1604 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1605 echo "configure:1606: checking for BSD-compatible nm" >&5
1606 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1607 echo $ac_n "(cached) $ac_c" 1>&6
1609 if test -n "$NM"; then
1610 # Let the user override the test.
1613 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1614 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1615 test -z "$ac_dir" && ac_dir=.
1616 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1617 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1618 # Check to see if the nm accepts a BSD-compat flag.
1619 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1620 # nm: unknown option "B" ignored
1621 # Tru64's nm complains that /dev/null is an invalid object file
1622 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1623 lt_cv_path_NM="$tmp_nm -B"
1625 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1626 lt_cv_path_NM="$tmp_nm -p"
1629 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1630 continue # so that we can try to find one that supports BSD flags
1635 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1640 echo "$ac_t""$NM" 1>&6
1642 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1643 echo "configure:1644: checking how to recognise dependant libraries" >&5
1644 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1645 echo $ac_n "(cached) $ac_c" 1>&6
1647 lt_cv_file_magic_cmd='$MAGIC_CMD'
1648 lt_cv_file_magic_test_file=
1649 lt_cv_deplibs_check_method='unknown'
1650 # Need to set the preceding variable on all platforms that support
1651 # interlibrary dependencies.
1652 # 'none' -- dependencies not supported.
1653 # `unknown' -- same as none, but documents that we really don't know.
1654 # 'pass_all' -- all dependencies passed with no checks.
1655 # 'test_compile' -- check by making test program.
1656 # 'file_magic [[regex]]' -- check by looking for files in library path
1657 # which responds to the $file_magic_cmd with a given egrep regex.
1658 # If you have `file' or equivalent on your system and you're not sure
1659 # whether `pass_all' will *always* work, you probably want this one.
1663 lt_cv_deplibs_check_method=pass_all
1667 lt_cv_deplibs_check_method=pass_all
1671 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1672 lt_cv_file_magic_cmd='/usr/bin/file -L'
1673 lt_cv_file_magic_test_file=/shlib/libc.so
1676 cygwin* | mingw* | pw32*)
1677 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1678 lt_cv_file_magic_cmd='$OBJDUMP -f'
1681 darwin* | rhapsody*)
1682 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1683 lt_cv_file_magic_cmd='/usr/bin/file -L'
1685 rhapsody* | darwin1.[012])
1686 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
1689 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1695 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1698 # Not sure whether the presence of OpenBSD here was a mistake.
1699 # Let's accept both of them until this is cleared up.
1700 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1701 lt_cv_file_magic_cmd=/usr/bin/file
1702 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1706 lt_cv_deplibs_check_method=pass_all
1711 lt_cv_deplibs_check_method=pass_all
1715 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1716 lt_cv_file_magic_cmd=/usr/bin/file
1717 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1720 irix5* | irix6* | nonstopux*)
1722 irix5* | nonstopux*)
1723 # this will be overridden with pass_all, but let us keep it just in case
1724 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1728 *-32|*"-32 ") libmagic=32-bit;;
1729 *-n32|*"-n32 ") libmagic=N32;;
1730 *-64|*"-64 ") libmagic=64-bit;;
1731 *) libmagic=never-match;;
1733 # this will be overridden with pass_all, but let us keep it just in case
1734 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1737 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1738 lt_cv_deplibs_check_method=pass_all
1741 # This must be Linux ELF.
1744 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1745 lt_cv_deplibs_check_method=pass_all ;;
1747 # glibc up to 2.1.1 does not perform some relocations on ARM
1748 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1750 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1754 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1755 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1757 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1762 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1763 lt_cv_file_magic_cmd=/usr/bin/file
1764 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1768 lt_cv_file_magic_cmd=/usr/bin/file
1769 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1770 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1771 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1773 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
1777 osf3* | osf4* | osf5*)
1778 # this will be overridden with pass_all, but let us keep it just in case
1779 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1780 lt_cv_file_magic_test_file=/shlib/libc.so
1781 lt_cv_deplibs_check_method=pass_all
1785 lt_cv_deplibs_check_method=pass_all
1789 lt_cv_deplibs_check_method=pass_all
1790 lt_cv_file_magic_test_file=/lib/libc.so
1793 sysv5uw[78]* | sysv4*uw2*)
1794 lt_cv_deplibs_check_method=pass_all
1797 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1798 case $host_vendor in
1800 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]'
1801 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1804 lt_cv_deplibs_check_method=pass_all
1807 lt_cv_file_magic_cmd='/bin/file'
1808 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
1811 lt_cv_file_magic_cmd='/bin/file'
1812 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
1813 lt_cv_file_magic_test_file=/lib/libc.so
1821 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1822 file_magic_cmd=$lt_cv_file_magic_cmd
1823 deplibs_check_method=$lt_cv_deplibs_check_method
1825 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1826 echo "configure:1827: checking for object suffix" >&5
1827 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1828 echo $ac_n "(cached) $ac_c" 1>&6
1831 echo 'int i = 1;' > conftest.$ac_ext
1832 if { (eval echo configure:1833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1833 for ac_file in conftest.*; do
1836 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1840 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1845 echo "$ac_t""$ac_cv_objext" 1>&6
1846 OBJEXT=$ac_cv_objext
1847 ac_objext=$ac_cv_objext
1851 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1852 echo "configure:1853: checking for executable suffix" >&5
1853 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1854 echo $ac_n "(cached) $ac_c" 1>&6
1856 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1860 echo 'int main () { return 0; }' > conftest.$ac_ext
1862 if { (eval echo configure:1863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1863 for file in conftest.*; do
1865 *.c | *.o | *.obj) ;;
1866 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1870 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1873 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1878 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1879 echo "$ac_t""${ac_cv_exeext}" 1>&6
1882 if test $host != $build; then
1883 ac_tool_prefix=${host_alias}-
1891 # Check for command to grab the raw symbol name followed by C symbol from nm.
1892 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
1893 echo "configure:1894: checking command to parse $NM output" >&5
1894 if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
1895 echo $ac_n "(cached) $ac_c" 1>&6
1898 # These are sane defaults that work on at least a few old systems.
1899 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
1901 # Character class describing NM global symbol codes.
1902 symcode='[BCDEGRST]'
1904 # Regexp to match symbols that can be accessed directly from C.
1905 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1907 # Transform the above into a raw symbol and a C symbol.
1908 symxfrm='\1 \2\3 \3'
1910 # Transform an extracted symbol line into a proper C declaration
1911 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1913 # Transform an extracted symbol line into symbol name and symbol address
1914 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'"
1916 # Define system-specific variables.
1921 cygwin* | mingw* | pw32*)
1922 symcode='[ABCDGISTW]'
1924 hpux*) # Its linker distinguishes data from code symbols
1925 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1926 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'"
1929 symcode='[BCDEGRST]'
1939 # Handle CRLF in mingw tool chain
1943 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
1947 # If we're using GNU nm, then use its standard symbol codes.
1948 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
1949 symcode='[ABCDGISTW]'
1952 # Try without a prefix undercore, then with it.
1953 for ac_symprfx in "" "_"; do
1955 # Write the raw and C identifiers.
1956 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
1958 # Check to see that the pipe works correctly.
1961 cat > conftest.$ac_ext <<EOF
1966 void nm_test_func(){}
1970 int main(){nm_test_var='a';nm_test_func();return(0);}
1973 if { (eval echo configure:1974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1974 # Now try to grab the symbols.
1976 if { (eval echo configure:1977: \"$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
1977 # Try sorting and uniquifying the output.
1978 if sort "$nlist" | uniq > "$nlist"T; then
1979 mv -f "$nlist"T "$nlist"
1984 # Make sure that we snagged all the symbols we need.
1985 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
1986 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
1987 cat <<EOF > conftest.$ac_ext
1993 # Now generate the symbol file.
1994 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
1996 cat <<EOF >> conftest.$ac_ext
1997 #if defined (__STDC__) && __STDC__
1998 # define lt_ptr void *
2000 # define lt_ptr char *
2004 /* The mapping between symbol names and symbols. */
2009 lt_preloaded_symbols[] =
2012 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
2013 cat <<\EOF >> conftest.$ac_ext
2021 # Now try linking the two files.
2022 mv conftest.$ac_objext conftstm.$ac_objext
2024 save_CFLAGS="$CFLAGS"
2025 LIBS="conftstm.$ac_objext"
2026 CFLAGS="$CFLAGS$no_builtin_flag"
2027 if { (eval echo configure:2028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2031 CFLAGS="$save_CFLAGS"
2033 echo "cannot find nm_test_func in $nlist" >&5
2036 echo "cannot find nm_test_var in $nlist" >&5
2039 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
2042 echo "$progname: failed program was:" >&5
2043 cat conftest.$ac_ext >&5
2045 rm -f conftest* conftst*
2047 # Do not use the global_symbol_pipe unless it works.
2048 if test "$pipe_works" = yes; then
2051 lt_cv_sys_global_symbol_pipe=
2057 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
2058 if test -z "$lt_cv_sys_global_symbol_pipe"; then
2059 global_symbol_to_cdecl=
2060 global_symbol_to_c_name_address=
2062 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2063 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
2065 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
2067 echo "$ac_t""failed" 1>&6
2069 echo "$ac_t""ok" 1>&6
2072 for ac_hdr in dlfcn.h
2074 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2075 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2076 echo "configure:2077: checking for $ac_hdr" >&5
2077 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2078 echo $ac_n "(cached) $ac_c" 1>&6
2080 cat > conftest.$ac_ext <<EOF
2081 #line 2082 "configure"
2082 #include "confdefs.h"
2085 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2086 { (eval echo configure:2087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2087 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2088 if test -z "$ac_err"; then
2090 eval "ac_cv_header_$ac_safe=yes"
2093 echo "configure: failed program was:" >&5
2094 cat conftest.$ac_ext >&5
2096 eval "ac_cv_header_$ac_safe=no"
2100 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2101 echo "$ac_t""yes" 1>&6
2102 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2103 cat >> confdefs.h <<EOF
2104 #define $ac_tr_hdr 1
2108 echo "$ac_t""no" 1>&6
2116 # Only perform the check for file, if the check method requires it
2117 case $deplibs_check_method in
2119 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2120 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2121 echo "configure:2122: checking for ${ac_tool_prefix}file" >&5
2122 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2123 echo $ac_n "(cached) $ac_c" 1>&6
2127 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2130 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2133 ac_save_MAGIC_CMD="$MAGIC_CMD"
2134 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2135 ac_dummy="/usr/bin:$PATH"
2136 for ac_dir in $ac_dummy; do
2137 test -z "$ac_dir" && ac_dir=.
2138 if test -f $ac_dir/${ac_tool_prefix}file; then
2139 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2140 if test -n "$file_magic_test_file"; then
2141 case $deplibs_check_method in
2143 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2144 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2145 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2146 egrep "$file_magic_regex" > /dev/null; then
2151 *** Warning: the command libtool uses to detect shared libraries,
2152 *** $file_magic_cmd, produces output that libtool cannot recognize.
2153 *** The result is that libtool may fail to recognize shared libraries
2154 *** as such. This will affect the creation of libtool libraries that
2155 *** depend on shared libraries, but programs linked with such libtool
2156 *** libraries will work regardless of this problem. Nevertheless, you
2157 *** may want to report the problem to your system manager and/or to
2158 *** bug-libtool@gnu.org
2168 MAGIC_CMD="$ac_save_MAGIC_CMD"
2173 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2174 if test -n "$MAGIC_CMD"; then
2175 echo "$ac_t""$MAGIC_CMD" 1>&6
2177 echo "$ac_t""no" 1>&6
2180 if test -z "$lt_cv_path_MAGIC_CMD"; then
2181 if test -n "$ac_tool_prefix"; then
2182 echo $ac_n "checking for file""... $ac_c" 1>&6
2183 echo "configure:2184: checking for file" >&5
2184 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2185 echo $ac_n "(cached) $ac_c" 1>&6
2189 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2192 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2195 ac_save_MAGIC_CMD="$MAGIC_CMD"
2196 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2197 ac_dummy="/usr/bin:$PATH"
2198 for ac_dir in $ac_dummy; do
2199 test -z "$ac_dir" && ac_dir=.
2200 if test -f $ac_dir/file; then
2201 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2202 if test -n "$file_magic_test_file"; then
2203 case $deplibs_check_method in
2205 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2206 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2207 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2208 egrep "$file_magic_regex" > /dev/null; then
2213 *** Warning: the command libtool uses to detect shared libraries,
2214 *** $file_magic_cmd, produces output that libtool cannot recognize.
2215 *** The result is that libtool may fail to recognize shared libraries
2216 *** as such. This will affect the creation of libtool libraries that
2217 *** depend on shared libraries, but programs linked with such libtool
2218 *** libraries will work regardless of this problem. Nevertheless, you
2219 *** may want to report the problem to your system manager and/or to
2220 *** bug-libtool@gnu.org
2230 MAGIC_CMD="$ac_save_MAGIC_CMD"
2235 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2236 if test -n "$MAGIC_CMD"; then
2237 echo "$ac_t""$MAGIC_CMD" 1>&6
2239 echo "$ac_t""no" 1>&6
2251 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2252 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2253 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2254 echo "configure:2255: checking for $ac_word" >&5
2255 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2256 echo $ac_n "(cached) $ac_c" 1>&6
2258 if test -n "$RANLIB"; then
2259 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2261 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2263 for ac_dir in $ac_dummy; do
2264 test -z "$ac_dir" && ac_dir=.
2265 if test -f $ac_dir/$ac_word; then
2266 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2273 RANLIB="$ac_cv_prog_RANLIB"
2274 if test -n "$RANLIB"; then
2275 echo "$ac_t""$RANLIB" 1>&6
2277 echo "$ac_t""no" 1>&6
2281 if test -z "$ac_cv_prog_RANLIB"; then
2282 if test -n "$ac_tool_prefix"; then
2283 # Extract the first word of "ranlib", so it can be a program name with args.
2284 set dummy ranlib; ac_word=$2
2285 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2286 echo "configure:2287: checking for $ac_word" >&5
2287 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2288 echo $ac_n "(cached) $ac_c" 1>&6
2290 if test -n "$RANLIB"; then
2291 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2293 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2295 for ac_dir in $ac_dummy; do
2296 test -z "$ac_dir" && ac_dir=.
2297 if test -f $ac_dir/$ac_word; then
2298 ac_cv_prog_RANLIB="ranlib"
2303 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2306 RANLIB="$ac_cv_prog_RANLIB"
2307 if test -n "$RANLIB"; then
2308 echo "$ac_t""$RANLIB" 1>&6
2310 echo "$ac_t""no" 1>&6
2318 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2319 set dummy ${ac_tool_prefix}strip; ac_word=$2
2320 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2321 echo "configure:2322: checking for $ac_word" >&5
2322 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2323 echo $ac_n "(cached) $ac_c" 1>&6
2325 if test -n "$STRIP"; then
2326 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2328 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2330 for ac_dir in $ac_dummy; do
2331 test -z "$ac_dir" && ac_dir=.
2332 if test -f $ac_dir/$ac_word; then
2333 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2340 STRIP="$ac_cv_prog_STRIP"
2341 if test -n "$STRIP"; then
2342 echo "$ac_t""$STRIP" 1>&6
2344 echo "$ac_t""no" 1>&6
2348 if test -z "$ac_cv_prog_STRIP"; then
2349 if test -n "$ac_tool_prefix"; then
2350 # Extract the first word of "strip", so it can be a program name with args.
2351 set dummy strip; ac_word=$2
2352 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2353 echo "configure:2354: checking for $ac_word" >&5
2354 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2355 echo $ac_n "(cached) $ac_c" 1>&6
2357 if test -n "$STRIP"; then
2358 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2360 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2362 for ac_dir in $ac_dummy; do
2363 test -z "$ac_dir" && ac_dir=.
2364 if test -f $ac_dir/$ac_word; then
2365 ac_cv_prog_STRIP="strip"
2370 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2373 STRIP="$ac_cv_prog_STRIP"
2374 if test -n "$STRIP"; then
2375 echo "$ac_t""$STRIP" 1>&6
2377 echo "$ac_t""no" 1>&6
2389 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2390 if test "${enable_libtool_lock+set}" = set; then
2391 enableval="$enable_libtool_lock"
2395 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2397 # Some flags need to be propagated to the compiler or linker for good
2401 # Find out which ABI we are using.
2402 echo '#line 2403 "configure"' > conftest.$ac_ext
2403 if { (eval echo configure:2404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2404 case `/usr/bin/file conftest.$ac_objext` in
2420 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2421 SAVE_CFLAGS="$CFLAGS"
2422 CFLAGS="$CFLAGS -belf"
2423 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2424 echo "configure:2425: checking whether the C compiler needs -belf" >&5
2425 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2426 echo $ac_n "(cached) $ac_c" 1>&6
2430 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2431 ac_cpp='$CPP $CPPFLAGS'
2432 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2433 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2434 cross_compiling=$ac_cv_prog_cc_cross
2436 cat > conftest.$ac_ext <<EOF
2437 #line 2438 "configure"
2438 #include "confdefs.h"
2444 if { (eval echo configure:2445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2446 lt_cv_cc_needs_belf=yes
2448 echo "configure: failed program was:" >&5
2449 cat conftest.$ac_ext >&5
2451 lt_cv_cc_needs_belf=no
2455 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2456 ac_cpp='$CPP $CPPFLAGS'
2457 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2458 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2459 cross_compiling=$ac_cv_prog_cc_cross
2463 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2464 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2465 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2466 CFLAGS="$SAVE_CFLAGS"
2473 # Sed substitution that helps us do robust quoting. It backslashifies
2474 # metacharacters that are still active within double-quoted strings.
2475 Xsed='sed -e s/^X//'
2476 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
2478 # Same as above, but do not quote variable references.
2479 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
2481 # Sed substitution to delay expansion of an escaped shell variable in a
2482 # double_quote_subst'ed string.
2483 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2489 default_ofile=libtool
2490 can_build_shared=yes
2492 # All known linkers require a `.a' archive for static linking (except M$VC,
2493 # which needs '.lib').
2495 ltmain="$ac_aux_dir/ltmain.sh"
2496 ofile="$default_ofile"
2497 with_gnu_ld="$lt_cv_prog_gnu_ld"
2498 need_locks="$enable_libtool_lock"
2501 old_CFLAGS="$CFLAGS"
2503 # Set sane defaults for various variables
2504 test -z "$AR" && AR=ar
2505 test -z "$AR_FLAGS" && AR_FLAGS=cru
2506 test -z "$AS" && AS=as
2507 test -z "$CC" && CC=cc
2508 test -z "$DLLTOOL" && DLLTOOL=dlltool
2509 test -z "$LD" && LD=ld
2510 test -z "$LN_S" && LN_S="ln -s"
2511 test -z "$MAGIC_CMD" && MAGIC_CMD=file
2512 test -z "$NM" && NM=nm
2513 test -z "$OBJDUMP" && OBJDUMP=objdump
2514 test -z "$RANLIB" && RANLIB=:
2515 test -z "$STRIP" && STRIP=:
2516 test -z "$ac_objext" && ac_objext=o
2518 if test x"$host" != x"$build"; then
2519 ac_tool_prefix=${host_alias}-
2524 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
2527 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
2532 # AIX sometimes has problems with the GCC collect2 program. For some
2533 # reason, if we set the COLLECT_NAMES environment variable, the problems
2534 # vanish in a puff of smoke.
2535 if test "X${COLLECT_NAMES+set}" != Xset; then
2537 export COLLECT_NAMES
2542 # Determine commands to create old-style static archives.
2543 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
2544 old_postinstall_cmds='chmod 644 $oldlib'
2545 old_postuninstall_cmds=
2547 if test -n "$RANLIB"; then
2550 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
2553 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
2556 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2559 # Allow CC to be a program name with arguments.
2563 echo $ac_n "checking for objdir""... $ac_c" 1>&6
2564 echo "configure:2565: checking for objdir" >&5
2565 rm -f .libs 2>/dev/null
2566 mkdir .libs 2>/dev/null
2567 if test -d .libs; then
2570 # MS-DOS does not allow filenames that begin with a dot.
2573 rmdir .libs 2>/dev/null
2574 echo "$ac_t""$objdir" 1>&6
2577 # Check whether --with-pic or --without-pic was given.
2578 if test "${with_pic+set}" = set; then
2585 test -z "$pic_mode" && pic_mode=default
2587 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
2588 # in isolation, and that seeing it set (from the cache) indicates that
2589 # the associated values are set (in the cache) correctly too.
2590 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
2591 echo "configure:2592: checking for $compiler option to produce PIC" >&5
2592 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
2593 echo $ac_n "(cached) $ac_c" 1>&6
2596 lt_cv_prog_cc_shlib=
2598 lt_cv_prog_cc_static=
2599 lt_cv_prog_cc_no_builtin=
2600 lt_cv_prog_cc_can_build_shared=$can_build_shared
2602 if test "$GCC" = yes; then
2603 lt_cv_prog_cc_wl='-Wl,'
2604 lt_cv_prog_cc_static='-static'
2608 # Below there is a dirty hack to force normal static linking with -ldl
2609 # The problem is because libdl dynamically linked with both libc and
2610 # libC (AIX C++ library), which obviously doesn't included in libraries
2611 # list by gcc. This cause undefined symbols with -static flags.
2612 # This hack allows C programs to be linked with "-static -ldl", but
2613 # not sure about C++ programs.
2614 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
2617 # FIXME: we need at least 68020 code to build shared libraries, but
2618 # adding the `-m68020' flag to GCC prevents building anything better,
2620 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
2622 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
2623 # PIC is the default for these OSes.
2625 darwin* | rhapsody*)
2626 # PIC is the default on this platform
2627 # Common symbols not allowed in MH_DYLIB files
2628 lt_cv_prog_cc_pic='-fno-common'
2630 cygwin* | mingw* | pw32* | os2*)
2631 # This hack is so that the source file can tell whether it is being
2632 # built for inclusion in a dll (and should export symbols for example).
2633 lt_cv_prog_cc_pic='-DDLL_EXPORT'
2636 if test -d /usr/nec; then
2637 lt_cv_prog_cc_pic=-Kconform_pic
2641 lt_cv_prog_cc_pic='-fPIC'
2645 # PORTME Check for PIC flags for the system compiler.
2647 aix3* | aix4* | aix5*)
2648 lt_cv_prog_cc_wl='-Wl,'
2649 # All AIX code is PIC.
2650 if test "$host_cpu" = ia64; then
2651 # AIX 5 now supports IA64 processor
2652 lt_cv_prog_cc_static='-Bstatic'
2654 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
2658 hpux9* | hpux10* | hpux11*)
2659 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
2660 lt_cv_prog_cc_wl='-Wl,'
2661 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
2662 lt_cv_prog_cc_pic='+Z'
2665 irix5* | irix6* | nonstopux*)
2666 lt_cv_prog_cc_wl='-Wl,'
2667 lt_cv_prog_cc_static='-non_shared'
2668 # PIC (with -KPIC) is the default.
2671 cygwin* | mingw* | pw32* | os2*)
2672 # This hack is so that the source file can tell whether it is being
2673 # built for inclusion in a dll (and should export symbols for example).
2674 lt_cv_prog_cc_pic='-DDLL_EXPORT'
2678 lt_cv_prog_cc_pic='-KPIC'
2679 lt_cv_prog_cc_static='-Bstatic'
2682 osf3* | osf4* | osf5*)
2683 # All OSF/1 code is PIC.
2684 lt_cv_prog_cc_wl='-Wl,'
2685 lt_cv_prog_cc_static='-non_shared'
2689 lt_cv_prog_cc_pic='-Kpic'
2690 lt_cv_prog_cc_static='-dn'
2691 lt_cv_prog_cc_shlib='-belf'
2695 lt_cv_prog_cc_pic='-KPIC'
2696 lt_cv_prog_cc_static='-Bstatic'
2697 lt_cv_prog_cc_wl='-Wl,'
2701 lt_cv_prog_cc_pic='-PIC'
2702 lt_cv_prog_cc_static='-Bstatic'
2703 lt_cv_prog_cc_wl='-Qoption ld '
2706 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2707 lt_cv_prog_cc_pic='-KPIC'
2708 lt_cv_prog_cc_static='-Bstatic'
2709 if test "x$host_vendor" = xsni; then
2710 lt_cv_prog_cc_wl='-LD'
2712 lt_cv_prog_cc_wl='-Wl,'
2717 lt_cv_prog_cc_pic='-pic'
2718 lt_cv_prog_cc_static='-Bstatic'
2722 if test -d /usr/nec ;then
2723 lt_cv_prog_cc_pic='-Kconform_pic'
2724 lt_cv_prog_cc_static='-Bstatic'
2729 lt_cv_prog_cc_can_build_shared=no
2736 if test -z "$lt_cv_prog_cc_pic"; then
2737 echo "$ac_t""none" 1>&6
2739 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
2741 # Check to make sure the pic_flag actually works.
2742 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
2743 echo "configure:2744: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
2744 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
2745 echo $ac_n "(cached) $ac_c" 1>&6
2747 save_CFLAGS="$CFLAGS"
2748 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2749 cat > conftest.$ac_ext <<EOF
2750 #line 2751 "configure"
2751 #include "confdefs.h"
2757 if { (eval echo configure:2758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2760 hpux9* | hpux10* | hpux11*)
2761 # On HP-UX, both CC and GCC only warn that PIC is supported... then
2762 # they create non-PIC objects. So, if there were any warnings, we
2763 # assume that PIC is not supported.
2764 if test -s conftest.err; then
2765 lt_cv_prog_cc_pic_works=no
2767 lt_cv_prog_cc_pic_works=yes
2771 lt_cv_prog_cc_pic_works=yes
2776 echo "configure: failed program was:" >&5
2777 cat conftest.$ac_ext >&5
2779 lt_cv_prog_cc_pic_works=no
2783 CFLAGS="$save_CFLAGS"
2788 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
2790 lt_cv_prog_cc_can_build_shared=no
2792 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
2795 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
2798 # Check for any special shared library compilation flags.
2799 if test -n "$lt_cv_prog_cc_shlib"; then
2800 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
2801 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
2803 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
2804 lt_cv_prog_cc_can_build_shared=no
2808 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
2809 echo "configure:2810: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
2810 if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
2811 echo $ac_n "(cached) $ac_c" 1>&6
2813 lt_cv_prog_cc_static_works=no
2814 save_LDFLAGS="$LDFLAGS"
2815 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
2816 cat > conftest.$ac_ext <<EOF
2817 #line 2818 "configure"
2818 #include "confdefs.h"
2824 if { (eval echo configure:2825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2826 lt_cv_prog_cc_static_works=yes
2828 echo "configure: failed program was:" >&5
2829 cat conftest.$ac_ext >&5
2832 LDFLAGS="$save_LDFLAGS"
2837 # Belt *and* braces to stop my trousers falling down:
2838 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
2839 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
2841 pic_flag="$lt_cv_prog_cc_pic"
2842 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
2843 wl="$lt_cv_prog_cc_wl"
2844 link_static_flag="$lt_cv_prog_cc_static"
2845 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
2846 can_build_shared="$lt_cv_prog_cc_can_build_shared"
2849 # Check to see if options -o and -c are simultaneously supported by compiler
2850 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
2851 echo "configure:2852: checking if $compiler supports -c -o file.$ac_objext" >&5
2852 if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
2853 echo $ac_n "(cached) $ac_c" 1>&6
2856 $rm -r conftest 2>/dev/null
2859 echo "int some_variable = 0;" > conftest.$ac_ext
2861 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
2862 # that will create temporary files in the current directory regardless of
2863 # the output directory. Thus, making CWD read-only will cause this test
2864 # to fail, enabling locking or at least warning the user not to do parallel
2867 save_CFLAGS="$CFLAGS"
2868 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
2870 if { (eval echo configure:2871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
2871 # The compiler can only warn and ignore the option if not recognized
2872 # So say no if there are warnings
2873 if test -s out/conftest.err; then
2874 lt_cv_compiler_c_o=no
2876 lt_cv_compiler_c_o=yes
2879 # Append any errors to the config.log.
2880 cat out/conftest.err 1>&5
2881 lt_cv_compiler_c_o=no
2883 CFLAGS="$save_CFLAGS"
2889 $rm -r conftest 2>/dev/null
2893 compiler_c_o=$lt_cv_compiler_c_o
2894 echo "$ac_t""$compiler_c_o" 1>&6
2896 if test x"$compiler_c_o" = x"yes"; then
2897 # Check to see if we can write to a .lo
2898 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
2899 echo "configure:2900: checking if $compiler supports -c -o file.lo" >&5
2900 if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
2901 echo $ac_n "(cached) $ac_c" 1>&6
2904 lt_cv_compiler_o_lo=no
2905 save_CFLAGS="$CFLAGS"
2906 CFLAGS="$CFLAGS -c -o conftest.lo"
2907 save_objext="$ac_objext"
2909 cat > conftest.$ac_ext <<EOF
2910 #line 2911 "configure"
2911 #include "confdefs.h"
2914 int some_variable = 0;
2917 if { (eval echo configure:2918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2919 # The compiler can only warn and ignore the option if not recognized
2920 # So say no if there are warnings
2921 if test -s conftest.err; then
2922 lt_cv_compiler_o_lo=no
2924 lt_cv_compiler_o_lo=yes
2928 echo "configure: failed program was:" >&5
2929 cat conftest.$ac_ext >&5
2932 ac_objext="$save_objext"
2933 CFLAGS="$save_CFLAGS"
2937 compiler_o_lo=$lt_cv_compiler_o_lo
2938 echo "$ac_t""$compiler_o_lo" 1>&6
2943 # Check to see if we can do hard links to lock some files if needed
2944 hard_links="nottested"
2945 if test "$compiler_c_o" = no && test "$need_locks" != no; then
2946 # do not overwrite the value of need_locks provided by the user
2947 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
2948 echo "configure:2949: checking if we can lock with hard links" >&5
2951 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2953 ln conftest.a conftest.b 2>&5 || hard_links=no
2954 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2955 echo "$ac_t""$hard_links" 1>&6
2956 if test "$hard_links" = no; then
2957 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
2964 if test "$GCC" = yes; then
2965 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
2966 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
2967 echo "configure:2968: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
2968 echo "int some_variable = 0;" > conftest.$ac_ext
2969 save_CFLAGS="$CFLAGS"
2970 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
2971 compiler_rtti_exceptions=no
2972 cat > conftest.$ac_ext <<EOF
2973 #line 2974 "configure"
2974 #include "confdefs.h"
2977 int some_variable = 0;
2980 if { (eval echo configure:2981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2982 # The compiler can only warn and ignore the option if not recognized
2983 # So say no if there are warnings
2984 if test -s conftest.err; then
2985 compiler_rtti_exceptions=no
2987 compiler_rtti_exceptions=yes
2991 echo "configure: failed program was:" >&5
2992 cat conftest.$ac_ext >&5
2995 CFLAGS="$save_CFLAGS"
2996 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
2998 if test "$compiler_rtti_exceptions" = "yes"; then
2999 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3001 no_builtin_flag=' -fno-builtin'
3005 # See if the linker supports building shared libraries.
3006 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
3007 echo "configure:3008: checking whether the linker ($LD) supports shared libraries" >&5
3009 allow_undefined_flag=
3011 need_lib_prefix=unknown
3012 need_version=unknown
3013 # when you set need_version to no, make sure it does not cause -set_version
3014 # flags to be left without arguments
3016 archive_expsym_cmds=
3017 old_archive_from_new_cmds=
3018 old_archive_from_expsyms_cmds=
3019 export_dynamic_flag_spec=
3020 whole_archive_flag_spec=
3021 thread_safe_flag_spec=
3022 hardcode_into_libs=no
3023 hardcode_libdir_flag_spec=
3024 hardcode_libdir_separator=
3027 hardcode_shlibpath_var=unsupported
3029 link_all_deplibs=unknown
3030 always_export_symbols=no
3031 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
3032 # include_expsyms should be a list of space-separated symbols to be *always*
3033 # included in the symbol list
3035 # exclude_expsyms can be an egrep regular expression of symbols to exclude
3036 # it will be wrapped by ` (' and `)$', so one must not match beginning or
3037 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
3038 # as well as any symbol that contains `d'.
3039 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
3040 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
3041 # platforms (ab)use it in PIC code, but their linkers get confused if
3042 # the symbol is explicitly referenced. Since portable code cannot
3043 # rely on this symbol name, it's probably fine to never include it in
3044 # preloaded symbol tables.
3045 extract_expsyms_cmds=
3048 cygwin* | mingw* | pw32*)
3049 # FIXME: the MSVC++ port hasn't been tested in a loooong time
3050 # When not using gcc, we currently assume that we are using
3051 # Microsoft Visual C++.
3052 if test "$GCC" != yes; then
3062 if test "$with_gnu_ld" = yes; then
3063 # If archive_cmds runs LD, not CC, wlarc should be empty
3066 # See if GNU ld supports shared libraries.
3068 aix3* | aix4* | aix5*)
3069 # On AIX, the GNU linker is very broken
3070 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
3074 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
3075 *** to be unable to reliably create shared libraries on AIX.
3076 *** Therefore, libtool is disabling shared libraries support. If you
3077 *** really care for shared libraries, you may want to modify your PATH
3078 *** so that a non-GNU linker is found, and then restart.
3084 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)'
3085 hardcode_libdir_flag_spec='-L$libdir'
3086 hardcode_minus_L=yes
3088 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
3089 # that the semantics of dynamic libraries on AmigaOS, at least up
3090 # to version 4, is to share data among multiple programs linked
3091 # with the same dynamic library. Since this doesn't match the
3092 # behavior of shared libraries on other platforms, we can use
3098 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3099 allow_undefined_flag=unsupported
3100 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3101 # support --undefined. This deserves some investigation. FIXME
3102 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3108 cygwin* | mingw* | pw32*)
3109 # hardcode_libdir_flag_spec is actually meaningless, as there is
3110 # no search path for DLLs.
3111 hardcode_libdir_flag_spec='-L$libdir'
3112 allow_undefined_flag=unsupported
3113 always_export_symbols=yes
3115 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
3116 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
3117 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
3118 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
3119 else $CC -o impgen impgen.c ; fi)~
3120 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
3122 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
3124 # cygwin and mingw dlls have different entry points and sets of symbols
3126 # FIXME: what about values for MSVC?
3127 dll_entry=__cygwin_dll_entry@12
3128 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
3132 dll_entry=_DllMainCRTStartup@12
3133 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
3137 # mingw and cygwin differ, and it's simplest to just exclude the union
3138 # of the two symbol sets.
3139 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
3141 # recent cygwin and mingw systems supply a stub DllMain which the user
3142 # can override, but on older systems we have to supply one (in ltdll.c)
3143 if test "x$lt_cv_need_dllmain" = "xyes"; then
3144 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
3145 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~
3146 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
3152 # Extract the symbol export list from an `--export-all' def file,
3153 # then regenerate the def file from the symbol export list, so that
3154 # the compiled dll only exports the symbol export list.
3155 # Be careful not to strip the DATA tag left be newer dlltools.
3156 export_symbols_cmds="$ltdll_cmds"'
3157 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
3158 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
3160 # If the export-symbols file already is a .def file (1st line
3161 # is EXPORTS), use it as is.
3162 # If DATA tags from a recent dlltool are present, honour them!
3163 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
3164 cp $export_symbols $output_objdir/$soname-def;
3166 echo EXPORTS > $output_objdir/$soname-def;
3168 cat $export_symbols | while read symbol; do
3171 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
3172 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
3174 _lt_hint=`expr 1 + \$_lt_hint`;
3178 $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~
3179 $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~
3180 $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~
3181 $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~
3182 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
3186 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3187 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3190 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3191 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3196 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
3200 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
3201 *** create shared libraries on Solaris systems. Therefore, libtool
3202 *** is disabling shared libraries support. We urge you to upgrade GNU
3203 *** binutils to release 2.9.1 or newer. Another option is to modify
3204 *** your PATH or compiler configuration so that the native linker is
3205 *** used, and then restart.
3208 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3209 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3210 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3217 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3220 hardcode_shlibpath_var=no
3224 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3225 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3226 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3233 if test "$ld_shlibs" = yes; then
3234 runpath_var=LD_RUN_PATH
3235 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
3236 export_dynamic_flag_spec='${wl}--export-dynamic'
3238 cygwin* | mingw* | pw32*)
3239 # dlltool doesn't understand --whole-archive et. al.
3240 whole_archive_flag_spec=
3243 # ancient GNU ld didn't support --whole-archive et. al.
3244 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
3245 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3247 whole_archive_flag_spec=
3253 # PORTME fill in a description of your system's linker (not GNU ld)
3256 allow_undefined_flag=unsupported
3257 always_export_symbols=yes
3258 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'
3259 # Note: this linker hardcodes the directories in LIBPATH if there
3260 # are no directories specified by -L.
3261 hardcode_minus_L=yes
3262 if test "$GCC" = yes && test -z "$link_static_flag"; then
3263 # Neither direct hardcoding nor static linking is supported with a
3265 hardcode_direct=unsupported
3270 if test "$host_cpu" = ia64; then
3271 # On IA64, the linker does run time linking by default, so we don't
3272 # have to do anything special.
3273 aix_use_runtimelinking=no
3274 exp_sym_flag='-Bexport'
3277 aix_use_runtimelinking=no
3279 # Test if we are trying to use run time linking or normal
3280 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3281 # need to do runtime linking.
3282 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
3283 for ld_flag in $LDFLAGS; do
3284 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
3285 aix_use_runtimelinking=yes
3291 exp_sym_flag='-bexport'
3292 no_entry_flag='-bnoentry'
3295 # When large executables or shared objects are built, AIX ld can
3296 # have problems creating the table of contents. If linking a library
3297 # or program results in "error TOC overflow" add -mminimal-toc to
3298 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3299 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3303 hardcode_libdir_separator=':'
3304 if test "$GCC" = yes; then
3305 case $host_os in aix4.[012]|aix4.[012].*)
3306 collect2name=`${CC} -print-prog-name=collect2`
3307 if test -f "$collect2name" && \
3308 strings "$collect2name" | grep resolve_lib_name >/dev/null
3310 # We have reworked collect2
3313 # We have old collect2
3314 hardcode_direct=unsupported
3315 # It fails to find uninstalled libraries when the uninstalled
3316 # path is not listed in the libpath. Setting hardcode_minus_L
3317 # to unsupported forces relinking
3318 hardcode_minus_L=yes
3319 hardcode_libdir_flag_spec='-L$libdir'
3320 hardcode_libdir_separator=
3324 shared_flag='-shared'
3327 if test "$host_cpu" = ia64; then
3328 shared_flag='${wl}-G'
3330 if test "$aix_use_runtimelinking" = yes; then
3331 shared_flag='${wl}-G'
3333 shared_flag='${wl}-bM:SRE'
3338 # It seems that -bexpall can do strange things, so it is better to
3339 # generate a list of symbols to export.
3340 always_export_symbols=yes
3341 if test "$aix_use_runtimelinking" = yes; then
3342 # Warning - without using the other runtime loading flags (-brtl),
3343 # -berok will link without error, but may produce a broken library.
3344 allow_undefined_flag='-berok'
3345 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
3346 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"
3348 if test "$host_cpu" = ia64; then
3349 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
3350 allow_undefined_flag="-z nodefs"
3351 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"
3353 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
3354 # Warning - without using the other run time loading flags,
3355 # -berok will link without error, but may produce a broken library.
3356 allow_undefined_flag='${wl}-berok'
3357 # This is a bit strange, but is similar to how AIX traditionally builds
3358 # it's shared libraries.
3359 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'
3365 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)'
3366 hardcode_libdir_flag_spec='-L$libdir'
3367 hardcode_minus_L=yes
3368 # see comment about different semantics on the GNU ld section
3372 cygwin* | mingw* | pw32*)
3373 # When not using gcc, we currently assume that we are using
3374 # Microsoft Visual C++.
3375 # hardcode_libdir_flag_spec is actually meaningless, as there is
3376 # no search path for DLLs.
3377 hardcode_libdir_flag_spec=' '
3378 allow_undefined_flag=unsupported
3379 # Tell ltmain to make .lib files, not .a files.
3381 # FIXME: Setting linknames here is a bad hack.
3382 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
3383 # The linker will automatically build a .lib file if we build a DLL.
3384 old_archive_from_new_cmds='true'
3385 # FIXME: Should let the user specify the lib program.
3386 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
3387 fix_srcfile_path='`cygpath -w "$srcfile"`'
3390 darwin* | rhapsody*)
3392 rhapsody* | darwin1.[012])
3393 allow_undefined_flag='-undefined suppress'
3396 allow_undefined_flag='-flat_namespace -undefined suppress'
3399 # FIXME: Relying on posixy $() will cause problems for
3400 # cross-compilation, but unfortunately the echo tests do not
3401 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
3402 # `"' quotes if we put them in here... so don't!
3403 archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
3404 # We need to add '_' to the symbols in $export_symbols first
3405 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
3407 hardcode_shlibpath_var=no
3408 whole_archive_flag_spec='-all_load $convenience'
3415 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
3416 # support. Future versions do this automatically, but an explicit c++rt0.o
3417 # does not break anything, and helps significantly (at the cost of a little
3420 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
3421 hardcode_libdir_flag_spec='-R$libdir'
3423 hardcode_shlibpath_var=no
3426 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
3428 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3430 hardcode_minus_L=yes
3431 hardcode_shlibpath_var=no
3434 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
3436 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
3437 hardcode_libdir_flag_spec='-R$libdir'
3439 hardcode_shlibpath_var=no
3442 hpux9* | hpux10* | hpux11*)
3444 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' ;;
3445 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
3447 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
3448 hardcode_libdir_separator=:
3450 hardcode_minus_L=yes # Not in the search PATH, but as the default
3451 # location of the library.
3452 export_dynamic_flag_spec='${wl}-E'
3455 irix5* | irix6* | nonstopux*)
3456 if test "$GCC" = yes; then
3457 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'
3459 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'
3461 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3462 hardcode_libdir_separator=:
3463 link_all_deplibs=yes
3467 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3468 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
3470 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
3472 hardcode_libdir_flag_spec='-R$libdir'
3474 hardcode_shlibpath_var=no
3478 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3480 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3481 hardcode_libdir_separator=:
3482 hardcode_shlibpath_var=no
3487 hardcode_shlibpath_var=no
3488 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3489 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
3490 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3491 export_dynamic_flag_spec='${wl}-E'
3494 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
3495 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3496 hardcode_libdir_flag_spec='-R$libdir'
3499 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
3500 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3507 hardcode_libdir_flag_spec='-L$libdir'
3508 hardcode_minus_L=yes
3509 allow_undefined_flag=unsupported
3510 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'
3511 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
3515 if test "$GCC" = yes; then
3516 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3517 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'
3519 allow_undefined_flag=' -expect_unresolved \*'
3520 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'
3522 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3523 hardcode_libdir_separator=:
3526 osf4* | osf5*) # as osf3* with the addition of -msym flag
3527 if test "$GCC" = yes; then
3528 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3529 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'
3530 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3532 allow_undefined_flag=' -expect_unresolved \*'
3533 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'
3534 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
3535 $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'
3537 #Both c and cxx compiler support -rpath directly
3538 hardcode_libdir_flag_spec='-rpath $libdir'
3540 hardcode_libdir_separator=:
3544 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3545 hardcode_shlibpath_var=no
3546 runpath_var=LD_RUN_PATH
3547 hardcode_runpath_var=yes
3548 export_dynamic_flag_spec='${wl}-Bexport'
3552 # gcc --version < 3.0 without binutils cannot create self contained
3553 # shared libraries reliably, requiring libgcc.a to resolve some of
3554 # the object symbols generated in some cases. Libraries that use
3555 # assert need libgcc.a to resolve __eprintf, for example. Linking
3556 # a copy of libgcc.a into every shared library to guarantee resolving
3557 # such symbols causes other problems: According to Tim Van Holder
3558 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
3559 # (to the application) exception stack for one thing.
3560 no_undefined_flag=' -z defs'
3561 if test "$GCC" = yes; then
3562 case `$CC --version 2>/dev/null` in
3566 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
3567 *** create self contained shared libraries on Solaris systems, without
3568 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
3569 *** -no-undefined support, which will at least allow you to build shared
3570 *** libraries. However, you may find that when you link such libraries
3571 *** into an application without using GCC, you have to manually add
3572 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
3573 *** upgrade to a newer version of GCC. Another option is to rebuild your
3574 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
3581 # $CC -shared without GNU ld will not create a library from C++
3582 # object files and a static libstdc++, better avoid it by now
3583 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3584 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3585 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3586 hardcode_libdir_flag_spec='-R$libdir'
3587 hardcode_shlibpath_var=no
3589 solaris2.[0-5] | solaris2.[0-5].*) ;;
3590 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
3591 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
3593 link_all_deplibs=yes
3597 if test "x$host_vendor" = xsequent; then
3598 # Use $CC to link under sequent, because it throws in some extra .o
3599 # files that make .init and .fini sections work.
3600 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
3602 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
3604 hardcode_libdir_flag_spec='-L$libdir'
3606 hardcode_minus_L=yes
3607 hardcode_shlibpath_var=no
3611 if test "x$host_vendor" = xsno; then
3612 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
3613 hardcode_direct=yes # is this really true???
3615 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3616 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
3618 runpath_var='LD_RUN_PATH'
3619 hardcode_shlibpath_var=no
3623 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3624 hardcode_shlibpath_var=no
3625 export_dynamic_flag_spec='-Bexport'
3629 no_undefined_flag=' -z text'
3630 # $CC -shared without GNU ld will not create a library from C++
3631 # object files and a static libstdc++, better avoid it by now
3632 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3633 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3634 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3635 hardcode_libdir_flag_spec=
3636 hardcode_shlibpath_var=no
3637 runpath_var='LD_RUN_PATH'
3641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3642 hardcode_libdir_flag_spec='-L$libdir'
3643 hardcode_shlibpath_var=no
3647 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3648 hardcode_libdir_flag_spec='-L$libdir'
3649 hardcode_shlibpath_var=no
3653 if test -d /usr/nec; then
3654 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3655 hardcode_shlibpath_var=no
3656 runpath_var=LD_RUN_PATH
3657 hardcode_runpath_var=yes
3663 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
3666 hardcode_shlibpath_var=no
3667 hardcode_runpath_var=yes
3668 runpath_var=LD_RUN_PATH
3671 sysv5uw7* | unixware7*)
3672 no_undefined_flag='${wl}-z ${wl}text'
3673 if test "$GCC" = yes; then
3674 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3676 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3678 runpath_var='LD_RUN_PATH'
3679 hardcode_shlibpath_var=no
3687 echo "$ac_t""$ld_shlibs" 1>&6
3688 test "$ld_shlibs" = no && can_build_shared=no
3690 # Check hardcoding attributes.
3691 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
3692 echo "configure:3693: checking how to hardcode library paths into programs" >&5
3694 if test -n "$hardcode_libdir_flag_spec" || \
3695 test -n "$runpath_var"; then
3697 # We can hardcode non-existant directories.
3698 if test "$hardcode_direct" != no &&
3699 # If the only mechanism to avoid hardcoding is shlibpath_var, we
3700 # have to relink, otherwise we might link with an installed library
3701 # when we should be linking with a yet-to-be-installed one
3702 ## test "$hardcode_shlibpath_var" != no &&
3703 test "$hardcode_minus_L" != no; then
3704 # Linking always hardcodes the temporary library directory.
3705 hardcode_action=relink
3707 # We can link without hardcoding, and we can hardcode nonexisting dirs.
3708 hardcode_action=immediate
3711 # We cannot hardcode anything, or else we can only hardcode existing
3713 hardcode_action=unsupported
3715 echo "$ac_t""$hardcode_action" 1>&6
3719 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
3720 echo "configure:3721: checking whether stripping libraries is possible" >&5
3721 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
3722 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3723 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3724 echo "$ac_t""yes" 1>&6
3726 echo "$ac_t""no" 1>&6
3729 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3730 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3732 # PORTME Fill in your ld.so characteristics
3733 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
3734 echo "configure:3735: checking dynamic linker characteristics" >&5
3736 libname_spec='lib$name'
3743 shlibpath_overrides_runpath=unknown
3745 dynamic_linker="$host_os ld.so"
3746 sys_lib_dlsearch_path_spec="/lib /usr/lib"
3747 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3752 library_names_spec='${libname}${release}.so$versuffix $libname.a'
3753 shlibpath_var=LIBPATH
3755 # AIX has no versioning support, so we append a major version to the name.
3756 soname_spec='${libname}${release}.so$major'
3761 if test "$host_cpu" = ia64; then
3762 # AIX 5 supports IA64
3763 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
3764 shlibpath_var=LD_LIBRARY_PATH
3766 # With GCC up to 2.95.x, collect2 would create an import file
3767 # for dependence libraries. The import file would start with
3768 # the line `#! .'. This would cause the generated library to
3769 # depend on `.', always an invalid library. This was fixed in
3770 # development snapshots of GCC prior to 3.0.
3772 aix4 | aix4.[01] | aix4.[01].*)
3773 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3775 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
3782 # AIX (on Power*) has no versioning support, so currently we can
3783 # not hardcode correct soname into executable. Probably we can
3784 # add versioning support to collect2, so additional links can
3785 # be useful in future.
3786 if test "$aix_use_runtimelinking" = yes; then
3787 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
3788 # instead of lib<name>.a to let people know that these are not
3789 # typical AIX shared libraries.
3790 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3792 # We preserve .a as extension for shared libraries through AIX4.2
3793 # and later when we are not doing run time linking.
3794 library_names_spec='${libname}${release}.a $libname.a'
3795 soname_spec='${libname}${release}.so$major'
3797 shlibpath_var=LIBPATH
3802 library_names_spec='$libname.ixlibrary $libname.a'
3803 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3804 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'
3808 library_names_spec='${libname}.so'
3809 dynamic_linker="$host_os ld.so"
3810 shlibpath_var=LIBRARY_PATH
3816 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3817 soname_spec='${libname}${release}.so$major'
3818 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
3819 shlibpath_var=LD_LIBRARY_PATH
3820 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
3821 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
3822 export_dynamic_flag_spec=-rdynamic
3823 # the default ld.so.conf also contains /usr/contrib/lib and
3824 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
3825 # libtool to hard-code these into programs
3828 cygwin* | mingw* | pw32*)
3829 version_type=windows
3832 case $GCC,$host_os in
3834 library_names_spec='$libname.dll.a'
3835 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
3836 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
3837 dldir=$destdir/`dirname \$dlpath`~
3838 test -d \$dldir || mkdir -p \$dldir~
3839 $install_prog .libs/$dlname \$dldir/$dlname'
3840 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
3841 dlpath=$dir/\$dldll~
3845 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
3846 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
3849 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
3852 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
3855 dynamic_linker='Win32 ld.exe'
3856 # FIXME: first we should search . and the directory the executable is in
3860 darwin* | rhapsody*)
3861 dynamic_linker="$host_os dyld"
3865 # FIXME: Relying on posixy $() will cause problems for
3866 # cross-compilation, but unfortunately the echo tests do not
3867 # yet detect zsh echo's removal of \ escapes.
3868 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)'
3869 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
3870 shlibpath_overrides_runpath=yes
3871 shlibpath_var=DYLD_LIBRARY_PATH
3879 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
3880 version_type=freebsd-$objformat
3881 case $version_type in
3883 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
3888 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
3892 shlibpath_var=LD_LIBRARY_PATH
3895 shlibpath_overrides_runpath=yes
3898 shlibpath_overrides_runpath=no
3899 hardcode_into_libs=yes
3908 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
3909 soname_spec='${libname}${release}.so$major'
3910 shlibpath_var=LD_LIBRARY_PATH
3911 hardcode_into_libs=yes
3914 hpux9* | hpux10* | hpux11*)
3915 # Give a soname corresponding to the major version so that dld.sl refuses to
3916 # link against other versions.
3917 dynamic_linker="$host_os dld.sl"
3921 shlibpath_var=SHLIB_PATH
3922 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3923 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
3924 soname_spec='${libname}${release}.sl$major'
3925 # HP-UX runs *really* slowly unless shared libraries are mode 555.
3926 postinstall_cmds='chmod 555 $lib'
3929 irix5* | irix6* | nonstopux*)
3931 nonstopux*) version_type=nonstopux ;;
3932 *) version_type=irix ;;
3936 soname_spec='${libname}${release}.so$major'
3937 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
3939 irix5* | nonstopux*)
3943 case $LD in # libtool.m4 will add one of these switches to LD
3944 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
3945 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
3946 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
3947 *) libsuff= shlibsuff= libmagic=never-match;;
3951 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
3952 shlibpath_overrides_runpath=no
3953 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3954 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
3957 # No shared lib support for Linux oldld, aout, or coff.
3958 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
3962 # This must be Linux ELF.
3967 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3968 soname_spec='${libname}${release}.so$major'
3969 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3970 shlibpath_var=LD_LIBRARY_PATH
3971 shlibpath_overrides_runpath=no
3972 # This implies no fast_install, which is unacceptable.
3973 # Some rework will be needed to allow for fast_install
3974 # before this can be enabled.
3975 hardcode_into_libs=yes
3977 # We used to test for /lib/ld.so.1 and disable shared libraries on
3978 # powerpc, because MkLinux only supported shared libraries with the
3979 # GNU dynamic linker. Since this was broken with cross compilers,
3980 # most powerpc-linux boxes support dynamic linking these days and
3981 # people can always --disable-shared, the test was removed, and we
3982 # assume the GNU/Linux dynamic linker is in use.
3983 dynamic_linker='GNU/Linux ld.so'
3990 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3991 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
3992 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3993 dynamic_linker='NetBSD (a.out) ld.so'
3995 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
3996 soname_spec='${libname}${release}.so$major'
3997 dynamic_linker='NetBSD ld.elf_so'
3999 shlibpath_var=LD_LIBRARY_PATH
4000 shlibpath_overrides_runpath=yes
4001 hardcode_into_libs=yes
4006 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4007 shlibpath_var=LD_LIBRARY_PATH
4008 shlibpath_overrides_runpath=yes
4015 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4017 openbsd2.[89] | openbsd2.[89].*)
4018 shlibpath_overrides_runpath=no
4021 shlibpath_overrides_runpath=yes
4025 shlibpath_overrides_runpath=yes
4027 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4028 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4029 shlibpath_var=LD_LIBRARY_PATH
4033 libname_spec='$name'
4035 library_names_spec='$libname.dll $libname.a'
4036 dynamic_linker='OS/2 ld.exe'
4037 shlibpath_var=LIBPATH
4040 osf3* | osf4* | osf5*)
4043 soname_spec='${libname}${release}.so'
4044 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4045 shlibpath_var=LD_LIBRARY_PATH
4046 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4047 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4052 soname_spec='${libname}${release}.so$major'
4053 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4054 shlibpath_var=LD_LIBRARY_PATH
4061 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4062 soname_spec='${libname}${release}.so$major'
4063 shlibpath_var=LD_LIBRARY_PATH
4064 shlibpath_overrides_runpath=yes
4065 hardcode_into_libs=yes
4066 # ldd complains unless libraries are executable
4067 postinstall_cmds='chmod +x $lib'
4072 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4073 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4074 shlibpath_var=LD_LIBRARY_PATH
4075 shlibpath_overrides_runpath=yes
4076 if test "$with_gnu_ld" = yes; then
4082 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4084 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4085 soname_spec='${libname}${release}.so$major'
4086 shlibpath_var=LD_LIBRARY_PATH
4087 case $host_vendor in
4089 shlibpath_overrides_runpath=no
4094 shlibpath_overrides_runpath=no
4095 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4102 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4103 soname_spec='${libname}${release}.so$major'
4104 shlibpath_var=LD_LIBRARY_PATH
4111 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4112 soname_spec='${libname}${release}.so$major'
4113 shlibpath_var=LD_LIBRARY_PATH
4117 if test -d /usr/nec ;then
4119 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
4120 soname_spec='$libname.so.$major'
4121 shlibpath_var=LD_LIBRARY_PATH
4129 echo "$ac_t""$dynamic_linker" 1>&6
4130 test "$dynamic_linker" = no && can_build_shared=no
4132 # Report the final consequences.
4133 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
4134 echo "configure:4135: checking if libtool supports shared libraries" >&5
4135 echo "$ac_t""$can_build_shared" 1>&6
4137 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
4138 echo "configure:4139: checking whether to build shared libraries" >&5
4139 test "$can_build_shared" = "no" && enable_shared=no
4141 # On AIX, shared libraries and static libraries use the same namespace, and
4142 # are all built from PIC.
4145 test "$enable_shared" = yes && enable_static=no
4146 if test -n "$RANLIB"; then
4147 archive_cmds="$archive_cmds~\$RANLIB \$lib"
4148 postinstall_cmds='$RANLIB $lib'
4153 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4154 test "$enable_shared" = yes && enable_static=no
4158 echo "$ac_t""$enable_shared" 1>&6
4160 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
4161 echo "configure:4162: checking whether to build static libraries" >&5
4162 # Make sure either enable_shared or enable_static is yes.
4163 test "$enable_shared" = yes || enable_static=yes
4164 echo "$ac_t""$enable_static" 1>&6
4166 if test "$hardcode_action" = relink; then
4167 # Fast installation is not supported
4168 enable_fast_install=no
4169 elif test "$shlibpath_overrides_runpath" = yes ||
4170 test "$enable_shared" = no; then
4171 # Fast installation is not necessary
4172 enable_fast_install=needless
4175 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4176 if test "$GCC" = yes; then
4177 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4180 if test "x$enable_dlopen" != xyes; then
4181 enable_dlopen=unknown
4182 enable_dlopen_self=unknown
4183 enable_dlopen_self_static=unknown
4190 lt_cv_dlopen="load_add_on"
4192 lt_cv_dlopen_self=yes
4195 cygwin* | mingw* | pw32*)
4196 lt_cv_dlopen="LoadLibrary"
4201 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
4202 echo "configure:4203: checking for shl_load" >&5
4203 if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
4204 echo $ac_n "(cached) $ac_c" 1>&6
4206 cat > conftest.$ac_ext <<EOF
4207 #line 4208 "configure"
4208 #include "confdefs.h"
4209 /* System header to define __stub macros and hopefully few prototypes,
4210 which can conflict with char shl_load(); below. */
4212 /* Override any gcc2 internal prototype to avoid an error. */
4213 /* We use char because int might match the return type of a gcc2
4214 builtin and then its argument prototype would still apply. */
4219 /* The GNU C library defines this for functions which it implements
4220 to always fail with ENOSYS. Some functions are actually named
4221 something starting with __ and the normal name is an alias. */
4222 #if defined (__stub_shl_load) || defined (__stub___shl_load)
4230 if { (eval echo configure:4231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4232 eval "ac_cv_func_shl_load=yes"
4234 echo "configure: failed program was:" >&5
4235 cat conftest.$ac_ext >&5
4237 eval "ac_cv_func_shl_load=no"
4242 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
4243 echo "$ac_t""yes" 1>&6
4244 lt_cv_dlopen="shl_load"
4246 echo "$ac_t""no" 1>&6
4247 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
4248 echo "configure:4249: checking for shl_load in -ldld" >&5
4249 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
4250 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4251 echo $ac_n "(cached) $ac_c" 1>&6
4253 ac_save_LIBS="$LIBS"
4255 cat > conftest.$ac_ext <<EOF
4256 #line 4257 "configure"
4257 #include "confdefs.h"
4258 /* Override any gcc2 internal prototype to avoid an error. */
4259 /* We use char because int might match the return type of a gcc2
4260 builtin and then its argument prototype would still apply. */
4267 if { (eval echo configure:4268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4269 eval "ac_cv_lib_$ac_lib_var=yes"
4271 echo "configure: failed program was:" >&5
4272 cat conftest.$ac_ext >&5
4274 eval "ac_cv_lib_$ac_lib_var=no"
4277 LIBS="$ac_save_LIBS"
4280 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4281 echo "$ac_t""yes" 1>&6
4282 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
4284 echo "$ac_t""no" 1>&6
4285 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
4286 echo "configure:4287: checking for dlopen" >&5
4287 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
4288 echo $ac_n "(cached) $ac_c" 1>&6
4290 cat > conftest.$ac_ext <<EOF
4291 #line 4292 "configure"
4292 #include "confdefs.h"
4293 /* System header to define __stub macros and hopefully few prototypes,
4294 which can conflict with char dlopen(); below. */
4296 /* Override any gcc2 internal prototype to avoid an error. */
4297 /* We use char because int might match the return type of a gcc2
4298 builtin and then its argument prototype would still apply. */
4303 /* The GNU C library defines this for functions which it implements
4304 to always fail with ENOSYS. Some functions are actually named
4305 something starting with __ and the normal name is an alias. */
4306 #if defined (__stub_dlopen) || defined (__stub___dlopen)
4314 if { (eval echo configure:4315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4316 eval "ac_cv_func_dlopen=yes"
4318 echo "configure: failed program was:" >&5
4319 cat conftest.$ac_ext >&5
4321 eval "ac_cv_func_dlopen=no"
4326 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
4327 echo "$ac_t""yes" 1>&6
4328 lt_cv_dlopen="dlopen"
4330 echo "$ac_t""no" 1>&6
4331 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4332 echo "configure:4333: checking for dlopen in -ldl" >&5
4333 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4334 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4335 echo $ac_n "(cached) $ac_c" 1>&6
4337 ac_save_LIBS="$LIBS"
4339 cat > conftest.$ac_ext <<EOF
4340 #line 4341 "configure"
4341 #include "confdefs.h"
4342 /* Override any gcc2 internal prototype to avoid an error. */
4343 /* We use char because int might match the return type of a gcc2
4344 builtin and then its argument prototype would still apply. */
4351 if { (eval echo configure:4352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4353 eval "ac_cv_lib_$ac_lib_var=yes"
4355 echo "configure: failed program was:" >&5
4356 cat conftest.$ac_ext >&5
4358 eval "ac_cv_lib_$ac_lib_var=no"
4361 LIBS="$ac_save_LIBS"
4364 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4365 echo "$ac_t""yes" 1>&6
4366 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
4368 echo "$ac_t""no" 1>&6
4369 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
4370 echo "configure:4371: checking for dlopen in -lsvld" >&5
4371 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
4372 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4373 echo $ac_n "(cached) $ac_c" 1>&6
4375 ac_save_LIBS="$LIBS"
4377 cat > conftest.$ac_ext <<EOF
4378 #line 4379 "configure"
4379 #include "confdefs.h"
4380 /* Override any gcc2 internal prototype to avoid an error. */
4381 /* We use char because int might match the return type of a gcc2
4382 builtin and then its argument prototype would still apply. */
4389 if { (eval echo configure:4390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4391 eval "ac_cv_lib_$ac_lib_var=yes"
4393 echo "configure: failed program was:" >&5
4394 cat conftest.$ac_ext >&5
4396 eval "ac_cv_lib_$ac_lib_var=no"
4399 LIBS="$ac_save_LIBS"
4402 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4403 echo "$ac_t""yes" 1>&6
4404 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
4406 echo "$ac_t""no" 1>&6
4407 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
4408 echo "configure:4409: checking for dld_link in -ldld" >&5
4409 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
4410 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4411 echo $ac_n "(cached) $ac_c" 1>&6
4413 ac_save_LIBS="$LIBS"
4415 cat > conftest.$ac_ext <<EOF
4416 #line 4417 "configure"
4417 #include "confdefs.h"
4418 /* Override any gcc2 internal prototype to avoid an error. */
4419 /* We use char because int might match the return type of a gcc2
4420 builtin and then its argument prototype would still apply. */
4427 if { (eval echo configure:4428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4429 eval "ac_cv_lib_$ac_lib_var=yes"
4431 echo "configure: failed program was:" >&5
4432 cat conftest.$ac_ext >&5
4434 eval "ac_cv_lib_$ac_lib_var=no"
4437 LIBS="$ac_save_LIBS"
4440 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4441 echo "$ac_t""yes" 1>&6
4442 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
4444 echo "$ac_t""no" 1>&6
4465 if test "x$lt_cv_dlopen" != xno; then
4471 case $lt_cv_dlopen in
4473 save_CPPFLAGS="$CPPFLAGS"
4474 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
4476 save_LDFLAGS="$LDFLAGS"
4477 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
4480 LIBS="$lt_cv_dlopen_libs $LIBS"
4482 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
4483 echo "configure:4484: checking whether a program can dlopen itself" >&5
4484 if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
4485 echo $ac_n "(cached) $ac_c" 1>&6
4487 if test "$cross_compiling" = yes; then :
4488 lt_cv_dlopen_self=cross
4490 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4491 lt_status=$lt_dlunknown
4492 cat > conftest.$ac_ext <<EOF
4493 #line 4494 "configure"
4494 #include "confdefs.h"
4503 # define LT_DLGLOBAL RTLD_GLOBAL
4506 # define LT_DLGLOBAL DL_GLOBAL
4508 # define LT_DLGLOBAL 0
4512 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4513 find out it does not work in some platform. */
4514 #ifndef LT_DLLAZY_OR_NOW
4516 # define LT_DLLAZY_OR_NOW RTLD_LAZY
4519 # define LT_DLLAZY_OR_NOW DL_LAZY
4522 # define LT_DLLAZY_OR_NOW RTLD_NOW
4525 # define LT_DLLAZY_OR_NOW DL_NOW
4527 # define LT_DLLAZY_OR_NOW 0
4535 extern "C" void exit (int);
4538 void fnord() { int i=42;}
4541 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4542 int status = $lt_dlunknown;
4546 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
4547 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4548 /* dlclose (self); */
4554 if { (eval echo configure:4555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4555 (./conftest; exit; ) 2>/dev/null
4558 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
4559 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
4560 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
4563 # compilation failed
4564 lt_cv_dlopen_self=no
4572 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
4574 if test "x$lt_cv_dlopen_self" = xyes; then
4575 LDFLAGS="$LDFLAGS $link_static_flag"
4576 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
4577 echo "configure:4578: checking whether a statically linked program can dlopen itself" >&5
4578 if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
4579 echo $ac_n "(cached) $ac_c" 1>&6
4581 if test "$cross_compiling" = yes; then :
4582 lt_cv_dlopen_self_static=cross
4584 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4585 lt_status=$lt_dlunknown
4586 cat > conftest.$ac_ext <<EOF
4587 #line 4588 "configure"
4588 #include "confdefs.h"
4597 # define LT_DLGLOBAL RTLD_GLOBAL
4600 # define LT_DLGLOBAL DL_GLOBAL
4602 # define LT_DLGLOBAL 0
4606 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4607 find out it does not work in some platform. */
4608 #ifndef LT_DLLAZY_OR_NOW
4610 # define LT_DLLAZY_OR_NOW RTLD_LAZY
4613 # define LT_DLLAZY_OR_NOW DL_LAZY
4616 # define LT_DLLAZY_OR_NOW RTLD_NOW
4619 # define LT_DLLAZY_OR_NOW DL_NOW
4621 # define LT_DLLAZY_OR_NOW 0
4629 extern "C" void exit (int);
4632 void fnord() { int i=42;}
4635 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4636 int status = $lt_dlunknown;
4640 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
4641 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4642 /* dlclose (self); */
4648 if { (eval echo configure:4649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4649 (./conftest; exit; ) 2>/dev/null
4652 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
4653 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
4654 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
4657 # compilation failed
4658 lt_cv_dlopen_self_static=no
4666 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
4669 CPPFLAGS="$save_CPPFLAGS"
4670 LDFLAGS="$save_LDFLAGS"
4675 case $lt_cv_dlopen_self in
4676 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
4677 *) enable_dlopen_self=unknown ;;
4680 case $lt_cv_dlopen_self_static in
4681 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
4682 *) enable_dlopen_self_static=unknown ;;
4687 if test "$enable_shared" = yes && test "$GCC" = yes; then
4688 case $archive_cmds in
4690 # FIXME: we may have to deal with multi-command sequences.
4693 # Test whether the compiler implicitly links with -lc since on some
4694 # systems, -lgcc has to come before -lc. If gcc already passes -lc
4695 # to ld, don't add -lc before -lgcc.
4696 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
4697 echo "configure:4698: checking whether -lc should be explicitly linked in" >&5
4698 if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
4699 echo $ac_n "(cached) $ac_c" 1>&6
4702 echo 'static int dummy;' > conftest.$ac_ext
4704 if { (eval echo configure:4705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4707 libobjs=conftest.$ac_objext
4709 wl=$lt_cv_prog_cc_wl
4715 save_allow_undefined_flag=$allow_undefined_flag
4716 allow_undefined_flag=
4717 if { (eval echo configure:4718: \"$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; }
4719 lt_cv_archive_cmds_need_lc=no
4721 lt_cv_archive_cmds_need_lc=yes
4723 allow_undefined_flag=$save_allow_undefined_flag
4725 cat conftest.err 1>&5
4729 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
4733 need_lc=${lt_cv_archive_cmds_need_lc-yes}
4735 # The second clause should only fire when bootstrapping the
4736 # libtool distribution, otherwise you forgot to ship ltmain.sh
4737 # with your package, and you will get complaints that there are
4738 # no rules to generate ltmain.sh.
4739 if test -f "$ltmain"; then
4742 # If there is no Makefile yet, we rely on a make rule to execute
4743 # `config.status --recheck' to rerun these tests and create the
4744 # libtool script then.
4745 test -f Makefile && make "$ltmain"
4748 if test -f "$ltmain"; then
4749 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
4752 echo creating $ofile
4754 # Now quote all the things that may contain metacharacters while being
4755 # careful not to overquote the AC_SUBSTed values. We take copies of the
4756 # variables and quote the copies for generation of the libtool script.
4757 for var in echo old_CC old_CFLAGS \
4758 AR AR_FLAGS CC LD LN_S NM SHELL \
4759 reload_flag reload_cmds wl \
4760 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
4761 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
4762 library_names_spec soname_spec \
4763 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
4764 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
4765 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
4766 old_striplib striplib file_magic_cmd export_symbols_cmds \
4767 deplibs_check_method allow_undefined_flag no_undefined_flag \
4768 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
4769 global_symbol_to_c_name_address \
4770 hardcode_libdir_flag_spec hardcode_libdir_separator \
4771 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4772 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
4775 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
4776 old_postinstall_cmds | old_postuninstall_cmds | \
4777 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
4778 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
4779 postinstall_cmds | postuninstall_cmds | \
4780 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4781 # Double-quote double-evaled strings.
4782 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4785 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4790 cat <<__EOF__ > "${ofile}T"
4793 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4794 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4795 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
4797 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
4798 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4800 # This program is free software; you can redistribute it and/or modify
4801 # it under the terms of the GNU General Public License as published by
4802 # the Free Software Foundation; either version 2 of the License, or
4803 # (at your option) any later version.
4805 # This program is distributed in the hope that it will be useful, but
4806 # WITHOUT ANY WARRANTY; without even the implied warranty of
4807 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4808 # General Public License for more details.
4810 # You should have received a copy of the GNU General Public License
4811 # along with this program; if not, write to the Free Software
4812 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4814 # As a special exception to the GNU General Public License, if you
4815 # distribute this file as part of a program that contains a
4816 # configuration script generated by Autoconf, you may include it under
4817 # the same distribution terms that you use for the rest of that program.
4819 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
4820 Xsed="sed -e s/^X//"
4822 # The HP-UX ksh and POSIX shell print the target directory to stdout
4824 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
4826 # ### BEGIN LIBTOOL CONFIG
4828 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4830 # Shell to use when invoking shell scripts.
4833 # Whether or not to build shared libraries.
4834 build_libtool_libs=$enable_shared
4836 # Whether or not to build static libraries.
4837 build_old_libs=$enable_static
4839 # Whether or not to add -lc for building shared libraries.
4840 build_libtool_need_lc=$need_lc
4842 # Whether or not to optimize for fast installation.
4843 fast_install=$enable_fast_install
4846 host_alias=$host_alias
4849 # An echo program that does not interpret backslashes.
4854 AR_FLAGS=$lt_AR_FLAGS
4856 # The default C compiler.
4859 # Is the compiler the GNU C compiler?
4862 # The linker used to build libraries.
4865 # Whether we need hard or soft links.
4868 # A BSD-compatible nm program.
4871 # A symbol stripping program
4874 # Used to examine libraries when file_magic_cmd begins "file"
4875 MAGIC_CMD=$MAGIC_CMD
4877 # Used on cygwin: DLL creation program.
4880 # Used on cygwin: object dumper.
4883 # Used on cygwin: assembler.
4886 # The name of the directory that contains temporary libtool files.
4889 # How to create reloadable object files.
4890 reload_flag=$lt_reload_flag
4891 reload_cmds=$lt_reload_cmds
4893 # How to pass a linker flag through the compiler.
4896 # Object file suffix (normally "o").
4899 # Old archive suffix (normally "a").
4902 # Executable file suffix (normally "").
4905 # Additional compiler flags for building library objects.
4906 pic_flag=$lt_pic_flag
4909 # Does compiler simultaneously support -c and -o options?
4910 compiler_c_o=$lt_compiler_c_o
4912 # Can we write directly to a .lo ?
4913 compiler_o_lo=$lt_compiler_o_lo
4915 # Must we lock files when doing compilation ?
4916 need_locks=$lt_need_locks
4918 # Do we need the lib prefix for modules?
4919 need_lib_prefix=$need_lib_prefix
4921 # Do we need a version for libraries?
4922 need_version=$need_version
4924 # Whether dlopen is supported.
4925 dlopen_support=$enable_dlopen
4927 # Whether dlopen of programs is supported.
4928 dlopen_self=$enable_dlopen_self
4930 # Whether dlopen of statically linked programs is supported.
4931 dlopen_self_static=$enable_dlopen_self_static
4933 # Compiler flag to prevent dynamic linking.
4934 link_static_flag=$lt_link_static_flag
4936 # Compiler flag to turn off builtin functions.
4937 no_builtin_flag=$lt_no_builtin_flag
4939 # Compiler flag to allow reflexive dlopens.
4940 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
4942 # Compiler flag to generate shared objects directly from archives.
4943 whole_archive_flag_spec=$lt_whole_archive_flag_spec
4945 # Compiler flag to generate thread-safe objects.
4946 thread_safe_flag_spec=$lt_thread_safe_flag_spec
4948 # Library versioning type.
4949 version_type=$version_type
4951 # Format of library name prefix.
4952 libname_spec=$lt_libname_spec
4954 # List of archive names. First name is the real one, the rest are links.
4955 # The last name is the one that the linker finds with -lNAME.
4956 library_names_spec=$lt_library_names_spec
4958 # The coded name of the library, if different from the real name.
4959 soname_spec=$lt_soname_spec
4961 # Commands used to build and install an old-style archive.
4963 old_archive_cmds=$lt_old_archive_cmds
4964 old_postinstall_cmds=$lt_old_postinstall_cmds
4965 old_postuninstall_cmds=$lt_old_postuninstall_cmds
4967 # Create an old-style archive from a shared archive.
4968 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
4970 # Create a temporary old-style archive to link instead of a shared archive.
4971 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
4973 # Commands used to build and install a shared archive.
4974 archive_cmds=$lt_archive_cmds
4975 archive_expsym_cmds=$lt_archive_expsym_cmds
4976 postinstall_cmds=$lt_postinstall_cmds
4977 postuninstall_cmds=$lt_postuninstall_cmds
4979 # Commands to strip libraries.
4980 old_striplib=$lt_old_striplib
4981 striplib=$lt_striplib
4983 # Method to check whether dependent libraries are shared objects.
4984 deplibs_check_method=$lt_deplibs_check_method
4986 # Command to use when deplibs_check_method == file_magic.
4987 file_magic_cmd=$lt_file_magic_cmd
4989 # Flag that allows shared libraries with undefined symbols to be built.
4990 allow_undefined_flag=$lt_allow_undefined_flag
4992 # Flag that forces no undefined symbols.
4993 no_undefined_flag=$lt_no_undefined_flag
4995 # Commands used to finish a libtool library installation in a directory.
4996 finish_cmds=$lt_finish_cmds
4998 # Same as above, but a single script fragment to be evaled but not shown.
4999 finish_eval=$lt_finish_eval
5001 # Take the output of nm and produce a listing of raw symbols and C names.
5002 global_symbol_pipe=$lt_global_symbol_pipe
5004 # Transform the output of nm in a proper C declaration
5005 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
5007 # Transform the output of nm in a C name address pair
5008 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
5010 # This is the shared library runtime path variable.
5011 runpath_var=$runpath_var
5013 # This is the shared library path variable.
5014 shlibpath_var=$shlibpath_var
5016 # Is shlibpath searched before the hard-coded library search path?
5017 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5019 # How to hardcode a shared library path into an executable.
5020 hardcode_action=$hardcode_action
5022 # Whether we should hardcode library paths into libraries.
5023 hardcode_into_libs=$hardcode_into_libs
5025 # Flag to hardcode \$libdir into a binary during linking.
5026 # This must work even if \$libdir does not exist.
5027 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
5029 # Whether we need a single -rpath flag with a separated argument.
5030 hardcode_libdir_separator=$lt_hardcode_libdir_separator
5032 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
5034 hardcode_direct=$hardcode_direct
5036 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5038 hardcode_minus_L=$hardcode_minus_L
5040 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5041 # the resulting binary.
5042 hardcode_shlibpath_var=$hardcode_shlibpath_var
5044 # Variables whose values should be saved in libtool wrapper scripts and
5045 # restored at relink time.
5046 variables_saved_for_relink="$variables_saved_for_relink"
5048 # Whether libtool must link a program against all its dependency libraries.
5049 link_all_deplibs=$link_all_deplibs
5051 # Compile-time system search path for libraries
5052 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5054 # Run-time system search path for libraries
5055 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5057 # Fix the shell variable \$srcfile for the compiler.
5058 fix_srcfile_path="$fix_srcfile_path"
5060 # Set to yes if exported symbols are required.
5061 always_export_symbols=$always_export_symbols
5063 # The commands to list exported symbols.
5064 export_symbols_cmds=$lt_export_symbols_cmds
5066 # The commands to extract the exported symbol list from a shared archive.
5067 extract_expsyms_cmds=$lt_extract_expsyms_cmds
5069 # Symbols that should not be listed in the preloaded symbols.
5070 exclude_expsyms=$lt_exclude_expsyms
5072 # Symbols that must always be exported.
5073 include_expsyms=$lt_include_expsyms
5075 # ### END LIBTOOL CONFIG
5081 cat <<\EOF >> "${ofile}T"
5083 # AIX sometimes has problems with the GCC collect2 program. For some
5084 # reason, if we set the COLLECT_NAMES environment variable, the problems
5085 # vanish in a puff of smoke.
5086 if test "X${COLLECT_NAMES+set}" != Xset; then
5088 export COLLECT_NAMES
5095 cygwin* | mingw* | pw32* | os2*)
5096 cat <<'EOF' >> "${ofile}T"
5097 # This is a source program that is used to create dlls on Windows
5098 # Don't remove nor modify the starting and closing comments
5099 # /* ltdll.c starts here */
5100 # #define WIN32_LEAN_AND_MEAN
5101 # #include <windows.h>
5102 # #undef WIN32_LEAN_AND_MEAN
5103 # #include <stdio.h>
5105 # #ifndef __CYGWIN__
5106 # # ifdef __CYGWIN32__
5107 # # define __CYGWIN__ __CYGWIN32__
5111 # #ifdef __cplusplus
5114 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
5115 # #ifdef __cplusplus
5120 # #include <cygwin/cygwin_dll.h>
5121 # DECLARE_CYGWIN_DLL( DllMain );
5123 # HINSTANCE __hDllInstance_base;
5126 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
5128 # __hDllInstance_base = hInst;
5131 # /* ltdll.c ends here */
5132 # This is a source program that is used to create import libraries
5133 # on Windows for dlls which lack them. Don't remove nor modify the
5134 # starting and closing comments
5135 # /* impgen.c starts here */
5136 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
5138 # This file is part of GNU libtool.
5140 # This program is free software; you can redistribute it and/or modify
5141 # it under the terms of the GNU General Public License as published by
5142 # the Free Software Foundation; either version 2 of the License, or
5143 # (at your option) any later version.
5145 # This program is distributed in the hope that it will be useful,
5146 # but WITHOUT ANY WARRANTY; without even the implied warranty of
5147 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5148 # GNU General Public License for more details.
5150 # You should have received a copy of the GNU General Public License
5151 # along with this program; if not, write to the Free Software
5152 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5155 # #include <stdio.h> /* for printf() */
5156 # #include <unistd.h> /* for open(), lseek(), read() */
5157 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
5158 # #include <string.h> /* for strdup() */
5160 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
5162 # #define O_BINARY 0
5165 # static unsigned int
5166 # pe_get16 (fd, offset)
5170 # unsigned char b[2];
5171 # lseek (fd, offset, SEEK_SET);
5173 # return b[0] + (b[1]<<8);
5176 # static unsigned int
5177 # pe_get32 (fd, offset)
5181 # unsigned char b[4];
5182 # lseek (fd, offset, SEEK_SET);
5184 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5187 # static unsigned int
5191 # unsigned char *b = ptr;
5192 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5201 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
5202 # unsigned long export_rva, export_size, nsections, secptr, expptr;
5203 # unsigned long name_rvas, nexp;
5204 # unsigned char *expdata, *erva;
5205 # char *filename, *dll_name;
5207 # filename = argv[1];
5209 # dll = open(filename, O_RDONLY|O_BINARY);
5213 # dll_name = filename;
5215 # for (i=0; filename[i]; i++)
5216 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
5217 # dll_name = filename + i +1;
5219 # pe_header_offset = pe_get32 (dll, 0x3c);
5220 # opthdr_ofs = pe_header_offset + 4 + 20;
5221 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
5223 # if (num_entries < 1) /* no exports */
5226 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
5227 # export_size = pe_get32 (dll, opthdr_ofs + 100);
5228 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
5229 # secptr = (pe_header_offset + 4 + 20 +
5230 # pe_get16 (dll, pe_header_offset + 4 + 16));
5233 # for (i = 0; i < nsections; i++)
5236 # unsigned long secptr1 = secptr + 40 * i;
5237 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
5238 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
5239 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
5240 # lseek(dll, secptr1, SEEK_SET);
5241 # read(dll, sname, 8);
5242 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
5244 # expptr = fptr + (export_rva - vaddr);
5245 # if (export_rva + export_size > vaddr + vsize)
5246 # export_size = vsize - (export_rva - vaddr);
5251 # expdata = (unsigned char*)malloc(export_size);
5252 # lseek (dll, expptr, SEEK_SET);
5253 # read (dll, expdata, export_size);
5254 # erva = expdata - export_rva;
5256 # nexp = pe_as32 (expdata+24);
5257 # name_rvas = pe_as32 (expdata+32);
5259 # printf ("EXPORTS\n");
5260 # for (i = 0; i<nexp; i++)
5262 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
5263 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
5268 # /* impgen.c ends here */
5274 # We use sed instead of cat because bash on DJGPP gets confused if
5275 # if finds mixed CR/LF and LF-only lines. Since sed operates in
5276 # text mode, it properly converts lines to CR/LF. This bash problem
5277 # is reportedly fixed, but why not run on old versions too?
5278 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
5280 mv -f "${ofile}T" "$ofile" || \
5281 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
5289 # This can be used to rebuild libtool when needed
5290 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
5292 # Always use our own libtool.
5293 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5295 # Prevent multiple expansion
5298 for ac_prog in gzip uncompress compress
5300 # Extract the first word of "$ac_prog", so it can be a program name with args.
5301 set dummy $ac_prog; ac_word=$2
5302 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5303 echo "configure:5304: checking for $ac_word" >&5
5304 if eval "test \"`echo '$''{'ac_cv_prog_UNCOMPRESS'+set}'`\" = set"; then
5305 echo $ac_n "(cached) $ac_c" 1>&6
5307 if test -n "$UNCOMPRESS"; then
5308 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
5310 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5312 for ac_dir in $ac_dummy; do
5313 test -z "$ac_dir" && ac_dir=.
5314 if test -f $ac_dir/$ac_word; then
5315 ac_cv_prog_UNCOMPRESS="$ac_prog"
5322 UNCOMPRESS="$ac_cv_prog_UNCOMPRESS"
5323 if test -n "$UNCOMPRESS"; then
5324 echo "$ac_t""$UNCOMPRESS" 1>&6
5326 echo "$ac_t""no" 1>&6
5329 test -n "$UNCOMPRESS" && break
5335 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
5336 echo "configure:5337: checking for executable suffix" >&5
5337 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
5338 echo $ac_n "(cached) $ac_c" 1>&6
5340 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
5344 echo 'int main () { return 0; }' > conftest.$ac_ext
5346 if { (eval echo configure:5347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
5347 for file in conftest.*; do
5349 *.c | *.o | *.obj) ;;
5350 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
5354 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
5357 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
5362 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
5363 echo "$ac_t""${ac_cv_exeext}" 1>&6
5367 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
5368 echo "configure:5369: checking for sin in -lm" >&5
5369 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
5370 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5371 echo $ac_n "(cached) $ac_c" 1>&6
5373 ac_save_LIBS="$LIBS"
5375 cat > conftest.$ac_ext <<EOF
5376 #line 5377 "configure"
5377 #include "confdefs.h"
5378 /* Override any gcc2 internal prototype to avoid an error. */
5379 /* We use char because int might match the return type of a gcc2
5380 builtin and then its argument prototype would still apply. */
5387 if { (eval echo configure:5388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5389 eval "ac_cv_lib_$ac_lib_var=yes"
5391 echo "configure: failed program was:" >&5
5392 cat conftest.$ac_ext >&5
5394 eval "ac_cv_lib_$ac_lib_var=no"
5397 LIBS="$ac_save_LIBS"
5400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5401 echo "$ac_t""yes" 1>&6
5402 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5403 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5404 cat >> confdefs.h <<EOF
5405 #define $ac_tr_lib 1
5411 echo "$ac_t""no" 1>&6
5412 echo "Error: Math library not found.";
5417 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
5418 echo "configure:5419: checking for deflate in -lz" >&5
5419 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
5420 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5421 echo $ac_n "(cached) $ac_c" 1>&6
5423 ac_save_LIBS="$LIBS"
5425 cat > conftest.$ac_ext <<EOF
5426 #line 5427 "configure"
5427 #include "confdefs.h"
5428 /* Override any gcc2 internal prototype to avoid an error. */
5429 /* We use char because int might match the return type of a gcc2
5430 builtin and then its argument prototype would still apply. */
5437 if { (eval echo configure:5438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5439 eval "ac_cv_lib_$ac_lib_var=yes"
5441 echo "configure: failed program was:" >&5
5442 cat conftest.$ac_ext >&5
5444 eval "ac_cv_lib_$ac_lib_var=no"
5447 LIBS="$ac_save_LIBS"
5450 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5451 echo "$ac_t""yes" 1>&6
5452 ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5453 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5454 cat >> confdefs.h <<EOF
5455 #define $ac_tr_lib 1
5461 echo "$ac_t""no" 1>&6
5462 echo "Error: The zlib compression library is required."
5463 DISABLEPDF2SWF=true;
5464 MISSINGLIBS="${MISSINGLIBS} zlib"
5469 echo $ac_n "checking for jpeg_write_raw_data in -ljpeg""... $ac_c" 1>&6
5470 echo "configure:5471: checking for jpeg_write_raw_data in -ljpeg" >&5
5471 ac_lib_var=`echo jpeg'_'jpeg_write_raw_data | sed 'y%./+-%__p_%'`
5472 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5473 echo $ac_n "(cached) $ac_c" 1>&6
5475 ac_save_LIBS="$LIBS"
5477 cat > conftest.$ac_ext <<EOF
5478 #line 5479 "configure"
5479 #include "confdefs.h"
5480 /* Override any gcc2 internal prototype to avoid an error. */
5481 /* We use char because int might match the return type of a gcc2
5482 builtin and then its argument prototype would still apply. */
5483 char jpeg_write_raw_data();
5486 jpeg_write_raw_data()
5489 if { (eval echo configure:5490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5491 eval "ac_cv_lib_$ac_lib_var=yes"
5493 echo "configure: failed program was:" >&5
5494 cat conftest.$ac_ext >&5
5496 eval "ac_cv_lib_$ac_lib_var=no"
5499 LIBS="$ac_save_LIBS"
5502 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5503 echo "$ac_t""yes" 1>&6
5504 ac_tr_lib=HAVE_LIB`echo jpeg | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5505 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5506 cat >> confdefs.h <<EOF
5507 #define $ac_tr_lib 1
5513 echo "$ac_t""no" 1>&6
5514 DISABLEPDF2SWF=true;
5515 DISABLEJPEG2SWF=true;
5516 MISSINGLIBS="${MISSINGLIBS} jpeglib"
5520 echo $ac_n "checking for T1_LoadFont in -lt1""... $ac_c" 1>&6
5521 echo "configure:5522: checking for T1_LoadFont in -lt1" >&5
5522 ac_lib_var=`echo t1'_'T1_LoadFont | sed 'y%./+-%__p_%'`
5523 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5524 echo $ac_n "(cached) $ac_c" 1>&6
5526 ac_save_LIBS="$LIBS"
5528 cat > conftest.$ac_ext <<EOF
5529 #line 5530 "configure"
5530 #include "confdefs.h"
5531 /* Override any gcc2 internal prototype to avoid an error. */
5532 /* We use char because int might match the return type of a gcc2
5533 builtin and then its argument prototype would still apply. */
5540 if { (eval echo configure:5541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5542 eval "ac_cv_lib_$ac_lib_var=yes"
5544 echo "configure: failed program was:" >&5
5545 cat conftest.$ac_ext >&5
5547 eval "ac_cv_lib_$ac_lib_var=no"
5550 LIBS="$ac_save_LIBS"
5553 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5554 echo "$ac_t""yes" 1>&6
5555 ac_tr_lib=HAVE_LIB`echo t1 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5556 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5557 cat >> confdefs.h <<EOF
5558 #define $ac_tr_lib 1
5564 echo "$ac_t""no" 1>&6
5565 DISABLEPDF2SWF=true;
5566 MISSINGLIBS="${MISSINGLIBS} T1lib"
5572 echo $ac_n "checking for byte order""... $ac_c" 1>&6
5573 echo "configure:5574: checking for byte order" >&5
5574 if test "$cross_compiling" = yes; then
5577 cat > conftest.$ac_ext <<EOF
5578 #line 5579 "configure"
5579 #include "confdefs.h"
5581 int main (int argc, char *argv[])
5588 if { (eval echo configure:5589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5592 echo "configure: failed program was:" >&5
5593 cat conftest.$ac_ext >&5
5602 if test "x${CROSSCOMPILE}" = "x1"; then
5603 echo "$ac_t""we are cross compiling- trying to guess from system type" 1>&6
5605 # Do some error checking and defaulting for the host and target type.
5607 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
5610 # 1. You are not allowed to specify --host, --target, and nonopt at the
5612 # 2. Host defaults to nonopt.
5613 # 3. If nonopt is not specified, then host defaults to the current host,
5614 # as determined by config.guess.
5615 # 4. Target and build default to nonopt.
5616 # 5. If nonopt is not specified, then target and build default to host.
5618 # The aliases save the names the user supplied, while $host etc.
5619 # will get canonicalized.
5620 case $host---$target---$nonopt in
5621 NONE---*---* | *---NONE---* | *---*---NONE) ;;
5622 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
5626 # Make sure we can run config.sub.
5627 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
5628 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
5631 echo $ac_n "checking host system type""... $ac_c" 1>&6
5632 echo "configure:5633: checking host system type" >&5
5635 case "$host_alias" in
5639 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
5640 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
5642 *) host_alias=$nonopt ;;
5646 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
5647 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5648 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5649 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5650 echo "$ac_t""$host" 1>&6
5652 echo $ac_n "checking target system type""... $ac_c" 1>&6
5653 echo "configure:5654: checking target system type" >&5
5655 target_alias=$target
5656 case "$target_alias" in
5659 NONE) target_alias=$host_alias ;;
5660 *) target_alias=$nonopt ;;
5664 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
5665 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5666 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5667 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5668 echo "$ac_t""$target" 1>&6
5670 echo $ac_n "checking build system type""... $ac_c" 1>&6
5671 echo "configure:5672: checking build system type" >&5
5674 case "$build_alias" in
5677 NONE) build_alias=$host_alias ;;
5678 *) build_alias=$nonopt ;;
5682 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
5683 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5684 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5685 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5686 echo "$ac_t""$build" 1>&6
5688 test "$host_alias" != "$target_alias" &&
5689 test "$program_prefix$program_suffix$program_transform_name" = \
5691 program_prefix=${target_alias}-
5693 echo $ac_n "checking for byte order, try 2""... $ac_c" 1>&6
5694 echo "configure:5695: checking for byte order, try 2" >&5
5699 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
5706 if test "x${LITTLEENDIAN}" = "x1"; then
5707 echo "$ac_t""little endian" 1>&6
5711 if test "x${BIGENDIAN}" = "x1"; then
5712 echo "$ac_t""big endian" 1>&6
5715 export WORDS_BIGENDIAN
5716 cat >> confdefs.h <<EOF
5717 #define WORDS_BIGENDIAN 1
5721 if test "x${BYTEORDERCHECKOK}" != "x1"; then
5722 echo "$ac_t""unknown" 1>&6
5723 echo Byte order could not determined. Try to insert your system type into aclocal.m4 about line 21
5729 echo $ac_n "checking whether system() can handle command substitution""... $ac_c" 1>&6
5730 echo "configure:5731: checking whether system() can handle command substitution" >&5
5731 if test "$cross_compiling" = yes; then
5734 cat > conftest.$ac_ext <<EOF
5735 #line 5736 "configure"
5736 #include "confdefs.h"
5739 int main (int argc, char*argv[])
5741 return system("test `touch config.tmp2`");
5745 if { (eval echo configure:5746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5749 echo "configure: failed program was:" >&5
5750 cat conftest.$ac_ext >&5
5756 if test "x${OK}" = "xOK";then
5757 test -f config.tmp2 || OK=
5760 if test "x${CROSSCOMPILE}" = "x1";then
5763 if test "x${OK}" = "xOK";then
5765 echo "$ac_t""yes" 1>&6
5767 export SYSTEM_BACKTICKS
5768 cat >> confdefs.h <<EOF
5769 #define SYSTEM_BACKTICKS 1
5773 echo "$ac_t""no" 1>&6
5778 if test "$program_transform_name" = s,x,x,; then
5779 program_transform_name=
5781 # Double any \ or $. echo might interpret backslashes.
5782 cat <<\EOF_SED > conftestsed
5783 s,\\,\\\\,g; s,\$,$$,g
5785 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
5788 test "$program_prefix" != NONE &&
5789 program_transform_name="s,^,${program_prefix},; $program_transform_name"
5790 # Use a double $ so make ignores it.
5791 test "$program_suffix" != NONE &&
5792 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
5794 # sed with no file args requires a program.
5795 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
5801 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
5803 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5804 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
5805 echo "configure:5806: checking for $ac_hdr that defines DIR" >&5
5806 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
5807 echo $ac_n "(cached) $ac_c" 1>&6
5809 cat > conftest.$ac_ext <<EOF
5810 #line 5811 "configure"
5811 #include "confdefs.h"
5812 #include <sys/types.h>
5818 if { (eval echo configure:5819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5820 eval "ac_cv_header_dirent_$ac_safe=yes"
5822 echo "configure: failed program was:" >&5
5823 cat conftest.$ac_ext >&5
5825 eval "ac_cv_header_dirent_$ac_safe=no"
5829 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
5830 echo "$ac_t""yes" 1>&6
5831 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5832 cat >> confdefs.h <<EOF
5833 #define $ac_tr_hdr 1
5835 ac_header_dirent=$ac_hdr; break
5837 echo "$ac_t""no" 1>&6
5840 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5841 if test $ac_header_dirent = dirent.h; then
5842 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
5843 echo "configure:5844: checking for opendir in -ldir" >&5
5844 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
5845 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5846 echo $ac_n "(cached) $ac_c" 1>&6
5848 ac_save_LIBS="$LIBS"
5850 cat > conftest.$ac_ext <<EOF
5851 #line 5852 "configure"
5852 #include "confdefs.h"
5853 /* Override any gcc2 internal prototype to avoid an error. */
5854 /* We use char because int might match the return type of a gcc2
5855 builtin and then its argument prototype would still apply. */
5862 if { (eval echo configure:5863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5864 eval "ac_cv_lib_$ac_lib_var=yes"
5866 echo "configure: failed program was:" >&5
5867 cat conftest.$ac_ext >&5
5869 eval "ac_cv_lib_$ac_lib_var=no"
5872 LIBS="$ac_save_LIBS"
5875 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5876 echo "$ac_t""yes" 1>&6
5879 echo "$ac_t""no" 1>&6
5883 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
5884 echo "configure:5885: checking for opendir in -lx" >&5
5885 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
5886 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5887 echo $ac_n "(cached) $ac_c" 1>&6
5889 ac_save_LIBS="$LIBS"
5891 cat > conftest.$ac_ext <<EOF
5892 #line 5893 "configure"
5893 #include "confdefs.h"
5894 /* Override any gcc2 internal prototype to avoid an error. */
5895 /* We use char because int might match the return type of a gcc2
5896 builtin and then its argument prototype would still apply. */
5903 if { (eval echo configure:5904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5905 eval "ac_cv_lib_$ac_lib_var=yes"
5907 echo "configure: failed program was:" >&5
5908 cat conftest.$ac_ext >&5
5910 eval "ac_cv_lib_$ac_lib_var=no"
5913 LIBS="$ac_save_LIBS"
5916 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5917 echo "$ac_t""yes" 1>&6
5920 echo "$ac_t""no" 1>&6
5925 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5926 echo "configure:5927: checking for ANSI C header files" >&5
5927 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5928 echo $ac_n "(cached) $ac_c" 1>&6
5930 cat > conftest.$ac_ext <<EOF
5931 #line 5932 "configure"
5932 #include "confdefs.h"
5938 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5939 { (eval echo configure:5940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5940 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5941 if test -z "$ac_err"; then
5943 ac_cv_header_stdc=yes
5946 echo "configure: failed program was:" >&5
5947 cat conftest.$ac_ext >&5
5949 ac_cv_header_stdc=no
5953 if test $ac_cv_header_stdc = yes; then
5954 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5955 cat > conftest.$ac_ext <<EOF
5956 #line 5957 "configure"
5957 #include "confdefs.h"
5960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5961 egrep "memchr" >/dev/null 2>&1; then
5965 ac_cv_header_stdc=no
5971 if test $ac_cv_header_stdc = yes; then
5972 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5973 cat > conftest.$ac_ext <<EOF
5974 #line 5975 "configure"
5975 #include "confdefs.h"
5978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5979 egrep "free" >/dev/null 2>&1; then
5983 ac_cv_header_stdc=no
5989 if test $ac_cv_header_stdc = yes; then
5990 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5991 if test "$cross_compiling" = yes; then
5994 cat > conftest.$ac_ext <<EOF
5995 #line 5996 "configure"
5996 #include "confdefs.h"
5998 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5999 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6000 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6001 int main () { int i; for (i = 0; i < 256; i++)
6002 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6006 if { (eval echo configure:6007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6010 echo "configure: failed program was:" >&5
6011 cat conftest.$ac_ext >&5
6013 ac_cv_header_stdc=no
6021 echo "$ac_t""$ac_cv_header_stdc" 1>&6
6022 if test $ac_cv_header_stdc = yes; then
6023 cat >> confdefs.h <<\EOF
6024 #define STDC_HEADERS 1
6029 for ac_hdr in zlib.h jpeglib.h t1lib.h sys/stat.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h
6031 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6032 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6033 echo "configure:6034: checking for $ac_hdr" >&5
6034 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6035 echo $ac_n "(cached) $ac_c" 1>&6
6037 cat > conftest.$ac_ext <<EOF
6038 #line 6039 "configure"
6039 #include "confdefs.h"
6042 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6043 { (eval echo configure:6044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6044 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6045 if test -z "$ac_err"; then
6047 eval "ac_cv_header_$ac_safe=yes"
6050 echo "configure: failed program was:" >&5
6051 cat conftest.$ac_ext >&5
6053 eval "ac_cv_header_$ac_safe=no"
6057 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6058 echo "$ac_t""yes" 1>&6
6059 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6060 cat >> confdefs.h <<EOF
6061 #define $ac_tr_hdr 1
6065 echo "$ac_t""no" 1>&6
6070 if test "x${ac_cv_header_jpeglib_h}" != "xyes"; then
6071 DISABLEPDF2SWF=true;
6072 DISABLEJPEG2SWF=true;
6073 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
6075 if test "x${ac_cv_header_t1lib_h}" != "xyes"; then
6076 DISABLEPDF2SWF=true;
6077 MISSINGLIBS="${MISSINGLIBS} t1lib.h"
6079 if test "x${ac_cv_header_zlib_h}" != "xyes"; then
6080 DISABLEPDF2SWF=true;
6081 MISSINGLIBS="${MISSINGLIBS} zlib.h"
6084 cat >> confdefs.h <<EOF
6085 #define PACKAGE "$PACKAGE"
6088 cat >> confdefs.h <<EOF
6089 #define VERSION "$VERSION"
6098 echo $ac_n "checking for working const""... $ac_c" 1>&6
6099 echo "configure:6100: checking for working const" >&5
6100 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6101 echo $ac_n "(cached) $ac_c" 1>&6
6103 cat > conftest.$ac_ext <<EOF
6104 #line 6105 "configure"
6105 #include "confdefs.h"
6109 /* Ultrix mips cc rejects this. */
6110 typedef int charset[2]; const charset x;
6111 /* SunOS 4.1.1 cc rejects this. */
6112 char const *const *ccp;
6114 /* NEC SVR4.0.2 mips cc rejects this. */
6115 struct point {int x, y;};
6116 static struct point const zero = {0,0};
6117 /* AIX XL C 1.02.0.0 rejects this.
6118 It does not let you subtract one const X* pointer from another in an arm
6119 of an if-expression whose if-part is not a constant expression */
6120 const char *g = "string";
6121 ccp = &g + (g ? g-g : 0);
6122 /* HPUX 7.0 cc rejects these. */
6125 ccp = (char const *const *) p;
6126 { /* SCO 3.2v4 cc rejects this. */
6128 char const *s = 0 ? (char *) 0 : (char const *) 0;
6132 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6134 const int *foo = &x[0];
6137 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6138 typedef const int *iptr;
6142 { /* AIX XL C 1.02.0.0 rejects this saying
6143 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6144 struct s { int j; const int *ap[3]; };
6145 struct s *b; b->j = 5;
6147 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6153 if { (eval echo configure:6154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6157 echo "configure: failed program was:" >&5
6158 cat conftest.$ac_ext >&5
6165 echo "$ac_t""$ac_cv_c_const" 1>&6
6166 if test $ac_cv_c_const = no; then
6167 cat >> confdefs.h <<\EOF
6173 echo $ac_n "checking for inline""... $ac_c" 1>&6
6174 echo "configure:6175: checking for inline" >&5
6175 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6176 echo $ac_n "(cached) $ac_c" 1>&6
6179 for ac_kw in inline __inline__ __inline; do
6180 cat > conftest.$ac_ext <<EOF
6181 #line 6182 "configure"
6182 #include "confdefs.h"
6188 if { (eval echo configure:6189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6190 ac_cv_c_inline=$ac_kw; break
6192 echo "configure: failed program was:" >&5
6193 cat conftest.$ac_ext >&5
6200 echo "$ac_t""$ac_cv_c_inline" 1>&6
6201 case "$ac_cv_c_inline" in
6203 no) cat >> confdefs.h <<\EOF
6207 *) cat >> confdefs.h <<EOF
6208 #define inline $ac_cv_c_inline
6213 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6214 echo "configure:6215: checking for off_t" >&5
6215 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6216 echo $ac_n "(cached) $ac_c" 1>&6
6218 cat > conftest.$ac_ext <<EOF
6219 #line 6220 "configure"
6220 #include "confdefs.h"
6221 #include <sys/types.h>
6227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6228 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6230 ac_cv_type_off_t=yes
6238 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6239 if test $ac_cv_type_off_t = no; then
6240 cat >> confdefs.h <<\EOF
6246 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6247 echo "configure:6248: checking for size_t" >&5
6248 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6249 echo $ac_n "(cached) $ac_c" 1>&6
6251 cat > conftest.$ac_ext <<EOF
6252 #line 6253 "configure"
6253 #include "confdefs.h"
6254 #include <sys/types.h>
6260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6261 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6263 ac_cv_type_size_t=yes
6266 ac_cv_type_size_t=no
6271 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6272 if test $ac_cv_type_size_t = no; then
6273 cat >> confdefs.h <<\EOF
6274 #define size_t unsigned
6279 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
6280 echo "configure:6281: checking whether struct tm is in sys/time.h or time.h" >&5
6281 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
6282 echo $ac_n "(cached) $ac_c" 1>&6
6284 cat > conftest.$ac_ext <<EOF
6285 #line 6286 "configure"
6286 #include "confdefs.h"
6287 #include <sys/types.h>
6290 struct tm *tp; tp->tm_sec;
6293 if { (eval echo configure:6294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6295 ac_cv_struct_tm=time.h
6297 echo "configure: failed program was:" >&5
6298 cat conftest.$ac_ext >&5
6300 ac_cv_struct_tm=sys/time.h
6305 echo "$ac_t""$ac_cv_struct_tm" 1>&6
6306 if test $ac_cv_struct_tm = sys/time.h; then
6307 cat >> confdefs.h <<\EOF
6308 #define TM_IN_SYS_TIME 1
6313 echo $ac_n "checking for boolean""... $ac_c" 1>&6
6314 echo "configure:6315: checking for boolean" >&5
6315 if eval "test \"`echo '$''{'ac_cv_type_boolean'+set}'`\" = set"; then
6316 echo $ac_n "(cached) $ac_c" 1>&6
6318 cat > conftest.$ac_ext <<EOF
6319 #line 6320 "configure"
6320 #include "confdefs.h"
6321 #include <sys/types.h>
6327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6328 egrep "(^|[^a-zA-Z_0-9])boolean[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6330 ac_cv_type_boolean=yes
6333 ac_cv_type_boolean=no
6338 echo "$ac_t""$ac_cv_type_boolean" 1>&6
6339 if test $ac_cv_type_boolean = no; then
6340 cat >> confdefs.h <<\EOF
6346 echo $ac_n "checking for bool""... $ac_c" 1>&6
6347 echo "configure:6348: checking for bool" >&5
6348 if eval "test \"`echo '$''{'ac_cv_type_bool'+set}'`\" = set"; then
6349 echo $ac_n "(cached) $ac_c" 1>&6
6351 cat > conftest.$ac_ext <<EOF
6352 #line 6353 "configure"
6353 #include "confdefs.h"
6354 #include <sys/types.h>
6360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6361 egrep "(^|[^a-zA-Z_0-9])bool[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6371 echo "$ac_t""$ac_cv_type_bool" 1>&6
6372 if test $ac_cv_type_bool = no; then
6373 cat >> confdefs.h <<\EOF
6380 for ac_func in popen mkstemp stat lrand48 rand srand48 srand
6382 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6383 echo "configure:6384: checking for $ac_func" >&5
6384 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6385 echo $ac_n "(cached) $ac_c" 1>&6
6387 cat > conftest.$ac_ext <<EOF
6388 #line 6389 "configure"
6389 #include "confdefs.h"
6390 /* System header to define __stub macros and hopefully few prototypes,
6391 which can conflict with char $ac_func(); below. */
6393 /* Override any gcc2 internal prototype to avoid an error. */
6394 /* We use char because int might match the return type of a gcc2
6395 builtin and then its argument prototype would still apply. */
6400 /* The GNU C library defines this for functions which it implements
6401 to always fail with ENOSYS. Some functions are actually named
6402 something starting with __ and the normal name is an alias. */
6403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6411 if { (eval echo configure:6412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6413 eval "ac_cv_func_$ac_func=yes"
6415 echo "configure: failed program was:" >&5
6416 cat conftest.$ac_ext >&5
6418 eval "ac_cv_func_$ac_func=no"
6423 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6424 echo "$ac_t""yes" 1>&6
6425 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6426 cat >> confdefs.h <<EOF
6427 #define $ac_tr_func 1
6431 echo "$ac_t""no" 1>&6
6436 echo $ac_n "checking whether we can compile the avifile test program""... $ac_c" 1>&6
6437 echo "configure:6438: checking whether we can compile the avifile test program" >&5
6439 cat > conftest.$ac_ext << EOF
6440 #include <avifile/version.h>
6441 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
6442 #include <avifile.h>
6443 #include <aviplay.h>
6445 #include <creators.h>
6446 #include <StreamInfo.h>
6449 #include <avifile.h>
6450 #include <aviplay.h>
6451 #include <aviutil.h>
6453 #define Height height
6458 int main (int argc, char*argv)
6460 IAviReadFile* player;
6461 IAviReadStream* astream;
6462 IAviReadStream* vstream;
6463 player = CreateIAviReadFile(0);
6464 astream = player->GetStream(0, AviStream::Audio);
6465 vstream = player->GetStream(0, AviStream::Video);
6466 vstream -> StartStreaming();
6467 astream -> StartStreaming();
6470 player->GetFileHeader(&head);
6471 head.dwMicroSecPerFrame;
6476 head.dwMicroSecPerFrame;
6477 astream->GetEndPos(),
6478 astream->GetEndTime());
6479 player->StreamCount();
6481 StreamInfo*audioinfo;
6482 StreamInfo*videoinfo;
6483 audioinfo = astream->GetStreamInfo();
6484 videoinfo = vstream->GetStreamInfo();
6485 videoinfo->GetVideoWidth();
6486 videoinfo->GetVideoHeight();
6487 audioinfo->GetAudioSamplesPerSec();
6488 videoinfo->GetFps();
6490 CImage*img = vstream->GetFrame();
6497 astream->GetAudioFormatInfo(&wave,0);
6499 astream->ReadFrames(0,0,0,a,b);
6503 ac_link='$CXX $CPPFLAGS $CXXFLAGS `avifile-config --cflags` `avifile-config --libs` conftest.$ac_ext -o conftest${ac_exeext}'
6504 if {(eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6505 echo "$ac_t""yes" 1>&6
6508 cat >> confdefs.h <<EOF
6509 #define AVIFILE true
6513 echo "configure: failed program was:" >&5
6514 cat conftest.$ac_ext >&5
6515 echo "$ac_t""no" 1>&6
6520 avi2swf="avi2swf/Makefile"
6521 if test "x${AVIFILE}" != "xtrue"; then
6522 echo "* Couldn't compile the avifile test program."
6523 echo "* Disabling avi2swf tool..."
6524 echo all: > avi2swf/Makefile
6525 echo install: >> avi2swf/Makefile
6526 echo clean: >> avi2swf/Makefile
6530 if test "x${UNCOMPRESS}" = "xgzip"; then
6531 cat >> confdefs.h <<EOF
6538 JPEG2SWF='jpeg2swf$(EXEEXT)'
6540 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
6541 echo "***************************************************"
6542 echo "The following headers/libraries are missing: " ${MISSINGLIBS}
6543 echo "Disabling pdf2swf tool..."
6544 rm -f pdf2swf/Makefile
6545 echo all: > pdf2swf/Makefile
6546 echo install: >> pdf2swf/Makefile
6547 echo clean: >> pdf2swf/Makefile
6548 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
6549 echo "Disabling jpeg2swf tool..."
6553 echo "***************************************************"
6554 FILES="./release ${avi2swf} Makefile lib/lame/Makefile lib/Makefile src/Makefile swfs/Makefile"
6556 FILES="./release ${avi2swf} Makefile lib/lame/Makefile lib/Makefile src/Makefile pdf2swf/Makefile pdf2swf/xpdf/Makefile pdf2swf/ttf2pt1/Makefile pdf2swf/fonts/Makefile swfs/Makefile"
6561 cat > confcache <<\EOF
6562 # This file is a shell script that caches the results of configure
6563 # tests run on this system so they can be shared between configure
6564 # scripts and configure runs. It is not useful on other systems.
6565 # If it contains results you don't want to keep, you may remove or edit it.
6567 # By default, configure uses ./config.cache as the cache file,
6568 # creating it if it does not exist already. You can give configure
6569 # the --cache-file=FILE option to use a different cache file; that is
6570 # what configure does when it calls configure scripts in
6571 # subdirectories, so they share the cache.
6572 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6573 # config.status only pays attention to the cache file if you give it the
6574 # --recheck option to rerun configure.
6577 # The following way of writing the cache mishandles newlines in values,
6578 # but we know of no workaround that is simple, portable, and efficient.
6579 # So, don't put newlines in cache variables' values.
6580 # Ultrix sh set writes to stderr and can't be redirected directly,
6581 # and sets the high bit in the cache file unless we assign to the vars.
6583 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6585 # `set' does not quote correctly, so add quotes (double-quote substitution
6586 # turns \\\\ into \\, and sed turns \\ into \).
6588 -e "s/'/'\\\\''/g" \
6589 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6592 # `set' quotes correctly as required by POSIX, so do not add quotes.
6593 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6596 if cmp -s $cache_file confcache; then
6599 if test -w $cache_file; then
6600 echo "updating cache $cache_file"
6601 cat confcache > $cache_file
6603 echo "not updating unwritable cache $cache_file"
6608 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6610 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6611 # Let make expand exec_prefix.
6612 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6614 # Any assignment to VPATH causes Sun make to only execute
6615 # the first set of double-colon rules, so remove it if not needed.
6616 # If there is a colon in the path, we need to keep it.
6617 if test "x$srcdir" = x.; then
6618 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6621 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6623 DEFS=-DHAVE_CONFIG_H
6625 # Without the "./", some shells look in PATH for config.status.
6626 : ${CONFIG_STATUS=./config.status}
6628 echo creating $CONFIG_STATUS
6629 rm -f $CONFIG_STATUS
6630 cat > $CONFIG_STATUS <<EOF
6632 # Generated automatically by configure.
6633 # Run this file to recreate the current configuration.
6634 # This directory was configured as follows,
6635 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6637 # $0 $ac_configure_args
6639 # Compiler output produced by configure, useful for debugging
6640 # configure, is in ./config.log if it exists.
6642 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6645 case "\$ac_option" in
6646 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6647 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6648 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6649 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6650 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6652 -help | --help | --hel | --he | --h)
6653 echo "\$ac_cs_usage"; exit 0 ;;
6654 *) echo "\$ac_cs_usage"; exit 1 ;;
6658 ac_given_srcdir=$srcdir
6659 ac_given_INSTALL="$INSTALL"
6661 trap 'rm -fr `echo "${FILES} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6663 cat >> $CONFIG_STATUS <<EOF
6665 # Protect against being on the right side of a sed subst in config.status.
6666 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6667 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6671 s%@CFLAGS@%$CFLAGS%g
6672 s%@CPPFLAGS@%$CPPFLAGS%g
6673 s%@CXXFLAGS@%$CXXFLAGS%g
6674 s%@FFLAGS@%$FFLAGS%g
6676 s%@LDFLAGS@%$LDFLAGS%g
6678 s%@exec_prefix@%$exec_prefix%g
6679 s%@prefix@%$prefix%g
6680 s%@program_transform_name@%$program_transform_name%g
6681 s%@bindir@%$bindir%g
6682 s%@sbindir@%$sbindir%g
6683 s%@libexecdir@%$libexecdir%g
6684 s%@datadir@%$datadir%g
6685 s%@sysconfdir@%$sysconfdir%g
6686 s%@sharedstatedir@%$sharedstatedir%g
6687 s%@localstatedir@%$localstatedir%g
6688 s%@libdir@%$libdir%g
6689 s%@includedir@%$includedir%g
6690 s%@oldincludedir@%$oldincludedir%g
6691 s%@infodir@%$infodir%g
6692 s%@mandir@%$mandir%g
6696 s%@RANLIB@%$RANLIB%g
6697 s%@SET_MAKE@%$SET_MAKE%g
6698 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6699 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6700 s%@INSTALL_DATA@%$INSTALL_DATA%g
6703 s%@host_alias@%$host_alias%g
6704 s%@host_cpu@%$host_cpu%g
6705 s%@host_vendor@%$host_vendor%g
6706 s%@host_os@%$host_os%g
6708 s%@build_alias@%$build_alias%g
6709 s%@build_cpu@%$build_cpu%g
6710 s%@build_vendor@%$build_vendor%g
6711 s%@build_os@%$build_os%g
6712 s%@OBJEXT@%$OBJEXT%g
6713 s%@EXEEXT@%$EXEEXT%g
6716 s%@LIBTOOL@%$LIBTOOL%g
6717 s%@UNCOMPRESS@%$UNCOMPRESS%g
6718 s%@target@%$target%g
6719 s%@target_alias@%$target_alias%g
6720 s%@target_cpu@%$target_cpu%g
6721 s%@target_vendor@%$target_vendor%g
6722 s%@target_os@%$target_os%g
6723 s%@WORDS_BIGENDIAN@%$WORDS_BIGENDIAN%g
6724 s%@SYSTEM_BACKTICKS@%$SYSTEM_BACKTICKS%g
6725 s%@PACKAGE@%$PACKAGE%g
6726 s%@VERSION@%$VERSION%g
6727 s%@HAVE_UNISTD_H@%$HAVE_UNISTD_H%g
6728 s%@USE_GZIP@%$USE_GZIP%g
6729 s%@JPEG2SWF@%$JPEG2SWF%g
6734 cat >> $CONFIG_STATUS <<\EOF
6736 # Split the substitutions into bite-sized pieces for seds with
6737 # small command number limits, like on Digital OSF/1 and HP-UX.
6738 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6739 ac_file=1 # Number of current file.
6740 ac_beg=1 # First line for current file.
6741 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6744 while $ac_more_lines; do
6745 if test $ac_beg -gt 1; then
6746 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6748 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6750 if test ! -s conftest.s$ac_file; then
6752 rm -f conftest.s$ac_file
6754 if test -z "$ac_sed_cmds"; then
6755 ac_sed_cmds="sed -f conftest.s$ac_file"
6757 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6759 ac_file=`expr $ac_file + 1`
6761 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6764 if test -z "$ac_sed_cmds"; then
6769 cat >> $CONFIG_STATUS <<EOF
6771 CONFIG_FILES=\${CONFIG_FILES-"${FILES}"}
6773 cat >> $CONFIG_STATUS <<\EOF
6774 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6775 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6777 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6778 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6779 *) ac_file_in="${ac_file}.in" ;;
6782 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6784 # Remove last slash and all that follows it. Not all systems have dirname.
6785 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6786 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6787 # The file is in a subdirectory.
6788 test ! -d "$ac_dir" && mkdir "$ac_dir"
6789 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6790 # A "../" for each directory in $ac_dir_suffix.
6791 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6793 ac_dir_suffix= ac_dots=
6796 case "$ac_given_srcdir" in
6798 if test -z "$ac_dots"; then top_srcdir=.
6799 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6800 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6802 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6803 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6806 case "$ac_given_INSTALL" in
6807 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6808 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6811 echo creating "$ac_file"
6813 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6815 *Makefile*) ac_comsub="1i\\
6816 # $configure_input" ;;
6820 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6822 s%@configure_input@%$configure_input%g
6823 s%@srcdir@%$srcdir%g
6824 s%@top_srcdir@%$top_srcdir%g
6825 s%@INSTALL@%$INSTALL%g
6826 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6830 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6831 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6833 # ac_d sets the value in "#define NAME VALUE" lines.
6834 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6835 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6838 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6839 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6840 ac_uB='\([ ]\)%\1#\2define\3'
6843 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6844 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6845 ac_eB='$%\1#\2define\3'
6849 if test "${CONFIG_HEADERS+set}" != set; then
6851 cat >> $CONFIG_STATUS <<EOF
6852 CONFIG_HEADERS="config.h"
6854 cat >> $CONFIG_STATUS <<\EOF
6856 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6857 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6859 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6860 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6861 *) ac_file_in="${ac_file}.in" ;;
6864 echo creating $ac_file
6866 rm -f conftest.frag conftest.in conftest.out
6867 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6868 cat $ac_file_inputs > conftest.in
6872 # Transform confdefs.h into a sed script conftest.vals that substitutes
6873 # the proper values into config.h.in to produce config.h. And first:
6874 # Protect against being on the right side of a sed subst in config.status.
6875 # Protect against being in an unquoted here document in config.status.
6877 cat > conftest.hdr <<\EOF
6880 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6884 sed -n -f conftest.hdr confdefs.h > conftest.vals
6887 # This sed command replaces #undef with comments. This is necessary, for
6888 # example, in the case of _POSIX_SOURCE, which is predefined and required
6889 # on some systems where configure will not decide to define it.
6890 cat >> conftest.vals <<\EOF
6891 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6894 # Break up conftest.vals because some shells have a limit on
6895 # the size of here documents, and old seds have small limits too.
6900 ac_lines=`grep -c . conftest.vals`
6901 # grep -c gives empty output for an empty file on some AIX systems.
6902 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6903 # Write a limited-size here document to conftest.frag.
6904 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6905 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6907 sed -f conftest.frag conftest.in > conftest.out
6909 mv conftest.out conftest.in
6911 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6913 mv conftest.tail conftest.vals
6917 cat >> $CONFIG_STATUS <<\EOF
6918 rm -f conftest.frag conftest.h
6919 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6920 cat conftest.in >> conftest.h
6922 if cmp -s $ac_file conftest.h 2>/dev/null; then
6923 echo "$ac_file is unchanged"
6926 # Remove last slash and all that follows it. Not all systems have dirname.
6927 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6928 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6929 # The file is in a subdirectory.
6930 test ! -d "$ac_dir" && mkdir "$ac_dir"
6933 mv conftest.h $ac_file
6938 cat >> $CONFIG_STATUS <<EOF
6941 cat >> $CONFIG_STATUS <<\EOF
6945 chmod +x $CONFIG_STATUS
6946 rm -fr confdefs* $ac_clean_files
6947 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1