3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-checkmem turn on ccmalloc debugging"
17 --enable-debug turn on debugging"
19 --enable-warnings turn on compiler warnings"
21 --enable-optimizations turn on compiler optimizations (recommended for avi2swf)"
23 --disable-lame don't compile any L.A.M.E. mp3 encoding code in"
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
27 --enable-static[=PKGS] build static libraries [default=yes]"
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
33 # Find the correct PATH separator. Usually this is `:', but
34 # DJGPP uses `;' like DOS.
35 if test "X${PATH_SEPARATOR+set}" != Xset; then
36 UNAME=${UNAME-`uname 2>/dev/null`}
38 *-DOS) lt_cv_sys_path_separator=';' ;;
39 *) lt_cv_sys_path_separator=':' ;;
41 PATH_SEPARATOR=$lt_cv_sys_path_separator
45 # Check that we are running under the correct shell.
46 SHELL=${CONFIG_SHELL-/bin/sh}
50 # Remove one level of quotation (which was required for Make).
51 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
56 if test "X$1" = X--no-reexec; then
57 # Discard the --no-reexec flag, and continue.
59 elif test "X$1" = X--fallback-echo; then
60 # Avoid inline document here, it may be left over
62 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
63 # Yippee, $echo works!
66 # Restart under the correct shell.
67 exec $SHELL "$0" --no-reexec ${1+"$@"}
70 if test "X$1" = X--fallback-echo; then
71 # used as fallback echo
79 # The HP-UX ksh and POSIX shell print the target directory to stdout
81 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
83 if test -z "$ECHO"; then
84 if test "X${echo_test_string+set}" != Xset; then
85 # find a string as large as possible, as long as the shell can cope with it
86 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
87 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
88 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
89 echo_test_string="`eval $cmd`" &&
90 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
97 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
98 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
99 test "X$echo_testing_string" = "X$echo_test_string"; then
102 # The Solaris, AIX, and Digital Unix default echo programs unquote
103 # backslashes. This makes it impossible to quote backslashes using
104 # echo "$something" | sed 's/\\/\\\\/g'
106 # So, first we look for a working echo in the user's PATH.
108 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
109 for dir in $PATH /usr/ucb; do
110 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
111 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
112 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
113 test "X$echo_testing_string" = "X$echo_test_string"; then
120 if test "X$echo" = Xecho; then
121 # We didn't find a better echo, so look for alternatives.
122 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
123 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
124 test "X$echo_testing_string" = "X$echo_test_string"; then
125 # This shell has a builtin print -r that does the trick.
127 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
128 test "X$CONFIG_SHELL" != X/bin/ksh; then
129 # If we have ksh, try running configure again with it.
130 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
131 export ORIGINAL_CONFIG_SHELL
132 CONFIG_SHELL=/bin/ksh
134 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
138 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
139 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
140 test "X$echo_testing_string" = "X$echo_test_string"; then
143 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
144 test "X$echo_testing_string" = 'X\t' &&
145 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
146 test "X$echo_testing_string" = "X$echo_test_string"; then
147 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
149 SHELL="$CONFIG_SHELL"
151 echo="$CONFIG_SHELL $0 --fallback-echo"
152 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
153 test "X$echo_testing_string" = 'X\t' &&
154 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
155 test "X$echo_testing_string" = "X$echo_test_string"; then
156 echo="$CONFIG_SHELL $0 --fallback-echo"
158 # maybe with a smaller string...
161 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
162 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
169 if test "$prev" != 'sed 50q "$0"'; then
170 echo_test_string=`eval $prev`
171 export echo_test_string
172 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
174 # Oops. We lost completely, so just stick with echo.
183 # Copy echo and quote the copy suitably for passing to libtool from
184 # the Makefile, instead of quoting the original, which is used later.
186 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
187 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
192 --disable-libtool-lock avoid locking (might break parallel builds)"
194 --with-pic try to use only PIC/non-PIC objects [default=use both]"
196 # Initialize some variables set by options.
197 # The variables have the same names as the options, with
198 # dashes changed to underlines.
200 cache_file=./config.cache
209 program_transform_name=s,x,x,
217 bindir='${exec_prefix}/bin'
218 sbindir='${exec_prefix}/sbin'
219 libexecdir='${exec_prefix}/libexec'
220 datadir='${prefix}/share'
221 sysconfdir='${prefix}/etc'
222 sharedstatedir='${prefix}/com'
223 localstatedir='${prefix}/var'
224 libdir='${exec_prefix}/lib'
225 includedir='${prefix}/include'
226 oldincludedir='/usr/include'
227 infodir='${prefix}/info'
228 mandir='${prefix}/man'
230 # Initialize some other variables.
233 SHELL=${CONFIG_SHELL-/bin/sh}
234 # Maximum number of lines to put in a shell here document.
241 # If the previous option needs an argument, assign it.
242 if test -n "$ac_prev"; then
243 eval "$ac_prev=\$ac_option"
249 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
253 # Accept the important Cygnus configure options, so we can diagnose typos.
257 -bindir | --bindir | --bindi | --bind | --bin | --bi)
259 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
260 bindir="$ac_optarg" ;;
262 -build | --build | --buil | --bui | --bu)
264 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
265 build="$ac_optarg" ;;
267 -cache-file | --cache-file | --cache-fil | --cache-fi \
268 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
269 ac_prev=cache_file ;;
270 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
271 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
272 cache_file="$ac_optarg" ;;
274 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
276 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
278 datadir="$ac_optarg" ;;
280 -disable-* | --disable-*)
281 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
282 # Reject names that are not valid shell variable names.
283 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
284 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
286 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
287 eval "enable_${ac_feature}=no" ;;
289 -enable-* | --enable-*)
290 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
291 # Reject names that are not valid shell variable names.
292 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
293 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
295 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
300 eval "enable_${ac_feature}='$ac_optarg'" ;;
302 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
303 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
304 | --exec | --exe | --ex)
305 ac_prev=exec_prefix ;;
306 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
307 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
308 | --exec=* | --exe=* | --ex=*)
309 exec_prefix="$ac_optarg" ;;
311 -gas | --gas | --ga | --g)
312 # Obsolete; use --with-gas.
315 -help | --help | --hel | --he)
316 # Omit some internal or obsolete options to make the list less imposing.
317 # This message is too long to be a string in the A/UX 3.1 sh.
319 Usage: configure [options] [host]
320 Options: [defaults in brackets after descriptions]
322 --cache-file=FILE cache test results in FILE
323 --help print this message
324 --no-create do not create output files
325 --quiet, --silent do not print \`checking...' messages
326 --version print the version of autoconf that created configure
327 Directory and file names:
328 --prefix=PREFIX install architecture-independent files in PREFIX
330 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
332 --bindir=DIR user executables in DIR [EPREFIX/bin]
333 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
334 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
335 --datadir=DIR read-only architecture-independent data in DIR
337 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
338 --sharedstatedir=DIR modifiable architecture-independent data in DIR
340 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
341 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
342 --includedir=DIR C header files in DIR [PREFIX/include]
343 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
344 --infodir=DIR info documentation in DIR [PREFIX/info]
345 --mandir=DIR man documentation in DIR [PREFIX/man]
346 --srcdir=DIR find the sources in DIR [configure dir or ..]
347 --program-prefix=PREFIX prepend PREFIX to installed program names
348 --program-suffix=SUFFIX append SUFFIX to installed program names
349 --program-transform-name=PROGRAM
350 run sed PROGRAM on installed program names
354 --build=BUILD configure for building on BUILD [BUILD=HOST]
355 --host=HOST configure for HOST [guessed]
356 --target=TARGET configure for TARGET [TARGET=HOST]
357 Features and packages:
358 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
359 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
360 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
361 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
362 --x-includes=DIR X include files are in DIR
363 --x-libraries=DIR X library files are in DIR
365 if test -n "$ac_help"; then
366 echo "--enable and --with options recognized:$ac_help"
370 -host | --host | --hos | --ho)
372 -host=* | --host=* | --hos=* | --ho=*)
375 -includedir | --includedir | --includedi | --included | --include \
376 | --includ | --inclu | --incl | --inc)
377 ac_prev=includedir ;;
378 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
379 | --includ=* | --inclu=* | --incl=* | --inc=*)
380 includedir="$ac_optarg" ;;
382 -infodir | --infodir | --infodi | --infod | --info | --inf)
384 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
385 infodir="$ac_optarg" ;;
387 -libdir | --libdir | --libdi | --libd)
389 -libdir=* | --libdir=* | --libdi=* | --libd=*)
390 libdir="$ac_optarg" ;;
392 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
393 | --libexe | --libex | --libe)
394 ac_prev=libexecdir ;;
395 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
396 | --libexe=* | --libex=* | --libe=*)
397 libexecdir="$ac_optarg" ;;
399 -localstatedir | --localstatedir | --localstatedi | --localstated \
400 | --localstate | --localstat | --localsta | --localst \
401 | --locals | --local | --loca | --loc | --lo)
402 ac_prev=localstatedir ;;
403 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
404 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
405 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
406 localstatedir="$ac_optarg" ;;
408 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
410 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
411 mandir="$ac_optarg" ;;
414 # Obsolete; use --without-fp.
417 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
421 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
422 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
425 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
426 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
427 | --oldin | --oldi | --old | --ol | --o)
428 ac_prev=oldincludedir ;;
429 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
430 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
431 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
432 oldincludedir="$ac_optarg" ;;
434 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
436 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
437 prefix="$ac_optarg" ;;
439 -program-prefix | --program-prefix | --program-prefi | --program-pref \
440 | --program-pre | --program-pr | --program-p)
441 ac_prev=program_prefix ;;
442 -program-prefix=* | --program-prefix=* | --program-prefi=* \
443 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
444 program_prefix="$ac_optarg" ;;
446 -program-suffix | --program-suffix | --program-suffi | --program-suff \
447 | --program-suf | --program-su | --program-s)
448 ac_prev=program_suffix ;;
449 -program-suffix=* | --program-suffix=* | --program-suffi=* \
450 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
451 program_suffix="$ac_optarg" ;;
453 -program-transform-name | --program-transform-name \
454 | --program-transform-nam | --program-transform-na \
455 | --program-transform-n | --program-transform- \
456 | --program-transform | --program-transfor \
457 | --program-transfo | --program-transf \
458 | --program-trans | --program-tran \
459 | --progr-tra | --program-tr | --program-t)
460 ac_prev=program_transform_name ;;
461 -program-transform-name=* | --program-transform-name=* \
462 | --program-transform-nam=* | --program-transform-na=* \
463 | --program-transform-n=* | --program-transform-=* \
464 | --program-transform=* | --program-transfor=* \
465 | --program-transfo=* | --program-transf=* \
466 | --program-trans=* | --program-tran=* \
467 | --progr-tra=* | --program-tr=* | --program-t=*)
468 program_transform_name="$ac_optarg" ;;
470 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
471 | -silent | --silent | --silen | --sile | --sil)
474 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
476 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
478 sbindir="$ac_optarg" ;;
480 -sharedstatedir | --sharedstatedir | --sharedstatedi \
481 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
482 | --sharedst | --shareds | --shared | --share | --shar \
484 ac_prev=sharedstatedir ;;
485 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
486 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
487 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
489 sharedstatedir="$ac_optarg" ;;
491 -site | --site | --sit)
493 -site=* | --site=* | --sit=*)
496 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
498 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
499 srcdir="$ac_optarg" ;;
501 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
502 | --syscon | --sysco | --sysc | --sys | --sy)
503 ac_prev=sysconfdir ;;
504 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
505 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
506 sysconfdir="$ac_optarg" ;;
508 -target | --target | --targe | --targ | --tar | --ta | --t)
510 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
511 target="$ac_optarg" ;;
513 -v | -verbose | --verbose | --verbos | --verbo | --verb)
516 -version | --version | --versio | --versi | --vers)
517 echo "configure generated by autoconf version 2.13"
521 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
522 # Reject names that are not valid shell variable names.
523 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
524 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
526 ac_package=`echo $ac_package| sed 's/-/_/g'`
531 eval "with_${ac_package}='$ac_optarg'" ;;
533 -without-* | --without-*)
534 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
535 # Reject names that are not valid shell variable names.
536 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
537 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
539 ac_package=`echo $ac_package| sed 's/-/_/g'`
540 eval "with_${ac_package}=no" ;;
543 # Obsolete; use --with-x.
546 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
547 | --x-incl | --x-inc | --x-in | --x-i)
548 ac_prev=x_includes ;;
549 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
550 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
551 x_includes="$ac_optarg" ;;
553 -x-libraries | --x-libraries | --x-librarie | --x-librari \
554 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
555 ac_prev=x_libraries ;;
556 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
557 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
558 x_libraries="$ac_optarg" ;;
560 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
564 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
565 echo "configure: warning: $ac_option: invalid host type" 1>&2
567 if test "x$nonopt" != xNONE; then
568 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
576 if test -n "$ac_prev"; then
577 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
580 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
582 # File descriptor usage:
585 # 2 errors and warnings
586 # 3 some systems may open it to /dev/tty
587 # 4 used on the Kubota Titan
588 # 6 checking for... messages and results
589 # 5 compiler messages saved in config.log
590 if test "$silent" = yes; then
598 This file contains any messages produced by compilers while
599 running configure, to aid debugging if configure makes a mistake.
602 # Strip out --no-create and --no-recursion so they do not pile up.
603 # Also quote any args containing shell metacharacters.
608 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
609 | --no-cr | --no-c) ;;
610 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
611 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
612 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
613 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
614 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
619 # Only set these to C if already set. These must not be set unconditionally
620 # because not all systems understand e.g. LANG=C (notably SCO).
621 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
622 # Non-C LC_CTYPE values break the ctype check.
623 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
624 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
625 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
626 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
628 # confdefs.h avoids OS command line length limits that DEFS can exceed.
629 rm -rf conftest* confdefs.h
630 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
633 # A filename unique to this package, relative to the directory that
634 # configure is in, which we can look for to find out if srcdir is correct.
637 # Find the source files, if location was not specified.
638 if test -z "$srcdir"; then
639 ac_srcdir_defaulted=yes
640 # Try the directory containing this script, then its parent.
642 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
643 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
645 if test ! -r $srcdir/$ac_unique_file; then
649 ac_srcdir_defaulted=no
651 if test ! -r $srcdir/$ac_unique_file; then
652 if test "$ac_srcdir_defaulted" = yes; then
653 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
655 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
658 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
660 # Prefer explicitly selected file to automatically selected ones.
661 if test -z "$CONFIG_SITE"; then
662 if test "x$prefix" != xNONE; then
663 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
665 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
668 for ac_site_file in $CONFIG_SITE; do
669 if test -r "$ac_site_file"; then
670 echo "loading site script $ac_site_file"
675 if test -r "$cache_file"; then
676 echo "loading cache $cache_file"
679 echo "creating cache $cache_file"
684 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
685 ac_cpp='$CPP $CPPFLAGS'
686 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
687 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
688 cross_compiling=$ac_cv_prog_cc_cross
692 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
693 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
694 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
701 ac_n= ac_c='\c' ac_t=
706 # Check whether --enable-checkmem or --disable-checkmem was given.
707 if test "${enable_checkmem+set}" = set; then
708 enableval="$enable_checkmem"
712 # Check whether --enable-debug or --disable-debug was given.
713 if test "${enable_debug+set}" = set; then
714 enableval="$enable_debug"
718 # Check whether --enable-warnings or --disable-warnings was given.
719 if test "${enable_warnings+set}" = set; then
720 enableval="$enable_warnings"
724 # Check whether --enable-optimizations or --disable-optimizations was given.
725 if test "${enable_optimizations+set}" = set; then
726 enableval="$enable_optimizations"
730 # Check whether --enable-lame or --disable-lame was given.
731 if test "${enable_lame+set}" = set; then
732 enableval="$enable_lame"
740 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type -Winline"
741 if test "x$ENABLE_WARNINGS" '!=' "x";then
742 WARNINGS="-Wall -Wno-unused -Wno-format"
745 if test "x$CHECKMEM" '!=' "x";then
748 if test "x$DEBUG" '!=' "x";then
749 CFLAGS="$WARNINGS -g $CFLAGS"
750 CXXFLAGS="$WARNINGS -g $CXXFLAGS"
751 STRIP="@echo debug enabled, not stripping "
754 else if test "x$OPTIMIZE" '!=' "x"; then
755 CFLAGS="$WARNINGS -O3 -fomit-frame-pointer $CFLAGS"
756 CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer $CXXFLAGS"
758 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
759 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
763 #if test "x$OLDGCC" '!=' "x";then
764 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
765 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
766 # CFLAGS="$CFLAGS -ansi -pendantic"
767 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
770 export PACKAGE VERSION CFLAGS CXXFLAGS
773 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
774 if test -f $ac_dir/install-sh; then
776 ac_install_sh="$ac_aux_dir/install-sh -c"
778 elif test -f $ac_dir/install.sh; then
780 ac_install_sh="$ac_aux_dir/install.sh -c"
784 if test -z "$ac_aux_dir"; then
785 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
787 ac_config_guess=$ac_aux_dir/config.guess
788 ac_config_sub=$ac_aux_dir/config.sub
789 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
792 # Make sure we can run config.sub.
793 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
794 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
797 echo $ac_n "checking host system type""... $ac_c" 1>&6
798 echo "configure:799: checking host system type" >&5
801 case "$host_alias" in
805 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
806 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
808 *) host_alias=$nonopt ;;
812 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
813 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
814 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
815 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
816 echo "$ac_t""$host" 1>&6
822 CFLAGS="$CFLAGS -fno-rtti"
823 CXXFLAGS="$CXXFLAGS -fno-rtti"
826 # Extract the first word of "gcc", so it can be a program name with args.
827 set dummy gcc; ac_word=$2
828 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
829 echo "configure:830: checking for $ac_word" >&5
830 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
831 echo $ac_n "(cached) $ac_c" 1>&6
833 if test -n "$CC"; then
834 ac_cv_prog_CC="$CC" # Let the user override the test.
836 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
838 for ac_dir in $ac_dummy; do
839 test -z "$ac_dir" && ac_dir=.
840 if test -f $ac_dir/$ac_word; then
849 if test -n "$CC"; then
850 echo "$ac_t""$CC" 1>&6
852 echo "$ac_t""no" 1>&6
855 if test -z "$CC"; then
856 # Extract the first word of "cc", so it can be a program name with args.
857 set dummy cc; ac_word=$2
858 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
859 echo "configure:860: checking for $ac_word" >&5
860 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
861 echo $ac_n "(cached) $ac_c" 1>&6
863 if test -n "$CC"; then
864 ac_cv_prog_CC="$CC" # Let the user override the test.
866 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
869 for ac_dir in $ac_dummy; do
870 test -z "$ac_dir" && ac_dir=.
871 if test -f $ac_dir/$ac_word; then
872 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
881 if test $ac_prog_rejected = yes; then
882 # We found a bogon in the path, so make sure we never use it.
883 set dummy $ac_cv_prog_CC
885 if test $# -gt 0; then
886 # We chose a different compiler from the bogus one.
887 # However, it has the same basename, so the bogon will be chosen
888 # first if we set CC to just the basename; use the full file name.
890 set dummy "$ac_dir/$ac_word" "$@"
898 if test -n "$CC"; then
899 echo "$ac_t""$CC" 1>&6
901 echo "$ac_t""no" 1>&6
904 if test -z "$CC"; then
907 # Extract the first word of "cl", so it can be a program name with args.
908 set dummy cl; ac_word=$2
909 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
910 echo "configure:911: checking for $ac_word" >&5
911 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
912 echo $ac_n "(cached) $ac_c" 1>&6
914 if test -n "$CC"; then
915 ac_cv_prog_CC="$CC" # Let the user override the test.
917 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
919 for ac_dir in $ac_dummy; do
920 test -z "$ac_dir" && ac_dir=.
921 if test -f $ac_dir/$ac_word; then
930 if test -n "$CC"; then
931 echo "$ac_t""$CC" 1>&6
933 echo "$ac_t""no" 1>&6
938 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
941 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
942 echo "configure:943: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
945 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
946 ac_cpp='$CPP $CPPFLAGS'
947 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
948 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
949 cross_compiling=$ac_cv_prog_cc_cross
951 cat > conftest.$ac_ext << EOF
953 #line 954 "configure"
954 #include "confdefs.h"
958 if { (eval echo configure:959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
959 ac_cv_prog_cc_works=yes
960 # If we can't run a trivial program, we are probably using a cross compiler.
961 if (./conftest; exit) 2>/dev/null; then
962 ac_cv_prog_cc_cross=no
964 ac_cv_prog_cc_cross=yes
967 echo "configure: failed program was:" >&5
968 cat conftest.$ac_ext >&5
969 ac_cv_prog_cc_works=no
973 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
974 ac_cpp='$CPP $CPPFLAGS'
975 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
976 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
977 cross_compiling=$ac_cv_prog_cc_cross
979 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
980 if test $ac_cv_prog_cc_works = no; then
981 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
983 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
984 echo "configure:985: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
985 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
986 cross_compiling=$ac_cv_prog_cc_cross
988 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
989 echo "configure:990: checking whether we are using GNU C" >&5
990 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
991 echo $ac_n "(cached) $ac_c" 1>&6
993 cat > conftest.c <<EOF
998 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1005 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1007 if test $ac_cv_prog_gcc = yes; then
1013 ac_test_CFLAGS="${CFLAGS+set}"
1014 ac_save_CFLAGS="$CFLAGS"
1016 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1017 echo "configure:1018: checking whether ${CC-cc} accepts -g" >&5
1018 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1019 echo $ac_n "(cached) $ac_c" 1>&6
1021 echo 'void f(){}' > conftest.c
1022 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1031 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1032 if test "$ac_test_CFLAGS" = set; then
1033 CFLAGS="$ac_save_CFLAGS"
1034 elif test $ac_cv_prog_cc_g = yes; then
1035 if test "$GCC" = yes; then
1041 if test "$GCC" = yes; then
1048 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1050 # Extract the first word of "$ac_prog", so it can be a program name with args.
1051 set dummy $ac_prog; ac_word=$2
1052 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1053 echo "configure:1054: checking for $ac_word" >&5
1054 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1055 echo $ac_n "(cached) $ac_c" 1>&6
1057 if test -n "$CXX"; then
1058 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1060 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1062 for ac_dir in $ac_dummy; do
1063 test -z "$ac_dir" && ac_dir=.
1064 if test -f $ac_dir/$ac_word; then
1065 ac_cv_prog_CXX="$ac_prog"
1072 CXX="$ac_cv_prog_CXX"
1073 if test -n "$CXX"; then
1074 echo "$ac_t""$CXX" 1>&6
1076 echo "$ac_t""no" 1>&6
1079 test -n "$CXX" && break
1081 test -n "$CXX" || CXX="gcc"
1084 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1085 echo "configure:1086: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1088 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1089 ac_cpp='$CXXCPP $CPPFLAGS'
1090 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1091 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1092 cross_compiling=$ac_cv_prog_cxx_cross
1094 cat > conftest.$ac_ext << EOF
1096 #line 1097 "configure"
1097 #include "confdefs.h"
1099 int main(){return(0);}
1101 if { (eval echo configure:1102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1102 ac_cv_prog_cxx_works=yes
1103 # If we can't run a trivial program, we are probably using a cross compiler.
1104 if (./conftest; exit) 2>/dev/null; then
1105 ac_cv_prog_cxx_cross=no
1107 ac_cv_prog_cxx_cross=yes
1110 echo "configure: failed program was:" >&5
1111 cat conftest.$ac_ext >&5
1112 ac_cv_prog_cxx_works=no
1116 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1117 ac_cpp='$CPP $CPPFLAGS'
1118 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1119 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1120 cross_compiling=$ac_cv_prog_cc_cross
1122 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1123 if test $ac_cv_prog_cxx_works = no; then
1124 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1126 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1127 echo "configure:1128: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1128 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1129 cross_compiling=$ac_cv_prog_cxx_cross
1131 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1132 echo "configure:1133: checking whether we are using GNU C++" >&5
1133 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1134 echo $ac_n "(cached) $ac_c" 1>&6
1136 cat > conftest.C <<EOF
1141 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1148 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1150 if test $ac_cv_prog_gxx = yes; then
1156 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1157 ac_save_CXXFLAGS="$CXXFLAGS"
1159 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1160 echo "configure:1161: checking whether ${CXX-g++} accepts -g" >&5
1161 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1162 echo $ac_n "(cached) $ac_c" 1>&6
1164 echo 'void f(){}' > conftest.cc
1165 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1166 ac_cv_prog_cxx_g=yes
1174 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1175 if test "$ac_test_CXXFLAGS" = set; then
1176 CXXFLAGS="$ac_save_CXXFLAGS"
1177 elif test $ac_cv_prog_cxx_g = yes; then
1178 if test "$GXX" = yes; then
1184 if test "$GXX" = yes; then
1192 if test "x$CHECKMEM" '!=' "x";then
1196 #unset ac_cv_prog_CC
1197 #unset ac_cv_prog_CXX
1201 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1202 echo "configure:1203: checking how to run the C preprocessor" >&5
1203 # On Suns, sometimes $CPP names a directory.
1204 if test -n "$CPP" && test -d "$CPP"; then
1207 if test -z "$CPP"; then
1208 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1209 echo $ac_n "(cached) $ac_c" 1>&6
1211 # This must be in double quotes, not single quotes, because CPP may get
1212 # substituted into the Makefile and "${CC-cc}" will confuse make.
1214 # On the NeXT, cc -E runs the code through the compiler's parser,
1215 # not just through cpp.
1216 cat > conftest.$ac_ext <<EOF
1217 #line 1218 "configure"
1218 #include "confdefs.h"
1222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1223 { (eval echo configure:1224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1224 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1225 if test -z "$ac_err"; then
1229 echo "configure: failed program was:" >&5
1230 cat conftest.$ac_ext >&5
1232 CPP="${CC-cc} -E -traditional-cpp"
1233 cat > conftest.$ac_ext <<EOF
1234 #line 1235 "configure"
1235 #include "confdefs.h"
1239 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1240 { (eval echo configure:1241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1241 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1242 if test -z "$ac_err"; then
1246 echo "configure: failed program was:" >&5
1247 cat conftest.$ac_ext >&5
1249 CPP="${CC-cc} -nologo -E"
1250 cat > conftest.$ac_ext <<EOF
1251 #line 1252 "configure"
1252 #include "confdefs.h"
1256 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1257 { (eval echo configure:1258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1258 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1259 if test -z "$ac_err"; then
1263 echo "configure: failed program was:" >&5
1264 cat conftest.$ac_ext >&5
1273 ac_cv_prog_CPP="$CPP"
1275 CPP="$ac_cv_prog_CPP"
1277 ac_cv_prog_CPP="$CPP"
1279 echo "$ac_t""$CPP" 1>&6
1282 # Extract the first word of "ranlib", so it can be a program name with args.
1283 set dummy ranlib; ac_word=$2
1284 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1285 echo "configure:1286: checking for $ac_word" >&5
1286 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1287 echo $ac_n "(cached) $ac_c" 1>&6
1289 if test -n "$RANLIB"; then
1290 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1292 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1294 for ac_dir in $ac_dummy; do
1295 test -z "$ac_dir" && ac_dir=.
1296 if test -f $ac_dir/$ac_word; then
1297 ac_cv_prog_RANLIB="ranlib"
1302 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1305 RANLIB="$ac_cv_prog_RANLIB"
1306 if test -n "$RANLIB"; then
1307 echo "$ac_t""$RANLIB" 1>&6
1309 echo "$ac_t""no" 1>&6
1312 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1313 echo "configure:1314: checking whether ${MAKE-make} sets \${MAKE}" >&5
1314 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1315 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1316 echo $ac_n "(cached) $ac_c" 1>&6
1318 cat > conftestmake <<\EOF
1320 @echo 'ac_maketemp="${MAKE}"'
1322 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1323 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1324 if test -n "$ac_maketemp"; then
1325 eval ac_cv_prog_make_${ac_make}_set=yes
1327 eval ac_cv_prog_make_${ac_make}_set=no
1331 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1332 echo "$ac_t""yes" 1>&6
1335 echo "$ac_t""no" 1>&6
1336 SET_MAKE="MAKE=${MAKE-make}"
1339 # Find a good install program. We prefer a C program (faster),
1340 # so one script is as good as another. But avoid the broken or
1341 # incompatible versions:
1342 # SysV /etc/install, /usr/sbin/install
1343 # SunOS /usr/etc/install
1344 # IRIX /sbin/install
1346 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1347 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1348 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1349 # ./install, which can be erroneously created by make from ./install.sh.
1350 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1351 echo "configure:1352: checking for a BSD compatible install" >&5
1352 if test -z "$INSTALL"; then
1353 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1354 echo $ac_n "(cached) $ac_c" 1>&6
1356 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1357 for ac_dir in $PATH; do
1358 # Account for people who put trailing slashes in PATH elements.
1360 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1362 # OSF1 and SCO ODT 3.0 have their own names for install.
1363 # Don't use installbsd from OSF since it installs stuff as root
1365 for ac_prog in ginstall scoinst install; do
1366 if test -f $ac_dir/$ac_prog; then
1367 if test $ac_prog = install &&
1368 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1369 # AIX install. It has an incompatible calling convention.
1372 ac_cv_path_install="$ac_dir/$ac_prog -c"
1383 if test "${ac_cv_path_install+set}" = set; then
1384 INSTALL="$ac_cv_path_install"
1386 # As a last resort, use the slow shell script. We don't cache a
1387 # path for INSTALL within a source directory, because that will
1388 # break other packages using the cache if that directory is
1389 # removed, or if the path is relative.
1390 INSTALL="$ac_install_sh"
1393 echo "$ac_t""$INSTALL" 1>&6
1395 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1396 # It thinks the first close brace ends the variable substitution.
1397 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1399 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1401 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1403 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1404 echo "configure:1405: checking whether ln -s works" >&5
1405 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1406 echo $ac_n "(cached) $ac_c" 1>&6
1409 if ln -s X conftestdata 2>/dev/null
1412 ac_cv_prog_LN_S="ln -s"
1417 LN_S="$ac_cv_prog_LN_S"
1418 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1419 echo "$ac_t""yes" 1>&6
1421 echo "$ac_t""no" 1>&6
1424 # Find the correct PATH separator. Usually this is `:', but
1425 # DJGPP uses `;' like DOS.
1426 if test "X${PATH_SEPARATOR+set}" != Xset; then
1427 UNAME=${UNAME-`uname 2>/dev/null`}
1429 *-DOS) lt_cv_sys_path_separator=';' ;;
1430 *) lt_cv_sys_path_separator=':' ;;
1432 PATH_SEPARATOR=$lt_cv_sys_path_separator
1435 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1436 echo "configure:1437: checking for Cygwin environment" >&5
1437 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1438 echo $ac_n "(cached) $ac_c" 1>&6
1440 cat > conftest.$ac_ext <<EOF
1441 #line 1442 "configure"
1442 #include "confdefs.h"
1447 #define __CYGWIN__ __CYGWIN32__
1452 if { (eval echo configure:1453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1456 echo "configure: failed program was:" >&5
1457 cat conftest.$ac_ext >&5
1465 echo "$ac_t""$ac_cv_cygwin" 1>&6
1467 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1468 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1469 echo "configure:1470: checking for mingw32 environment" >&5
1470 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1471 echo $ac_n "(cached) $ac_c" 1>&6
1473 cat > conftest.$ac_ext <<EOF
1474 #line 1475 "configure"
1475 #include "confdefs.h"
1481 if { (eval echo configure:1482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1485 echo "configure: failed program was:" >&5
1486 cat conftest.$ac_ext >&5
1494 echo "$ac_t""$ac_cv_mingw32" 1>&6
1496 test "$ac_cv_mingw32" = yes && MINGW32=yes
1497 # Check whether --enable-shared or --disable-shared was given.
1498 if test "${enable_shared+set}" = set; then
1499 enableval="$enable_shared"
1500 p=${PACKAGE-default}
1502 yes) enable_shared=yes ;;
1503 no) enable_shared=no ;;
1506 # Look at the argument we got. We use all the common list separators.
1507 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1508 for pkg in $enableval; do
1509 if test "X$pkg" = "X$p"; then
1520 # Check whether --enable-static or --disable-static was given.
1521 if test "${enable_static+set}" = set; then
1522 enableval="$enable_static"
1523 p=${PACKAGE-default}
1525 yes) enable_static=yes ;;
1526 no) enable_static=no ;;
1529 # Look at the argument we got. We use all the common list separators.
1530 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1531 for pkg in $enableval; do
1532 if test "X$pkg" = "X$p"; then
1543 # Check whether --enable-fast-install or --disable-fast-install was given.
1544 if test "${enable_fast_install+set}" = set; then
1545 enableval="$enable_fast_install"
1546 p=${PACKAGE-default}
1548 yes) enable_fast_install=yes ;;
1549 no) enable_fast_install=no ;;
1551 enable_fast_install=no
1552 # Look at the argument we got. We use all the common list separators.
1553 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1554 for pkg in $enableval; do
1555 if test "X$pkg" = "X$p"; then
1556 enable_fast_install=yes
1563 enable_fast_install=yes
1566 echo $ac_n "checking build system type""... $ac_c" 1>&6
1567 echo "configure:1568: checking build system type" >&5
1570 case "$build_alias" in
1573 NONE) build_alias=$host_alias ;;
1574 *) build_alias=$nonopt ;;
1578 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1579 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1580 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1581 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1582 echo "$ac_t""$build" 1>&6
1584 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1585 if test "${with_gnu_ld+set}" = set; then
1586 withval="$with_gnu_ld"
1587 test "$withval" = no || with_gnu_ld=yes
1593 if test "$GCC" = yes; then
1594 # Check if gcc -print-prog-name=ld gives a path.
1595 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1596 echo "configure:1597: checking for ld used by GCC" >&5
1599 # gcc leaves a trailing carriage return which upsets mingw
1600 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1602 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1605 # Accept absolute paths.
1606 [\\/]* | [A-Za-z]:[\\/]*)
1607 re_direlt='/[^/][^/]*/\.\./'
1608 # Canonicalize the path of ld
1609 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1610 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1611 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1613 test -z "$LD" && LD="$ac_prog"
1616 # If it fails, then pretend we aren't using GCC.
1620 # If it is relative, then search for the first ld in PATH.
1624 elif test "$with_gnu_ld" = yes; then
1625 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1626 echo "configure:1627: checking for GNU ld" >&5
1628 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1629 echo "configure:1630: checking for non-GNU ld" >&5
1631 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1632 echo $ac_n "(cached) $ac_c" 1>&6
1634 if test -z "$LD"; then
1635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1636 for ac_dir in $PATH; do
1637 test -z "$ac_dir" && ac_dir=.
1638 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1639 lt_cv_path_LD="$ac_dir/$ac_prog"
1640 # Check to see if the program is GNU ld. I'd rather use --version,
1641 # but apparently some GNU ld's only accept -v.
1642 # Break only if it was the GNU/non-GNU ld that we prefer.
1643 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1644 test "$with_gnu_ld" != no && break
1646 test "$with_gnu_ld" != yes && break
1652 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1657 if test -n "$LD"; then
1658 echo "$ac_t""$LD" 1>&6
1660 echo "$ac_t""no" 1>&6
1662 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1663 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1664 echo "configure:1665: checking if the linker ($LD) is GNU ld" >&5
1665 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1666 echo $ac_n "(cached) $ac_c" 1>&6
1668 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1669 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1670 lt_cv_prog_gnu_ld=yes
1672 lt_cv_prog_gnu_ld=no
1676 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1677 with_gnu_ld=$lt_cv_prog_gnu_ld
1680 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1681 echo "configure:1682: checking for $LD option to reload object files" >&5
1682 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1683 echo $ac_n "(cached) $ac_c" 1>&6
1685 lt_cv_ld_reload_flag='-r'
1688 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1689 reload_flag=$lt_cv_ld_reload_flag
1690 test -n "$reload_flag" && reload_flag=" $reload_flag"
1692 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1693 echo "configure:1694: checking for BSD-compatible nm" >&5
1694 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1695 echo $ac_n "(cached) $ac_c" 1>&6
1697 if test -n "$NM"; then
1698 # Let the user override the test.
1701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1702 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1703 test -z "$ac_dir" && ac_dir=.
1704 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1705 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1706 # Check to see if the nm accepts a BSD-compat flag.
1707 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1708 # nm: unknown option "B" ignored
1709 # Tru64's nm complains that /dev/null is an invalid object file
1710 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1711 lt_cv_path_NM="$tmp_nm -B"
1713 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1714 lt_cv_path_NM="$tmp_nm -p"
1717 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1718 continue # so that we can try to find one that supports BSD flags
1723 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1728 echo "$ac_t""$NM" 1>&6
1730 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
1731 echo "configure:1732: checking for a sed that does not truncate output" >&5
1732 if eval "test \"`echo '$''{'lt_cv_path_SED'+set}'`\" = set"; then
1733 echo $ac_n "(cached) $ac_c" 1>&6
1735 # Loop through the user's path and test for sed and gsed.
1736 # Then use that list of sed's as ones to test for truncation.
1737 as_executable_p="test -f"
1738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1742 test -z "$as_dir" && as_dir=.
1743 for ac_prog in sed gsed; do
1744 for ac_exec_ext in '' $ac_executable_extensions; do
1745 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1746 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
1752 # Create a temporary directory, and hook for its removal unless debugging.
1755 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
1756 trap '{ (exit 1); exit 1; }' 1 2 13 15
1759 # Create a (secure) tmp directory for tmp files.
1762 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
1763 test -n "$tmp" && test -d "$tmp"
1766 tmp=$TMPDIR/sed$$-$RANDOM
1767 (umask 077 && mkdir $tmp)
1770 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
1771 { (exit 1); exit 1; }
1775 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
1776 # along with /bin/sed that truncates output.
1777 for _sed in $_sed_list /usr/xpg4/bin/sed; do
1778 test ! -f ${_sed} && break
1779 cat /dev/null > "$tmp/sed.in"
1781 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
1782 # Check for GNU sed and select it if it is found.
1783 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
1784 lt_cv_path_SED=${_sed}
1788 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
1789 mv "$tmp/sed.tmp" "$tmp/sed.in"
1790 cp "$tmp/sed.in" "$tmp/sed.nl"
1791 echo >>"$tmp/sed.nl"
1792 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
1793 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
1794 # 40000 chars as input seems more than enough
1795 test $_count -gt 10 && break
1796 _count=`expr $_count + 1`
1797 if test $_count -gt $_max; then
1799 lt_cv_path_SED=$_sed
1807 if test "X$SED" != "X"; then
1812 echo "$ac_t""$SED" 1>&6
1814 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
1815 echo "configure:1816: checking how to recognise dependent libraries" >&5
1816 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1819 lt_cv_file_magic_cmd='$MAGIC_CMD'
1820 lt_cv_file_magic_test_file=
1821 lt_cv_deplibs_check_method='unknown'
1822 # Need to set the preceding variable on all platforms that support
1823 # interlibrary dependencies.
1824 # 'none' -- dependencies not supported.
1825 # `unknown' -- same as none, but documents that we really don't know.
1826 # 'pass_all' -- all dependencies passed with no checks.
1827 # 'test_compile' -- check by making test program.
1828 # 'file_magic [[regex]]' -- check by looking for files in library path
1829 # which responds to the $file_magic_cmd with a given egrep regex.
1830 # If you have `file' or equivalent on your system and you're not sure
1831 # whether `pass_all' will *always* work, you probably want this one.
1835 lt_cv_deplibs_check_method=pass_all
1839 lt_cv_deplibs_check_method=pass_all
1843 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1844 lt_cv_file_magic_cmd='/usr/bin/file -L'
1845 lt_cv_file_magic_test_file=/shlib/libc.so
1848 cygwin* | mingw* | pw32*)
1849 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1850 lt_cv_file_magic_cmd='$OBJDUMP -f'
1853 darwin* | rhapsody*)
1854 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1855 lt_cv_file_magic_cmd='/usr/bin/file -L'
1857 rhapsody* | darwin1.[012])
1858 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
1861 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1867 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1870 # Not sure whether the presence of OpenBSD here was a mistake.
1871 # Let's accept both of them until this is cleared up.
1872 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1873 lt_cv_file_magic_cmd=/usr/bin/file
1874 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1878 lt_cv_deplibs_check_method=pass_all
1883 lt_cv_deplibs_check_method=pass_all
1887 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1888 lt_cv_file_magic_cmd=/usr/bin/file
1889 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1892 irix5* | irix6* | nonstopux*)
1894 irix5* | nonstopux*)
1895 # this will be overridden with pass_all, but let us keep it just in case
1896 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1900 *-32|*"-32 ") libmagic=32-bit;;
1901 *-n32|*"-n32 ") libmagic=N32;;
1902 *-64|*"-64 ") libmagic=64-bit;;
1903 *) libmagic=never-match;;
1905 # this will be overridden with pass_all, but let us keep it just in case
1906 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1909 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1910 lt_cv_deplibs_check_method=pass_all
1913 # This must be Linux ELF.
1916 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
1917 lt_cv_deplibs_check_method=pass_all ;;
1919 # glibc up to 2.1.1 does not perform some relocations on ARM
1920 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1922 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1926 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1927 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1929 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1934 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1935 lt_cv_file_magic_cmd=/usr/bin/file
1936 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1940 lt_cv_file_magic_cmd=/usr/bin/file
1941 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1942 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1943 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1945 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
1949 osf3* | osf4* | osf5*)
1950 # this will be overridden with pass_all, but let us keep it just in case
1951 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1952 lt_cv_file_magic_test_file=/shlib/libc.so
1953 lt_cv_deplibs_check_method=pass_all
1957 lt_cv_deplibs_check_method=pass_all
1961 lt_cv_deplibs_check_method=pass_all
1962 lt_cv_file_magic_test_file=/lib/libc.so
1965 sysv5uw[78]* | sysv4*uw2*)
1966 lt_cv_deplibs_check_method=pass_all
1969 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1970 case $host_vendor in
1972 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]'
1973 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1976 lt_cv_deplibs_check_method=pass_all
1979 lt_cv_file_magic_cmd='/bin/file'
1980 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
1983 lt_cv_file_magic_cmd='/bin/file'
1984 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
1985 lt_cv_file_magic_test_file=/lib/libc.so
1988 lt_cv_deplibs_check_method=pass_all
1996 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1997 file_magic_cmd=$lt_cv_file_magic_cmd
1998 deplibs_check_method=$lt_cv_deplibs_check_method
2000 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2001 echo "configure:2002: checking for object suffix" >&5
2002 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2003 echo $ac_n "(cached) $ac_c" 1>&6
2006 echo 'int i = 1;' > conftest.$ac_ext
2007 if { (eval echo configure:2008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2008 for ac_file in conftest.*; do
2011 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2015 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2020 echo "$ac_t""$ac_cv_objext" 1>&6
2021 OBJEXT=$ac_cv_objext
2022 ac_objext=$ac_cv_objext
2026 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2027 echo "configure:2028: checking for executable suffix" >&5
2028 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2029 echo $ac_n "(cached) $ac_c" 1>&6
2031 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2035 echo 'int main () { return 0; }' > conftest.$ac_ext
2037 if { (eval echo configure:2038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2038 for file in conftest.*; do
2040 *.c | *.o | *.obj) ;;
2041 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2045 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2048 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2053 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2054 echo "$ac_t""${ac_cv_exeext}" 1>&6
2057 if test $host != $build; then
2058 ac_tool_prefix=${host_alias}-
2066 # Check for command to grab the raw symbol name followed by C symbol from nm.
2067 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
2068 echo "configure:2069: checking command to parse $NM output" >&5
2069 if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
2070 echo $ac_n "(cached) $ac_c" 1>&6
2073 # These are sane defaults that work on at least a few old systems.
2074 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
2076 # Character class describing NM global symbol codes.
2077 symcode='[BCDEGRST]'
2079 # Regexp to match symbols that can be accessed directly from C.
2080 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2082 # Transform the above into a raw symbol and a C symbol.
2083 symxfrm='\1 \2\3 \3'
2085 # Transform an extracted symbol line into a proper C declaration
2086 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2088 # Transform an extracted symbol line into symbol name and symbol address
2089 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'"
2091 # Define system-specific variables.
2096 cygwin* | mingw* | pw32*)
2097 symcode='[ABCDGISTW]'
2099 hpux*) # Its linker distinguishes data from code symbols
2100 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2101 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'"
2104 symcode='[BCDEGRST]'
2107 symcode='[BCDEGQRST]'
2117 # Handle CRLF in mingw tool chain
2121 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2125 # If we're using GNU nm, then use its standard symbol codes.
2126 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2127 symcode='[ABCDGISTW]'
2130 # Try without a prefix undercore, then with it.
2131 for ac_symprfx in "" "_"; do
2133 # Write the raw and C identifiers.
2134 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2136 # Check to see that the pipe works correctly.
2139 cat > conftest.$ac_ext <<EOF
2144 void nm_test_func(){}
2148 int main(){nm_test_var='a';nm_test_func();return(0);}
2151 if { (eval echo configure:2152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2152 # Now try to grab the symbols.
2154 if { (eval echo configure:2155: \"$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
2155 # Try sorting and uniquifying the output.
2156 if sort "$nlist" | uniq > "$nlist"T; then
2157 mv -f "$nlist"T "$nlist"
2162 # Make sure that we snagged all the symbols we need.
2163 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
2164 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
2165 cat <<EOF > conftest.$ac_ext
2171 # Now generate the symbol file.
2172 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
2174 cat <<EOF >> conftest.$ac_ext
2175 #if defined (__STDC__) && __STDC__
2176 # define lt_ptr void *
2178 # define lt_ptr char *
2182 /* The mapping between symbol names and symbols. */
2187 lt_preloaded_symbols[] =
2190 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
2191 cat <<\EOF >> conftest.$ac_ext
2199 # Now try linking the two files.
2200 mv conftest.$ac_objext conftstm.$ac_objext
2202 save_CFLAGS="$CFLAGS"
2203 LIBS="conftstm.$ac_objext"
2204 CFLAGS="$CFLAGS$no_builtin_flag"
2205 if { (eval echo configure:2206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
2209 CFLAGS="$save_CFLAGS"
2211 echo "cannot find nm_test_func in $nlist" >&5
2214 echo "cannot find nm_test_var in $nlist" >&5
2217 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
2220 echo "$progname: failed program was:" >&5
2221 cat conftest.$ac_ext >&5
2223 rm -f conftest* conftst*
2225 # Do not use the global_symbol_pipe unless it works.
2226 if test "$pipe_works" = yes; then
2229 lt_cv_sys_global_symbol_pipe=
2235 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
2236 if test -z "$lt_cv_sys_global_symbol_pipe"; then
2237 global_symbol_to_cdecl=
2238 global_symbol_to_c_name_address=
2240 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2241 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
2243 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
2245 echo "$ac_t""failed" 1>&6
2247 echo "$ac_t""ok" 1>&6
2250 for ac_hdr in dlfcn.h
2252 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2253 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2254 echo "configure:2255: checking for $ac_hdr" >&5
2255 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2256 echo $ac_n "(cached) $ac_c" 1>&6
2258 cat > conftest.$ac_ext <<EOF
2259 #line 2260 "configure"
2260 #include "confdefs.h"
2263 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2264 { (eval echo configure:2265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2265 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2266 if test -z "$ac_err"; then
2268 eval "ac_cv_header_$ac_safe=yes"
2271 echo "configure: failed program was:" >&5
2272 cat conftest.$ac_ext >&5
2274 eval "ac_cv_header_$ac_safe=no"
2278 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2279 echo "$ac_t""yes" 1>&6
2280 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2281 cat >> confdefs.h <<EOF
2282 #define $ac_tr_hdr 1
2286 echo "$ac_t""no" 1>&6
2295 # Only perform the check for file, if the check method requires it
2296 case $deplibs_check_method in
2298 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2299 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2300 echo "configure:2301: checking for ${ac_tool_prefix}file" >&5
2301 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2302 echo $ac_n "(cached) $ac_c" 1>&6
2306 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2309 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2312 ac_save_MAGIC_CMD="$MAGIC_CMD"
2313 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2314 ac_dummy="/usr/bin:$PATH"
2315 for ac_dir in $ac_dummy; do
2316 test -z "$ac_dir" && ac_dir=.
2317 if test -f $ac_dir/${ac_tool_prefix}file; then
2318 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2319 if test -n "$file_magic_test_file"; then
2320 case $deplibs_check_method in
2322 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2323 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2324 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2325 egrep "$file_magic_regex" > /dev/null; then
2330 *** Warning: the command libtool uses to detect shared libraries,
2331 *** $file_magic_cmd, produces output that libtool cannot recognize.
2332 *** The result is that libtool may fail to recognize shared libraries
2333 *** as such. This will affect the creation of libtool libraries that
2334 *** depend on shared libraries, but programs linked with such libtool
2335 *** libraries will work regardless of this problem. Nevertheless, you
2336 *** may want to report the problem to your system manager and/or to
2337 *** bug-libtool@gnu.org
2347 MAGIC_CMD="$ac_save_MAGIC_CMD"
2352 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2353 if test -n "$MAGIC_CMD"; then
2354 echo "$ac_t""$MAGIC_CMD" 1>&6
2356 echo "$ac_t""no" 1>&6
2359 if test -z "$lt_cv_path_MAGIC_CMD"; then
2360 if test -n "$ac_tool_prefix"; then
2361 echo $ac_n "checking for file""... $ac_c" 1>&6
2362 echo "configure:2363: checking for file" >&5
2363 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2364 echo $ac_n "(cached) $ac_c" 1>&6
2368 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2371 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2374 ac_save_MAGIC_CMD="$MAGIC_CMD"
2375 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2376 ac_dummy="/usr/bin:$PATH"
2377 for ac_dir in $ac_dummy; do
2378 test -z "$ac_dir" && ac_dir=.
2379 if test -f $ac_dir/file; then
2380 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2381 if test -n "$file_magic_test_file"; then
2382 case $deplibs_check_method in
2384 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2385 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2386 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2387 egrep "$file_magic_regex" > /dev/null; then
2392 *** Warning: the command libtool uses to detect shared libraries,
2393 *** $file_magic_cmd, produces output that libtool cannot recognize.
2394 *** The result is that libtool may fail to recognize shared libraries
2395 *** as such. This will affect the creation of libtool libraries that
2396 *** depend on shared libraries, but programs linked with such libtool
2397 *** libraries will work regardless of this problem. Nevertheless, you
2398 *** may want to report the problem to your system manager and/or to
2399 *** bug-libtool@gnu.org
2409 MAGIC_CMD="$ac_save_MAGIC_CMD"
2414 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2415 if test -n "$MAGIC_CMD"; then
2416 echo "$ac_t""$MAGIC_CMD" 1>&6
2418 echo "$ac_t""no" 1>&6
2430 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2431 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2432 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2433 echo "configure:2434: checking for $ac_word" >&5
2434 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2435 echo $ac_n "(cached) $ac_c" 1>&6
2437 if test -n "$RANLIB"; then
2438 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2440 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2442 for ac_dir in $ac_dummy; do
2443 test -z "$ac_dir" && ac_dir=.
2444 if test -f $ac_dir/$ac_word; then
2445 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2452 RANLIB="$ac_cv_prog_RANLIB"
2453 if test -n "$RANLIB"; then
2454 echo "$ac_t""$RANLIB" 1>&6
2456 echo "$ac_t""no" 1>&6
2460 if test -z "$ac_cv_prog_RANLIB"; then
2461 if test -n "$ac_tool_prefix"; then
2462 # Extract the first word of "ranlib", so it can be a program name with args.
2463 set dummy ranlib; ac_word=$2
2464 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2465 echo "configure:2466: checking for $ac_word" >&5
2466 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2467 echo $ac_n "(cached) $ac_c" 1>&6
2469 if test -n "$RANLIB"; then
2470 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2472 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2474 for ac_dir in $ac_dummy; do
2475 test -z "$ac_dir" && ac_dir=.
2476 if test -f $ac_dir/$ac_word; then
2477 ac_cv_prog_RANLIB="ranlib"
2482 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2485 RANLIB="$ac_cv_prog_RANLIB"
2486 if test -n "$RANLIB"; then
2487 echo "$ac_t""$RANLIB" 1>&6
2489 echo "$ac_t""no" 1>&6
2497 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2498 set dummy ${ac_tool_prefix}strip; ac_word=$2
2499 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2500 echo "configure:2501: checking for $ac_word" >&5
2501 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2502 echo $ac_n "(cached) $ac_c" 1>&6
2504 if test -n "$STRIP"; then
2505 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2507 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2509 for ac_dir in $ac_dummy; do
2510 test -z "$ac_dir" && ac_dir=.
2511 if test -f $ac_dir/$ac_word; then
2512 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2519 STRIP="$ac_cv_prog_STRIP"
2520 if test -n "$STRIP"; then
2521 echo "$ac_t""$STRIP" 1>&6
2523 echo "$ac_t""no" 1>&6
2527 if test -z "$ac_cv_prog_STRIP"; then
2528 if test -n "$ac_tool_prefix"; then
2529 # Extract the first word of "strip", so it can be a program name with args.
2530 set dummy strip; ac_word=$2
2531 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2532 echo "configure:2533: checking for $ac_word" >&5
2533 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2534 echo $ac_n "(cached) $ac_c" 1>&6
2536 if test -n "$STRIP"; then
2537 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2539 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2541 for ac_dir in $ac_dummy; do
2542 test -z "$ac_dir" && ac_dir=.
2543 if test -f $ac_dir/$ac_word; then
2544 ac_cv_prog_STRIP="strip"
2549 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2552 STRIP="$ac_cv_prog_STRIP"
2553 if test -n "$STRIP"; then
2554 echo "$ac_t""$STRIP" 1>&6
2556 echo "$ac_t""no" 1>&6
2568 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2569 if test "${enable_libtool_lock+set}" = set; then
2570 enableval="$enable_libtool_lock"
2574 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2576 # Some flags need to be propagated to the compiler or linker for good
2580 # Find out which ABI we are using.
2581 echo '#line 2582 "configure"' > conftest.$ac_ext
2582 if { (eval echo configure:2583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2583 case `/usr/bin/file conftest.$ac_objext` in
2599 # Test if the compiler is 64bit
2600 echo 'int i;' > conftest.$ac_ext
2601 lt_cv_cc_64bit_output=no
2602 if { (eval echo configure:2603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2603 case `/usr/bin/file conftest.$ac_objext` in
2605 lt_cv_cc_64bit_output=yes
2613 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2614 SAVE_CFLAGS="$CFLAGS"
2615 CFLAGS="$CFLAGS -belf"
2616 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2617 echo "configure:2618: checking whether the C compiler needs -belf" >&5
2618 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2619 echo $ac_n "(cached) $ac_c" 1>&6
2623 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2624 ac_cpp='$CPP $CPPFLAGS'
2625 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2626 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2627 cross_compiling=$ac_cv_prog_cc_cross
2629 cat > conftest.$ac_ext <<EOF
2630 #line 2631 "configure"
2631 #include "confdefs.h"
2637 if { (eval echo configure:2638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2639 lt_cv_cc_needs_belf=yes
2641 echo "configure: failed program was:" >&5
2642 cat conftest.$ac_ext >&5
2644 lt_cv_cc_needs_belf=no
2648 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2649 ac_cpp='$CPP $CPPFLAGS'
2650 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2651 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2652 cross_compiling=$ac_cv_prog_cc_cross
2656 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2657 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2658 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2659 CFLAGS="$SAVE_CFLAGS"
2666 # Sed substitution that helps us do robust quoting. It backslashifies
2667 # metacharacters that are still active within double-quoted strings.
2668 Xsed='sed -e s/^X//'
2669 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
2671 # Same as above, but do not quote variable references.
2672 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
2674 # Sed substitution to delay expansion of an escaped shell variable in a
2675 # double_quote_subst'ed string.
2676 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2682 default_ofile=libtool
2683 can_build_shared=yes
2685 # All known linkers require a `.a' archive for static linking (except M$VC,
2686 # which needs '.lib').
2688 ltmain="$ac_aux_dir/ltmain.sh"
2689 ofile="$default_ofile"
2690 with_gnu_ld="$lt_cv_prog_gnu_ld"
2691 need_locks="$enable_libtool_lock"
2694 old_CFLAGS="$CFLAGS"
2696 # Set sane defaults for various variables
2697 test -z "$AR" && AR=ar
2698 test -z "$AR_FLAGS" && AR_FLAGS=cru
2699 test -z "$AS" && AS=as
2700 test -z "$CC" && CC=cc
2701 test -z "$DLLTOOL" && DLLTOOL=dlltool
2702 test -z "$LD" && LD=ld
2703 test -z "$LN_S" && LN_S="ln -s"
2704 test -z "$MAGIC_CMD" && MAGIC_CMD=file
2705 test -z "$NM" && NM=nm
2706 test -z "$OBJDUMP" && OBJDUMP=objdump
2707 test -z "$RANLIB" && RANLIB=:
2708 test -z "$STRIP" && STRIP=:
2709 test -z "$ac_objext" && ac_objext=o
2711 if test x"$host" != x"$build"; then
2712 ac_tool_prefix=${host_alias}-
2717 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
2720 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
2725 # AIX sometimes has problems with the GCC collect2 program. For some
2726 # reason, if we set the COLLECT_NAMES environment variable, the problems
2727 # vanish in a puff of smoke.
2728 if test "X${COLLECT_NAMES+set}" != Xset; then
2730 export COLLECT_NAMES
2735 # Determine commands to create old-style static archives.
2736 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
2737 old_postinstall_cmds='chmod 644 $oldlib'
2738 old_postuninstall_cmds=
2740 if test -n "$RANLIB"; then
2743 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
2746 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
2749 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2752 # Allow CC to be a program name with arguments.
2756 echo $ac_n "checking for objdir""... $ac_c" 1>&6
2757 echo "configure:2758: checking for objdir" >&5
2758 rm -f .libs 2>/dev/null
2759 mkdir .libs 2>/dev/null
2760 if test -d .libs; then
2763 # MS-DOS does not allow filenames that begin with a dot.
2766 rmdir .libs 2>/dev/null
2767 echo "$ac_t""$objdir" 1>&6
2770 # Check whether --with-pic or --without-pic was given.
2771 if test "${with_pic+set}" = set; then
2778 test -z "$pic_mode" && pic_mode=default
2780 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
2781 # in isolation, and that seeing it set (from the cache) indicates that
2782 # the associated values are set (in the cache) correctly too.
2783 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
2784 echo "configure:2785: checking for $compiler option to produce PIC" >&5
2785 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
2786 echo $ac_n "(cached) $ac_c" 1>&6
2789 lt_cv_prog_cc_shlib=
2791 lt_cv_prog_cc_static=
2792 lt_cv_prog_cc_no_builtin=
2793 lt_cv_prog_cc_can_build_shared=$can_build_shared
2795 if test "$GCC" = yes; then
2796 lt_cv_prog_cc_wl='-Wl,'
2797 lt_cv_prog_cc_static='-static'
2801 # Below there is a dirty hack to force normal static linking with -ldl
2802 # The problem is because libdl dynamically linked with both libc and
2803 # libC (AIX C++ library), which obviously doesn't included in libraries
2804 # list by gcc. This cause undefined symbols with -static flags.
2805 # This hack allows C programs to be linked with "-static -ldl", but
2806 # not sure about C++ programs.
2807 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
2810 # FIXME: we need at least 68020 code to build shared libraries, but
2811 # adding the `-m68020' flag to GCC prevents building anything better,
2813 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
2815 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
2816 # PIC is the default for these OSes.
2818 darwin* | rhapsody*)
2819 # PIC is the default on this platform
2820 # Common symbols not allowed in MH_DYLIB files
2821 lt_cv_prog_cc_pic='-fno-common'
2823 cygwin* | mingw* | pw32* | os2*)
2824 # This hack is so that the source file can tell whether it is being
2825 # built for inclusion in a dll (and should export symbols for example).
2826 lt_cv_prog_cc_pic='-DDLL_EXPORT'
2829 if test -d /usr/nec; then
2830 lt_cv_prog_cc_pic=-Kconform_pic
2834 lt_cv_prog_cc_pic='-fPIC'
2838 # PORTME Check for PIC flags for the system compiler.
2840 aix3* | aix4* | aix5*)
2841 lt_cv_prog_cc_wl='-Wl,'
2842 # All AIX code is PIC.
2843 if test "$host_cpu" = ia64; then
2844 # AIX 5 now supports IA64 processor
2845 lt_cv_prog_cc_static='-Bstatic'
2847 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
2851 hpux9* | hpux10* | hpux11*)
2852 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
2853 lt_cv_prog_cc_wl='-Wl,'
2854 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
2855 lt_cv_prog_cc_pic='+Z'
2858 irix5* | irix6* | nonstopux*)
2859 lt_cv_prog_cc_wl='-Wl,'
2860 lt_cv_prog_cc_static='-non_shared'
2861 # PIC (with -KPIC) is the default.
2864 cygwin* | mingw* | pw32* | os2*)
2865 # This hack is so that the source file can tell whether it is being
2866 # built for inclusion in a dll (and should export symbols for example).
2867 lt_cv_prog_cc_pic='-DDLL_EXPORT'
2871 lt_cv_prog_cc_pic='-KPIC'
2872 lt_cv_prog_cc_static='-Bstatic'
2875 osf3* | osf4* | osf5*)
2876 # All OSF/1 code is PIC.
2877 lt_cv_prog_cc_wl='-Wl,'
2878 lt_cv_prog_cc_static='-non_shared'
2882 lt_cv_prog_cc_pic='-Kpic'
2883 lt_cv_prog_cc_static='-dn'
2884 lt_cv_prog_cc_shlib='-belf'
2888 lt_cv_prog_cc_pic='-KPIC'
2889 lt_cv_prog_cc_static='-Bstatic'
2890 lt_cv_prog_cc_wl='-Wl,'
2894 lt_cv_prog_cc_pic='-PIC'
2895 lt_cv_prog_cc_static='-Bstatic'
2896 lt_cv_prog_cc_wl='-Qoption ld '
2899 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2900 lt_cv_prog_cc_pic='-KPIC'
2901 lt_cv_prog_cc_static='-Bstatic'
2902 lt_cv_prog_cc_wl='-Wl,'
2906 lt_cv_prog_cc_pic='-pic'
2907 lt_cv_prog_cc_static='-Bstatic'
2911 if test -d /usr/nec ;then
2912 lt_cv_prog_cc_pic='-Kconform_pic'
2913 lt_cv_prog_cc_static='-Bstatic'
2918 lt_cv_prog_cc_can_build_shared=no
2925 if test -z "$lt_cv_prog_cc_pic"; then
2926 echo "$ac_t""none" 1>&6
2928 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
2930 # Check to make sure the pic_flag actually works.
2931 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
2932 echo "configure:2933: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
2933 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
2934 echo $ac_n "(cached) $ac_c" 1>&6
2936 save_CFLAGS="$CFLAGS"
2937 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2938 cat > conftest.$ac_ext <<EOF
2939 #line 2940 "configure"
2940 #include "confdefs.h"
2946 if { (eval echo configure:2947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2949 hpux9* | hpux10* | hpux11*)
2950 # On HP-UX, both CC and GCC only warn that PIC is supported... then
2951 # they create non-PIC objects. So, if there were any warnings, we
2952 # assume that PIC is not supported.
2953 if test -s conftest.err; then
2954 lt_cv_prog_cc_pic_works=no
2956 lt_cv_prog_cc_pic_works=yes
2960 lt_cv_prog_cc_pic_works=yes
2965 echo "configure: failed program was:" >&5
2966 cat conftest.$ac_ext >&5
2968 lt_cv_prog_cc_pic_works=no
2972 CFLAGS="$save_CFLAGS"
2977 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
2979 lt_cv_prog_cc_can_build_shared=no
2981 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
2984 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
2987 # Check for any special shared library compilation flags.
2988 if test -n "$lt_cv_prog_cc_shlib"; then
2989 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
2990 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
2992 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
2993 lt_cv_prog_cc_can_build_shared=no
2997 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
2998 echo "configure:2999: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
2999 if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
3000 echo $ac_n "(cached) $ac_c" 1>&6
3002 lt_cv_prog_cc_static_works=no
3003 save_LDFLAGS="$LDFLAGS"
3004 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
3005 cat > conftest.$ac_ext <<EOF
3006 #line 3007 "configure"
3007 #include "confdefs.h"
3013 if { (eval echo configure:3014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3015 lt_cv_prog_cc_static_works=yes
3017 echo "configure: failed program was:" >&5
3018 cat conftest.$ac_ext >&5
3021 LDFLAGS="$save_LDFLAGS"
3026 # Belt *and* braces to stop my trousers falling down:
3027 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
3028 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
3030 pic_flag="$lt_cv_prog_cc_pic"
3031 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
3032 wl="$lt_cv_prog_cc_wl"
3033 link_static_flag="$lt_cv_prog_cc_static"
3034 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
3035 can_build_shared="$lt_cv_prog_cc_can_build_shared"
3038 # Check to see if options -o and -c are simultaneously supported by compiler
3039 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
3040 echo "configure:3041: checking if $compiler supports -c -o file.$ac_objext" >&5
3041 if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
3042 echo $ac_n "(cached) $ac_c" 1>&6
3045 $rm -r conftest 2>/dev/null
3048 echo "int some_variable = 0;" > conftest.$ac_ext
3050 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
3051 # that will create temporary files in the current directory regardless of
3052 # the output directory. Thus, making CWD read-only will cause this test
3053 # to fail, enabling locking or at least warning the user not to do parallel
3056 save_CFLAGS="$CFLAGS"
3057 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
3059 if { (eval echo configure:3060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
3060 # The compiler can only warn and ignore the option if not recognized
3061 # So say no if there are warnings
3062 if test -s out/conftest.err; then
3063 lt_cv_compiler_c_o=no
3065 lt_cv_compiler_c_o=yes
3068 # Append any errors to the config.log.
3069 cat out/conftest.err 1>&5
3070 lt_cv_compiler_c_o=no
3072 CFLAGS="$save_CFLAGS"
3078 $rm -r conftest 2>/dev/null
3082 compiler_c_o=$lt_cv_compiler_c_o
3083 echo "$ac_t""$compiler_c_o" 1>&6
3085 if test x"$compiler_c_o" = x"yes"; then
3086 # Check to see if we can write to a .lo
3087 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
3088 echo "configure:3089: checking if $compiler supports -c -o file.lo" >&5
3089 if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
3090 echo $ac_n "(cached) $ac_c" 1>&6
3093 lt_cv_compiler_o_lo=no
3094 save_CFLAGS="$CFLAGS"
3095 CFLAGS="$CFLAGS -c -o conftest.lo"
3096 save_objext="$ac_objext"
3098 cat > conftest.$ac_ext <<EOF
3099 #line 3100 "configure"
3100 #include "confdefs.h"
3103 int some_variable = 0;
3106 if { (eval echo configure:3107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3108 # The compiler can only warn and ignore the option if not recognized
3109 # So say no if there are warnings
3110 if test -s conftest.err; then
3111 lt_cv_compiler_o_lo=no
3113 lt_cv_compiler_o_lo=yes
3117 echo "configure: failed program was:" >&5
3118 cat conftest.$ac_ext >&5
3121 ac_objext="$save_objext"
3122 CFLAGS="$save_CFLAGS"
3126 compiler_o_lo=$lt_cv_compiler_o_lo
3127 echo "$ac_t""$compiler_o_lo" 1>&6
3132 # Check to see if we can do hard links to lock some files if needed
3133 hard_links="nottested"
3134 if test "$compiler_c_o" = no && test "$need_locks" != no; then
3135 # do not overwrite the value of need_locks provided by the user
3136 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
3137 echo "configure:3138: checking if we can lock with hard links" >&5
3140 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3142 ln conftest.a conftest.b 2>&5 || hard_links=no
3143 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3144 echo "$ac_t""$hard_links" 1>&6
3145 if test "$hard_links" = no; then
3146 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
3153 if test "$GCC" = yes; then
3154 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
3155 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
3156 echo "configure:3157: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3157 echo "int some_variable = 0;" > conftest.$ac_ext
3158 save_CFLAGS="$CFLAGS"
3159 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3160 compiler_rtti_exceptions=no
3161 cat > conftest.$ac_ext <<EOF
3162 #line 3163 "configure"
3163 #include "confdefs.h"
3166 int some_variable = 0;
3169 if { (eval echo configure:3170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3171 # The compiler can only warn and ignore the option if not recognized
3172 # So say no if there are warnings
3173 if test -s conftest.err; then
3174 compiler_rtti_exceptions=no
3176 compiler_rtti_exceptions=yes
3180 echo "configure: failed program was:" >&5
3181 cat conftest.$ac_ext >&5
3184 CFLAGS="$save_CFLAGS"
3185 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
3187 if test "$compiler_rtti_exceptions" = "yes"; then
3188 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3190 no_builtin_flag=' -fno-builtin'
3194 # See if the linker supports building shared libraries.
3195 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
3196 echo "configure:3197: checking whether the linker ($LD) supports shared libraries" >&5
3198 allow_undefined_flag=
3200 need_lib_prefix=unknown
3201 need_version=unknown
3202 # when you set need_version to no, make sure it does not cause -set_version
3203 # flags to be left without arguments
3205 archive_expsym_cmds=
3206 old_archive_from_new_cmds=
3207 old_archive_from_expsyms_cmds=
3208 export_dynamic_flag_spec=
3209 whole_archive_flag_spec=
3210 thread_safe_flag_spec=
3211 hardcode_into_libs=no
3212 hardcode_libdir_flag_spec=
3213 hardcode_libdir_separator=
3216 hardcode_shlibpath_var=unsupported
3218 link_all_deplibs=unknown
3219 always_export_symbols=no
3220 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
3221 # include_expsyms should be a list of space-separated symbols to be *always*
3222 # included in the symbol list
3224 # exclude_expsyms can be an egrep regular expression of symbols to exclude
3225 # it will be wrapped by ` (' and `)$', so one must not match beginning or
3226 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
3227 # as well as any symbol that contains `d'.
3228 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
3229 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
3230 # platforms (ab)use it in PIC code, but their linkers get confused if
3231 # the symbol is explicitly referenced. Since portable code cannot
3232 # rely on this symbol name, it's probably fine to never include it in
3233 # preloaded symbol tables.
3234 extract_expsyms_cmds=
3237 cygwin* | mingw* | pw32*)
3238 # FIXME: the MSVC++ port hasn't been tested in a loooong time
3239 # When not using gcc, we currently assume that we are using
3240 # Microsoft Visual C++.
3241 if test "$GCC" != yes; then
3251 if test "$with_gnu_ld" = yes; then
3252 # If archive_cmds runs LD, not CC, wlarc should be empty
3255 # See if GNU ld supports shared libraries.
3257 aix3* | aix4* | aix5*)
3258 # On AIX, the GNU linker is very broken
3259 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
3263 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
3264 *** to be unable to reliably create shared libraries on AIX.
3265 *** Therefore, libtool is disabling shared libraries support. If you
3266 *** really care for shared libraries, you may want to modify your PATH
3267 *** so that a non-GNU linker is found, and then restart.
3273 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)'
3274 hardcode_libdir_flag_spec='-L$libdir'
3275 hardcode_minus_L=yes
3277 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
3278 # that the semantics of dynamic libraries on AmigaOS, at least up
3279 # to version 4, is to share data among multiple programs linked
3280 # with the same dynamic library. Since this doesn't match the
3281 # behavior of shared libraries on other platforms, we can use
3287 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3288 allow_undefined_flag=unsupported
3289 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3290 # support --undefined. This deserves some investigation. FIXME
3291 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3297 cygwin* | mingw* | pw32*)
3298 # hardcode_libdir_flag_spec is actually meaningless, as there is
3299 # no search path for DLLs.
3300 hardcode_libdir_flag_spec='-L$libdir'
3301 allow_undefined_flag=unsupported
3302 always_export_symbols=yes
3304 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
3305 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
3306 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
3307 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
3308 else $CC -o impgen impgen.c ; fi)~
3309 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
3311 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
3313 # cygwin and mingw dlls have different entry points and sets of symbols
3315 # FIXME: what about values for MSVC?
3316 dll_entry=__cygwin_dll_entry@12
3317 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
3321 dll_entry=_DllMainCRTStartup@12
3322 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
3326 # mingw and cygwin differ, and it's simplest to just exclude the union
3327 # of the two symbol sets.
3328 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
3330 # recent cygwin and mingw systems supply a stub DllMain which the user
3331 # can override, but on older systems we have to supply one (in ltdll.c)
3332 if test "x$lt_cv_need_dllmain" = "xyes"; then
3333 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
3334 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~
3335 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
3341 # Extract the symbol export list from an `--export-all' def file,
3342 # then regenerate the def file from the symbol export list, so that
3343 # the compiled dll only exports the symbol export list.
3344 # Be careful not to strip the DATA tag left be newer dlltools.
3345 export_symbols_cmds="$ltdll_cmds"'
3346 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
3347 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
3349 # If the export-symbols file already is a .def file (1st line
3350 # is EXPORTS), use it as is.
3351 # If DATA tags from a recent dlltool are present, honour them!
3352 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
3353 cp $export_symbols $output_objdir/$soname-def;
3355 echo EXPORTS > $output_objdir/$soname-def;
3357 cat $export_symbols | while read symbol; do
3360 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
3361 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
3362 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
3364 _lt_hint=`expr 1 + \$_lt_hint`;
3368 $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~
3369 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
3370 $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~
3371 $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~
3372 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
3376 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3377 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3380 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3381 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3386 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
3390 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
3391 *** create shared libraries on Solaris systems. Therefore, libtool
3392 *** is disabling shared libraries support. We urge you to upgrade GNU
3393 *** binutils to release 2.9.1 or newer. Another option is to modify
3394 *** your PATH or compiler configuration so that the native linker is
3395 *** used, and then restart.
3398 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3399 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3400 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3407 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3410 hardcode_shlibpath_var=no
3414 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3415 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3416 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3423 if test "$ld_shlibs" = yes; then
3424 runpath_var=LD_RUN_PATH
3425 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
3426 export_dynamic_flag_spec='${wl}--export-dynamic'
3428 cygwin* | mingw* | pw32*)
3429 # dlltool doesn't understand --whole-archive et. al.
3430 whole_archive_flag_spec=
3433 # ancient GNU ld didn't support --whole-archive et. al.
3434 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
3435 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3437 whole_archive_flag_spec=
3443 # PORTME fill in a description of your system's linker (not GNU ld)
3446 allow_undefined_flag=unsupported
3447 always_export_symbols=yes
3448 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'
3449 # Note: this linker hardcodes the directories in LIBPATH if there
3450 # are no directories specified by -L.
3451 hardcode_minus_L=yes
3452 if test "$GCC" = yes && test -z "$link_static_flag"; then
3453 # Neither direct hardcoding nor static linking is supported with a
3455 hardcode_direct=unsupported
3460 if test "$host_cpu" = ia64; then
3461 # On IA64, the linker does run time linking by default, so we don't
3462 # have to do anything special.
3463 aix_use_runtimelinking=no
3464 exp_sym_flag='-Bexport'
3467 aix_use_runtimelinking=no
3469 # Test if we are trying to use run time linking or normal
3470 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3471 # need to do runtime linking.
3472 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
3473 for ld_flag in $LDFLAGS; do
3476 aix_use_runtimelinking=yes
3483 exp_sym_flag='-bexport'
3484 no_entry_flag='-bnoentry'
3487 # When large executables or shared objects are built, AIX ld can
3488 # have problems creating the table of contents. If linking a library
3489 # or program results in "error TOC overflow" add -mminimal-toc to
3490 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3491 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3495 hardcode_libdir_separator=':'
3496 if test "$GCC" = yes; then
3497 case $host_os in aix4.[012]|aix4.[012].*)
3498 collect2name=`${CC} -print-prog-name=collect2`
3499 if test -f "$collect2name" && \
3500 strings "$collect2name" | grep resolve_lib_name >/dev/null
3502 # We have reworked collect2
3505 # We have old collect2
3506 hardcode_direct=unsupported
3507 # It fails to find uninstalled libraries when the uninstalled
3508 # path is not listed in the libpath. Setting hardcode_minus_L
3509 # to unsupported forces relinking
3510 hardcode_minus_L=yes
3511 hardcode_libdir_flag_spec='-L$libdir'
3512 hardcode_libdir_separator=
3516 shared_flag='-shared'
3519 if test "$host_cpu" = ia64; then
3520 shared_flag='${wl}-G'
3522 if test "$aix_use_runtimelinking" = yes; then
3523 shared_flag='${wl}-G'
3525 shared_flag='${wl}-bM:SRE'
3530 # It seems that -bexpall can do strange things, so it is better to
3531 # generate a list of symbols to export.
3532 always_export_symbols=yes
3533 if test "$aix_use_runtimelinking" = yes; then
3534 # Warning - without using the other runtime loading flags (-brtl),
3535 # -berok will link without error, but may produce a broken library.
3536 allow_undefined_flag='-berok'
3537 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
3538 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"
3540 if test "$host_cpu" = ia64; then
3541 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
3542 allow_undefined_flag="-z nodefs"
3543 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"
3545 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
3546 # Warning - without using the other run time loading flags,
3547 # -berok will link without error, but may produce a broken library.
3548 allow_undefined_flag='${wl}-berok'
3549 # This is a bit strange, but is similar to how AIX traditionally builds
3550 # it's shared libraries.
3551 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'
3557 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)'
3558 hardcode_libdir_flag_spec='-L$libdir'
3559 hardcode_minus_L=yes
3560 # see comment about different semantics on the GNU ld section
3564 cygwin* | mingw* | pw32*)
3565 # When not using gcc, we currently assume that we are using
3566 # Microsoft Visual C++.
3567 # hardcode_libdir_flag_spec is actually meaningless, as there is
3568 # no search path for DLLs.
3569 hardcode_libdir_flag_spec=' '
3570 allow_undefined_flag=unsupported
3571 # Tell ltmain to make .lib files, not .a files.
3573 # FIXME: Setting linknames here is a bad hack.
3574 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
3575 # The linker will automatically build a .lib file if we build a DLL.
3576 old_archive_from_new_cmds='true'
3577 # FIXME: Should let the user specify the lib program.
3578 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
3579 fix_srcfile_path='`cygpath -w "$srcfile"`'
3582 darwin* | rhapsody*)
3584 rhapsody* | darwin1.[012])
3585 allow_undefined_flag='-undefined suppress'
3588 allow_undefined_flag='-flat_namespace -undefined suppress'
3591 # FIXME: Relying on posixy $() will cause problems for
3592 # cross-compilation, but unfortunately the echo tests do not
3593 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
3594 # `"' quotes if we put them in here... so don't!
3595 archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
3596 # We need to add '_' to the symbols in $export_symbols first
3597 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
3599 hardcode_shlibpath_var=no
3600 whole_archive_flag_spec='-all_load $convenience'
3607 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
3608 # support. Future versions do this automatically, but an explicit c++rt0.o
3609 # does not break anything, and helps significantly (at the cost of a little
3612 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
3613 hardcode_libdir_flag_spec='-R$libdir'
3615 hardcode_shlibpath_var=no
3618 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
3620 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3622 hardcode_minus_L=yes
3623 hardcode_shlibpath_var=no
3626 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
3628 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
3629 hardcode_libdir_flag_spec='-R$libdir'
3631 hardcode_shlibpath_var=no
3634 hpux9* | hpux10* | hpux11*)
3636 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' ;;
3637 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
3639 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
3640 hardcode_libdir_separator=:
3642 hardcode_minus_L=yes # Not in the search PATH, but as the default
3643 # location of the library.
3644 export_dynamic_flag_spec='${wl}-E'
3647 irix5* | irix6* | nonstopux*)
3648 if test "$GCC" = yes; then
3649 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'
3650 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3652 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'
3653 hardcode_libdir_flag_spec='-rpath $libdir'
3655 hardcode_libdir_separator=:
3656 link_all_deplibs=yes
3660 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3661 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
3663 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
3665 hardcode_libdir_flag_spec='-R$libdir'
3667 hardcode_shlibpath_var=no
3671 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3673 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3674 hardcode_libdir_separator=:
3675 hardcode_shlibpath_var=no
3680 hardcode_shlibpath_var=no
3681 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3682 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
3683 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3684 export_dynamic_flag_spec='${wl}-E'
3687 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
3688 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3689 hardcode_libdir_flag_spec='-R$libdir'
3692 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
3693 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3700 hardcode_libdir_flag_spec='-L$libdir'
3701 hardcode_minus_L=yes
3702 allow_undefined_flag=unsupported
3703 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'
3704 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
3708 if test "$GCC" = yes; then
3709 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3710 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'
3712 allow_undefined_flag=' -expect_unresolved \*'
3713 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'
3715 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3716 hardcode_libdir_separator=:
3719 osf4* | osf5*) # as osf3* with the addition of -msym flag
3720 if test "$GCC" = yes; then
3721 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3722 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'
3723 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3725 allow_undefined_flag=' -expect_unresolved \*'
3726 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'
3727 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
3728 $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'
3730 #Both c and cxx compiler support -rpath directly
3731 hardcode_libdir_flag_spec='-rpath $libdir'
3733 hardcode_libdir_separator=:
3737 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3738 hardcode_shlibpath_var=no
3739 runpath_var=LD_RUN_PATH
3740 hardcode_runpath_var=yes
3741 export_dynamic_flag_spec='${wl}-Bexport'
3745 # gcc --version < 3.0 without binutils cannot create self contained
3746 # shared libraries reliably, requiring libgcc.a to resolve some of
3747 # the object symbols generated in some cases. Libraries that use
3748 # assert need libgcc.a to resolve __eprintf, for example. Linking
3749 # a copy of libgcc.a into every shared library to guarantee resolving
3750 # such symbols causes other problems: According to Tim Van Holder
3751 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
3752 # (to the application) exception stack for one thing.
3753 no_undefined_flag=' -z defs'
3754 if test "$GCC" = yes; then
3755 case `$CC --version 2>/dev/null` in
3759 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
3760 *** create self contained shared libraries on Solaris systems, without
3761 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
3762 *** -no-undefined support, which will at least allow you to build shared
3763 *** libraries. However, you may find that when you link such libraries
3764 *** into an application without using GCC, you have to manually add
3765 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
3766 *** upgrade to a newer version of GCC. Another option is to rebuild your
3767 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
3774 # $CC -shared without GNU ld will not create a library from C++
3775 # object files and a static libstdc++, better avoid it by now
3776 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3777 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3778 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3779 hardcode_libdir_flag_spec='-R$libdir'
3780 hardcode_shlibpath_var=no
3782 solaris2.[0-5] | solaris2.[0-5].*) ;;
3783 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
3784 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
3786 link_all_deplibs=yes
3790 if test "x$host_vendor" = xsequent; then
3791 # Use $CC to link under sequent, because it throws in some extra .o
3792 # files that make .init and .fini sections work.
3793 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
3795 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
3797 hardcode_libdir_flag_spec='-L$libdir'
3799 hardcode_minus_L=yes
3800 hardcode_shlibpath_var=no
3804 case $host_vendor in
3806 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3807 hardcode_direct=yes # is this really true???
3810 ## LD is ld it makes a PLAMLIB
3811 ## CC just makes a GrossModule.
3812 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
3813 reload_cmds='$CC -r -o $output$reload_objs'
3817 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3818 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
3821 runpath_var='LD_RUN_PATH'
3822 hardcode_shlibpath_var=no
3826 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3827 hardcode_shlibpath_var=no
3828 export_dynamic_flag_spec='-Bexport'
3832 no_undefined_flag=' -z text'
3833 # $CC -shared without GNU ld will not create a library from C++
3834 # object files and a static libstdc++, better avoid it by now
3835 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3836 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3837 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3838 hardcode_libdir_flag_spec=
3839 hardcode_shlibpath_var=no
3840 runpath_var='LD_RUN_PATH'
3844 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3845 hardcode_libdir_flag_spec='-L$libdir'
3846 hardcode_shlibpath_var=no
3850 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3851 hardcode_libdir_flag_spec='-L$libdir'
3852 hardcode_shlibpath_var=no
3856 if test -d /usr/nec; then
3857 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3858 hardcode_shlibpath_var=no
3859 runpath_var=LD_RUN_PATH
3860 hardcode_runpath_var=yes
3866 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
3869 hardcode_shlibpath_var=no
3870 hardcode_runpath_var=yes
3871 runpath_var=LD_RUN_PATH
3874 sysv5uw7* | unixware7*)
3875 no_undefined_flag='${wl}-z ${wl}text'
3876 if test "$GCC" = yes; then
3877 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3879 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3881 runpath_var='LD_RUN_PATH'
3882 hardcode_shlibpath_var=no
3890 echo "$ac_t""$ld_shlibs" 1>&6
3891 test "$ld_shlibs" = no && can_build_shared=no
3893 # Check hardcoding attributes.
3894 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
3895 echo "configure:3896: checking how to hardcode library paths into programs" >&5
3897 if test -n "$hardcode_libdir_flag_spec" || \
3898 test -n "$runpath_var"; then
3900 # We can hardcode non-existant directories.
3901 if test "$hardcode_direct" != no &&
3902 # If the only mechanism to avoid hardcoding is shlibpath_var, we
3903 # have to relink, otherwise we might link with an installed library
3904 # when we should be linking with a yet-to-be-installed one
3905 ## test "$hardcode_shlibpath_var" != no &&
3906 test "$hardcode_minus_L" != no; then
3907 # Linking always hardcodes the temporary library directory.
3908 hardcode_action=relink
3910 # We can link without hardcoding, and we can hardcode nonexisting dirs.
3911 hardcode_action=immediate
3914 # We cannot hardcode anything, or else we can only hardcode existing
3916 hardcode_action=unsupported
3918 echo "$ac_t""$hardcode_action" 1>&6
3922 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
3923 echo "configure:3924: checking whether stripping libraries is possible" >&5
3924 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
3925 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3926 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3927 echo "$ac_t""yes" 1>&6
3929 echo "$ac_t""no" 1>&6
3932 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3933 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3935 # PORTME Fill in your ld.so characteristics
3936 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
3937 echo "configure:3938: checking dynamic linker characteristics" >&5
3939 libname_spec='lib$name'
3946 shlibpath_overrides_runpath=unknown
3948 dynamic_linker="$host_os ld.so"
3949 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib"
3950 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib"
3955 library_names_spec='${libname}${release}.so$versuffix $libname.a'
3956 shlibpath_var=LIBPATH
3958 # AIX has no versioning support, so we append a major version to the name.
3959 soname_spec='${libname}${release}.so$major'
3966 hardcode_into_libs=yes
3967 if test "$host_cpu" = ia64; then
3968 # AIX 5 supports IA64
3969 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
3970 shlibpath_var=LD_LIBRARY_PATH
3972 # With GCC up to 2.95.x, collect2 would create an import file
3973 # for dependence libraries. The import file would start with
3974 # the line `#! .'. This would cause the generated library to
3975 # depend on `.', always an invalid library. This was fixed in
3976 # development snapshots of GCC prior to 3.0.
3978 aix4 | aix4.[01] | aix4.[01].*)
3979 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3981 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
3988 # AIX (on Power*) has no versioning support, so currently we can
3989 # not hardcode correct soname into executable. Probably we can
3990 # add versioning support to collect2, so additional links can
3991 # be useful in future.
3992 if test "$aix_use_runtimelinking" = yes; then
3993 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
3994 # instead of lib<name>.a to let people know that these are not
3995 # typical AIX shared libraries.
3996 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3998 # We preserve .a as extension for shared libraries through AIX4.2
3999 # and later when we are not doing run time linking.
4000 library_names_spec='${libname}${release}.a $libname.a'
4001 soname_spec='${libname}${release}.so$major'
4003 shlibpath_var=LIBPATH
4005 hardcode_into_libs=yes
4009 library_names_spec='$libname.ixlibrary $libname.a'
4010 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4011 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'
4015 library_names_spec='${libname}.so'
4016 dynamic_linker="$host_os ld.so"
4017 shlibpath_var=LIBRARY_PATH
4023 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4024 soname_spec='${libname}${release}.so$major'
4025 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4026 shlibpath_var=LD_LIBRARY_PATH
4027 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4028 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4029 export_dynamic_flag_spec=-rdynamic
4030 # the default ld.so.conf also contains /usr/contrib/lib and
4031 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4032 # libtool to hard-code these into programs
4035 cygwin* | mingw* | pw32*)
4036 version_type=windows
4039 case $GCC,$host_os in
4041 library_names_spec='$libname.dll.a'
4042 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4043 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
4044 dldir=$destdir/`dirname \$dlpath`~
4045 test -d \$dldir || mkdir -p \$dldir~
4046 $install_prog .libs/$dlname \$dldir/$dlname'
4047 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
4048 dlpath=$dir/\$dldll~
4052 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4053 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
4056 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
4059 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
4062 dynamic_linker='Win32 ld.exe'
4063 # FIXME: first we should search . and the directory the executable is in
4067 darwin* | rhapsody*)
4068 dynamic_linker="$host_os dyld"
4072 # FIXME: Relying on posixy $() will cause problems for
4073 # cross-compilation, but unfortunately the echo tests do not
4074 # yet detect zsh echo's removal of \ escapes.
4075 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)'
4076 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
4077 shlibpath_overrides_runpath=yes
4078 shlibpath_var=DYLD_LIBRARY_PATH
4086 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4087 version_type=freebsd-$objformat
4088 case $version_type in
4090 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4095 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
4099 shlibpath_var=LD_LIBRARY_PATH
4102 shlibpath_overrides_runpath=yes
4105 shlibpath_overrides_runpath=no
4106 hardcode_into_libs=yes
4115 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
4116 soname_spec='${libname}${release}.so$major'
4117 shlibpath_var=LD_LIBRARY_PATH
4118 hardcode_into_libs=yes
4121 hpux9* | hpux10* | hpux11*)
4122 # Give a soname corresponding to the major version so that dld.sl refuses to
4123 # link against other versions.
4124 dynamic_linker="$host_os dld.sl"
4128 shlibpath_var=SHLIB_PATH
4129 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4130 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
4131 soname_spec='${libname}${release}.sl$major'
4132 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4133 postinstall_cmds='chmod 555 $lib'
4136 irix5* | irix6* | nonstopux*)
4138 nonstopux*) version_type=nonstopux ;;
4139 *) version_type=irix ;;
4143 soname_spec='${libname}${release}.so$major'
4144 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
4146 irix5* | nonstopux*)
4150 case $LD in # libtool.m4 will add one of these switches to LD
4151 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
4152 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
4153 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
4154 *) libsuff= shlibsuff= libmagic=never-match;;
4158 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4159 shlibpath_overrides_runpath=no
4160 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4161 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4164 # No shared lib support for Linux oldld, aout, or coff.
4165 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
4169 # This must be Linux ELF.
4174 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4175 soname_spec='${libname}${release}.so$major'
4176 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4177 shlibpath_var=LD_LIBRARY_PATH
4178 shlibpath_overrides_runpath=no
4179 # This implies no fast_install, which is unacceptable.
4180 # Some rework will be needed to allow for fast_install
4181 # before this can be enabled.
4182 hardcode_into_libs=yes
4184 case $host_cpu:$lt_cv_cc_64bit_output in
4185 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
4186 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
4187 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
4191 # We used to test for /lib/ld.so.1 and disable shared libraries on
4192 # powerpc, because MkLinux only supported shared libraries with the
4193 # GNU dynamic linker. Since this was broken with cross compilers,
4194 # most powerpc-linux boxes support dynamic linking these days and
4195 # people can always --disable-shared, the test was removed, and we
4196 # assume the GNU/Linux dynamic linker is in use.
4197 dynamic_linker='GNU/Linux ld.so'
4199 # Find out which ABI we are using (multilib Linux x86_64 hack).
4203 echo '#line 4204 "configure"' > conftest.$ac_ext
4204 if { (eval echo configure:4205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4205 case `/usr/bin/file conftest.$ac_objext` in
4216 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
4217 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
4224 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4225 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4226 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4227 dynamic_linker='NetBSD (a.out) ld.so'
4229 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
4230 soname_spec='${libname}${release}.so$major'
4231 dynamic_linker='NetBSD ld.elf_so'
4233 shlibpath_var=LD_LIBRARY_PATH
4234 shlibpath_overrides_runpath=yes
4235 hardcode_into_libs=yes
4240 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4241 shlibpath_var=LD_LIBRARY_PATH
4242 shlibpath_overrides_runpath=yes
4249 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4251 openbsd2.[89] | openbsd2.[89].*)
4252 shlibpath_overrides_runpath=no
4255 shlibpath_overrides_runpath=yes
4259 shlibpath_overrides_runpath=yes
4261 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4262 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4263 shlibpath_var=LD_LIBRARY_PATH
4267 libname_spec='$name'
4269 library_names_spec='$libname.dll $libname.a'
4270 dynamic_linker='OS/2 ld.exe'
4271 shlibpath_var=LIBPATH
4274 osf3* | osf4* | osf5*)
4277 soname_spec='${libname}${release}.so$major'
4278 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4279 shlibpath_var=LD_LIBRARY_PATH
4280 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4281 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4282 hardcode_into_libs=yes
4287 soname_spec='${libname}${release}.so$major'
4288 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4289 shlibpath_var=LD_LIBRARY_PATH
4296 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4297 soname_spec='${libname}${release}.so$major'
4298 shlibpath_var=LD_LIBRARY_PATH
4299 shlibpath_overrides_runpath=yes
4300 hardcode_into_libs=yes
4301 # ldd complains unless libraries are executable
4302 postinstall_cmds='chmod +x $lib'
4307 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4308 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4309 shlibpath_var=LD_LIBRARY_PATH
4310 shlibpath_overrides_runpath=yes
4311 if test "$with_gnu_ld" = yes; then
4317 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4319 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4320 soname_spec='${libname}${release}.so$major'
4321 shlibpath_var=LD_LIBRARY_PATH
4322 case $host_vendor in
4324 shlibpath_overrides_runpath=no
4326 export_dynamic_flag_spec='${wl}-Blargedynsym'
4327 runpath_var=LD_RUN_PATH
4335 shlibpath_overrides_runpath=no
4336 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4343 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4344 soname_spec='${libname}${release}.so$major'
4345 shlibpath_var=LD_LIBRARY_PATH
4352 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4353 soname_spec='${libname}${release}.so$major'
4354 shlibpath_var=LD_LIBRARY_PATH
4358 if test -d /usr/nec ;then
4360 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
4361 soname_spec='$libname.so.$major'
4362 shlibpath_var=LD_LIBRARY_PATH
4370 echo "$ac_t""$dynamic_linker" 1>&6
4371 test "$dynamic_linker" = no && can_build_shared=no
4373 # Report the final consequences.
4374 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
4375 echo "configure:4376: checking if libtool supports shared libraries" >&5
4376 echo "$ac_t""$can_build_shared" 1>&6
4378 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
4379 echo "configure:4380: checking whether to build shared libraries" >&5
4380 test "$can_build_shared" = "no" && enable_shared=no
4382 # On AIX, shared libraries and static libraries use the same namespace, and
4383 # are all built from PIC.
4386 test "$enable_shared" = yes && enable_static=no
4387 if test -n "$RANLIB"; then
4388 archive_cmds="$archive_cmds~\$RANLIB \$lib"
4389 postinstall_cmds='$RANLIB $lib'
4394 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4395 test "$enable_shared" = yes && enable_static=no
4399 echo "$ac_t""$enable_shared" 1>&6
4401 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
4402 echo "configure:4403: checking whether to build static libraries" >&5
4403 # Make sure either enable_shared or enable_static is yes.
4404 test "$enable_shared" = yes || enable_static=yes
4405 echo "$ac_t""$enable_static" 1>&6
4407 if test "$hardcode_action" = relink; then
4408 # Fast installation is not supported
4409 enable_fast_install=no
4410 elif test "$shlibpath_overrides_runpath" = yes ||
4411 test "$enable_shared" = no; then
4412 # Fast installation is not necessary
4413 enable_fast_install=needless
4416 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4417 if test "$GCC" = yes; then
4418 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4421 if test "x$enable_dlopen" != xyes; then
4422 enable_dlopen=unknown
4423 enable_dlopen_self=unknown
4424 enable_dlopen_self_static=unknown
4431 lt_cv_dlopen="load_add_on"
4433 lt_cv_dlopen_self=yes
4436 cygwin* | mingw* | pw32*)
4437 lt_cv_dlopen="LoadLibrary"
4442 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
4443 echo "configure:4444: checking for shl_load" >&5
4444 if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
4445 echo $ac_n "(cached) $ac_c" 1>&6
4447 cat > conftest.$ac_ext <<EOF
4448 #line 4449 "configure"
4449 #include "confdefs.h"
4450 /* System header to define __stub macros and hopefully few prototypes,
4451 which can conflict with char shl_load(); below. */
4453 /* Override any gcc2 internal prototype to avoid an error. */
4454 /* We use char because int might match the return type of a gcc2
4455 builtin and then its argument prototype would still apply. */
4460 /* The GNU C library defines this for functions which it implements
4461 to always fail with ENOSYS. Some functions are actually named
4462 something starting with __ and the normal name is an alias. */
4463 #if defined (__stub_shl_load) || defined (__stub___shl_load)
4471 if { (eval echo configure:4472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4473 eval "ac_cv_func_shl_load=yes"
4475 echo "configure: failed program was:" >&5
4476 cat conftest.$ac_ext >&5
4478 eval "ac_cv_func_shl_load=no"
4483 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
4484 echo "$ac_t""yes" 1>&6
4485 lt_cv_dlopen="shl_load"
4487 echo "$ac_t""no" 1>&6
4488 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
4489 echo "configure:4490: checking for shl_load in -ldld" >&5
4490 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
4491 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4492 echo $ac_n "(cached) $ac_c" 1>&6
4494 ac_save_LIBS="$LIBS"
4496 cat > conftest.$ac_ext <<EOF
4497 #line 4498 "configure"
4498 #include "confdefs.h"
4499 /* Override any gcc2 internal prototype to avoid an error. */
4500 /* We use char because int might match the return type of a gcc2
4501 builtin and then its argument prototype would still apply. */
4508 if { (eval echo configure:4509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4510 eval "ac_cv_lib_$ac_lib_var=yes"
4512 echo "configure: failed program was:" >&5
4513 cat conftest.$ac_ext >&5
4515 eval "ac_cv_lib_$ac_lib_var=no"
4518 LIBS="$ac_save_LIBS"
4521 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4522 echo "$ac_t""yes" 1>&6
4523 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
4525 echo "$ac_t""no" 1>&6
4526 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
4527 echo "configure:4528: checking for dlopen" >&5
4528 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
4529 echo $ac_n "(cached) $ac_c" 1>&6
4531 cat > conftest.$ac_ext <<EOF
4532 #line 4533 "configure"
4533 #include "confdefs.h"
4534 /* System header to define __stub macros and hopefully few prototypes,
4535 which can conflict with char dlopen(); below. */
4537 /* Override any gcc2 internal prototype to avoid an error. */
4538 /* We use char because int might match the return type of a gcc2
4539 builtin and then its argument prototype would still apply. */
4544 /* The GNU C library defines this for functions which it implements
4545 to always fail with ENOSYS. Some functions are actually named
4546 something starting with __ and the normal name is an alias. */
4547 #if defined (__stub_dlopen) || defined (__stub___dlopen)
4555 if { (eval echo configure:4556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4557 eval "ac_cv_func_dlopen=yes"
4559 echo "configure: failed program was:" >&5
4560 cat conftest.$ac_ext >&5
4562 eval "ac_cv_func_dlopen=no"
4567 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
4568 echo "$ac_t""yes" 1>&6
4569 lt_cv_dlopen="dlopen"
4571 echo "$ac_t""no" 1>&6
4572 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4573 echo "configure:4574: checking for dlopen in -ldl" >&5
4574 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4575 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4576 echo $ac_n "(cached) $ac_c" 1>&6
4578 ac_save_LIBS="$LIBS"
4580 cat > conftest.$ac_ext <<EOF
4581 #line 4582 "configure"
4582 #include "confdefs.h"
4583 /* Override any gcc2 internal prototype to avoid an error. */
4584 /* We use char because int might match the return type of a gcc2
4585 builtin and then its argument prototype would still apply. */
4592 if { (eval echo configure:4593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4594 eval "ac_cv_lib_$ac_lib_var=yes"
4596 echo "configure: failed program was:" >&5
4597 cat conftest.$ac_ext >&5
4599 eval "ac_cv_lib_$ac_lib_var=no"
4602 LIBS="$ac_save_LIBS"
4605 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4606 echo "$ac_t""yes" 1>&6
4607 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
4609 echo "$ac_t""no" 1>&6
4610 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
4611 echo "configure:4612: checking for dlopen in -lsvld" >&5
4612 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
4613 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4614 echo $ac_n "(cached) $ac_c" 1>&6
4616 ac_save_LIBS="$LIBS"
4618 cat > conftest.$ac_ext <<EOF
4619 #line 4620 "configure"
4620 #include "confdefs.h"
4621 /* Override any gcc2 internal prototype to avoid an error. */
4622 /* We use char because int might match the return type of a gcc2
4623 builtin and then its argument prototype would still apply. */
4630 if { (eval echo configure:4631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4632 eval "ac_cv_lib_$ac_lib_var=yes"
4634 echo "configure: failed program was:" >&5
4635 cat conftest.$ac_ext >&5
4637 eval "ac_cv_lib_$ac_lib_var=no"
4640 LIBS="$ac_save_LIBS"
4643 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4644 echo "$ac_t""yes" 1>&6
4645 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
4647 echo "$ac_t""no" 1>&6
4648 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
4649 echo "configure:4650: checking for dld_link in -ldld" >&5
4650 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
4651 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4652 echo $ac_n "(cached) $ac_c" 1>&6
4654 ac_save_LIBS="$LIBS"
4656 cat > conftest.$ac_ext <<EOF
4657 #line 4658 "configure"
4658 #include "confdefs.h"
4659 /* Override any gcc2 internal prototype to avoid an error. */
4660 /* We use char because int might match the return type of a gcc2
4661 builtin and then its argument prototype would still apply. */
4668 if { (eval echo configure:4669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4670 eval "ac_cv_lib_$ac_lib_var=yes"
4672 echo "configure: failed program was:" >&5
4673 cat conftest.$ac_ext >&5
4675 eval "ac_cv_lib_$ac_lib_var=no"
4678 LIBS="$ac_save_LIBS"
4681 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4682 echo "$ac_t""yes" 1>&6
4683 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
4685 echo "$ac_t""no" 1>&6
4706 if test "x$lt_cv_dlopen" != xno; then
4712 case $lt_cv_dlopen in
4714 save_CPPFLAGS="$CPPFLAGS"
4715 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
4717 save_LDFLAGS="$LDFLAGS"
4718 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
4721 LIBS="$lt_cv_dlopen_libs $LIBS"
4723 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
4724 echo "configure:4725: checking whether a program can dlopen itself" >&5
4725 if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
4726 echo $ac_n "(cached) $ac_c" 1>&6
4728 if test "$cross_compiling" = yes; then :
4729 lt_cv_dlopen_self=cross
4731 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4732 lt_status=$lt_dlunknown
4733 cat > conftest.$ac_ext <<EOF
4734 #line 4735 "configure"
4735 #include "confdefs.h"
4744 # define LT_DLGLOBAL RTLD_GLOBAL
4747 # define LT_DLGLOBAL DL_GLOBAL
4749 # define LT_DLGLOBAL 0
4753 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4754 find out it does not work in some platform. */
4755 #ifndef LT_DLLAZY_OR_NOW
4757 # define LT_DLLAZY_OR_NOW RTLD_LAZY
4760 # define LT_DLLAZY_OR_NOW DL_LAZY
4763 # define LT_DLLAZY_OR_NOW RTLD_NOW
4766 # define LT_DLLAZY_OR_NOW DL_NOW
4768 # define LT_DLLAZY_OR_NOW 0
4776 extern "C" void exit (int);
4779 void fnord() { int i=42;}
4782 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4783 int status = $lt_dlunknown;
4787 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
4788 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4789 /* dlclose (self); */
4795 if { (eval echo configure:4796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4796 (./conftest; exit; ) 2>/dev/null
4799 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
4800 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
4801 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
4804 # compilation failed
4805 lt_cv_dlopen_self=no
4813 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
4815 if test "x$lt_cv_dlopen_self" = xyes; then
4816 LDFLAGS="$LDFLAGS $link_static_flag"
4817 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
4818 echo "configure:4819: checking whether a statically linked program can dlopen itself" >&5
4819 if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
4820 echo $ac_n "(cached) $ac_c" 1>&6
4822 if test "$cross_compiling" = yes; then :
4823 lt_cv_dlopen_self_static=cross
4825 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4826 lt_status=$lt_dlunknown
4827 cat > conftest.$ac_ext <<EOF
4828 #line 4829 "configure"
4829 #include "confdefs.h"
4838 # define LT_DLGLOBAL RTLD_GLOBAL
4841 # define LT_DLGLOBAL DL_GLOBAL
4843 # define LT_DLGLOBAL 0
4847 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4848 find out it does not work in some platform. */
4849 #ifndef LT_DLLAZY_OR_NOW
4851 # define LT_DLLAZY_OR_NOW RTLD_LAZY
4854 # define LT_DLLAZY_OR_NOW DL_LAZY
4857 # define LT_DLLAZY_OR_NOW RTLD_NOW
4860 # define LT_DLLAZY_OR_NOW DL_NOW
4862 # define LT_DLLAZY_OR_NOW 0
4870 extern "C" void exit (int);
4873 void fnord() { int i=42;}
4876 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4877 int status = $lt_dlunknown;
4881 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
4882 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4883 /* dlclose (self); */
4889 if { (eval echo configure:4890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4890 (./conftest; exit; ) 2>/dev/null
4893 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
4894 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
4895 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
4898 # compilation failed
4899 lt_cv_dlopen_self_static=no
4907 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
4910 CPPFLAGS="$save_CPPFLAGS"
4911 LDFLAGS="$save_LDFLAGS"
4916 case $lt_cv_dlopen_self in
4917 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
4918 *) enable_dlopen_self=unknown ;;
4921 case $lt_cv_dlopen_self_static in
4922 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
4923 *) enable_dlopen_self_static=unknown ;;
4928 if test "$enable_shared" = yes && test "$GCC" = yes; then
4929 case $archive_cmds in
4931 # FIXME: we may have to deal with multi-command sequences.
4934 # Test whether the compiler implicitly links with -lc since on some
4935 # systems, -lgcc has to come before -lc. If gcc already passes -lc
4936 # to ld, don't add -lc before -lgcc.
4937 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
4938 echo "configure:4939: checking whether -lc should be explicitly linked in" >&5
4939 if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
4940 echo $ac_n "(cached) $ac_c" 1>&6
4943 echo 'static int dummy;' > conftest.$ac_ext
4945 if { (eval echo configure:4946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4948 libobjs=conftest.$ac_objext
4950 wl=$lt_cv_prog_cc_wl
4956 save_allow_undefined_flag=$allow_undefined_flag
4957 allow_undefined_flag=
4958 if { (eval echo configure:4959: \"$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; }
4960 lt_cv_archive_cmds_need_lc=no
4962 lt_cv_archive_cmds_need_lc=yes
4964 allow_undefined_flag=$save_allow_undefined_flag
4966 cat conftest.err 1>&5
4970 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
4974 need_lc=${lt_cv_archive_cmds_need_lc-yes}
4976 # The second clause should only fire when bootstrapping the
4977 # libtool distribution, otherwise you forgot to ship ltmain.sh
4978 # with your package, and you will get complaints that there are
4979 # no rules to generate ltmain.sh.
4980 if test -f "$ltmain"; then
4983 # If there is no Makefile yet, we rely on a make rule to execute
4984 # `config.status --recheck' to rerun these tests and create the
4985 # libtool script then.
4986 test -f Makefile && make "$ltmain"
4989 if test -f "$ltmain"; then
4990 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
4993 echo creating $ofile
4995 # Now quote all the things that may contain metacharacters while being
4996 # careful not to overquote the AC_SUBSTed values. We take copies of the
4997 # variables and quote the copies for generation of the libtool script.
4998 for var in echo old_CC old_CFLAGS SED \
4999 AR AR_FLAGS CC LD LN_S NM SHELL \
5000 reload_flag reload_cmds wl \
5001 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
5002 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
5003 library_names_spec soname_spec \
5004 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
5005 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
5006 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
5007 old_striplib striplib file_magic_cmd export_symbols_cmds \
5008 deplibs_check_method allow_undefined_flag no_undefined_flag \
5009 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
5010 global_symbol_to_c_name_address \
5011 hardcode_libdir_flag_spec hardcode_libdir_separator \
5012 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5013 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
5016 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
5017 old_postinstall_cmds | old_postuninstall_cmds | \
5018 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
5019 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
5020 postinstall_cmds | postuninstall_cmds | \
5021 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5022 # Double-quote double-evaled strings.
5023 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5026 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5031 cat <<__EOF__ > "${ofile}T"
5034 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5035 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5036 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
5038 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
5039 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5041 # This program is free software; you can redistribute it and/or modify
5042 # it under the terms of the GNU General Public License as published by
5043 # the Free Software Foundation; either version 2 of the License, or
5044 # (at your option) any later version.
5046 # This program is distributed in the hope that it will be useful, but
5047 # WITHOUT ANY WARRANTY; without even the implied warranty of
5048 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5049 # General Public License for more details.
5051 # You should have received a copy of the GNU General Public License
5052 # along with this program; if not, write to the Free Software
5053 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5055 # As a special exception to the GNU General Public License, if you
5056 # distribute this file as part of a program that contains a
5057 # configuration script generated by Autoconf, you may include it under
5058 # the same distribution terms that you use for the rest of that program.
5060 # A sed that does not truncate output.
5063 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
5064 Xsed="${SED} -e s/^X//"
5066 # The HP-UX ksh and POSIX shell print the target directory to stdout
5068 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
5070 # ### BEGIN LIBTOOL CONFIG
5072 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5074 # Shell to use when invoking shell scripts.
5077 # Whether or not to build shared libraries.
5078 build_libtool_libs=$enable_shared
5080 # Whether or not to build static libraries.
5081 build_old_libs=$enable_static
5083 # Whether or not to add -lc for building shared libraries.
5084 build_libtool_need_lc=$need_lc
5086 # Whether or not to optimize for fast installation.
5087 fast_install=$enable_fast_install
5090 host_alias=$host_alias
5093 # An echo program that does not interpret backslashes.
5098 AR_FLAGS=$lt_AR_FLAGS
5100 # The default C compiler.
5103 # Is the compiler the GNU C compiler?
5106 # The linker used to build libraries.
5109 # Whether we need hard or soft links.
5112 # A BSD-compatible nm program.
5115 # A symbol stripping program
5118 # Used to examine libraries when file_magic_cmd begins "file"
5119 MAGIC_CMD=$MAGIC_CMD
5121 # Used on cygwin: DLL creation program.
5124 # Used on cygwin: object dumper.
5127 # Used on cygwin: assembler.
5130 # The name of the directory that contains temporary libtool files.
5133 # How to create reloadable object files.
5134 reload_flag=$lt_reload_flag
5135 reload_cmds=$lt_reload_cmds
5137 # How to pass a linker flag through the compiler.
5140 # Object file suffix (normally "o").
5143 # Old archive suffix (normally "a").
5146 # Executable file suffix (normally "").
5149 # Additional compiler flags for building library objects.
5150 pic_flag=$lt_pic_flag
5153 # Does compiler simultaneously support -c and -o options?
5154 compiler_c_o=$lt_compiler_c_o
5156 # Can we write directly to a .lo ?
5157 compiler_o_lo=$lt_compiler_o_lo
5159 # Must we lock files when doing compilation ?
5160 need_locks=$lt_need_locks
5162 # Do we need the lib prefix for modules?
5163 need_lib_prefix=$need_lib_prefix
5165 # Do we need a version for libraries?
5166 need_version=$need_version
5168 # Whether dlopen is supported.
5169 dlopen_support=$enable_dlopen
5171 # Whether dlopen of programs is supported.
5172 dlopen_self=$enable_dlopen_self
5174 # Whether dlopen of statically linked programs is supported.
5175 dlopen_self_static=$enable_dlopen_self_static
5177 # Compiler flag to prevent dynamic linking.
5178 link_static_flag=$lt_link_static_flag
5180 # Compiler flag to turn off builtin functions.
5181 no_builtin_flag=$lt_no_builtin_flag
5183 # Compiler flag to allow reflexive dlopens.
5184 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
5186 # Compiler flag to generate shared objects directly from archives.
5187 whole_archive_flag_spec=$lt_whole_archive_flag_spec
5189 # Compiler flag to generate thread-safe objects.
5190 thread_safe_flag_spec=$lt_thread_safe_flag_spec
5192 # Library versioning type.
5193 version_type=$version_type
5195 # Format of library name prefix.
5196 libname_spec=$lt_libname_spec
5198 # List of archive names. First name is the real one, the rest are links.
5199 # The last name is the one that the linker finds with -lNAME.
5200 library_names_spec=$lt_library_names_spec
5202 # The coded name of the library, if different from the real name.
5203 soname_spec=$lt_soname_spec
5205 # Commands used to build and install an old-style archive.
5207 old_archive_cmds=$lt_old_archive_cmds
5208 old_postinstall_cmds=$lt_old_postinstall_cmds
5209 old_postuninstall_cmds=$lt_old_postuninstall_cmds
5211 # Create an old-style archive from a shared archive.
5212 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
5214 # Create a temporary old-style archive to link instead of a shared archive.
5215 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
5217 # Commands used to build and install a shared archive.
5218 archive_cmds=$lt_archive_cmds
5219 archive_expsym_cmds=$lt_archive_expsym_cmds
5220 postinstall_cmds=$lt_postinstall_cmds
5221 postuninstall_cmds=$lt_postuninstall_cmds
5223 # Commands to strip libraries.
5224 old_striplib=$lt_old_striplib
5225 striplib=$lt_striplib
5227 # Method to check whether dependent libraries are shared objects.
5228 deplibs_check_method=$lt_deplibs_check_method
5230 # Command to use when deplibs_check_method == file_magic.
5231 file_magic_cmd=$lt_file_magic_cmd
5233 # Flag that allows shared libraries with undefined symbols to be built.
5234 allow_undefined_flag=$lt_allow_undefined_flag
5236 # Flag that forces no undefined symbols.
5237 no_undefined_flag=$lt_no_undefined_flag
5239 # Commands used to finish a libtool library installation in a directory.
5240 finish_cmds=$lt_finish_cmds
5242 # Same as above, but a single script fragment to be evaled but not shown.
5243 finish_eval=$lt_finish_eval
5245 # Take the output of nm and produce a listing of raw symbols and C names.
5246 global_symbol_pipe=$lt_global_symbol_pipe
5248 # Transform the output of nm in a proper C declaration
5249 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
5251 # Transform the output of nm in a C name address pair
5252 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
5254 # This is the shared library runtime path variable.
5255 runpath_var=$runpath_var
5257 # This is the shared library path variable.
5258 shlibpath_var=$shlibpath_var
5260 # Is shlibpath searched before the hard-coded library search path?
5261 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5263 # How to hardcode a shared library path into an executable.
5264 hardcode_action=$hardcode_action
5266 # Whether we should hardcode library paths into libraries.
5267 hardcode_into_libs=$hardcode_into_libs
5269 # Flag to hardcode \$libdir into a binary during linking.
5270 # This must work even if \$libdir does not exist.
5271 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
5273 # Whether we need a single -rpath flag with a separated argument.
5274 hardcode_libdir_separator=$lt_hardcode_libdir_separator
5276 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
5278 hardcode_direct=$hardcode_direct
5280 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5282 hardcode_minus_L=$hardcode_minus_L
5284 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5285 # the resulting binary.
5286 hardcode_shlibpath_var=$hardcode_shlibpath_var
5288 # Variables whose values should be saved in libtool wrapper scripts and
5289 # restored at relink time.
5290 variables_saved_for_relink="$variables_saved_for_relink"
5292 # Whether libtool must link a program against all its dependency libraries.
5293 link_all_deplibs=$link_all_deplibs
5295 # Compile-time system search path for libraries
5296 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5298 # Run-time system search path for libraries
5299 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5301 # Fix the shell variable \$srcfile for the compiler.
5302 fix_srcfile_path="$fix_srcfile_path"
5304 # Set to yes if exported symbols are required.
5305 always_export_symbols=$always_export_symbols
5307 # The commands to list exported symbols.
5308 export_symbols_cmds=$lt_export_symbols_cmds
5310 # The commands to extract the exported symbol list from a shared archive.
5311 extract_expsyms_cmds=$lt_extract_expsyms_cmds
5313 # Symbols that should not be listed in the preloaded symbols.
5314 exclude_expsyms=$lt_exclude_expsyms
5316 # Symbols that must always be exported.
5317 include_expsyms=$lt_include_expsyms
5319 # ### END LIBTOOL CONFIG
5325 cat <<\EOF >> "${ofile}T"
5327 # AIX sometimes has problems with the GCC collect2 program. For some
5328 # reason, if we set the COLLECT_NAMES environment variable, the problems
5329 # vanish in a puff of smoke.
5330 if test "X${COLLECT_NAMES+set}" != Xset; then
5332 export COLLECT_NAMES
5339 cygwin* | mingw* | pw32* | os2*)
5340 cat <<'EOF' >> "${ofile}T"
5341 # This is a source program that is used to create dlls on Windows
5342 # Don't remove nor modify the starting and closing comments
5343 # /* ltdll.c starts here */
5344 # #define WIN32_LEAN_AND_MEAN
5345 # #include <windows.h>
5346 # #undef WIN32_LEAN_AND_MEAN
5347 # #include <stdio.h>
5349 # #ifndef __CYGWIN__
5350 # # ifdef __CYGWIN32__
5351 # # define __CYGWIN__ __CYGWIN32__
5355 # #ifdef __cplusplus
5358 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
5359 # #ifdef __cplusplus
5364 # #include <cygwin/cygwin_dll.h>
5365 # DECLARE_CYGWIN_DLL( DllMain );
5367 # HINSTANCE __hDllInstance_base;
5370 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
5372 # __hDllInstance_base = hInst;
5375 # /* ltdll.c ends here */
5376 # This is a source program that is used to create import libraries
5377 # on Windows for dlls which lack them. Don't remove nor modify the
5378 # starting and closing comments
5379 # /* impgen.c starts here */
5380 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
5382 # This file is part of GNU libtool.
5384 # This program is free software; you can redistribute it and/or modify
5385 # it under the terms of the GNU General Public License as published by
5386 # the Free Software Foundation; either version 2 of the License, or
5387 # (at your option) any later version.
5389 # This program is distributed in the hope that it will be useful,
5390 # but WITHOUT ANY WARRANTY; without even the implied warranty of
5391 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5392 # GNU General Public License for more details.
5394 # You should have received a copy of the GNU General Public License
5395 # along with this program; if not, write to the Free Software
5396 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5399 # #include <stdio.h> /* for printf() */
5400 # #include <unistd.h> /* for open(), lseek(), read() */
5401 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
5402 # #include <string.h> /* for strdup() */
5404 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
5406 # #define O_BINARY 0
5409 # static unsigned int
5410 # pe_get16 (fd, offset)
5414 # unsigned char b[2];
5415 # lseek (fd, offset, SEEK_SET);
5417 # return b[0] + (b[1]<<8);
5420 # static unsigned int
5421 # pe_get32 (fd, offset)
5425 # unsigned char b[4];
5426 # lseek (fd, offset, SEEK_SET);
5428 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5431 # static unsigned int
5435 # unsigned char *b = ptr;
5436 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5445 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
5446 # unsigned long export_rva, export_size, nsections, secptr, expptr;
5447 # unsigned long name_rvas, nexp;
5448 # unsigned char *expdata, *erva;
5449 # char *filename, *dll_name;
5451 # filename = argv[1];
5453 # dll = open(filename, O_RDONLY|O_BINARY);
5457 # dll_name = filename;
5459 # for (i=0; filename[i]; i++)
5460 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
5461 # dll_name = filename + i +1;
5463 # pe_header_offset = pe_get32 (dll, 0x3c);
5464 # opthdr_ofs = pe_header_offset + 4 + 20;
5465 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
5467 # if (num_entries < 1) /* no exports */
5470 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
5471 # export_size = pe_get32 (dll, opthdr_ofs + 100);
5472 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
5473 # secptr = (pe_header_offset + 4 + 20 +
5474 # pe_get16 (dll, pe_header_offset + 4 + 16));
5477 # for (i = 0; i < nsections; i++)
5480 # unsigned long secptr1 = secptr + 40 * i;
5481 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
5482 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
5483 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
5484 # lseek(dll, secptr1, SEEK_SET);
5485 # read(dll, sname, 8);
5486 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
5488 # expptr = fptr + (export_rva - vaddr);
5489 # if (export_rva + export_size > vaddr + vsize)
5490 # export_size = vsize - (export_rva - vaddr);
5495 # expdata = (unsigned char*)malloc(export_size);
5496 # lseek (dll, expptr, SEEK_SET);
5497 # read (dll, expdata, export_size);
5498 # erva = expdata - export_rva;
5500 # nexp = pe_as32 (expdata+24);
5501 # name_rvas = pe_as32 (expdata+32);
5503 # printf ("EXPORTS\n");
5504 # for (i = 0; i<nexp; i++)
5506 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
5507 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
5512 # /* impgen.c ends here */
5518 # We use sed instead of cat because bash on DJGPP gets confused if
5519 # if finds mixed CR/LF and LF-only lines. Since sed operates in
5520 # text mode, it properly converts lines to CR/LF. This bash problem
5521 # is reportedly fixed, but why not run on old versions too?
5522 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
5524 mv -f "${ofile}T" "$ofile" || \
5525 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
5533 # This can be used to rebuild libtool when needed
5534 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
5536 # Always use our own libtool.
5537 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5539 # Prevent multiple expansion
5542 for ac_prog in gzip uncompress compress
5544 # Extract the first word of "$ac_prog", so it can be a program name with args.
5545 set dummy $ac_prog; ac_word=$2
5546 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5547 echo "configure:5548: checking for $ac_word" >&5
5548 if eval "test \"`echo '$''{'ac_cv_prog_UNCOMPRESS'+set}'`\" = set"; then
5549 echo $ac_n "(cached) $ac_c" 1>&6
5551 if test -n "$UNCOMPRESS"; then
5552 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
5554 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5556 for ac_dir in $ac_dummy; do
5557 test -z "$ac_dir" && ac_dir=.
5558 if test -f $ac_dir/$ac_word; then
5559 ac_cv_prog_UNCOMPRESS="$ac_prog"
5566 UNCOMPRESS="$ac_cv_prog_UNCOMPRESS"
5567 if test -n "$UNCOMPRESS"; then
5568 echo "$ac_t""$UNCOMPRESS" 1>&6
5570 echo "$ac_t""no" 1>&6
5573 test -n "$UNCOMPRESS" && break
5579 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
5580 echo "configure:5581: checking for executable suffix" >&5
5581 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
5582 echo $ac_n "(cached) $ac_c" 1>&6
5584 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
5588 echo 'int main () { return 0; }' > conftest.$ac_ext
5590 if { (eval echo configure:5591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
5591 for file in conftest.*; do
5593 *.c | *.o | *.obj) ;;
5594 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
5598 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
5601 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
5606 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
5607 echo "$ac_t""${ac_cv_exeext}" 1>&6
5613 # Make sure we can run config.sub.
5614 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
5615 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
5618 echo $ac_n "checking host system type""... $ac_c" 1>&6
5619 echo "configure:5620: checking host system type" >&5
5622 case "$host_alias" in
5626 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
5627 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
5629 *) host_alias=$nonopt ;;
5633 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
5634 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5635 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5636 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5637 echo "$ac_t""$host" 1>&6
5641 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
5642 echo "configure:5643: checking for executable suffix" >&5
5643 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
5644 echo $ac_n "(cached) $ac_c" 1>&6
5646 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
5650 echo 'int main () { return 0; }' > conftest.$ac_ext
5652 if { (eval echo configure:5653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
5653 for file in conftest.*; do
5655 *.c | *.o | *.obj) ;;
5656 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
5660 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
5663 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
5668 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
5669 echo "$ac_t""${ac_cv_exeext}" 1>&6
5673 echo $ac_n "checking for target system""... $ac_c" 1>&6
5674 echo "configure:5675: checking for target system" >&5
5678 *cygwin* ) CYGWIN=yes;;
5679 *mingw* ) MINGW=yes;;
5683 if test "x$MINGW" = "xyes"; then
5684 #fix for the debian distribution of mingw
5685 if test -x "/usr/i586-mingw32msvc/bin/ar";then
5686 AR="/usr/i586-mingw32msvc/bin/ar"
5688 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
5689 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
5691 #fix for the gentoo distribution of mingw
5692 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
5693 AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
5695 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
5696 RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
5698 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
5699 STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
5705 if test "x${CYGWIN}" = "xyes"; then
5706 cat >> confdefs.h <<EOF
5710 echo "$ac_t""cygwin" 1>&6
5712 if test "x${MINGW}" = "xyes"; then
5713 cat >> confdefs.h <<EOF
5718 cat >> confdefs.h <<EOF
5722 LIBS="$LIBS -lws2_32"
5723 echo "$ac_t""mingw" 1>&6
5727 cat >> confdefs.h <<EOF
5736 if test "x${MINGW}" != "xyes"; then
5737 cat >> confdefs.h <<EOF
5742 # The following tries to make use of includes and libraries in
5743 # /usr/local, too. Notice: A -I/usr/local/include might break
5744 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
5745 # especially on systems which link /usr/local to /usr, so it has yet
5746 # to be seen how useful this is.
5747 if test -d /usr/local/lib; then
5748 LDFLAGS="$LDFLAGS -L/usr/local/lib"
5750 if test -d /usr/local/include; then
5751 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
5752 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
5755 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
5756 # if the user has a special prefix (like /opt), there might also be $prefix/lib
5757 # and $prefix/include, which should be included in our search paths for libraries
5759 LDFLAGS="$LDFLAGS -L${libdir}"
5760 CPPFLAGS="$CPPFLAGS -I${includedir}"
5761 # TODO- test whether gcc still works after this
5764 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
5765 echo "configure:5766: checking for sin in -lm" >&5
5766 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
5767 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5768 echo $ac_n "(cached) $ac_c" 1>&6
5770 ac_save_LIBS="$LIBS"
5772 cat > conftest.$ac_ext <<EOF
5773 #line 5774 "configure"
5774 #include "confdefs.h"
5775 /* Override any gcc2 internal prototype to avoid an error. */
5776 /* We use char because int might match the return type of a gcc2
5777 builtin and then its argument prototype would still apply. */
5784 if { (eval echo configure:5785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5786 eval "ac_cv_lib_$ac_lib_var=yes"
5788 echo "configure: failed program was:" >&5
5789 cat conftest.$ac_ext >&5
5791 eval "ac_cv_lib_$ac_lib_var=no"
5794 LIBS="$ac_save_LIBS"
5797 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5798 echo "$ac_t""yes" 1>&6
5799 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5800 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5801 cat >> confdefs.h <<EOF
5802 #define $ac_tr_lib 1
5808 echo "$ac_t""no" 1>&6
5809 echo "Error: Math library not found.";
5814 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
5815 echo "configure:5816: checking for deflate in -lz" >&5
5816 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
5817 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5818 echo $ac_n "(cached) $ac_c" 1>&6
5820 ac_save_LIBS="$LIBS"
5822 cat > conftest.$ac_ext <<EOF
5823 #line 5824 "configure"
5824 #include "confdefs.h"
5825 /* Override any gcc2 internal prototype to avoid an error. */
5826 /* We use char because int might match the return type of a gcc2
5827 builtin and then its argument prototype would still apply. */
5834 if { (eval echo configure:5835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5836 eval "ac_cv_lib_$ac_lib_var=yes"
5838 echo "configure: failed program was:" >&5
5839 cat conftest.$ac_ext >&5
5841 eval "ac_cv_lib_$ac_lib_var=no"
5844 LIBS="$ac_save_LIBS"
5847 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5848 echo "$ac_t""yes" 1>&6
5849 ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5850 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5851 cat >> confdefs.h <<EOF
5852 #define $ac_tr_lib 1
5858 echo "$ac_t""no" 1>&6
5859 DISABLEPNG2SWF=true;
5860 MISSINGLIBS="${MISSINGLIBS} zlib"
5865 echo $ac_n "checking for jpeg_write_raw_data in -ljpeg""... $ac_c" 1>&6
5866 echo "configure:5867: checking for jpeg_write_raw_data in -ljpeg" >&5
5867 ac_lib_var=`echo jpeg'_'jpeg_write_raw_data | sed 'y%./+-%__p_%'`
5868 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5869 echo $ac_n "(cached) $ac_c" 1>&6
5871 ac_save_LIBS="$LIBS"
5873 cat > conftest.$ac_ext <<EOF
5874 #line 5875 "configure"
5875 #include "confdefs.h"
5876 /* Override any gcc2 internal prototype to avoid an error. */
5877 /* We use char because int might match the return type of a gcc2
5878 builtin and then its argument prototype would still apply. */
5879 char jpeg_write_raw_data();
5882 jpeg_write_raw_data()
5885 if { (eval echo configure:5886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5887 eval "ac_cv_lib_$ac_lib_var=yes"
5889 echo "configure: failed program was:" >&5
5890 cat conftest.$ac_ext >&5
5892 eval "ac_cv_lib_$ac_lib_var=no"
5895 LIBS="$ac_save_LIBS"
5898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5899 echo "$ac_t""yes" 1>&6
5900 ac_tr_lib=HAVE_LIB`echo jpeg | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5901 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5902 cat >> confdefs.h <<EOF
5903 #define $ac_tr_lib 1
5909 echo "$ac_t""no" 1>&6
5910 DISABLEPDF2SWF=true;
5911 DISABLEJPEG2SWF=true;
5912 MISSINGLIBS="${MISSINGLIBS} jpeglib"
5916 echo $ac_n "checking for T1_LoadFont in -lt1""... $ac_c" 1>&6
5917 echo "configure:5918: checking for T1_LoadFont in -lt1" >&5
5918 ac_lib_var=`echo t1'_'T1_LoadFont | sed 'y%./+-%__p_%'`
5919 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5920 echo $ac_n "(cached) $ac_c" 1>&6
5922 ac_save_LIBS="$LIBS"
5924 cat > conftest.$ac_ext <<EOF
5925 #line 5926 "configure"
5926 #include "confdefs.h"
5927 /* Override any gcc2 internal prototype to avoid an error. */
5928 /* We use char because int might match the return type of a gcc2
5929 builtin and then its argument prototype would still apply. */
5936 if { (eval echo configure:5937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5938 eval "ac_cv_lib_$ac_lib_var=yes"
5940 echo "configure: failed program was:" >&5
5941 cat conftest.$ac_ext >&5
5943 eval "ac_cv_lib_$ac_lib_var=no"
5946 LIBS="$ac_save_LIBS"
5949 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5950 echo "$ac_t""yes" 1>&6
5951 ac_tr_lib=HAVE_LIB`echo t1 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5952 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5953 cat >> confdefs.h <<EOF
5954 #define $ac_tr_lib 1
5960 echo "$ac_t""no" 1>&6
5961 DISABLEPDF2SWF=true;
5962 MISSINGLIBS="${MISSINGLIBS} t1lib"
5968 for ac_prog in freetype-config
5970 # Extract the first word of "$ac_prog", so it can be a program name with args.
5971 set dummy $ac_prog; ac_word=$2
5972 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5973 echo "configure:5974: checking for $ac_word" >&5
5974 if eval "test \"`echo '$''{'ac_cv_prog_FREETYPE_CONFIG'+set}'`\" = set"; then
5975 echo $ac_n "(cached) $ac_c" 1>&6
5977 if test -n "$FREETYPE_CONFIG"; then
5978 ac_cv_prog_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test.
5980 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5982 for ac_dir in $ac_dummy; do
5983 test -z "$ac_dir" && ac_dir=.
5984 if test -f $ac_dir/$ac_word; then
5985 ac_cv_prog_FREETYPE_CONFIG="$ac_prog"
5992 FREETYPE_CONFIG="$ac_cv_prog_FREETYPE_CONFIG"
5993 if test -n "$FREETYPE_CONFIG"; then
5994 echo "$ac_t""$FREETYPE_CONFIG" 1>&6
5996 echo "$ac_t""no" 1>&6
5999 test -n "$FREETYPE_CONFIG" && break
6002 OLDCPPFLAGS="${CPPFLAGS}"
6004 if test "x${FREETYPE_CONFIG}" != "x"; then
6005 CPPFLAGS="$CFLAGS "`freetype-config --cflags`
6006 else if test -d /usr/include/freetype2; then
6007 CPPFLAGS="$CFLAGS -I/usr/include/freetype2"
6008 else if test -d /usr/local/include/freetype2; then
6009 CPPFLAGS="$CFLAGS -I/usr/local/include/freetype2"
6013 echo $ac_n "checking for FT_Init_FreeType in -lfreetype""... $ac_c" 1>&6
6014 echo "configure:6015: checking for FT_Init_FreeType in -lfreetype" >&5
6015 ac_lib_var=`echo freetype'_'FT_Init_FreeType | sed 'y%./+-%__p_%'`
6016 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6017 echo $ac_n "(cached) $ac_c" 1>&6
6019 ac_save_LIBS="$LIBS"
6020 LIBS="-lfreetype $LIBS"
6021 cat > conftest.$ac_ext <<EOF
6022 #line 6023 "configure"
6023 #include "confdefs.h"
6024 /* Override any gcc2 internal prototype to avoid an error. */
6025 /* We use char because int might match the return type of a gcc2
6026 builtin and then its argument prototype would still apply. */
6027 char FT_Init_FreeType();
6033 if { (eval echo configure:6034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6035 eval "ac_cv_lib_$ac_lib_var=yes"
6037 echo "configure: failed program was:" >&5
6038 cat conftest.$ac_ext >&5
6040 eval "ac_cv_lib_$ac_lib_var=no"
6043 LIBS="$ac_save_LIBS"
6046 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6047 echo "$ac_t""yes" 1>&6
6050 echo "$ac_t""no" 1>&6
6053 for ac_hdr in freetype/freetype.h
6055 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6056 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6057 echo "configure:6058: checking for $ac_hdr" >&5
6058 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6059 echo $ac_n "(cached) $ac_c" 1>&6
6061 cat > conftest.$ac_ext <<EOF
6062 #line 6063 "configure"
6063 #include "confdefs.h"
6066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6067 { (eval echo configure:6068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6068 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6069 if test -z "$ac_err"; then
6071 eval "ac_cv_header_$ac_safe=yes"
6074 echo "configure: failed program was:" >&5
6075 cat conftest.$ac_ext >&5
6077 eval "ac_cv_header_$ac_safe=no"
6081 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6082 echo "$ac_t""yes" 1>&6
6083 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6084 cat >> confdefs.h <<EOF
6085 #define $ac_tr_hdr 1
6087 HAVE_FREETYPE_FREETYPE_H=1
6089 echo "$ac_t""no" 1>&6
6093 if test "x${HAVE_LIB_FREETYPE}" != "x";then
6094 if test "x${HAVE_FREETYPE_FREETYPE_H}" != "x";then
6098 if test "x${HAVE_FREETYPE}" != "x"; then
6099 if test "x{$FREETYPE_CONFIG}" != "x"; then
6100 LIBS="$LIBS "`freetype-config --libs`
6102 LIBS="$LIBS -lfreetype"
6104 cat >> confdefs.h <<EOF
6105 #define HAVE_FREETYPE 1
6108 cat >> confdefs.h <<EOF
6109 #define USE_FREETYPE 1
6113 CPPFLAGS=${OLDCPPFLAGS}
6120 echo $ac_n "checking for byte order""... $ac_c" 1>&6
6121 echo "configure:6122: checking for byte order" >&5
6122 if test "$cross_compiling" = yes; then
6125 cat > conftest.$ac_ext <<EOF
6126 #line 6127 "configure"
6127 #include "confdefs.h"
6129 int main (int argc, char *argv[])
6136 if { (eval echo configure:6137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6140 echo "configure: failed program was:" >&5
6141 cat conftest.$ac_ext >&5
6150 if test "x${CROSSCOMPILE}" = "x1"; then
6151 echo "$ac_t""we are cross compiling- trying to guess from system type" 1>&6
6153 # Do some error checking and defaulting for the host and target type.
6155 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
6158 # 1. You are not allowed to specify --host, --target, and nonopt at the
6160 # 2. Host defaults to nonopt.
6161 # 3. If nonopt is not specified, then host defaults to the current host,
6162 # as determined by config.guess.
6163 # 4. Target and build default to nonopt.
6164 # 5. If nonopt is not specified, then target and build default to host.
6166 # The aliases save the names the user supplied, while $host etc.
6167 # will get canonicalized.
6168 case $host---$target---$nonopt in
6169 NONE---*---* | *---NONE---* | *---*---NONE) ;;
6170 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
6174 # Make sure we can run config.sub.
6175 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
6176 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
6179 echo $ac_n "checking host system type""... $ac_c" 1>&6
6180 echo "configure:6181: checking host system type" >&5
6183 case "$host_alias" in
6187 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
6188 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
6190 *) host_alias=$nonopt ;;
6194 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
6195 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6196 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6197 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6198 echo "$ac_t""$host" 1>&6
6200 echo $ac_n "checking target system type""... $ac_c" 1>&6
6201 echo "configure:6202: checking target system type" >&5
6203 target_alias=$target
6204 case "$target_alias" in
6207 NONE) target_alias=$host_alias ;;
6208 *) target_alias=$nonopt ;;
6212 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
6213 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6214 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6215 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6216 echo "$ac_t""$target" 1>&6
6218 echo $ac_n "checking build system type""... $ac_c" 1>&6
6219 echo "configure:6220: checking build system type" >&5
6222 case "$build_alias" in
6225 NONE) build_alias=$host_alias ;;
6226 *) build_alias=$nonopt ;;
6230 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
6231 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6232 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6233 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6234 echo "$ac_t""$build" 1>&6
6236 test "$host_alias" != "$target_alias" &&
6237 test "$program_prefix$program_suffix$program_transform_name" = \
6239 program_prefix=${target_alias}-
6241 echo $ac_n "checking for byte order, try 2""... $ac_c" 1>&6
6242 echo "configure:6243: checking for byte order, try 2" >&5
6247 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
6254 if test "x${LITTLEENDIAN}" = "x1"; then
6255 echo "$ac_t""little endian" 1>&6
6259 if test "x${BIGENDIAN}" = "x1"; then
6260 echo "$ac_t""big endian" 1>&6
6263 export WORDS_BIGENDIAN
6264 cat >> confdefs.h <<EOF
6265 #define WORDS_BIGENDIAN 1
6269 if test "x${BYTEORDERCHECKOK}" != "x1"; then
6270 echo "$ac_t""unknown" 1>&6
6271 echo Byte order could not determined.
6277 echo $ac_n "checking whether system() can handle command substitution""... $ac_c" 1>&6
6278 echo "configure:6279: checking whether system() can handle command substitution" >&5
6279 if test "$cross_compiling" = yes; then
6282 cat > conftest.$ac_ext <<EOF
6283 #line 6284 "configure"
6284 #include "confdefs.h"
6287 int main (int argc, char*argv[])
6289 return system("test `touch config.tmp2`");
6293 if { (eval echo configure:6294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6297 echo "configure: failed program was:" >&5
6298 cat conftest.$ac_ext >&5
6304 if test "x${OK}" = "xOK";then
6305 test -f config.tmp2 || OK=
6308 if test "x${CROSSCOMPILE}" = "x1";then
6311 if test "x${OK}" = "xOK";then
6313 echo "$ac_t""yes" 1>&6
6315 export SYSTEM_BACKTICKS
6316 cat >> confdefs.h <<EOF
6317 #define SYSTEM_BACKTICKS 1
6321 echo "$ac_t""no" 1>&6
6326 if test "$program_transform_name" = s,x,x,; then
6327 program_transform_name=
6329 # Double any \ or $. echo might interpret backslashes.
6330 cat <<\EOF_SED > conftestsed
6331 s,\\,\\\\,g; s,\$,$$,g
6333 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
6336 test "$program_prefix" != NONE &&
6337 program_transform_name="s,^,${program_prefix},; $program_transform_name"
6338 # Use a double $ so make ignores it.
6339 test "$program_suffix" != NONE &&
6340 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
6342 # sed with no file args requires a program.
6343 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
6348 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
6350 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6351 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
6352 echo "configure:6353: checking for $ac_hdr that defines DIR" >&5
6353 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
6354 echo $ac_n "(cached) $ac_c" 1>&6
6356 cat > conftest.$ac_ext <<EOF
6357 #line 6358 "configure"
6358 #include "confdefs.h"
6359 #include <sys/types.h>
6365 if { (eval echo configure:6366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6367 eval "ac_cv_header_dirent_$ac_safe=yes"
6369 echo "configure: failed program was:" >&5
6370 cat conftest.$ac_ext >&5
6372 eval "ac_cv_header_dirent_$ac_safe=no"
6376 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
6377 echo "$ac_t""yes" 1>&6
6378 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6379 cat >> confdefs.h <<EOF
6380 #define $ac_tr_hdr 1
6382 ac_header_dirent=$ac_hdr; break
6384 echo "$ac_t""no" 1>&6
6387 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6388 if test $ac_header_dirent = dirent.h; then
6389 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
6390 echo "configure:6391: checking for opendir in -ldir" >&5
6391 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
6392 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6393 echo $ac_n "(cached) $ac_c" 1>&6
6395 ac_save_LIBS="$LIBS"
6397 cat > conftest.$ac_ext <<EOF
6398 #line 6399 "configure"
6399 #include "confdefs.h"
6400 /* Override any gcc2 internal prototype to avoid an error. */
6401 /* We use char because int might match the return type of a gcc2
6402 builtin and then its argument prototype would still apply. */
6409 if { (eval echo configure:6410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6411 eval "ac_cv_lib_$ac_lib_var=yes"
6413 echo "configure: failed program was:" >&5
6414 cat conftest.$ac_ext >&5
6416 eval "ac_cv_lib_$ac_lib_var=no"
6419 LIBS="$ac_save_LIBS"
6422 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6423 echo "$ac_t""yes" 1>&6
6426 echo "$ac_t""no" 1>&6
6430 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
6431 echo "configure:6432: checking for opendir in -lx" >&5
6432 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
6433 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6434 echo $ac_n "(cached) $ac_c" 1>&6
6436 ac_save_LIBS="$LIBS"
6438 cat > conftest.$ac_ext <<EOF
6439 #line 6440 "configure"
6440 #include "confdefs.h"
6441 /* Override any gcc2 internal prototype to avoid an error. */
6442 /* We use char because int might match the return type of a gcc2
6443 builtin and then its argument prototype would still apply. */
6450 if { (eval echo configure:6451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6452 eval "ac_cv_lib_$ac_lib_var=yes"
6454 echo "configure: failed program was:" >&5
6455 cat conftest.$ac_ext >&5
6457 eval "ac_cv_lib_$ac_lib_var=no"
6460 LIBS="$ac_save_LIBS"
6463 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6464 echo "$ac_t""yes" 1>&6
6467 echo "$ac_t""no" 1>&6
6472 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
6473 echo "configure:6474: checking for ANSI C header files" >&5
6474 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
6475 echo $ac_n "(cached) $ac_c" 1>&6
6477 cat > conftest.$ac_ext <<EOF
6478 #line 6479 "configure"
6479 #include "confdefs.h"
6485 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6486 { (eval echo configure:6487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6487 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6488 if test -z "$ac_err"; then
6490 ac_cv_header_stdc=yes
6493 echo "configure: failed program was:" >&5
6494 cat conftest.$ac_ext >&5
6496 ac_cv_header_stdc=no
6500 if test $ac_cv_header_stdc = yes; then
6501 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6502 cat > conftest.$ac_ext <<EOF
6503 #line 6504 "configure"
6504 #include "confdefs.h"
6507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6508 egrep "memchr" >/dev/null 2>&1; then
6512 ac_cv_header_stdc=no
6518 if test $ac_cv_header_stdc = yes; then
6519 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6520 cat > conftest.$ac_ext <<EOF
6521 #line 6522 "configure"
6522 #include "confdefs.h"
6525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6526 egrep "free" >/dev/null 2>&1; then
6530 ac_cv_header_stdc=no
6536 if test $ac_cv_header_stdc = yes; then
6537 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6538 if test "$cross_compiling" = yes; then
6541 cat > conftest.$ac_ext <<EOF
6542 #line 6543 "configure"
6543 #include "confdefs.h"
6545 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6546 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6547 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6548 int main () { int i; for (i = 0; i < 256; i++)
6549 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6553 if { (eval echo configure:6554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6557 echo "configure: failed program was:" >&5
6558 cat conftest.$ac_ext >&5
6560 ac_cv_header_stdc=no
6568 echo "$ac_t""$ac_cv_header_stdc" 1>&6
6569 if test $ac_cv_header_stdc = yes; then
6570 cat >> confdefs.h <<\EOF
6571 #define STDC_HEADERS 1
6576 for ac_hdr in zlib.h jpeglib.h t1lib.h assert.h signal.h pthread.h sys/stat.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h
6578 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6579 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6580 echo "configure:6581: checking for $ac_hdr" >&5
6581 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6582 echo $ac_n "(cached) $ac_c" 1>&6
6584 cat > conftest.$ac_ext <<EOF
6585 #line 6586 "configure"
6586 #include "confdefs.h"
6589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6590 { (eval echo configure:6591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6591 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6592 if test -z "$ac_err"; then
6594 eval "ac_cv_header_$ac_safe=yes"
6597 echo "configure: failed program was:" >&5
6598 cat conftest.$ac_ext >&5
6600 eval "ac_cv_header_$ac_safe=no"
6604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6605 echo "$ac_t""yes" 1>&6
6606 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6607 cat >> confdefs.h <<EOF
6608 #define $ac_tr_hdr 1
6612 echo "$ac_t""no" 1>&6
6617 if test "x${ac_cv_header_jpeglib_h}" != "xyes"; then
6618 DISABLEPDF2SWF=true;
6619 DISABLEJPEG2SWF=true;
6620 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
6622 if test "x${ac_cv_header_t1lib_h}" != "xyes"; then
6623 DISABLEPDF2SWF=true;
6624 MISSINGLIBS="${MISSINGLIBS} t1lib.h"
6626 if test "x${ac_cv_header_zlib_h}" != "xyes"; then
6627 DISABLEPNG2SWF=true;
6628 MISSINGLIBS="${MISSINGLIBS} zlib.h"
6632 cat >> confdefs.h <<EOF
6633 #define PACKAGE "$PACKAGE"
6636 cat >> confdefs.h <<EOF
6637 #define VERSION "$VERSION"
6646 echo $ac_n "checking for working const""... $ac_c" 1>&6
6647 echo "configure:6648: checking for working const" >&5
6648 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6649 echo $ac_n "(cached) $ac_c" 1>&6
6651 cat > conftest.$ac_ext <<EOF
6652 #line 6653 "configure"
6653 #include "confdefs.h"
6657 /* Ultrix mips cc rejects this. */
6658 typedef int charset[2]; const charset x;
6659 /* SunOS 4.1.1 cc rejects this. */
6660 char const *const *ccp;
6662 /* NEC SVR4.0.2 mips cc rejects this. */
6663 struct point {int x, y;};
6664 static struct point const zero = {0,0};
6665 /* AIX XL C 1.02.0.0 rejects this.
6666 It does not let you subtract one const X* pointer from another in an arm
6667 of an if-expression whose if-part is not a constant expression */
6668 const char *g = "string";
6669 ccp = &g + (g ? g-g : 0);
6670 /* HPUX 7.0 cc rejects these. */
6673 ccp = (char const *const *) p;
6674 { /* SCO 3.2v4 cc rejects this. */
6676 char const *s = 0 ? (char *) 0 : (char const *) 0;
6680 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6682 const int *foo = &x[0];
6685 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6686 typedef const int *iptr;
6690 { /* AIX XL C 1.02.0.0 rejects this saying
6691 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6692 struct s { int j; const int *ap[3]; };
6693 struct s *b; b->j = 5;
6695 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6701 if { (eval echo configure:6702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6705 echo "configure: failed program was:" >&5
6706 cat conftest.$ac_ext >&5
6713 echo "$ac_t""$ac_cv_c_const" 1>&6
6714 if test $ac_cv_c_const = no; then
6715 cat >> confdefs.h <<\EOF
6721 echo $ac_n "checking for inline""... $ac_c" 1>&6
6722 echo "configure:6723: checking for inline" >&5
6723 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6724 echo $ac_n "(cached) $ac_c" 1>&6
6727 for ac_kw in inline __inline__ __inline; do
6728 cat > conftest.$ac_ext <<EOF
6729 #line 6730 "configure"
6730 #include "confdefs.h"
6736 if { (eval echo configure:6737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6738 ac_cv_c_inline=$ac_kw; break
6740 echo "configure: failed program was:" >&5
6741 cat conftest.$ac_ext >&5
6748 echo "$ac_t""$ac_cv_c_inline" 1>&6
6749 case "$ac_cv_c_inline" in
6751 no) cat >> confdefs.h <<\EOF
6755 *) cat >> confdefs.h <<EOF
6756 #define inline $ac_cv_c_inline
6761 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6762 echo "configure:6763: checking for off_t" >&5
6763 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6764 echo $ac_n "(cached) $ac_c" 1>&6
6766 cat > conftest.$ac_ext <<EOF
6767 #line 6768 "configure"
6768 #include "confdefs.h"
6769 #include <sys/types.h>
6775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6776 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6778 ac_cv_type_off_t=yes
6786 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6787 if test $ac_cv_type_off_t = no; then
6788 cat >> confdefs.h <<\EOF
6794 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6795 echo "configure:6796: checking for size_t" >&5
6796 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6797 echo $ac_n "(cached) $ac_c" 1>&6
6799 cat > conftest.$ac_ext <<EOF
6800 #line 6801 "configure"
6801 #include "confdefs.h"
6802 #include <sys/types.h>
6808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6809 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6811 ac_cv_type_size_t=yes
6814 ac_cv_type_size_t=no
6819 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6820 if test $ac_cv_type_size_t = no; then
6821 cat >> confdefs.h <<\EOF
6822 #define size_t unsigned
6827 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
6828 echo "configure:6829: checking whether struct tm is in sys/time.h or time.h" >&5
6829 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
6830 echo $ac_n "(cached) $ac_c" 1>&6
6832 cat > conftest.$ac_ext <<EOF
6833 #line 6834 "configure"
6834 #include "confdefs.h"
6835 #include <sys/types.h>
6838 struct tm *tp; tp->tm_sec;
6841 if { (eval echo configure:6842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6843 ac_cv_struct_tm=time.h
6845 echo "configure: failed program was:" >&5
6846 cat conftest.$ac_ext >&5
6848 ac_cv_struct_tm=sys/time.h
6853 echo "$ac_t""$ac_cv_struct_tm" 1>&6
6854 if test $ac_cv_struct_tm = sys/time.h; then
6855 cat >> confdefs.h <<\EOF
6856 #define TM_IN_SYS_TIME 1
6861 echo $ac_n "checking for boolean""... $ac_c" 1>&6
6862 echo "configure:6863: checking for boolean" >&5
6863 if eval "test \"`echo '$''{'ac_cv_type_boolean'+set}'`\" = set"; then
6864 echo $ac_n "(cached) $ac_c" 1>&6
6866 cat > conftest.$ac_ext <<EOF
6867 #line 6868 "configure"
6868 #include "confdefs.h"
6869 #include <sys/types.h>
6875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6876 egrep "(^|[^a-zA-Z_0-9])boolean[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6878 ac_cv_type_boolean=yes
6881 ac_cv_type_boolean=no
6886 echo "$ac_t""$ac_cv_type_boolean" 1>&6
6887 if test $ac_cv_type_boolean = no; then
6888 cat >> confdefs.h <<\EOF
6894 echo $ac_n "checking for bool""... $ac_c" 1>&6
6895 echo "configure:6896: checking for bool" >&5
6896 if eval "test \"`echo '$''{'ac_cv_type_bool'+set}'`\" = set"; then
6897 echo $ac_n "(cached) $ac_c" 1>&6
6899 cat > conftest.$ac_ext <<EOF
6900 #line 6901 "configure"
6901 #include "confdefs.h"
6902 #include <sys/types.h>
6908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6909 egrep "(^|[^a-zA-Z_0-9])bool[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6919 echo "$ac_t""$ac_cv_type_bool" 1>&6
6920 if test $ac_cv_type_bool = no; then
6921 cat >> confdefs.h <<\EOF
6928 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero
6930 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6931 echo "configure:6932: checking for $ac_func" >&5
6932 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6933 echo $ac_n "(cached) $ac_c" 1>&6
6935 cat > conftest.$ac_ext <<EOF
6936 #line 6937 "configure"
6937 #include "confdefs.h"
6938 /* System header to define __stub macros and hopefully few prototypes,
6939 which can conflict with char $ac_func(); below. */
6941 /* Override any gcc2 internal prototype to avoid an error. */
6942 /* We use char because int might match the return type of a gcc2
6943 builtin and then its argument prototype would still apply. */
6948 /* The GNU C library defines this for functions which it implements
6949 to always fail with ENOSYS. Some functions are actually named
6950 something starting with __ and the normal name is an alias. */
6951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6959 if { (eval echo configure:6960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6961 eval "ac_cv_func_$ac_func=yes"
6963 echo "configure: failed program was:" >&5
6964 cat conftest.$ac_ext >&5
6966 eval "ac_cv_func_$ac_func=no"
6971 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6972 echo "$ac_t""yes" 1>&6
6973 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6974 cat >> confdefs.h <<EOF
6975 #define $ac_tr_func 1
6979 echo "$ac_t""no" 1>&6
6984 for ac_prog in avifile-config
6986 # Extract the first word of "$ac_prog", so it can be a program name with args.
6987 set dummy $ac_prog; ac_word=$2
6988 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6989 echo "configure:6990: checking for $ac_word" >&5
6990 if eval "test \"`echo '$''{'ac_cv_prog_AVIFILE_CONFIG'+set}'`\" = set"; then
6991 echo $ac_n "(cached) $ac_c" 1>&6
6993 if test -n "$AVIFILE_CONFIG"; then
6994 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
6996 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6998 for ac_dir in $ac_dummy; do
6999 test -z "$ac_dir" && ac_dir=.
7000 if test -f $ac_dir/$ac_word; then
7001 ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
7008 AVIFILE_CONFIG="$ac_cv_prog_AVIFILE_CONFIG"
7009 if test -n "$AVIFILE_CONFIG"; then
7010 echo "$ac_t""$AVIFILE_CONFIG" 1>&6
7012 echo "$ac_t""no" 1>&6
7015 test -n "$AVIFILE_CONFIG" && break
7018 echo $ac_n "checking whether we can compile the avifile test program""... $ac_c" 1>&6
7019 echo "configure:7020: checking whether we can compile the avifile test program" >&5
7021 cat > conftest.cpp << EOF
7022 #include <avifile/version.h>
7023 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
7024 #include <avifile.h>
7025 #include <aviplay.h>
7027 #include <creators.h>
7028 #include <StreamInfo.h>
7031 #include <avifile.h>
7032 #include <aviplay.h>
7033 #include <aviutil.h>
7035 #define Height height
7042 IAviReadFile* player;
7043 IAviReadStream* astream;
7044 IAviReadStream* vstream;
7045 player = CreateIAviReadFile(0);
7046 astream = player->GetStream(0, AviStream::Audio);
7047 vstream = player->GetStream(0, AviStream::Video);
7048 vstream -> StartStreaming();
7049 astream -> StartStreaming();
7052 player->GetFileHeader(&head);
7053 head.dwMicroSecPerFrame;
7058 head.dwMicroSecPerFrame;
7059 astream->GetEndPos(),
7060 astream->GetEndTime());
7061 player->StreamCount();
7063 StreamInfo*audioinfo;
7064 StreamInfo*videoinfo;
7065 audioinfo = astream->GetStreamInfo();
7066 videoinfo = vstream->GetStreamInfo();
7067 videoinfo->GetVideoWidth();
7068 videoinfo->GetVideoHeight();
7069 audioinfo->GetAudioSamplesPerSec();
7070 videoinfo->GetFps();
7072 CImage*img = vstream->GetFrame();
7079 astream->GetAudioFormatInfo(&wave,0);
7081 astream->ReadFrames(0,0,0,a,b);
7083 int main (int argc, char*argv)
7089 if test "x$AVIFILE_CONFIG" '!=' "x";then
7090 ac_link='$CXX $CPPFLAGS $CXXFLAGS `$AVIFILE_CONFIG --cflags` `$AVIFILE_CONFIG --libs` conftest.cpp -o conftest${ac_exeext}'
7091 if { (eval echo avi2swf.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
7092 echo "$ac_t""yes" 1>&6
7095 cat >> confdefs.h <<EOF
7096 #define AVIFILE true
7100 echo "configure: failed program was:" >&5
7101 cat conftest.cpp >&5
7102 echo "$ac_t""no" 1>&6
7105 echo "$ac_t""no" 1>&6
7110 avi2swf="avi2swf/Makefile"
7111 if test "x${AVIFILE}" != "xtrue"; then
7112 echo "* Couldn't compile the avifile test program."
7113 echo "* Disabling avi2swf tool..."
7114 echo all install uninstall clean: > avi2swf/Makefile
7118 if test "x${DISABLE_LAME}" = "xtrue"; then
7119 echo "*" Disabling lame support...
7122 cat >> confdefs.h <<EOF
7126 lame_objects='$(lame_objects_2)'
7130 if test "x${UNCOMPRESS}" = "xgzip"; then
7131 cat >> confdefs.h <<EOF
7138 JPEG2SWF='jpeg2swf$(E)'
7140 PNG2SWF='png2swf$(E)'
7142 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
7143 echo "***************************************************"
7144 echo "The following headers/libraries are missing: " ${MISSINGLIBS}
7145 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
7146 echo "Disabling pdf2swf tool..."
7147 rm -f pdf2swf/Makefile
7148 echo all install uninstall clean: > pdf2swf/Makefile
7150 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
7151 echo "Disabling jpeg2swf tool..."
7155 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
7156 echo "Disabling png2swf tool..."
7160 if test "x${ZLIBMISSING}" = "xtrue"; then
7162 echo "Warning! Without zlib, you will not be able to read"
7163 echo "or write compressed Flash MX files!"
7165 echo "***************************************************"
7166 FILES="./release Makefile.common ${avi2swf} Makefile lib/lame/Makefile lib/Makefile lib/action/Makefile src/Makefile swfs/Makefile"
7168 FILES="./release Makefile.common ${avi2swf} Makefile lib/lame/Makefile lib/Makefile lib/action/Makefile src/Makefile pdf2swf/Makefile pdf2swf/xpdf/Makefile pdf2swf/ttf2pt1/Makefile swfs/Makefile"
7174 cat > confcache <<\EOF
7175 # This file is a shell script that caches the results of configure
7176 # tests run on this system so they can be shared between configure
7177 # scripts and configure runs. It is not useful on other systems.
7178 # If it contains results you don't want to keep, you may remove or edit it.
7180 # By default, configure uses ./config.cache as the cache file,
7181 # creating it if it does not exist already. You can give configure
7182 # the --cache-file=FILE option to use a different cache file; that is
7183 # what configure does when it calls configure scripts in
7184 # subdirectories, so they share the cache.
7185 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7186 # config.status only pays attention to the cache file if you give it the
7187 # --recheck option to rerun configure.
7190 # The following way of writing the cache mishandles newlines in values,
7191 # but we know of no workaround that is simple, portable, and efficient.
7192 # So, don't put newlines in cache variables' values.
7193 # Ultrix sh set writes to stderr and can't be redirected directly,
7194 # and sets the high bit in the cache file unless we assign to the vars.
7196 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7198 # `set' does not quote correctly, so add quotes (double-quote substitution
7199 # turns \\\\ into \\, and sed turns \\ into \).
7201 -e "s/'/'\\\\''/g" \
7202 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7205 # `set' quotes correctly as required by POSIX, so do not add quotes.
7206 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7209 if cmp -s $cache_file confcache; then
7212 if test -w $cache_file; then
7213 echo "updating cache $cache_file"
7214 cat confcache > $cache_file
7216 echo "not updating unwritable cache $cache_file"
7221 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7223 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7224 # Let make expand exec_prefix.
7225 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7227 # Any assignment to VPATH causes Sun make to only execute
7228 # the first set of double-colon rules, so remove it if not needed.
7229 # If there is a colon in the path, we need to keep it.
7230 if test "x$srcdir" = x.; then
7231 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7234 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7236 DEFS=-DHAVE_CONFIG_H
7238 # Without the "./", some shells look in PATH for config.status.
7239 : ${CONFIG_STATUS=./config.status}
7241 echo creating $CONFIG_STATUS
7242 rm -f $CONFIG_STATUS
7243 cat > $CONFIG_STATUS <<EOF
7245 # Generated automatically by configure.
7246 # Run this file to recreate the current configuration.
7247 # This directory was configured as follows,
7248 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7250 # $0 $ac_configure_args
7252 # Compiler output produced by configure, useful for debugging
7253 # configure, is in ./config.log if it exists.
7255 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7258 case "\$ac_option" in
7259 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7260 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7261 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7262 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7263 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7265 -help | --help | --hel | --he | --h)
7266 echo "\$ac_cs_usage"; exit 0 ;;
7267 *) echo "\$ac_cs_usage"; exit 1 ;;
7271 ac_given_srcdir=$srcdir
7272 ac_given_INSTALL="$INSTALL"
7274 trap 'rm -fr `echo "${FILES} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7276 cat >> $CONFIG_STATUS <<EOF
7278 # Protect against being on the right side of a sed subst in config.status.
7279 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7280 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7284 s%@CFLAGS@%$CFLAGS%g
7285 s%@CPPFLAGS@%$CPPFLAGS%g
7286 s%@CXXFLAGS@%$CXXFLAGS%g
7287 s%@FFLAGS@%$FFLAGS%g
7289 s%@LDFLAGS@%$LDFLAGS%g
7291 s%@exec_prefix@%$exec_prefix%g
7292 s%@prefix@%$prefix%g
7293 s%@program_transform_name@%$program_transform_name%g
7294 s%@bindir@%$bindir%g
7295 s%@sbindir@%$sbindir%g
7296 s%@libexecdir@%$libexecdir%g
7297 s%@datadir@%$datadir%g
7298 s%@sysconfdir@%$sysconfdir%g
7299 s%@sharedstatedir@%$sharedstatedir%g
7300 s%@localstatedir@%$localstatedir%g
7301 s%@libdir@%$libdir%g
7302 s%@includedir@%$includedir%g
7303 s%@oldincludedir@%$oldincludedir%g
7304 s%@infodir@%$infodir%g
7305 s%@mandir@%$mandir%g
7308 s%@host_alias@%$host_alias%g
7309 s%@host_cpu@%$host_cpu%g
7310 s%@host_vendor@%$host_vendor%g
7311 s%@host_os@%$host_os%g
7315 s%@RANLIB@%$RANLIB%g
7316 s%@SET_MAKE@%$SET_MAKE%g
7317 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7318 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7319 s%@INSTALL_DATA@%$INSTALL_DATA%g
7322 s%@build_alias@%$build_alias%g
7323 s%@build_cpu@%$build_cpu%g
7324 s%@build_vendor@%$build_vendor%g
7325 s%@build_os@%$build_os%g
7326 s%@OBJEXT@%$OBJEXT%g
7327 s%@EXEEXT@%$EXEEXT%g
7329 s%@LIBTOOL@%$LIBTOOL%g
7330 s%@UNCOMPRESS@%$UNCOMPRESS%g
7332 s%@FREETYPE_CONFIG@%$FREETYPE_CONFIG%g
7333 s%@target@%$target%g
7334 s%@target_alias@%$target_alias%g
7335 s%@target_cpu@%$target_cpu%g
7336 s%@target_vendor@%$target_vendor%g
7337 s%@target_os@%$target_os%g
7338 s%@WORDS_BIGENDIAN@%$WORDS_BIGENDIAN%g
7339 s%@SYSTEM_BACKTICKS@%$SYSTEM_BACKTICKS%g
7340 s%@PACKAGE@%$PACKAGE%g
7341 s%@VERSION@%$VERSION%g
7342 s%@HAVE_UNISTD_H@%$HAVE_UNISTD_H%g
7343 s%@AVIFILE_CONFIG@%$AVIFILE_CONFIG%g
7344 s%@lame_objects@%$lame_objects%g
7345 s%@USE_GZIP@%$USE_GZIP%g
7346 s%@JPEG2SWF@%$JPEG2SWF%g
7347 s%@PNG2SWF@%$PNG2SWF%g
7352 cat >> $CONFIG_STATUS <<\EOF
7354 # Split the substitutions into bite-sized pieces for seds with
7355 # small command number limits, like on Digital OSF/1 and HP-UX.
7356 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7357 ac_file=1 # Number of current file.
7358 ac_beg=1 # First line for current file.
7359 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7362 while $ac_more_lines; do
7363 if test $ac_beg -gt 1; then
7364 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7366 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7368 if test ! -s conftest.s$ac_file; then
7370 rm -f conftest.s$ac_file
7372 if test -z "$ac_sed_cmds"; then
7373 ac_sed_cmds="sed -f conftest.s$ac_file"
7375 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7377 ac_file=`expr $ac_file + 1`
7379 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7382 if test -z "$ac_sed_cmds"; then
7387 cat >> $CONFIG_STATUS <<EOF
7389 CONFIG_FILES=\${CONFIG_FILES-"${FILES}"}
7391 cat >> $CONFIG_STATUS <<\EOF
7392 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7393 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7395 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7396 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7397 *) ac_file_in="${ac_file}.in" ;;
7400 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7402 # Remove last slash and all that follows it. Not all systems have dirname.
7403 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7404 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7405 # The file is in a subdirectory.
7406 test ! -d "$ac_dir" && mkdir "$ac_dir"
7407 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7408 # A "../" for each directory in $ac_dir_suffix.
7409 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7411 ac_dir_suffix= ac_dots=
7414 case "$ac_given_srcdir" in
7416 if test -z "$ac_dots"; then top_srcdir=.
7417 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7418 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7420 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7421 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7424 case "$ac_given_INSTALL" in
7425 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7426 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7429 echo creating "$ac_file"
7431 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7433 *Makefile*) ac_comsub="1i\\
7434 # $configure_input" ;;
7438 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7440 s%@configure_input@%$configure_input%g
7441 s%@srcdir@%$srcdir%g
7442 s%@top_srcdir@%$top_srcdir%g
7443 s%@INSTALL@%$INSTALL%g
7444 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7448 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7449 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7451 # ac_d sets the value in "#define NAME VALUE" lines.
7452 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7453 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7456 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7457 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7458 ac_uB='\([ ]\)%\1#\2define\3'
7461 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7462 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7463 ac_eB='$%\1#\2define\3'
7467 if test "${CONFIG_HEADERS+set}" != set; then
7469 cat >> $CONFIG_STATUS <<EOF
7470 CONFIG_HEADERS="config.h"
7472 cat >> $CONFIG_STATUS <<\EOF
7474 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7475 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7477 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7478 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7479 *) ac_file_in="${ac_file}.in" ;;
7482 echo creating $ac_file
7484 rm -f conftest.frag conftest.in conftest.out
7485 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7486 cat $ac_file_inputs > conftest.in
7490 # Transform confdefs.h into a sed script conftest.vals that substitutes
7491 # the proper values into config.h.in to produce config.h. And first:
7492 # Protect against being on the right side of a sed subst in config.status.
7493 # Protect against being in an unquoted here document in config.status.
7495 cat > conftest.hdr <<\EOF
7498 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7502 sed -n -f conftest.hdr confdefs.h > conftest.vals
7505 # This sed command replaces #undef with comments. This is necessary, for
7506 # example, in the case of _POSIX_SOURCE, which is predefined and required
7507 # on some systems where configure will not decide to define it.
7508 cat >> conftest.vals <<\EOF
7509 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7512 # Break up conftest.vals because some shells have a limit on
7513 # the size of here documents, and old seds have small limits too.
7518 ac_lines=`grep -c . conftest.vals`
7519 # grep -c gives empty output for an empty file on some AIX systems.
7520 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7521 # Write a limited-size here document to conftest.frag.
7522 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7523 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7525 sed -f conftest.frag conftest.in > conftest.out
7527 mv conftest.out conftest.in
7529 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7531 mv conftest.tail conftest.vals
7535 cat >> $CONFIG_STATUS <<\EOF
7536 rm -f conftest.frag conftest.h
7537 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7538 cat conftest.in >> conftest.h
7540 if cmp -s $ac_file conftest.h 2>/dev/null; then
7541 echo "$ac_file is unchanged"
7544 # Remove last slash and all that follows it. Not all systems have dirname.
7545 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7546 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7547 # The file is in a subdirectory.
7548 test ! -d "$ac_dir" && mkdir "$ac_dir"
7551 mv conftest.h $ac_file
7556 cat >> $CONFIG_STATUS <<EOF
7559 cat >> $CONFIG_STATUS <<\EOF
7563 chmod +x $CONFIG_STATUS
7564 rm -fr confdefs* $ac_clean_files
7565 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7568 if test "x${srcdir}" != "x."; then
7569 echo "Warning: --srcdir is not supported"