2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.58.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
244 # Find the correct PATH separator. Usually this is `:', but
245 # DJGPP uses `;' like DOS.
246 if test "X${PATH_SEPARATOR+set}" != Xset; then
247 UNAME=${UNAME-`uname 2>/dev/null`}
249 *-DOS) lt_cv_sys_path_separator=';' ;;
250 *) lt_cv_sys_path_separator=':' ;;
252 PATH_SEPARATOR=$lt_cv_sys_path_separator
256 # Check that we are running under the correct shell.
257 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Remove one level of quotation (which was required for Make).
262 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
267 if test "X$1" = X--no-reexec; then
268 # Discard the --no-reexec flag, and continue.
270 elif test "X$1" = X--fallback-echo; then
271 # Avoid inline document here, it may be left over
273 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
274 # Yippee, $echo works!
277 # Restart under the correct shell.
278 exec $SHELL "$0" --no-reexec ${1+"$@"}
281 if test "X$1" = X--fallback-echo; then
282 # used as fallback echo
290 # The HP-UX ksh and POSIX shell print the target directory to stdout
292 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
294 if test -z "$ECHO"; then
295 if test "X${echo_test_string+set}" != Xset; then
296 # find a string as large as possible, as long as the shell can cope with it
297 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
298 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
299 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
300 echo_test_string="`eval $cmd`" &&
301 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
308 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
309 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
310 test "X$echo_testing_string" = "X$echo_test_string"; then
313 # The Solaris, AIX, and Digital Unix default echo programs unquote
314 # backslashes. This makes it impossible to quote backslashes using
315 # echo "$something" | sed 's/\\/\\\\/g'
317 # So, first we look for a working echo in the user's PATH.
319 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
320 for dir in $PATH /usr/ucb; do
321 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
322 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
331 if test "X$echo" = Xecho; then
332 # We didn't find a better echo, so look for alternatives.
333 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
334 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
335 test "X$echo_testing_string" = "X$echo_test_string"; then
336 # This shell has a builtin print -r that does the trick.
338 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
339 test "X$CONFIG_SHELL" != X/bin/ksh; then
340 # If we have ksh, try running configure again with it.
341 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
342 export ORIGINAL_CONFIG_SHELL
343 CONFIG_SHELL=/bin/ksh
345 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
349 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
350 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
354 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
360 SHELL="$CONFIG_SHELL"
362 echo="$CONFIG_SHELL $0 --fallback-echo"
363 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
364 test "X$echo_testing_string" = 'X\t' &&
365 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
366 test "X$echo_testing_string" = "X$echo_test_string"; then
367 echo="$CONFIG_SHELL $0 --fallback-echo"
369 # maybe with a smaller string...
372 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
373 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
380 if test "$prev" != 'sed 50q "$0"'; then
381 echo_test_string=`eval $prev`
382 export echo_test_string
383 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
385 # Oops. We lost completely, so just stick with echo.
394 # Copy echo and quote the copy suitably for passing to libtool from
395 # the Makefile, instead of quoting the original, which is used later.
397 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
398 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
404 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
405 # so uname gets run too.
406 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
413 ac_default_prefix=/usr/local
414 ac_config_libobj_dir=.
419 SHELL=${CONFIG_SHELL-/bin/sh}
421 # Maximum number of lines to put in a shell here document.
422 # This variable seems obsolete. It should probably be removed, and
423 # only ac_max_sed_lines should be used.
424 : ${ac_max_here_lines=38}
426 # Identity of this package.
433 ac_unique_file="src/"
434 # Factoring default headers for most tests.
435 ac_includes_default="\
438 # include <sys/types.h>
441 # include <sys/stat.h>
452 # if !STDC_HEADERS && HAVE_MEMORY_H
458 # include <strings.h>
461 # include <inttypes.h>
471 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP RANLIB ac_ct_RANLIB SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S ECHO STRIP ac_ct_STRIP EGREP LIBTOOL UNCOMPRESS AR FREETYPE_CONFIG target target_cpu target_vendor target_os WORDS_BIGENDIAN SYSTEM_BACKTICKS PACKAGE VERSION HAVE_UNISTD_H AVIFILE_CONFIG lame_objects USE_GZIP JPEG2SWF PNG2SWF LIBOBJS LTLIBOBJS'
474 # Initialize some variables set by options.
476 ac_init_version=false
477 # The variables have the same names as the options, with
478 # dashes changed to underlines.
486 program_transform_name=s,x,x,
494 # Installation directory options.
495 # These are left unexpanded so users can "make install exec_prefix=/foo"
496 # and all the variables that are supposed to be based on exec_prefix
497 # by default will actually change.
498 # Use braces instead of parens because sh, perl, etc. also accept them.
499 bindir='${exec_prefix}/bin'
500 sbindir='${exec_prefix}/sbin'
501 libexecdir='${exec_prefix}/libexec'
502 datadir='${prefix}/share'
503 sysconfdir='${prefix}/etc'
504 sharedstatedir='${prefix}/com'
505 localstatedir='${prefix}/var'
506 libdir='${exec_prefix}/lib'
507 includedir='${prefix}/include'
508 oldincludedir='/usr/include'
509 infodir='${prefix}/info'
510 mandir='${prefix}/man'
515 # If the previous option needs an argument, assign it.
516 if test -n "$ac_prev"; then
517 eval "$ac_prev=\$ac_option"
522 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
524 # Accept the important Cygnus configure options, so we can diagnose typos.
528 -bindir | --bindir | --bindi | --bind | --bin | --bi)
530 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
533 -build | --build | --buil | --bui | --bu)
534 ac_prev=build_alias ;;
535 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
536 build_alias=$ac_optarg ;;
538 -cache-file | --cache-file | --cache-fil | --cache-fi \
539 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
540 ac_prev=cache_file ;;
541 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
542 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
543 cache_file=$ac_optarg ;;
546 cache_file=config.cache ;;
548 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
550 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
552 datadir=$ac_optarg ;;
554 -disable-* | --disable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 eval "enable_$ac_feature=no" ;;
563 -enable-* | --enable-*)
564 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
565 # Reject names that are not valid shell variable names.
566 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
568 { (exit 1); exit 1; }; }
569 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
571 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
574 eval "enable_$ac_feature='$ac_optarg'" ;;
576 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
577 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
578 | --exec | --exe | --ex)
579 ac_prev=exec_prefix ;;
580 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
581 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
582 | --exec=* | --exe=* | --ex=*)
583 exec_prefix=$ac_optarg ;;
585 -gas | --gas | --ga | --g)
586 # Obsolete; use --with-gas.
589 -help | --help | --hel | --he | -h)
591 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
592 ac_init_help=recursive ;;
593 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
594 ac_init_help=short ;;
596 -host | --host | --hos | --ho)
597 ac_prev=host_alias ;;
598 -host=* | --host=* | --hos=* | --ho=*)
599 host_alias=$ac_optarg ;;
601 -includedir | --includedir | --includedi | --included | --include \
602 | --includ | --inclu | --incl | --inc)
603 ac_prev=includedir ;;
604 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
605 | --includ=* | --inclu=* | --incl=* | --inc=*)
606 includedir=$ac_optarg ;;
608 -infodir | --infodir | --infodi | --infod | --info | --inf)
610 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
611 infodir=$ac_optarg ;;
613 -libdir | --libdir | --libdi | --libd)
615 -libdir=* | --libdir=* | --libdi=* | --libd=*)
618 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
619 | --libexe | --libex | --libe)
620 ac_prev=libexecdir ;;
621 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
622 | --libexe=* | --libex=* | --libe=*)
623 libexecdir=$ac_optarg ;;
625 -localstatedir | --localstatedir | --localstatedi | --localstated \
626 | --localstate | --localstat | --localsta | --localst \
627 | --locals | --local | --loca | --loc | --lo)
628 ac_prev=localstatedir ;;
629 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
630 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
631 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
632 localstatedir=$ac_optarg ;;
634 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
636 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
640 # Obsolete; use --without-fp.
643 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
644 | --no-cr | --no-c | -n)
647 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
648 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
651 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
652 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
653 | --oldin | --oldi | --old | --ol | --o)
654 ac_prev=oldincludedir ;;
655 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
656 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
657 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
658 oldincludedir=$ac_optarg ;;
660 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
662 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
665 -program-prefix | --program-prefix | --program-prefi | --program-pref \
666 | --program-pre | --program-pr | --program-p)
667 ac_prev=program_prefix ;;
668 -program-prefix=* | --program-prefix=* | --program-prefi=* \
669 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
670 program_prefix=$ac_optarg ;;
672 -program-suffix | --program-suffix | --program-suffi | --program-suff \
673 | --program-suf | --program-su | --program-s)
674 ac_prev=program_suffix ;;
675 -program-suffix=* | --program-suffix=* | --program-suffi=* \
676 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
677 program_suffix=$ac_optarg ;;
679 -program-transform-name | --program-transform-name \
680 | --program-transform-nam | --program-transform-na \
681 | --program-transform-n | --program-transform- \
682 | --program-transform | --program-transfor \
683 | --program-transfo | --program-transf \
684 | --program-trans | --program-tran \
685 | --progr-tra | --program-tr | --program-t)
686 ac_prev=program_transform_name ;;
687 -program-transform-name=* | --program-transform-name=* \
688 | --program-transform-nam=* | --program-transform-na=* \
689 | --program-transform-n=* | --program-transform-=* \
690 | --program-transform=* | --program-transfor=* \
691 | --program-transfo=* | --program-transf=* \
692 | --program-trans=* | --program-tran=* \
693 | --progr-tra=* | --program-tr=* | --program-t=*)
694 program_transform_name=$ac_optarg ;;
696 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
697 | -silent | --silent | --silen | --sile | --sil)
700 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
702 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
704 sbindir=$ac_optarg ;;
706 -sharedstatedir | --sharedstatedir | --sharedstatedi \
707 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
708 | --sharedst | --shareds | --shared | --share | --shar \
710 ac_prev=sharedstatedir ;;
711 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
712 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
713 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
715 sharedstatedir=$ac_optarg ;;
717 -site | --site | --sit)
719 -site=* | --site=* | --sit=*)
722 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
724 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
727 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
728 | --syscon | --sysco | --sysc | --sys | --sy)
729 ac_prev=sysconfdir ;;
730 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
731 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
732 sysconfdir=$ac_optarg ;;
734 -target | --target | --targe | --targ | --tar | --ta | --t)
735 ac_prev=target_alias ;;
736 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
737 target_alias=$ac_optarg ;;
739 -v | -verbose | --verbose | --verbos | --verbo | --verb)
742 -version | --version | --versio | --versi | --vers | -V)
746 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
747 # Reject names that are not valid shell variable names.
748 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
749 { echo "$as_me: error: invalid package name: $ac_package" >&2
750 { (exit 1); exit 1; }; }
751 ac_package=`echo $ac_package| sed 's/-/_/g'`
753 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
756 eval "with_$ac_package='$ac_optarg'" ;;
758 -without-* | --without-*)
759 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
760 # Reject names that are not valid shell variable names.
761 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
762 { echo "$as_me: error: invalid package name: $ac_package" >&2
763 { (exit 1); exit 1; }; }
764 ac_package=`echo $ac_package | sed 's/-/_/g'`
765 eval "with_$ac_package=no" ;;
768 # Obsolete; use --with-x.
771 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
772 | --x-incl | --x-inc | --x-in | --x-i)
773 ac_prev=x_includes ;;
774 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
775 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
776 x_includes=$ac_optarg ;;
778 -x-libraries | --x-libraries | --x-librarie | --x-librari \
779 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
780 ac_prev=x_libraries ;;
781 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
782 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
783 x_libraries=$ac_optarg ;;
785 -*) { echo "$as_me: error: unrecognized option: $ac_option
786 Try \`$0 --help' for more information." >&2
787 { (exit 1); exit 1; }; }
791 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
792 # Reject names that are not valid shell variable names.
793 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
794 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
795 { (exit 1); exit 1; }; }
796 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
797 eval "$ac_envvar='$ac_optarg'"
801 # FIXME: should be removed in autoconf 3.0.
802 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
803 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
804 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
805 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
811 if test -n "$ac_prev"; then
812 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
813 { echo "$as_me: error: missing argument to $ac_option" >&2
814 { (exit 1); exit 1; }; }
817 # Be sure to have absolute paths.
818 for ac_var in exec_prefix prefix
820 eval ac_val=$`echo $ac_var`
822 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
823 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
824 { (exit 1); exit 1; }; };;
828 # Be sure to have absolute paths.
829 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
830 localstatedir libdir includedir oldincludedir infodir mandir
832 eval ac_val=$`echo $ac_var`
834 [\\/$]* | ?:[\\/]* ) ;;
835 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
836 { (exit 1); exit 1; }; };;
840 # There might be people who depend on the old broken behavior: `$host'
841 # used to hold the argument of --host etc.
842 # FIXME: To remove some day.
847 # FIXME: To remove some day.
848 if test "x$host_alias" != x; then
849 if test "x$build_alias" = x; then
850 cross_compiling=maybe
851 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
852 If a cross compiler is detected then cross compile mode will be used." >&2
853 elif test "x$build_alias" != "x$host_alias"; then
859 test -n "$host_alias" && ac_tool_prefix=$host_alias-
861 test "$silent" = yes && exec 6>/dev/null
864 # Find the source files, if location was not specified.
865 if test -z "$srcdir"; then
866 ac_srcdir_defaulted=yes
867 # Try the directory containing this script, then its parent.
868 ac_confdir=`(dirname "$0") 2>/dev/null ||
869 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
870 X"$0" : 'X\(//\)[^/]' \| \
871 X"$0" : 'X\(//\)$' \| \
872 X"$0" : 'X\(/\)' \| \
873 . : '\(.\)' 2>/dev/null ||
875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
876 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
877 /^X\(\/\/\)$/{ s//\1/; q; }
878 /^X\(\/\).*/{ s//\1/; q; }
881 if test ! -r $srcdir/$ac_unique_file; then
885 ac_srcdir_defaulted=no
887 if test ! -r $srcdir/$ac_unique_file; then
888 if test "$ac_srcdir_defaulted" = yes; then
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
890 { (exit 1); exit 1; }; }
892 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
893 { (exit 1); exit 1; }; }
896 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
897 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
898 { (exit 1); exit 1; }; }
899 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
900 ac_env_build_alias_set=${build_alias+set}
901 ac_env_build_alias_value=$build_alias
902 ac_cv_env_build_alias_set=${build_alias+set}
903 ac_cv_env_build_alias_value=$build_alias
904 ac_env_host_alias_set=${host_alias+set}
905 ac_env_host_alias_value=$host_alias
906 ac_cv_env_host_alias_set=${host_alias+set}
907 ac_cv_env_host_alias_value=$host_alias
908 ac_env_target_alias_set=${target_alias+set}
909 ac_env_target_alias_value=$target_alias
910 ac_cv_env_target_alias_set=${target_alias+set}
911 ac_cv_env_target_alias_value=$target_alias
912 ac_env_CC_set=${CC+set}
914 ac_cv_env_CC_set=${CC+set}
915 ac_cv_env_CC_value=$CC
916 ac_env_CFLAGS_set=${CFLAGS+set}
917 ac_env_CFLAGS_value=$CFLAGS
918 ac_cv_env_CFLAGS_set=${CFLAGS+set}
919 ac_cv_env_CFLAGS_value=$CFLAGS
920 ac_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_env_LDFLAGS_value=$LDFLAGS
922 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
923 ac_cv_env_LDFLAGS_value=$LDFLAGS
924 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_env_CPPFLAGS_value=$CPPFLAGS
926 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
927 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
942 # Report the --help message.
944 if test "$ac_init_help" = "long"; then
945 # Omit some internal or obsolete options to make the list less imposing.
946 # This message is too long to be a string in the A/UX 3.1 sh.
948 \`configure' configures this package to adapt to many kinds of systems.
950 Usage: $0 [OPTION]... [VAR=VALUE]...
952 To assign environment variables (e.g., CC, CFLAGS...), specify them as
953 VAR=VALUE. See below for descriptions of some of the useful variables.
955 Defaults for the options are specified in brackets.
958 -h, --help display this help and exit
959 --help=short display options specific to this package
960 --help=recursive display the short help of all the included packages
961 -V, --version display version information and exit
962 -q, --quiet, --silent do not print \`checking...' messages
963 --cache-file=FILE cache test results in FILE [disabled]
964 -C, --config-cache alias for \`--cache-file=config.cache'
965 -n, --no-create do not create output files
966 --srcdir=DIR find the sources in DIR [configure dir or \`..']
971 Installation directories:
972 --prefix=PREFIX install architecture-independent files in PREFIX
974 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
977 By default, \`make install' will install all the files in
978 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
979 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
980 for instance \`--prefix=\$HOME'.
982 For better control, use the options below.
984 Fine tuning of the installation directories:
985 --bindir=DIR user executables [EPREFIX/bin]
986 --sbindir=DIR system admin executables [EPREFIX/sbin]
987 --libexecdir=DIR program executables [EPREFIX/libexec]
988 --datadir=DIR read-only architecture-independent data [PREFIX/share]
989 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
990 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
991 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
992 --libdir=DIR object code libraries [EPREFIX/lib]
993 --includedir=DIR C header files [PREFIX/include]
994 --oldincludedir=DIR C header files for non-gcc [/usr/include]
995 --infodir=DIR info documentation [PREFIX/info]
996 --mandir=DIR man documentation [PREFIX/man]
1002 --program-prefix=PREFIX prepend PREFIX to installed program names
1003 --program-suffix=SUFFIX append SUFFIX to installed program names
1004 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1007 --build=BUILD configure for building on BUILD [guessed]
1008 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1009 --target=TARGET configure for building compilers for TARGET [HOST]
1013 if test -n "$ac_init_help"; then
1018 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1019 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1020 --enable-checkmem turn on ccmalloc debugging
1021 --enable-debug turn on debugging
1022 --enable-warnings turn on compiler warnings
1023 --enable-optimizations turn on compiler optimizations (recommended for avi2swf)
1024 --disable-lame don't compile any L.A.M.E. mp3 encoding code in
1025 --enable-shared=PKGS build shared libraries default=yes
1026 --enable-static=PKGS build static libraries default=yes
1027 --enable-fast-install=PKGS optimize for fast installation default=yes
1028 --disable-libtool-lock avoid locking (might break parallel builds)
1031 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1032 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1033 --with-gnu-ld assume the C compiler uses GNU ld default=no
1034 --with-pic try to use only PIC/non-PIC objects default=use both
1036 Some influential environment variables:
1037 CC C compiler command
1038 CFLAGS C compiler flags
1039 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1040 nonstandard directory <lib dir>
1041 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1042 headers in a nonstandard directory <include dir>
1043 CXX C++ compiler command
1044 CXXFLAGS C++ compiler flags
1047 Use these variables to override the choices made by `configure' or to help
1048 it to find libraries and programs with nonstandard names/locations.
1053 if test "$ac_init_help" = "recursive"; then
1054 # If there are subdirs, report their specific --help.
1056 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1057 test -d $ac_dir || continue
1060 if test "$ac_dir" != .; then
1061 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1062 # A "../" for each directory in $ac_dir_suffix.
1063 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1065 ac_dir_suffix= ac_top_builddir=
1069 .) # No --srcdir option. We are building in place.
1071 if test -z "$ac_top_builddir"; then
1074 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1076 [\\/]* | ?:[\\/]* ) # Absolute path.
1077 ac_srcdir=$srcdir$ac_dir_suffix;
1078 ac_top_srcdir=$srcdir ;;
1080 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1081 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1084 .) ac_abs_builddir=$ac_builddir;;
1086 case $ac_builddir in
1087 .) ac_abs_builddir="$ac_dir";;
1088 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
1089 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
1093 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1095 case ${ac_top_builddir}. in
1096 .) ac_abs_top_builddir="$ac_dir";;
1097 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1098 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
1102 .) ac_abs_srcdir=$ac_srcdir;;
1105 .) ac_abs_srcdir="$ac_dir";;
1106 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1107 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
1111 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1113 case $ac_top_srcdir in
1114 .) ac_abs_top_srcdir="$ac_dir";;
1115 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1116 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
1121 # Check for guested configure; otherwise get Cygnus style configure.
1122 if test -f $ac_srcdir/configure.gnu; then
1124 $SHELL $ac_srcdir/configure.gnu --help=recursive
1125 elif test -f $ac_srcdir/configure; then
1127 $SHELL $ac_srcdir/configure --help=recursive
1128 elif test -f $ac_srcdir/configure.ac ||
1129 test -f $ac_srcdir/configure.in; then
1131 $ac_configure --help
1133 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1139 test -n "$ac_init_help" && exit 0
1140 if $ac_init_version; then
1143 Copyright (C) 2003 Free Software Foundation, Inc.
1144 This configure script is free software; the Free Software Foundation
1145 gives unlimited permission to copy, distribute and modify it.
1151 This file contains any messages produced by compilers while
1152 running configure, to aid debugging if configure makes a mistake.
1154 It was created by $as_me, which was
1155 generated by GNU Autoconf 2.58. Invocation command line was
1166 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1167 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1168 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1169 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1170 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1172 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1173 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1175 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1176 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1177 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1178 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1179 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1180 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1181 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1189 test -z "$as_dir" && as_dir=.
1190 echo "PATH: $as_dir"
1205 # Keep a trace of the command line.
1206 # Strip out --no-create and --no-recursion so they do not pile up.
1207 # Strip out --silent because we don't want to record it for future runs.
1208 # Also quote any args containing shell meta-characters.
1209 # Make two passes to allow for proper duplicate-argument suppression.
1214 ac_must_keep_next=false
1220 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1222 | -silent | --silent | --silen | --sile | --sil)
1224 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1225 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1228 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1230 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1231 if test $ac_must_keep_next = true; then
1232 ac_must_keep_next=false # Got value, back to normal.
1235 *=* | --config-cache | -C | -disable-* | --disable-* \
1236 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1237 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1238 | -with-* | --with-* | -without-* | --without-* | --x)
1239 case "$ac_configure_args0 " in
1240 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1243 -* ) ac_must_keep_next=true ;;
1246 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1247 # Get rid of the leading space.
1253 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1254 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1256 # When interrupted or exit'd, cleanup temporary files, and complete
1257 # config.log. We remove comments because anyway the quotes in there
1258 # would cause problems or look ugly.
1259 # WARNING: Be sure not to use single quotes in there, as some shells,
1260 # such as our DU 5.0 friend, will then `close' the trap.
1261 trap 'exit_status=$?
1262 # Save into config.log some information that might help in debugging.
1267 ## ---------------- ##
1268 ## Cache variables. ##
1269 ## ---------------- ##
1272 # The following way of writing the cache mishandles newlines in values,
1275 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1278 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1279 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1283 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1290 ## ----------------- ##
1291 ## Output variables. ##
1292 ## ----------------- ##
1295 for ac_var in $ac_subst_vars
1297 eval ac_val=$`echo $ac_var`
1298 echo "$ac_var='"'"'$ac_val'"'"'"
1302 if test -n "$ac_subst_files"; then
1309 for ac_var in $ac_subst_files
1311 eval ac_val=$`echo $ac_var`
1312 echo "$ac_var='"'"'$ac_val'"'"'"
1317 if test -s confdefs.h; then
1324 sed "/^$/d" confdefs.h | sort
1327 test "$ac_signal" != 0 &&
1328 echo "$as_me: caught signal $ac_signal"
1329 echo "$as_me: exit $exit_status"
1331 rm -f core *.core &&
1332 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1335 for ac_signal in 1 2 13 15; do
1336 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1340 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1341 rm -rf conftest* confdefs.h
1342 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1345 # Predefined preprocessor variables.
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_NAME "$PACKAGE_NAME"
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_STRING "$PACKAGE_STRING"
1367 cat >>confdefs.h <<_ACEOF
1368 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1372 # Let the site file select an alternate cache file if it wants to.
1373 # Prefer explicitly selected file to automatically selected ones.
1374 if test -z "$CONFIG_SITE"; then
1375 if test "x$prefix" != xNONE; then
1376 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1378 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1381 for ac_site_file in $CONFIG_SITE; do
1382 if test -r "$ac_site_file"; then
1383 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1384 echo "$as_me: loading site script $ac_site_file" >&6;}
1385 sed 's/^/| /' "$ac_site_file" >&5
1390 if test -r "$cache_file"; then
1391 # Some versions of bash will fail to source /dev/null (special
1392 # files actually), so we avoid doing that.
1393 if test -f "$cache_file"; then
1394 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1395 echo "$as_me: loading cache $cache_file" >&6;}
1397 [\\/]* | ?:[\\/]* ) . $cache_file;;
1398 *) . ./$cache_file;;
1402 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1403 echo "$as_me: creating cache $cache_file" >&6;}
1407 # Check that the precious variables saved in the cache have kept the same
1409 ac_cache_corrupted=false
1410 for ac_var in `(set) 2>&1 |
1411 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1412 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1413 eval ac_new_set=\$ac_env_${ac_var}_set
1414 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1415 eval ac_new_val="\$ac_env_${ac_var}_value"
1416 case $ac_old_set,$ac_new_set in
1418 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1419 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1420 ac_cache_corrupted=: ;;
1422 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1423 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1424 ac_cache_corrupted=: ;;
1427 if test "x$ac_old_val" != "x$ac_new_val"; then
1428 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1429 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1430 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1431 echo "$as_me: former value: $ac_old_val" >&2;}
1432 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1433 echo "$as_me: current value: $ac_new_val" >&2;}
1434 ac_cache_corrupted=:
1437 # Pass precious variables to config.status.
1438 if test "$ac_new_set" = set; then
1440 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1441 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1442 *) ac_arg=$ac_var=$ac_new_val ;;
1444 case " $ac_configure_args " in
1445 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1446 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1450 if $ac_cache_corrupted; then
1451 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1452 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1453 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1454 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1455 { (exit 1); exit 1; }; }
1459 ac_cpp='$CPP $CPPFLAGS'
1460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1484 # Check whether --enable-checkmem or --disable-checkmem was given.
1485 if test "${enable_checkmem+set}" = set; then
1486 enableval="$enable_checkmem"
1489 # Check whether --enable-debug or --disable-debug was given.
1490 if test "${enable_debug+set}" = set; then
1491 enableval="$enable_debug"
1494 # Check whether --enable-warnings or --disable-warnings was given.
1495 if test "${enable_warnings+set}" = set; then
1496 enableval="$enable_warnings"
1497 ENABLE_WARNINGS=true
1499 # Check whether --enable-optimizations or --disable-optimizations was given.
1500 if test "${enable_optimizations+set}" = set; then
1501 enableval="$enable_optimizations"
1504 # Check whether --enable-lame or --disable-lame was given.
1505 if test "${enable_lame+set}" = set; then
1506 enableval="$enable_lame"
1511 VERSION=2004-05-18-1254
1515 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1516 if test "x$ENABLE_WARNINGS" '!=' "x";then
1517 WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls"
1520 if test "x$CHECKMEM" '!=' "x";then
1523 if test "x$DEBUG" '!=' "x";then
1524 CFLAGS="$WARNINGS -g $CFLAGS"
1525 CXXFLAGS="$WARNINGS -g $CXXFLAGS"
1526 else if test "x$OPTIMIZE" '!=' "x"; then
1527 CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1528 CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1530 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1531 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1535 #if test "x$OLDGCC" '!=' "x";then
1536 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1537 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1538 # CFLAGS="$CFLAGS -ansi -pendantic"
1539 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1542 export PACKAGE VERSION CFLAGS CXXFLAGS
1545 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1546 if test -f $ac_dir/install-sh; then
1548 ac_install_sh="$ac_aux_dir/install-sh -c"
1550 elif test -f $ac_dir/install.sh; then
1552 ac_install_sh="$ac_aux_dir/install.sh -c"
1554 elif test -f $ac_dir/shtool; then
1556 ac_install_sh="$ac_aux_dir/shtool install -c"
1560 if test -z "$ac_aux_dir"; then
1561 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1562 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1563 { (exit 1); exit 1; }; }
1565 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1566 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1567 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1569 # Make sure we can run config.sub.
1570 $ac_config_sub sun4 >/dev/null 2>&1 ||
1571 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1572 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1573 { (exit 1); exit 1; }; }
1575 echo "$as_me:$LINENO: checking build system type" >&5
1576 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1577 if test "${ac_cv_build+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1580 ac_cv_build_alias=$build_alias
1581 test -z "$ac_cv_build_alias" &&
1582 ac_cv_build_alias=`$ac_config_guess`
1583 test -z "$ac_cv_build_alias" &&
1584 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1585 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1586 { (exit 1); exit 1; }; }
1587 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1588 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1589 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1590 { (exit 1); exit 1; }; }
1593 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1594 echo "${ECHO_T}$ac_cv_build" >&6
1596 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1597 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1598 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1601 echo "$as_me:$LINENO: checking host system type" >&5
1602 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1603 if test "${ac_cv_host+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1606 ac_cv_host_alias=$host_alias
1607 test -z "$ac_cv_host_alias" &&
1608 ac_cv_host_alias=$ac_cv_build_alias
1609 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1610 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1611 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1612 { (exit 1); exit 1; }; }
1615 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1616 echo "${ECHO_T}$ac_cv_host" >&6
1618 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1619 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1620 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1627 CFLAGS="$CFLAGS -fno-rtti"
1628 CXXFLAGS="$CXXFLAGS -fno-rtti"
1632 ac_cpp='$CPP $CPPFLAGS'
1633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1636 if test -n "$ac_tool_prefix"; then
1637 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1638 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1639 echo "$as_me:$LINENO: checking for $ac_word" >&5
1640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1641 if test "${ac_cv_prog_CC+set}" = set; then
1642 echo $ECHO_N "(cached) $ECHO_C" >&6
1644 if test -n "$CC"; then
1645 ac_cv_prog_CC="$CC" # Let the user override the test.
1647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1651 test -z "$as_dir" && as_dir=.
1652 for ac_exec_ext in '' $ac_executable_extensions; do
1653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1654 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1664 if test -n "$CC"; then
1665 echo "$as_me:$LINENO: result: $CC" >&5
1666 echo "${ECHO_T}$CC" >&6
1668 echo "$as_me:$LINENO: result: no" >&5
1669 echo "${ECHO_T}no" >&6
1673 if test -z "$ac_cv_prog_CC"; then
1675 # Extract the first word of "gcc", so it can be a program name with args.
1676 set dummy gcc; ac_word=$2
1677 echo "$as_me:$LINENO: checking for $ac_word" >&5
1678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1679 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1680 echo $ECHO_N "(cached) $ECHO_C" >&6
1682 if test -n "$ac_ct_CC"; then
1683 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689 test -z "$as_dir" && as_dir=.
1690 for ac_exec_ext in '' $ac_executable_extensions; do
1691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1692 ac_cv_prog_ac_ct_CC="gcc"
1693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1701 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1702 if test -n "$ac_ct_CC"; then
1703 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1704 echo "${ECHO_T}$ac_ct_CC" >&6
1706 echo "$as_me:$LINENO: result: no" >&5
1707 echo "${ECHO_T}no" >&6
1715 if test -z "$CC"; then
1716 if test -n "$ac_tool_prefix"; then
1717 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1718 set dummy ${ac_tool_prefix}cc; ac_word=$2
1719 echo "$as_me:$LINENO: checking for $ac_word" >&5
1720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1721 if test "${ac_cv_prog_CC+set}" = set; then
1722 echo $ECHO_N "(cached) $ECHO_C" >&6
1724 if test -n "$CC"; then
1725 ac_cv_prog_CC="$CC" # Let the user override the test.
1727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731 test -z "$as_dir" && as_dir=.
1732 for ac_exec_ext in '' $ac_executable_extensions; do
1733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1734 ac_cv_prog_CC="${ac_tool_prefix}cc"
1735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1744 if test -n "$CC"; then
1745 echo "$as_me:$LINENO: result: $CC" >&5
1746 echo "${ECHO_T}$CC" >&6
1748 echo "$as_me:$LINENO: result: no" >&5
1749 echo "${ECHO_T}no" >&6
1753 if test -z "$ac_cv_prog_CC"; then
1755 # Extract the first word of "cc", so it can be a program name with args.
1756 set dummy cc; ac_word=$2
1757 echo "$as_me:$LINENO: checking for $ac_word" >&5
1758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1759 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1760 echo $ECHO_N "(cached) $ECHO_C" >&6
1762 if test -n "$ac_ct_CC"; then
1763 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1769 test -z "$as_dir" && as_dir=.
1770 for ac_exec_ext in '' $ac_executable_extensions; do
1771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1772 ac_cv_prog_ac_ct_CC="cc"
1773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1781 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1782 if test -n "$ac_ct_CC"; then
1783 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1784 echo "${ECHO_T}$ac_ct_CC" >&6
1786 echo "$as_me:$LINENO: result: no" >&5
1787 echo "${ECHO_T}no" >&6
1796 if test -z "$CC"; then
1797 # Extract the first word of "cc", so it can be a program name with args.
1798 set dummy cc; ac_word=$2
1799 echo "$as_me:$LINENO: checking for $ac_word" >&5
1800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1801 if test "${ac_cv_prog_CC+set}" = set; then
1802 echo $ECHO_N "(cached) $ECHO_C" >&6
1804 if test -n "$CC"; then
1805 ac_cv_prog_CC="$CC" # Let the user override the test.
1808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1812 test -z "$as_dir" && as_dir=.
1813 for ac_exec_ext in '' $ac_executable_extensions; do
1814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1815 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1816 ac_prog_rejected=yes
1820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1826 if test $ac_prog_rejected = yes; then
1827 # We found a bogon in the path, so make sure we never use it.
1828 set dummy $ac_cv_prog_CC
1830 if test $# != 0; then
1831 # We chose a different compiler from the bogus one.
1832 # However, it has the same basename, so the bogon will be chosen
1833 # first if we set CC to just the basename; use the full file name.
1835 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1841 if test -n "$CC"; then
1842 echo "$as_me:$LINENO: result: $CC" >&5
1843 echo "${ECHO_T}$CC" >&6
1845 echo "$as_me:$LINENO: result: no" >&5
1846 echo "${ECHO_T}no" >&6
1850 if test -z "$CC"; then
1851 if test -n "$ac_tool_prefix"; then
1854 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1855 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1856 echo "$as_me:$LINENO: checking for $ac_word" >&5
1857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1858 if test "${ac_cv_prog_CC+set}" = set; then
1859 echo $ECHO_N "(cached) $ECHO_C" >&6
1861 if test -n "$CC"; then
1862 ac_cv_prog_CC="$CC" # Let the user override the test.
1864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868 test -z "$as_dir" && as_dir=.
1869 for ac_exec_ext in '' $ac_executable_extensions; do
1870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1871 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1881 if test -n "$CC"; then
1882 echo "$as_me:$LINENO: result: $CC" >&5
1883 echo "${ECHO_T}$CC" >&6
1885 echo "$as_me:$LINENO: result: no" >&5
1886 echo "${ECHO_T}no" >&6
1889 test -n "$CC" && break
1892 if test -z "$CC"; then
1896 # Extract the first word of "$ac_prog", so it can be a program name with args.
1897 set dummy $ac_prog; ac_word=$2
1898 echo "$as_me:$LINENO: checking for $ac_word" >&5
1899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1900 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1901 echo $ECHO_N "(cached) $ECHO_C" >&6
1903 if test -n "$ac_ct_CC"; then
1904 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1910 test -z "$as_dir" && as_dir=.
1911 for ac_exec_ext in '' $ac_executable_extensions; do
1912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1913 ac_cv_prog_ac_ct_CC="$ac_prog"
1914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1922 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1923 if test -n "$ac_ct_CC"; then
1924 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1925 echo "${ECHO_T}$ac_ct_CC" >&6
1927 echo "$as_me:$LINENO: result: no" >&5
1928 echo "${ECHO_T}no" >&6
1931 test -n "$ac_ct_CC" && break
1940 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1941 See \`config.log' for more details." >&5
1942 echo "$as_me: error: no acceptable C compiler found in \$PATH
1943 See \`config.log' for more details." >&2;}
1944 { (exit 1); exit 1; }; }
1946 # Provide some information about the compiler.
1947 echo "$as_me:$LINENO:" \
1948 "checking for C compiler version" >&5
1949 ac_compiler=`set X $ac_compile; echo $2`
1950 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1951 (eval $ac_compiler --version </dev/null >&5) 2>&5
1953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1954 (exit $ac_status); }
1955 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1956 (eval $ac_compiler -v </dev/null >&5) 2>&5
1958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1959 (exit $ac_status); }
1960 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1961 (eval $ac_compiler -V </dev/null >&5) 2>&5
1963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964 (exit $ac_status); }
1966 cat >conftest.$ac_ext <<_ACEOF
1969 cat confdefs.h >>conftest.$ac_ext
1970 cat >>conftest.$ac_ext <<_ACEOF
1971 /* end confdefs.h. */
1981 ac_clean_files_save=$ac_clean_files
1982 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1983 # Try to create an executable without -o first, disregard a.out.
1984 # It will help us diagnose broken compilers, and finding out an intuition
1986 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1987 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1988 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1989 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1990 (eval $ac_link_default) 2>&5
1992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1993 (exit $ac_status); }; then
1994 # Find the output, starting from the most likely. This scheme is
1995 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1998 # Be careful to initialize this variable, since it used to be cached.
1999 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2001 # b.out is created by i960 compilers.
2002 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2004 test -f "$ac_file" || continue
2006 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2009 # This is the source file.
2012 # We found the default executable, but exeext='' is most
2016 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2017 # FIXME: I believe we export ac_cv_exeext for Libtool,
2018 # but it would be cool to find out if it's true. Does anybody
2019 # maintain Libtool? --akim.
2027 echo "$as_me: failed program was:" >&5
2028 sed 's/^/| /' conftest.$ac_ext >&5
2030 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2031 See \`config.log' for more details." >&5
2032 echo "$as_me: error: C compiler cannot create executables
2033 See \`config.log' for more details." >&2;}
2034 { (exit 77); exit 77; }; }
2037 ac_exeext=$ac_cv_exeext
2038 echo "$as_me:$LINENO: result: $ac_file" >&5
2039 echo "${ECHO_T}$ac_file" >&6
2041 # Check the compiler produces executables we can run. If not, either
2042 # the compiler is broken, or we cross compile.
2043 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2044 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2045 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2046 # If not cross compiling, check that we can run a simple program.
2047 if test "$cross_compiling" != yes; then
2048 if { ac_try='./$ac_file'
2049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053 (exit $ac_status); }; }; then
2056 if test "$cross_compiling" = maybe; then
2059 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2060 If you meant to cross compile, use \`--host'.
2061 See \`config.log' for more details." >&5
2062 echo "$as_me: error: cannot run C compiled programs.
2063 If you meant to cross compile, use \`--host'.
2064 See \`config.log' for more details." >&2;}
2065 { (exit 1); exit 1; }; }
2069 echo "$as_me:$LINENO: result: yes" >&5
2070 echo "${ECHO_T}yes" >&6
2072 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2073 ac_clean_files=$ac_clean_files_save
2074 # Check the compiler produces executables we can run. If not, either
2075 # the compiler is broken, or we cross compile.
2076 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2077 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2078 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2079 echo "${ECHO_T}$cross_compiling" >&6
2081 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2082 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2084 (eval $ac_link) 2>&5
2086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087 (exit $ac_status); }; then
2088 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2089 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2090 # work properly (i.e., refer to `conftest.exe'), while it won't with
2092 for ac_file in conftest.exe conftest conftest.*; do
2093 test -f "$ac_file" || continue
2095 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2096 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2103 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2104 See \`config.log' for more details." >&5
2105 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2106 See \`config.log' for more details." >&2;}
2107 { (exit 1); exit 1; }; }
2110 rm -f conftest$ac_cv_exeext
2111 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2112 echo "${ECHO_T}$ac_cv_exeext" >&6
2114 rm -f conftest.$ac_ext
2115 EXEEXT=$ac_cv_exeext
2117 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2118 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2119 if test "${ac_cv_objext+set}" = set; then
2120 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 cat >conftest.$ac_ext <<_ACEOF
2125 cat confdefs.h >>conftest.$ac_ext
2126 cat >>conftest.$ac_ext <<_ACEOF
2127 /* end confdefs.h. */
2137 rm -f conftest.o conftest.obj
2138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2139 (eval $ac_compile) 2>&5
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }; then
2143 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2145 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2146 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2151 echo "$as_me: failed program was:" >&5
2152 sed 's/^/| /' conftest.$ac_ext >&5
2154 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2155 See \`config.log' for more details." >&5
2156 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2157 See \`config.log' for more details." >&2;}
2158 { (exit 1); exit 1; }; }
2161 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2163 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2164 echo "${ECHO_T}$ac_cv_objext" >&6
2165 OBJEXT=$ac_cv_objext
2167 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2168 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2169 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2170 echo $ECHO_N "(cached) $ECHO_C" >&6
2172 cat >conftest.$ac_ext <<_ACEOF
2175 cat confdefs.h >>conftest.$ac_ext
2176 cat >>conftest.$ac_ext <<_ACEOF
2177 /* end confdefs.h. */
2190 rm -f conftest.$ac_objext
2191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2192 (eval $ac_compile) 2>conftest.er1
2194 grep -v '^ *+' conftest.er1 >conftest.err
2196 cat conftest.err >&5
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); } &&
2199 { ac_try='test -z "$ac_c_werror_flag"
2200 || test ! -s conftest.err'
2201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); }; } &&
2206 { ac_try='test -s conftest.$ac_objext'
2207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); }; }; then
2214 echo "$as_me: failed program was:" >&5
2215 sed 's/^/| /' conftest.$ac_ext >&5
2219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2220 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2223 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2224 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2225 GCC=`test $ac_compiler_gnu = yes && echo yes`
2226 ac_test_CFLAGS=${CFLAGS+set}
2227 ac_save_CFLAGS=$CFLAGS
2229 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2230 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2231 if test "${ac_cv_prog_cc_g+set}" = set; then
2232 echo $ECHO_N "(cached) $ECHO_C" >&6
2234 cat >conftest.$ac_ext <<_ACEOF
2237 cat confdefs.h >>conftest.$ac_ext
2238 cat >>conftest.$ac_ext <<_ACEOF
2239 /* end confdefs.h. */
2249 rm -f conftest.$ac_objext
2250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2251 (eval $ac_compile) 2>conftest.er1
2253 grep -v '^ *+' conftest.er1 >conftest.err
2255 cat conftest.err >&5
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); } &&
2258 { ac_try='test -z "$ac_c_werror_flag"
2259 || test ! -s conftest.err'
2260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); }; } &&
2265 { ac_try='test -s conftest.$ac_objext'
2266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; }; then
2273 echo "$as_me: failed program was:" >&5
2274 sed 's/^/| /' conftest.$ac_ext >&5
2278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2280 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2281 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2282 if test "$ac_test_CFLAGS" = set; then
2283 CFLAGS=$ac_save_CFLAGS
2284 elif test $ac_cv_prog_cc_g = yes; then
2285 if test "$GCC" = yes; then
2291 if test "$GCC" = yes; then
2297 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2298 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2299 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2300 echo $ECHO_N "(cached) $ECHO_C" >&6
2302 ac_cv_prog_cc_stdc=no
2304 cat >conftest.$ac_ext <<_ACEOF
2307 cat confdefs.h >>conftest.$ac_ext
2308 cat >>conftest.$ac_ext <<_ACEOF
2309 /* end confdefs.h. */
2312 #include <sys/types.h>
2313 #include <sys/stat.h>
2314 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2315 struct buf { int x; };
2316 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2317 static char *e (p, i)
2323 static char *f (char * (*g) (char **, int), char **p, ...)
2328 s = g (p, va_arg (v,int));
2333 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2334 function prototypes and stuff, but not '\xHH' hex character constants.
2335 These don't provoke an error unfortunately, instead are silently treated
2336 as 'x'. The following induces an error, until -std1 is added to get
2337 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2338 array size at least. It's necessary to write '\x00'==0 to get something
2339 that's true only with -std1. */
2340 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2342 int test (int i, double x);
2343 struct s1 {int (*f) (int a);};
2344 struct s2 {int (*f) (double a);};
2345 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2351 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2356 # Don't try gcc -ansi; that turns off useful extensions and
2357 # breaks some systems' header files.
2358 # AIX -qlanglvl=ansi
2359 # Ultrix and OSF/1 -std1
2360 # HP-UX 10.20 and later -Ae
2361 # HP-UX older versions -Aa -D_HPUX_SOURCE
2362 # SVR4 -Xc -D__EXTENSIONS__
2363 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2365 CC="$ac_save_CC $ac_arg"
2366 rm -f conftest.$ac_objext
2367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2368 (eval $ac_compile) 2>conftest.er1
2370 grep -v '^ *+' conftest.er1 >conftest.err
2372 cat conftest.err >&5
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); } &&
2375 { ac_try='test -z "$ac_c_werror_flag"
2376 || test ! -s conftest.err'
2377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }; } &&
2382 { ac_try='test -s conftest.$ac_objext'
2383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }; }; then
2388 ac_cv_prog_cc_stdc=$ac_arg
2391 echo "$as_me: failed program was:" >&5
2392 sed 's/^/| /' conftest.$ac_ext >&5
2395 rm -f conftest.err conftest.$ac_objext
2397 rm -f conftest.$ac_ext conftest.$ac_objext
2402 case "x$ac_cv_prog_cc_stdc" in
2404 echo "$as_me:$LINENO: result: none needed" >&5
2405 echo "${ECHO_T}none needed" >&6 ;;
2407 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2408 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2409 CC="$CC $ac_cv_prog_cc_stdc" ;;
2412 # Some people use a C++ compiler to compile C. Since we use `exit',
2413 # in C++ we need to declare it. In case someone uses the same compiler
2414 # for both compiling C and C++ we need to have the C++ compiler decide
2415 # the declaration of exit, since it's the most demanding environment.
2416 cat >conftest.$ac_ext <<_ACEOF
2421 rm -f conftest.$ac_objext
2422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2423 (eval $ac_compile) 2>conftest.er1
2425 grep -v '^ *+' conftest.er1 >conftest.err
2427 cat conftest.err >&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); } &&
2430 { ac_try='test -z "$ac_c_werror_flag"
2431 || test ! -s conftest.err'
2432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }; } &&
2437 { ac_try='test -s conftest.$ac_objext'
2438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; }; then
2443 for ac_declaration in \
2445 'extern "C" void std::exit (int) throw (); using std::exit;' \
2446 'extern "C" void std::exit (int); using std::exit;' \
2447 'extern "C" void exit (int) throw ();' \
2448 'extern "C" void exit (int);' \
2451 cat >conftest.$ac_ext <<_ACEOF
2454 cat confdefs.h >>conftest.$ac_ext
2455 cat >>conftest.$ac_ext <<_ACEOF
2456 /* end confdefs.h. */
2467 rm -f conftest.$ac_objext
2468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2469 (eval $ac_compile) 2>conftest.er1
2471 grep -v '^ *+' conftest.er1 >conftest.err
2473 cat conftest.err >&5
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); } &&
2476 { ac_try='test -z "$ac_c_werror_flag"
2477 || test ! -s conftest.err'
2478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); }; } &&
2483 { ac_try='test -s conftest.$ac_objext'
2484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); }; }; then
2491 echo "$as_me: failed program was:" >&5
2492 sed 's/^/| /' conftest.$ac_ext >&5
2496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2497 cat >conftest.$ac_ext <<_ACEOF
2500 cat confdefs.h >>conftest.$ac_ext
2501 cat >>conftest.$ac_ext <<_ACEOF
2502 /* end confdefs.h. */
2512 rm -f conftest.$ac_objext
2513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2514 (eval $ac_compile) 2>conftest.er1
2516 grep -v '^ *+' conftest.er1 >conftest.err
2518 cat conftest.err >&5
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); } &&
2521 { ac_try='test -z "$ac_c_werror_flag"
2522 || test ! -s conftest.err'
2523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; } &&
2528 { ac_try='test -s conftest.$ac_objext'
2529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; }; then
2536 echo "$as_me: failed program was:" >&5
2537 sed 's/^/| /' conftest.$ac_ext >&5
2540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2543 if test -n "$ac_declaration"; then
2544 echo '#ifdef __cplusplus' >>confdefs.h
2545 echo $ac_declaration >>confdefs.h
2546 echo '#endif' >>confdefs.h
2550 echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2556 ac_cpp='$CPP $CPPFLAGS'
2557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2562 ac_cpp='$CXXCPP $CPPFLAGS'
2563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2566 if test -n "$ac_tool_prefix"; then
2567 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2569 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2570 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2571 echo "$as_me:$LINENO: checking for $ac_word" >&5
2572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2573 if test "${ac_cv_prog_CXX+set}" = set; then
2574 echo $ECHO_N "(cached) $ECHO_C" >&6
2576 if test -n "$CXX"; then
2577 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 test -z "$as_dir" && as_dir=.
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2586 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2596 if test -n "$CXX"; then
2597 echo "$as_me:$LINENO: result: $CXX" >&5
2598 echo "${ECHO_T}$CXX" >&6
2600 echo "$as_me:$LINENO: result: no" >&5
2601 echo "${ECHO_T}no" >&6
2604 test -n "$CXX" && break
2607 if test -z "$CXX"; then
2609 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2611 # Extract the first word of "$ac_prog", so it can be a program name with args.
2612 set dummy $ac_prog; ac_word=$2
2613 echo "$as_me:$LINENO: checking for $ac_word" >&5
2614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2615 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2616 echo $ECHO_N "(cached) $ECHO_C" >&6
2618 if test -n "$ac_ct_CXX"; then
2619 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 test -z "$as_dir" && as_dir=.
2626 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2628 ac_cv_prog_ac_ct_CXX="$ac_prog"
2629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2637 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2638 if test -n "$ac_ct_CXX"; then
2639 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2640 echo "${ECHO_T}$ac_ct_CXX" >&6
2642 echo "$as_me:$LINENO: result: no" >&5
2643 echo "${ECHO_T}no" >&6
2646 test -n "$ac_ct_CXX" && break
2648 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2654 # Provide some information about the compiler.
2655 echo "$as_me:$LINENO:" \
2656 "checking for C++ compiler version" >&5
2657 ac_compiler=`set X $ac_compile; echo $2`
2658 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2659 (eval $ac_compiler --version </dev/null >&5) 2>&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }
2663 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2664 (eval $ac_compiler -v </dev/null >&5) 2>&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }
2668 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2669 (eval $ac_compiler -V </dev/null >&5) 2>&5
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); }
2674 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2675 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2676 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2677 echo $ECHO_N "(cached) $ECHO_C" >&6
2679 cat >conftest.$ac_ext <<_ACEOF
2682 cat confdefs.h >>conftest.$ac_ext
2683 cat >>conftest.$ac_ext <<_ACEOF
2684 /* end confdefs.h. */
2697 rm -f conftest.$ac_objext
2698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2699 (eval $ac_compile) 2>conftest.er1
2701 grep -v '^ *+' conftest.er1 >conftest.err
2703 cat conftest.err >&5
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); } &&
2706 { ac_try='test -z "$ac_cxx_werror_flag"
2707 || test ! -s conftest.err'
2708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; } &&
2713 { ac_try='test -s conftest.$ac_objext'
2714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; }; then
2721 echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.$ac_ext >&5
2726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2727 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2730 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2731 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2732 GXX=`test $ac_compiler_gnu = yes && echo yes`
2733 ac_test_CXXFLAGS=${CXXFLAGS+set}
2734 ac_save_CXXFLAGS=$CXXFLAGS
2736 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2737 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2738 if test "${ac_cv_prog_cxx_g+set}" = set; then
2739 echo $ECHO_N "(cached) $ECHO_C" >&6
2741 cat >conftest.$ac_ext <<_ACEOF
2744 cat confdefs.h >>conftest.$ac_ext
2745 cat >>conftest.$ac_ext <<_ACEOF
2746 /* end confdefs.h. */
2756 rm -f conftest.$ac_objext
2757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2758 (eval $ac_compile) 2>conftest.er1
2760 grep -v '^ *+' conftest.er1 >conftest.err
2762 cat conftest.err >&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); } &&
2765 { ac_try='test -z "$ac_cxx_werror_flag"
2766 || test ! -s conftest.err'
2767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }; } &&
2772 { ac_try='test -s conftest.$ac_objext'
2773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; }; then
2778 ac_cv_prog_cxx_g=yes
2780 echo "$as_me: failed program was:" >&5
2781 sed 's/^/| /' conftest.$ac_ext >&5
2785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2787 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2788 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2789 if test "$ac_test_CXXFLAGS" = set; then
2790 CXXFLAGS=$ac_save_CXXFLAGS
2791 elif test $ac_cv_prog_cxx_g = yes; then
2792 if test "$GXX" = yes; then
2798 if test "$GXX" = yes; then
2804 for ac_declaration in \
2806 'extern "C" void std::exit (int) throw (); using std::exit;' \
2807 'extern "C" void std::exit (int); using std::exit;' \
2808 'extern "C" void exit (int) throw ();' \
2809 'extern "C" void exit (int);' \
2812 cat >conftest.$ac_ext <<_ACEOF
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h. */
2828 rm -f conftest.$ac_objext
2829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2830 (eval $ac_compile) 2>conftest.er1
2832 grep -v '^ *+' conftest.er1 >conftest.err
2834 cat conftest.err >&5
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); } &&
2837 { ac_try='test -z "$ac_cxx_werror_flag"
2838 || test ! -s conftest.err'
2839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }; } &&
2844 { ac_try='test -s conftest.$ac_objext'
2845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); }; }; then
2852 echo "$as_me: failed program was:" >&5
2853 sed 's/^/| /' conftest.$ac_ext >&5
2857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2858 cat >conftest.$ac_ext <<_ACEOF
2861 cat confdefs.h >>conftest.$ac_ext
2862 cat >>conftest.$ac_ext <<_ACEOF
2863 /* end confdefs.h. */
2873 rm -f conftest.$ac_objext
2874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2875 (eval $ac_compile) 2>conftest.er1
2877 grep -v '^ *+' conftest.er1 >conftest.err
2879 cat conftest.err >&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); } &&
2882 { ac_try='test -z "$ac_cxx_werror_flag"
2883 || test ! -s conftest.err'
2884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; } &&
2889 { ac_try='test -s conftest.$ac_objext'
2890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }; }; then
2897 echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2904 if test -n "$ac_declaration"; then
2905 echo '#ifdef __cplusplus' >>confdefs.h
2906 echo $ac_declaration >>confdefs.h
2907 echo '#endif' >>confdefs.h
2911 ac_cpp='$CPP $CPPFLAGS'
2912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2917 if test "x$CHECKMEM" '!=' "x";then
2921 #unset ac_cv_prog_CC
2922 #unset ac_cv_prog_CXX
2927 ac_cpp='$CPP $CPPFLAGS'
2928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2931 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2932 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2933 # On Suns, sometimes $CPP names a directory.
2934 if test -n "$CPP" && test -d "$CPP"; then
2937 if test -z "$CPP"; then
2938 if test "${ac_cv_prog_CPP+set}" = set; then
2939 echo $ECHO_N "(cached) $ECHO_C" >&6
2941 # Double quotes because CPP needs to be expanded
2942 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2945 for ac_c_preproc_warn_flag in '' yes
2947 # Use a header file that comes with gcc, so configuring glibc
2948 # with a fresh cross-compiler works.
2949 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2950 # <limits.h> exists even on freestanding compilers.
2951 # On the NeXT, cc -E runs the code through the compiler's parser,
2952 # not just through cpp. "Syntax error" is here to catch this case.
2953 cat >conftest.$ac_ext <<_ACEOF
2956 cat confdefs.h >>conftest.$ac_ext
2957 cat >>conftest.$ac_ext <<_ACEOF
2958 /* end confdefs.h. */
2960 # include <limits.h>
2962 # include <assert.h>
2966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2969 grep -v '^ *+' conftest.er1 >conftest.err
2971 cat conftest.err >&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } >/dev/null; then
2974 if test -s conftest.err; then
2975 ac_cpp_err=$ac_c_preproc_warn_flag
2976 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2983 if test -z "$ac_cpp_err"; then
2986 echo "$as_me: failed program was:" >&5
2987 sed 's/^/| /' conftest.$ac_ext >&5
2989 # Broken: fails on valid input.
2992 rm -f conftest.err conftest.$ac_ext
2994 # OK, works on sane cases. Now check whether non-existent headers
2995 # can be detected and how.
2996 cat >conftest.$ac_ext <<_ACEOF
2999 cat confdefs.h >>conftest.$ac_ext
3000 cat >>conftest.$ac_ext <<_ACEOF
3001 /* end confdefs.h. */
3002 #include <ac_nonexistent.h>
3004 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3007 grep -v '^ *+' conftest.er1 >conftest.err
3009 cat conftest.err >&5
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); } >/dev/null; then
3012 if test -s conftest.err; then
3013 ac_cpp_err=$ac_c_preproc_warn_flag
3014 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3021 if test -z "$ac_cpp_err"; then
3022 # Broken: success on invalid input.
3025 echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.$ac_ext >&5
3028 # Passes both tests.
3032 rm -f conftest.err conftest.$ac_ext
3035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3036 rm -f conftest.err conftest.$ac_ext
3037 if $ac_preproc_ok; then
3049 echo "$as_me:$LINENO: result: $CPP" >&5
3050 echo "${ECHO_T}$CPP" >&6
3052 for ac_c_preproc_warn_flag in '' yes
3054 # Use a header file that comes with gcc, so configuring glibc
3055 # with a fresh cross-compiler works.
3056 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3057 # <limits.h> exists even on freestanding compilers.
3058 # On the NeXT, cc -E runs the code through the compiler's parser,
3059 # not just through cpp. "Syntax error" is here to catch this case.
3060 cat >conftest.$ac_ext <<_ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3067 # include <limits.h>
3069 # include <assert.h>
3073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3074 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3076 grep -v '^ *+' conftest.er1 >conftest.err
3078 cat conftest.err >&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); } >/dev/null; then
3081 if test -s conftest.err; then
3082 ac_cpp_err=$ac_c_preproc_warn_flag
3083 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3090 if test -z "$ac_cpp_err"; then
3093 echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3096 # Broken: fails on valid input.
3099 rm -f conftest.err conftest.$ac_ext
3101 # OK, works on sane cases. Now check whether non-existent headers
3102 # can be detected and how.
3103 cat >conftest.$ac_ext <<_ACEOF
3106 cat confdefs.h >>conftest.$ac_ext
3107 cat >>conftest.$ac_ext <<_ACEOF
3108 /* end confdefs.h. */
3109 #include <ac_nonexistent.h>
3111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3114 grep -v '^ *+' conftest.er1 >conftest.err
3116 cat conftest.err >&5
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); } >/dev/null; then
3119 if test -s conftest.err; then
3120 ac_cpp_err=$ac_c_preproc_warn_flag
3121 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3128 if test -z "$ac_cpp_err"; then
3129 # Broken: success on invalid input.
3132 echo "$as_me: failed program was:" >&5
3133 sed 's/^/| /' conftest.$ac_ext >&5
3135 # Passes both tests.
3139 rm -f conftest.err conftest.$ac_ext
3142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3143 rm -f conftest.err conftest.$ac_ext
3144 if $ac_preproc_ok; then
3147 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3148 See \`config.log' for more details." >&5
3149 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3150 See \`config.log' for more details." >&2;}
3151 { (exit 1); exit 1; }; }
3155 ac_cpp='$CPP $CPPFLAGS'
3156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3161 if test -n "$ac_tool_prefix"; then
3162 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3163 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3164 echo "$as_me:$LINENO: checking for $ac_word" >&5
3165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3166 if test "${ac_cv_prog_RANLIB+set}" = set; then
3167 echo $ECHO_N "(cached) $ECHO_C" >&6
3169 if test -n "$RANLIB"; then
3170 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 test -z "$as_dir" && as_dir=.
3177 for ac_exec_ext in '' $ac_executable_extensions; do
3178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3179 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3188 RANLIB=$ac_cv_prog_RANLIB
3189 if test -n "$RANLIB"; then
3190 echo "$as_me:$LINENO: result: $RANLIB" >&5
3191 echo "${ECHO_T}$RANLIB" >&6
3193 echo "$as_me:$LINENO: result: no" >&5
3194 echo "${ECHO_T}no" >&6
3198 if test -z "$ac_cv_prog_RANLIB"; then
3199 ac_ct_RANLIB=$RANLIB
3200 # Extract the first word of "ranlib", so it can be a program name with args.
3201 set dummy ranlib; ac_word=$2
3202 echo "$as_me:$LINENO: checking for $ac_word" >&5
3203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3204 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3205 echo $ECHO_N "(cached) $ECHO_C" >&6
3207 if test -n "$ac_ct_RANLIB"; then
3208 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 test -z "$as_dir" && as_dir=.
3215 for ac_exec_ext in '' $ac_executable_extensions; do
3216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3217 ac_cv_prog_ac_ct_RANLIB="ranlib"
3218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3224 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3227 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3228 if test -n "$ac_ct_RANLIB"; then
3229 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3230 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3232 echo "$as_me:$LINENO: result: no" >&5
3233 echo "${ECHO_T}no" >&6
3236 RANLIB=$ac_ct_RANLIB
3238 RANLIB="$ac_cv_prog_RANLIB"
3241 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3242 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3243 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3244 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3247 cat >conftest.make <<\_ACEOF
3249 @echo 'ac_maketemp="$(MAKE)"'
3251 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3252 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3253 if test -n "$ac_maketemp"; then
3254 eval ac_cv_prog_make_${ac_make}_set=yes
3256 eval ac_cv_prog_make_${ac_make}_set=no
3260 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3261 echo "$as_me:$LINENO: result: yes" >&5
3262 echo "${ECHO_T}yes" >&6
3265 echo "$as_me:$LINENO: result: no" >&5
3266 echo "${ECHO_T}no" >&6
3267 SET_MAKE="MAKE=${MAKE-make}"
3270 # Find a good install program. We prefer a C program (faster),
3271 # so one script is as good as another. But avoid the broken or
3272 # incompatible versions:
3273 # SysV /etc/install, /usr/sbin/install
3274 # SunOS /usr/etc/install
3275 # IRIX /sbin/install
3277 # AmigaOS /C/install, which installs bootblocks on floppy discs
3278 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3279 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3280 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3281 # OS/2's system install, which has a completely different semantic
3282 # ./install, which can be erroneously created by make from ./install.sh.
3283 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3284 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3285 if test -z "$INSTALL"; then
3286 if test "${ac_cv_path_install+set}" = set; then
3287 echo $ECHO_N "(cached) $ECHO_C" >&6
3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 test -z "$as_dir" && as_dir=.
3294 # Account for people who put trailing slashes in PATH elements.
3296 ./ | .// | /cC/* | \
3297 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3298 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3301 # OSF1 and SCO ODT 3.0 have their own names for install.
3302 # Don't use installbsd from OSF since it installs stuff as root
3304 for ac_prog in ginstall scoinst install; do
3305 for ac_exec_ext in '' $ac_executable_extensions; do
3306 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3307 if test $ac_prog = install &&
3308 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3309 # AIX install. It has an incompatible calling convention.
3311 elif test $ac_prog = install &&
3312 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3313 # program-specific install script used by HP pwplus--don't use.
3316 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3328 if test "${ac_cv_path_install+set}" = set; then
3329 INSTALL=$ac_cv_path_install
3331 # As a last resort, use the slow shell script. We don't cache a
3332 # path for INSTALL within a source directory, because that will
3333 # break other packages using the cache if that directory is
3334 # removed, or if the path is relative.
3335 INSTALL=$ac_install_sh
3338 echo "$as_me:$LINENO: result: $INSTALL" >&5
3339 echo "${ECHO_T}$INSTALL" >&6
3341 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3342 # It thinks the first close brace ends the variable substitution.
3343 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3345 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3347 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3349 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3350 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3352 if test "$LN_S" = "ln -s"; then
3353 echo "$as_me:$LINENO: result: yes" >&5
3354 echo "${ECHO_T}yes" >&6
3356 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3357 echo "${ECHO_T}no, using $LN_S" >&6
3360 # Check whether --enable-shared or --disable-shared was given.
3361 if test "${enable_shared+set}" = set; then
3362 enableval="$enable_shared"
3363 p=${PACKAGE-default}
3365 yes) enable_shared=yes ;;
3366 no) enable_shared=no ;;
3369 # Look at the argument we got. We use all the common list separators.
3370 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3371 for pkg in $enableval; do
3372 if test "X$pkg" = "X$p"; then
3382 # Check whether --enable-static or --disable-static was given.
3383 if test "${enable_static+set}" = set; then
3384 enableval="$enable_static"
3385 p=${PACKAGE-default}
3387 yes) enable_static=yes ;;
3388 no) enable_static=no ;;
3391 # Look at the argument we got. We use all the common list separators.
3392 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3393 for pkg in $enableval; do
3394 if test "X$pkg" = "X$p"; then
3404 # Check whether --enable-fast-install or --disable-fast-install was given.
3405 if test "${enable_fast_install+set}" = set; then
3406 enableval="$enable_fast_install"
3407 p=${PACKAGE-default}
3409 yes) enable_fast_install=yes ;;
3410 no) enable_fast_install=no ;;
3412 enable_fast_install=no
3413 # Look at the argument we got. We use all the common list separators.
3414 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3415 for pkg in $enableval; do
3416 if test "X$pkg" = "X$p"; then
3417 enable_fast_install=yes
3424 enable_fast_install=yes
3426 # Find the correct PATH separator. Usually this is `:', but
3427 # DJGPP uses `;' like DOS.
3428 if test "X${PATH_SEPARATOR+set}" != Xset; then
3429 UNAME=${UNAME-`uname 2>/dev/null`}
3431 *-DOS) lt_cv_sys_path_separator=';' ;;
3432 *) lt_cv_sys_path_separator=':' ;;
3434 PATH_SEPARATOR=$lt_cv_sys_path_separator
3438 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3439 if test "${with_gnu_ld+set}" = set; then
3440 withval="$with_gnu_ld"
3441 test "$withval" = no || with_gnu_ld=yes
3446 if test "$GCC" = yes; then
3447 # Check if gcc -print-prog-name=ld gives a path.
3448 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3449 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3452 # gcc leaves a trailing carriage return which upsets mingw
3453 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3455 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3458 # Accept absolute paths.
3459 [\\/]* | [A-Za-z]:[\\/]*)
3460 re_direlt='/[^/][^/]*/\.\./'
3461 # Canonicalize the path of ld
3462 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3463 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3464 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3466 test -z "$LD" && LD="$ac_prog"
3469 # If it fails, then pretend we aren't using GCC.
3473 # If it is relative, then search for the first ld in PATH.
3477 elif test "$with_gnu_ld" = yes; then
3478 echo "$as_me:$LINENO: checking for GNU ld" >&5
3479 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3481 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3482 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3484 if test "${lt_cv_path_LD+set}" = set; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3487 if test -z "$LD"; then
3488 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3489 for ac_dir in $PATH; do
3490 test -z "$ac_dir" && ac_dir=.
3491 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3492 lt_cv_path_LD="$ac_dir/$ac_prog"
3493 # Check to see if the program is GNU ld. I'd rather use --version,
3494 # but apparently some GNU ld's only accept -v.
3495 # Break only if it was the GNU/non-GNU ld that we prefer.
3496 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3497 test "$with_gnu_ld" != no && break
3499 test "$with_gnu_ld" != yes && break
3505 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3510 if test -n "$LD"; then
3511 echo "$as_me:$LINENO: result: $LD" >&5
3512 echo "${ECHO_T}$LD" >&6
3514 echo "$as_me:$LINENO: result: no" >&5
3515 echo "${ECHO_T}no" >&6
3517 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3518 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3519 { (exit 1); exit 1; }; }
3520 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3521 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3522 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3523 echo $ECHO_N "(cached) $ECHO_C" >&6
3525 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3526 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3527 lt_cv_prog_gnu_ld=yes
3529 lt_cv_prog_gnu_ld=no
3532 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3533 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3534 with_gnu_ld=$lt_cv_prog_gnu_ld
3537 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3538 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3539 if test "${lt_cv_ld_reload_flag+set}" = set; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
3542 lt_cv_ld_reload_flag='-r'
3544 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3545 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3546 reload_flag=$lt_cv_ld_reload_flag
3547 test -n "$reload_flag" && reload_flag=" $reload_flag"
3549 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3550 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3551 if test "${lt_cv_path_NM+set}" = set; then
3552 echo $ECHO_N "(cached) $ECHO_C" >&6
3554 if test -n "$NM"; then
3555 # Let the user override the test.
3558 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3559 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3560 test -z "$ac_dir" && ac_dir=.
3561 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3562 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3563 # Check to see if the nm accepts a BSD-compat flag.
3564 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3565 # nm: unknown option "B" ignored
3566 # Tru64's nm complains that /dev/null is an invalid object file
3567 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3568 lt_cv_path_NM="$tmp_nm -B"
3570 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3571 lt_cv_path_NM="$tmp_nm -p"
3574 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3575 continue # so that we can try to find one that supports BSD flags
3580 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3585 echo "$as_me:$LINENO: result: $NM" >&5
3586 echo "${ECHO_T}$NM" >&6
3588 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3589 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3590 if test "${lt_cv_path_SED+set}" = set; then
3591 echo $ECHO_N "(cached) $ECHO_C" >&6
3593 # Loop through the user's path and test for sed and gsed.
3594 # Then use that list of sed's as ones to test for truncation.
3595 as_executable_p="test -f"
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600 test -z "$as_dir" && as_dir=.
3601 for ac_prog in sed gsed; do
3602 for ac_exec_ext in '' $ac_executable_extensions; do
3603 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3604 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3610 # Create a temporary directory, and hook for its removal unless debugging.
3613 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3614 trap '{ (exit 1); exit 1; }' 1 2 13 15
3617 # Create a (secure) tmp directory for tmp files.
3620 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3621 test -n "$tmp" && test -d "$tmp"
3624 tmp=$TMPDIR/sed$$-$RANDOM
3625 (umask 077 && mkdir $tmp)
3628 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3629 { (exit 1); exit 1; }
3633 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3634 # along with /bin/sed that truncates output.
3635 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3636 test ! -f ${_sed} && break
3637 cat /dev/null > "$tmp/sed.in"
3639 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3640 # Check for GNU sed and select it if it is found.
3641 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3642 lt_cv_path_SED=${_sed}
3646 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3647 mv "$tmp/sed.tmp" "$tmp/sed.in"
3648 cp "$tmp/sed.in" "$tmp/sed.nl"
3649 echo >>"$tmp/sed.nl"
3650 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3651 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3652 # 40000 chars as input seems more than enough
3653 test $_count -gt 10 && break
3654 _count=`expr $_count + 1`
3655 if test $_count -gt $_max; then
3657 lt_cv_path_SED=$_sed
3665 if test "X$SED" != "X"; then
3670 echo "$as_me:$LINENO: result: $SED" >&5
3671 echo "${ECHO_T}$SED" >&6
3673 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3674 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3675 if test "${lt_cv_deplibs_check_method+set}" = set; then
3676 echo $ECHO_N "(cached) $ECHO_C" >&6
3678 lt_cv_file_magic_cmd='$MAGIC_CMD'
3679 lt_cv_file_magic_test_file=
3680 lt_cv_deplibs_check_method='unknown'
3681 # Need to set the preceding variable on all platforms that support
3682 # interlibrary dependencies.
3683 # 'none' -- dependencies not supported.
3684 # `unknown' -- same as none, but documents that we really don't know.
3685 # 'pass_all' -- all dependencies passed with no checks.
3686 # 'test_compile' -- check by making test program.
3687 # 'file_magic [[regex]]' -- check by looking for files in library path
3688 # which responds to the $file_magic_cmd with a given egrep regex.
3689 # If you have `file' or equivalent on your system and you're not sure
3690 # whether `pass_all' will *always* work, you probably want this one.
3694 lt_cv_deplibs_check_method=pass_all
3698 lt_cv_deplibs_check_method=pass_all
3702 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3703 lt_cv_file_magic_cmd='/usr/bin/file -L'
3704 lt_cv_file_magic_test_file=/shlib/libc.so
3707 cygwin* | mingw* | pw32*)
3708 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3709 lt_cv_file_magic_cmd='$OBJDUMP -f'
3712 darwin* | rhapsody*)
3713 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3714 lt_cv_file_magic_cmd='/usr/bin/file -L'
3716 rhapsody* | darwin1.[012])
3717 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3720 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3726 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3729 # Not sure whether the presence of OpenBSD here was a mistake.
3730 # Let's accept both of them until this is cleared up.
3731 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3732 lt_cv_file_magic_cmd=/usr/bin/file
3733 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3737 lt_cv_deplibs_check_method=pass_all
3742 lt_cv_deplibs_check_method=pass_all
3746 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3747 lt_cv_file_magic_cmd=/usr/bin/file
3748 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3751 irix5* | irix6* | nonstopux*)
3753 irix5* | nonstopux*)
3754 # this will be overridden with pass_all, but let us keep it just in case
3755 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3759 *-32|*"-32 ") libmagic=32-bit;;
3760 *-n32|*"-n32 ") libmagic=N32;;
3761 *-64|*"-64 ") libmagic=64-bit;;
3762 *) libmagic=never-match;;
3764 # this will be overridden with pass_all, but let us keep it just in case
3765 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3768 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3769 lt_cv_deplibs_check_method=pass_all
3772 # This must be Linux ELF.
3775 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
3776 lt_cv_deplibs_check_method=pass_all ;;
3778 # glibc up to 2.1.1 does not perform some relocations on ARM
3779 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3781 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3785 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3786 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3788 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3793 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3794 lt_cv_file_magic_cmd=/usr/bin/file
3795 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3799 lt_cv_file_magic_cmd=/usr/bin/file
3800 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3801 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3802 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3804 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3808 osf3* | osf4* | osf5*)
3809 # this will be overridden with pass_all, but let us keep it just in case
3810 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3811 lt_cv_file_magic_test_file=/shlib/libc.so
3812 lt_cv_deplibs_check_method=pass_all
3816 lt_cv_deplibs_check_method=pass_all
3820 lt_cv_deplibs_check_method=pass_all
3821 lt_cv_file_magic_test_file=/lib/libc.so
3824 sysv5uw[78]* | sysv4*uw2*)
3825 lt_cv_deplibs_check_method=pass_all
3828 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3829 case $host_vendor in
3831 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]'
3832 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3835 lt_cv_deplibs_check_method=pass_all
3838 lt_cv_file_magic_cmd='/bin/file'
3839 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3842 lt_cv_file_magic_cmd='/bin/file'
3843 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3844 lt_cv_file_magic_test_file=/lib/libc.so
3847 lt_cv_deplibs_check_method=pass_all
3854 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3855 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3856 file_magic_cmd=$lt_cv_file_magic_cmd
3857 deplibs_check_method=$lt_cv_deplibs_check_method
3866 # Check for command to grab the raw symbol name followed by C symbol from nm.
3867 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3868 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3869 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
3873 # These are sane defaults that work on at least a few old systems.
3874 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3876 # Character class describing NM global symbol codes.
3877 symcode='[BCDEGRST]'
3879 # Regexp to match symbols that can be accessed directly from C.
3880 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3882 # Transform the above into a raw symbol and a C symbol.
3883 symxfrm='\1 \2\3 \3'
3885 # Transform an extracted symbol line into a proper C declaration
3886 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3888 # Transform an extracted symbol line into symbol name and symbol address
3889 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'"
3891 # Define system-specific variables.
3896 cygwin* | mingw* | pw32*)
3897 symcode='[ABCDGISTW]'
3899 hpux*) # Its linker distinguishes data from code symbols
3900 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3901 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'"
3904 symcode='[BCDEGRST]'
3907 symcode='[BCDEGQRST]'
3917 # Handle CRLF in mingw tool chain
3921 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3925 # If we're using GNU nm, then use its standard symbol codes.
3926 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3927 symcode='[ABCDGISTW]'
3930 # Try without a prefix undercore, then with it.
3931 for ac_symprfx in "" "_"; do
3933 # Write the raw and C identifiers.
3934 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3936 # Check to see that the pipe works correctly.
3939 cat > conftest.$ac_ext <<EOF
3944 void nm_test_func(){}
3948 int main(){nm_test_var='a';nm_test_func();return(0);}
3951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3952 (eval $ac_compile) 2>&5
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); }; then
3956 # Now try to grab the symbols.
3958 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3959 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); } && test -s "$nlist"; then
3963 # Try sorting and uniquifying the output.
3964 if sort "$nlist" | uniq > "$nlist"T; then
3965 mv -f "$nlist"T "$nlist"
3970 # Make sure that we snagged all the symbols we need.
3971 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3972 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3973 cat <<EOF > conftest.$ac_ext
3979 # Now generate the symbol file.
3980 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3982 cat <<EOF >> conftest.$ac_ext
3983 #if defined (__STDC__) && __STDC__
3984 # define lt_ptr void *
3986 # define lt_ptr char *
3990 /* The mapping between symbol names and symbols. */
3995 lt_preloaded_symbols[] =
3998 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3999 cat <<\EOF >> conftest.$ac_ext
4007 # Now try linking the two files.
4008 mv conftest.$ac_objext conftstm.$ac_objext
4010 save_CFLAGS="$CFLAGS"
4011 LIBS="conftstm.$ac_objext"
4012 CFLAGS="$CFLAGS$no_builtin_flag"
4013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4014 (eval $ac_link) 2>&5
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); } && test -s conftest$ac_exeext; then
4021 CFLAGS="$save_CFLAGS"
4023 echo "cannot find nm_test_func in $nlist" >&5
4026 echo "cannot find nm_test_var in $nlist" >&5
4029 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4032 echo "$progname: failed program was:" >&5
4033 cat conftest.$ac_ext >&5
4035 rm -f conftest* conftst*
4037 # Do not use the global_symbol_pipe unless it works.
4038 if test "$pipe_works" = yes; then
4041 lt_cv_sys_global_symbol_pipe=
4047 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4048 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4049 global_symbol_to_cdecl=
4050 global_symbol_to_c_name_address=
4052 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4053 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4055 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4057 echo "$as_me:$LINENO: result: failed" >&5
4058 echo "${ECHO_T}failed" >&6
4060 echo "$as_me:$LINENO: result: ok" >&5
4061 echo "${ECHO_T}ok" >&6
4065 echo "$as_me:$LINENO: checking for egrep" >&5
4066 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4067 if test "${ac_cv_prog_egrep+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4071 then ac_cv_prog_egrep='grep -E'
4072 else ac_cv_prog_egrep='egrep'
4075 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4076 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4077 EGREP=$ac_cv_prog_egrep
4080 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4081 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4082 if test "${ac_cv_header_stdc+set}" = set; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
4085 cat >conftest.$ac_ext <<_ACEOF
4088 cat confdefs.h >>conftest.$ac_ext
4089 cat >>conftest.$ac_ext <<_ACEOF
4090 /* end confdefs.h. */
4104 rm -f conftest.$ac_objext
4105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4106 (eval $ac_compile) 2>conftest.er1
4108 grep -v '^ *+' conftest.er1 >conftest.err
4110 cat conftest.err >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } &&
4113 { ac_try='test -z "$ac_c_werror_flag"
4114 || test ! -s conftest.err'
4115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); }; } &&
4120 { ac_try='test -s conftest.$ac_objext'
4121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; }; then
4126 ac_cv_header_stdc=yes
4128 echo "$as_me: failed program was:" >&5
4129 sed 's/^/| /' conftest.$ac_ext >&5
4131 ac_cv_header_stdc=no
4133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4135 if test $ac_cv_header_stdc = yes; then
4136 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4137 cat >conftest.$ac_ext <<_ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h. */
4146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4147 $EGREP "memchr" >/dev/null 2>&1; then
4150 ac_cv_header_stdc=no
4156 if test $ac_cv_header_stdc = yes; then
4157 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4158 cat >conftest.$ac_ext <<_ACEOF
4161 cat confdefs.h >>conftest.$ac_ext
4162 cat >>conftest.$ac_ext <<_ACEOF
4163 /* end confdefs.h. */
4167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4168 $EGREP "free" >/dev/null 2>&1; then
4171 ac_cv_header_stdc=no
4177 if test $ac_cv_header_stdc = yes; then
4178 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4179 if test "$cross_compiling" = yes; then
4182 cat >conftest.$ac_ext <<_ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h. */
4189 #if ((' ' & 0x0FF) == 0x020)
4190 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4191 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4193 # define ISLOWER(c) \
4194 (('a' <= (c) && (c) <= 'i') \
4195 || ('j' <= (c) && (c) <= 'r') \
4196 || ('s' <= (c) && (c) <= 'z'))
4197 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4200 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4205 for (i = 0; i < 256; i++)
4206 if (XOR (islower (i), ISLOWER (i))
4207 || toupper (i) != TOUPPER (i))
4212 rm -f conftest$ac_exeext
4213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4214 (eval $ac_link) 2>&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); }; }; then
4225 echo "$as_me: program exited with status $ac_status" >&5
4226 echo "$as_me: failed program was:" >&5
4227 sed 's/^/| /' conftest.$ac_ext >&5
4230 ac_cv_header_stdc=no
4232 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4236 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4237 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4238 if test $ac_cv_header_stdc = yes; then
4240 cat >>confdefs.h <<\_ACEOF
4241 #define STDC_HEADERS 1
4246 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4256 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4257 inttypes.h stdint.h unistd.h
4259 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4260 echo "$as_me:$LINENO: checking for $ac_header" >&5
4261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4265 cat >conftest.$ac_ext <<_ACEOF
4268 cat confdefs.h >>conftest.$ac_ext
4269 cat >>conftest.$ac_ext <<_ACEOF
4270 /* end confdefs.h. */
4271 $ac_includes_default
4273 #include <$ac_header>
4275 rm -f conftest.$ac_objext
4276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4277 (eval $ac_compile) 2>conftest.er1
4279 grep -v '^ *+' conftest.er1 >conftest.err
4281 cat conftest.err >&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); } &&
4284 { ac_try='test -z "$ac_c_werror_flag"
4285 || test ! -s conftest.err'
4286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); }; } &&
4291 { ac_try='test -s conftest.$ac_objext'
4292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); }; }; then
4297 eval "$as_ac_Header=yes"
4299 echo "$as_me: failed program was:" >&5
4300 sed 's/^/| /' conftest.$ac_ext >&5
4302 eval "$as_ac_Header=no"
4304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4307 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4309 cat >>confdefs.h <<_ACEOF
4310 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4319 for ac_header in dlfcn.h
4321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4323 echo "$as_me:$LINENO: checking for $ac_header" >&5
4324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4326 echo $ECHO_N "(cached) $ECHO_C" >&6
4328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4331 # Is the header compilable?
4332 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4333 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4334 cat >conftest.$ac_ext <<_ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h. */
4340 $ac_includes_default
4341 #include <$ac_header>
4343 rm -f conftest.$ac_objext
4344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4345 (eval $ac_compile) 2>conftest.er1
4347 grep -v '^ *+' conftest.er1 >conftest.err
4349 cat conftest.err >&5
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); } &&
4352 { ac_try='test -z "$ac_c_werror_flag"
4353 || test ! -s conftest.err'
4354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); }; } &&
4359 { ac_try='test -s conftest.$ac_objext'
4360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; }; then
4365 ac_header_compiler=yes
4367 echo "$as_me: failed program was:" >&5
4368 sed 's/^/| /' conftest.$ac_ext >&5
4370 ac_header_compiler=no
4372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4373 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4374 echo "${ECHO_T}$ac_header_compiler" >&6
4376 # Is the header present?
4377 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4378 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4379 cat >conftest.$ac_ext <<_ACEOF
4382 cat confdefs.h >>conftest.$ac_ext
4383 cat >>conftest.$ac_ext <<_ACEOF
4384 /* end confdefs.h. */
4385 #include <$ac_header>
4387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4388 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4390 grep -v '^ *+' conftest.er1 >conftest.err
4392 cat conftest.err >&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); } >/dev/null; then
4395 if test -s conftest.err; then
4396 ac_cpp_err=$ac_c_preproc_warn_flag
4397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4404 if test -z "$ac_cpp_err"; then
4405 ac_header_preproc=yes
4407 echo "$as_me: failed program was:" >&5
4408 sed 's/^/| /' conftest.$ac_ext >&5
4410 ac_header_preproc=no
4412 rm -f conftest.err conftest.$ac_ext
4413 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4414 echo "${ECHO_T}$ac_header_preproc" >&6
4416 # So? What about this header?
4417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4419 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4420 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4422 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4423 ac_header_preproc=yes
4426 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4427 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4428 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4429 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4430 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4431 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4432 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4433 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4436 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4437 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4440 ## ------------------------------------------ ##
4441 ## Report this to the AC_PACKAGE_NAME lists. ##
4442 ## ------------------------------------------ ##
4445 sed "s/^/$as_me: WARNING: /" >&2
4448 echo "$as_me:$LINENO: checking for $ac_header" >&5
4449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4451 echo $ECHO_N "(cached) $ECHO_C" >&6
4453 eval "$as_ac_Header=\$ac_header_preproc"
4455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4460 cat >>confdefs.h <<_ACEOF
4461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4473 # Only perform the check for file, if the check method requires it
4474 case $deplibs_check_method in
4476 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4477 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4478 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4479 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4480 echo $ECHO_N "(cached) $ECHO_C" >&6
4484 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4487 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4490 ac_save_MAGIC_CMD="$MAGIC_CMD"
4491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4492 ac_dummy="/usr/bin:$PATH"
4493 for ac_dir in $ac_dummy; do
4494 test -z "$ac_dir" && ac_dir=.
4495 if test -f $ac_dir/${ac_tool_prefix}file; then
4496 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4497 if test -n "$file_magic_test_file"; then
4498 case $deplibs_check_method in
4500 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4501 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4502 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4503 egrep "$file_magic_regex" > /dev/null; then
4508 *** Warning: the command libtool uses to detect shared libraries,
4509 *** $file_magic_cmd, produces output that libtool cannot recognize.
4510 *** The result is that libtool may fail to recognize shared libraries
4511 *** as such. This will affect the creation of libtool libraries that
4512 *** depend on shared libraries, but programs linked with such libtool
4513 *** libraries will work regardless of this problem. Nevertheless, you
4514 *** may want to report the problem to your system manager and/or to
4515 *** bug-libtool@gnu.org
4525 MAGIC_CMD="$ac_save_MAGIC_CMD"
4530 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4531 if test -n "$MAGIC_CMD"; then
4532 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4533 echo "${ECHO_T}$MAGIC_CMD" >&6
4535 echo "$as_me:$LINENO: result: no" >&5
4536 echo "${ECHO_T}no" >&6
4539 if test -z "$lt_cv_path_MAGIC_CMD"; then
4540 if test -n "$ac_tool_prefix"; then
4541 echo "$as_me:$LINENO: checking for file" >&5
4542 echo $ECHO_N "checking for file... $ECHO_C" >&6
4543 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4544 echo $ECHO_N "(cached) $ECHO_C" >&6
4548 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4551 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4554 ac_save_MAGIC_CMD="$MAGIC_CMD"
4555 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4556 ac_dummy="/usr/bin:$PATH"
4557 for ac_dir in $ac_dummy; do
4558 test -z "$ac_dir" && ac_dir=.
4559 if test -f $ac_dir/file; then
4560 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4561 if test -n "$file_magic_test_file"; then
4562 case $deplibs_check_method in
4564 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4565 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4566 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4567 egrep "$file_magic_regex" > /dev/null; then
4572 *** Warning: the command libtool uses to detect shared libraries,
4573 *** $file_magic_cmd, produces output that libtool cannot recognize.
4574 *** The result is that libtool may fail to recognize shared libraries
4575 *** as such. This will affect the creation of libtool libraries that
4576 *** depend on shared libraries, but programs linked with such libtool
4577 *** libraries will work regardless of this problem. Nevertheless, you
4578 *** may want to report the problem to your system manager and/or to
4579 *** bug-libtool@gnu.org
4589 MAGIC_CMD="$ac_save_MAGIC_CMD"
4594 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4595 if test -n "$MAGIC_CMD"; then
4596 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4597 echo "${ECHO_T}$MAGIC_CMD" >&6
4599 echo "$as_me:$LINENO: result: no" >&5
4600 echo "${ECHO_T}no" >&6
4612 if test -n "$ac_tool_prefix"; then
4613 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4614 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4615 echo "$as_me:$LINENO: checking for $ac_word" >&5
4616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4617 if test "${ac_cv_prog_RANLIB+set}" = set; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4620 if test -n "$RANLIB"; then
4621 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 test -z "$as_dir" && as_dir=.
4628 for ac_exec_ext in '' $ac_executable_extensions; do
4629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4630 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4639 RANLIB=$ac_cv_prog_RANLIB
4640 if test -n "$RANLIB"; then
4641 echo "$as_me:$LINENO: result: $RANLIB" >&5
4642 echo "${ECHO_T}$RANLIB" >&6
4644 echo "$as_me:$LINENO: result: no" >&5
4645 echo "${ECHO_T}no" >&6
4649 if test -z "$ac_cv_prog_RANLIB"; then
4650 ac_ct_RANLIB=$RANLIB
4651 # Extract the first word of "ranlib", so it can be a program name with args.
4652 set dummy ranlib; ac_word=$2
4653 echo "$as_me:$LINENO: checking for $ac_word" >&5
4654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4655 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 if test -n "$ac_ct_RANLIB"; then
4659 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4668 ac_cv_prog_ac_ct_RANLIB="ranlib"
4669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4678 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4679 if test -n "$ac_ct_RANLIB"; then
4680 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4681 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4683 echo "$as_me:$LINENO: result: no" >&5
4684 echo "${ECHO_T}no" >&6
4687 RANLIB=$ac_ct_RANLIB
4689 RANLIB="$ac_cv_prog_RANLIB"
4692 if test -n "$ac_tool_prefix"; then
4693 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4694 set dummy ${ac_tool_prefix}strip; ac_word=$2
4695 echo "$as_me:$LINENO: checking for $ac_word" >&5
4696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4697 if test "${ac_cv_prog_STRIP+set}" = set; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
4700 if test -n "$STRIP"; then
4701 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 test -z "$as_dir" && as_dir=.
4708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4710 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4719 STRIP=$ac_cv_prog_STRIP
4720 if test -n "$STRIP"; then
4721 echo "$as_me:$LINENO: result: $STRIP" >&5
4722 echo "${ECHO_T}$STRIP" >&6
4724 echo "$as_me:$LINENO: result: no" >&5
4725 echo "${ECHO_T}no" >&6
4729 if test -z "$ac_cv_prog_STRIP"; then
4731 # Extract the first word of "strip", so it can be a program name with args.
4732 set dummy strip; ac_word=$2
4733 echo "$as_me:$LINENO: checking for $ac_word" >&5
4734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4735 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4738 if test -n "$ac_ct_STRIP"; then
4739 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4748 ac_cv_prog_ac_ct_STRIP="strip"
4749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4758 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4759 if test -n "$ac_ct_STRIP"; then
4760 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4761 echo "${ECHO_T}$ac_ct_STRIP" >&6
4763 echo "$as_me:$LINENO: result: no" >&5
4764 echo "${ECHO_T}no" >&6
4769 STRIP="$ac_cv_prog_STRIP"
4776 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4777 if test "${enable_libtool_lock+set}" = set; then
4778 enableval="$enable_libtool_lock"
4781 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4783 # Some flags need to be propagated to the compiler or linker for good
4787 # Find out which ABI we are using.
4788 echo '#line 4788 "configure"' > conftest.$ac_ext
4789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4790 (eval $ac_compile) 2>&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; then
4794 case `/usr/bin/file conftest.$ac_objext` in
4810 # Test if the compiler is 64bit
4811 echo 'int i;' > conftest.$ac_ext
4812 lt_cv_cc_64bit_output=no
4813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4814 (eval $ac_compile) 2>&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; then
4818 case `/usr/bin/file conftest.$ac_objext` in
4820 lt_cv_cc_64bit_output=yes
4828 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4829 SAVE_CFLAGS="$CFLAGS"
4830 CFLAGS="$CFLAGS -belf"
4831 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4832 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4833 if test "${lt_cv_cc_needs_belf+set}" = set; then
4834 echo $ECHO_N "(cached) $ECHO_C" >&6
4839 ac_cpp='$CPP $CPPFLAGS'
4840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4844 cat >conftest.$ac_ext <<_ACEOF
4847 cat confdefs.h >>conftest.$ac_ext
4848 cat >>conftest.$ac_ext <<_ACEOF
4849 /* end confdefs.h. */
4859 rm -f conftest.$ac_objext conftest$ac_exeext
4860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4861 (eval $ac_link) 2>conftest.er1
4863 grep -v '^ *+' conftest.er1 >conftest.err
4865 cat conftest.err >&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); } &&
4868 { ac_try='test -z "$ac_c_werror_flag"
4869 || test ! -s conftest.err'
4870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); }; } &&
4875 { ac_try='test -s conftest$ac_exeext'
4876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; }; then
4881 lt_cv_cc_needs_belf=yes
4883 echo "$as_me: failed program was:" >&5
4884 sed 's/^/| /' conftest.$ac_ext >&5
4886 lt_cv_cc_needs_belf=no
4888 rm -f conftest.err conftest.$ac_objext \
4889 conftest$ac_exeext conftest.$ac_ext
4891 ac_cpp='$CPP $CPPFLAGS'
4892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4897 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4898 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4899 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4900 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4901 CFLAGS="$SAVE_CFLAGS"
4908 # Sed substitution that helps us do robust quoting. It backslashifies
4909 # metacharacters that are still active within double-quoted strings.
4910 Xsed='sed -e s/^X//'
4911 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4913 # Same as above, but do not quote variable references.
4914 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4916 # Sed substitution to delay expansion of an escaped shell variable in a
4917 # double_quote_subst'ed string.
4918 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4924 default_ofile=libtool
4925 can_build_shared=yes
4927 # All known linkers require a `.a' archive for static linking (except M$VC,
4928 # which needs '.lib').
4930 ltmain="$ac_aux_dir/ltmain.sh"
4931 ofile="$default_ofile"
4932 with_gnu_ld="$lt_cv_prog_gnu_ld"
4933 need_locks="$enable_libtool_lock"
4936 old_CFLAGS="$CFLAGS"
4938 # Set sane defaults for various variables
4939 test -z "$AR" && AR=ar
4940 test -z "$AR_FLAGS" && AR_FLAGS=cru
4941 test -z "$AS" && AS=as
4942 test -z "$CC" && CC=cc
4943 test -z "$DLLTOOL" && DLLTOOL=dlltool
4944 test -z "$LD" && LD=ld
4945 test -z "$LN_S" && LN_S="ln -s"
4946 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4947 test -z "$NM" && NM=nm
4948 test -z "$OBJDUMP" && OBJDUMP=objdump
4949 test -z "$RANLIB" && RANLIB=:
4950 test -z "$STRIP" && STRIP=:
4951 test -z "$ac_objext" && ac_objext=o
4953 if test x"$host" != x"$build"; then
4954 ac_tool_prefix=${host_alias}-
4959 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4962 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4967 # AIX sometimes has problems with the GCC collect2 program. For some
4968 # reason, if we set the COLLECT_NAMES environment variable, the problems
4969 # vanish in a puff of smoke.
4970 if test "X${COLLECT_NAMES+set}" != Xset; then
4972 export COLLECT_NAMES
4977 # Determine commands to create old-style static archives.
4978 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4979 old_postinstall_cmds='chmod 644 $oldlib'
4980 old_postuninstall_cmds=
4982 if test -n "$RANLIB"; then
4985 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4988 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4991 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4994 # Allow CC to be a program name with arguments.
4998 echo "$as_me:$LINENO: checking for objdir" >&5
4999 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5000 rm -f .libs 2>/dev/null
5001 mkdir .libs 2>/dev/null
5002 if test -d .libs; then
5005 # MS-DOS does not allow filenames that begin with a dot.
5008 rmdir .libs 2>/dev/null
5009 echo "$as_me:$LINENO: result: $objdir" >&5
5010 echo "${ECHO_T}$objdir" >&6
5014 # Check whether --with-pic or --without-pic was given.
5015 if test "${with_pic+set}" = set; then
5021 test -z "$pic_mode" && pic_mode=default
5023 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5024 # in isolation, and that seeing it set (from the cache) indicates that
5025 # the associated values are set (in the cache) correctly too.
5026 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5027 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5028 if test "${lt_cv_prog_cc_pic+set}" = set; then
5029 echo $ECHO_N "(cached) $ECHO_C" >&6
5032 lt_cv_prog_cc_shlib=
5034 lt_cv_prog_cc_static=
5035 lt_cv_prog_cc_no_builtin=
5036 lt_cv_prog_cc_can_build_shared=$can_build_shared
5038 if test "$GCC" = yes; then
5039 lt_cv_prog_cc_wl='-Wl,'
5040 lt_cv_prog_cc_static='-static'
5044 # Below there is a dirty hack to force normal static linking with -ldl
5045 # The problem is because libdl dynamically linked with both libc and
5046 # libC (AIX C++ library), which obviously doesn't included in libraries
5047 # list by gcc. This cause undefined symbols with -static flags.
5048 # This hack allows C programs to be linked with "-static -ldl", but
5049 # not sure about C++ programs.
5050 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5053 # FIXME: we need at least 68020 code to build shared libraries, but
5054 # adding the `-m68020' flag to GCC prevents building anything better,
5056 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5058 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5059 # PIC is the default for these OSes.
5061 darwin* | rhapsody*)
5062 # PIC is the default on this platform
5063 # Common symbols not allowed in MH_DYLIB files
5064 lt_cv_prog_cc_pic='-fno-common'
5066 cygwin* | mingw* | pw32* | os2*)
5067 # This hack is so that the source file can tell whether it is being
5068 # built for inclusion in a dll (and should export symbols for example).
5069 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5072 if test -d /usr/nec; then
5073 lt_cv_prog_cc_pic=-Kconform_pic
5077 lt_cv_prog_cc_pic='-fPIC'
5081 # PORTME Check for PIC flags for the system compiler.
5083 aix3* | aix4* | aix5*)
5084 lt_cv_prog_cc_wl='-Wl,'
5085 # All AIX code is PIC.
5086 if test "$host_cpu" = ia64; then
5087 # AIX 5 now supports IA64 processor
5088 lt_cv_prog_cc_static='-Bstatic'
5090 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5094 hpux9* | hpux10* | hpux11*)
5095 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5096 lt_cv_prog_cc_wl='-Wl,'
5097 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5098 lt_cv_prog_cc_pic='+Z'
5101 irix5* | irix6* | nonstopux*)
5102 lt_cv_prog_cc_wl='-Wl,'
5103 lt_cv_prog_cc_static='-non_shared'
5104 # PIC (with -KPIC) is the default.
5107 cygwin* | mingw* | pw32* | os2*)
5108 # This hack is so that the source file can tell whether it is being
5109 # built for inclusion in a dll (and should export symbols for example).
5110 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5114 lt_cv_prog_cc_pic='-KPIC'
5115 lt_cv_prog_cc_static='-Bstatic'
5118 osf3* | osf4* | osf5*)
5119 # All OSF/1 code is PIC.
5120 lt_cv_prog_cc_wl='-Wl,'
5121 lt_cv_prog_cc_static='-non_shared'
5125 lt_cv_prog_cc_pic='-Kpic'
5126 lt_cv_prog_cc_static='-dn'
5127 lt_cv_prog_cc_shlib='-belf'
5131 lt_cv_prog_cc_pic='-KPIC'
5132 lt_cv_prog_cc_static='-Bstatic'
5133 lt_cv_prog_cc_wl='-Wl,'
5137 lt_cv_prog_cc_pic='-PIC'
5138 lt_cv_prog_cc_static='-Bstatic'
5139 lt_cv_prog_cc_wl='-Qoption ld '
5142 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5143 lt_cv_prog_cc_pic='-KPIC'
5144 lt_cv_prog_cc_static='-Bstatic'
5145 lt_cv_prog_cc_wl='-Wl,'
5149 lt_cv_prog_cc_pic='-pic'
5150 lt_cv_prog_cc_static='-Bstatic'
5154 if test -d /usr/nec ;then
5155 lt_cv_prog_cc_pic='-Kconform_pic'
5156 lt_cv_prog_cc_static='-Bstatic'
5161 lt_cv_prog_cc_can_build_shared=no
5168 if test -z "$lt_cv_prog_cc_pic"; then
5169 echo "$as_me:$LINENO: result: none" >&5
5170 echo "${ECHO_T}none" >&6
5172 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5173 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5175 # Check to make sure the pic_flag actually works.
5176 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5177 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5178 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 save_CFLAGS="$CFLAGS"
5182 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5183 cat >conftest.$ac_ext <<_ACEOF
5186 cat confdefs.h >>conftest.$ac_ext
5187 cat >>conftest.$ac_ext <<_ACEOF
5188 /* end confdefs.h. */
5198 rm -f conftest.$ac_objext
5199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5200 (eval $ac_compile) 2>conftest.er1
5202 grep -v '^ *+' conftest.er1 >conftest.err
5204 cat conftest.err >&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); } &&
5207 { ac_try='test -z "$ac_c_werror_flag"
5208 || test ! -s conftest.err'
5209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); }; } &&
5214 { ac_try='test -s conftest.$ac_objext'
5215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); }; }; then
5221 hpux9* | hpux10* | hpux11*)
5222 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5223 # they create non-PIC objects. So, if there were any warnings, we
5224 # assume that PIC is not supported.
5225 if test -s conftest.err; then
5226 lt_cv_prog_cc_pic_works=no
5228 lt_cv_prog_cc_pic_works=yes
5232 lt_cv_prog_cc_pic_works=yes
5237 echo "$as_me: failed program was:" >&5
5238 sed 's/^/| /' conftest.$ac_ext >&5
5240 lt_cv_prog_cc_pic_works=no
5243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5244 CFLAGS="$save_CFLAGS"
5249 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5251 lt_cv_prog_cc_can_build_shared=no
5253 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5256 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5257 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5260 # Check for any special shared library compilation flags.
5261 if test -n "$lt_cv_prog_cc_shlib"; then
5262 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5263 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5264 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5266 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5267 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5268 lt_cv_prog_cc_can_build_shared=no
5272 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5273 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5274 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5275 echo $ECHO_N "(cached) $ECHO_C" >&6
5277 lt_cv_prog_cc_static_works=no
5278 save_LDFLAGS="$LDFLAGS"
5279 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5280 cat >conftest.$ac_ext <<_ACEOF
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h. */
5295 rm -f conftest.$ac_objext conftest$ac_exeext
5296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5297 (eval $ac_link) 2>conftest.er1
5299 grep -v '^ *+' conftest.er1 >conftest.err
5301 cat conftest.err >&5
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); } &&
5304 { ac_try='test -z "$ac_c_werror_flag"
5305 || test ! -s conftest.err'
5306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); }; } &&
5311 { ac_try='test -s conftest$ac_exeext'
5312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); }; }; then
5317 lt_cv_prog_cc_static_works=yes
5319 echo "$as_me: failed program was:" >&5
5320 sed 's/^/| /' conftest.$ac_ext >&5
5323 rm -f conftest.err conftest.$ac_objext \
5324 conftest$ac_exeext conftest.$ac_ext
5325 LDFLAGS="$save_LDFLAGS"
5330 # Belt *and* braces to stop my trousers falling down:
5331 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5332 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5333 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5335 pic_flag="$lt_cv_prog_cc_pic"
5336 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5337 wl="$lt_cv_prog_cc_wl"
5338 link_static_flag="$lt_cv_prog_cc_static"
5339 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5340 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5343 # Check to see if options -o and -c are simultaneously supported by compiler
5344 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5345 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5346 if test "${lt_cv_compiler_c_o+set}" = set; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5350 $rm -r conftest 2>/dev/null
5353 echo "int some_variable = 0;" > conftest.$ac_ext
5355 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5356 # that will create temporary files in the current directory regardless of
5357 # the output directory. Thus, making CWD read-only will cause this test
5358 # to fail, enabling locking or at least warning the user not to do parallel
5361 save_CFLAGS="$CFLAGS"
5362 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5364 if { (eval echo configure:5364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5365 # The compiler can only warn and ignore the option if not recognized
5366 # So say no if there are warnings
5367 if test -s out/conftest.err; then
5368 lt_cv_compiler_c_o=no
5370 lt_cv_compiler_c_o=yes
5373 # Append any errors to the config.log.
5374 cat out/conftest.err 1>&5
5375 lt_cv_compiler_c_o=no
5377 CFLAGS="$save_CFLAGS"
5383 $rm -r conftest 2>/dev/null
5387 compiler_c_o=$lt_cv_compiler_c_o
5388 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5389 echo "${ECHO_T}$compiler_c_o" >&6
5391 if test x"$compiler_c_o" = x"yes"; then
5392 # Check to see if we can write to a .lo
5393 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5394 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5395 if test "${lt_cv_compiler_o_lo+set}" = set; then
5396 echo $ECHO_N "(cached) $ECHO_C" >&6
5399 lt_cv_compiler_o_lo=no
5400 save_CFLAGS="$CFLAGS"
5401 CFLAGS="$CFLAGS -c -o conftest.lo"
5402 save_objext="$ac_objext"
5404 cat >conftest.$ac_ext <<_ACEOF
5407 cat confdefs.h >>conftest.$ac_ext
5408 cat >>conftest.$ac_ext <<_ACEOF
5409 /* end confdefs.h. */
5414 int some_variable = 0;
5419 rm -f conftest.$ac_objext
5420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5421 (eval $ac_compile) 2>conftest.er1
5423 grep -v '^ *+' conftest.er1 >conftest.err
5425 cat conftest.err >&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); } &&
5428 { ac_try='test -z "$ac_c_werror_flag"
5429 || test ! -s conftest.err'
5430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); }; } &&
5435 { ac_try='test -s conftest.$ac_objext'
5436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); }; }; then
5441 # The compiler can only warn and ignore the option if not recognized
5442 # So say no if there are warnings
5443 if test -s conftest.err; then
5444 lt_cv_compiler_o_lo=no
5446 lt_cv_compiler_o_lo=yes
5450 echo "$as_me: failed program was:" >&5
5451 sed 's/^/| /' conftest.$ac_ext >&5
5454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5455 ac_objext="$save_objext"
5456 CFLAGS="$save_CFLAGS"
5460 compiler_o_lo=$lt_cv_compiler_o_lo
5461 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5462 echo "${ECHO_T}$compiler_o_lo" >&6
5467 # Check to see if we can do hard links to lock some files if needed
5468 hard_links="nottested"
5469 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5470 # do not overwrite the value of need_locks provided by the user
5471 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5472 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5475 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5477 ln conftest.a conftest.b 2>&5 || hard_links=no
5478 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5479 echo "$as_me:$LINENO: result: $hard_links" >&5
5480 echo "${ECHO_T}$hard_links" >&6
5481 if test "$hard_links" = no; then
5482 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5483 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5490 if test "$GCC" = yes; then
5491 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5492 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5493 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5494 echo "int some_variable = 0;" > conftest.$ac_ext
5495 save_CFLAGS="$CFLAGS"
5496 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5497 compiler_rtti_exceptions=no
5498 cat >conftest.$ac_ext <<_ACEOF
5501 cat confdefs.h >>conftest.$ac_ext
5502 cat >>conftest.$ac_ext <<_ACEOF
5503 /* end confdefs.h. */
5508 int some_variable = 0;
5513 rm -f conftest.$ac_objext
5514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5515 (eval $ac_compile) 2>conftest.er1
5517 grep -v '^ *+' conftest.er1 >conftest.err
5519 cat conftest.err >&5
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); } &&
5522 { ac_try='test -z "$ac_c_werror_flag"
5523 || test ! -s conftest.err'
5524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); }; } &&
5529 { ac_try='test -s conftest.$ac_objext'
5530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); }; }; then
5535 # The compiler can only warn and ignore the option if not recognized
5536 # So say no if there are warnings
5537 if test -s conftest.err; then
5538 compiler_rtti_exceptions=no
5540 compiler_rtti_exceptions=yes
5544 echo "$as_me: failed program was:" >&5
5545 sed 's/^/| /' conftest.$ac_ext >&5
5548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5549 CFLAGS="$save_CFLAGS"
5550 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5551 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5553 if test "$compiler_rtti_exceptions" = "yes"; then
5554 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5556 no_builtin_flag=' -fno-builtin'
5560 # See if the linker supports building shared libraries.
5561 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5562 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5564 allow_undefined_flag=
5566 need_lib_prefix=unknown
5567 need_version=unknown
5568 # when you set need_version to no, make sure it does not cause -set_version
5569 # flags to be left without arguments
5571 archive_expsym_cmds=
5572 old_archive_from_new_cmds=
5573 old_archive_from_expsyms_cmds=
5574 export_dynamic_flag_spec=
5575 whole_archive_flag_spec=
5576 thread_safe_flag_spec=
5577 hardcode_into_libs=no
5578 hardcode_libdir_flag_spec=
5579 hardcode_libdir_separator=
5582 hardcode_shlibpath_var=unsupported
5584 link_all_deplibs=unknown
5585 always_export_symbols=no
5586 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5587 # include_expsyms should be a list of space-separated symbols to be *always*
5588 # included in the symbol list
5590 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5591 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5592 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5593 # as well as any symbol that contains `d'.
5594 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5595 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5596 # platforms (ab)use it in PIC code, but their linkers get confused if
5597 # the symbol is explicitly referenced. Since portable code cannot
5598 # rely on this symbol name, it's probably fine to never include it in
5599 # preloaded symbol tables.
5600 extract_expsyms_cmds=
5603 cygwin* | mingw* | pw32*)
5604 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5605 # When not using gcc, we currently assume that we are using
5606 # Microsoft Visual C++.
5607 if test "$GCC" != yes; then
5617 if test "$with_gnu_ld" = yes; then
5618 # If archive_cmds runs LD, not CC, wlarc should be empty
5621 # See if GNU ld supports shared libraries.
5623 aix3* | aix4* | aix5*)
5624 # On AIX, the GNU linker is very broken
5625 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5629 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5630 *** to be unable to reliably create shared libraries on AIX.
5631 *** Therefore, libtool is disabling shared libraries support. If you
5632 *** really care for shared libraries, you may want to modify your PATH
5633 *** so that a non-GNU linker is found, and then restart.
5639 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)'
5640 hardcode_libdir_flag_spec='-L$libdir'
5641 hardcode_minus_L=yes
5643 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5644 # that the semantics of dynamic libraries on AmigaOS, at least up
5645 # to version 4, is to share data among multiple programs linked
5646 # with the same dynamic library. Since this doesn't match the
5647 # behavior of shared libraries on other platforms, we can use
5653 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5654 allow_undefined_flag=unsupported
5655 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5656 # support --undefined. This deserves some investigation. FIXME
5657 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5663 cygwin* | mingw* | pw32*)
5664 # hardcode_libdir_flag_spec is actually meaningless, as there is
5665 # no search path for DLLs.
5666 hardcode_libdir_flag_spec='-L$libdir'
5667 allow_undefined_flag=unsupported
5668 always_export_symbols=yes
5670 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5671 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5672 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5673 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5674 else $CC -o impgen impgen.c ; fi)~
5675 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5677 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5679 # cygwin and mingw dlls have different entry points and sets of symbols
5681 # FIXME: what about values for MSVC?
5682 dll_entry=__cygwin_dll_entry@12
5683 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5687 dll_entry=_DllMainCRTStartup@12
5688 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5692 # mingw and cygwin differ, and it's simplest to just exclude the union
5693 # of the two symbol sets.
5694 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5696 # recent cygwin and mingw systems supply a stub DllMain which the user
5697 # can override, but on older systems we have to supply one (in ltdll.c)
5698 if test "x$lt_cv_need_dllmain" = "xyes"; then
5699 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5700 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~
5701 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5707 # Extract the symbol export list from an `--export-all' def file,
5708 # then regenerate the def file from the symbol export list, so that
5709 # the compiled dll only exports the symbol export list.
5710 # Be careful not to strip the DATA tag left be newer dlltools.
5711 export_symbols_cmds="$ltdll_cmds"'
5712 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5713 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5715 # If the export-symbols file already is a .def file (1st line
5716 # is EXPORTS), use it as is.
5717 # If DATA tags from a recent dlltool are present, honour them!
5718 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5719 cp $export_symbols $output_objdir/$soname-def;
5721 echo EXPORTS > $output_objdir/$soname-def;
5723 cat $export_symbols | while read symbol; do
5726 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5727 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5728 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5730 _lt_hint=`expr 1 + \$_lt_hint`;
5734 $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~
5735 $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~
5736 $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~
5737 $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~
5738 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5742 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5743 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5746 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5747 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5752 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5756 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5757 *** create shared libraries on Solaris systems. Therefore, libtool
5758 *** is disabling shared libraries support. We urge you to upgrade GNU
5759 *** binutils to release 2.9.1 or newer. Another option is to modify
5760 *** your PATH or compiler configuration so that the native linker is
5761 *** used, and then restart.
5764 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5765 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5766 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5773 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5776 hardcode_shlibpath_var=no
5780 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5781 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5782 supports_anon_versioning=no
5783 case `$LD -v 2>/dev/null` in
5784 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
5785 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5786 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5787 *\ 2.11.*) ;; # other 2.11 versions
5788 *) supports_anon_versioning=yes ;;
5790 if test $supports_anon_versioning = yes; then
5791 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
5792 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5793 $echo "local: *; };" >> $output_objdir/$libname.ver~
5794 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5796 $archive_expsym_cmds="$archive_cmds"
5804 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5805 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5806 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5813 if test "$ld_shlibs" = yes; then
5814 runpath_var=LD_RUN_PATH
5815 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5816 export_dynamic_flag_spec='${wl}--export-dynamic'
5818 cygwin* | mingw* | pw32*)
5819 # dlltool doesn't understand --whole-archive et. al.
5820 whole_archive_flag_spec=
5823 # ancient GNU ld didn't support --whole-archive et. al.
5824 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5825 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5827 whole_archive_flag_spec=
5833 # PORTME fill in a description of your system's linker (not GNU ld)
5836 allow_undefined_flag=unsupported
5837 always_export_symbols=yes
5838 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'
5839 # Note: this linker hardcodes the directories in LIBPATH if there
5840 # are no directories specified by -L.
5841 hardcode_minus_L=yes
5842 if test "$GCC" = yes && test -z "$link_static_flag"; then
5843 # Neither direct hardcoding nor static linking is supported with a
5845 hardcode_direct=unsupported
5850 if test "$host_cpu" = ia64; then
5851 # On IA64, the linker does run time linking by default, so we don't
5852 # have to do anything special.
5853 aix_use_runtimelinking=no
5854 exp_sym_flag='-Bexport'
5857 aix_use_runtimelinking=no
5859 # Test if we are trying to use run time linking or normal
5860 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5861 # need to do runtime linking.
5862 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5863 for ld_flag in $LDFLAGS; do
5866 aix_use_runtimelinking=yes
5873 exp_sym_flag='-bexport'
5874 no_entry_flag='-bnoentry'
5877 # When large executables or shared objects are built, AIX ld can
5878 # have problems creating the table of contents. If linking a library
5879 # or program results in "error TOC overflow" add -mminimal-toc to
5880 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5881 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5885 hardcode_libdir_separator=':'
5886 if test "$GCC" = yes; then
5887 case $host_os in aix4.[012]|aix4.[012].*)
5888 collect2name=`${CC} -print-prog-name=collect2`
5889 if test -f "$collect2name" && \
5890 strings "$collect2name" | grep resolve_lib_name >/dev/null
5892 # We have reworked collect2
5895 # We have old collect2
5896 hardcode_direct=unsupported
5897 # It fails to find uninstalled libraries when the uninstalled
5898 # path is not listed in the libpath. Setting hardcode_minus_L
5899 # to unsupported forces relinking
5900 hardcode_minus_L=yes
5901 hardcode_libdir_flag_spec='-L$libdir'
5902 hardcode_libdir_separator=
5906 shared_flag='-shared'
5909 if test "$host_cpu" = ia64; then
5910 shared_flag='${wl}-G'
5912 if test "$aix_use_runtimelinking" = yes; then
5913 shared_flag='${wl}-G'
5915 shared_flag='${wl}-bM:SRE'
5920 # It seems that -bexpall can do strange things, so it is better to
5921 # generate a list of symbols to export.
5922 always_export_symbols=yes
5923 if test "$aix_use_runtimelinking" = yes; then
5924 # Warning - without using the other runtime loading flags (-brtl),
5925 # -berok will link without error, but may produce a broken library.
5926 allow_undefined_flag='-berok'
5927 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5928 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"
5930 if test "$host_cpu" = ia64; then
5931 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5932 allow_undefined_flag="-z nodefs"
5933 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"
5935 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5936 # Warning - without using the other run time loading flags,
5937 # -berok will link without error, but may produce a broken library.
5938 allow_undefined_flag='${wl}-berok'
5939 # This is a bit strange, but is similar to how AIX traditionally builds
5940 # it's shared libraries.
5941 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'
5947 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)'
5948 hardcode_libdir_flag_spec='-L$libdir'
5949 hardcode_minus_L=yes
5950 # see comment about different semantics on the GNU ld section
5954 cygwin* | mingw* | pw32*)
5955 # When not using gcc, we currently assume that we are using
5956 # Microsoft Visual C++.
5957 # hardcode_libdir_flag_spec is actually meaningless, as there is
5958 # no search path for DLLs.
5959 hardcode_libdir_flag_spec=' '
5960 allow_undefined_flag=unsupported
5961 # Tell ltmain to make .lib files, not .a files.
5963 # FIXME: Setting linknames here is a bad hack.
5964 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5965 # The linker will automatically build a .lib file if we build a DLL.
5966 old_archive_from_new_cmds='true'
5967 # FIXME: Should let the user specify the lib program.
5968 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5969 fix_srcfile_path='`cygpath -w "$srcfile"`'
5972 darwin* | rhapsody*)
5974 rhapsody* | darwin1.[012])
5975 allow_undefined_flag='-undefined suppress'
5978 allow_undefined_flag='-flat_namespace -undefined suppress'
5981 # FIXME: Relying on posixy $() will cause problems for
5982 # cross-compilation, but unfortunately the echo tests do not
5983 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5984 # `"' quotes if we put them in here... so don't!
5985 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)'
5986 # We need to add '_' to the symbols in $export_symbols first
5987 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5989 hardcode_shlibpath_var=no
5990 whole_archive_flag_spec='-all_load $convenience'
5997 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5998 # support. Future versions do this automatically, but an explicit c++rt0.o
5999 # does not break anything, and helps significantly (at the cost of a little
6002 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6003 hardcode_libdir_flag_spec='-R$libdir'
6005 hardcode_shlibpath_var=no
6008 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6010 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6012 hardcode_minus_L=yes
6013 hardcode_shlibpath_var=no
6016 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6018 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6019 hardcode_libdir_flag_spec='-R$libdir'
6021 hardcode_shlibpath_var=no
6024 hpux9* | hpux10* | hpux11*)
6026 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' ;;
6027 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6029 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6030 hardcode_libdir_separator=:
6032 hardcode_minus_L=yes # Not in the search PATH, but as the default
6033 # location of the library.
6034 export_dynamic_flag_spec='${wl}-E'
6037 irix5* | irix6* | nonstopux*)
6038 if test "$GCC" = yes; then
6039 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'
6040 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6042 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'
6043 hardcode_libdir_flag_spec='-rpath $libdir'
6045 hardcode_libdir_separator=:
6046 link_all_deplibs=yes
6050 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6051 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6053 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6055 hardcode_libdir_flag_spec='-R$libdir'
6057 hardcode_shlibpath_var=no
6061 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6063 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6064 hardcode_libdir_separator=:
6065 hardcode_shlibpath_var=no
6070 hardcode_shlibpath_var=no
6071 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6072 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6073 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6074 export_dynamic_flag_spec='${wl}-E'
6077 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6078 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6079 hardcode_libdir_flag_spec='-R$libdir'
6082 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6083 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6090 hardcode_libdir_flag_spec='-L$libdir'
6091 hardcode_minus_L=yes
6092 allow_undefined_flag=unsupported
6093 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'
6094 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6098 if test "$GCC" = yes; then
6099 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6100 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'
6102 allow_undefined_flag=' -expect_unresolved \*'
6103 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'
6105 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6106 hardcode_libdir_separator=:
6109 osf4* | osf5*) # as osf3* with the addition of -msym flag
6110 if test "$GCC" = yes; then
6111 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6112 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'
6113 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6115 allow_undefined_flag=' -expect_unresolved \*'
6116 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'
6117 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6118 $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'
6120 #Both c and cxx compiler support -rpath directly
6121 hardcode_libdir_flag_spec='-rpath $libdir'
6123 hardcode_libdir_separator=:
6127 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6128 hardcode_shlibpath_var=no
6129 runpath_var=LD_RUN_PATH
6130 hardcode_runpath_var=yes
6131 export_dynamic_flag_spec='${wl}-Bexport'
6135 # gcc --version < 3.0 without binutils cannot create self contained
6136 # shared libraries reliably, requiring libgcc.a to resolve some of
6137 # the object symbols generated in some cases. Libraries that use
6138 # assert need libgcc.a to resolve __eprintf, for example. Linking
6139 # a copy of libgcc.a into every shared library to guarantee resolving
6140 # such symbols causes other problems: According to Tim Van Holder
6141 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6142 # (to the application) exception stack for one thing.
6143 no_undefined_flag=' -z defs'
6144 if test "$GCC" = yes; then
6145 case `$CC --version 2>/dev/null` in
6149 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6150 *** create self contained shared libraries on Solaris systems, without
6151 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6152 *** -no-undefined support, which will at least allow you to build shared
6153 *** libraries. However, you may find that when you link such libraries
6154 *** into an application without using GCC, you have to manually add
6155 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6156 *** upgrade to a newer version of GCC. Another option is to rebuild your
6157 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6164 # $CC -shared without GNU ld will not create a library from C++
6165 # object files and a static libstdc++, better avoid it by now
6166 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6167 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6168 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6169 hardcode_libdir_flag_spec='-R$libdir'
6170 hardcode_shlibpath_var=no
6172 solaris2.[0-5] | solaris2.[0-5].*) ;;
6173 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6174 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6176 link_all_deplibs=yes
6180 if test "x$host_vendor" = xsequent; then
6181 # Use $CC to link under sequent, because it throws in some extra .o
6182 # files that make .init and .fini sections work.
6183 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6185 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6187 hardcode_libdir_flag_spec='-L$libdir'
6189 hardcode_minus_L=yes
6190 hardcode_shlibpath_var=no
6194 case $host_vendor in
6196 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6197 hardcode_direct=yes # is this really true???
6200 ## LD is ld it makes a PLAMLIB
6201 ## CC just makes a GrossModule.
6202 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6203 reload_cmds='$CC -r -o $output$reload_objs'
6207 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6208 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6211 runpath_var='LD_RUN_PATH'
6212 hardcode_shlibpath_var=no
6216 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6217 hardcode_shlibpath_var=no
6218 export_dynamic_flag_spec='-Bexport'
6222 no_undefined_flag=' -z text'
6223 # $CC -shared without GNU ld will not create a library from C++
6224 # object files and a static libstdc++, better avoid it by now
6225 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6226 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6227 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6228 hardcode_libdir_flag_spec=
6229 hardcode_shlibpath_var=no
6230 runpath_var='LD_RUN_PATH'
6234 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6235 hardcode_libdir_flag_spec='-L$libdir'
6236 hardcode_shlibpath_var=no
6240 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6241 hardcode_libdir_flag_spec='-L$libdir'
6242 hardcode_shlibpath_var=no
6246 if test -d /usr/nec; then
6247 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6248 hardcode_shlibpath_var=no
6249 runpath_var=LD_RUN_PATH
6250 hardcode_runpath_var=yes
6256 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6259 hardcode_shlibpath_var=no
6260 hardcode_runpath_var=yes
6261 runpath_var=LD_RUN_PATH
6264 sysv5uw7* | unixware7*)
6265 no_undefined_flag='${wl}-z ${wl}text'
6266 if test "$GCC" = yes; then
6267 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6269 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6271 runpath_var='LD_RUN_PATH'
6272 hardcode_shlibpath_var=no
6280 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6281 echo "${ECHO_T}$ld_shlibs" >&6
6282 test "$ld_shlibs" = no && can_build_shared=no
6284 # Check hardcoding attributes.
6285 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6286 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6288 if test -n "$hardcode_libdir_flag_spec" || \
6289 test -n "$runpath_var"; then
6291 # We can hardcode non-existant directories.
6292 if test "$hardcode_direct" != no &&
6293 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6294 # have to relink, otherwise we might link with an installed library
6295 # when we should be linking with a yet-to-be-installed one
6296 ## test "$hardcode_shlibpath_var" != no &&
6297 test "$hardcode_minus_L" != no; then
6298 # Linking always hardcodes the temporary library directory.
6299 hardcode_action=relink
6301 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6302 hardcode_action=immediate
6305 # We cannot hardcode anything, or else we can only hardcode existing
6307 hardcode_action=unsupported
6309 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6310 echo "${ECHO_T}$hardcode_action" >&6
6314 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6315 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6316 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6317 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6318 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6319 echo "$as_me:$LINENO: result: yes" >&5
6320 echo "${ECHO_T}yes" >&6
6322 echo "$as_me:$LINENO: result: no" >&5
6323 echo "${ECHO_T}no" >&6
6326 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6327 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6329 # PORTME Fill in your ld.so characteristics
6330 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6331 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6333 libname_spec='lib$name'
6340 shlibpath_overrides_runpath=unknown
6342 dynamic_linker="$host_os ld.so"
6343 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib"
6344 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib"
6349 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6350 shlibpath_var=LIBPATH
6352 # AIX has no versioning support, so we append a major version to the name.
6353 soname_spec='${libname}${release}.so$major'
6360 hardcode_into_libs=yes
6361 if test "$host_cpu" = ia64; then
6362 # AIX 5 supports IA64
6363 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6364 shlibpath_var=LD_LIBRARY_PATH
6366 # With GCC up to 2.95.x, collect2 would create an import file
6367 # for dependence libraries. The import file would start with
6368 # the line `#! .'. This would cause the generated library to
6369 # depend on `.', always an invalid library. This was fixed in
6370 # development snapshots of GCC prior to 3.0.
6372 aix4 | aix4.[01] | aix4.[01].*)
6373 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6375 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6382 # AIX (on Power*) has no versioning support, so currently we can
6383 # not hardcode correct soname into executable. Probably we can
6384 # add versioning support to collect2, so additional links can
6385 # be useful in future.
6386 if test "$aix_use_runtimelinking" = yes; then
6387 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6388 # instead of lib<name>.a to let people know that these are not
6389 # typical AIX shared libraries.
6390 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6392 # We preserve .a as extension for shared libraries through AIX4.2
6393 # and later when we are not doing run time linking.
6394 library_names_spec='${libname}${release}.a $libname.a'
6395 soname_spec='${libname}${release}.so$major'
6397 shlibpath_var=LIBPATH
6399 hardcode_into_libs=yes
6403 library_names_spec='$libname.ixlibrary $libname.a'
6404 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6405 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'
6409 library_names_spec='${libname}.so'
6410 dynamic_linker="$host_os ld.so"
6411 shlibpath_var=LIBRARY_PATH
6417 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6418 soname_spec='${libname}${release}.so$major'
6419 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6420 shlibpath_var=LD_LIBRARY_PATH
6421 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6422 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6423 export_dynamic_flag_spec=-rdynamic
6424 # the default ld.so.conf also contains /usr/contrib/lib and
6425 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6426 # libtool to hard-code these into programs
6429 cygwin* | mingw* | pw32*)
6430 version_type=windows
6433 case $GCC,$host_os in
6435 library_names_spec='$libname.dll.a'
6436 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6437 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6438 dldir=$destdir/`dirname \$dlpath`~
6439 test -d \$dldir || mkdir -p \$dldir~
6440 $install_prog .libs/$dlname \$dldir/$dlname'
6441 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6442 dlpath=$dir/\$dldll~
6446 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6447 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6450 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6453 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6456 dynamic_linker='Win32 ld.exe'
6457 # FIXME: first we should search . and the directory the executable is in
6461 darwin* | rhapsody*)
6462 dynamic_linker="$host_os dyld"
6466 # FIXME: Relying on posixy $() will cause problems for
6467 # cross-compilation, but unfortunately the echo tests do not
6468 # yet detect zsh echo's removal of \ escapes.
6469 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)'
6470 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6471 shlibpath_overrides_runpath=yes
6472 shlibpath_var=DYLD_LIBRARY_PATH
6480 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6481 version_type=freebsd-$objformat
6482 case $version_type in
6484 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6489 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6493 shlibpath_var=LD_LIBRARY_PATH
6496 shlibpath_overrides_runpath=yes
6499 shlibpath_overrides_runpath=no
6500 hardcode_into_libs=yes
6509 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6510 soname_spec='${libname}${release}.so$major'
6511 shlibpath_var=LD_LIBRARY_PATH
6512 hardcode_into_libs=yes
6515 hpux9* | hpux10* | hpux11*)
6516 # Give a soname corresponding to the major version so that dld.sl refuses to
6517 # link against other versions.
6518 dynamic_linker="$host_os dld.sl"
6522 shlibpath_var=SHLIB_PATH
6523 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6524 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6525 soname_spec='${libname}${release}.sl$major'
6526 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6527 postinstall_cmds='chmod 555 $lib'
6530 irix5* | irix6* | nonstopux*)
6532 nonstopux*) version_type=nonstopux ;;
6533 *) version_type=irix ;;
6537 soname_spec='${libname}${release}.so$major'
6538 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6540 irix5* | nonstopux*)
6544 case $LD in # libtool.m4 will add one of these switches to LD
6545 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6546 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6547 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6548 *) libsuff= shlibsuff= libmagic=never-match;;
6552 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6553 shlibpath_overrides_runpath=no
6554 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6555 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6558 # No shared lib support for Linux oldld, aout, or coff.
6559 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6563 # This must be Linux ELF.
6568 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6569 soname_spec='${libname}${release}.so$major'
6570 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6571 shlibpath_var=LD_LIBRARY_PATH
6572 shlibpath_overrides_runpath=no
6573 # This implies no fast_install, which is unacceptable.
6574 # Some rework will be needed to allow for fast_install
6575 # before this can be enabled.
6576 hardcode_into_libs=yes
6578 case $host_cpu:$lt_cv_cc_64bit_output in
6579 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
6580 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
6581 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
6585 # We used to test for /lib/ld.so.1 and disable shared libraries on
6586 # powerpc, because MkLinux only supported shared libraries with the
6587 # GNU dynamic linker. Since this was broken with cross compilers,
6588 # most powerpc-linux boxes support dynamic linking these days and
6589 # people can always --disable-shared, the test was removed, and we
6590 # assume the GNU/Linux dynamic linker is in use.
6591 dynamic_linker='GNU/Linux ld.so'
6593 # Find out which ABI we are using (multilib Linux x86_64 hack).
6597 echo '#line 6597 "configure"' > conftest.$ac_ext
6598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6599 (eval $ac_compile) 2>&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); }; then
6603 case `/usr/bin/file conftest.$ac_objext` in
6614 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
6615 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
6622 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6623 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6625 dynamic_linker='NetBSD (a.out) ld.so'
6627 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6628 soname_spec='${libname}${release}.so$major'
6629 dynamic_linker='NetBSD ld.elf_so'
6631 shlibpath_var=LD_LIBRARY_PATH
6632 shlibpath_overrides_runpath=yes
6633 hardcode_into_libs=yes
6638 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6639 shlibpath_var=LD_LIBRARY_PATH
6640 shlibpath_overrides_runpath=yes
6647 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6649 openbsd2.[89] | openbsd2.[89].*)
6650 shlibpath_overrides_runpath=no
6653 shlibpath_overrides_runpath=yes
6657 shlibpath_overrides_runpath=yes
6659 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6660 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6661 shlibpath_var=LD_LIBRARY_PATH
6665 libname_spec='$name'
6667 library_names_spec='$libname.dll $libname.a'
6668 dynamic_linker='OS/2 ld.exe'
6669 shlibpath_var=LIBPATH
6672 osf3* | osf4* | osf5*)
6675 soname_spec='${libname}${release}.so$major'
6676 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6677 shlibpath_var=LD_LIBRARY_PATH
6678 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6679 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6680 hardcode_into_libs=yes
6685 soname_spec='${libname}${release}.so$major'
6686 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6687 shlibpath_var=LD_LIBRARY_PATH
6694 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6695 soname_spec='${libname}${release}.so$major'
6696 shlibpath_var=LD_LIBRARY_PATH
6697 shlibpath_overrides_runpath=yes
6698 hardcode_into_libs=yes
6699 # ldd complains unless libraries are executable
6700 postinstall_cmds='chmod +x $lib'
6705 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6706 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6707 shlibpath_var=LD_LIBRARY_PATH
6708 shlibpath_overrides_runpath=yes
6709 if test "$with_gnu_ld" = yes; then
6715 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6717 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6718 soname_spec='${libname}${release}.so$major'
6719 shlibpath_var=LD_LIBRARY_PATH
6720 case $host_vendor in
6722 shlibpath_overrides_runpath=no
6724 export_dynamic_flag_spec='${wl}-Blargedynsym'
6725 runpath_var=LD_RUN_PATH
6733 shlibpath_overrides_runpath=no
6734 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6741 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6742 soname_spec='${libname}${release}.so$major'
6743 shlibpath_var=LD_LIBRARY_PATH
6750 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6751 soname_spec='${libname}${release}.so$major'
6752 shlibpath_var=LD_LIBRARY_PATH
6756 if test -d /usr/nec ;then
6758 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6759 soname_spec='$libname.so.$major'
6760 shlibpath_var=LD_LIBRARY_PATH
6768 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6769 echo "${ECHO_T}$dynamic_linker" >&6
6770 test "$dynamic_linker" = no && can_build_shared=no
6772 # Report the final consequences.
6773 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6774 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6775 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6776 echo "${ECHO_T}$can_build_shared" >&6
6778 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6779 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6780 test "$can_build_shared" = "no" && enable_shared=no
6782 # On AIX, shared libraries and static libraries use the same namespace, and
6783 # are all built from PIC.
6786 test "$enable_shared" = yes && enable_static=no
6787 if test -n "$RANLIB"; then
6788 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6789 postinstall_cmds='$RANLIB $lib'
6794 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6795 test "$enable_shared" = yes && enable_static=no
6799 echo "$as_me:$LINENO: result: $enable_shared" >&5
6800 echo "${ECHO_T}$enable_shared" >&6
6802 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6803 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6804 # Make sure either enable_shared or enable_static is yes.
6805 test "$enable_shared" = yes || enable_static=yes
6806 echo "$as_me:$LINENO: result: $enable_static" >&5
6807 echo "${ECHO_T}$enable_static" >&6
6809 if test "$hardcode_action" = relink; then
6810 # Fast installation is not supported
6811 enable_fast_install=no
6812 elif test "$shlibpath_overrides_runpath" = yes ||
6813 test "$enable_shared" = no; then
6814 # Fast installation is not necessary
6815 enable_fast_install=needless
6818 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6819 if test "$GCC" = yes; then
6820 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6823 if test "x$enable_dlopen" != xyes; then
6824 enable_dlopen=unknown
6825 enable_dlopen_self=unknown
6826 enable_dlopen_self_static=unknown
6833 lt_cv_dlopen="load_add_on"
6835 lt_cv_dlopen_self=yes
6838 cygwin* | mingw* | pw32*)
6839 lt_cv_dlopen="LoadLibrary"
6844 echo "$as_me:$LINENO: checking for shl_load" >&5
6845 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6846 if test "${ac_cv_func_shl_load+set}" = set; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
6849 cat >conftest.$ac_ext <<_ACEOF
6852 cat confdefs.h >>conftest.$ac_ext
6853 cat >>conftest.$ac_ext <<_ACEOF
6854 /* end confdefs.h. */
6855 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
6856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6857 #define shl_load innocuous_shl_load
6859 /* System header to define __stub macros and hopefully few prototypes,
6860 which can conflict with char shl_load (); below.
6861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6862 <limits.h> exists even on freestanding compilers. */
6865 # include <limits.h>
6867 # include <assert.h>
6872 /* Override any gcc2 internal prototype to avoid an error. */
6877 /* We use char because int might match the return type of a gcc2
6878 builtin and then its argument prototype would still apply. */
6880 /* The GNU C library defines this for functions which it implements
6881 to always fail with ENOSYS. Some functions are actually named
6882 something starting with __ and the normal name is an alias. */
6883 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6886 char (*f) () = shl_load;
6895 return f != shl_load;
6900 rm -f conftest.$ac_objext conftest$ac_exeext
6901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6902 (eval $ac_link) 2>conftest.er1
6904 grep -v '^ *+' conftest.er1 >conftest.err
6906 cat conftest.err >&5
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); } &&
6909 { ac_try='test -z "$ac_c_werror_flag"
6910 || test ! -s conftest.err'
6911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); }; } &&
6916 { ac_try='test -s conftest$ac_exeext'
6917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); }; }; then
6922 ac_cv_func_shl_load=yes
6924 echo "$as_me: failed program was:" >&5
6925 sed 's/^/| /' conftest.$ac_ext >&5
6927 ac_cv_func_shl_load=no
6929 rm -f conftest.err conftest.$ac_objext \
6930 conftest$ac_exeext conftest.$ac_ext
6932 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6933 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6934 if test $ac_cv_func_shl_load = yes; then
6935 lt_cv_dlopen="shl_load"
6937 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6938 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6939 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6940 echo $ECHO_N "(cached) $ECHO_C" >&6
6942 ac_check_lib_save_LIBS=$LIBS
6944 cat >conftest.$ac_ext <<_ACEOF
6947 cat confdefs.h >>conftest.$ac_ext
6948 cat >>conftest.$ac_ext <<_ACEOF
6949 /* end confdefs.h. */
6951 /* Override any gcc2 internal prototype to avoid an error. */
6955 /* We use char because int might match the return type of a gcc2
6956 builtin and then its argument prototype would still apply. */
6966 rm -f conftest.$ac_objext conftest$ac_exeext
6967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6968 (eval $ac_link) 2>conftest.er1
6970 grep -v '^ *+' conftest.er1 >conftest.err
6972 cat conftest.err >&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); } &&
6975 { ac_try='test -z "$ac_c_werror_flag"
6976 || test ! -s conftest.err'
6977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); }; } &&
6982 { ac_try='test -s conftest$ac_exeext'
6983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); }; }; then
6988 ac_cv_lib_dld_shl_load=yes
6990 echo "$as_me: failed program was:" >&5
6991 sed 's/^/| /' conftest.$ac_ext >&5
6993 ac_cv_lib_dld_shl_load=no
6995 rm -f conftest.err conftest.$ac_objext \
6996 conftest$ac_exeext conftest.$ac_ext
6997 LIBS=$ac_check_lib_save_LIBS
6999 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7000 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7001 if test $ac_cv_lib_dld_shl_load = yes; then
7002 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7004 echo "$as_me:$LINENO: checking for dlopen" >&5
7005 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7006 if test "${ac_cv_func_dlopen+set}" = set; then
7007 echo $ECHO_N "(cached) $ECHO_C" >&6
7009 cat >conftest.$ac_ext <<_ACEOF
7012 cat confdefs.h >>conftest.$ac_ext
7013 cat >>conftest.$ac_ext <<_ACEOF
7014 /* end confdefs.h. */
7015 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7017 #define dlopen innocuous_dlopen
7019 /* System header to define __stub macros and hopefully few prototypes,
7020 which can conflict with char dlopen (); below.
7021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7022 <limits.h> exists even on freestanding compilers. */
7025 # include <limits.h>
7027 # include <assert.h>
7032 /* Override any gcc2 internal prototype to avoid an error. */
7037 /* We use char because int might match the return type of a gcc2
7038 builtin and then its argument prototype would still apply. */
7040 /* The GNU C library defines this for functions which it implements
7041 to always fail with ENOSYS. Some functions are actually named
7042 something starting with __ and the normal name is an alias. */
7043 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7046 char (*f) () = dlopen;
7060 rm -f conftest.$ac_objext conftest$ac_exeext
7061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7062 (eval $ac_link) 2>conftest.er1
7064 grep -v '^ *+' conftest.er1 >conftest.err
7066 cat conftest.err >&5
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); } &&
7069 { ac_try='test -z "$ac_c_werror_flag"
7070 || test ! -s conftest.err'
7071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); }; } &&
7076 { ac_try='test -s conftest$ac_exeext'
7077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); }; }; then
7082 ac_cv_func_dlopen=yes
7084 echo "$as_me: failed program was:" >&5
7085 sed 's/^/| /' conftest.$ac_ext >&5
7087 ac_cv_func_dlopen=no
7089 rm -f conftest.err conftest.$ac_objext \
7090 conftest$ac_exeext conftest.$ac_ext
7092 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7093 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7094 if test $ac_cv_func_dlopen = yes; then
7095 lt_cv_dlopen="dlopen"
7097 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7098 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7099 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7100 echo $ECHO_N "(cached) $ECHO_C" >&6
7102 ac_check_lib_save_LIBS=$LIBS
7104 cat >conftest.$ac_ext <<_ACEOF
7107 cat confdefs.h >>conftest.$ac_ext
7108 cat >>conftest.$ac_ext <<_ACEOF
7109 /* end confdefs.h. */
7111 /* Override any gcc2 internal prototype to avoid an error. */
7115 /* We use char because int might match the return type of a gcc2
7116 builtin and then its argument prototype would still apply. */
7126 rm -f conftest.$ac_objext conftest$ac_exeext
7127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7128 (eval $ac_link) 2>conftest.er1
7130 grep -v '^ *+' conftest.er1 >conftest.err
7132 cat conftest.err >&5
7133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134 (exit $ac_status); } &&
7135 { ac_try='test -z "$ac_c_werror_flag"
7136 || test ! -s conftest.err'
7137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); }; } &&
7142 { ac_try='test -s conftest$ac_exeext'
7143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); }; }; then
7148 ac_cv_lib_dl_dlopen=yes
7150 echo "$as_me: failed program was:" >&5
7151 sed 's/^/| /' conftest.$ac_ext >&5
7153 ac_cv_lib_dl_dlopen=no
7155 rm -f conftest.err conftest.$ac_objext \
7156 conftest$ac_exeext conftest.$ac_ext
7157 LIBS=$ac_check_lib_save_LIBS
7159 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7160 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7161 if test $ac_cv_lib_dl_dlopen = yes; then
7162 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7164 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7165 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7166 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7167 echo $ECHO_N "(cached) $ECHO_C" >&6
7169 ac_check_lib_save_LIBS=$LIBS
7171 cat >conftest.$ac_ext <<_ACEOF
7174 cat confdefs.h >>conftest.$ac_ext
7175 cat >>conftest.$ac_ext <<_ACEOF
7176 /* end confdefs.h. */
7178 /* Override any gcc2 internal prototype to avoid an error. */
7182 /* We use char because int might match the return type of a gcc2
7183 builtin and then its argument prototype would still apply. */
7193 rm -f conftest.$ac_objext conftest$ac_exeext
7194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7195 (eval $ac_link) 2>conftest.er1
7197 grep -v '^ *+' conftest.er1 >conftest.err
7199 cat conftest.err >&5
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); } &&
7202 { ac_try='test -z "$ac_c_werror_flag"
7203 || test ! -s conftest.err'
7204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); }; } &&
7209 { ac_try='test -s conftest$ac_exeext'
7210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); }; }; then
7215 ac_cv_lib_svld_dlopen=yes
7217 echo "$as_me: failed program was:" >&5
7218 sed 's/^/| /' conftest.$ac_ext >&5
7220 ac_cv_lib_svld_dlopen=no
7222 rm -f conftest.err conftest.$ac_objext \
7223 conftest$ac_exeext conftest.$ac_ext
7224 LIBS=$ac_check_lib_save_LIBS
7226 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7227 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7228 if test $ac_cv_lib_svld_dlopen = yes; then
7229 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7231 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7232 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7233 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7236 ac_check_lib_save_LIBS=$LIBS
7238 cat >conftest.$ac_ext <<_ACEOF
7241 cat confdefs.h >>conftest.$ac_ext
7242 cat >>conftest.$ac_ext <<_ACEOF
7243 /* end confdefs.h. */
7245 /* Override any gcc2 internal prototype to avoid an error. */
7249 /* We use char because int might match the return type of a gcc2
7250 builtin and then its argument prototype would still apply. */
7260 rm -f conftest.$ac_objext conftest$ac_exeext
7261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7262 (eval $ac_link) 2>conftest.er1
7264 grep -v '^ *+' conftest.er1 >conftest.err
7266 cat conftest.err >&5
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); } &&
7269 { ac_try='test -z "$ac_c_werror_flag"
7270 || test ! -s conftest.err'
7271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); }; } &&
7276 { ac_try='test -s conftest$ac_exeext'
7277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); }; }; then
7282 ac_cv_lib_dld_dld_link=yes
7284 echo "$as_me: failed program was:" >&5
7285 sed 's/^/| /' conftest.$ac_ext >&5
7287 ac_cv_lib_dld_dld_link=no
7289 rm -f conftest.err conftest.$ac_objext \
7290 conftest$ac_exeext conftest.$ac_ext
7291 LIBS=$ac_check_lib_save_LIBS
7293 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7294 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7295 if test $ac_cv_lib_dld_dld_link = yes; then
7296 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7317 if test "x$lt_cv_dlopen" != xno; then
7323 case $lt_cv_dlopen in
7325 save_CPPFLAGS="$CPPFLAGS"
7326 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7328 save_LDFLAGS="$LDFLAGS"
7329 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7332 LIBS="$lt_cv_dlopen_libs $LIBS"
7334 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7335 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7336 if test "${lt_cv_dlopen_self+set}" = set; then
7337 echo $ECHO_N "(cached) $ECHO_C" >&6
7339 if test "$cross_compiling" = yes; then :
7340 lt_cv_dlopen_self=cross
7342 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7343 lt_status=$lt_dlunknown
7344 cat > conftest.$ac_ext <<EOF
7345 #line 7345 "configure"
7346 #include "confdefs.h"
7355 # define LT_DLGLOBAL RTLD_GLOBAL
7358 # define LT_DLGLOBAL DL_GLOBAL
7360 # define LT_DLGLOBAL 0
7364 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7365 find out it does not work in some platform. */
7366 #ifndef LT_DLLAZY_OR_NOW
7368 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7371 # define LT_DLLAZY_OR_NOW DL_LAZY
7374 # define LT_DLLAZY_OR_NOW RTLD_NOW
7377 # define LT_DLLAZY_OR_NOW DL_NOW
7379 # define LT_DLLAZY_OR_NOW 0
7387 extern "C" void exit (int);
7390 void fnord() { int i=42;}
7393 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7394 int status = $lt_dlunknown;
7398 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7399 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7400 /* dlclose (self); */
7406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7407 (eval $ac_link) 2>&5
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7411 (./conftest; exit; ) 2>/dev/null
7414 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7415 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7416 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7419 # compilation failed
7420 lt_cv_dlopen_self=no
7427 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7428 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7430 if test "x$lt_cv_dlopen_self" = xyes; then
7431 LDFLAGS="$LDFLAGS $link_static_flag"
7432 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7433 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7434 if test "${lt_cv_dlopen_self_static+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7437 if test "$cross_compiling" = yes; then :
7438 lt_cv_dlopen_self_static=cross
7440 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7441 lt_status=$lt_dlunknown
7442 cat > conftest.$ac_ext <<EOF
7443 #line 7443 "configure"
7444 #include "confdefs.h"
7453 # define LT_DLGLOBAL RTLD_GLOBAL
7456 # define LT_DLGLOBAL DL_GLOBAL
7458 # define LT_DLGLOBAL 0
7462 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7463 find out it does not work in some platform. */
7464 #ifndef LT_DLLAZY_OR_NOW
7466 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7469 # define LT_DLLAZY_OR_NOW DL_LAZY
7472 # define LT_DLLAZY_OR_NOW RTLD_NOW
7475 # define LT_DLLAZY_OR_NOW DL_NOW
7477 # define LT_DLLAZY_OR_NOW 0
7485 extern "C" void exit (int);
7488 void fnord() { int i=42;}
7491 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7492 int status = $lt_dlunknown;
7496 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7497 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7498 /* dlclose (self); */
7504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7505 (eval $ac_link) 2>&5
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7509 (./conftest; exit; ) 2>/dev/null
7512 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7513 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7514 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7517 # compilation failed
7518 lt_cv_dlopen_self_static=no
7525 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7526 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7529 CPPFLAGS="$save_CPPFLAGS"
7530 LDFLAGS="$save_LDFLAGS"
7535 case $lt_cv_dlopen_self in
7536 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7537 *) enable_dlopen_self=unknown ;;
7540 case $lt_cv_dlopen_self_static in
7541 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7542 *) enable_dlopen_self_static=unknown ;;
7547 if test "$enable_shared" = yes && test "$GCC" = yes; then
7548 case $archive_cmds in
7550 # FIXME: we may have to deal with multi-command sequences.
7553 # Test whether the compiler implicitly links with -lc since on some
7554 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7555 # to ld, don't add -lc before -lgcc.
7556 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7557 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7558 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7559 echo $ECHO_N "(cached) $ECHO_C" >&6
7562 echo 'static int dummy;' > conftest.$ac_ext
7564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7565 (eval $ac_compile) 2>&5
7567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); }; then
7571 libobjs=conftest.$ac_objext
7573 wl=$lt_cv_prog_cc_wl
7579 save_allow_undefined_flag=$allow_undefined_flag
7580 allow_undefined_flag=
7581 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7582 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); }
7587 lt_cv_archive_cmds_need_lc=no
7589 lt_cv_archive_cmds_need_lc=yes
7591 allow_undefined_flag=$save_allow_undefined_flag
7593 cat conftest.err 1>&5
7597 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7598 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7602 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7604 # The second clause should only fire when bootstrapping the
7605 # libtool distribution, otherwise you forgot to ship ltmain.sh
7606 # with your package, and you will get complaints that there are
7607 # no rules to generate ltmain.sh.
7608 if test -f "$ltmain"; then
7611 # If there is no Makefile yet, we rely on a make rule to execute
7612 # `config.status --recheck' to rerun these tests and create the
7613 # libtool script then.
7614 test -f Makefile && make "$ltmain"
7617 if test -f "$ltmain"; then
7618 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7621 echo creating $ofile
7623 # Now quote all the things that may contain metacharacters while being
7624 # careful not to overquote the AC_SUBSTed values. We take copies of the
7625 # variables and quote the copies for generation of the libtool script.
7626 for var in echo old_CC old_CFLAGS SED \
7627 AR AR_FLAGS CC LD LN_S NM SHELL \
7628 reload_flag reload_cmds wl \
7629 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7630 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7631 library_names_spec soname_spec \
7632 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7633 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7634 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7635 old_striplib striplib file_magic_cmd export_symbols_cmds \
7636 deplibs_check_method allow_undefined_flag no_undefined_flag \
7637 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7638 global_symbol_to_c_name_address \
7639 hardcode_libdir_flag_spec hardcode_libdir_separator \
7640 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7641 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7644 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7645 old_postinstall_cmds | old_postuninstall_cmds | \
7646 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7647 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7648 postinstall_cmds | postuninstall_cmds | \
7649 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7650 # Double-quote double-evaled strings.
7651 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7654 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7659 cat <<__EOF__ > "${ofile}T"
7662 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7663 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7664 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7666 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7667 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7669 # This program is free software; you can redistribute it and/or modify
7670 # it under the terms of the GNU General Public License as published by
7671 # the Free Software Foundation; either version 2 of the License, or
7672 # (at your option) any later version.
7674 # This program is distributed in the hope that it will be useful, but
7675 # WITHOUT ANY WARRANTY; without even the implied warranty of
7676 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7677 # General Public License for more details.
7679 # You should have received a copy of the GNU General Public License
7680 # along with this program; if not, write to the Free Software
7681 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7683 # As a special exception to the GNU General Public License, if you
7684 # distribute this file as part of a program that contains a
7685 # configuration script generated by Autoconf, you may include it under
7686 # the same distribution terms that you use for the rest of that program.
7688 # A sed that does not truncate output.
7691 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7692 Xsed="${SED} -e s/^X//"
7694 # The HP-UX ksh and POSIX shell print the target directory to stdout
7696 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7698 # ### BEGIN LIBTOOL CONFIG
7700 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7702 # Shell to use when invoking shell scripts.
7705 # Whether or not to build shared libraries.
7706 build_libtool_libs=$enable_shared
7708 # Whether or not to build static libraries.
7709 build_old_libs=$enable_static
7711 # Whether or not to add -lc for building shared libraries.
7712 build_libtool_need_lc=$need_lc
7714 # Whether or not to optimize for fast installation.
7715 fast_install=$enable_fast_install
7718 host_alias=$host_alias
7721 # An echo program that does not interpret backslashes.
7726 AR_FLAGS=$lt_AR_FLAGS
7728 # The default C compiler.
7731 # Is the compiler the GNU C compiler?
7734 # The linker used to build libraries.
7737 # Whether we need hard or soft links.
7740 # A BSD-compatible nm program.
7743 # A symbol stripping program
7746 # Used to examine libraries when file_magic_cmd begins "file"
7747 MAGIC_CMD=$MAGIC_CMD
7749 # Used on cygwin: DLL creation program.
7752 # Used on cygwin: object dumper.
7755 # Used on cygwin: assembler.
7758 # The name of the directory that contains temporary libtool files.
7761 # How to create reloadable object files.
7762 reload_flag=$lt_reload_flag
7763 reload_cmds=$lt_reload_cmds
7765 # How to pass a linker flag through the compiler.
7768 # Object file suffix (normally "o").
7771 # Old archive suffix (normally "a").
7774 # Executable file suffix (normally "").
7777 # Additional compiler flags for building library objects.
7778 pic_flag=$lt_pic_flag
7781 # Does compiler simultaneously support -c and -o options?
7782 compiler_c_o=$lt_compiler_c_o
7784 # Can we write directly to a .lo ?
7785 compiler_o_lo=$lt_compiler_o_lo
7787 # Must we lock files when doing compilation ?
7788 need_locks=$lt_need_locks
7790 # Do we need the lib prefix for modules?
7791 need_lib_prefix=$need_lib_prefix
7793 # Do we need a version for libraries?
7794 need_version=$need_version
7796 # Whether dlopen is supported.
7797 dlopen_support=$enable_dlopen
7799 # Whether dlopen of programs is supported.
7800 dlopen_self=$enable_dlopen_self
7802 # Whether dlopen of statically linked programs is supported.
7803 dlopen_self_static=$enable_dlopen_self_static
7805 # Compiler flag to prevent dynamic linking.
7806 link_static_flag=$lt_link_static_flag
7808 # Compiler flag to turn off builtin functions.
7809 no_builtin_flag=$lt_no_builtin_flag
7811 # Compiler flag to allow reflexive dlopens.
7812 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7814 # Compiler flag to generate shared objects directly from archives.
7815 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7817 # Compiler flag to generate thread-safe objects.
7818 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7820 # Library versioning type.
7821 version_type=$version_type
7823 # Format of library name prefix.
7824 libname_spec=$lt_libname_spec
7826 # List of archive names. First name is the real one, the rest are links.
7827 # The last name is the one that the linker finds with -lNAME.
7828 library_names_spec=$lt_library_names_spec
7830 # The coded name of the library, if different from the real name.
7831 soname_spec=$lt_soname_spec
7833 # Commands used to build and install an old-style archive.
7835 old_archive_cmds=$lt_old_archive_cmds
7836 old_postinstall_cmds=$lt_old_postinstall_cmds
7837 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7839 # Create an old-style archive from a shared archive.
7840 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7842 # Create a temporary old-style archive to link instead of a shared archive.
7843 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7845 # Commands used to build and install a shared archive.
7846 archive_cmds=$lt_archive_cmds
7847 archive_expsym_cmds=$lt_archive_expsym_cmds
7848 postinstall_cmds=$lt_postinstall_cmds
7849 postuninstall_cmds=$lt_postuninstall_cmds
7851 # Commands to strip libraries.
7852 old_striplib=$lt_old_striplib
7853 striplib=$lt_striplib
7855 # Method to check whether dependent libraries are shared objects.
7856 deplibs_check_method=$lt_deplibs_check_method
7858 # Command to use when deplibs_check_method == file_magic.
7859 file_magic_cmd=$lt_file_magic_cmd
7861 # Flag that allows shared libraries with undefined symbols to be built.
7862 allow_undefined_flag=$lt_allow_undefined_flag
7864 # Flag that forces no undefined symbols.
7865 no_undefined_flag=$lt_no_undefined_flag
7867 # Commands used to finish a libtool library installation in a directory.
7868 finish_cmds=$lt_finish_cmds
7870 # Same as above, but a single script fragment to be evaled but not shown.
7871 finish_eval=$lt_finish_eval
7873 # Take the output of nm and produce a listing of raw symbols and C names.
7874 global_symbol_pipe=$lt_global_symbol_pipe
7876 # Transform the output of nm in a proper C declaration
7877 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7879 # Transform the output of nm in a C name address pair
7880 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7882 # This is the shared library runtime path variable.
7883 runpath_var=$runpath_var
7885 # This is the shared library path variable.
7886 shlibpath_var=$shlibpath_var
7888 # Is shlibpath searched before the hard-coded library search path?
7889 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7891 # How to hardcode a shared library path into an executable.
7892 hardcode_action=$hardcode_action
7894 # Whether we should hardcode library paths into libraries.
7895 hardcode_into_libs=$hardcode_into_libs
7897 # Flag to hardcode \$libdir into a binary during linking.
7898 # This must work even if \$libdir does not exist.
7899 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7901 # Whether we need a single -rpath flag with a separated argument.
7902 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7904 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7906 hardcode_direct=$hardcode_direct
7908 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7910 hardcode_minus_L=$hardcode_minus_L
7912 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7913 # the resulting binary.
7914 hardcode_shlibpath_var=$hardcode_shlibpath_var
7916 # Variables whose values should be saved in libtool wrapper scripts and
7917 # restored at relink time.
7918 variables_saved_for_relink="$variables_saved_for_relink"
7920 # Whether libtool must link a program against all its dependency libraries.
7921 link_all_deplibs=$link_all_deplibs
7923 # Compile-time system search path for libraries
7924 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7926 # Run-time system search path for libraries
7927 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7929 # Fix the shell variable \$srcfile for the compiler.
7930 fix_srcfile_path="$fix_srcfile_path"
7932 # Set to yes if exported symbols are required.
7933 always_export_symbols=$always_export_symbols
7935 # The commands to list exported symbols.
7936 export_symbols_cmds=$lt_export_symbols_cmds
7938 # The commands to extract the exported symbol list from a shared archive.
7939 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7941 # Symbols that should not be listed in the preloaded symbols.
7942 exclude_expsyms=$lt_exclude_expsyms
7944 # Symbols that must always be exported.
7945 include_expsyms=$lt_include_expsyms
7947 # ### END LIBTOOL CONFIG
7953 cat <<\EOF >> "${ofile}T"
7955 # AIX sometimes has problems with the GCC collect2 program. For some
7956 # reason, if we set the COLLECT_NAMES environment variable, the problems
7957 # vanish in a puff of smoke.
7958 if test "X${COLLECT_NAMES+set}" != Xset; then
7960 export COLLECT_NAMES
7967 cygwin* | mingw* | pw32* | os2*)
7968 cat <<'EOF' >> "${ofile}T"
7969 # This is a source program that is used to create dlls on Windows
7970 # Don't remove nor modify the starting and closing comments
7971 # /* ltdll.c starts here */
7972 # #define WIN32_LEAN_AND_MEAN
7973 # #include <windows.h>
7974 # #undef WIN32_LEAN_AND_MEAN
7975 # #include <stdio.h>
7977 # #ifndef __CYGWIN__
7978 # # ifdef __CYGWIN32__
7979 # # define __CYGWIN__ __CYGWIN32__
7983 # #ifdef __cplusplus
7986 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7987 # #ifdef __cplusplus
7992 # #include <cygwin/cygwin_dll.h>
7993 # DECLARE_CYGWIN_DLL( DllMain );
7995 # HINSTANCE __hDllInstance_base;
7998 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8000 # __hDllInstance_base = hInst;
8003 # /* ltdll.c ends here */
8004 # This is a source program that is used to create import libraries
8005 # on Windows for dlls which lack them. Don't remove nor modify the
8006 # starting and closing comments
8007 # /* impgen.c starts here */
8008 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8010 # This file is part of GNU libtool.
8012 # This program is free software; you can redistribute it and/or modify
8013 # it under the terms of the GNU General Public License as published by
8014 # the Free Software Foundation; either version 2 of the License, or
8015 # (at your option) any later version.
8017 # This program is distributed in the hope that it will be useful,
8018 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8019 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8020 # GNU General Public License for more details.
8022 # You should have received a copy of the GNU General Public License
8023 # along with this program; if not, write to the Free Software
8024 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8027 # #include <stdio.h> /* for printf() */
8028 # #include <unistd.h> /* for open(), lseek(), read() */
8029 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8030 # #include <string.h> /* for strdup() */
8032 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8034 # #define O_BINARY 0
8037 # static unsigned int
8038 # pe_get16 (fd, offset)
8042 # unsigned char b[2];
8043 # lseek (fd, offset, SEEK_SET);
8045 # return b[0] + (b[1]<<8);
8048 # static unsigned int
8049 # pe_get32 (fd, offset)
8053 # unsigned char b[4];
8054 # lseek (fd, offset, SEEK_SET);
8056 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8059 # static unsigned int
8063 # unsigned char *b = ptr;
8064 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8073 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8074 # unsigned long export_rva, export_size, nsections, secptr, expptr;
8075 # unsigned long name_rvas, nexp;
8076 # unsigned char *expdata, *erva;
8077 # char *filename, *dll_name;
8079 # filename = argv[1];
8081 # dll = open(filename, O_RDONLY|O_BINARY);
8085 # dll_name = filename;
8087 # for (i=0; filename[i]; i++)
8088 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8089 # dll_name = filename + i +1;
8091 # pe_header_offset = pe_get32 (dll, 0x3c);
8092 # opthdr_ofs = pe_header_offset + 4 + 20;
8093 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
8095 # if (num_entries < 1) /* no exports */
8098 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
8099 # export_size = pe_get32 (dll, opthdr_ofs + 100);
8100 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8101 # secptr = (pe_header_offset + 4 + 20 +
8102 # pe_get16 (dll, pe_header_offset + 4 + 16));
8105 # for (i = 0; i < nsections; i++)
8108 # unsigned long secptr1 = secptr + 40 * i;
8109 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8110 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8111 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8112 # lseek(dll, secptr1, SEEK_SET);
8113 # read(dll, sname, 8);
8114 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8116 # expptr = fptr + (export_rva - vaddr);
8117 # if (export_rva + export_size > vaddr + vsize)
8118 # export_size = vsize - (export_rva - vaddr);
8123 # expdata = (unsigned char*)malloc(export_size);
8124 # lseek (dll, expptr, SEEK_SET);
8125 # read (dll, expdata, export_size);
8126 # erva = expdata - export_rva;
8128 # nexp = pe_as32 (expdata+24);
8129 # name_rvas = pe_as32 (expdata+32);
8131 # printf ("EXPORTS\n");
8132 # for (i = 0; i<nexp; i++)
8134 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8135 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8140 # /* impgen.c ends here */
8146 # We use sed instead of cat because bash on DJGPP gets confused if
8147 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8148 # text mode, it properly converts lines to CR/LF. This bash problem
8149 # is reportedly fixed, but why not run on old versions too?
8150 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8152 mv -f "${ofile}T" "$ofile" || \
8153 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8161 # This can be used to rebuild libtool when needed
8162 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8164 # Always use our own libtool.
8165 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8167 # Prevent multiple expansion
8170 for ac_prog in gzip uncompress compress
8172 # Extract the first word of "$ac_prog", so it can be a program name with args.
8173 set dummy $ac_prog; ac_word=$2
8174 echo "$as_me:$LINENO: checking for $ac_word" >&5
8175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8176 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
8177 echo $ECHO_N "(cached) $ECHO_C" >&6
8179 if test -n "$UNCOMPRESS"; then
8180 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
8182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8186 test -z "$as_dir" && as_dir=.
8187 for ac_exec_ext in '' $ac_executable_extensions; do
8188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8189 ac_cv_prog_UNCOMPRESS="$ac_prog"
8190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8198 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
8199 if test -n "$UNCOMPRESS"; then
8200 echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
8201 echo "${ECHO_T}$UNCOMPRESS" >&6
8203 echo "$as_me:$LINENO: result: no" >&5
8204 echo "${ECHO_T}no" >&6
8207 test -n "$UNCOMPRESS" && break
8217 echo "$as_me:$LINENO: checking for target system" >&5
8218 echo $ECHO_N "checking for target system... $ECHO_C" >&6
8222 *cygwin* ) CYGWIN=yes;;
8223 *mingw* ) MINGW=yes;;
8227 if test "x$MINGW" = "xyes"; then
8228 #fix for the debian distribution of mingw
8229 if test -x "/usr/i586-mingw32msvc/bin/ar";then
8230 AR="/usr/i586-mingw32msvc/bin/ar"
8232 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
8233 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
8235 #fix for the gentoo distribution of mingw
8236 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
8237 AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
8239 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
8240 RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
8242 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
8243 STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
8249 if test "x${CYGWIN}" = "xyes"; then
8250 cat >>confdefs.h <<_ACEOF
8254 echo "$as_me:$LINENO: result: cygwin" >&5
8255 echo "${ECHO_T}cygwin" >&6
8257 if test "x${MINGW}" = "xyes"; then
8258 cat >>confdefs.h <<_ACEOF
8263 cat >>confdefs.h <<_ACEOF
8267 LIBS="$LIBS -lws2_32"
8268 echo "$as_me:$LINENO: result: mingw" >&5
8269 echo "${ECHO_T}mingw" >&6
8273 cat >>confdefs.h <<_ACEOF
8277 echo "$as_me:$LINENO: result: " >&5
8278 echo "${ECHO_T}" >&6
8283 if test "x${MINGW}" != "xyes"; then
8284 cat >>confdefs.h <<_ACEOF
8289 # The following tries to make use of includes and libraries in
8290 # /usr/local, too. Notice: A -I/usr/local/include might break
8291 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
8292 # especially on systems which link /usr/local to /usr, so it has yet
8293 # to be seen how useful this is.
8294 if test -d /usr/local/lib; then
8295 LDFLAGS="$LDFLAGS -L/usr/local/lib"
8297 if test -d /usr/local/include; then
8298 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
8299 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
8302 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
8303 # if the user has a special prefix (like /opt), there might also be $prefix/lib
8304 # and $prefix/include, which should be included in our search paths for libraries
8306 LDFLAGS="$LDFLAGS -L${libdir}"
8307 CPPFLAGS="$CPPFLAGS -I${includedir}"
8308 # TODO- test whether gcc still works after this
8311 # this must be done after (I believe) AC_PROG_MAKE_SET
8312 if test "x$DEBUG" '!=' "x";then
8313 STRIP="@echo debug enabled, not stripping "
8319 echo "$as_me:$LINENO: checking for sin in -lm" >&5
8320 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8321 if test "${ac_cv_lib_m_sin+set}" = set; then
8322 echo $ECHO_N "(cached) $ECHO_C" >&6
8324 ac_check_lib_save_LIBS=$LIBS
8326 cat >conftest.$ac_ext <<_ACEOF
8329 cat confdefs.h >>conftest.$ac_ext
8330 cat >>conftest.$ac_ext <<_ACEOF
8331 /* end confdefs.h. */
8333 /* Override any gcc2 internal prototype to avoid an error. */
8337 /* We use char because int might match the return type of a gcc2
8338 builtin and then its argument prototype would still apply. */
8348 rm -f conftest.$ac_objext conftest$ac_exeext
8349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8350 (eval $ac_link) 2>conftest.er1
8352 grep -v '^ *+' conftest.er1 >conftest.err
8354 cat conftest.err >&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); } &&
8357 { ac_try='test -z "$ac_c_werror_flag"
8358 || test ! -s conftest.err'
8359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); }; } &&
8364 { ac_try='test -s conftest$ac_exeext'
8365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); }; }; then
8372 echo "$as_me: failed program was:" >&5
8373 sed 's/^/| /' conftest.$ac_ext >&5
8377 rm -f conftest.err conftest.$ac_objext \
8378 conftest$ac_exeext conftest.$ac_ext
8379 LIBS=$ac_check_lib_save_LIBS
8381 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8382 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8383 if test $ac_cv_lib_m_sin = yes; then
8384 cat >>confdefs.h <<_ACEOF
8391 echo "Error: Math library not found.";
8397 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
8398 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
8399 if test "${ac_cv_lib_z_deflate+set}" = set; then
8400 echo $ECHO_N "(cached) $ECHO_C" >&6
8402 ac_check_lib_save_LIBS=$LIBS
8404 cat >conftest.$ac_ext <<_ACEOF
8407 cat confdefs.h >>conftest.$ac_ext
8408 cat >>conftest.$ac_ext <<_ACEOF
8409 /* end confdefs.h. */
8411 /* Override any gcc2 internal prototype to avoid an error. */
8415 /* We use char because int might match the return type of a gcc2
8416 builtin and then its argument prototype would still apply. */
8426 rm -f conftest.$ac_objext conftest$ac_exeext
8427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8428 (eval $ac_link) 2>conftest.er1
8430 grep -v '^ *+' conftest.er1 >conftest.err
8432 cat conftest.err >&5
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); } &&
8435 { ac_try='test -z "$ac_c_werror_flag"
8436 || test ! -s conftest.err'
8437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); }; } &&
8442 { ac_try='test -s conftest$ac_exeext'
8443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); }; }; then
8448 ac_cv_lib_z_deflate=yes
8450 echo "$as_me: failed program was:" >&5
8451 sed 's/^/| /' conftest.$ac_ext >&5
8453 ac_cv_lib_z_deflate=no
8455 rm -f conftest.err conftest.$ac_objext \
8456 conftest$ac_exeext conftest.$ac_ext
8457 LIBS=$ac_check_lib_save_LIBS
8459 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
8460 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
8461 if test $ac_cv_lib_z_deflate = yes; then
8462 cat >>confdefs.h <<_ACEOF
8469 DISABLEPNG2SWF=true;
8470 MISSINGLIBS="${MISSINGLIBS} zlib"
8476 echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
8477 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6
8478 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
8479 echo $ECHO_N "(cached) $ECHO_C" >&6
8481 ac_check_lib_save_LIBS=$LIBS
8483 cat >conftest.$ac_ext <<_ACEOF
8486 cat confdefs.h >>conftest.$ac_ext
8487 cat >>conftest.$ac_ext <<_ACEOF
8488 /* end confdefs.h. */
8490 /* Override any gcc2 internal prototype to avoid an error. */
8494 /* We use char because int might match the return type of a gcc2
8495 builtin and then its argument prototype would still apply. */
8496 char jpeg_write_raw_data ();
8500 jpeg_write_raw_data ();
8505 rm -f conftest.$ac_objext conftest$ac_exeext
8506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8507 (eval $ac_link) 2>conftest.er1
8509 grep -v '^ *+' conftest.er1 >conftest.err
8511 cat conftest.err >&5
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); } &&
8514 { ac_try='test -z "$ac_c_werror_flag"
8515 || test ! -s conftest.err'
8516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); }; } &&
8521 { ac_try='test -s conftest$ac_exeext'
8522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); }; }; then
8527 ac_cv_lib_jpeg_jpeg_write_raw_data=yes
8529 echo "$as_me: failed program was:" >&5
8530 sed 's/^/| /' conftest.$ac_ext >&5
8532 ac_cv_lib_jpeg_jpeg_write_raw_data=no
8534 rm -f conftest.err conftest.$ac_objext \
8535 conftest$ac_exeext conftest.$ac_ext
8536 LIBS=$ac_check_lib_save_LIBS
8538 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
8539 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6
8540 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
8541 cat >>confdefs.h <<_ACEOF
8542 #define HAVE_LIBJPEG 1
8548 DISABLEPDF2SWF=true;
8549 DISABLEJPEG2SWF=true;
8550 MISSINGLIBS="${MISSINGLIBS} jpeglib"
8555 echo "$as_me:$LINENO: checking for T1_LoadFont in -lt1" >&5
8556 echo $ECHO_N "checking for T1_LoadFont in -lt1... $ECHO_C" >&6
8557 if test "${ac_cv_lib_t1_T1_LoadFont+set}" = set; then
8558 echo $ECHO_N "(cached) $ECHO_C" >&6
8560 ac_check_lib_save_LIBS=$LIBS
8562 cat >conftest.$ac_ext <<_ACEOF
8565 cat confdefs.h >>conftest.$ac_ext
8566 cat >>conftest.$ac_ext <<_ACEOF
8567 /* end confdefs.h. */
8569 /* Override any gcc2 internal prototype to avoid an error. */
8573 /* We use char because int might match the return type of a gcc2
8574 builtin and then its argument prototype would still apply. */
8575 char T1_LoadFont ();
8584 rm -f conftest.$ac_objext conftest$ac_exeext
8585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8586 (eval $ac_link) 2>conftest.er1
8588 grep -v '^ *+' conftest.er1 >conftest.err
8590 cat conftest.err >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); } &&
8593 { ac_try='test -z "$ac_c_werror_flag"
8594 || test ! -s conftest.err'
8595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); }; } &&
8600 { ac_try='test -s conftest$ac_exeext'
8601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); }; }; then
8606 ac_cv_lib_t1_T1_LoadFont=yes
8608 echo "$as_me: failed program was:" >&5
8609 sed 's/^/| /' conftest.$ac_ext >&5
8611 ac_cv_lib_t1_T1_LoadFont=no
8613 rm -f conftest.err conftest.$ac_objext \
8614 conftest$ac_exeext conftest.$ac_ext
8615 LIBS=$ac_check_lib_save_LIBS
8617 echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_LoadFont" >&5
8618 echo "${ECHO_T}$ac_cv_lib_t1_T1_LoadFont" >&6
8619 if test $ac_cv_lib_t1_T1_LoadFont = yes; then
8620 cat >>confdefs.h <<_ACEOF
8621 #define HAVE_LIBT1 1
8627 DISABLEPDF2SWF=true;
8628 MISSINGLIBS="${MISSINGLIBS} t1lib"
8634 for ac_prog in freetype-config
8636 # Extract the first word of "$ac_prog", so it can be a program name with args.
8637 set dummy $ac_prog; ac_word=$2
8638 echo "$as_me:$LINENO: checking for $ac_word" >&5
8639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8640 if test "${ac_cv_prog_FREETYPE_CONFIG+set}" = set; then
8641 echo $ECHO_N "(cached) $ECHO_C" >&6
8643 if test -n "$FREETYPE_CONFIG"; then
8644 ac_cv_prog_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test.
8646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8650 test -z "$as_dir" && as_dir=.
8651 for ac_exec_ext in '' $ac_executable_extensions; do
8652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8653 ac_cv_prog_FREETYPE_CONFIG="$ac_prog"
8654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8662 FREETYPE_CONFIG=$ac_cv_prog_FREETYPE_CONFIG
8663 if test -n "$FREETYPE_CONFIG"; then
8664 echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8665 echo "${ECHO_T}$FREETYPE_CONFIG" >&6
8667 echo "$as_me:$LINENO: result: no" >&5
8668 echo "${ECHO_T}no" >&6
8671 test -n "$FREETYPE_CONFIG" && break
8674 OLDCPPFLAGS="${CPPFLAGS}"
8676 if test "x${FREETYPE_CONFIG}" != "x"; then
8677 CPPFLAGS="$CFLAGS "`freetype-config --cflags`
8678 else if test -d /usr/include/freetype2; then
8679 CPPFLAGS="$CFLAGS -I/usr/include/freetype2"
8680 else if test -d /usr/local/include/freetype2; then
8681 CPPFLAGS="$CFLAGS -I/usr/local/include/freetype2"
8685 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8686 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
8687 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8688 echo $ECHO_N "(cached) $ECHO_C" >&6
8690 ac_check_lib_save_LIBS=$LIBS
8691 LIBS="-lfreetype $LIBS"
8692 cat >conftest.$ac_ext <<_ACEOF
8695 cat confdefs.h >>conftest.$ac_ext
8696 cat >>conftest.$ac_ext <<_ACEOF
8697 /* end confdefs.h. */
8699 /* Override any gcc2 internal prototype to avoid an error. */
8703 /* We use char because int might match the return type of a gcc2
8704 builtin and then its argument prototype would still apply. */
8705 char FT_Init_FreeType ();
8709 FT_Init_FreeType ();
8714 rm -f conftest.$ac_objext conftest$ac_exeext
8715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8716 (eval $ac_link) 2>conftest.er1
8718 grep -v '^ *+' conftest.er1 >conftest.err
8720 cat conftest.err >&5
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); } &&
8723 { ac_try='test -z "$ac_c_werror_flag"
8724 || test ! -s conftest.err'
8725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); }; } &&
8730 { ac_try='test -s conftest$ac_exeext'
8731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); }; }; then
8736 ac_cv_lib_freetype_FT_Init_FreeType=yes
8738 echo "$as_me: failed program was:" >&5
8739 sed 's/^/| /' conftest.$ac_ext >&5
8741 ac_cv_lib_freetype_FT_Init_FreeType=no
8743 rm -f conftest.err conftest.$ac_objext \
8744 conftest$ac_exeext conftest.$ac_ext
8745 LIBS=$ac_check_lib_save_LIBS
8747 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8748 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
8749 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8754 for ac_header in freetype/freetype.h
8756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8758 echo "$as_me:$LINENO: checking for $ac_header" >&5
8759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8761 echo $ECHO_N "(cached) $ECHO_C" >&6
8763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8766 # Is the header compilable?
8767 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8768 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8769 cat >conftest.$ac_ext <<_ACEOF
8772 cat confdefs.h >>conftest.$ac_ext
8773 cat >>conftest.$ac_ext <<_ACEOF
8774 /* end confdefs.h. */
8775 $ac_includes_default
8776 #include <$ac_header>
8778 rm -f conftest.$ac_objext
8779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8780 (eval $ac_compile) 2>conftest.er1
8782 grep -v '^ *+' conftest.er1 >conftest.err
8784 cat conftest.err >&5
8785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786 (exit $ac_status); } &&
8787 { ac_try='test -z "$ac_c_werror_flag"
8788 || test ! -s conftest.err'
8789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793 (exit $ac_status); }; } &&
8794 { ac_try='test -s conftest.$ac_objext'
8795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); }; }; then
8800 ac_header_compiler=yes
8802 echo "$as_me: failed program was:" >&5
8803 sed 's/^/| /' conftest.$ac_ext >&5
8805 ac_header_compiler=no
8807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8808 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8809 echo "${ECHO_T}$ac_header_compiler" >&6
8811 # Is the header present?
8812 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8813 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8814 cat >conftest.$ac_ext <<_ACEOF
8817 cat confdefs.h >>conftest.$ac_ext
8818 cat >>conftest.$ac_ext <<_ACEOF
8819 /* end confdefs.h. */
8820 #include <$ac_header>
8822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8823 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8825 grep -v '^ *+' conftest.er1 >conftest.err
8827 cat conftest.err >&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); } >/dev/null; then
8830 if test -s conftest.err; then
8831 ac_cpp_err=$ac_c_preproc_warn_flag
8832 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8839 if test -z "$ac_cpp_err"; then
8840 ac_header_preproc=yes
8842 echo "$as_me: failed program was:" >&5
8843 sed 's/^/| /' conftest.$ac_ext >&5
8845 ac_header_preproc=no
8847 rm -f conftest.err conftest.$ac_ext
8848 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8849 echo "${ECHO_T}$ac_header_preproc" >&6
8851 # So? What about this header?
8852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8854 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8855 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8857 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8858 ac_header_preproc=yes
8861 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8862 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8863 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8864 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8865 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8866 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8867 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8868 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8870 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8871 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8872 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8875 ## ------------------------------------------ ##
8876 ## Report this to the AC_PACKAGE_NAME lists. ##
8877 ## ------------------------------------------ ##
8880 sed "s/^/$as_me: WARNING: /" >&2
8883 echo "$as_me:$LINENO: checking for $ac_header" >&5
8884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8886 echo $ECHO_N "(cached) $ECHO_C" >&6
8888 eval "$as_ac_Header=\$ac_header_preproc"
8890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8895 cat >>confdefs.h <<_ACEOF
8896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8898 HAVE_FREETYPE_FREETYPE_H=1
8903 if test "x${HAVE_LIB_FREETYPE}" != "x";then
8904 if test "x${HAVE_FREETYPE_FREETYPE_H}" != "x";then
8909 if test "x${HAVE_FREETYPE}" = "x1"; then
8910 if test "x{$FREETYPE_CONFIG}" != "x"; then
8911 LIBS="$LIBS "`freetype-config --libs`
8913 LIBS="$LIBS -lfreetype"
8916 echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8917 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6
8919 cat > conftest.c << EOF
8920 #include <freetype/freetype.h>
8921 #include <freetype/ftglyph.h>
8922 #include <freetype/ftsnames.h>
8923 #include <freetype/ttnameid.h>
8924 #include <freetype/ftoutln.h>
8928 FT_Library ftlibrary;
8940 FT_Init_FreeType(&ftlibrary);
8941 FT_New_Face(ftlibrary, "filename", 0, &face);
8942 i = face->num_glyphs - 1;
8943 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
8944 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
8945 FT_Get_Postscript_Name(face);
8946 FT_Get_Char_Index(face, 33);
8947 FT_Get_First_Char(face, &i);
8948 FT_Get_Next_Char(face, 33, &i);
8949 if(FT_HAS_GLYPH_NAMES(face)) {
8950 FT_Get_Glyph_Name(face, 33, name, 127);
8952 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
8953 FT_Get_Glyph(face->glyph, &glyph);
8954 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
8955 FT_Done_Glyph(glyph);
8957 FT_Done_FreeType(ftlibrary);
8962 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LIBS -o conftest${ac_exeext}'
8963 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8964 echo "$as_me:$LINENO: result: yes" >&5
8965 echo "${ECHO_T}yes" >&6
8966 cat >>confdefs.h <<_ACEOF
8967 #define HAVE_FREETYPE 1
8970 cat >>confdefs.h <<_ACEOF
8971 #define USE_FREETYPE 1
8975 echo "configure: failed program was:" >&5
8978 echo "$as_me:$LINENO: result: no" >&5
8979 echo "${ECHO_T}no" >&6
8984 # if the above didn't work out, reset all changes to the compiler variables.
8985 if test "x${HAVE_FREETYPE}" "!=" "x1"; then
8986 CPPFLAGS=$OLDCPPFLAGS
8992 echo "$as_me:$LINENO: checking for byte order" >&5
8993 echo $ECHO_N "checking for byte order... $ECHO_C" >&6
8994 if test "$cross_compiling" = yes; then
8997 cat >conftest.$ac_ext <<_ACEOF
9000 cat confdefs.h >>conftest.$ac_ext
9001 cat >>conftest.$ac_ext <<_ACEOF
9002 /* end confdefs.h. */
9004 int main (int argc, char *argv[])
9011 rm -f conftest$ac_exeext
9012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9013 (eval $ac_link) 2>&5
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); }; }; then
9024 echo "$as_me: program exited with status $ac_status" >&5
9025 echo "$as_me: failed program was:" >&5
9026 sed 's/^/| /' conftest.$ac_ext >&5
9031 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9035 if test "x${CROSSCOMPILE}" = "x1"; then
9036 echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
9037 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6
9038 echo "$as_me:$LINENO: checking target system type" >&5
9039 echo $ECHO_N "checking target system type... $ECHO_C" >&6
9040 if test "${ac_cv_target+set}" = set; then
9041 echo $ECHO_N "(cached) $ECHO_C" >&6
9043 ac_cv_target_alias=$target_alias
9044 test "x$ac_cv_target_alias" = "x" &&
9045 ac_cv_target_alias=$ac_cv_host_alias
9046 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
9047 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
9048 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
9049 { (exit 1); exit 1; }; }
9052 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
9053 echo "${ECHO_T}$ac_cv_target" >&6
9054 target=$ac_cv_target
9055 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
9056 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
9057 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
9060 # The aliases save the names the user supplied, while $host etc.
9061 # will get canonicalized.
9062 test -n "$target_alias" &&
9063 test "$program_prefix$program_suffix$program_transform_name" = \
9065 program_prefix=${target_alias}-
9066 echo "$as_me:$LINENO: checking for byte order, try 2" >&5
9067 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6
9072 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
9079 if test "x${LITTLEENDIAN}" = "x1"; then
9080 echo "$as_me:$LINENO: result: little endian" >&5
9081 echo "${ECHO_T}little endian" >&6
9085 if test "x${BIGENDIAN}" = "x1"; then
9086 echo "$as_me:$LINENO: result: big endian" >&5
9087 echo "${ECHO_T}big endian" >&6
9090 export WORDS_BIGENDIAN
9091 cat >>confdefs.h <<_ACEOF
9092 #define WORDS_BIGENDIAN 1
9096 if test "x${BYTEORDERCHECKOK}" != "x1"; then
9097 echo "$as_me:$LINENO: result: unknown" >&5
9098 echo "${ECHO_T}unknown" >&6
9099 echo Byte order could not determined.
9105 echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
9106 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6
9107 if test "$cross_compiling" = yes; then
9110 cat >conftest.$ac_ext <<_ACEOF
9113 cat confdefs.h >>conftest.$ac_ext
9114 cat >>conftest.$ac_ext <<_ACEOF
9115 /* end confdefs.h. */
9118 int main (int argc, char*argv[])
9120 return system("test `touch config.tmp2`");
9124 rm -f conftest$ac_exeext
9125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9126 (eval $ac_link) 2>&5
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); }; }; then
9137 echo "$as_me: program exited with status $ac_status" >&5
9138 echo "$as_me: failed program was:" >&5
9139 sed 's/^/| /' conftest.$ac_ext >&5
9142 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9145 if test "x${OK}" = "xOK";then
9146 test -f config.tmp2 || OK=
9149 if test "x${CROSSCOMPILE}" = "x1";then
9152 if test "x${OK}" = "xOK";then
9154 echo "$as_me:$LINENO: result: yes" >&5
9155 echo "${ECHO_T}yes" >&6
9157 export SYSTEM_BACKTICKS
9158 cat >>confdefs.h <<_ACEOF
9159 #define SYSTEM_BACKTICKS 1
9163 echo "$as_me:$LINENO: result: no" >&5
9164 echo "${ECHO_T}no" >&6
9169 test "$program_prefix" != NONE &&
9170 program_transform_name="s,^,$program_prefix,;$program_transform_name"
9171 # Use a double $ so make ignores it.
9172 test "$program_suffix" != NONE &&
9173 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
9174 # Double any \ or $. echo might interpret backslashes.
9175 # By default was `s,x,x', remove it if useless.
9176 cat <<\_ACEOF >conftest.sed
9177 s/[\\$]/&&/g;s/;s,x,x,$//
9179 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
9183 ac_config_headers="$ac_config_headers config.h"
9191 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9192 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9193 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9194 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9196 echo $ECHO_N "(cached) $ECHO_C" >&6
9198 cat >conftest.$ac_ext <<_ACEOF
9201 cat confdefs.h >>conftest.$ac_ext
9202 cat >>conftest.$ac_ext <<_ACEOF
9203 /* end confdefs.h. */
9204 #include <sys/types.h>
9216 rm -f conftest.$ac_objext
9217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9218 (eval $ac_compile) 2>conftest.er1
9220 grep -v '^ *+' conftest.er1 >conftest.err
9222 cat conftest.err >&5
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); } &&
9225 { ac_try='test -z "$ac_c_werror_flag"
9226 || test ! -s conftest.err'
9227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); }; } &&
9232 { ac_try='test -s conftest.$ac_objext'
9233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); }; }; then
9238 eval "$as_ac_Header=yes"
9240 echo "$as_me: failed program was:" >&5
9241 sed 's/^/| /' conftest.$ac_ext >&5
9243 eval "$as_ac_Header=no"
9245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9250 cat >>confdefs.h <<_ACEOF
9251 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9254 ac_header_dirent=$ac_hdr; break
9258 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9259 if test $ac_header_dirent = dirent.h; then
9260 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9261 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9262 if test "${ac_cv_search_opendir+set}" = set; then
9263 echo $ECHO_N "(cached) $ECHO_C" >&6
9265 ac_func_search_save_LIBS=$LIBS
9266 ac_cv_search_opendir=no
9267 cat >conftest.$ac_ext <<_ACEOF
9270 cat confdefs.h >>conftest.$ac_ext
9271 cat >>conftest.$ac_ext <<_ACEOF
9272 /* end confdefs.h. */
9274 /* Override any gcc2 internal prototype to avoid an error. */
9278 /* We use char because int might match the return type of a gcc2
9279 builtin and then its argument prototype would still apply. */
9289 rm -f conftest.$ac_objext conftest$ac_exeext
9290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9291 (eval $ac_link) 2>conftest.er1
9293 grep -v '^ *+' conftest.er1 >conftest.err
9295 cat conftest.err >&5
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); } &&
9298 { ac_try='test -z "$ac_c_werror_flag"
9299 || test ! -s conftest.err'
9300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); }; } &&
9305 { ac_try='test -s conftest$ac_exeext'
9306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); }; }; then
9311 ac_cv_search_opendir="none required"
9313 echo "$as_me: failed program was:" >&5
9314 sed 's/^/| /' conftest.$ac_ext >&5
9317 rm -f conftest.err conftest.$ac_objext \
9318 conftest$ac_exeext conftest.$ac_ext
9319 if test "$ac_cv_search_opendir" = no; then
9320 for ac_lib in dir; do
9321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9322 cat >conftest.$ac_ext <<_ACEOF
9325 cat confdefs.h >>conftest.$ac_ext
9326 cat >>conftest.$ac_ext <<_ACEOF
9327 /* end confdefs.h. */
9329 /* Override any gcc2 internal prototype to avoid an error. */
9333 /* We use char because int might match the return type of a gcc2
9334 builtin and then its argument prototype would still apply. */
9344 rm -f conftest.$ac_objext conftest$ac_exeext
9345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9346 (eval $ac_link) 2>conftest.er1
9348 grep -v '^ *+' conftest.er1 >conftest.err
9350 cat conftest.err >&5
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); } &&
9353 { ac_try='test -z "$ac_c_werror_flag"
9354 || test ! -s conftest.err'
9355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); }; } &&
9360 { ac_try='test -s conftest$ac_exeext'
9361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); }; }; then
9366 ac_cv_search_opendir="-l$ac_lib"
9369 echo "$as_me: failed program was:" >&5
9370 sed 's/^/| /' conftest.$ac_ext >&5
9373 rm -f conftest.err conftest.$ac_objext \
9374 conftest$ac_exeext conftest.$ac_ext
9377 LIBS=$ac_func_search_save_LIBS
9379 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9380 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9381 if test "$ac_cv_search_opendir" != no; then
9382 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9387 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9388 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9389 if test "${ac_cv_search_opendir+set}" = set; then
9390 echo $ECHO_N "(cached) $ECHO_C" >&6
9392 ac_func_search_save_LIBS=$LIBS
9393 ac_cv_search_opendir=no
9394 cat >conftest.$ac_ext <<_ACEOF
9397 cat confdefs.h >>conftest.$ac_ext
9398 cat >>conftest.$ac_ext <<_ACEOF
9399 /* end confdefs.h. */
9401 /* Override any gcc2 internal prototype to avoid an error. */
9405 /* We use char because int might match the return type of a gcc2
9406 builtin and then its argument prototype would still apply. */
9416 rm -f conftest.$ac_objext conftest$ac_exeext
9417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9418 (eval $ac_link) 2>conftest.er1
9420 grep -v '^ *+' conftest.er1 >conftest.err
9422 cat conftest.err >&5
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); } &&
9425 { ac_try='test -z "$ac_c_werror_flag"
9426 || test ! -s conftest.err'
9427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); }; } &&
9432 { ac_try='test -s conftest$ac_exeext'
9433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); }; }; then
9438 ac_cv_search_opendir="none required"
9440 echo "$as_me: failed program was:" >&5
9441 sed 's/^/| /' conftest.$ac_ext >&5
9444 rm -f conftest.err conftest.$ac_objext \
9445 conftest$ac_exeext conftest.$ac_ext
9446 if test "$ac_cv_search_opendir" = no; then
9448 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9449 cat >conftest.$ac_ext <<_ACEOF
9452 cat confdefs.h >>conftest.$ac_ext
9453 cat >>conftest.$ac_ext <<_ACEOF
9454 /* end confdefs.h. */
9456 /* Override any gcc2 internal prototype to avoid an error. */
9460 /* We use char because int might match the return type of a gcc2
9461 builtin and then its argument prototype would still apply. */
9471 rm -f conftest.$ac_objext conftest$ac_exeext
9472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9473 (eval $ac_link) 2>conftest.er1
9475 grep -v '^ *+' conftest.er1 >conftest.err
9477 cat conftest.err >&5
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); } &&
9480 { ac_try='test -z "$ac_c_werror_flag"
9481 || test ! -s conftest.err'
9482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); }; } &&
9487 { ac_try='test -s conftest$ac_exeext'
9488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); }; }; then
9493 ac_cv_search_opendir="-l$ac_lib"
9496 echo "$as_me: failed program was:" >&5
9497 sed 's/^/| /' conftest.$ac_ext >&5
9500 rm -f conftest.err conftest.$ac_objext \
9501 conftest$ac_exeext conftest.$ac_ext
9504 LIBS=$ac_func_search_save_LIBS
9506 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9507 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9508 if test "$ac_cv_search_opendir" != no; then
9509 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9515 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9516 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9517 if test "${ac_cv_header_stdc+set}" = set; then
9518 echo $ECHO_N "(cached) $ECHO_C" >&6
9520 cat >conftest.$ac_ext <<_ACEOF
9523 cat confdefs.h >>conftest.$ac_ext
9524 cat >>conftest.$ac_ext <<_ACEOF
9525 /* end confdefs.h. */
9539 rm -f conftest.$ac_objext
9540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9541 (eval $ac_compile) 2>conftest.er1
9543 grep -v '^ *+' conftest.er1 >conftest.err
9545 cat conftest.err >&5
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); } &&
9548 { ac_try='test -z "$ac_c_werror_flag"
9549 || test ! -s conftest.err'
9550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); }; } &&
9555 { ac_try='test -s conftest.$ac_objext'
9556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); }; }; then
9561 ac_cv_header_stdc=yes
9563 echo "$as_me: failed program was:" >&5
9564 sed 's/^/| /' conftest.$ac_ext >&5
9566 ac_cv_header_stdc=no
9568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9570 if test $ac_cv_header_stdc = yes; then
9571 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9572 cat >conftest.$ac_ext <<_ACEOF
9575 cat confdefs.h >>conftest.$ac_ext
9576 cat >>conftest.$ac_ext <<_ACEOF
9577 /* end confdefs.h. */
9581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9582 $EGREP "memchr" >/dev/null 2>&1; then
9585 ac_cv_header_stdc=no
9591 if test $ac_cv_header_stdc = yes; then
9592 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9593 cat >conftest.$ac_ext <<_ACEOF
9596 cat confdefs.h >>conftest.$ac_ext
9597 cat >>conftest.$ac_ext <<_ACEOF
9598 /* end confdefs.h. */
9602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9603 $EGREP "free" >/dev/null 2>&1; then
9606 ac_cv_header_stdc=no
9612 if test $ac_cv_header_stdc = yes; then
9613 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9614 if test "$cross_compiling" = yes; then
9617 cat >conftest.$ac_ext <<_ACEOF
9620 cat confdefs.h >>conftest.$ac_ext
9621 cat >>conftest.$ac_ext <<_ACEOF
9622 /* end confdefs.h. */
9624 #if ((' ' & 0x0FF) == 0x020)
9625 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9626 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9628 # define ISLOWER(c) \
9629 (('a' <= (c) && (c) <= 'i') \
9630 || ('j' <= (c) && (c) <= 'r') \
9631 || ('s' <= (c) && (c) <= 'z'))
9632 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9635 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9640 for (i = 0; i < 256; i++)
9641 if (XOR (islower (i), ISLOWER (i))
9642 || toupper (i) != TOUPPER (i))
9647 rm -f conftest$ac_exeext
9648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9649 (eval $ac_link) 2>&5
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); }; }; then
9660 echo "$as_me: program exited with status $ac_status" >&5
9661 echo "$as_me: failed program was:" >&5
9662 sed 's/^/| /' conftest.$ac_ext >&5
9665 ac_cv_header_stdc=no
9667 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9671 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9672 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9673 if test $ac_cv_header_stdc = yes; then
9675 cat >>confdefs.h <<\_ACEOF
9676 #define STDC_HEADERS 1
9695 for ac_header 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 time.h
9697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9699 echo "$as_me:$LINENO: checking for $ac_header" >&5
9700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9702 echo $ECHO_N "(cached) $ECHO_C" >&6
9704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9707 # Is the header compilable?
9708 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9709 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9710 cat >conftest.$ac_ext <<_ACEOF
9713 cat confdefs.h >>conftest.$ac_ext
9714 cat >>conftest.$ac_ext <<_ACEOF
9715 /* end confdefs.h. */
9716 $ac_includes_default
9717 #include <$ac_header>
9719 rm -f conftest.$ac_objext
9720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9721 (eval $ac_compile) 2>conftest.er1
9723 grep -v '^ *+' conftest.er1 >conftest.err
9725 cat conftest.err >&5
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); } &&
9728 { ac_try='test -z "$ac_c_werror_flag"
9729 || test ! -s conftest.err'
9730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; } &&
9735 { ac_try='test -s conftest.$ac_objext'
9736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); }; }; then
9741 ac_header_compiler=yes
9743 echo "$as_me: failed program was:" >&5
9744 sed 's/^/| /' conftest.$ac_ext >&5
9746 ac_header_compiler=no
9748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9749 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9750 echo "${ECHO_T}$ac_header_compiler" >&6
9752 # Is the header present?
9753 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9754 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9755 cat >conftest.$ac_ext <<_ACEOF
9758 cat confdefs.h >>conftest.$ac_ext
9759 cat >>conftest.$ac_ext <<_ACEOF
9760 /* end confdefs.h. */
9761 #include <$ac_header>
9763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9766 grep -v '^ *+' conftest.er1 >conftest.err
9768 cat conftest.err >&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); } >/dev/null; then
9771 if test -s conftest.err; then
9772 ac_cpp_err=$ac_c_preproc_warn_flag
9773 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9780 if test -z "$ac_cpp_err"; then
9781 ac_header_preproc=yes
9783 echo "$as_me: failed program was:" >&5
9784 sed 's/^/| /' conftest.$ac_ext >&5
9786 ac_header_preproc=no
9788 rm -f conftest.err conftest.$ac_ext
9789 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9790 echo "${ECHO_T}$ac_header_preproc" >&6
9792 # So? What about this header?
9793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9795 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9796 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9798 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9799 ac_header_preproc=yes
9802 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9803 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9804 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9805 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9806 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9807 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9808 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9809 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9812 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9813 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9816 ## ------------------------------------------ ##
9817 ## Report this to the AC_PACKAGE_NAME lists. ##
9818 ## ------------------------------------------ ##
9821 sed "s/^/$as_me: WARNING: /" >&2
9824 echo "$as_me:$LINENO: checking for $ac_header" >&5
9825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9827 echo $ECHO_N "(cached) $ECHO_C" >&6
9829 eval "$as_ac_Header=\$ac_header_preproc"
9831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9832 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9836 cat >>confdefs.h <<_ACEOF
9837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9845 if test "x${ac_cv_header_jpeglib_h}" != "xyes"; then
9846 DISABLEPDF2SWF=true;
9847 DISABLEJPEG2SWF=true;
9848 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
9850 if test "x${ac_cv_header_t1lib_h}" != "xyes"; then
9851 DISABLEPDF2SWF=true;
9852 MISSINGLIBS="${MISSINGLIBS} t1lib.h"
9854 if test "x${ac_cv_header_zlib_h}" != "xyes"; then
9855 DISABLEPNG2SWF=true;
9856 MISSINGLIBS="${MISSINGLIBS} zlib.h"
9860 cat >>confdefs.h <<_ACEOF
9861 #define PACKAGE "$PACKAGE"
9864 cat >>confdefs.h <<_ACEOF
9865 #define VERSION "$VERSION"
9874 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9875 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9876 if test "${ac_cv_c_const+set}" = set; then
9877 echo $ECHO_N "(cached) $ECHO_C" >&6
9879 cat >conftest.$ac_ext <<_ACEOF
9882 cat confdefs.h >>conftest.$ac_ext
9883 cat >>conftest.$ac_ext <<_ACEOF
9884 /* end confdefs.h. */
9889 /* FIXME: Include the comments suggested by Paul. */
9891 /* Ultrix mips cc rejects this. */
9892 typedef int charset[2];
9894 /* SunOS 4.1.1 cc rejects this. */
9895 char const *const *ccp;
9897 /* NEC SVR4.0.2 mips cc rejects this. */
9898 struct point {int x, y;};
9899 static struct point const zero = {0,0};
9900 /* AIX XL C 1.02.0.0 rejects this.
9901 It does not let you subtract one const X* pointer from another in
9902 an arm of an if-expression whose if-part is not a constant
9904 const char *g = "string";
9905 ccp = &g + (g ? g-g : 0);
9906 /* HPUX 7.0 cc rejects these. */
9909 ccp = (char const *const *) p;
9910 { /* SCO 3.2v4 cc rejects this. */
9912 char const *s = 0 ? (char *) 0 : (char const *) 0;
9916 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9918 const int *foo = &x[0];
9921 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9922 typedef const int *iptr;
9926 { /* AIX XL C 1.02.0.0 rejects this saying
9927 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9928 struct s { int j; const int *ap[3]; };
9929 struct s *b; b->j = 5;
9931 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9940 rm -f conftest.$ac_objext
9941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9942 (eval $ac_compile) 2>conftest.er1
9944 grep -v '^ *+' conftest.er1 >conftest.err
9946 cat conftest.err >&5
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); } &&
9949 { ac_try='test -z "$ac_c_werror_flag"
9950 || test ! -s conftest.err'
9951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); }; } &&
9956 { ac_try='test -s conftest.$ac_objext'
9957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); }; }; then
9964 echo "$as_me: failed program was:" >&5
9965 sed 's/^/| /' conftest.$ac_ext >&5
9969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9971 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9972 echo "${ECHO_T}$ac_cv_c_const" >&6
9973 if test $ac_cv_c_const = no; then
9975 cat >>confdefs.h <<\_ACEOF
9981 echo "$as_me:$LINENO: checking for inline" >&5
9982 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9983 if test "${ac_cv_c_inline+set}" = set; then
9984 echo $ECHO_N "(cached) $ECHO_C" >&6
9987 for ac_kw in inline __inline__ __inline; do
9988 cat >conftest.$ac_ext <<_ACEOF
9991 cat confdefs.h >>conftest.$ac_ext
9992 cat >>conftest.$ac_ext <<_ACEOF
9993 /* end confdefs.h. */
9996 static $ac_kw foo_t static_foo () {return 0; }
9997 $ac_kw foo_t foo () {return 0; }
10001 rm -f conftest.$ac_objext
10002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10003 (eval $ac_compile) 2>conftest.er1
10005 grep -v '^ *+' conftest.er1 >conftest.err
10007 cat conftest.err >&5
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); } &&
10010 { ac_try='test -z "$ac_c_werror_flag"
10011 || test ! -s conftest.err'
10012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10013 (eval $ac_try) 2>&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); }; } &&
10017 { ac_try='test -s conftest.$ac_objext'
10018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10019 (eval $ac_try) 2>&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); }; }; then
10023 ac_cv_c_inline=$ac_kw; break
10025 echo "$as_me: failed program was:" >&5
10026 sed 's/^/| /' conftest.$ac_ext >&5
10029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10033 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10034 echo "${ECHO_T}$ac_cv_c_inline" >&6
10037 case $ac_cv_c_inline in
10040 case $ac_cv_c_inline in
10042 *) ac_val=$ac_cv_c_inline;;
10044 cat >>confdefs.h <<_ACEOF
10045 #ifndef __cplusplus
10046 #define inline $ac_val
10052 echo "$as_me:$LINENO: checking for off_t" >&5
10053 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10054 if test "${ac_cv_type_off_t+set}" = set; then
10055 echo $ECHO_N "(cached) $ECHO_C" >&6
10057 cat >conftest.$ac_ext <<_ACEOF
10060 cat confdefs.h >>conftest.$ac_ext
10061 cat >>conftest.$ac_ext <<_ACEOF
10062 /* end confdefs.h. */
10063 $ac_includes_default
10069 if (sizeof (off_t))
10075 rm -f conftest.$ac_objext
10076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10077 (eval $ac_compile) 2>conftest.er1
10079 grep -v '^ *+' conftest.er1 >conftest.err
10081 cat conftest.err >&5
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); } &&
10084 { ac_try='test -z "$ac_c_werror_flag"
10085 || test ! -s conftest.err'
10086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10087 (eval $ac_try) 2>&5
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); }; } &&
10091 { ac_try='test -s conftest.$ac_objext'
10092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10093 (eval $ac_try) 2>&5
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); }; }; then
10097 ac_cv_type_off_t=yes
10099 echo "$as_me: failed program was:" >&5
10100 sed 's/^/| /' conftest.$ac_ext >&5
10102 ac_cv_type_off_t=no
10104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10106 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10107 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10108 if test $ac_cv_type_off_t = yes; then
10112 cat >>confdefs.h <<_ACEOF
10118 echo "$as_me:$LINENO: checking for size_t" >&5
10119 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10120 if test "${ac_cv_type_size_t+set}" = set; then
10121 echo $ECHO_N "(cached) $ECHO_C" >&6
10123 cat >conftest.$ac_ext <<_ACEOF
10126 cat confdefs.h >>conftest.$ac_ext
10127 cat >>conftest.$ac_ext <<_ACEOF
10128 /* end confdefs.h. */
10129 $ac_includes_default
10135 if (sizeof (size_t))
10141 rm -f conftest.$ac_objext
10142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10143 (eval $ac_compile) 2>conftest.er1
10145 grep -v '^ *+' conftest.er1 >conftest.err
10147 cat conftest.err >&5
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); } &&
10150 { ac_try='test -z "$ac_c_werror_flag"
10151 || test ! -s conftest.err'
10152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10153 (eval $ac_try) 2>&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); }; } &&
10157 { ac_try='test -s conftest.$ac_objext'
10158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10159 (eval $ac_try) 2>&5
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); }; }; then
10163 ac_cv_type_size_t=yes
10165 echo "$as_me: failed program was:" >&5
10166 sed 's/^/| /' conftest.$ac_ext >&5
10168 ac_cv_type_size_t=no
10170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10172 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10173 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10174 if test $ac_cv_type_size_t = yes; then
10178 cat >>confdefs.h <<_ACEOF
10179 #define size_t unsigned
10184 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10185 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10186 if test "${ac_cv_struct_tm+set}" = set; then
10187 echo $ECHO_N "(cached) $ECHO_C" >&6
10189 cat >conftest.$ac_ext <<_ACEOF
10192 cat confdefs.h >>conftest.$ac_ext
10193 cat >>conftest.$ac_ext <<_ACEOF
10194 /* end confdefs.h. */
10195 #include <sys/types.h>
10201 struct tm *tp; tp->tm_sec;
10206 rm -f conftest.$ac_objext
10207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10208 (eval $ac_compile) 2>conftest.er1
10210 grep -v '^ *+' conftest.er1 >conftest.err
10212 cat conftest.err >&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); } &&
10215 { ac_try='test -z "$ac_c_werror_flag"
10216 || test ! -s conftest.err'
10217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218 (eval $ac_try) 2>&5
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; } &&
10222 { ac_try='test -s conftest.$ac_objext'
10223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10224 (eval $ac_try) 2>&5
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); }; }; then
10228 ac_cv_struct_tm=time.h
10230 echo "$as_me: failed program was:" >&5
10231 sed 's/^/| /' conftest.$ac_ext >&5
10233 ac_cv_struct_tm=sys/time.h
10235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10237 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10238 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10239 if test $ac_cv_struct_tm = sys/time.h; then
10241 cat >>confdefs.h <<\_ACEOF
10242 #define TM_IN_SYS_TIME 1
10247 echo "$as_me:$LINENO: checking for boolean" >&5
10248 echo $ECHO_N "checking for boolean... $ECHO_C" >&6
10249 if test "${ac_cv_type_boolean+set}" = set; then
10250 echo $ECHO_N "(cached) $ECHO_C" >&6
10252 cat >conftest.$ac_ext <<_ACEOF
10255 cat confdefs.h >>conftest.$ac_ext
10256 cat >>conftest.$ac_ext <<_ACEOF
10257 /* end confdefs.h. */
10258 $ac_includes_default
10264 if (sizeof (boolean))
10270 rm -f conftest.$ac_objext
10271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10272 (eval $ac_compile) 2>conftest.er1
10274 grep -v '^ *+' conftest.er1 >conftest.err
10276 cat conftest.err >&5
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); } &&
10279 { ac_try='test -z "$ac_c_werror_flag"
10280 || test ! -s conftest.err'
10281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10282 (eval $ac_try) 2>&5
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); }; } &&
10286 { ac_try='test -s conftest.$ac_objext'
10287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10288 (eval $ac_try) 2>&5
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); }; }; then
10292 ac_cv_type_boolean=yes
10294 echo "$as_me: failed program was:" >&5
10295 sed 's/^/| /' conftest.$ac_ext >&5
10297 ac_cv_type_boolean=no
10299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10301 echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
10302 echo "${ECHO_T}$ac_cv_type_boolean" >&6
10303 if test $ac_cv_type_boolean = yes; then
10307 cat >>confdefs.h <<_ACEOF
10308 #define boolean int
10313 echo "$as_me:$LINENO: checking for bool" >&5
10314 echo $ECHO_N "checking for bool... $ECHO_C" >&6
10315 if test "${ac_cv_type_bool+set}" = set; then
10316 echo $ECHO_N "(cached) $ECHO_C" >&6
10318 cat >conftest.$ac_ext <<_ACEOF
10321 cat confdefs.h >>conftest.$ac_ext
10322 cat >>conftest.$ac_ext <<_ACEOF
10323 /* end confdefs.h. */
10324 $ac_includes_default
10336 rm -f conftest.$ac_objext
10337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10338 (eval $ac_compile) 2>conftest.er1
10340 grep -v '^ *+' conftest.er1 >conftest.err
10342 cat conftest.err >&5
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); } &&
10345 { ac_try='test -z "$ac_c_werror_flag"
10346 || test ! -s conftest.err'
10347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348 (eval $ac_try) 2>&5
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); }; } &&
10352 { ac_try='test -s conftest.$ac_objext'
10353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354 (eval $ac_try) 2>&5
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); }; }; then
10358 ac_cv_type_bool=yes
10360 echo "$as_me: failed program was:" >&5
10361 sed 's/^/| /' conftest.$ac_ext >&5
10365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10367 echo "$as_me:$LINENO: result: $ac_cv_type_bool" >&5
10368 echo "${ECHO_T}$ac_cv_type_bool" >&6
10369 if test $ac_cv_type_bool = yes; then
10373 cat >>confdefs.h <<_ACEOF
10390 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
10392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10393 echo "$as_me:$LINENO: checking for $ac_func" >&5
10394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10395 if eval "test \"\${$as_ac_var+set}\" = set"; then
10396 echo $ECHO_N "(cached) $ECHO_C" >&6
10398 cat >conftest.$ac_ext <<_ACEOF
10401 cat confdefs.h >>conftest.$ac_ext
10402 cat >>conftest.$ac_ext <<_ACEOF
10403 /* end confdefs.h. */
10404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10406 #define $ac_func innocuous_$ac_func
10408 /* System header to define __stub macros and hopefully few prototypes,
10409 which can conflict with char $ac_func (); below.
10410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10411 <limits.h> exists even on freestanding compilers. */
10414 # include <limits.h>
10416 # include <assert.h>
10421 /* Override any gcc2 internal prototype to avoid an error. */
10426 /* We use char because int might match the return type of a gcc2
10427 builtin and then its argument prototype would still apply. */
10429 /* The GNU C library defines this for functions which it implements
10430 to always fail with ENOSYS. Some functions are actually named
10431 something starting with __ and the normal name is an alias. */
10432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10435 char (*f) () = $ac_func;
10444 return f != $ac_func;
10449 rm -f conftest.$ac_objext conftest$ac_exeext
10450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10451 (eval $ac_link) 2>conftest.er1
10453 grep -v '^ *+' conftest.er1 >conftest.err
10455 cat conftest.err >&5
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); } &&
10458 { ac_try='test -z "$ac_c_werror_flag"
10459 || test ! -s conftest.err'
10460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10461 (eval $ac_try) 2>&5
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); }; } &&
10465 { ac_try='test -s conftest$ac_exeext'
10466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10467 (eval $ac_try) 2>&5
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); }; }; then
10471 eval "$as_ac_var=yes"
10473 echo "$as_me: failed program was:" >&5
10474 sed 's/^/| /' conftest.$ac_ext >&5
10476 eval "$as_ac_var=no"
10478 rm -f conftest.err conftest.$ac_objext \
10479 conftest$ac_exeext conftest.$ac_ext
10481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10483 if test `eval echo '${'$as_ac_var'}'` = yes; then
10484 cat >>confdefs.h <<_ACEOF
10485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10493 for ac_prog in avifile-config
10495 # Extract the first word of "$ac_prog", so it can be a program name with args.
10496 set dummy $ac_prog; ac_word=$2
10497 echo "$as_me:$LINENO: checking for $ac_word" >&5
10498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10499 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
10500 echo $ECHO_N "(cached) $ECHO_C" >&6
10502 if test -n "$AVIFILE_CONFIG"; then
10503 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
10505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10506 for as_dir in $PATH
10509 test -z "$as_dir" && as_dir=.
10510 for ac_exec_ext in '' $ac_executable_extensions; do
10511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10512 ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
10513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10521 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
10522 if test -n "$AVIFILE_CONFIG"; then
10523 echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
10524 echo "${ECHO_T}$AVIFILE_CONFIG" >&6
10526 echo "$as_me:$LINENO: result: no" >&5
10527 echo "${ECHO_T}no" >&6
10530 test -n "$AVIFILE_CONFIG" && break
10534 if test "x$AVIFILE_CONFIG" '!=' "x";then
10535 OLDCPPFLAGS="$CPPFLAGS"
10536 #OLDLDFLAGS="$LDFLAGS"
10537 CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
10538 #LDFLAGS="$LDFLAGS `$AVIFILE_CONFIG --libs`"
10541 for ac_header in avifile/version.h version.h
10543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10545 echo "$as_me:$LINENO: checking for $ac_header" >&5
10546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10548 echo $ECHO_N "(cached) $ECHO_C" >&6
10550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10553 # Is the header compilable?
10554 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10555 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10556 cat >conftest.$ac_ext <<_ACEOF
10559 cat confdefs.h >>conftest.$ac_ext
10560 cat >>conftest.$ac_ext <<_ACEOF
10561 /* end confdefs.h. */
10562 $ac_includes_default
10563 #include <$ac_header>
10565 rm -f conftest.$ac_objext
10566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10567 (eval $ac_compile) 2>conftest.er1
10569 grep -v '^ *+' conftest.er1 >conftest.err
10571 cat conftest.err >&5
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); } &&
10574 { ac_try='test -z "$ac_c_werror_flag"
10575 || test ! -s conftest.err'
10576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577 (eval $ac_try) 2>&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); }; } &&
10581 { ac_try='test -s conftest.$ac_objext'
10582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10583 (eval $ac_try) 2>&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); }; }; then
10587 ac_header_compiler=yes
10589 echo "$as_me: failed program was:" >&5
10590 sed 's/^/| /' conftest.$ac_ext >&5
10592 ac_header_compiler=no
10594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10595 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10596 echo "${ECHO_T}$ac_header_compiler" >&6
10598 # Is the header present?
10599 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10600 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10601 cat >conftest.$ac_ext <<_ACEOF
10604 cat confdefs.h >>conftest.$ac_ext
10605 cat >>conftest.$ac_ext <<_ACEOF
10606 /* end confdefs.h. */
10607 #include <$ac_header>
10609 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10610 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10612 grep -v '^ *+' conftest.er1 >conftest.err
10614 cat conftest.err >&5
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); } >/dev/null; then
10617 if test -s conftest.err; then
10618 ac_cpp_err=$ac_c_preproc_warn_flag
10619 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10626 if test -z "$ac_cpp_err"; then
10627 ac_header_preproc=yes
10629 echo "$as_me: failed program was:" >&5
10630 sed 's/^/| /' conftest.$ac_ext >&5
10632 ac_header_preproc=no
10634 rm -f conftest.err conftest.$ac_ext
10635 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10636 echo "${ECHO_T}$ac_header_preproc" >&6
10638 # So? What about this header?
10639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10641 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10642 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10644 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10645 ac_header_preproc=yes
10648 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10649 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10650 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10651 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10652 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10653 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10654 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10655 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10657 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10658 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10659 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10662 ## ------------------------------------------ ##
10663 ## Report this to the AC_PACKAGE_NAME lists. ##
10664 ## ------------------------------------------ ##
10667 sed "s/^/$as_me: WARNING: /" >&2
10670 echo "$as_me:$LINENO: checking for $ac_header" >&5
10671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6
10675 eval "$as_ac_Header=\$ac_header_preproc"
10677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10678 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10681 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10682 cat >>confdefs.h <<_ACEOF
10683 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10690 #LDFLAGS="$OLDLDFLAGS"
10691 CPPFLAGS="$OLDCPPFLAGS"
10694 echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
10695 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6
10697 if test "x${ac_cv_header_version_h}" '=' "xyes";then
10698 HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
10700 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
10701 HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
10704 cat > conftest.cpp << EOF
10706 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
10707 // so we have to introduce them this way
10708 $HAVE_VERSION_H_DEFINE
10709 $HAVE_AVIFILE_VERSION_H_DEFINE
10711 #ifdef HAVE_VERSION_H
10712 #include <version.h>
10714 #ifdef HAVE_AVIFILE_VERSION_H
10715 #include <avifile/version.h>
10718 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
10719 #include <avifile.h>
10720 #include <aviplay.h>
10721 #include <fourcc.h>
10722 #include <creators.h>
10723 #include <StreamInfo.h>
10726 #include <avifile.h>
10727 #include <aviplay.h>
10728 #include <aviutil.h>
10729 #define Width width
10730 #define Height height
10737 IAviReadFile* player;
10738 IAviReadStream* astream;
10739 IAviReadStream* vstream;
10740 player = CreateIAviReadFile(0);
10741 astream = player->GetStream(0, AviStream::Audio);
10742 vstream = player->GetStream(0, AviStream::Video);
10743 vstream -> StartStreaming();
10744 astream -> StartStreaming();
10746 MainAVIHeader head;
10747 player->GetFileHeader(&head);
10748 head.dwMicroSecPerFrame;
10749 head.dwTotalFrames;
10753 head.dwMicroSecPerFrame;
10754 astream->GetEndPos(),
10755 astream->GetEndTime());
10756 player->StreamCount();
10758 StreamInfo*audioinfo;
10759 StreamInfo*videoinfo;
10760 audioinfo = astream->GetStreamInfo();
10761 videoinfo = vstream->GetStreamInfo();
10762 videoinfo->GetVideoWidth();
10763 videoinfo->GetVideoHeight();
10764 audioinfo->GetAudioSamplesPerSec();
10765 videoinfo->GetFps();
10767 CImage*img = vstream->GetFrame();
10774 astream->GetAudioFormatInfo(&wave,0);
10776 astream->ReadFrames(0,0,0,a,b);
10778 int main (int argc, char*argv)
10784 if test "x$AVIFILE_CONFIG" '!=' "x";then
10785 ac_link='$CXX $CPPFLAGS $CXXFLAGS `$AVIFILE_CONFIG --cflags` conftest.cpp `$AVIFILE_CONFIG --libs` -o conftest${ac_exeext}'
10786 if { (eval echo avi2swf.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
10787 echo "$as_me:$LINENO: result: yes" >&5
10788 echo "${ECHO_T}yes" >&6
10791 cat >>confdefs.h <<_ACEOF
10792 #define AVIFILE true
10796 echo "configure: failed program was:" >&5
10797 cat conftest.cpp >&5
10798 echo "$as_me:$LINENO: result: no" >&5
10799 echo "${ECHO_T}no" >&6
10802 echo "$as_me:$LINENO: result: no" >&5
10803 echo "${ECHO_T}no" >&6
10808 avi2swf="avi2swf/Makefile"
10809 if test "x${AVIFILE}" != "xtrue"; then
10810 echo "* Couldn't compile the avifile test program."
10811 echo "* Disabling avi2swf tool..."
10812 echo all install uninstall clean: > avi2swf/Makefile
10816 if test "x${DISABLE_LAME}" = "xtrue"; then
10817 echo "*" Disabling lame support...
10820 cat >>confdefs.h <<_ACEOF
10821 #define HAVE_LAME 1
10824 lame_objects='$(lame_objects_2)'
10828 if test "x${UNCOMPRESS}" = "xgzip"; then
10829 cat >>confdefs.h <<_ACEOF
10836 JPEG2SWF='jpeg2swf$(E)'
10838 PNG2SWF='png2swf$(E)'
10841 if test "x" = "x"; then
10842 pythonrfxswf="lib/python/Makefile"
10844 echo all install uninstall clean: > lib/python/Makefile
10847 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
10848 echo "***************************************************"
10849 echo "The following headers/libraries are missing: " ${MISSINGLIBS}
10850 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
10851 echo "Disabling pdf2swf tool..."
10852 rm -f pdf2swf/Makefile
10853 echo all install uninstall clean: > pdf2swf/Makefile
10855 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
10856 echo "Disabling jpeg2swf tool..."
10860 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
10861 echo "Disabling png2swf tool..."
10865 if test "x${ZLIBMISSING}" = "xtrue"; then
10867 echo "Warning! Without zlib, you will not be able to read"
10868 echo "or write compressed Flash MX files!"
10870 echo "***************************************************"
10871 FILES="./release Makefile.common ${avi2swf} Makefile lib/lame/Makefile lib/Makefile lib/action/Makefile src/Makefile swfs/Makefile ${pythonrfxswf}"
10873 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 ${pythonrfxswf}"
10878 ac_config_files="$ac_config_files ${FILES}"
10880 cat >confcache <<\_ACEOF
10881 # This file is a shell script that caches the results of configure
10882 # tests run on this system so they can be shared between configure
10883 # scripts and configure runs, see configure's option --config-cache.
10884 # It is not useful on other systems. If it contains results you don't
10885 # want to keep, you may remove or edit it.
10887 # config.status only pays attention to the cache file if you give it
10888 # the --recheck option to rerun configure.
10890 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10891 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10892 # following values.
10896 # The following way of writing the cache mishandles newlines in values,
10897 # but we know of no workaround that is simple, portable, and efficient.
10898 # So, don't put newlines in cache variables' values.
10899 # Ultrix sh set writes to stderr and can't be redirected directly,
10900 # and sets the high bit in the cache file unless we assign to the vars.
10903 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10905 # `set' does not quote correctly, so add quotes (double-quote
10906 # substitution turns \\\\ into \\, and sed turns \\ into \).
10909 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10912 # `set' quotes correctly as required by POSIX, so do not add quotes.
10914 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10921 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10923 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10925 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10926 if test -w $cache_file; then
10927 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10928 cat confcache >$cache_file
10930 echo "not updating unwritable cache $cache_file"
10935 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10936 # Let make expand exec_prefix.
10937 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10939 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10940 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10941 # trailing colons and then remove the whole line if VPATH becomes empty
10942 # (actually we leave an empty line to preserve line numbers).
10943 if test "x$srcdir" = x.; then
10944 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10945 s/:*\$(srcdir):*/:/;
10946 s/:*\${srcdir}:*/:/;
10948 s/^\([^=]*=[ ]*\):*/\1/;
10954 DEFS=-DHAVE_CONFIG_H
10958 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10959 # 1. Remove the extension, and $U if already installed.
10960 ac_i=`echo "$ac_i" |
10961 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10963 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10964 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10966 LIBOBJS=$ac_libobjs
10968 LTLIBOBJS=$ac_ltlibobjs
10972 : ${CONFIG_STATUS=./config.status}
10973 ac_clean_files_save=$ac_clean_files
10974 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10975 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10976 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10977 cat >$CONFIG_STATUS <<_ACEOF
10979 # Generated by $as_me.
10980 # Run this file to recreate the current configuration.
10981 # Compiler output produced by configure, useful for debugging
10982 # configure, is in config.log if it exists.
10985 ac_cs_recheck=false
10987 SHELL=\${CONFIG_SHELL-$SHELL}
10990 cat >>$CONFIG_STATUS <<\_ACEOF
10991 ## --------------------- ##
10992 ## M4sh Initialization. ##
10993 ## --------------------- ##
10995 # Be Bourne compatible
10996 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10999 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11000 # is contrary to our usage. Disable this feature.
11001 alias -g '${1+"$@"}'='"$@"'
11002 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11005 DUALCASE=1; export DUALCASE # for MKS sh
11007 # Support unset when possible.
11008 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11015 # Work around bugs in pre-3.0 UWIN ksh.
11016 $as_unset ENV MAIL MAILPATH
11023 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11024 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11025 LC_TELEPHONE LC_TIME
11027 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11028 eval $as_var=C; export $as_var
11034 # Required to use basename.
11035 if expr a : '\(a\)' >/dev/null 2>&1; then
11041 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11042 as_basename=basename
11048 # Name of the executable.
11049 as_me=`$as_basename "$0" ||
11050 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11051 X"$0" : 'X\(//\)$' \| \
11052 X"$0" : 'X\(/\)$' \| \
11053 . : '\(.\)' 2>/dev/null ||
11055 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11056 /^X\/\(\/\/\)$/{ s//\1/; q; }
11057 /^X\/\(\/\).*/{ s//\1/; q; }
11061 # PATH needs CR, and LINENO needs CR and PATH.
11062 # Avoid depending upon Character Ranges.
11063 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11064 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11065 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11066 as_cr_digits='0123456789'
11067 as_cr_alnum=$as_cr_Letters$as_cr_digits
11069 # The user is always right.
11070 if test "${PATH_SEPARATOR+set}" != set; then
11071 echo "#! /bin/sh" >conf$$.sh
11072 echo "exit 0" >>conf$$.sh
11074 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11083 as_lineno_1=$LINENO
11084 as_lineno_2=$LINENO
11085 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11086 test "x$as_lineno_1" != "x$as_lineno_2" &&
11087 test "x$as_lineno_3" = "x$as_lineno_2" || {
11088 # Find who we are. Look in the path if we contain no path at all
11091 *[\\/]* ) as_myself=$0 ;;
11092 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11093 for as_dir in $PATH
11096 test -z "$as_dir" && as_dir=.
11097 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11102 # We did not find ourselves, most probably we were run as `sh COMMAND'
11103 # in which case we are not to be found in the path.
11104 if test "x$as_myself" = x; then
11107 if test ! -f "$as_myself"; then
11108 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11109 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11110 { (exit 1); exit 1; }; }
11112 case $CONFIG_SHELL in
11114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11115 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11118 test -z "$as_dir" && as_dir=.
11119 for as_base in sh bash ksh sh5; do
11122 if ("$as_dir/$as_base" -c '
11123 as_lineno_1=$LINENO
11124 as_lineno_2=$LINENO
11125 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11126 test "x$as_lineno_1" != "x$as_lineno_2" &&
11127 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11128 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11129 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11130 CONFIG_SHELL=$as_dir/$as_base
11131 export CONFIG_SHELL
11132 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11140 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11141 # uniformly replaced by the line number. The first 'sed' inserts a
11142 # line-number line before each line; the second 'sed' does the real
11143 # work. The second script uses 'N' to pair each line-number line
11144 # with the numbered line, and appends trailing '-' during
11145 # substitution so that $LINENO is not a special case at line end.
11146 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11147 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11148 sed '=' <$as_myself |
11153 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11156 s,^['$as_cr_digits']*\n,,
11157 ' >$as_me.lineno &&
11158 chmod +x $as_me.lineno ||
11159 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11160 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11161 { (exit 1); exit 1; }; }
11163 # Don't try to exec as it changes $[0], causing all sort of problems
11164 # (the dirname of $[0] is not the place where we might find the
11165 # original and so on. Autoconf is especially sensible to this).
11167 # Exit status is that of the last command.
11172 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11173 *c*,-n*) ECHO_N= ECHO_C='
11175 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11176 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11179 if expr a : '\(a\)' >/dev/null 2>&1; then
11185 rm -f conf$$ conf$$.exe conf$$.file
11187 if ln -s conf$$.file conf$$ 2>/dev/null; then
11188 # We could just check for DJGPP; but this test a) works b) is more generic
11189 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11190 if test -f conf$$.exe; then
11191 # Don't use ln at all; we don't have any links
11196 elif ln conf$$.file conf$$ 2>/dev/null; then
11201 rm -f conf$$ conf$$.exe conf$$.file
11203 if mkdir -p . 2>/dev/null; then
11206 test -d ./-p && rmdir ./-p
11210 as_executable_p="test -f"
11212 # Sed expression to map a string onto a valid CPP name.
11213 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11215 # Sed expression to map a string onto a valid variable name.
11216 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11220 # We need space, tab and new line, in precisely that order.
11230 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11231 # report actual input values of CONFIG_FILES etc. instead of their
11232 # values after options handling. Logging --version etc. is OK.
11236 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11237 ## Running $as_me. ##
11242 This file was extended by $as_me, which was
11243 generated by GNU Autoconf 2.58. Invocation command line was
11245 CONFIG_FILES = $CONFIG_FILES
11246 CONFIG_HEADERS = $CONFIG_HEADERS
11247 CONFIG_LINKS = $CONFIG_LINKS
11248 CONFIG_COMMANDS = $CONFIG_COMMANDS
11252 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11256 # Files that config.status was made for.
11257 if test -n "$ac_config_files"; then
11258 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11261 if test -n "$ac_config_headers"; then
11262 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11265 if test -n "$ac_config_links"; then
11266 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11269 if test -n "$ac_config_commands"; then
11270 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11273 cat >>$CONFIG_STATUS <<\_ACEOF
11276 \`$as_me' instantiates files from templates according to the
11277 current configuration.
11279 Usage: $0 [OPTIONS] [FILE]...
11281 -h, --help print this help, then exit
11282 -V, --version print version number, then exit
11283 -q, --quiet do not print progress messages
11284 -d, --debug don't remove temporary files
11285 --recheck update $as_me by reconfiguring in the same conditions
11286 --file=FILE[:TEMPLATE]
11287 instantiate the configuration file FILE
11288 --header=FILE[:TEMPLATE]
11289 instantiate the configuration header FILE
11291 Configuration files:
11294 Configuration headers:
11297 Report bugs to <bug-autoconf@gnu.org>."
11300 cat >>$CONFIG_STATUS <<_ACEOF
11303 configured by $0, generated by GNU Autoconf 2.58,
11304 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11306 Copyright (C) 2003 Free Software Foundation, Inc.
11307 This config.status script is free software; the Free Software Foundation
11308 gives unlimited permission to copy, distribute and modify it."
11313 cat >>$CONFIG_STATUS <<\_ACEOF
11314 # If no file are specified by the user, then we need to provide default
11315 # value. By we need to know if files were specified by the user.
11321 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11322 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11330 *) # This is not an option, so the user has probably given explicit
11333 ac_need_defaults=false;;
11337 # Handling of the options.
11339 cat >>$CONFIG_STATUS <<\_ACEOF
11340 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11342 --version | --vers* | -V )
11343 echo "$ac_cs_version"; exit 0 ;;
11345 # Conflict between --help and --header
11346 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11347 Try \`$0 --help' for more information." >&5
11348 echo "$as_me: error: ambiguous option: $1
11349 Try \`$0 --help' for more information." >&2;}
11350 { (exit 1); exit 1; }; };;
11351 --help | --hel | -h )
11352 echo "$ac_cs_usage"; exit 0 ;;
11353 --debug | --d* | -d )
11355 --file | --fil | --fi | --f )
11357 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11358 ac_need_defaults=false;;
11359 --header | --heade | --head | --hea )
11361 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11362 ac_need_defaults=false;;
11363 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11364 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11367 # This is an error.
11368 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11369 Try \`$0 --help' for more information." >&5
11370 echo "$as_me: error: unrecognized option: $1
11371 Try \`$0 --help' for more information." >&2;}
11372 { (exit 1); exit 1; }; } ;;
11374 *) ac_config_targets="$ac_config_targets $1" ;;
11380 ac_configure_extra_args=
11382 if $ac_cs_silent; then
11384 ac_configure_extra_args="$ac_configure_extra_args --silent"
11388 cat >>$CONFIG_STATUS <<_ACEOF
11389 if \$ac_cs_recheck; then
11390 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11391 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11400 cat >>$CONFIG_STATUS <<\_ACEOF
11401 for ac_config_target in $ac_config_targets
11403 case "$ac_config_target" in
11404 # Handling of arguments.
11405 "${FILES}" ) CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
11406 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11407 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11408 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11409 { (exit 1); exit 1; }; };;
11413 # If the user did not use the arguments to specify the items to instantiate,
11414 # then the envvar interface is used. Set only those that are not.
11415 # We use the long form for the default assignment because of an extremely
11416 # bizarre bug on SunOS 4.1.3.
11417 if $ac_need_defaults; then
11418 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11419 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11422 # Have a temporary directory for convenience. Make it in the build tree
11423 # simply because there is no reason to put it here, and in addition,
11424 # creating and moving files from /tmp can sometimes cause problems.
11425 # Create a temporary directory, and hook for its removal unless debugging.
11428 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11429 trap '{ (exit 1); exit 1; }' 1 2 13 15
11432 # Create a (secure) tmp directory for tmp files.
11435 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11436 test -n "$tmp" && test -d "$tmp"
11439 tmp=./confstat$$-$RANDOM
11440 (umask 077 && mkdir $tmp)
11443 echo "$me: cannot create a temporary directory in ." >&2
11444 { (exit 1); exit 1; }
11449 cat >>$CONFIG_STATUS <<_ACEOF
11452 # CONFIG_FILES section.
11455 # No need to generate the scripts if there are no CONFIG_FILES.
11456 # This happens for instance when ./config.status config.h
11457 if test -n "\$CONFIG_FILES"; then
11458 # Protect against being on the right side of a sed subst in config.status.
11459 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11460 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11461 s,@SHELL@,$SHELL,;t t
11462 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11463 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11464 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11465 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11466 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11467 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11468 s,@exec_prefix@,$exec_prefix,;t t
11469 s,@prefix@,$prefix,;t t
11470 s,@program_transform_name@,$program_transform_name,;t t
11471 s,@bindir@,$bindir,;t t
11472 s,@sbindir@,$sbindir,;t t
11473 s,@libexecdir@,$libexecdir,;t t
11474 s,@datadir@,$datadir,;t t
11475 s,@sysconfdir@,$sysconfdir,;t t
11476 s,@sharedstatedir@,$sharedstatedir,;t t
11477 s,@localstatedir@,$localstatedir,;t t
11478 s,@libdir@,$libdir,;t t
11479 s,@includedir@,$includedir,;t t
11480 s,@oldincludedir@,$oldincludedir,;t t
11481 s,@infodir@,$infodir,;t t
11482 s,@mandir@,$mandir,;t t
11483 s,@build_alias@,$build_alias,;t t
11484 s,@host_alias@,$host_alias,;t t
11485 s,@target_alias@,$target_alias,;t t
11486 s,@DEFS@,$DEFS,;t t
11487 s,@ECHO_C@,$ECHO_C,;t t
11488 s,@ECHO_N@,$ECHO_N,;t t
11489 s,@ECHO_T@,$ECHO_T,;t t
11490 s,@LIBS@,$LIBS,;t t
11491 s,@build@,$build,;t t
11492 s,@build_cpu@,$build_cpu,;t t
11493 s,@build_vendor@,$build_vendor,;t t
11494 s,@build_os@,$build_os,;t t
11495 s,@host@,$host,;t t
11496 s,@host_cpu@,$host_cpu,;t t
11497 s,@host_vendor@,$host_vendor,;t t
11498 s,@host_os@,$host_os,;t t
11500 s,@CFLAGS@,$CFLAGS,;t t
11501 s,@LDFLAGS@,$LDFLAGS,;t t
11502 s,@CPPFLAGS@,$CPPFLAGS,;t t
11503 s,@ac_ct_CC@,$ac_ct_CC,;t t
11504 s,@EXEEXT@,$EXEEXT,;t t
11505 s,@OBJEXT@,$OBJEXT,;t t
11507 s,@CXXFLAGS@,$CXXFLAGS,;t t
11508 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
11510 s,@RANLIB@,$RANLIB,;t t
11511 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11512 s,@SET_MAKE@,$SET_MAKE,;t t
11513 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11514 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11515 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11516 s,@LN_S@,$LN_S,;t t
11517 s,@ECHO@,$ECHO,;t t
11518 s,@STRIP@,$STRIP,;t t
11519 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11520 s,@EGREP@,$EGREP,;t t
11521 s,@LIBTOOL@,$LIBTOOL,;t t
11522 s,@UNCOMPRESS@,$UNCOMPRESS,;t t
11524 s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t
11525 s,@target@,$target,;t t
11526 s,@target_cpu@,$target_cpu,;t t
11527 s,@target_vendor@,$target_vendor,;t t
11528 s,@target_os@,$target_os,;t t
11529 s,@WORDS_BIGENDIAN@,$WORDS_BIGENDIAN,;t t
11530 s,@SYSTEM_BACKTICKS@,$SYSTEM_BACKTICKS,;t t
11531 s,@PACKAGE@,$PACKAGE,;t t
11532 s,@VERSION@,$VERSION,;t t
11533 s,@HAVE_UNISTD_H@,$HAVE_UNISTD_H,;t t
11534 s,@AVIFILE_CONFIG@,$AVIFILE_CONFIG,;t t
11535 s,@lame_objects@,$lame_objects,;t t
11536 s,@USE_GZIP@,$USE_GZIP,;t t
11537 s,@JPEG2SWF@,$JPEG2SWF,;t t
11538 s,@PNG2SWF@,$PNG2SWF,;t t
11539 s,@LIBOBJS@,$LIBOBJS,;t t
11540 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11545 cat >>$CONFIG_STATUS <<\_ACEOF
11546 # Split the substitutions into bite-sized pieces for seds with
11547 # small command number limits, like on Digital OSF/1 and HP-UX.
11548 ac_max_sed_lines=48
11549 ac_sed_frag=1 # Number of current file.
11550 ac_beg=1 # First line for current file.
11551 ac_end=$ac_max_sed_lines # Line after last line for current file.
11554 while $ac_more_lines; do
11555 if test $ac_beg -gt 1; then
11556 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11558 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11560 if test ! -s $tmp/subs.frag; then
11561 ac_more_lines=false
11563 # The purpose of the label and of the branching condition is to
11564 # speed up the sed processing (if there are no `@' at all, there
11565 # is no need to browse any of the substitutions).
11566 # These are the two extra sed commands mentioned above.
11568 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11569 if test -z "$ac_sed_cmds"; then
11570 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11572 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11574 ac_sed_frag=`expr $ac_sed_frag + 1`
11576 ac_end=`expr $ac_end + $ac_max_sed_lines`
11579 if test -z "$ac_sed_cmds"; then
11582 fi # test -n "$CONFIG_FILES"
11585 cat >>$CONFIG_STATUS <<\_ACEOF
11586 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11587 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11589 - | *:- | *:-:* ) # input from stdin
11591 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11592 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11593 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11594 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11595 * ) ac_file_in=$ac_file.in ;;
11598 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11599 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11600 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11601 X"$ac_file" : 'X\(//\)[^/]' \| \
11602 X"$ac_file" : 'X\(//\)$' \| \
11603 X"$ac_file" : 'X\(/\)' \| \
11604 . : '\(.\)' 2>/dev/null ||
11606 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11607 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11608 /^X\(\/\/\)$/{ s//\1/; q; }
11609 /^X\(\/\).*/{ s//\1/; q; }
11611 { if $as_mkdir_p; then
11616 while test ! -d "$as_dir"; do
11617 as_dirs="$as_dir $as_dirs"
11618 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11619 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11620 X"$as_dir" : 'X\(//\)[^/]' \| \
11621 X"$as_dir" : 'X\(//\)$' \| \
11622 X"$as_dir" : 'X\(/\)' \| \
11623 . : '\(.\)' 2>/dev/null ||
11625 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11626 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11627 /^X\(\/\/\)$/{ s//\1/; q; }
11628 /^X\(\/\).*/{ s//\1/; q; }
11631 test ! -n "$as_dirs" || mkdir $as_dirs
11632 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11633 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11634 { (exit 1); exit 1; }; }; }
11638 if test "$ac_dir" != .; then
11639 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11640 # A "../" for each directory in $ac_dir_suffix.
11641 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11643 ac_dir_suffix= ac_top_builddir=
11647 .) # No --srcdir option. We are building in place.
11649 if test -z "$ac_top_builddir"; then
11652 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11654 [\\/]* | ?:[\\/]* ) # Absolute path.
11655 ac_srcdir=$srcdir$ac_dir_suffix;
11656 ac_top_srcdir=$srcdir ;;
11657 *) # Relative path.
11658 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11659 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11662 .) ac_abs_builddir=$ac_builddir;;
11664 case $ac_builddir in
11665 .) ac_abs_builddir="$ac_dir";;
11666 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
11667 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
11671 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11673 case ${ac_top_builddir}. in
11674 .) ac_abs_top_builddir="$ac_dir";;
11675 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11676 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
11680 .) ac_abs_srcdir=$ac_srcdir;;
11683 .) ac_abs_srcdir="$ac_dir";;
11684 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11685 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
11689 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11691 case $ac_top_srcdir in
11692 .) ac_abs_top_srcdir="$ac_dir";;
11693 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11694 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
11700 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11701 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11704 if test x"$ac_file" != x-; then
11705 { echo "$as_me:$LINENO: creating $ac_file" >&5
11706 echo "$as_me: creating $ac_file" >&6;}
11709 # Let's still pretend it is `configure' which instantiates (i.e., don't
11710 # use $as_me), people would be surprised to read:
11711 # /* config.h. Generated by config.status. */
11712 if test x"$ac_file" = x-; then
11715 configure_input="$ac_file. "
11717 configure_input=$configure_input"Generated from `echo $ac_file_in |
11718 sed 's,.*/,,'` by configure."
11720 # First look for the input files in the build tree, otherwise in the
11722 ac_file_inputs=`IFS=:
11723 for f in $ac_file_in; do
11725 -) echo $tmp/stdin ;;
11727 # Absolute (can't be DOS-style, as IFS=:)
11728 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11729 echo "$as_me: error: cannot find input file: $f" >&2;}
11730 { (exit 1); exit 1; }; }
11733 if test -f "$f"; then
11736 elif test -f "$srcdir/$f"; then
11741 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11742 echo "$as_me: error: cannot find input file: $f" >&2;}
11743 { (exit 1); exit 1; }; }
11746 done` || { (exit 1); exit 1; }
11748 cat >>$CONFIG_STATUS <<_ACEOF
11752 cat >>$CONFIG_STATUS <<\_ACEOF
11754 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11755 s,@configure_input@,$configure_input,;t t
11756 s,@srcdir@,$ac_srcdir,;t t
11757 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11758 s,@top_srcdir@,$ac_top_srcdir,;t t
11759 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11760 s,@builddir@,$ac_builddir,;t t
11761 s,@abs_builddir@,$ac_abs_builddir,;t t
11762 s,@top_builddir@,$ac_top_builddir,;t t
11763 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11764 s,@INSTALL@,$ac_INSTALL,;t t
11765 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11767 if test x"$ac_file" != x-; then
11768 mv $tmp/out $ac_file
11776 cat >>$CONFIG_STATUS <<\_ACEOF
11779 # CONFIG_HEADER section.
11782 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11783 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11785 # ac_d sets the value in "#define NAME VALUE" lines.
11786 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11787 ac_dB='[ ].*$,\1#\2'
11790 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11791 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11792 ac_uB='$,\1#\2define\3'
11796 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11797 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11799 - | *:- | *:-:* ) # input from stdin
11801 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11802 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11803 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11804 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11805 * ) ac_file_in=$ac_file.in ;;
11808 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11809 echo "$as_me: creating $ac_file" >&6;}
11811 # First look for the input files in the build tree, otherwise in the
11813 ac_file_inputs=`IFS=:
11814 for f in $ac_file_in; do
11816 -) echo $tmp/stdin ;;
11818 # Absolute (can't be DOS-style, as IFS=:)
11819 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11820 echo "$as_me: error: cannot find input file: $f" >&2;}
11821 { (exit 1); exit 1; }; }
11822 # Do quote $f, to prevent DOS paths from being IFS'd.
11825 if test -f "$f"; then
11828 elif test -f "$srcdir/$f"; then
11833 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11834 echo "$as_me: error: cannot find input file: $f" >&2;}
11835 { (exit 1); exit 1; }; }
11838 done` || { (exit 1); exit 1; }
11839 # Remove the trailing spaces.
11840 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11844 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11845 # `conftest.undefs', that substitutes the proper values into
11846 # config.h.in to produce config.h. The first handles `#define'
11847 # templates, and the second `#undef' templates.
11848 # And first: Protect against being on the right side of a sed subst in
11849 # config.status. Protect against being in an unquoted here document
11850 # in config.status.
11851 rm -f conftest.defines conftest.undefs
11852 # Using a here document instead of a string reduces the quoting nightmare.
11853 # Putting comments in sed scripts is not portable.
11855 # `end' is used to avoid that the second main sed command (meant for
11856 # 0-ary CPP macros) applies to n-ary macro definitions.
11857 # See the Autoconf documentation for `clear'.
11858 cat >confdef2sed.sed <<\_ACEOF
11863 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11865 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11868 # If some macros were called several times there might be several times
11869 # the same #defines, which is useless. Nevertheless, we may not want to
11870 # sort them, since we want the *last* AC-DEFINE to be honored.
11871 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11872 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11873 rm -f confdef2sed.sed
11875 # This sed command replaces #undef with comments. This is necessary, for
11876 # example, in the case of _POSIX_SOURCE, which is predefined and required
11877 # on some systems where configure will not decide to define it.
11878 cat >>conftest.undefs <<\_ACEOF
11879 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11882 # Break up conftest.defines because some shells have a limit on the size
11883 # of here documents, and old seds have small limits too (100 cmds).
11884 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11885 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11886 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11887 echo ' :' >>$CONFIG_STATUS
11888 rm -f conftest.tail
11889 while grep . conftest.defines >/dev/null
11891 # Write a limited-size here document to $tmp/defines.sed.
11892 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11893 # Speed up: don't consider the non `#define' lines.
11894 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11895 # Work around the forget-to-reset-the-flag bug.
11896 echo 't clr' >>$CONFIG_STATUS
11897 echo ': clr' >>$CONFIG_STATUS
11898 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11900 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11902 mv $tmp/out $tmp/in
11904 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11905 rm -f conftest.defines
11906 mv conftest.tail conftest.defines
11908 rm -f conftest.defines
11909 echo ' fi # grep' >>$CONFIG_STATUS
11910 echo >>$CONFIG_STATUS
11912 # Break up conftest.undefs because some shells have a limit on the size
11913 # of here documents, and old seds have small limits too (100 cmds).
11914 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11915 rm -f conftest.tail
11916 while grep . conftest.undefs >/dev/null
11918 # Write a limited-size here document to $tmp/undefs.sed.
11919 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11920 # Speed up: don't consider the non `#undef'
11921 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11922 # Work around the forget-to-reset-the-flag bug.
11923 echo 't clr' >>$CONFIG_STATUS
11924 echo ': clr' >>$CONFIG_STATUS
11925 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11927 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11929 mv $tmp/out $tmp/in
11931 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11932 rm -f conftest.undefs
11933 mv conftest.tail conftest.undefs
11935 rm -f conftest.undefs
11937 cat >>$CONFIG_STATUS <<\_ACEOF
11938 # Let's still pretend it is `configure' which instantiates (i.e., don't
11939 # use $as_me), people would be surprised to read:
11940 # /* config.h. Generated by config.status. */
11941 if test x"$ac_file" = x-; then
11942 echo "/* Generated by configure. */" >$tmp/config.h
11944 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11946 cat $tmp/in >>$tmp/config.h
11948 if test x"$ac_file" != x-; then
11949 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11950 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11951 echo "$as_me: $ac_file is unchanged" >&6;}
11953 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11954 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11955 X"$ac_file" : 'X\(//\)[^/]' \| \
11956 X"$ac_file" : 'X\(//\)$' \| \
11957 X"$ac_file" : 'X\(/\)' \| \
11958 . : '\(.\)' 2>/dev/null ||
11960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11961 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11962 /^X\(\/\/\)$/{ s//\1/; q; }
11963 /^X\(\/\).*/{ s//\1/; q; }
11965 { if $as_mkdir_p; then
11970 while test ! -d "$as_dir"; do
11971 as_dirs="$as_dir $as_dirs"
11972 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11973 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11974 X"$as_dir" : 'X\(//\)[^/]' \| \
11975 X"$as_dir" : 'X\(//\)$' \| \
11976 X"$as_dir" : 'X\(/\)' \| \
11977 . : '\(.\)' 2>/dev/null ||
11979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11980 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11981 /^X\(\/\/\)$/{ s//\1/; q; }
11982 /^X\(\/\).*/{ s//\1/; q; }
11985 test ! -n "$as_dirs" || mkdir $as_dirs
11986 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11987 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11988 { (exit 1); exit 1; }; }; }
11991 mv $tmp/config.h $ac_file
11995 rm -f $tmp/config.h
12000 cat >>$CONFIG_STATUS <<\_ACEOF
12002 { (exit 0); exit 0; }
12004 chmod +x $CONFIG_STATUS
12005 ac_clean_files=$ac_clean_files_save
12008 # configure is writing to config.log, and then calls config.status.
12009 # config.status does its own redirection, appending to config.log.
12010 # Unfortunately, on DOS this fails, as config.log is still kept open
12011 # by configure, so config.status won't be able to write to it; its
12012 # output is simply discarded. So we exec the FD to /dev/null,
12013 # effectively closing config.log, so it can be properly (re)opened and
12014 # appended to by config.status. When coming back to configure, we
12015 # need to make the FD available again.
12016 if test "$no_create" != yes; then
12018 ac_config_status_args=
12019 test "$silent" = yes &&
12020 ac_config_status_args="$ac_config_status_args --quiet"
12022 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12024 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12025 # would make configure fail if this is the last instruction.
12026 $ac_cs_success || { (exit 1); exit 1; }
12030 if test "x${srcdir}" != "x."; then
12031 echo "Warning: --srcdir is not supported"