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
1483 # Check whether --enable-checkmem or --disable-checkmem was given.
1484 if test "${enable_checkmem+set}" = set; then
1485 enableval="$enable_checkmem"
1488 # Check whether --enable-debug or --disable-debug was given.
1489 if test "${enable_debug+set}" = set; then
1490 enableval="$enable_debug"
1493 # Check whether --enable-warnings or --disable-warnings was given.
1494 if test "${enable_warnings+set}" = set; then
1495 enableval="$enable_warnings"
1496 ENABLE_WARNINGS=true
1498 # Check whether --enable-optimizations or --disable-optimizations was given.
1499 if test "${enable_optimizations+set}" = set; then
1500 enableval="$enable_optimizations"
1503 # Check whether --enable-lame or --disable-lame was given.
1504 if test "${enable_lame+set}" = set; then
1505 enableval="$enable_lame"
1513 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1514 if test "x$ENABLE_WARNINGS" '!=' "x";then
1515 WARNINGS="-Wall -Wno-unused -Wno-format"
1518 if test "x$CHECKMEM" '!=' "x";then
1521 if test "x$DEBUG" '!=' "x";then
1522 CFLAGS="$WARNINGS -g $CFLAGS"
1523 CXXFLAGS="$WARNINGS -g $CXXFLAGS"
1524 else if test "x$OPTIMIZE" '!=' "x"; then
1525 CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1526 CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1528 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1529 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1533 #if test "x$OLDGCC" '!=' "x";then
1534 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1535 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1536 # CFLAGS="$CFLAGS -ansi -pendantic"
1537 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1540 export PACKAGE VERSION CFLAGS CXXFLAGS
1543 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1544 if test -f $ac_dir/install-sh; then
1546 ac_install_sh="$ac_aux_dir/install-sh -c"
1548 elif test -f $ac_dir/install.sh; then
1550 ac_install_sh="$ac_aux_dir/install.sh -c"
1552 elif test -f $ac_dir/shtool; then
1554 ac_install_sh="$ac_aux_dir/shtool install -c"
1558 if test -z "$ac_aux_dir"; then
1559 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1560 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1561 { (exit 1); exit 1; }; }
1563 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1564 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1565 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1567 # Make sure we can run config.sub.
1568 $ac_config_sub sun4 >/dev/null 2>&1 ||
1569 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1570 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1571 { (exit 1); exit 1; }; }
1573 echo "$as_me:$LINENO: checking build system type" >&5
1574 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1575 if test "${ac_cv_build+set}" = set; then
1576 echo $ECHO_N "(cached) $ECHO_C" >&6
1578 ac_cv_build_alias=$build_alias
1579 test -z "$ac_cv_build_alias" &&
1580 ac_cv_build_alias=`$ac_config_guess`
1581 test -z "$ac_cv_build_alias" &&
1582 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1583 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1584 { (exit 1); exit 1; }; }
1585 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1586 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1587 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1588 { (exit 1); exit 1; }; }
1591 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1592 echo "${ECHO_T}$ac_cv_build" >&6
1594 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1595 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1596 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1599 echo "$as_me:$LINENO: checking host system type" >&5
1600 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1601 if test "${ac_cv_host+set}" = set; then
1602 echo $ECHO_N "(cached) $ECHO_C" >&6
1604 ac_cv_host_alias=$host_alias
1605 test -z "$ac_cv_host_alias" &&
1606 ac_cv_host_alias=$ac_cv_build_alias
1607 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1608 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1609 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1610 { (exit 1); exit 1; }; }
1613 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1614 echo "${ECHO_T}$ac_cv_host" >&6
1616 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1617 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1618 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1625 CFLAGS="$CFLAGS -fno-rtti"
1626 CXXFLAGS="$CXXFLAGS -fno-rtti"
1630 ac_cpp='$CPP $CPPFLAGS'
1631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1634 if test -n "$ac_tool_prefix"; then
1635 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1636 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1637 echo "$as_me:$LINENO: checking for $ac_word" >&5
1638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639 if test "${ac_cv_prog_CC+set}" = set; then
1640 echo $ECHO_N "(cached) $ECHO_C" >&6
1642 if test -n "$CC"; then
1643 ac_cv_prog_CC="$CC" # Let the user override the test.
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649 test -z "$as_dir" && as_dir=.
1650 for ac_exec_ext in '' $ac_executable_extensions; do
1651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662 if test -n "$CC"; then
1663 echo "$as_me:$LINENO: result: $CC" >&5
1664 echo "${ECHO_T}$CC" >&6
1666 echo "$as_me:$LINENO: result: no" >&5
1667 echo "${ECHO_T}no" >&6
1671 if test -z "$ac_cv_prog_CC"; then
1673 # Extract the first word of "gcc", so it can be a program name with args.
1674 set dummy gcc; ac_word=$2
1675 echo "$as_me:$LINENO: checking for $ac_word" >&5
1676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1677 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1678 echo $ECHO_N "(cached) $ECHO_C" >&6
1680 if test -n "$ac_ct_CC"; then
1681 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1687 test -z "$as_dir" && as_dir=.
1688 for ac_exec_ext in '' $ac_executable_extensions; do
1689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1690 ac_cv_prog_ac_ct_CC="gcc"
1691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1699 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1700 if test -n "$ac_ct_CC"; then
1701 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1702 echo "${ECHO_T}$ac_ct_CC" >&6
1704 echo "$as_me:$LINENO: result: no" >&5
1705 echo "${ECHO_T}no" >&6
1713 if test -z "$CC"; then
1714 if test -n "$ac_tool_prefix"; then
1715 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1716 set dummy ${ac_tool_prefix}cc; ac_word=$2
1717 echo "$as_me:$LINENO: checking for $ac_word" >&5
1718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1719 if test "${ac_cv_prog_CC+set}" = set; then
1720 echo $ECHO_N "(cached) $ECHO_C" >&6
1722 if test -n "$CC"; then
1723 ac_cv_prog_CC="$CC" # Let the user override the test.
1725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1729 test -z "$as_dir" && as_dir=.
1730 for ac_exec_ext in '' $ac_executable_extensions; do
1731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732 ac_cv_prog_CC="${ac_tool_prefix}cc"
1733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1742 if test -n "$CC"; then
1743 echo "$as_me:$LINENO: result: $CC" >&5
1744 echo "${ECHO_T}$CC" >&6
1746 echo "$as_me:$LINENO: result: no" >&5
1747 echo "${ECHO_T}no" >&6
1751 if test -z "$ac_cv_prog_CC"; then
1753 # Extract the first word of "cc", so it can be a program name with args.
1754 set dummy cc; ac_word=$2
1755 echo "$as_me:$LINENO: checking for $ac_word" >&5
1756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1757 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1758 echo $ECHO_N "(cached) $ECHO_C" >&6
1760 if test -n "$ac_ct_CC"; then
1761 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1767 test -z "$as_dir" && as_dir=.
1768 for ac_exec_ext in '' $ac_executable_extensions; do
1769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1770 ac_cv_prog_ac_ct_CC="cc"
1771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1779 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1780 if test -n "$ac_ct_CC"; then
1781 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1782 echo "${ECHO_T}$ac_ct_CC" >&6
1784 echo "$as_me:$LINENO: result: no" >&5
1785 echo "${ECHO_T}no" >&6
1794 if test -z "$CC"; then
1795 # Extract the first word of "cc", so it can be a program name with args.
1796 set dummy cc; ac_word=$2
1797 echo "$as_me:$LINENO: checking for $ac_word" >&5
1798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799 if test "${ac_cv_prog_CC+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1802 if test -n "$CC"; then
1803 ac_cv_prog_CC="$CC" # Let the user override the test.
1806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1810 test -z "$as_dir" && as_dir=.
1811 for ac_exec_ext in '' $ac_executable_extensions; do
1812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1813 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1814 ac_prog_rejected=yes
1818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1824 if test $ac_prog_rejected = yes; then
1825 # We found a bogon in the path, so make sure we never use it.
1826 set dummy $ac_cv_prog_CC
1828 if test $# != 0; then
1829 # We chose a different compiler from the bogus one.
1830 # However, it has the same basename, so the bogon will be chosen
1831 # first if we set CC to just the basename; use the full file name.
1833 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1839 if test -n "$CC"; then
1840 echo "$as_me:$LINENO: result: $CC" >&5
1841 echo "${ECHO_T}$CC" >&6
1843 echo "$as_me:$LINENO: result: no" >&5
1844 echo "${ECHO_T}no" >&6
1848 if test -z "$CC"; then
1849 if test -n "$ac_tool_prefix"; then
1852 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1853 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1854 echo "$as_me:$LINENO: checking for $ac_word" >&5
1855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856 if test "${ac_cv_prog_CC+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1859 if test -n "$CC"; then
1860 ac_cv_prog_CC="$CC" # Let the user override the test.
1862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1866 test -z "$as_dir" && as_dir=.
1867 for ac_exec_ext in '' $ac_executable_extensions; do
1868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1879 if test -n "$CC"; then
1880 echo "$as_me:$LINENO: result: $CC" >&5
1881 echo "${ECHO_T}$CC" >&6
1883 echo "$as_me:$LINENO: result: no" >&5
1884 echo "${ECHO_T}no" >&6
1887 test -n "$CC" && break
1890 if test -z "$CC"; then
1894 # Extract the first word of "$ac_prog", so it can be a program name with args.
1895 set dummy $ac_prog; ac_word=$2
1896 echo "$as_me:$LINENO: checking for $ac_word" >&5
1897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1898 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1899 echo $ECHO_N "(cached) $ECHO_C" >&6
1901 if test -n "$ac_ct_CC"; then
1902 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908 test -z "$as_dir" && as_dir=.
1909 for ac_exec_ext in '' $ac_executable_extensions; do
1910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1911 ac_cv_prog_ac_ct_CC="$ac_prog"
1912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1920 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1921 if test -n "$ac_ct_CC"; then
1922 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1923 echo "${ECHO_T}$ac_ct_CC" >&6
1925 echo "$as_me:$LINENO: result: no" >&5
1926 echo "${ECHO_T}no" >&6
1929 test -n "$ac_ct_CC" && break
1938 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1939 See \`config.log' for more details." >&5
1940 echo "$as_me: error: no acceptable C compiler found in \$PATH
1941 See \`config.log' for more details." >&2;}
1942 { (exit 1); exit 1; }; }
1944 # Provide some information about the compiler.
1945 echo "$as_me:$LINENO:" \
1946 "checking for C compiler version" >&5
1947 ac_compiler=`set X $ac_compile; echo $2`
1948 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1949 (eval $ac_compiler --version </dev/null >&5) 2>&5
1951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952 (exit $ac_status); }
1953 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1954 (eval $ac_compiler -v </dev/null >&5) 2>&5
1956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1957 (exit $ac_status); }
1958 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1959 (eval $ac_compiler -V </dev/null >&5) 2>&5
1961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962 (exit $ac_status); }
1964 cat >conftest.$ac_ext <<_ACEOF
1967 cat confdefs.h >>conftest.$ac_ext
1968 cat >>conftest.$ac_ext <<_ACEOF
1969 /* end confdefs.h. */
1979 ac_clean_files_save=$ac_clean_files
1980 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1981 # Try to create an executable without -o first, disregard a.out.
1982 # It will help us diagnose broken compilers, and finding out an intuition
1984 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1985 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1986 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1987 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1988 (eval $ac_link_default) 2>&5
1990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991 (exit $ac_status); }; then
1992 # Find the output, starting from the most likely. This scheme is
1993 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1996 # Be careful to initialize this variable, since it used to be cached.
1997 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1999 # b.out is created by i960 compilers.
2000 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2002 test -f "$ac_file" || continue
2004 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2007 # This is the source file.
2010 # We found the default executable, but exeext='' is most
2014 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2015 # FIXME: I believe we export ac_cv_exeext for Libtool,
2016 # but it would be cool to find out if it's true. Does anybody
2017 # maintain Libtool? --akim.
2025 echo "$as_me: failed program was:" >&5
2026 sed 's/^/| /' conftest.$ac_ext >&5
2028 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2029 See \`config.log' for more details." >&5
2030 echo "$as_me: error: C compiler cannot create executables
2031 See \`config.log' for more details." >&2;}
2032 { (exit 77); exit 77; }; }
2035 ac_exeext=$ac_cv_exeext
2036 echo "$as_me:$LINENO: result: $ac_file" >&5
2037 echo "${ECHO_T}$ac_file" >&6
2039 # Check the compiler produces executables we can run. If not, either
2040 # the compiler is broken, or we cross compile.
2041 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2042 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2043 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2044 # If not cross compiling, check that we can run a simple program.
2045 if test "$cross_compiling" != yes; then
2046 if { ac_try='./$ac_file'
2047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051 (exit $ac_status); }; }; then
2054 if test "$cross_compiling" = maybe; then
2057 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2058 If you meant to cross compile, use \`--host'.
2059 See \`config.log' for more details." >&5
2060 echo "$as_me: error: cannot run C compiled programs.
2061 If you meant to cross compile, use \`--host'.
2062 See \`config.log' for more details." >&2;}
2063 { (exit 1); exit 1; }; }
2067 echo "$as_me:$LINENO: result: yes" >&5
2068 echo "${ECHO_T}yes" >&6
2070 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2071 ac_clean_files=$ac_clean_files_save
2072 # Check the compiler produces executables we can run. If not, either
2073 # the compiler is broken, or we cross compile.
2074 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2075 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2076 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2077 echo "${ECHO_T}$cross_compiling" >&6
2079 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2080 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2082 (eval $ac_link) 2>&5
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); }; then
2086 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2087 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2088 # work properly (i.e., refer to `conftest.exe'), while it won't with
2090 for ac_file in conftest.exe conftest conftest.*; do
2091 test -f "$ac_file" || continue
2093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2094 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2101 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2102 See \`config.log' for more details." >&5
2103 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2104 See \`config.log' for more details." >&2;}
2105 { (exit 1); exit 1; }; }
2108 rm -f conftest$ac_cv_exeext
2109 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2110 echo "${ECHO_T}$ac_cv_exeext" >&6
2112 rm -f conftest.$ac_ext
2113 EXEEXT=$ac_cv_exeext
2115 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2116 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2117 if test "${ac_cv_objext+set}" = set; then
2118 echo $ECHO_N "(cached) $ECHO_C" >&6
2120 cat >conftest.$ac_ext <<_ACEOF
2123 cat confdefs.h >>conftest.$ac_ext
2124 cat >>conftest.$ac_ext <<_ACEOF
2125 /* end confdefs.h. */
2135 rm -f conftest.o conftest.obj
2136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2137 (eval $ac_compile) 2>&5
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); }; then
2141 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2144 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2149 echo "$as_me: failed program was:" >&5
2150 sed 's/^/| /' conftest.$ac_ext >&5
2152 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2153 See \`config.log' for more details." >&5
2154 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2155 See \`config.log' for more details." >&2;}
2156 { (exit 1); exit 1; }; }
2159 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2161 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2162 echo "${ECHO_T}$ac_cv_objext" >&6
2163 OBJEXT=$ac_cv_objext
2165 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2166 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2167 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2168 echo $ECHO_N "(cached) $ECHO_C" >&6
2170 cat >conftest.$ac_ext <<_ACEOF
2173 cat confdefs.h >>conftest.$ac_ext
2174 cat >>conftest.$ac_ext <<_ACEOF
2175 /* end confdefs.h. */
2188 rm -f conftest.$ac_objext
2189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2190 (eval $ac_compile) 2>conftest.er1
2192 grep -v '^ *+' conftest.er1 >conftest.err
2194 cat conftest.err >&5
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); } &&
2197 { ac_try='test -z "$ac_c_werror_flag"
2198 || test ! -s conftest.err'
2199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; } &&
2204 { ac_try='test -s conftest.$ac_objext'
2205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }; }; then
2212 echo "$as_me: failed program was:" >&5
2213 sed 's/^/| /' conftest.$ac_ext >&5
2217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2218 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2221 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2222 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2223 GCC=`test $ac_compiler_gnu = yes && echo yes`
2224 ac_test_CFLAGS=${CFLAGS+set}
2225 ac_save_CFLAGS=$CFLAGS
2227 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2228 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2229 if test "${ac_cv_prog_cc_g+set}" = set; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 cat >conftest.$ac_ext <<_ACEOF
2235 cat confdefs.h >>conftest.$ac_ext
2236 cat >>conftest.$ac_ext <<_ACEOF
2237 /* end confdefs.h. */
2247 rm -f conftest.$ac_objext
2248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2249 (eval $ac_compile) 2>conftest.er1
2251 grep -v '^ *+' conftest.er1 >conftest.err
2253 cat conftest.err >&5
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); } &&
2256 { ac_try='test -z "$ac_c_werror_flag"
2257 || test ! -s conftest.err'
2258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; } &&
2263 { ac_try='test -s conftest.$ac_objext'
2264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; }; then
2271 echo "$as_me: failed program was:" >&5
2272 sed 's/^/| /' conftest.$ac_ext >&5
2276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2278 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2279 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2280 if test "$ac_test_CFLAGS" = set; then
2281 CFLAGS=$ac_save_CFLAGS
2282 elif test $ac_cv_prog_cc_g = yes; then
2283 if test "$GCC" = yes; then
2289 if test "$GCC" = yes; then
2295 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2296 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2297 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 ac_cv_prog_cc_stdc=no
2302 cat >conftest.$ac_ext <<_ACEOF
2305 cat confdefs.h >>conftest.$ac_ext
2306 cat >>conftest.$ac_ext <<_ACEOF
2307 /* end confdefs.h. */
2310 #include <sys/types.h>
2311 #include <sys/stat.h>
2312 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2313 struct buf { int x; };
2314 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2315 static char *e (p, i)
2321 static char *f (char * (*g) (char **, int), char **p, ...)
2326 s = g (p, va_arg (v,int));
2331 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2332 function prototypes and stuff, but not '\xHH' hex character constants.
2333 These don't provoke an error unfortunately, instead are silently treated
2334 as 'x'. The following induces an error, until -std1 is added to get
2335 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2336 array size at least. It's necessary to write '\x00'==0 to get something
2337 that's true only with -std1. */
2338 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2340 int test (int i, double x);
2341 struct s1 {int (*f) (int a);};
2342 struct s2 {int (*f) (double a);};
2343 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2349 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2354 # Don't try gcc -ansi; that turns off useful extensions and
2355 # breaks some systems' header files.
2356 # AIX -qlanglvl=ansi
2357 # Ultrix and OSF/1 -std1
2358 # HP-UX 10.20 and later -Ae
2359 # HP-UX older versions -Aa -D_HPUX_SOURCE
2360 # SVR4 -Xc -D__EXTENSIONS__
2361 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2363 CC="$ac_save_CC $ac_arg"
2364 rm -f conftest.$ac_objext
2365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2366 (eval $ac_compile) 2>conftest.er1
2368 grep -v '^ *+' conftest.er1 >conftest.err
2370 cat conftest.err >&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); } &&
2373 { ac_try='test -z "$ac_c_werror_flag"
2374 || test ! -s conftest.err'
2375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); }; } &&
2380 { ac_try='test -s conftest.$ac_objext'
2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; }; then
2386 ac_cv_prog_cc_stdc=$ac_arg
2389 echo "$as_me: failed program was:" >&5
2390 sed 's/^/| /' conftest.$ac_ext >&5
2393 rm -f conftest.err conftest.$ac_objext
2395 rm -f conftest.$ac_ext conftest.$ac_objext
2400 case "x$ac_cv_prog_cc_stdc" in
2402 echo "$as_me:$LINENO: result: none needed" >&5
2403 echo "${ECHO_T}none needed" >&6 ;;
2405 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2406 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2407 CC="$CC $ac_cv_prog_cc_stdc" ;;
2410 # Some people use a C++ compiler to compile C. Since we use `exit',
2411 # in C++ we need to declare it. In case someone uses the same compiler
2412 # for both compiling C and C++ we need to have the C++ compiler decide
2413 # the declaration of exit, since it's the most demanding environment.
2414 cat >conftest.$ac_ext <<_ACEOF
2419 rm -f conftest.$ac_objext
2420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2421 (eval $ac_compile) 2>conftest.er1
2423 grep -v '^ *+' conftest.er1 >conftest.err
2425 cat conftest.err >&5
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); } &&
2428 { ac_try='test -z "$ac_c_werror_flag"
2429 || test ! -s conftest.err'
2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; } &&
2435 { ac_try='test -s conftest.$ac_objext'
2436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; }; then
2441 for ac_declaration in \
2443 'extern "C" void std::exit (int) throw (); using std::exit;' \
2444 'extern "C" void std::exit (int); using std::exit;' \
2445 'extern "C" void exit (int) throw ();' \
2446 'extern "C" void exit (int);' \
2449 cat >conftest.$ac_ext <<_ACEOF
2452 cat confdefs.h >>conftest.$ac_ext
2453 cat >>conftest.$ac_ext <<_ACEOF
2454 /* end confdefs.h. */
2465 rm -f conftest.$ac_objext
2466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2467 (eval $ac_compile) 2>conftest.er1
2469 grep -v '^ *+' conftest.er1 >conftest.err
2471 cat conftest.err >&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); } &&
2474 { ac_try='test -z "$ac_c_werror_flag"
2475 || test ! -s conftest.err'
2476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; } &&
2481 { ac_try='test -s conftest.$ac_objext'
2482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }; }; then
2489 echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2495 cat >conftest.$ac_ext <<_ACEOF
2498 cat confdefs.h >>conftest.$ac_ext
2499 cat >>conftest.$ac_ext <<_ACEOF
2500 /* end confdefs.h. */
2510 rm -f conftest.$ac_objext
2511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2512 (eval $ac_compile) 2>conftest.er1
2514 grep -v '^ *+' conftest.er1 >conftest.err
2516 cat conftest.err >&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); } &&
2519 { ac_try='test -z "$ac_c_werror_flag"
2520 || test ! -s conftest.err'
2521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }; } &&
2526 { ac_try='test -s conftest.$ac_objext'
2527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); }; }; then
2534 echo "$as_me: failed program was:" >&5
2535 sed 's/^/| /' conftest.$ac_ext >&5
2538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2541 if test -n "$ac_declaration"; then
2542 echo '#ifdef __cplusplus' >>confdefs.h
2543 echo $ac_declaration >>confdefs.h
2544 echo '#endif' >>confdefs.h
2548 echo "$as_me: failed program was:" >&5
2549 sed 's/^/| /' conftest.$ac_ext >&5
2552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2554 ac_cpp='$CPP $CPPFLAGS'
2555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2560 ac_cpp='$CXXCPP $CPPFLAGS'
2561 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2562 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2563 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2564 if test -n "$ac_tool_prefix"; then
2565 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2567 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2568 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2569 echo "$as_me:$LINENO: checking for $ac_word" >&5
2570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2571 if test "${ac_cv_prog_CXX+set}" = set; then
2572 echo $ECHO_N "(cached) $ECHO_C" >&6
2574 if test -n "$CXX"; then
2575 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 test -z "$as_dir" && as_dir=.
2582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2584 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2594 if test -n "$CXX"; then
2595 echo "$as_me:$LINENO: result: $CXX" >&5
2596 echo "${ECHO_T}$CXX" >&6
2598 echo "$as_me:$LINENO: result: no" >&5
2599 echo "${ECHO_T}no" >&6
2602 test -n "$CXX" && break
2605 if test -z "$CXX"; then
2607 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2609 # Extract the first word of "$ac_prog", so it can be a program name with args.
2610 set dummy $ac_prog; ac_word=$2
2611 echo "$as_me:$LINENO: checking for $ac_word" >&5
2612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2613 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
2616 if test -n "$ac_ct_CXX"; then
2617 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2626 ac_cv_prog_ac_ct_CXX="$ac_prog"
2627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2635 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2636 if test -n "$ac_ct_CXX"; then
2637 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2638 echo "${ECHO_T}$ac_ct_CXX" >&6
2640 echo "$as_me:$LINENO: result: no" >&5
2641 echo "${ECHO_T}no" >&6
2644 test -n "$ac_ct_CXX" && break
2646 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2652 # Provide some information about the compiler.
2653 echo "$as_me:$LINENO:" \
2654 "checking for C++ compiler version" >&5
2655 ac_compiler=`set X $ac_compile; echo $2`
2656 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2657 (eval $ac_compiler --version </dev/null >&5) 2>&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); }
2661 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2662 (eval $ac_compiler -v </dev/null >&5) 2>&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }
2666 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2667 (eval $ac_compiler -V </dev/null >&5) 2>&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }
2672 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2673 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2674 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2677 cat >conftest.$ac_ext <<_ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h. */
2695 rm -f conftest.$ac_objext
2696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697 (eval $ac_compile) 2>conftest.er1
2699 grep -v '^ *+' conftest.er1 >conftest.err
2701 cat conftest.err >&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); } &&
2704 { ac_try='test -z "$ac_cxx_werror_flag"
2705 || test ! -s conftest.err'
2706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; } &&
2711 { ac_try='test -s conftest.$ac_objext'
2712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; }; then
2719 echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2725 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2728 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2729 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2730 GXX=`test $ac_compiler_gnu = yes && echo yes`
2731 ac_test_CXXFLAGS=${CXXFLAGS+set}
2732 ac_save_CXXFLAGS=$CXXFLAGS
2734 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2735 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2736 if test "${ac_cv_prog_cxx_g+set}" = set; then
2737 echo $ECHO_N "(cached) $ECHO_C" >&6
2739 cat >conftest.$ac_ext <<_ACEOF
2742 cat confdefs.h >>conftest.$ac_ext
2743 cat >>conftest.$ac_ext <<_ACEOF
2744 /* end confdefs.h. */
2754 rm -f conftest.$ac_objext
2755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2756 (eval $ac_compile) 2>conftest.er1
2758 grep -v '^ *+' conftest.er1 >conftest.err
2760 cat conftest.err >&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); } &&
2763 { ac_try='test -z "$ac_cxx_werror_flag"
2764 || test ! -s conftest.err'
2765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); }; } &&
2770 { ac_try='test -s conftest.$ac_objext'
2771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); }; }; then
2776 ac_cv_prog_cxx_g=yes
2778 echo "$as_me: failed program was:" >&5
2779 sed 's/^/| /' conftest.$ac_ext >&5
2783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2785 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2786 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2787 if test "$ac_test_CXXFLAGS" = set; then
2788 CXXFLAGS=$ac_save_CXXFLAGS
2789 elif test $ac_cv_prog_cxx_g = yes; then
2790 if test "$GXX" = yes; then
2796 if test "$GXX" = yes; then
2802 for ac_declaration in \
2804 'extern "C" void std::exit (int) throw (); using std::exit;' \
2805 'extern "C" void std::exit (int); using std::exit;' \
2806 'extern "C" void exit (int) throw ();' \
2807 'extern "C" void exit (int);' \
2810 cat >conftest.$ac_ext <<_ACEOF
2813 cat confdefs.h >>conftest.$ac_ext
2814 cat >>conftest.$ac_ext <<_ACEOF
2815 /* end confdefs.h. */
2826 rm -f conftest.$ac_objext
2827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2828 (eval $ac_compile) 2>conftest.er1
2830 grep -v '^ *+' conftest.er1 >conftest.err
2832 cat conftest.err >&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); } &&
2835 { ac_try='test -z "$ac_cxx_werror_flag"
2836 || test ! -s conftest.err'
2837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }; } &&
2842 { ac_try='test -s conftest.$ac_objext'
2843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; }; then
2850 echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2856 cat >conftest.$ac_ext <<_ACEOF
2859 cat confdefs.h >>conftest.$ac_ext
2860 cat >>conftest.$ac_ext <<_ACEOF
2861 /* end confdefs.h. */
2871 rm -f conftest.$ac_objext
2872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2873 (eval $ac_compile) 2>conftest.er1
2875 grep -v '^ *+' conftest.er1 >conftest.err
2877 cat conftest.err >&5
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); } &&
2880 { ac_try='test -z "$ac_cxx_werror_flag"
2881 || test ! -s conftest.err'
2882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; } &&
2887 { ac_try='test -s conftest.$ac_objext'
2888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; }; then
2895 echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2902 if test -n "$ac_declaration"; then
2903 echo '#ifdef __cplusplus' >>confdefs.h
2904 echo $ac_declaration >>confdefs.h
2905 echo '#endif' >>confdefs.h
2909 ac_cpp='$CPP $CPPFLAGS'
2910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2915 if test "x$CHECKMEM" '!=' "x";then
2919 #unset ac_cv_prog_CC
2920 #unset ac_cv_prog_CXX
2925 ac_cpp='$CPP $CPPFLAGS'
2926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2929 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2930 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2931 # On Suns, sometimes $CPP names a directory.
2932 if test -n "$CPP" && test -d "$CPP"; then
2935 if test -z "$CPP"; then
2936 if test "${ac_cv_prog_CPP+set}" = set; then
2937 echo $ECHO_N "(cached) $ECHO_C" >&6
2939 # Double quotes because CPP needs to be expanded
2940 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2943 for ac_c_preproc_warn_flag in '' yes
2945 # Use a header file that comes with gcc, so configuring glibc
2946 # with a fresh cross-compiler works.
2947 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2948 # <limits.h> exists even on freestanding compilers.
2949 # On the NeXT, cc -E runs the code through the compiler's parser,
2950 # not just through cpp. "Syntax error" is here to catch this case.
2951 cat >conftest.$ac_ext <<_ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h. */
2958 # include <limits.h>
2960 # include <assert.h>
2964 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2965 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2967 grep -v '^ *+' conftest.er1 >conftest.err
2969 cat conftest.err >&5
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); } >/dev/null; then
2972 if test -s conftest.err; then
2973 ac_cpp_err=$ac_c_preproc_warn_flag
2974 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2981 if test -z "$ac_cpp_err"; then
2984 echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2987 # Broken: fails on valid input.
2990 rm -f conftest.err conftest.$ac_ext
2992 # OK, works on sane cases. Now check whether non-existent headers
2993 # can be detected and how.
2994 cat >conftest.$ac_ext <<_ACEOF
2997 cat confdefs.h >>conftest.$ac_ext
2998 cat >>conftest.$ac_ext <<_ACEOF
2999 /* end confdefs.h. */
3000 #include <ac_nonexistent.h>
3002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3005 grep -v '^ *+' conftest.er1 >conftest.err
3007 cat conftest.err >&5
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); } >/dev/null; then
3010 if test -s conftest.err; then
3011 ac_cpp_err=$ac_c_preproc_warn_flag
3012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3019 if test -z "$ac_cpp_err"; then
3020 # Broken: success on invalid input.
3023 echo "$as_me: failed program was:" >&5
3024 sed 's/^/| /' conftest.$ac_ext >&5
3026 # Passes both tests.
3030 rm -f conftest.err conftest.$ac_ext
3033 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3034 rm -f conftest.err conftest.$ac_ext
3035 if $ac_preproc_ok; then
3047 echo "$as_me:$LINENO: result: $CPP" >&5
3048 echo "${ECHO_T}$CPP" >&6
3050 for ac_c_preproc_warn_flag in '' yes
3052 # Use a header file that comes with gcc, so configuring glibc
3053 # with a fresh cross-compiler works.
3054 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3055 # <limits.h> exists even on freestanding compilers.
3056 # On the NeXT, cc -E runs the code through the compiler's parser,
3057 # not just through cpp. "Syntax error" is here to catch this case.
3058 cat >conftest.$ac_ext <<_ACEOF
3061 cat confdefs.h >>conftest.$ac_ext
3062 cat >>conftest.$ac_ext <<_ACEOF
3063 /* end confdefs.h. */
3065 # include <limits.h>
3067 # include <assert.h>
3071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3072 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3074 grep -v '^ *+' conftest.er1 >conftest.err
3076 cat conftest.err >&5
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); } >/dev/null; then
3079 if test -s conftest.err; then
3080 ac_cpp_err=$ac_c_preproc_warn_flag
3081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3088 if test -z "$ac_cpp_err"; then
3091 echo "$as_me: failed program was:" >&5
3092 sed 's/^/| /' conftest.$ac_ext >&5
3094 # Broken: fails on valid input.
3097 rm -f conftest.err conftest.$ac_ext
3099 # OK, works on sane cases. Now check whether non-existent headers
3100 # can be detected and how.
3101 cat >conftest.$ac_ext <<_ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h. */
3107 #include <ac_nonexistent.h>
3109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3110 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3112 grep -v '^ *+' conftest.er1 >conftest.err
3114 cat conftest.err >&5
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); } >/dev/null; then
3117 if test -s conftest.err; then
3118 ac_cpp_err=$ac_c_preproc_warn_flag
3119 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3126 if test -z "$ac_cpp_err"; then
3127 # Broken: success on invalid input.
3130 echo "$as_me: failed program was:" >&5
3131 sed 's/^/| /' conftest.$ac_ext >&5
3133 # Passes both tests.
3137 rm -f conftest.err conftest.$ac_ext
3140 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3141 rm -f conftest.err conftest.$ac_ext
3142 if $ac_preproc_ok; then
3145 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3146 See \`config.log' for more details." >&5
3147 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3148 See \`config.log' for more details." >&2;}
3149 { (exit 1); exit 1; }; }
3153 ac_cpp='$CPP $CPPFLAGS'
3154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3159 if test -n "$ac_tool_prefix"; then
3160 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3161 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3162 echo "$as_me:$LINENO: checking for $ac_word" >&5
3163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3164 if test "${ac_cv_prog_RANLIB+set}" = set; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
3167 if test -n "$RANLIB"; then
3168 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 test -z "$as_dir" && as_dir=.
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3177 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3186 RANLIB=$ac_cv_prog_RANLIB
3187 if test -n "$RANLIB"; then
3188 echo "$as_me:$LINENO: result: $RANLIB" >&5
3189 echo "${ECHO_T}$RANLIB" >&6
3191 echo "$as_me:$LINENO: result: no" >&5
3192 echo "${ECHO_T}no" >&6
3196 if test -z "$ac_cv_prog_RANLIB"; then
3197 ac_ct_RANLIB=$RANLIB
3198 # Extract the first word of "ranlib", so it can be a program name with args.
3199 set dummy ranlib; ac_word=$2
3200 echo "$as_me:$LINENO: checking for $ac_word" >&5
3201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3202 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 if test -n "$ac_ct_RANLIB"; then
3206 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 test -z "$as_dir" && as_dir=.
3213 for ac_exec_ext in '' $ac_executable_extensions; do
3214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3215 ac_cv_prog_ac_ct_RANLIB="ranlib"
3216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3222 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3225 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3226 if test -n "$ac_ct_RANLIB"; then
3227 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3228 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3230 echo "$as_me:$LINENO: result: no" >&5
3231 echo "${ECHO_T}no" >&6
3234 RANLIB=$ac_ct_RANLIB
3236 RANLIB="$ac_cv_prog_RANLIB"
3239 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3240 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3241 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3242 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3243 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 cat >conftest.make <<\_ACEOF
3247 @echo 'ac_maketemp="$(MAKE)"'
3249 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3250 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3251 if test -n "$ac_maketemp"; then
3252 eval ac_cv_prog_make_${ac_make}_set=yes
3254 eval ac_cv_prog_make_${ac_make}_set=no
3258 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3259 echo "$as_me:$LINENO: result: yes" >&5
3260 echo "${ECHO_T}yes" >&6
3263 echo "$as_me:$LINENO: result: no" >&5
3264 echo "${ECHO_T}no" >&6
3265 SET_MAKE="MAKE=${MAKE-make}"
3268 # Find a good install program. We prefer a C program (faster),
3269 # so one script is as good as another. But avoid the broken or
3270 # incompatible versions:
3271 # SysV /etc/install, /usr/sbin/install
3272 # SunOS /usr/etc/install
3273 # IRIX /sbin/install
3275 # AmigaOS /C/install, which installs bootblocks on floppy discs
3276 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3277 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3278 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3279 # OS/2's system install, which has a completely different semantic
3280 # ./install, which can be erroneously created by make from ./install.sh.
3281 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3282 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3283 if test -z "$INSTALL"; then
3284 if test "${ac_cv_path_install+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291 test -z "$as_dir" && as_dir=.
3292 # Account for people who put trailing slashes in PATH elements.
3294 ./ | .// | /cC/* | \
3295 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3296 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3299 # OSF1 and SCO ODT 3.0 have their own names for install.
3300 # Don't use installbsd from OSF since it installs stuff as root
3302 for ac_prog in ginstall scoinst install; do
3303 for ac_exec_ext in '' $ac_executable_extensions; do
3304 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3305 if test $ac_prog = install &&
3306 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3307 # AIX install. It has an incompatible calling convention.
3309 elif test $ac_prog = install &&
3310 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3311 # program-specific install script used by HP pwplus--don't use.
3314 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3326 if test "${ac_cv_path_install+set}" = set; then
3327 INSTALL=$ac_cv_path_install
3329 # As a last resort, use the slow shell script. We don't cache a
3330 # path for INSTALL within a source directory, because that will
3331 # break other packages using the cache if that directory is
3332 # removed, or if the path is relative.
3333 INSTALL=$ac_install_sh
3336 echo "$as_me:$LINENO: result: $INSTALL" >&5
3337 echo "${ECHO_T}$INSTALL" >&6
3339 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3340 # It thinks the first close brace ends the variable substitution.
3341 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3343 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3345 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3347 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3348 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3350 if test "$LN_S" = "ln -s"; then
3351 echo "$as_me:$LINENO: result: yes" >&5
3352 echo "${ECHO_T}yes" >&6
3354 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3355 echo "${ECHO_T}no, using $LN_S" >&6
3358 # Check whether --enable-shared or --disable-shared was given.
3359 if test "${enable_shared+set}" = set; then
3360 enableval="$enable_shared"
3361 p=${PACKAGE-default}
3363 yes) enable_shared=yes ;;
3364 no) enable_shared=no ;;
3367 # Look at the argument we got. We use all the common list separators.
3368 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3369 for pkg in $enableval; do
3370 if test "X$pkg" = "X$p"; then
3380 # Check whether --enable-static or --disable-static was given.
3381 if test "${enable_static+set}" = set; then
3382 enableval="$enable_static"
3383 p=${PACKAGE-default}
3385 yes) enable_static=yes ;;
3386 no) enable_static=no ;;
3389 # Look at the argument we got. We use all the common list separators.
3390 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3391 for pkg in $enableval; do
3392 if test "X$pkg" = "X$p"; then
3402 # Check whether --enable-fast-install or --disable-fast-install was given.
3403 if test "${enable_fast_install+set}" = set; then
3404 enableval="$enable_fast_install"
3405 p=${PACKAGE-default}
3407 yes) enable_fast_install=yes ;;
3408 no) enable_fast_install=no ;;
3410 enable_fast_install=no
3411 # Look at the argument we got. We use all the common list separators.
3412 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3413 for pkg in $enableval; do
3414 if test "X$pkg" = "X$p"; then
3415 enable_fast_install=yes
3422 enable_fast_install=yes
3424 # Find the correct PATH separator. Usually this is `:', but
3425 # DJGPP uses `;' like DOS.
3426 if test "X${PATH_SEPARATOR+set}" != Xset; then
3427 UNAME=${UNAME-`uname 2>/dev/null`}
3429 *-DOS) lt_cv_sys_path_separator=';' ;;
3430 *) lt_cv_sys_path_separator=':' ;;
3432 PATH_SEPARATOR=$lt_cv_sys_path_separator
3436 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3437 if test "${with_gnu_ld+set}" = set; then
3438 withval="$with_gnu_ld"
3439 test "$withval" = no || with_gnu_ld=yes
3444 if test "$GCC" = yes; then
3445 # Check if gcc -print-prog-name=ld gives a path.
3446 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3447 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3450 # gcc leaves a trailing carriage return which upsets mingw
3451 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3453 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3456 # Accept absolute paths.
3457 [\\/]* | [A-Za-z]:[\\/]*)
3458 re_direlt='/[^/][^/]*/\.\./'
3459 # Canonicalize the path of ld
3460 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3461 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3462 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3464 test -z "$LD" && LD="$ac_prog"
3467 # If it fails, then pretend we aren't using GCC.
3471 # If it is relative, then search for the first ld in PATH.
3475 elif test "$with_gnu_ld" = yes; then
3476 echo "$as_me:$LINENO: checking for GNU ld" >&5
3477 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3479 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3480 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3482 if test "${lt_cv_path_LD+set}" = set; then
3483 echo $ECHO_N "(cached) $ECHO_C" >&6
3485 if test -z "$LD"; then
3486 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3487 for ac_dir in $PATH; do
3488 test -z "$ac_dir" && ac_dir=.
3489 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3490 lt_cv_path_LD="$ac_dir/$ac_prog"
3491 # Check to see if the program is GNU ld. I'd rather use --version,
3492 # but apparently some GNU ld's only accept -v.
3493 # Break only if it was the GNU/non-GNU ld that we prefer.
3494 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3495 test "$with_gnu_ld" != no && break
3497 test "$with_gnu_ld" != yes && break
3503 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3508 if test -n "$LD"; then
3509 echo "$as_me:$LINENO: result: $LD" >&5
3510 echo "${ECHO_T}$LD" >&6
3512 echo "$as_me:$LINENO: result: no" >&5
3513 echo "${ECHO_T}no" >&6
3515 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3516 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3517 { (exit 1); exit 1; }; }
3518 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3519 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3520 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3521 echo $ECHO_N "(cached) $ECHO_C" >&6
3523 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3524 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3525 lt_cv_prog_gnu_ld=yes
3527 lt_cv_prog_gnu_ld=no
3530 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3531 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3532 with_gnu_ld=$lt_cv_prog_gnu_ld
3535 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3536 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3537 if test "${lt_cv_ld_reload_flag+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3540 lt_cv_ld_reload_flag='-r'
3542 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3543 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3544 reload_flag=$lt_cv_ld_reload_flag
3545 test -n "$reload_flag" && reload_flag=" $reload_flag"
3547 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3548 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3549 if test "${lt_cv_path_NM+set}" = set; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
3552 if test -n "$NM"; then
3553 # Let the user override the test.
3556 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3557 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3558 test -z "$ac_dir" && ac_dir=.
3559 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3560 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3561 # Check to see if the nm accepts a BSD-compat flag.
3562 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3563 # nm: unknown option "B" ignored
3564 # Tru64's nm complains that /dev/null is an invalid object file
3565 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3566 lt_cv_path_NM="$tmp_nm -B"
3568 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3569 lt_cv_path_NM="$tmp_nm -p"
3572 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3573 continue # so that we can try to find one that supports BSD flags
3578 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3583 echo "$as_me:$LINENO: result: $NM" >&5
3584 echo "${ECHO_T}$NM" >&6
3586 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3587 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3588 if test "${lt_cv_path_SED+set}" = set; then
3589 echo $ECHO_N "(cached) $ECHO_C" >&6
3591 # Loop through the user's path and test for sed and gsed.
3592 # Then use that list of sed's as ones to test for truncation.
3593 as_executable_p="test -f"
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 test -z "$as_dir" && as_dir=.
3599 for ac_prog in sed gsed; do
3600 for ac_exec_ext in '' $ac_executable_extensions; do
3601 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3602 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3608 # Create a temporary directory, and hook for its removal unless debugging.
3611 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3612 trap '{ (exit 1); exit 1; }' 1 2 13 15
3615 # Create a (secure) tmp directory for tmp files.
3618 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3619 test -n "$tmp" && test -d "$tmp"
3622 tmp=$TMPDIR/sed$$-$RANDOM
3623 (umask 077 && mkdir $tmp)
3626 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3627 { (exit 1); exit 1; }
3631 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3632 # along with /bin/sed that truncates output.
3633 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3634 test ! -f ${_sed} && break
3635 cat /dev/null > "$tmp/sed.in"
3637 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3638 # Check for GNU sed and select it if it is found.
3639 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3640 lt_cv_path_SED=${_sed}
3644 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3645 mv "$tmp/sed.tmp" "$tmp/sed.in"
3646 cp "$tmp/sed.in" "$tmp/sed.nl"
3647 echo >>"$tmp/sed.nl"
3648 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3649 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3650 # 40000 chars as input seems more than enough
3651 test $_count -gt 10 && break
3652 _count=`expr $_count + 1`
3653 if test $_count -gt $_max; then
3655 lt_cv_path_SED=$_sed
3663 if test "X$SED" != "X"; then
3668 echo "$as_me:$LINENO: result: $SED" >&5
3669 echo "${ECHO_T}$SED" >&6
3671 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3672 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3673 if test "${lt_cv_deplibs_check_method+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 lt_cv_file_magic_cmd='$MAGIC_CMD'
3677 lt_cv_file_magic_test_file=
3678 lt_cv_deplibs_check_method='unknown'
3679 # Need to set the preceding variable on all platforms that support
3680 # interlibrary dependencies.
3681 # 'none' -- dependencies not supported.
3682 # `unknown' -- same as none, but documents that we really don't know.
3683 # 'pass_all' -- all dependencies passed with no checks.
3684 # 'test_compile' -- check by making test program.
3685 # 'file_magic [[regex]]' -- check by looking for files in library path
3686 # which responds to the $file_magic_cmd with a given egrep regex.
3687 # If you have `file' or equivalent on your system and you're not sure
3688 # whether `pass_all' will *always* work, you probably want this one.
3692 lt_cv_deplibs_check_method=pass_all
3696 lt_cv_deplibs_check_method=pass_all
3700 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3701 lt_cv_file_magic_cmd='/usr/bin/file -L'
3702 lt_cv_file_magic_test_file=/shlib/libc.so
3705 cygwin* | mingw* | pw32*)
3706 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3707 lt_cv_file_magic_cmd='$OBJDUMP -f'
3710 darwin* | rhapsody*)
3711 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3712 lt_cv_file_magic_cmd='/usr/bin/file -L'
3714 rhapsody* | darwin1.[012])
3715 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3718 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3724 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3727 # Not sure whether the presence of OpenBSD here was a mistake.
3728 # Let's accept both of them until this is cleared up.
3729 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3730 lt_cv_file_magic_cmd=/usr/bin/file
3731 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3735 lt_cv_deplibs_check_method=pass_all
3740 lt_cv_deplibs_check_method=pass_all
3744 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3745 lt_cv_file_magic_cmd=/usr/bin/file
3746 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3749 irix5* | irix6* | nonstopux*)
3751 irix5* | nonstopux*)
3752 # this will be overridden with pass_all, but let us keep it just in case
3753 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3757 *-32|*"-32 ") libmagic=32-bit;;
3758 *-n32|*"-n32 ") libmagic=N32;;
3759 *-64|*"-64 ") libmagic=64-bit;;
3760 *) libmagic=never-match;;
3762 # this will be overridden with pass_all, but let us keep it just in case
3763 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3766 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3767 lt_cv_deplibs_check_method=pass_all
3770 # This must be Linux ELF.
3773 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
3774 lt_cv_deplibs_check_method=pass_all ;;
3776 # glibc up to 2.1.1 does not perform some relocations on ARM
3777 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3779 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3783 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3784 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3786 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3791 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3792 lt_cv_file_magic_cmd=/usr/bin/file
3793 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3797 lt_cv_file_magic_cmd=/usr/bin/file
3798 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3799 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3800 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3802 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3806 osf3* | osf4* | osf5*)
3807 # this will be overridden with pass_all, but let us keep it just in case
3808 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3809 lt_cv_file_magic_test_file=/shlib/libc.so
3810 lt_cv_deplibs_check_method=pass_all
3814 lt_cv_deplibs_check_method=pass_all
3818 lt_cv_deplibs_check_method=pass_all
3819 lt_cv_file_magic_test_file=/lib/libc.so
3822 sysv5uw[78]* | sysv4*uw2*)
3823 lt_cv_deplibs_check_method=pass_all
3826 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3827 case $host_vendor in
3829 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]'
3830 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3833 lt_cv_deplibs_check_method=pass_all
3836 lt_cv_file_magic_cmd='/bin/file'
3837 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3840 lt_cv_file_magic_cmd='/bin/file'
3841 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3842 lt_cv_file_magic_test_file=/lib/libc.so
3845 lt_cv_deplibs_check_method=pass_all
3852 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3853 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3854 file_magic_cmd=$lt_cv_file_magic_cmd
3855 deplibs_check_method=$lt_cv_deplibs_check_method
3864 # Check for command to grab the raw symbol name followed by C symbol from nm.
3865 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3866 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3867 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3871 # These are sane defaults that work on at least a few old systems.
3872 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3874 # Character class describing NM global symbol codes.
3875 symcode='[BCDEGRST]'
3877 # Regexp to match symbols that can be accessed directly from C.
3878 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3880 # Transform the above into a raw symbol and a C symbol.
3881 symxfrm='\1 \2\3 \3'
3883 # Transform an extracted symbol line into a proper C declaration
3884 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3886 # Transform an extracted symbol line into symbol name and symbol address
3887 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'"
3889 # Define system-specific variables.
3894 cygwin* | mingw* | pw32*)
3895 symcode='[ABCDGISTW]'
3897 hpux*) # Its linker distinguishes data from code symbols
3898 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3899 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'"
3902 symcode='[BCDEGRST]'
3905 symcode='[BCDEGQRST]'
3915 # Handle CRLF in mingw tool chain
3919 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3923 # If we're using GNU nm, then use its standard symbol codes.
3924 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3925 symcode='[ABCDGISTW]'
3928 # Try without a prefix undercore, then with it.
3929 for ac_symprfx in "" "_"; do
3931 # Write the raw and C identifiers.
3932 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3934 # Check to see that the pipe works correctly.
3937 cat > conftest.$ac_ext <<EOF
3942 void nm_test_func(){}
3946 int main(){nm_test_var='a';nm_test_func();return(0);}
3949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3950 (eval $ac_compile) 2>&5
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); }; then
3954 # Now try to grab the symbols.
3956 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3957 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } && test -s "$nlist"; then
3961 # Try sorting and uniquifying the output.
3962 if sort "$nlist" | uniq > "$nlist"T; then
3963 mv -f "$nlist"T "$nlist"
3968 # Make sure that we snagged all the symbols we need.
3969 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3970 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3971 cat <<EOF > conftest.$ac_ext
3977 # Now generate the symbol file.
3978 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3980 cat <<EOF >> conftest.$ac_ext
3981 #if defined (__STDC__) && __STDC__
3982 # define lt_ptr void *
3984 # define lt_ptr char *
3988 /* The mapping between symbol names and symbols. */
3993 lt_preloaded_symbols[] =
3996 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3997 cat <<\EOF >> conftest.$ac_ext
4005 # Now try linking the two files.
4006 mv conftest.$ac_objext conftstm.$ac_objext
4008 save_CFLAGS="$CFLAGS"
4009 LIBS="conftstm.$ac_objext"
4010 CFLAGS="$CFLAGS$no_builtin_flag"
4011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4012 (eval $ac_link) 2>&5
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); } && test -s conftest$ac_exeext; then
4019 CFLAGS="$save_CFLAGS"
4021 echo "cannot find nm_test_func in $nlist" >&5
4024 echo "cannot find nm_test_var in $nlist" >&5
4027 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4030 echo "$progname: failed program was:" >&5
4031 cat conftest.$ac_ext >&5
4033 rm -f conftest* conftst*
4035 # Do not use the global_symbol_pipe unless it works.
4036 if test "$pipe_works" = yes; then
4039 lt_cv_sys_global_symbol_pipe=
4045 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4046 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4047 global_symbol_to_cdecl=
4048 global_symbol_to_c_name_address=
4050 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4051 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4053 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4055 echo "$as_me:$LINENO: result: failed" >&5
4056 echo "${ECHO_T}failed" >&6
4058 echo "$as_me:$LINENO: result: ok" >&5
4059 echo "${ECHO_T}ok" >&6
4063 echo "$as_me:$LINENO: checking for egrep" >&5
4064 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4065 if test "${ac_cv_prog_egrep+set}" = set; then
4066 echo $ECHO_N "(cached) $ECHO_C" >&6
4068 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4069 then ac_cv_prog_egrep='grep -E'
4070 else ac_cv_prog_egrep='egrep'
4073 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4074 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4075 EGREP=$ac_cv_prog_egrep
4078 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4079 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4080 if test "${ac_cv_header_stdc+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4083 cat >conftest.$ac_ext <<_ACEOF
4086 cat confdefs.h >>conftest.$ac_ext
4087 cat >>conftest.$ac_ext <<_ACEOF
4088 /* end confdefs.h. */
4102 rm -f conftest.$ac_objext
4103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4104 (eval $ac_compile) 2>conftest.er1
4106 grep -v '^ *+' conftest.er1 >conftest.err
4108 cat conftest.err >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); } &&
4111 { ac_try='test -z "$ac_c_werror_flag"
4112 || test ! -s conftest.err'
4113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; } &&
4118 { ac_try='test -s conftest.$ac_objext'
4119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); }; }; then
4124 ac_cv_header_stdc=yes
4126 echo "$as_me: failed program was:" >&5
4127 sed 's/^/| /' conftest.$ac_ext >&5
4129 ac_cv_header_stdc=no
4131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4133 if test $ac_cv_header_stdc = yes; then
4134 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4135 cat >conftest.$ac_ext <<_ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
4144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4145 $EGREP "memchr" >/dev/null 2>&1; then
4148 ac_cv_header_stdc=no
4154 if test $ac_cv_header_stdc = yes; then
4155 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4156 cat >conftest.$ac_ext <<_ACEOF
4159 cat confdefs.h >>conftest.$ac_ext
4160 cat >>conftest.$ac_ext <<_ACEOF
4161 /* end confdefs.h. */
4165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4166 $EGREP "free" >/dev/null 2>&1; then
4169 ac_cv_header_stdc=no
4175 if test $ac_cv_header_stdc = yes; then
4176 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4177 if test "$cross_compiling" = yes; then
4180 cat >conftest.$ac_ext <<_ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h. */
4187 #if ((' ' & 0x0FF) == 0x020)
4188 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4189 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4191 # define ISLOWER(c) \
4192 (('a' <= (c) && (c) <= 'i') \
4193 || ('j' <= (c) && (c) <= 'r') \
4194 || ('s' <= (c) && (c) <= 'z'))
4195 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4198 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4203 for (i = 0; i < 256; i++)
4204 if (XOR (islower (i), ISLOWER (i))
4205 || toupper (i) != TOUPPER (i))
4210 rm -f conftest$ac_exeext
4211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4212 (eval $ac_link) 2>&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }; }; then
4223 echo "$as_me: program exited with status $ac_status" >&5
4224 echo "$as_me: failed program was:" >&5
4225 sed 's/^/| /' conftest.$ac_ext >&5
4228 ac_cv_header_stdc=no
4230 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4234 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4235 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4236 if test $ac_cv_header_stdc = yes; then
4238 cat >>confdefs.h <<\_ACEOF
4239 #define STDC_HEADERS 1
4244 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4254 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4255 inttypes.h stdint.h unistd.h
4257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4258 echo "$as_me:$LINENO: checking for $ac_header" >&5
4259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4263 cat >conftest.$ac_ext <<_ACEOF
4266 cat confdefs.h >>conftest.$ac_ext
4267 cat >>conftest.$ac_ext <<_ACEOF
4268 /* end confdefs.h. */
4269 $ac_includes_default
4271 #include <$ac_header>
4273 rm -f conftest.$ac_objext
4274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4275 (eval $ac_compile) 2>conftest.er1
4277 grep -v '^ *+' conftest.er1 >conftest.err
4279 cat conftest.err >&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); } &&
4282 { ac_try='test -z "$ac_c_werror_flag"
4283 || test ! -s conftest.err'
4284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }; } &&
4289 { ac_try='test -s conftest.$ac_objext'
4290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }; }; then
4295 eval "$as_ac_Header=yes"
4297 echo "$as_me: failed program was:" >&5
4298 sed 's/^/| /' conftest.$ac_ext >&5
4300 eval "$as_ac_Header=no"
4302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4307 cat >>confdefs.h <<_ACEOF
4308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4317 for ac_header in dlfcn.h
4319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4321 echo "$as_me:$LINENO: checking for $ac_header" >&5
4322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4324 echo $ECHO_N "(cached) $ECHO_C" >&6
4326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4329 # Is the header compilable?
4330 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4331 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4332 cat >conftest.$ac_ext <<_ACEOF
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h. */
4338 $ac_includes_default
4339 #include <$ac_header>
4341 rm -f conftest.$ac_objext
4342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4343 (eval $ac_compile) 2>conftest.er1
4345 grep -v '^ *+' conftest.er1 >conftest.err
4347 cat conftest.err >&5
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); } &&
4350 { ac_try='test -z "$ac_c_werror_flag"
4351 || test ! -s conftest.err'
4352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); }; } &&
4357 { ac_try='test -s conftest.$ac_objext'
4358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; }; then
4363 ac_header_compiler=yes
4365 echo "$as_me: failed program was:" >&5
4366 sed 's/^/| /' conftest.$ac_ext >&5
4368 ac_header_compiler=no
4370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4371 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4372 echo "${ECHO_T}$ac_header_compiler" >&6
4374 # Is the header present?
4375 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4377 cat >conftest.$ac_ext <<_ACEOF
4380 cat confdefs.h >>conftest.$ac_ext
4381 cat >>conftest.$ac_ext <<_ACEOF
4382 /* end confdefs.h. */
4383 #include <$ac_header>
4385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4388 grep -v '^ *+' conftest.er1 >conftest.err
4390 cat conftest.err >&5
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); } >/dev/null; then
4393 if test -s conftest.err; then
4394 ac_cpp_err=$ac_c_preproc_warn_flag
4395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4402 if test -z "$ac_cpp_err"; then
4403 ac_header_preproc=yes
4405 echo "$as_me: failed program was:" >&5
4406 sed 's/^/| /' conftest.$ac_ext >&5
4408 ac_header_preproc=no
4410 rm -f conftest.err conftest.$ac_ext
4411 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4412 echo "${ECHO_T}$ac_header_preproc" >&6
4414 # So? What about this header?
4415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4417 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4421 ac_header_preproc=yes
4424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4427 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4428 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4430 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4431 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4434 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4438 ## ------------------------------------------ ##
4439 ## Report this to the AC_PACKAGE_NAME lists. ##
4440 ## ------------------------------------------ ##
4443 sed "s/^/$as_me: WARNING: /" >&2
4446 echo "$as_me:$LINENO: checking for $ac_header" >&5
4447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
4451 eval "$as_ac_Header=\$ac_header_preproc"
4453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4458 cat >>confdefs.h <<_ACEOF
4459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4471 # Only perform the check for file, if the check method requires it
4472 case $deplibs_check_method in
4474 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4475 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4476 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4477 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4478 echo $ECHO_N "(cached) $ECHO_C" >&6
4482 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4485 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4488 ac_save_MAGIC_CMD="$MAGIC_CMD"
4489 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4490 ac_dummy="/usr/bin:$PATH"
4491 for ac_dir in $ac_dummy; do
4492 test -z "$ac_dir" && ac_dir=.
4493 if test -f $ac_dir/${ac_tool_prefix}file; then
4494 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4495 if test -n "$file_magic_test_file"; then
4496 case $deplibs_check_method in
4498 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4499 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4500 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4501 egrep "$file_magic_regex" > /dev/null; then
4506 *** Warning: the command libtool uses to detect shared libraries,
4507 *** $file_magic_cmd, produces output that libtool cannot recognize.
4508 *** The result is that libtool may fail to recognize shared libraries
4509 *** as such. This will affect the creation of libtool libraries that
4510 *** depend on shared libraries, but programs linked with such libtool
4511 *** libraries will work regardless of this problem. Nevertheless, you
4512 *** may want to report the problem to your system manager and/or to
4513 *** bug-libtool@gnu.org
4523 MAGIC_CMD="$ac_save_MAGIC_CMD"
4528 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4529 if test -n "$MAGIC_CMD"; then
4530 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4531 echo "${ECHO_T}$MAGIC_CMD" >&6
4533 echo "$as_me:$LINENO: result: no" >&5
4534 echo "${ECHO_T}no" >&6
4537 if test -z "$lt_cv_path_MAGIC_CMD"; then
4538 if test -n "$ac_tool_prefix"; then
4539 echo "$as_me:$LINENO: checking for file" >&5
4540 echo $ECHO_N "checking for file... $ECHO_C" >&6
4541 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4546 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4549 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4552 ac_save_MAGIC_CMD="$MAGIC_CMD"
4553 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4554 ac_dummy="/usr/bin:$PATH"
4555 for ac_dir in $ac_dummy; do
4556 test -z "$ac_dir" && ac_dir=.
4557 if test -f $ac_dir/file; then
4558 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4559 if test -n "$file_magic_test_file"; then
4560 case $deplibs_check_method in
4562 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4563 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4564 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4565 egrep "$file_magic_regex" > /dev/null; then
4570 *** Warning: the command libtool uses to detect shared libraries,
4571 *** $file_magic_cmd, produces output that libtool cannot recognize.
4572 *** The result is that libtool may fail to recognize shared libraries
4573 *** as such. This will affect the creation of libtool libraries that
4574 *** depend on shared libraries, but programs linked with such libtool
4575 *** libraries will work regardless of this problem. Nevertheless, you
4576 *** may want to report the problem to your system manager and/or to
4577 *** bug-libtool@gnu.org
4587 MAGIC_CMD="$ac_save_MAGIC_CMD"
4592 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4593 if test -n "$MAGIC_CMD"; then
4594 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4595 echo "${ECHO_T}$MAGIC_CMD" >&6
4597 echo "$as_me:$LINENO: result: no" >&5
4598 echo "${ECHO_T}no" >&6
4610 if test -n "$ac_tool_prefix"; then
4611 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4612 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4613 echo "$as_me:$LINENO: checking for $ac_word" >&5
4614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4615 if test "${ac_cv_prog_RANLIB+set}" = set; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
4618 if test -n "$RANLIB"; then
4619 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 test -z "$as_dir" && as_dir=.
4626 for ac_exec_ext in '' $ac_executable_extensions; do
4627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4628 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4637 RANLIB=$ac_cv_prog_RANLIB
4638 if test -n "$RANLIB"; then
4639 echo "$as_me:$LINENO: result: $RANLIB" >&5
4640 echo "${ECHO_T}$RANLIB" >&6
4642 echo "$as_me:$LINENO: result: no" >&5
4643 echo "${ECHO_T}no" >&6
4647 if test -z "$ac_cv_prog_RANLIB"; then
4648 ac_ct_RANLIB=$RANLIB
4649 # Extract the first word of "ranlib", so it can be a program name with args.
4650 set dummy ranlib; ac_word=$2
4651 echo "$as_me:$LINENO: checking for $ac_word" >&5
4652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4653 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4656 if test -n "$ac_ct_RANLIB"; then
4657 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 test -z "$as_dir" && as_dir=.
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4666 ac_cv_prog_ac_ct_RANLIB="ranlib"
4667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4673 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4676 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4677 if test -n "$ac_ct_RANLIB"; then
4678 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4679 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4681 echo "$as_me:$LINENO: result: no" >&5
4682 echo "${ECHO_T}no" >&6
4685 RANLIB=$ac_ct_RANLIB
4687 RANLIB="$ac_cv_prog_RANLIB"
4690 if test -n "$ac_tool_prefix"; then
4691 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4692 set dummy ${ac_tool_prefix}strip; ac_word=$2
4693 echo "$as_me:$LINENO: checking for $ac_word" >&5
4694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4695 if test "${ac_cv_prog_STRIP+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4698 if test -n "$STRIP"; then
4699 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4708 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4717 STRIP=$ac_cv_prog_STRIP
4718 if test -n "$STRIP"; then
4719 echo "$as_me:$LINENO: result: $STRIP" >&5
4720 echo "${ECHO_T}$STRIP" >&6
4722 echo "$as_me:$LINENO: result: no" >&5
4723 echo "${ECHO_T}no" >&6
4727 if test -z "$ac_cv_prog_STRIP"; then
4729 # Extract the first word of "strip", so it can be a program name with args.
4730 set dummy strip; ac_word=$2
4731 echo "$as_me:$LINENO: checking for $ac_word" >&5
4732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4733 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4736 if test -n "$ac_ct_STRIP"; then
4737 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743 test -z "$as_dir" && as_dir=.
4744 for ac_exec_ext in '' $ac_executable_extensions; do
4745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4746 ac_cv_prog_ac_ct_STRIP="strip"
4747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4753 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4756 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4757 if test -n "$ac_ct_STRIP"; then
4758 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4759 echo "${ECHO_T}$ac_ct_STRIP" >&6
4761 echo "$as_me:$LINENO: result: no" >&5
4762 echo "${ECHO_T}no" >&6
4767 STRIP="$ac_cv_prog_STRIP"
4774 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4775 if test "${enable_libtool_lock+set}" = set; then
4776 enableval="$enable_libtool_lock"
4779 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4781 # Some flags need to be propagated to the compiler or linker for good
4785 # Find out which ABI we are using.
4786 echo '#line 4786 "configure"' > conftest.$ac_ext
4787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4788 (eval $ac_compile) 2>&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); }; then
4792 case `/usr/bin/file conftest.$ac_objext` in
4808 # Test if the compiler is 64bit
4809 echo 'int i;' > conftest.$ac_ext
4810 lt_cv_cc_64bit_output=no
4811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4812 (eval $ac_compile) 2>&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); }; then
4816 case `/usr/bin/file conftest.$ac_objext` in
4818 lt_cv_cc_64bit_output=yes
4826 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4827 SAVE_CFLAGS="$CFLAGS"
4828 CFLAGS="$CFLAGS -belf"
4829 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4830 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4831 if test "${lt_cv_cc_needs_belf+set}" = set; then
4832 echo $ECHO_N "(cached) $ECHO_C" >&6
4837 ac_cpp='$CPP $CPPFLAGS'
4838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4842 cat >conftest.$ac_ext <<_ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h. */
4857 rm -f conftest.$ac_objext conftest$ac_exeext
4858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4859 (eval $ac_link) 2>conftest.er1
4861 grep -v '^ *+' conftest.er1 >conftest.err
4863 cat conftest.err >&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } &&
4866 { ac_try='test -z "$ac_c_werror_flag"
4867 || test ! -s conftest.err'
4868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); }; } &&
4873 { ac_try='test -s conftest$ac_exeext'
4874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); }; }; then
4879 lt_cv_cc_needs_belf=yes
4881 echo "$as_me: failed program was:" >&5
4882 sed 's/^/| /' conftest.$ac_ext >&5
4884 lt_cv_cc_needs_belf=no
4886 rm -f conftest.err conftest.$ac_objext \
4887 conftest$ac_exeext conftest.$ac_ext
4889 ac_cpp='$CPP $CPPFLAGS'
4890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4895 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4896 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4897 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4898 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4899 CFLAGS="$SAVE_CFLAGS"
4906 # Sed substitution that helps us do robust quoting. It backslashifies
4907 # metacharacters that are still active within double-quoted strings.
4908 Xsed='sed -e s/^X//'
4909 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4911 # Same as above, but do not quote variable references.
4912 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4914 # Sed substitution to delay expansion of an escaped shell variable in a
4915 # double_quote_subst'ed string.
4916 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4922 default_ofile=libtool
4923 can_build_shared=yes
4925 # All known linkers require a `.a' archive for static linking (except M$VC,
4926 # which needs '.lib').
4928 ltmain="$ac_aux_dir/ltmain.sh"
4929 ofile="$default_ofile"
4930 with_gnu_ld="$lt_cv_prog_gnu_ld"
4931 need_locks="$enable_libtool_lock"
4934 old_CFLAGS="$CFLAGS"
4936 # Set sane defaults for various variables
4937 test -z "$AR" && AR=ar
4938 test -z "$AR_FLAGS" && AR_FLAGS=cru
4939 test -z "$AS" && AS=as
4940 test -z "$CC" && CC=cc
4941 test -z "$DLLTOOL" && DLLTOOL=dlltool
4942 test -z "$LD" && LD=ld
4943 test -z "$LN_S" && LN_S="ln -s"
4944 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4945 test -z "$NM" && NM=nm
4946 test -z "$OBJDUMP" && OBJDUMP=objdump
4947 test -z "$RANLIB" && RANLIB=:
4948 test -z "$STRIP" && STRIP=:
4949 test -z "$ac_objext" && ac_objext=o
4951 if test x"$host" != x"$build"; then
4952 ac_tool_prefix=${host_alias}-
4957 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4960 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4965 # AIX sometimes has problems with the GCC collect2 program. For some
4966 # reason, if we set the COLLECT_NAMES environment variable, the problems
4967 # vanish in a puff of smoke.
4968 if test "X${COLLECT_NAMES+set}" != Xset; then
4970 export COLLECT_NAMES
4975 # Determine commands to create old-style static archives.
4976 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4977 old_postinstall_cmds='chmod 644 $oldlib'
4978 old_postuninstall_cmds=
4980 if test -n "$RANLIB"; then
4983 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4986 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4989 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4992 # Allow CC to be a program name with arguments.
4996 echo "$as_me:$LINENO: checking for objdir" >&5
4997 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4998 rm -f .libs 2>/dev/null
4999 mkdir .libs 2>/dev/null
5000 if test -d .libs; then
5003 # MS-DOS does not allow filenames that begin with a dot.
5006 rmdir .libs 2>/dev/null
5007 echo "$as_me:$LINENO: result: $objdir" >&5
5008 echo "${ECHO_T}$objdir" >&6
5012 # Check whether --with-pic or --without-pic was given.
5013 if test "${with_pic+set}" = set; then
5019 test -z "$pic_mode" && pic_mode=default
5021 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5022 # in isolation, and that seeing it set (from the cache) indicates that
5023 # the associated values are set (in the cache) correctly too.
5024 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5025 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5026 if test "${lt_cv_prog_cc_pic+set}" = set; then
5027 echo $ECHO_N "(cached) $ECHO_C" >&6
5030 lt_cv_prog_cc_shlib=
5032 lt_cv_prog_cc_static=
5033 lt_cv_prog_cc_no_builtin=
5034 lt_cv_prog_cc_can_build_shared=$can_build_shared
5036 if test "$GCC" = yes; then
5037 lt_cv_prog_cc_wl='-Wl,'
5038 lt_cv_prog_cc_static='-static'
5042 # Below there is a dirty hack to force normal static linking with -ldl
5043 # The problem is because libdl dynamically linked with both libc and
5044 # libC (AIX C++ library), which obviously doesn't included in libraries
5045 # list by gcc. This cause undefined symbols with -static flags.
5046 # This hack allows C programs to be linked with "-static -ldl", but
5047 # not sure about C++ programs.
5048 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5051 # FIXME: we need at least 68020 code to build shared libraries, but
5052 # adding the `-m68020' flag to GCC prevents building anything better,
5054 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5056 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5057 # PIC is the default for these OSes.
5059 darwin* | rhapsody*)
5060 # PIC is the default on this platform
5061 # Common symbols not allowed in MH_DYLIB files
5062 lt_cv_prog_cc_pic='-fno-common'
5064 cygwin* | mingw* | pw32* | os2*)
5065 # This hack is so that the source file can tell whether it is being
5066 # built for inclusion in a dll (and should export symbols for example).
5067 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5070 if test -d /usr/nec; then
5071 lt_cv_prog_cc_pic=-Kconform_pic
5075 lt_cv_prog_cc_pic='-fPIC'
5079 # PORTME Check for PIC flags for the system compiler.
5081 aix3* | aix4* | aix5*)
5082 lt_cv_prog_cc_wl='-Wl,'
5083 # All AIX code is PIC.
5084 if test "$host_cpu" = ia64; then
5085 # AIX 5 now supports IA64 processor
5086 lt_cv_prog_cc_static='-Bstatic'
5088 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5092 hpux9* | hpux10* | hpux11*)
5093 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5094 lt_cv_prog_cc_wl='-Wl,'
5095 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5096 lt_cv_prog_cc_pic='+Z'
5099 irix5* | irix6* | nonstopux*)
5100 lt_cv_prog_cc_wl='-Wl,'
5101 lt_cv_prog_cc_static='-non_shared'
5102 # PIC (with -KPIC) is the default.
5105 cygwin* | mingw* | pw32* | os2*)
5106 # This hack is so that the source file can tell whether it is being
5107 # built for inclusion in a dll (and should export symbols for example).
5108 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5112 lt_cv_prog_cc_pic='-KPIC'
5113 lt_cv_prog_cc_static='-Bstatic'
5116 osf3* | osf4* | osf5*)
5117 # All OSF/1 code is PIC.
5118 lt_cv_prog_cc_wl='-Wl,'
5119 lt_cv_prog_cc_static='-non_shared'
5123 lt_cv_prog_cc_pic='-Kpic'
5124 lt_cv_prog_cc_static='-dn'
5125 lt_cv_prog_cc_shlib='-belf'
5129 lt_cv_prog_cc_pic='-KPIC'
5130 lt_cv_prog_cc_static='-Bstatic'
5131 lt_cv_prog_cc_wl='-Wl,'
5135 lt_cv_prog_cc_pic='-PIC'
5136 lt_cv_prog_cc_static='-Bstatic'
5137 lt_cv_prog_cc_wl='-Qoption ld '
5140 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5141 lt_cv_prog_cc_pic='-KPIC'
5142 lt_cv_prog_cc_static='-Bstatic'
5143 lt_cv_prog_cc_wl='-Wl,'
5147 lt_cv_prog_cc_pic='-pic'
5148 lt_cv_prog_cc_static='-Bstatic'
5152 if test -d /usr/nec ;then
5153 lt_cv_prog_cc_pic='-Kconform_pic'
5154 lt_cv_prog_cc_static='-Bstatic'
5159 lt_cv_prog_cc_can_build_shared=no
5166 if test -z "$lt_cv_prog_cc_pic"; then
5167 echo "$as_me:$LINENO: result: none" >&5
5168 echo "${ECHO_T}none" >&6
5170 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5171 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5173 # Check to make sure the pic_flag actually works.
5174 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5175 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5176 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5179 save_CFLAGS="$CFLAGS"
5180 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5181 cat >conftest.$ac_ext <<_ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h. */
5196 rm -f conftest.$ac_objext
5197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5198 (eval $ac_compile) 2>conftest.er1
5200 grep -v '^ *+' conftest.er1 >conftest.err
5202 cat conftest.err >&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); } &&
5205 { ac_try='test -z "$ac_c_werror_flag"
5206 || test ! -s conftest.err'
5207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); }; } &&
5212 { ac_try='test -s conftest.$ac_objext'
5213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); }; }; then
5219 hpux9* | hpux10* | hpux11*)
5220 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5221 # they create non-PIC objects. So, if there were any warnings, we
5222 # assume that PIC is not supported.
5223 if test -s conftest.err; then
5224 lt_cv_prog_cc_pic_works=no
5226 lt_cv_prog_cc_pic_works=yes
5230 lt_cv_prog_cc_pic_works=yes
5235 echo "$as_me: failed program was:" >&5
5236 sed 's/^/| /' conftest.$ac_ext >&5
5238 lt_cv_prog_cc_pic_works=no
5241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5242 CFLAGS="$save_CFLAGS"
5247 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5249 lt_cv_prog_cc_can_build_shared=no
5251 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5254 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5255 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5258 # Check for any special shared library compilation flags.
5259 if test -n "$lt_cv_prog_cc_shlib"; then
5260 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5261 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5262 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5264 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5265 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5266 lt_cv_prog_cc_can_build_shared=no
5270 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5271 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5272 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5273 echo $ECHO_N "(cached) $ECHO_C" >&6
5275 lt_cv_prog_cc_static_works=no
5276 save_LDFLAGS="$LDFLAGS"
5277 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5278 cat >conftest.$ac_ext <<_ACEOF
5281 cat confdefs.h >>conftest.$ac_ext
5282 cat >>conftest.$ac_ext <<_ACEOF
5283 /* end confdefs.h. */
5293 rm -f conftest.$ac_objext conftest$ac_exeext
5294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5295 (eval $ac_link) 2>conftest.er1
5297 grep -v '^ *+' conftest.er1 >conftest.err
5299 cat conftest.err >&5
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); } &&
5302 { ac_try='test -z "$ac_c_werror_flag"
5303 || test ! -s conftest.err'
5304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); }; } &&
5309 { ac_try='test -s conftest$ac_exeext'
5310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }; }; then
5315 lt_cv_prog_cc_static_works=yes
5317 echo "$as_me: failed program was:" >&5
5318 sed 's/^/| /' conftest.$ac_ext >&5
5321 rm -f conftest.err conftest.$ac_objext \
5322 conftest$ac_exeext conftest.$ac_ext
5323 LDFLAGS="$save_LDFLAGS"
5328 # Belt *and* braces to stop my trousers falling down:
5329 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5330 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5331 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5333 pic_flag="$lt_cv_prog_cc_pic"
5334 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5335 wl="$lt_cv_prog_cc_wl"
5336 link_static_flag="$lt_cv_prog_cc_static"
5337 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5338 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5341 # Check to see if options -o and -c are simultaneously supported by compiler
5342 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5343 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5344 if test "${lt_cv_compiler_c_o+set}" = set; then
5345 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 $rm -r conftest 2>/dev/null
5351 echo "int some_variable = 0;" > conftest.$ac_ext
5353 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5354 # that will create temporary files in the current directory regardless of
5355 # the output directory. Thus, making CWD read-only will cause this test
5356 # to fail, enabling locking or at least warning the user not to do parallel
5359 save_CFLAGS="$CFLAGS"
5360 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5362 if { (eval echo configure:5362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5363 # The compiler can only warn and ignore the option if not recognized
5364 # So say no if there are warnings
5365 if test -s out/conftest.err; then
5366 lt_cv_compiler_c_o=no
5368 lt_cv_compiler_c_o=yes
5371 # Append any errors to the config.log.
5372 cat out/conftest.err 1>&5
5373 lt_cv_compiler_c_o=no
5375 CFLAGS="$save_CFLAGS"
5381 $rm -r conftest 2>/dev/null
5385 compiler_c_o=$lt_cv_compiler_c_o
5386 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5387 echo "${ECHO_T}$compiler_c_o" >&6
5389 if test x"$compiler_c_o" = x"yes"; then
5390 # Check to see if we can write to a .lo
5391 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5392 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5393 if test "${lt_cv_compiler_o_lo+set}" = set; then
5394 echo $ECHO_N "(cached) $ECHO_C" >&6
5397 lt_cv_compiler_o_lo=no
5398 save_CFLAGS="$CFLAGS"
5399 CFLAGS="$CFLAGS -c -o conftest.lo"
5400 save_objext="$ac_objext"
5402 cat >conftest.$ac_ext <<_ACEOF
5405 cat confdefs.h >>conftest.$ac_ext
5406 cat >>conftest.$ac_ext <<_ACEOF
5407 /* end confdefs.h. */
5412 int some_variable = 0;
5417 rm -f conftest.$ac_objext
5418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5419 (eval $ac_compile) 2>conftest.er1
5421 grep -v '^ *+' conftest.er1 >conftest.err
5423 cat conftest.err >&5
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); } &&
5426 { ac_try='test -z "$ac_c_werror_flag"
5427 || test ! -s conftest.err'
5428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); }; } &&
5433 { ac_try='test -s conftest.$ac_objext'
5434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }; }; then
5439 # The compiler can only warn and ignore the option if not recognized
5440 # So say no if there are warnings
5441 if test -s conftest.err; then
5442 lt_cv_compiler_o_lo=no
5444 lt_cv_compiler_o_lo=yes
5448 echo "$as_me: failed program was:" >&5
5449 sed 's/^/| /' conftest.$ac_ext >&5
5452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5453 ac_objext="$save_objext"
5454 CFLAGS="$save_CFLAGS"
5458 compiler_o_lo=$lt_cv_compiler_o_lo
5459 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5460 echo "${ECHO_T}$compiler_o_lo" >&6
5465 # Check to see if we can do hard links to lock some files if needed
5466 hard_links="nottested"
5467 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5468 # do not overwrite the value of need_locks provided by the user
5469 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5470 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5473 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5475 ln conftest.a conftest.b 2>&5 || hard_links=no
5476 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5477 echo "$as_me:$LINENO: result: $hard_links" >&5
5478 echo "${ECHO_T}$hard_links" >&6
5479 if test "$hard_links" = no; then
5480 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5481 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5488 if test "$GCC" = yes; then
5489 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5490 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5491 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5492 echo "int some_variable = 0;" > conftest.$ac_ext
5493 save_CFLAGS="$CFLAGS"
5494 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5495 compiler_rtti_exceptions=no
5496 cat >conftest.$ac_ext <<_ACEOF
5499 cat confdefs.h >>conftest.$ac_ext
5500 cat >>conftest.$ac_ext <<_ACEOF
5501 /* end confdefs.h. */
5506 int some_variable = 0;
5511 rm -f conftest.$ac_objext
5512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5513 (eval $ac_compile) 2>conftest.er1
5515 grep -v '^ *+' conftest.er1 >conftest.err
5517 cat conftest.err >&5
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); } &&
5520 { ac_try='test -z "$ac_c_werror_flag"
5521 || test ! -s conftest.err'
5522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); }; } &&
5527 { ac_try='test -s conftest.$ac_objext'
5528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); }; }; then
5533 # The compiler can only warn and ignore the option if not recognized
5534 # So say no if there are warnings
5535 if test -s conftest.err; then
5536 compiler_rtti_exceptions=no
5538 compiler_rtti_exceptions=yes
5542 echo "$as_me: failed program was:" >&5
5543 sed 's/^/| /' conftest.$ac_ext >&5
5546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5547 CFLAGS="$save_CFLAGS"
5548 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5549 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5551 if test "$compiler_rtti_exceptions" = "yes"; then
5552 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5554 no_builtin_flag=' -fno-builtin'
5558 # See if the linker supports building shared libraries.
5559 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5560 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5562 allow_undefined_flag=
5564 need_lib_prefix=unknown
5565 need_version=unknown
5566 # when you set need_version to no, make sure it does not cause -set_version
5567 # flags to be left without arguments
5569 archive_expsym_cmds=
5570 old_archive_from_new_cmds=
5571 old_archive_from_expsyms_cmds=
5572 export_dynamic_flag_spec=
5573 whole_archive_flag_spec=
5574 thread_safe_flag_spec=
5575 hardcode_into_libs=no
5576 hardcode_libdir_flag_spec=
5577 hardcode_libdir_separator=
5580 hardcode_shlibpath_var=unsupported
5582 link_all_deplibs=unknown
5583 always_export_symbols=no
5584 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5585 # include_expsyms should be a list of space-separated symbols to be *always*
5586 # included in the symbol list
5588 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5589 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5590 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5591 # as well as any symbol that contains `d'.
5592 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5593 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5594 # platforms (ab)use it in PIC code, but their linkers get confused if
5595 # the symbol is explicitly referenced. Since portable code cannot
5596 # rely on this symbol name, it's probably fine to never include it in
5597 # preloaded symbol tables.
5598 extract_expsyms_cmds=
5601 cygwin* | mingw* | pw32*)
5602 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5603 # When not using gcc, we currently assume that we are using
5604 # Microsoft Visual C++.
5605 if test "$GCC" != yes; then
5615 if test "$with_gnu_ld" = yes; then
5616 # If archive_cmds runs LD, not CC, wlarc should be empty
5619 # See if GNU ld supports shared libraries.
5621 aix3* | aix4* | aix5*)
5622 # On AIX, the GNU linker is very broken
5623 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5627 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5628 *** to be unable to reliably create shared libraries on AIX.
5629 *** Therefore, libtool is disabling shared libraries support. If you
5630 *** really care for shared libraries, you may want to modify your PATH
5631 *** so that a non-GNU linker is found, and then restart.
5637 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)'
5638 hardcode_libdir_flag_spec='-L$libdir'
5639 hardcode_minus_L=yes
5641 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5642 # that the semantics of dynamic libraries on AmigaOS, at least up
5643 # to version 4, is to share data among multiple programs linked
5644 # with the same dynamic library. Since this doesn't match the
5645 # behavior of shared libraries on other platforms, we can use
5651 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5652 allow_undefined_flag=unsupported
5653 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5654 # support --undefined. This deserves some investigation. FIXME
5655 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5661 cygwin* | mingw* | pw32*)
5662 # hardcode_libdir_flag_spec is actually meaningless, as there is
5663 # no search path for DLLs.
5664 hardcode_libdir_flag_spec='-L$libdir'
5665 allow_undefined_flag=unsupported
5666 always_export_symbols=yes
5668 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5669 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5670 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5671 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5672 else $CC -o impgen impgen.c ; fi)~
5673 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5675 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5677 # cygwin and mingw dlls have different entry points and sets of symbols
5679 # FIXME: what about values for MSVC?
5680 dll_entry=__cygwin_dll_entry@12
5681 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5685 dll_entry=_DllMainCRTStartup@12
5686 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5690 # mingw and cygwin differ, and it's simplest to just exclude the union
5691 # of the two symbol sets.
5692 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5694 # recent cygwin and mingw systems supply a stub DllMain which the user
5695 # can override, but on older systems we have to supply one (in ltdll.c)
5696 if test "x$lt_cv_need_dllmain" = "xyes"; then
5697 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5698 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~
5699 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5705 # Extract the symbol export list from an `--export-all' def file,
5706 # then regenerate the def file from the symbol export list, so that
5707 # the compiled dll only exports the symbol export list.
5708 # Be careful not to strip the DATA tag left be newer dlltools.
5709 export_symbols_cmds="$ltdll_cmds"'
5710 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5711 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5713 # If the export-symbols file already is a .def file (1st line
5714 # is EXPORTS), use it as is.
5715 # If DATA tags from a recent dlltool are present, honour them!
5716 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5717 cp $export_symbols $output_objdir/$soname-def;
5719 echo EXPORTS > $output_objdir/$soname-def;
5721 cat $export_symbols | while read symbol; do
5724 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5725 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5726 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5728 _lt_hint=`expr 1 + \$_lt_hint`;
5732 $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~
5733 $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~
5734 $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~
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 --output-lib $output_objdir/$libname.dll.a~
5736 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5740 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5741 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5744 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5745 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5750 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5754 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5755 *** create shared libraries on Solaris systems. Therefore, libtool
5756 *** is disabling shared libraries support. We urge you to upgrade GNU
5757 *** binutils to release 2.9.1 or newer. Another option is to modify
5758 *** your PATH or compiler configuration so that the native linker is
5759 *** used, and then restart.
5762 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5763 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5764 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5771 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5774 hardcode_shlibpath_var=no
5778 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5779 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5780 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5787 if test "$ld_shlibs" = yes; then
5788 runpath_var=LD_RUN_PATH
5789 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5790 export_dynamic_flag_spec='${wl}--export-dynamic'
5792 cygwin* | mingw* | pw32*)
5793 # dlltool doesn't understand --whole-archive et. al.
5794 whole_archive_flag_spec=
5797 # ancient GNU ld didn't support --whole-archive et. al.
5798 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5799 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5801 whole_archive_flag_spec=
5807 # PORTME fill in a description of your system's linker (not GNU ld)
5810 allow_undefined_flag=unsupported
5811 always_export_symbols=yes
5812 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'
5813 # Note: this linker hardcodes the directories in LIBPATH if there
5814 # are no directories specified by -L.
5815 hardcode_minus_L=yes
5816 if test "$GCC" = yes && test -z "$link_static_flag"; then
5817 # Neither direct hardcoding nor static linking is supported with a
5819 hardcode_direct=unsupported
5824 if test "$host_cpu" = ia64; then
5825 # On IA64, the linker does run time linking by default, so we don't
5826 # have to do anything special.
5827 aix_use_runtimelinking=no
5828 exp_sym_flag='-Bexport'
5831 aix_use_runtimelinking=no
5833 # Test if we are trying to use run time linking or normal
5834 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5835 # need to do runtime linking.
5836 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5837 for ld_flag in $LDFLAGS; do
5840 aix_use_runtimelinking=yes
5847 exp_sym_flag='-bexport'
5848 no_entry_flag='-bnoentry'
5851 # When large executables or shared objects are built, AIX ld can
5852 # have problems creating the table of contents. If linking a library
5853 # or program results in "error TOC overflow" add -mminimal-toc to
5854 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5855 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5859 hardcode_libdir_separator=':'
5860 if test "$GCC" = yes; then
5861 case $host_os in aix4.[012]|aix4.[012].*)
5862 collect2name=`${CC} -print-prog-name=collect2`
5863 if test -f "$collect2name" && \
5864 strings "$collect2name" | grep resolve_lib_name >/dev/null
5866 # We have reworked collect2
5869 # We have old collect2
5870 hardcode_direct=unsupported
5871 # It fails to find uninstalled libraries when the uninstalled
5872 # path is not listed in the libpath. Setting hardcode_minus_L
5873 # to unsupported forces relinking
5874 hardcode_minus_L=yes
5875 hardcode_libdir_flag_spec='-L$libdir'
5876 hardcode_libdir_separator=
5880 shared_flag='-shared'
5883 if test "$host_cpu" = ia64; then
5884 shared_flag='${wl}-G'
5886 if test "$aix_use_runtimelinking" = yes; then
5887 shared_flag='${wl}-G'
5889 shared_flag='${wl}-bM:SRE'
5894 # It seems that -bexpall can do strange things, so it is better to
5895 # generate a list of symbols to export.
5896 always_export_symbols=yes
5897 if test "$aix_use_runtimelinking" = yes; then
5898 # Warning - without using the other runtime loading flags (-brtl),
5899 # -berok will link without error, but may produce a broken library.
5900 allow_undefined_flag='-berok'
5901 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5902 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"
5904 if test "$host_cpu" = ia64; then
5905 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5906 allow_undefined_flag="-z nodefs"
5907 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"
5909 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5910 # Warning - without using the other run time loading flags,
5911 # -berok will link without error, but may produce a broken library.
5912 allow_undefined_flag='${wl}-berok'
5913 # This is a bit strange, but is similar to how AIX traditionally builds
5914 # it's shared libraries.
5915 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'
5921 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)'
5922 hardcode_libdir_flag_spec='-L$libdir'
5923 hardcode_minus_L=yes
5924 # see comment about different semantics on the GNU ld section
5928 cygwin* | mingw* | pw32*)
5929 # When not using gcc, we currently assume that we are using
5930 # Microsoft Visual C++.
5931 # hardcode_libdir_flag_spec is actually meaningless, as there is
5932 # no search path for DLLs.
5933 hardcode_libdir_flag_spec=' '
5934 allow_undefined_flag=unsupported
5935 # Tell ltmain to make .lib files, not .a files.
5937 # FIXME: Setting linknames here is a bad hack.
5938 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5939 # The linker will automatically build a .lib file if we build a DLL.
5940 old_archive_from_new_cmds='true'
5941 # FIXME: Should let the user specify the lib program.
5942 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5943 fix_srcfile_path='`cygpath -w "$srcfile"`'
5946 darwin* | rhapsody*)
5948 rhapsody* | darwin1.[012])
5949 allow_undefined_flag='-undefined suppress'
5952 allow_undefined_flag='-flat_namespace -undefined suppress'
5955 # FIXME: Relying on posixy $() will cause problems for
5956 # cross-compilation, but unfortunately the echo tests do not
5957 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5958 # `"' quotes if we put them in here... so don't!
5959 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)'
5960 # We need to add '_' to the symbols in $export_symbols first
5961 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5963 hardcode_shlibpath_var=no
5964 whole_archive_flag_spec='-all_load $convenience'
5971 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5972 # support. Future versions do this automatically, but an explicit c++rt0.o
5973 # does not break anything, and helps significantly (at the cost of a little
5976 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5977 hardcode_libdir_flag_spec='-R$libdir'
5979 hardcode_shlibpath_var=no
5982 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5984 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5986 hardcode_minus_L=yes
5987 hardcode_shlibpath_var=no
5990 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5992 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5993 hardcode_libdir_flag_spec='-R$libdir'
5995 hardcode_shlibpath_var=no
5998 hpux9* | hpux10* | hpux11*)
6000 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' ;;
6001 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6003 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6004 hardcode_libdir_separator=:
6006 hardcode_minus_L=yes # Not in the search PATH, but as the default
6007 # location of the library.
6008 export_dynamic_flag_spec='${wl}-E'
6011 irix5* | irix6* | nonstopux*)
6012 if test "$GCC" = yes; then
6013 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'
6014 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6016 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'
6017 hardcode_libdir_flag_spec='-rpath $libdir'
6019 hardcode_libdir_separator=:
6020 link_all_deplibs=yes
6024 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6025 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6027 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6029 hardcode_libdir_flag_spec='-R$libdir'
6031 hardcode_shlibpath_var=no
6035 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6037 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6038 hardcode_libdir_separator=:
6039 hardcode_shlibpath_var=no
6044 hardcode_shlibpath_var=no
6045 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6046 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6047 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6048 export_dynamic_flag_spec='${wl}-E'
6051 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6052 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6053 hardcode_libdir_flag_spec='-R$libdir'
6056 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6057 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6064 hardcode_libdir_flag_spec='-L$libdir'
6065 hardcode_minus_L=yes
6066 allow_undefined_flag=unsupported
6067 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'
6068 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6072 if test "$GCC" = yes; then
6073 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6074 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'
6076 allow_undefined_flag=' -expect_unresolved \*'
6077 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'
6079 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6080 hardcode_libdir_separator=:
6083 osf4* | osf5*) # as osf3* with the addition of -msym flag
6084 if test "$GCC" = yes; then
6085 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6086 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'
6087 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6089 allow_undefined_flag=' -expect_unresolved \*'
6090 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'
6091 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6092 $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'
6094 #Both c and cxx compiler support -rpath directly
6095 hardcode_libdir_flag_spec='-rpath $libdir'
6097 hardcode_libdir_separator=:
6101 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6102 hardcode_shlibpath_var=no
6103 runpath_var=LD_RUN_PATH
6104 hardcode_runpath_var=yes
6105 export_dynamic_flag_spec='${wl}-Bexport'
6109 # gcc --version < 3.0 without binutils cannot create self contained
6110 # shared libraries reliably, requiring libgcc.a to resolve some of
6111 # the object symbols generated in some cases. Libraries that use
6112 # assert need libgcc.a to resolve __eprintf, for example. Linking
6113 # a copy of libgcc.a into every shared library to guarantee resolving
6114 # such symbols causes other problems: According to Tim Van Holder
6115 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6116 # (to the application) exception stack for one thing.
6117 no_undefined_flag=' -z defs'
6118 if test "$GCC" = yes; then
6119 case `$CC --version 2>/dev/null` in
6123 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6124 *** create self contained shared libraries on Solaris systems, without
6125 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6126 *** -no-undefined support, which will at least allow you to build shared
6127 *** libraries. However, you may find that when you link such libraries
6128 *** into an application without using GCC, you have to manually add
6129 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6130 *** upgrade to a newer version of GCC. Another option is to rebuild your
6131 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6138 # $CC -shared without GNU ld will not create a library from C++
6139 # object files and a static libstdc++, better avoid it by now
6140 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6141 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6142 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6143 hardcode_libdir_flag_spec='-R$libdir'
6144 hardcode_shlibpath_var=no
6146 solaris2.[0-5] | solaris2.[0-5].*) ;;
6147 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6148 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6150 link_all_deplibs=yes
6154 if test "x$host_vendor" = xsequent; then
6155 # Use $CC to link under sequent, because it throws in some extra .o
6156 # files that make .init and .fini sections work.
6157 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6159 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6161 hardcode_libdir_flag_spec='-L$libdir'
6163 hardcode_minus_L=yes
6164 hardcode_shlibpath_var=no
6168 case $host_vendor in
6170 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6171 hardcode_direct=yes # is this really true???
6174 ## LD is ld it makes a PLAMLIB
6175 ## CC just makes a GrossModule.
6176 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6177 reload_cmds='$CC -r -o $output$reload_objs'
6181 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6182 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6185 runpath_var='LD_RUN_PATH'
6186 hardcode_shlibpath_var=no
6190 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6191 hardcode_shlibpath_var=no
6192 export_dynamic_flag_spec='-Bexport'
6196 no_undefined_flag=' -z text'
6197 # $CC -shared without GNU ld will not create a library from C++
6198 # object files and a static libstdc++, better avoid it by now
6199 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6200 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6201 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6202 hardcode_libdir_flag_spec=
6203 hardcode_shlibpath_var=no
6204 runpath_var='LD_RUN_PATH'
6208 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6209 hardcode_libdir_flag_spec='-L$libdir'
6210 hardcode_shlibpath_var=no
6214 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6215 hardcode_libdir_flag_spec='-L$libdir'
6216 hardcode_shlibpath_var=no
6220 if test -d /usr/nec; then
6221 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6222 hardcode_shlibpath_var=no
6223 runpath_var=LD_RUN_PATH
6224 hardcode_runpath_var=yes
6230 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6233 hardcode_shlibpath_var=no
6234 hardcode_runpath_var=yes
6235 runpath_var=LD_RUN_PATH
6238 sysv5uw7* | unixware7*)
6239 no_undefined_flag='${wl}-z ${wl}text'
6240 if test "$GCC" = yes; then
6241 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6243 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6245 runpath_var='LD_RUN_PATH'
6246 hardcode_shlibpath_var=no
6254 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6255 echo "${ECHO_T}$ld_shlibs" >&6
6256 test "$ld_shlibs" = no && can_build_shared=no
6258 # Check hardcoding attributes.
6259 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6260 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6262 if test -n "$hardcode_libdir_flag_spec" || \
6263 test -n "$runpath_var"; then
6265 # We can hardcode non-existant directories.
6266 if test "$hardcode_direct" != no &&
6267 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6268 # have to relink, otherwise we might link with an installed library
6269 # when we should be linking with a yet-to-be-installed one
6270 ## test "$hardcode_shlibpath_var" != no &&
6271 test "$hardcode_minus_L" != no; then
6272 # Linking always hardcodes the temporary library directory.
6273 hardcode_action=relink
6275 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6276 hardcode_action=immediate
6279 # We cannot hardcode anything, or else we can only hardcode existing
6281 hardcode_action=unsupported
6283 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6284 echo "${ECHO_T}$hardcode_action" >&6
6288 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6289 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6290 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6291 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6292 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6293 echo "$as_me:$LINENO: result: yes" >&5
6294 echo "${ECHO_T}yes" >&6
6296 echo "$as_me:$LINENO: result: no" >&5
6297 echo "${ECHO_T}no" >&6
6300 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6301 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6303 # PORTME Fill in your ld.so characteristics
6304 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6305 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6307 libname_spec='lib$name'
6314 shlibpath_overrides_runpath=unknown
6316 dynamic_linker="$host_os ld.so"
6317 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib"
6318 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib"
6323 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6324 shlibpath_var=LIBPATH
6326 # AIX has no versioning support, so we append a major version to the name.
6327 soname_spec='${libname}${release}.so$major'
6334 hardcode_into_libs=yes
6335 if test "$host_cpu" = ia64; then
6336 # AIX 5 supports IA64
6337 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6338 shlibpath_var=LD_LIBRARY_PATH
6340 # With GCC up to 2.95.x, collect2 would create an import file
6341 # for dependence libraries. The import file would start with
6342 # the line `#! .'. This would cause the generated library to
6343 # depend on `.', always an invalid library. This was fixed in
6344 # development snapshots of GCC prior to 3.0.
6346 aix4 | aix4.[01] | aix4.[01].*)
6347 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6349 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6356 # AIX (on Power*) has no versioning support, so currently we can
6357 # not hardcode correct soname into executable. Probably we can
6358 # add versioning support to collect2, so additional links can
6359 # be useful in future.
6360 if test "$aix_use_runtimelinking" = yes; then
6361 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6362 # instead of lib<name>.a to let people know that these are not
6363 # typical AIX shared libraries.
6364 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6366 # We preserve .a as extension for shared libraries through AIX4.2
6367 # and later when we are not doing run time linking.
6368 library_names_spec='${libname}${release}.a $libname.a'
6369 soname_spec='${libname}${release}.so$major'
6371 shlibpath_var=LIBPATH
6373 hardcode_into_libs=yes
6377 library_names_spec='$libname.ixlibrary $libname.a'
6378 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6379 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'
6383 library_names_spec='${libname}.so'
6384 dynamic_linker="$host_os ld.so"
6385 shlibpath_var=LIBRARY_PATH
6391 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6392 soname_spec='${libname}${release}.so$major'
6393 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6394 shlibpath_var=LD_LIBRARY_PATH
6395 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6396 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6397 export_dynamic_flag_spec=-rdynamic
6398 # the default ld.so.conf also contains /usr/contrib/lib and
6399 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6400 # libtool to hard-code these into programs
6403 cygwin* | mingw* | pw32*)
6404 version_type=windows
6407 case $GCC,$host_os in
6409 library_names_spec='$libname.dll.a'
6410 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6411 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6412 dldir=$destdir/`dirname \$dlpath`~
6413 test -d \$dldir || mkdir -p \$dldir~
6414 $install_prog .libs/$dlname \$dldir/$dlname'
6415 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6416 dlpath=$dir/\$dldll~
6420 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6421 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6424 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6427 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6430 dynamic_linker='Win32 ld.exe'
6431 # FIXME: first we should search . and the directory the executable is in
6435 darwin* | rhapsody*)
6436 dynamic_linker="$host_os dyld"
6440 # FIXME: Relying on posixy $() will cause problems for
6441 # cross-compilation, but unfortunately the echo tests do not
6442 # yet detect zsh echo's removal of \ escapes.
6443 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)'
6444 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6445 shlibpath_overrides_runpath=yes
6446 shlibpath_var=DYLD_LIBRARY_PATH
6454 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6455 version_type=freebsd-$objformat
6456 case $version_type in
6458 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6463 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6467 shlibpath_var=LD_LIBRARY_PATH
6470 shlibpath_overrides_runpath=yes
6473 shlibpath_overrides_runpath=no
6474 hardcode_into_libs=yes
6483 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6484 soname_spec='${libname}${release}.so$major'
6485 shlibpath_var=LD_LIBRARY_PATH
6486 hardcode_into_libs=yes
6489 hpux9* | hpux10* | hpux11*)
6490 # Give a soname corresponding to the major version so that dld.sl refuses to
6491 # link against other versions.
6492 dynamic_linker="$host_os dld.sl"
6496 shlibpath_var=SHLIB_PATH
6497 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6498 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6499 soname_spec='${libname}${release}.sl$major'
6500 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6501 postinstall_cmds='chmod 555 $lib'
6504 irix5* | irix6* | nonstopux*)
6506 nonstopux*) version_type=nonstopux ;;
6507 *) version_type=irix ;;
6511 soname_spec='${libname}${release}.so$major'
6512 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6514 irix5* | nonstopux*)
6518 case $LD in # libtool.m4 will add one of these switches to LD
6519 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6520 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6521 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6522 *) libsuff= shlibsuff= libmagic=never-match;;
6526 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6527 shlibpath_overrides_runpath=no
6528 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6529 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6532 # No shared lib support for Linux oldld, aout, or coff.
6533 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6537 # This must be Linux ELF.
6542 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6543 soname_spec='${libname}${release}.so$major'
6544 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6545 shlibpath_var=LD_LIBRARY_PATH
6546 shlibpath_overrides_runpath=no
6547 # This implies no fast_install, which is unacceptable.
6548 # Some rework will be needed to allow for fast_install
6549 # before this can be enabled.
6550 hardcode_into_libs=yes
6552 case $host_cpu:$lt_cv_cc_64bit_output in
6553 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
6554 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
6555 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
6559 # We used to test for /lib/ld.so.1 and disable shared libraries on
6560 # powerpc, because MkLinux only supported shared libraries with the
6561 # GNU dynamic linker. Since this was broken with cross compilers,
6562 # most powerpc-linux boxes support dynamic linking these days and
6563 # people can always --disable-shared, the test was removed, and we
6564 # assume the GNU/Linux dynamic linker is in use.
6565 dynamic_linker='GNU/Linux ld.so'
6567 # Find out which ABI we are using (multilib Linux x86_64 hack).
6571 echo '#line 6571 "configure"' > conftest.$ac_ext
6572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6573 (eval $ac_compile) 2>&5
6575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); }; then
6577 case `/usr/bin/file conftest.$ac_objext` in
6588 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
6589 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
6596 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6597 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6598 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6599 dynamic_linker='NetBSD (a.out) ld.so'
6601 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6602 soname_spec='${libname}${release}.so$major'
6603 dynamic_linker='NetBSD ld.elf_so'
6605 shlibpath_var=LD_LIBRARY_PATH
6606 shlibpath_overrides_runpath=yes
6607 hardcode_into_libs=yes
6612 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6613 shlibpath_var=LD_LIBRARY_PATH
6614 shlibpath_overrides_runpath=yes
6621 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6623 openbsd2.[89] | openbsd2.[89].*)
6624 shlibpath_overrides_runpath=no
6627 shlibpath_overrides_runpath=yes
6631 shlibpath_overrides_runpath=yes
6633 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6634 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6635 shlibpath_var=LD_LIBRARY_PATH
6639 libname_spec='$name'
6641 library_names_spec='$libname.dll $libname.a'
6642 dynamic_linker='OS/2 ld.exe'
6643 shlibpath_var=LIBPATH
6646 osf3* | osf4* | osf5*)
6649 soname_spec='${libname}${release}.so$major'
6650 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6651 shlibpath_var=LD_LIBRARY_PATH
6652 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6653 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6654 hardcode_into_libs=yes
6659 soname_spec='${libname}${release}.so$major'
6660 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6661 shlibpath_var=LD_LIBRARY_PATH
6668 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6669 soname_spec='${libname}${release}.so$major'
6670 shlibpath_var=LD_LIBRARY_PATH
6671 shlibpath_overrides_runpath=yes
6672 hardcode_into_libs=yes
6673 # ldd complains unless libraries are executable
6674 postinstall_cmds='chmod +x $lib'
6679 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6680 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6681 shlibpath_var=LD_LIBRARY_PATH
6682 shlibpath_overrides_runpath=yes
6683 if test "$with_gnu_ld" = yes; then
6689 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6691 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6692 soname_spec='${libname}${release}.so$major'
6693 shlibpath_var=LD_LIBRARY_PATH
6694 case $host_vendor in
6696 shlibpath_overrides_runpath=no
6698 export_dynamic_flag_spec='${wl}-Blargedynsym'
6699 runpath_var=LD_RUN_PATH
6707 shlibpath_overrides_runpath=no
6708 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6715 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6716 soname_spec='${libname}${release}.so$major'
6717 shlibpath_var=LD_LIBRARY_PATH
6724 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6725 soname_spec='${libname}${release}.so$major'
6726 shlibpath_var=LD_LIBRARY_PATH
6730 if test -d /usr/nec ;then
6732 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6733 soname_spec='$libname.so.$major'
6734 shlibpath_var=LD_LIBRARY_PATH
6742 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6743 echo "${ECHO_T}$dynamic_linker" >&6
6744 test "$dynamic_linker" = no && can_build_shared=no
6746 # Report the final consequences.
6747 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6748 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6749 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6750 echo "${ECHO_T}$can_build_shared" >&6
6752 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6753 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6754 test "$can_build_shared" = "no" && enable_shared=no
6756 # On AIX, shared libraries and static libraries use the same namespace, and
6757 # are all built from PIC.
6760 test "$enable_shared" = yes && enable_static=no
6761 if test -n "$RANLIB"; then
6762 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6763 postinstall_cmds='$RANLIB $lib'
6768 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6769 test "$enable_shared" = yes && enable_static=no
6773 echo "$as_me:$LINENO: result: $enable_shared" >&5
6774 echo "${ECHO_T}$enable_shared" >&6
6776 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6777 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6778 # Make sure either enable_shared or enable_static is yes.
6779 test "$enable_shared" = yes || enable_static=yes
6780 echo "$as_me:$LINENO: result: $enable_static" >&5
6781 echo "${ECHO_T}$enable_static" >&6
6783 if test "$hardcode_action" = relink; then
6784 # Fast installation is not supported
6785 enable_fast_install=no
6786 elif test "$shlibpath_overrides_runpath" = yes ||
6787 test "$enable_shared" = no; then
6788 # Fast installation is not necessary
6789 enable_fast_install=needless
6792 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6793 if test "$GCC" = yes; then
6794 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6797 if test "x$enable_dlopen" != xyes; then
6798 enable_dlopen=unknown
6799 enable_dlopen_self=unknown
6800 enable_dlopen_self_static=unknown
6807 lt_cv_dlopen="load_add_on"
6809 lt_cv_dlopen_self=yes
6812 cygwin* | mingw* | pw32*)
6813 lt_cv_dlopen="LoadLibrary"
6818 echo "$as_me:$LINENO: checking for shl_load" >&5
6819 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6820 if test "${ac_cv_func_shl_load+set}" = set; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
6823 cat >conftest.$ac_ext <<_ACEOF
6826 cat confdefs.h >>conftest.$ac_ext
6827 cat >>conftest.$ac_ext <<_ACEOF
6828 /* end confdefs.h. */
6829 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
6830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6831 #define shl_load innocuous_shl_load
6833 /* System header to define __stub macros and hopefully few prototypes,
6834 which can conflict with char shl_load (); below.
6835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6836 <limits.h> exists even on freestanding compilers. */
6839 # include <limits.h>
6841 # include <assert.h>
6846 /* Override any gcc2 internal prototype to avoid an error. */
6851 /* We use char because int might match the return type of a gcc2
6852 builtin and then its argument prototype would still apply. */
6854 /* The GNU C library defines this for functions which it implements
6855 to always fail with ENOSYS. Some functions are actually named
6856 something starting with __ and the normal name is an alias. */
6857 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6860 char (*f) () = shl_load;
6869 return f != shl_load;
6874 rm -f conftest.$ac_objext conftest$ac_exeext
6875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6876 (eval $ac_link) 2>conftest.er1
6878 grep -v '^ *+' conftest.er1 >conftest.err
6880 cat conftest.err >&5
6881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); } &&
6883 { ac_try='test -z "$ac_c_werror_flag"
6884 || test ! -s conftest.err'
6885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); }; } &&
6890 { ac_try='test -s conftest$ac_exeext'
6891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); }; }; then
6896 ac_cv_func_shl_load=yes
6898 echo "$as_me: failed program was:" >&5
6899 sed 's/^/| /' conftest.$ac_ext >&5
6901 ac_cv_func_shl_load=no
6903 rm -f conftest.err conftest.$ac_objext \
6904 conftest$ac_exeext conftest.$ac_ext
6906 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6907 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6908 if test $ac_cv_func_shl_load = yes; then
6909 lt_cv_dlopen="shl_load"
6911 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6912 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6913 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6914 echo $ECHO_N "(cached) $ECHO_C" >&6
6916 ac_check_lib_save_LIBS=$LIBS
6918 cat >conftest.$ac_ext <<_ACEOF
6921 cat confdefs.h >>conftest.$ac_ext
6922 cat >>conftest.$ac_ext <<_ACEOF
6923 /* end confdefs.h. */
6925 /* Override any gcc2 internal prototype to avoid an error. */
6929 /* We use char because int might match the return type of a gcc2
6930 builtin and then its argument prototype would still apply. */
6940 rm -f conftest.$ac_objext conftest$ac_exeext
6941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6942 (eval $ac_link) 2>conftest.er1
6944 grep -v '^ *+' conftest.er1 >conftest.err
6946 cat conftest.err >&5
6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); } &&
6949 { ac_try='test -z "$ac_c_werror_flag"
6950 || test ! -s conftest.err'
6951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); }; } &&
6956 { ac_try='test -s conftest$ac_exeext'
6957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); }; }; then
6962 ac_cv_lib_dld_shl_load=yes
6964 echo "$as_me: failed program was:" >&5
6965 sed 's/^/| /' conftest.$ac_ext >&5
6967 ac_cv_lib_dld_shl_load=no
6969 rm -f conftest.err conftest.$ac_objext \
6970 conftest$ac_exeext conftest.$ac_ext
6971 LIBS=$ac_check_lib_save_LIBS
6973 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6974 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6975 if test $ac_cv_lib_dld_shl_load = yes; then
6976 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6978 echo "$as_me:$LINENO: checking for dlopen" >&5
6979 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6980 if test "${ac_cv_func_dlopen+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6983 cat >conftest.$ac_ext <<_ACEOF
6986 cat confdefs.h >>conftest.$ac_ext
6987 cat >>conftest.$ac_ext <<_ACEOF
6988 /* end confdefs.h. */
6989 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
6990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6991 #define dlopen innocuous_dlopen
6993 /* System header to define __stub macros and hopefully few prototypes,
6994 which can conflict with char dlopen (); below.
6995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6996 <limits.h> exists even on freestanding compilers. */
6999 # include <limits.h>
7001 # include <assert.h>
7006 /* Override any gcc2 internal prototype to avoid an error. */
7011 /* We use char because int might match the return type of a gcc2
7012 builtin and then its argument prototype would still apply. */
7014 /* The GNU C library defines this for functions which it implements
7015 to always fail with ENOSYS. Some functions are actually named
7016 something starting with __ and the normal name is an alias. */
7017 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7020 char (*f) () = dlopen;
7034 rm -f conftest.$ac_objext conftest$ac_exeext
7035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7036 (eval $ac_link) 2>conftest.er1
7038 grep -v '^ *+' conftest.er1 >conftest.err
7040 cat conftest.err >&5
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); } &&
7043 { ac_try='test -z "$ac_c_werror_flag"
7044 || test ! -s conftest.err'
7045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); }; } &&
7050 { ac_try='test -s conftest$ac_exeext'
7051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); }; }; then
7056 ac_cv_func_dlopen=yes
7058 echo "$as_me: failed program was:" >&5
7059 sed 's/^/| /' conftest.$ac_ext >&5
7061 ac_cv_func_dlopen=no
7063 rm -f conftest.err conftest.$ac_objext \
7064 conftest$ac_exeext conftest.$ac_ext
7066 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7067 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7068 if test $ac_cv_func_dlopen = yes; then
7069 lt_cv_dlopen="dlopen"
7071 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7072 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7073 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7076 ac_check_lib_save_LIBS=$LIBS
7078 cat >conftest.$ac_ext <<_ACEOF
7081 cat confdefs.h >>conftest.$ac_ext
7082 cat >>conftest.$ac_ext <<_ACEOF
7083 /* end confdefs.h. */
7085 /* Override any gcc2 internal prototype to avoid an error. */
7089 /* We use char because int might match the return type of a gcc2
7090 builtin and then its argument prototype would still apply. */
7100 rm -f conftest.$ac_objext conftest$ac_exeext
7101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7102 (eval $ac_link) 2>conftest.er1
7104 grep -v '^ *+' conftest.er1 >conftest.err
7106 cat conftest.err >&5
7107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108 (exit $ac_status); } &&
7109 { ac_try='test -z "$ac_c_werror_flag"
7110 || test ! -s conftest.err'
7111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); }; } &&
7116 { ac_try='test -s conftest$ac_exeext'
7117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); }; }; then
7122 ac_cv_lib_dl_dlopen=yes
7124 echo "$as_me: failed program was:" >&5
7125 sed 's/^/| /' conftest.$ac_ext >&5
7127 ac_cv_lib_dl_dlopen=no
7129 rm -f conftest.err conftest.$ac_objext \
7130 conftest$ac_exeext conftest.$ac_ext
7131 LIBS=$ac_check_lib_save_LIBS
7133 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7134 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7135 if test $ac_cv_lib_dl_dlopen = yes; then
7136 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7138 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7139 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7140 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7141 echo $ECHO_N "(cached) $ECHO_C" >&6
7143 ac_check_lib_save_LIBS=$LIBS
7145 cat >conftest.$ac_ext <<_ACEOF
7148 cat confdefs.h >>conftest.$ac_ext
7149 cat >>conftest.$ac_ext <<_ACEOF
7150 /* end confdefs.h. */
7152 /* Override any gcc2 internal prototype to avoid an error. */
7156 /* We use char because int might match the return type of a gcc2
7157 builtin and then its argument prototype would still apply. */
7167 rm -f conftest.$ac_objext conftest$ac_exeext
7168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7169 (eval $ac_link) 2>conftest.er1
7171 grep -v '^ *+' conftest.er1 >conftest.err
7173 cat conftest.err >&5
7174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175 (exit $ac_status); } &&
7176 { ac_try='test -z "$ac_c_werror_flag"
7177 || test ! -s conftest.err'
7178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); }; } &&
7183 { ac_try='test -s conftest$ac_exeext'
7184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188 (exit $ac_status); }; }; then
7189 ac_cv_lib_svld_dlopen=yes
7191 echo "$as_me: failed program was:" >&5
7192 sed 's/^/| /' conftest.$ac_ext >&5
7194 ac_cv_lib_svld_dlopen=no
7196 rm -f conftest.err conftest.$ac_objext \
7197 conftest$ac_exeext conftest.$ac_ext
7198 LIBS=$ac_check_lib_save_LIBS
7200 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7201 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7202 if test $ac_cv_lib_svld_dlopen = yes; then
7203 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7205 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7206 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7207 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7208 echo $ECHO_N "(cached) $ECHO_C" >&6
7210 ac_check_lib_save_LIBS=$LIBS
7212 cat >conftest.$ac_ext <<_ACEOF
7215 cat confdefs.h >>conftest.$ac_ext
7216 cat >>conftest.$ac_ext <<_ACEOF
7217 /* end confdefs.h. */
7219 /* Override any gcc2 internal prototype to avoid an error. */
7223 /* We use char because int might match the return type of a gcc2
7224 builtin and then its argument prototype would still apply. */
7234 rm -f conftest.$ac_objext conftest$ac_exeext
7235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7236 (eval $ac_link) 2>conftest.er1
7238 grep -v '^ *+' conftest.er1 >conftest.err
7240 cat conftest.err >&5
7241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242 (exit $ac_status); } &&
7243 { ac_try='test -z "$ac_c_werror_flag"
7244 || test ! -s conftest.err'
7245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); }; } &&
7250 { ac_try='test -s conftest$ac_exeext'
7251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); }; }; then
7256 ac_cv_lib_dld_dld_link=yes
7258 echo "$as_me: failed program was:" >&5
7259 sed 's/^/| /' conftest.$ac_ext >&5
7261 ac_cv_lib_dld_dld_link=no
7263 rm -f conftest.err conftest.$ac_objext \
7264 conftest$ac_exeext conftest.$ac_ext
7265 LIBS=$ac_check_lib_save_LIBS
7267 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7268 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7269 if test $ac_cv_lib_dld_dld_link = yes; then
7270 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7291 if test "x$lt_cv_dlopen" != xno; then
7297 case $lt_cv_dlopen in
7299 save_CPPFLAGS="$CPPFLAGS"
7300 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7302 save_LDFLAGS="$LDFLAGS"
7303 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7306 LIBS="$lt_cv_dlopen_libs $LIBS"
7308 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7309 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7310 if test "${lt_cv_dlopen_self+set}" = set; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7313 if test "$cross_compiling" = yes; then :
7314 lt_cv_dlopen_self=cross
7316 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7317 lt_status=$lt_dlunknown
7318 cat > conftest.$ac_ext <<EOF
7319 #line 7319 "configure"
7320 #include "confdefs.h"
7329 # define LT_DLGLOBAL RTLD_GLOBAL
7332 # define LT_DLGLOBAL DL_GLOBAL
7334 # define LT_DLGLOBAL 0
7338 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7339 find out it does not work in some platform. */
7340 #ifndef LT_DLLAZY_OR_NOW
7342 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7345 # define LT_DLLAZY_OR_NOW DL_LAZY
7348 # define LT_DLLAZY_OR_NOW RTLD_NOW
7351 # define LT_DLLAZY_OR_NOW DL_NOW
7353 # define LT_DLLAZY_OR_NOW 0
7361 extern "C" void exit (int);
7364 void fnord() { int i=42;}
7367 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7368 int status = $lt_dlunknown;
7372 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7373 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7374 /* dlclose (self); */
7380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7381 (eval $ac_link) 2>&5
7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7385 (./conftest; exit; ) 2>/dev/null
7388 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7389 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7390 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7393 # compilation failed
7394 lt_cv_dlopen_self=no
7401 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7402 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7404 if test "x$lt_cv_dlopen_self" = xyes; then
7405 LDFLAGS="$LDFLAGS $link_static_flag"
7406 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7407 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7408 if test "${lt_cv_dlopen_self_static+set}" = set; then
7409 echo $ECHO_N "(cached) $ECHO_C" >&6
7411 if test "$cross_compiling" = yes; then :
7412 lt_cv_dlopen_self_static=cross
7414 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7415 lt_status=$lt_dlunknown
7416 cat > conftest.$ac_ext <<EOF
7417 #line 7417 "configure"
7418 #include "confdefs.h"
7427 # define LT_DLGLOBAL RTLD_GLOBAL
7430 # define LT_DLGLOBAL DL_GLOBAL
7432 # define LT_DLGLOBAL 0
7436 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7437 find out it does not work in some platform. */
7438 #ifndef LT_DLLAZY_OR_NOW
7440 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7443 # define LT_DLLAZY_OR_NOW DL_LAZY
7446 # define LT_DLLAZY_OR_NOW RTLD_NOW
7449 # define LT_DLLAZY_OR_NOW DL_NOW
7451 # define LT_DLLAZY_OR_NOW 0
7459 extern "C" void exit (int);
7462 void fnord() { int i=42;}
7465 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7466 int status = $lt_dlunknown;
7470 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7471 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7472 /* dlclose (self); */
7478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7479 (eval $ac_link) 2>&5
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7483 (./conftest; exit; ) 2>/dev/null
7486 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7487 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7488 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7491 # compilation failed
7492 lt_cv_dlopen_self_static=no
7499 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7500 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7503 CPPFLAGS="$save_CPPFLAGS"
7504 LDFLAGS="$save_LDFLAGS"
7509 case $lt_cv_dlopen_self in
7510 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7511 *) enable_dlopen_self=unknown ;;
7514 case $lt_cv_dlopen_self_static in
7515 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7516 *) enable_dlopen_self_static=unknown ;;
7521 if test "$enable_shared" = yes && test "$GCC" = yes; then
7522 case $archive_cmds in
7524 # FIXME: we may have to deal with multi-command sequences.
7527 # Test whether the compiler implicitly links with -lc since on some
7528 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7529 # to ld, don't add -lc before -lgcc.
7530 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7531 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7532 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7533 echo $ECHO_N "(cached) $ECHO_C" >&6
7536 echo 'static int dummy;' > conftest.$ac_ext
7538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7539 (eval $ac_compile) 2>&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); }; then
7545 libobjs=conftest.$ac_objext
7547 wl=$lt_cv_prog_cc_wl
7553 save_allow_undefined_flag=$allow_undefined_flag
7554 allow_undefined_flag=
7555 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7556 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); }
7561 lt_cv_archive_cmds_need_lc=no
7563 lt_cv_archive_cmds_need_lc=yes
7565 allow_undefined_flag=$save_allow_undefined_flag
7567 cat conftest.err 1>&5
7571 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7572 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7576 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7578 # The second clause should only fire when bootstrapping the
7579 # libtool distribution, otherwise you forgot to ship ltmain.sh
7580 # with your package, and you will get complaints that there are
7581 # no rules to generate ltmain.sh.
7582 if test -f "$ltmain"; then
7585 # If there is no Makefile yet, we rely on a make rule to execute
7586 # `config.status --recheck' to rerun these tests and create the
7587 # libtool script then.
7588 test -f Makefile && make "$ltmain"
7591 if test -f "$ltmain"; then
7592 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7595 echo creating $ofile
7597 # Now quote all the things that may contain metacharacters while being
7598 # careful not to overquote the AC_SUBSTed values. We take copies of the
7599 # variables and quote the copies for generation of the libtool script.
7600 for var in echo old_CC old_CFLAGS SED \
7601 AR AR_FLAGS CC LD LN_S NM SHELL \
7602 reload_flag reload_cmds wl \
7603 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7604 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7605 library_names_spec soname_spec \
7606 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7607 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7608 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7609 old_striplib striplib file_magic_cmd export_symbols_cmds \
7610 deplibs_check_method allow_undefined_flag no_undefined_flag \
7611 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7612 global_symbol_to_c_name_address \
7613 hardcode_libdir_flag_spec hardcode_libdir_separator \
7614 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7615 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7618 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7619 old_postinstall_cmds | old_postuninstall_cmds | \
7620 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7621 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7622 postinstall_cmds | postuninstall_cmds | \
7623 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7624 # Double-quote double-evaled strings.
7625 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7628 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7633 cat <<__EOF__ > "${ofile}T"
7636 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7637 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7638 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7640 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7641 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7643 # This program is free software; you can redistribute it and/or modify
7644 # it under the terms of the GNU General Public License as published by
7645 # the Free Software Foundation; either version 2 of the License, or
7646 # (at your option) any later version.
7648 # This program is distributed in the hope that it will be useful, but
7649 # WITHOUT ANY WARRANTY; without even the implied warranty of
7650 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7651 # General Public License for more details.
7653 # You should have received a copy of the GNU General Public License
7654 # along with this program; if not, write to the Free Software
7655 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7657 # As a special exception to the GNU General Public License, if you
7658 # distribute this file as part of a program that contains a
7659 # configuration script generated by Autoconf, you may include it under
7660 # the same distribution terms that you use for the rest of that program.
7662 # A sed that does not truncate output.
7665 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7666 Xsed="${SED} -e s/^X//"
7668 # The HP-UX ksh and POSIX shell print the target directory to stdout
7670 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7672 # ### BEGIN LIBTOOL CONFIG
7674 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7676 # Shell to use when invoking shell scripts.
7679 # Whether or not to build shared libraries.
7680 build_libtool_libs=$enable_shared
7682 # Whether or not to build static libraries.
7683 build_old_libs=$enable_static
7685 # Whether or not to add -lc for building shared libraries.
7686 build_libtool_need_lc=$need_lc
7688 # Whether or not to optimize for fast installation.
7689 fast_install=$enable_fast_install
7692 host_alias=$host_alias
7695 # An echo program that does not interpret backslashes.
7700 AR_FLAGS=$lt_AR_FLAGS
7702 # The default C compiler.
7705 # Is the compiler the GNU C compiler?
7708 # The linker used to build libraries.
7711 # Whether we need hard or soft links.
7714 # A BSD-compatible nm program.
7717 # A symbol stripping program
7720 # Used to examine libraries when file_magic_cmd begins "file"
7721 MAGIC_CMD=$MAGIC_CMD
7723 # Used on cygwin: DLL creation program.
7726 # Used on cygwin: object dumper.
7729 # Used on cygwin: assembler.
7732 # The name of the directory that contains temporary libtool files.
7735 # How to create reloadable object files.
7736 reload_flag=$lt_reload_flag
7737 reload_cmds=$lt_reload_cmds
7739 # How to pass a linker flag through the compiler.
7742 # Object file suffix (normally "o").
7745 # Old archive suffix (normally "a").
7748 # Executable file suffix (normally "").
7751 # Additional compiler flags for building library objects.
7752 pic_flag=$lt_pic_flag
7755 # Does compiler simultaneously support -c and -o options?
7756 compiler_c_o=$lt_compiler_c_o
7758 # Can we write directly to a .lo ?
7759 compiler_o_lo=$lt_compiler_o_lo
7761 # Must we lock files when doing compilation ?
7762 need_locks=$lt_need_locks
7764 # Do we need the lib prefix for modules?
7765 need_lib_prefix=$need_lib_prefix
7767 # Do we need a version for libraries?
7768 need_version=$need_version
7770 # Whether dlopen is supported.
7771 dlopen_support=$enable_dlopen
7773 # Whether dlopen of programs is supported.
7774 dlopen_self=$enable_dlopen_self
7776 # Whether dlopen of statically linked programs is supported.
7777 dlopen_self_static=$enable_dlopen_self_static
7779 # Compiler flag to prevent dynamic linking.
7780 link_static_flag=$lt_link_static_flag
7782 # Compiler flag to turn off builtin functions.
7783 no_builtin_flag=$lt_no_builtin_flag
7785 # Compiler flag to allow reflexive dlopens.
7786 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7788 # Compiler flag to generate shared objects directly from archives.
7789 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7791 # Compiler flag to generate thread-safe objects.
7792 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7794 # Library versioning type.
7795 version_type=$version_type
7797 # Format of library name prefix.
7798 libname_spec=$lt_libname_spec
7800 # List of archive names. First name is the real one, the rest are links.
7801 # The last name is the one that the linker finds with -lNAME.
7802 library_names_spec=$lt_library_names_spec
7804 # The coded name of the library, if different from the real name.
7805 soname_spec=$lt_soname_spec
7807 # Commands used to build and install an old-style archive.
7809 old_archive_cmds=$lt_old_archive_cmds
7810 old_postinstall_cmds=$lt_old_postinstall_cmds
7811 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7813 # Create an old-style archive from a shared archive.
7814 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7816 # Create a temporary old-style archive to link instead of a shared archive.
7817 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7819 # Commands used to build and install a shared archive.
7820 archive_cmds=$lt_archive_cmds
7821 archive_expsym_cmds=$lt_archive_expsym_cmds
7822 postinstall_cmds=$lt_postinstall_cmds
7823 postuninstall_cmds=$lt_postuninstall_cmds
7825 # Commands to strip libraries.
7826 old_striplib=$lt_old_striplib
7827 striplib=$lt_striplib
7829 # Method to check whether dependent libraries are shared objects.
7830 deplibs_check_method=$lt_deplibs_check_method
7832 # Command to use when deplibs_check_method == file_magic.
7833 file_magic_cmd=$lt_file_magic_cmd
7835 # Flag that allows shared libraries with undefined symbols to be built.
7836 allow_undefined_flag=$lt_allow_undefined_flag
7838 # Flag that forces no undefined symbols.
7839 no_undefined_flag=$lt_no_undefined_flag
7841 # Commands used to finish a libtool library installation in a directory.
7842 finish_cmds=$lt_finish_cmds
7844 # Same as above, but a single script fragment to be evaled but not shown.
7845 finish_eval=$lt_finish_eval
7847 # Take the output of nm and produce a listing of raw symbols and C names.
7848 global_symbol_pipe=$lt_global_symbol_pipe
7850 # Transform the output of nm in a proper C declaration
7851 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7853 # Transform the output of nm in a C name address pair
7854 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7856 # This is the shared library runtime path variable.
7857 runpath_var=$runpath_var
7859 # This is the shared library path variable.
7860 shlibpath_var=$shlibpath_var
7862 # Is shlibpath searched before the hard-coded library search path?
7863 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7865 # How to hardcode a shared library path into an executable.
7866 hardcode_action=$hardcode_action
7868 # Whether we should hardcode library paths into libraries.
7869 hardcode_into_libs=$hardcode_into_libs
7871 # Flag to hardcode \$libdir into a binary during linking.
7872 # This must work even if \$libdir does not exist.
7873 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7875 # Whether we need a single -rpath flag with a separated argument.
7876 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7878 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7880 hardcode_direct=$hardcode_direct
7882 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7884 hardcode_minus_L=$hardcode_minus_L
7886 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7887 # the resulting binary.
7888 hardcode_shlibpath_var=$hardcode_shlibpath_var
7890 # Variables whose values should be saved in libtool wrapper scripts and
7891 # restored at relink time.
7892 variables_saved_for_relink="$variables_saved_for_relink"
7894 # Whether libtool must link a program against all its dependency libraries.
7895 link_all_deplibs=$link_all_deplibs
7897 # Compile-time system search path for libraries
7898 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7900 # Run-time system search path for libraries
7901 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7903 # Fix the shell variable \$srcfile for the compiler.
7904 fix_srcfile_path="$fix_srcfile_path"
7906 # Set to yes if exported symbols are required.
7907 always_export_symbols=$always_export_symbols
7909 # The commands to list exported symbols.
7910 export_symbols_cmds=$lt_export_symbols_cmds
7912 # The commands to extract the exported symbol list from a shared archive.
7913 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7915 # Symbols that should not be listed in the preloaded symbols.
7916 exclude_expsyms=$lt_exclude_expsyms
7918 # Symbols that must always be exported.
7919 include_expsyms=$lt_include_expsyms
7921 # ### END LIBTOOL CONFIG
7927 cat <<\EOF >> "${ofile}T"
7929 # AIX sometimes has problems with the GCC collect2 program. For some
7930 # reason, if we set the COLLECT_NAMES environment variable, the problems
7931 # vanish in a puff of smoke.
7932 if test "X${COLLECT_NAMES+set}" != Xset; then
7934 export COLLECT_NAMES
7941 cygwin* | mingw* | pw32* | os2*)
7942 cat <<'EOF' >> "${ofile}T"
7943 # This is a source program that is used to create dlls on Windows
7944 # Don't remove nor modify the starting and closing comments
7945 # /* ltdll.c starts here */
7946 # #define WIN32_LEAN_AND_MEAN
7947 # #include <windows.h>
7948 # #undef WIN32_LEAN_AND_MEAN
7949 # #include <stdio.h>
7951 # #ifndef __CYGWIN__
7952 # # ifdef __CYGWIN32__
7953 # # define __CYGWIN__ __CYGWIN32__
7957 # #ifdef __cplusplus
7960 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7961 # #ifdef __cplusplus
7966 # #include <cygwin/cygwin_dll.h>
7967 # DECLARE_CYGWIN_DLL( DllMain );
7969 # HINSTANCE __hDllInstance_base;
7972 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7974 # __hDllInstance_base = hInst;
7977 # /* ltdll.c ends here */
7978 # This is a source program that is used to create import libraries
7979 # on Windows for dlls which lack them. Don't remove nor modify the
7980 # starting and closing comments
7981 # /* impgen.c starts here */
7982 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7984 # This file is part of GNU libtool.
7986 # This program is free software; you can redistribute it and/or modify
7987 # it under the terms of the GNU General Public License as published by
7988 # the Free Software Foundation; either version 2 of the License, or
7989 # (at your option) any later version.
7991 # This program is distributed in the hope that it will be useful,
7992 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7993 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7994 # GNU General Public License for more details.
7996 # You should have received a copy of the GNU General Public License
7997 # along with this program; if not, write to the Free Software
7998 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8001 # #include <stdio.h> /* for printf() */
8002 # #include <unistd.h> /* for open(), lseek(), read() */
8003 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8004 # #include <string.h> /* for strdup() */
8006 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8008 # #define O_BINARY 0
8011 # static unsigned int
8012 # pe_get16 (fd, offset)
8016 # unsigned char b[2];
8017 # lseek (fd, offset, SEEK_SET);
8019 # return b[0] + (b[1]<<8);
8022 # static unsigned int
8023 # pe_get32 (fd, offset)
8027 # unsigned char b[4];
8028 # lseek (fd, offset, SEEK_SET);
8030 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8033 # static unsigned int
8037 # unsigned char *b = ptr;
8038 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8047 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8048 # unsigned long export_rva, export_size, nsections, secptr, expptr;
8049 # unsigned long name_rvas, nexp;
8050 # unsigned char *expdata, *erva;
8051 # char *filename, *dll_name;
8053 # filename = argv[1];
8055 # dll = open(filename, O_RDONLY|O_BINARY);
8059 # dll_name = filename;
8061 # for (i=0; filename[i]; i++)
8062 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8063 # dll_name = filename + i +1;
8065 # pe_header_offset = pe_get32 (dll, 0x3c);
8066 # opthdr_ofs = pe_header_offset + 4 + 20;
8067 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
8069 # if (num_entries < 1) /* no exports */
8072 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
8073 # export_size = pe_get32 (dll, opthdr_ofs + 100);
8074 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8075 # secptr = (pe_header_offset + 4 + 20 +
8076 # pe_get16 (dll, pe_header_offset + 4 + 16));
8079 # for (i = 0; i < nsections; i++)
8082 # unsigned long secptr1 = secptr + 40 * i;
8083 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8084 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8085 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8086 # lseek(dll, secptr1, SEEK_SET);
8087 # read(dll, sname, 8);
8088 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8090 # expptr = fptr + (export_rva - vaddr);
8091 # if (export_rva + export_size > vaddr + vsize)
8092 # export_size = vsize - (export_rva - vaddr);
8097 # expdata = (unsigned char*)malloc(export_size);
8098 # lseek (dll, expptr, SEEK_SET);
8099 # read (dll, expdata, export_size);
8100 # erva = expdata - export_rva;
8102 # nexp = pe_as32 (expdata+24);
8103 # name_rvas = pe_as32 (expdata+32);
8105 # printf ("EXPORTS\n");
8106 # for (i = 0; i<nexp; i++)
8108 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8109 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8114 # /* impgen.c ends here */
8120 # We use sed instead of cat because bash on DJGPP gets confused if
8121 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8122 # text mode, it properly converts lines to CR/LF. This bash problem
8123 # is reportedly fixed, but why not run on old versions too?
8124 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8126 mv -f "${ofile}T" "$ofile" || \
8127 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8135 # This can be used to rebuild libtool when needed
8136 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8138 # Always use our own libtool.
8139 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8141 # Prevent multiple expansion
8144 for ac_prog in gzip uncompress compress
8146 # Extract the first word of "$ac_prog", so it can be a program name with args.
8147 set dummy $ac_prog; ac_word=$2
8148 echo "$as_me:$LINENO: checking for $ac_word" >&5
8149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8150 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
8151 echo $ECHO_N "(cached) $ECHO_C" >&6
8153 if test -n "$UNCOMPRESS"; then
8154 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
8156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8160 test -z "$as_dir" && as_dir=.
8161 for ac_exec_ext in '' $ac_executable_extensions; do
8162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8163 ac_cv_prog_UNCOMPRESS="$ac_prog"
8164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8172 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
8173 if test -n "$UNCOMPRESS"; then
8174 echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
8175 echo "${ECHO_T}$UNCOMPRESS" >&6
8177 echo "$as_me:$LINENO: result: no" >&5
8178 echo "${ECHO_T}no" >&6
8181 test -n "$UNCOMPRESS" && break
8191 echo "$as_me:$LINENO: checking for target system" >&5
8192 echo $ECHO_N "checking for target system... $ECHO_C" >&6
8196 *cygwin* ) CYGWIN=yes;;
8197 *mingw* ) MINGW=yes;;
8201 if test "x$MINGW" = "xyes"; then
8202 #fix for the debian distribution of mingw
8203 if test -x "/usr/i586-mingw32msvc/bin/ar";then
8204 AR="/usr/i586-mingw32msvc/bin/ar"
8206 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
8207 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
8209 #fix for the gentoo distribution of mingw
8210 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
8211 AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
8213 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
8214 RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
8216 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
8217 STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
8223 if test "x${CYGWIN}" = "xyes"; then
8224 cat >>confdefs.h <<_ACEOF
8228 echo "$as_me:$LINENO: result: cygwin" >&5
8229 echo "${ECHO_T}cygwin" >&6
8231 if test "x${MINGW}" = "xyes"; then
8232 cat >>confdefs.h <<_ACEOF
8237 cat >>confdefs.h <<_ACEOF
8241 LIBS="$LIBS -lws2_32"
8242 echo "$as_me:$LINENO: result: mingw" >&5
8243 echo "${ECHO_T}mingw" >&6
8247 cat >>confdefs.h <<_ACEOF
8251 echo "$as_me:$LINENO: result: " >&5
8252 echo "${ECHO_T}" >&6
8257 if test "x${MINGW}" != "xyes"; then
8258 cat >>confdefs.h <<_ACEOF
8263 # The following tries to make use of includes and libraries in
8264 # /usr/local, too. Notice: A -I/usr/local/include might break
8265 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
8266 # especially on systems which link /usr/local to /usr, so it has yet
8267 # to be seen how useful this is.
8268 if test -d /usr/local/lib; then
8269 LDFLAGS="$LDFLAGS -L/usr/local/lib"
8271 if test -d /usr/local/include; then
8272 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
8273 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
8276 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
8277 # if the user has a special prefix (like /opt), there might also be $prefix/lib
8278 # and $prefix/include, which should be included in our search paths for libraries
8280 LDFLAGS="$LDFLAGS -L${libdir}"
8281 CPPFLAGS="$CPPFLAGS -I${includedir}"
8282 # TODO- test whether gcc still works after this
8285 # this must be done after (I believe) AC_PROG_MAKE_SET
8286 if test "x$DEBUG" '!=' "x";then
8287 STRIP="@echo debug enabled, not stripping "
8293 echo "$as_me:$LINENO: checking for sin in -lm" >&5
8294 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8295 if test "${ac_cv_lib_m_sin+set}" = set; then
8296 echo $ECHO_N "(cached) $ECHO_C" >&6
8298 ac_check_lib_save_LIBS=$LIBS
8300 cat >conftest.$ac_ext <<_ACEOF
8303 cat confdefs.h >>conftest.$ac_ext
8304 cat >>conftest.$ac_ext <<_ACEOF
8305 /* end confdefs.h. */
8307 /* Override any gcc2 internal prototype to avoid an error. */
8311 /* We use char because int might match the return type of a gcc2
8312 builtin and then its argument prototype would still apply. */
8322 rm -f conftest.$ac_objext conftest$ac_exeext
8323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8324 (eval $ac_link) 2>conftest.er1
8326 grep -v '^ *+' conftest.er1 >conftest.err
8328 cat conftest.err >&5
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); } &&
8331 { ac_try='test -z "$ac_c_werror_flag"
8332 || test ! -s conftest.err'
8333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); }; } &&
8338 { ac_try='test -s conftest$ac_exeext'
8339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); }; }; then
8346 echo "$as_me: failed program was:" >&5
8347 sed 's/^/| /' conftest.$ac_ext >&5
8351 rm -f conftest.err conftest.$ac_objext \
8352 conftest$ac_exeext conftest.$ac_ext
8353 LIBS=$ac_check_lib_save_LIBS
8355 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8356 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8357 if test $ac_cv_lib_m_sin = yes; then
8358 cat >>confdefs.h <<_ACEOF
8365 echo "Error: Math library not found.";
8371 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
8372 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
8373 if test "${ac_cv_lib_z_deflate+set}" = set; then
8374 echo $ECHO_N "(cached) $ECHO_C" >&6
8376 ac_check_lib_save_LIBS=$LIBS
8378 cat >conftest.$ac_ext <<_ACEOF
8381 cat confdefs.h >>conftest.$ac_ext
8382 cat >>conftest.$ac_ext <<_ACEOF
8383 /* end confdefs.h. */
8385 /* Override any gcc2 internal prototype to avoid an error. */
8389 /* We use char because int might match the return type of a gcc2
8390 builtin and then its argument prototype would still apply. */
8400 rm -f conftest.$ac_objext conftest$ac_exeext
8401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8402 (eval $ac_link) 2>conftest.er1
8404 grep -v '^ *+' conftest.er1 >conftest.err
8406 cat conftest.err >&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); } &&
8409 { ac_try='test -z "$ac_c_werror_flag"
8410 || test ! -s conftest.err'
8411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; } &&
8416 { ac_try='test -s conftest$ac_exeext'
8417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); }; }; then
8422 ac_cv_lib_z_deflate=yes
8424 echo "$as_me: failed program was:" >&5
8425 sed 's/^/| /' conftest.$ac_ext >&5
8427 ac_cv_lib_z_deflate=no
8429 rm -f conftest.err conftest.$ac_objext \
8430 conftest$ac_exeext conftest.$ac_ext
8431 LIBS=$ac_check_lib_save_LIBS
8433 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
8434 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
8435 if test $ac_cv_lib_z_deflate = yes; then
8436 cat >>confdefs.h <<_ACEOF
8443 DISABLEPNG2SWF=true;
8444 MISSINGLIBS="${MISSINGLIBS} zlib"
8450 echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
8451 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6
8452 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
8453 echo $ECHO_N "(cached) $ECHO_C" >&6
8455 ac_check_lib_save_LIBS=$LIBS
8457 cat >conftest.$ac_ext <<_ACEOF
8460 cat confdefs.h >>conftest.$ac_ext
8461 cat >>conftest.$ac_ext <<_ACEOF
8462 /* end confdefs.h. */
8464 /* Override any gcc2 internal prototype to avoid an error. */
8468 /* We use char because int might match the return type of a gcc2
8469 builtin and then its argument prototype would still apply. */
8470 char jpeg_write_raw_data ();
8474 jpeg_write_raw_data ();
8479 rm -f conftest.$ac_objext conftest$ac_exeext
8480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8481 (eval $ac_link) 2>conftest.er1
8483 grep -v '^ *+' conftest.er1 >conftest.err
8485 cat conftest.err >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } &&
8488 { ac_try='test -z "$ac_c_werror_flag"
8489 || test ! -s conftest.err'
8490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); }; } &&
8495 { ac_try='test -s conftest$ac_exeext'
8496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); }; }; then
8501 ac_cv_lib_jpeg_jpeg_write_raw_data=yes
8503 echo "$as_me: failed program was:" >&5
8504 sed 's/^/| /' conftest.$ac_ext >&5
8506 ac_cv_lib_jpeg_jpeg_write_raw_data=no
8508 rm -f conftest.err conftest.$ac_objext \
8509 conftest$ac_exeext conftest.$ac_ext
8510 LIBS=$ac_check_lib_save_LIBS
8512 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
8513 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6
8514 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
8515 cat >>confdefs.h <<_ACEOF
8516 #define HAVE_LIBJPEG 1
8522 DISABLEPDF2SWF=true;
8523 DISABLEJPEG2SWF=true;
8524 MISSINGLIBS="${MISSINGLIBS} jpeglib"
8529 echo "$as_me:$LINENO: checking for T1_LoadFont in -lt1" >&5
8530 echo $ECHO_N "checking for T1_LoadFont in -lt1... $ECHO_C" >&6
8531 if test "${ac_cv_lib_t1_T1_LoadFont+set}" = set; then
8532 echo $ECHO_N "(cached) $ECHO_C" >&6
8534 ac_check_lib_save_LIBS=$LIBS
8536 cat >conftest.$ac_ext <<_ACEOF
8539 cat confdefs.h >>conftest.$ac_ext
8540 cat >>conftest.$ac_ext <<_ACEOF
8541 /* end confdefs.h. */
8543 /* Override any gcc2 internal prototype to avoid an error. */
8547 /* We use char because int might match the return type of a gcc2
8548 builtin and then its argument prototype would still apply. */
8549 char T1_LoadFont ();
8558 rm -f conftest.$ac_objext conftest$ac_exeext
8559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8560 (eval $ac_link) 2>conftest.er1
8562 grep -v '^ *+' conftest.er1 >conftest.err
8564 cat conftest.err >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); } &&
8567 { ac_try='test -z "$ac_c_werror_flag"
8568 || test ! -s conftest.err'
8569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); }; } &&
8574 { ac_try='test -s conftest$ac_exeext'
8575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); }; }; then
8580 ac_cv_lib_t1_T1_LoadFont=yes
8582 echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8585 ac_cv_lib_t1_T1_LoadFont=no
8587 rm -f conftest.err conftest.$ac_objext \
8588 conftest$ac_exeext conftest.$ac_ext
8589 LIBS=$ac_check_lib_save_LIBS
8591 echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_LoadFont" >&5
8592 echo "${ECHO_T}$ac_cv_lib_t1_T1_LoadFont" >&6
8593 if test $ac_cv_lib_t1_T1_LoadFont = yes; then
8594 cat >>confdefs.h <<_ACEOF
8595 #define HAVE_LIBT1 1
8601 DISABLEPDF2SWF=true;
8602 MISSINGLIBS="${MISSINGLIBS} t1lib"
8608 for ac_prog in freetype-config
8610 # Extract the first word of "$ac_prog", so it can be a program name with args.
8611 set dummy $ac_prog; ac_word=$2
8612 echo "$as_me:$LINENO: checking for $ac_word" >&5
8613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8614 if test "${ac_cv_prog_FREETYPE_CONFIG+set}" = set; then
8615 echo $ECHO_N "(cached) $ECHO_C" >&6
8617 if test -n "$FREETYPE_CONFIG"; then
8618 ac_cv_prog_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test.
8620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8624 test -z "$as_dir" && as_dir=.
8625 for ac_exec_ext in '' $ac_executable_extensions; do
8626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8627 ac_cv_prog_FREETYPE_CONFIG="$ac_prog"
8628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8636 FREETYPE_CONFIG=$ac_cv_prog_FREETYPE_CONFIG
8637 if test -n "$FREETYPE_CONFIG"; then
8638 echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8639 echo "${ECHO_T}$FREETYPE_CONFIG" >&6
8641 echo "$as_me:$LINENO: result: no" >&5
8642 echo "${ECHO_T}no" >&6
8645 test -n "$FREETYPE_CONFIG" && break
8648 OLDCPPFLAGS="${CPPFLAGS}"
8650 if test "x${FREETYPE_CONFIG}" != "x"; then
8651 CPPFLAGS="$CFLAGS "`freetype-config --cflags`
8652 else if test -d /usr/include/freetype2; then
8653 CPPFLAGS="$CFLAGS -I/usr/include/freetype2"
8654 else if test -d /usr/local/include/freetype2; then
8655 CPPFLAGS="$CFLAGS -I/usr/local/include/freetype2"
8659 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8660 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
8661 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8662 echo $ECHO_N "(cached) $ECHO_C" >&6
8664 ac_check_lib_save_LIBS=$LIBS
8665 LIBS="-lfreetype $LIBS"
8666 cat >conftest.$ac_ext <<_ACEOF
8669 cat confdefs.h >>conftest.$ac_ext
8670 cat >>conftest.$ac_ext <<_ACEOF
8671 /* end confdefs.h. */
8673 /* Override any gcc2 internal prototype to avoid an error. */
8677 /* We use char because int might match the return type of a gcc2
8678 builtin and then its argument prototype would still apply. */
8679 char FT_Init_FreeType ();
8683 FT_Init_FreeType ();
8688 rm -f conftest.$ac_objext conftest$ac_exeext
8689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8690 (eval $ac_link) 2>conftest.er1
8692 grep -v '^ *+' conftest.er1 >conftest.err
8694 cat conftest.err >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } &&
8697 { ac_try='test -z "$ac_c_werror_flag"
8698 || test ! -s conftest.err'
8699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); }; } &&
8704 { ac_try='test -s conftest$ac_exeext'
8705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); }; }; then
8710 ac_cv_lib_freetype_FT_Init_FreeType=yes
8712 echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.$ac_ext >&5
8715 ac_cv_lib_freetype_FT_Init_FreeType=no
8717 rm -f conftest.err conftest.$ac_objext \
8718 conftest$ac_exeext conftest.$ac_ext
8719 LIBS=$ac_check_lib_save_LIBS
8721 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8722 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
8723 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8728 for ac_header in freetype/freetype.h
8730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8732 echo "$as_me:$LINENO: checking for $ac_header" >&5
8733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8735 echo $ECHO_N "(cached) $ECHO_C" >&6
8737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8740 # Is the header compilable?
8741 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8742 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8743 cat >conftest.$ac_ext <<_ACEOF
8746 cat confdefs.h >>conftest.$ac_ext
8747 cat >>conftest.$ac_ext <<_ACEOF
8748 /* end confdefs.h. */
8749 $ac_includes_default
8750 #include <$ac_header>
8752 rm -f conftest.$ac_objext
8753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8754 (eval $ac_compile) 2>conftest.er1
8756 grep -v '^ *+' conftest.er1 >conftest.err
8758 cat conftest.err >&5
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); } &&
8761 { ac_try='test -z "$ac_c_werror_flag"
8762 || test ! -s conftest.err'
8763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); }; } &&
8768 { ac_try='test -s conftest.$ac_objext'
8769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); }; }; then
8774 ac_header_compiler=yes
8776 echo "$as_me: failed program was:" >&5
8777 sed 's/^/| /' conftest.$ac_ext >&5
8779 ac_header_compiler=no
8781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8782 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8783 echo "${ECHO_T}$ac_header_compiler" >&6
8785 # Is the header present?
8786 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8787 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8788 cat >conftest.$ac_ext <<_ACEOF
8791 cat confdefs.h >>conftest.$ac_ext
8792 cat >>conftest.$ac_ext <<_ACEOF
8793 /* end confdefs.h. */
8794 #include <$ac_header>
8796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8799 grep -v '^ *+' conftest.er1 >conftest.err
8801 cat conftest.err >&5
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); } >/dev/null; then
8804 if test -s conftest.err; then
8805 ac_cpp_err=$ac_c_preproc_warn_flag
8806 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8813 if test -z "$ac_cpp_err"; then
8814 ac_header_preproc=yes
8816 echo "$as_me: failed program was:" >&5
8817 sed 's/^/| /' conftest.$ac_ext >&5
8819 ac_header_preproc=no
8821 rm -f conftest.err conftest.$ac_ext
8822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8823 echo "${ECHO_T}$ac_header_preproc" >&6
8825 # So? What about this header?
8826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8831 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8832 ac_header_preproc=yes
8835 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8837 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8838 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8839 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8840 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8841 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8842 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8845 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8846 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8849 ## ------------------------------------------ ##
8850 ## Report this to the AC_PACKAGE_NAME lists. ##
8851 ## ------------------------------------------ ##
8854 sed "s/^/$as_me: WARNING: /" >&2
8857 echo "$as_me:$LINENO: checking for $ac_header" >&5
8858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
8862 eval "$as_ac_Header=\$ac_header_preproc"
8864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8869 cat >>confdefs.h <<_ACEOF
8870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8872 HAVE_FREETYPE_FREETYPE_H=1
8877 if test "x${HAVE_LIB_FREETYPE}" != "x";then
8878 if test "x${HAVE_FREETYPE_FREETYPE_H}" != "x";then
8883 if test "x${HAVE_FREETYPE}" = "x1"; then
8884 if test "x{$FREETYPE_CONFIG}" != "x"; then
8885 LIBS="$LIBS "`freetype-config --libs`
8887 LIBS="$LIBS -lfreetype"
8890 echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8891 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6
8893 cat > conftest.c << EOF
8894 #include <freetype/freetype.h>
8895 #include <freetype/ftglyph.h>
8896 #include <freetype/ftsnames.h>
8897 #include <freetype/ttnameid.h>
8898 #include <freetype/ftoutln.h>
8902 FT_Library ftlibrary;
8914 FT_Init_FreeType(&ftlibrary);
8915 FT_New_Face(ftlibrary, "filename", 0, &face);
8916 i = face->num_glyphs - 1;
8917 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
8918 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
8919 FT_Get_Postscript_Name(face);
8920 FT_Get_Char_Index(face, 33);
8921 FT_Get_First_Char(face, &i);
8922 FT_Get_Next_Char(face, 33, &i);
8923 if(FT_HAS_GLYPH_NAMES(face)) {
8924 FT_Get_Glyph_Name(face, 33, name, 127);
8926 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
8927 FT_Get_Glyph(face->glyph, &glyph);
8928 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
8929 FT_Done_Glyph(glyph);
8931 FT_Done_FreeType(ftlibrary);
8936 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LIBS -o conftest${ac_exeext}'
8937 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8938 echo "$as_me:$LINENO: result: yes" >&5
8939 echo "${ECHO_T}yes" >&6
8940 cat >>confdefs.h <<_ACEOF
8941 #define HAVE_FREETYPE 1
8944 cat >>confdefs.h <<_ACEOF
8945 #define USE_FREETYPE 1
8949 echo "configure: failed program was:" >&5
8952 echo "$as_me:$LINENO: result: no" >&5
8953 echo "${ECHO_T}no" >&6
8958 # if the above didn't work out, reset all changes to the compiler variables.
8959 if test "x${HAVE_FREETYPE}" "!=" "x1"; then
8960 CPPFLAGS=$OLDCPPFLAGS
8966 echo "$as_me:$LINENO: checking for byte order" >&5
8967 echo $ECHO_N "checking for byte order... $ECHO_C" >&6
8968 if test "$cross_compiling" = yes; then
8971 cat >conftest.$ac_ext <<_ACEOF
8974 cat confdefs.h >>conftest.$ac_ext
8975 cat >>conftest.$ac_ext <<_ACEOF
8976 /* end confdefs.h. */
8978 int main (int argc, char *argv[])
8985 rm -f conftest$ac_exeext
8986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8987 (eval $ac_link) 2>&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); }; }; then
8998 echo "$as_me: program exited with status $ac_status" >&5
8999 echo "$as_me: failed program was:" >&5
9000 sed 's/^/| /' conftest.$ac_ext >&5
9005 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9009 if test "x${CROSSCOMPILE}" = "x1"; then
9010 echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
9011 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6
9012 echo "$as_me:$LINENO: checking target system type" >&5
9013 echo $ECHO_N "checking target system type... $ECHO_C" >&6
9014 if test "${ac_cv_target+set}" = set; then
9015 echo $ECHO_N "(cached) $ECHO_C" >&6
9017 ac_cv_target_alias=$target_alias
9018 test "x$ac_cv_target_alias" = "x" &&
9019 ac_cv_target_alias=$ac_cv_host_alias
9020 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
9021 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
9022 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
9023 { (exit 1); exit 1; }; }
9026 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
9027 echo "${ECHO_T}$ac_cv_target" >&6
9028 target=$ac_cv_target
9029 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
9030 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
9031 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
9034 # The aliases save the names the user supplied, while $host etc.
9035 # will get canonicalized.
9036 test -n "$target_alias" &&
9037 test "$program_prefix$program_suffix$program_transform_name" = \
9039 program_prefix=${target_alias}-
9040 echo "$as_me:$LINENO: checking for byte order, try 2" >&5
9041 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6
9046 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
9053 if test "x${LITTLEENDIAN}" = "x1"; then
9054 echo "$as_me:$LINENO: result: little endian" >&5
9055 echo "${ECHO_T}little endian" >&6
9059 if test "x${BIGENDIAN}" = "x1"; then
9060 echo "$as_me:$LINENO: result: big endian" >&5
9061 echo "${ECHO_T}big endian" >&6
9064 export WORDS_BIGENDIAN
9065 cat >>confdefs.h <<_ACEOF
9066 #define WORDS_BIGENDIAN 1
9070 if test "x${BYTEORDERCHECKOK}" != "x1"; then
9071 echo "$as_me:$LINENO: result: unknown" >&5
9072 echo "${ECHO_T}unknown" >&6
9073 echo Byte order could not determined.
9079 echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
9080 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6
9081 if test "$cross_compiling" = yes; then
9084 cat >conftest.$ac_ext <<_ACEOF
9087 cat confdefs.h >>conftest.$ac_ext
9088 cat >>conftest.$ac_ext <<_ACEOF
9089 /* end confdefs.h. */
9092 int main (int argc, char*argv[])
9094 return system("test `touch config.tmp2`");
9098 rm -f conftest$ac_exeext
9099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9100 (eval $ac_link) 2>&5
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); }; }; then
9111 echo "$as_me: program exited with status $ac_status" >&5
9112 echo "$as_me: failed program was:" >&5
9113 sed 's/^/| /' conftest.$ac_ext >&5
9116 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9119 if test "x${OK}" = "xOK";then
9120 test -f config.tmp2 || OK=
9123 if test "x${CROSSCOMPILE}" = "x1";then
9126 if test "x${OK}" = "xOK";then
9128 echo "$as_me:$LINENO: result: yes" >&5
9129 echo "${ECHO_T}yes" >&6
9131 export SYSTEM_BACKTICKS
9132 cat >>confdefs.h <<_ACEOF
9133 #define SYSTEM_BACKTICKS 1
9137 echo "$as_me:$LINENO: result: no" >&5
9138 echo "${ECHO_T}no" >&6
9143 test "$program_prefix" != NONE &&
9144 program_transform_name="s,^,$program_prefix,;$program_transform_name"
9145 # Use a double $ so make ignores it.
9146 test "$program_suffix" != NONE &&
9147 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
9148 # Double any \ or $. echo might interpret backslashes.
9149 # By default was `s,x,x', remove it if useless.
9150 cat <<\_ACEOF >conftest.sed
9151 s/[\\$]/&&/g;s/;s,x,x,$//
9153 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
9157 ac_config_headers="$ac_config_headers config.h"
9165 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9166 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9167 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9168 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9170 echo $ECHO_N "(cached) $ECHO_C" >&6
9172 cat >conftest.$ac_ext <<_ACEOF
9175 cat confdefs.h >>conftest.$ac_ext
9176 cat >>conftest.$ac_ext <<_ACEOF
9177 /* end confdefs.h. */
9178 #include <sys/types.h>
9190 rm -f conftest.$ac_objext
9191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9192 (eval $ac_compile) 2>conftest.er1
9194 grep -v '^ *+' conftest.er1 >conftest.err
9196 cat conftest.err >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); } &&
9199 { ac_try='test -z "$ac_c_werror_flag"
9200 || test ! -s conftest.err'
9201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); }; } &&
9206 { ac_try='test -s conftest.$ac_objext'
9207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 (exit $ac_status); }; }; then
9212 eval "$as_ac_Header=yes"
9214 echo "$as_me: failed program was:" >&5
9215 sed 's/^/| /' conftest.$ac_ext >&5
9217 eval "$as_ac_Header=no"
9219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9224 cat >>confdefs.h <<_ACEOF
9225 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9228 ac_header_dirent=$ac_hdr; break
9232 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9233 if test $ac_header_dirent = dirent.h; then
9234 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9235 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9236 if test "${ac_cv_search_opendir+set}" = set; then
9237 echo $ECHO_N "(cached) $ECHO_C" >&6
9239 ac_func_search_save_LIBS=$LIBS
9240 ac_cv_search_opendir=no
9241 cat >conftest.$ac_ext <<_ACEOF
9244 cat confdefs.h >>conftest.$ac_ext
9245 cat >>conftest.$ac_ext <<_ACEOF
9246 /* end confdefs.h. */
9248 /* Override any gcc2 internal prototype to avoid an error. */
9252 /* We use char because int might match the return type of a gcc2
9253 builtin and then its argument prototype would still apply. */
9263 rm -f conftest.$ac_objext conftest$ac_exeext
9264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9265 (eval $ac_link) 2>conftest.er1
9267 grep -v '^ *+' conftest.er1 >conftest.err
9269 cat conftest.err >&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); } &&
9272 { ac_try='test -z "$ac_c_werror_flag"
9273 || test ! -s conftest.err'
9274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); }; } &&
9279 { ac_try='test -s conftest$ac_exeext'
9280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); }; }; then
9285 ac_cv_search_opendir="none required"
9287 echo "$as_me: failed program was:" >&5
9288 sed 's/^/| /' conftest.$ac_ext >&5
9291 rm -f conftest.err conftest.$ac_objext \
9292 conftest$ac_exeext conftest.$ac_ext
9293 if test "$ac_cv_search_opendir" = no; then
9294 for ac_lib in dir; do
9295 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9296 cat >conftest.$ac_ext <<_ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h. */
9303 /* Override any gcc2 internal prototype to avoid an error. */
9307 /* We use char because int might match the return type of a gcc2
9308 builtin and then its argument prototype would still apply. */
9318 rm -f conftest.$ac_objext conftest$ac_exeext
9319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9320 (eval $ac_link) 2>conftest.er1
9322 grep -v '^ *+' conftest.er1 >conftest.err
9324 cat conftest.err >&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); } &&
9327 { ac_try='test -z "$ac_c_werror_flag"
9328 || test ! -s conftest.err'
9329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); }; } &&
9334 { ac_try='test -s conftest$ac_exeext'
9335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); }; }; then
9340 ac_cv_search_opendir="-l$ac_lib"
9343 echo "$as_me: failed program was:" >&5
9344 sed 's/^/| /' conftest.$ac_ext >&5
9347 rm -f conftest.err conftest.$ac_objext \
9348 conftest$ac_exeext conftest.$ac_ext
9351 LIBS=$ac_func_search_save_LIBS
9353 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9354 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9355 if test "$ac_cv_search_opendir" != no; then
9356 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9361 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9362 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9363 if test "${ac_cv_search_opendir+set}" = set; then
9364 echo $ECHO_N "(cached) $ECHO_C" >&6
9366 ac_func_search_save_LIBS=$LIBS
9367 ac_cv_search_opendir=no
9368 cat >conftest.$ac_ext <<_ACEOF
9371 cat confdefs.h >>conftest.$ac_ext
9372 cat >>conftest.$ac_ext <<_ACEOF
9373 /* end confdefs.h. */
9375 /* Override any gcc2 internal prototype to avoid an error. */
9379 /* We use char because int might match the return type of a gcc2
9380 builtin and then its argument prototype would still apply. */
9390 rm -f conftest.$ac_objext conftest$ac_exeext
9391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9392 (eval $ac_link) 2>conftest.er1
9394 grep -v '^ *+' conftest.er1 >conftest.err
9396 cat conftest.err >&5
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); } &&
9399 { ac_try='test -z "$ac_c_werror_flag"
9400 || test ! -s conftest.err'
9401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); }; } &&
9406 { ac_try='test -s conftest$ac_exeext'
9407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); }; }; then
9412 ac_cv_search_opendir="none required"
9414 echo "$as_me: failed program was:" >&5
9415 sed 's/^/| /' conftest.$ac_ext >&5
9418 rm -f conftest.err conftest.$ac_objext \
9419 conftest$ac_exeext conftest.$ac_ext
9420 if test "$ac_cv_search_opendir" = no; then
9422 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9423 cat >conftest.$ac_ext <<_ACEOF
9426 cat confdefs.h >>conftest.$ac_ext
9427 cat >>conftest.$ac_ext <<_ACEOF
9428 /* end confdefs.h. */
9430 /* Override any gcc2 internal prototype to avoid an error. */
9434 /* We use char because int might match the return type of a gcc2
9435 builtin and then its argument prototype would still apply. */
9445 rm -f conftest.$ac_objext conftest$ac_exeext
9446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9447 (eval $ac_link) 2>conftest.er1
9449 grep -v '^ *+' conftest.er1 >conftest.err
9451 cat conftest.err >&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); } &&
9454 { ac_try='test -z "$ac_c_werror_flag"
9455 || test ! -s conftest.err'
9456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); }; } &&
9461 { ac_try='test -s conftest$ac_exeext'
9462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); }; }; then
9467 ac_cv_search_opendir="-l$ac_lib"
9470 echo "$as_me: failed program was:" >&5
9471 sed 's/^/| /' conftest.$ac_ext >&5
9474 rm -f conftest.err conftest.$ac_objext \
9475 conftest$ac_exeext conftest.$ac_ext
9478 LIBS=$ac_func_search_save_LIBS
9480 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9481 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9482 if test "$ac_cv_search_opendir" != no; then
9483 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9489 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9490 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9491 if test "${ac_cv_header_stdc+set}" = set; then
9492 echo $ECHO_N "(cached) $ECHO_C" >&6
9494 cat >conftest.$ac_ext <<_ACEOF
9497 cat confdefs.h >>conftest.$ac_ext
9498 cat >>conftest.$ac_ext <<_ACEOF
9499 /* end confdefs.h. */
9513 rm -f conftest.$ac_objext
9514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9515 (eval $ac_compile) 2>conftest.er1
9517 grep -v '^ *+' conftest.er1 >conftest.err
9519 cat conftest.err >&5
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); } &&
9522 { ac_try='test -z "$ac_c_werror_flag"
9523 || test ! -s conftest.err'
9524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); }; } &&
9529 { ac_try='test -s conftest.$ac_objext'
9530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); }; }; then
9535 ac_cv_header_stdc=yes
9537 echo "$as_me: failed program was:" >&5
9538 sed 's/^/| /' conftest.$ac_ext >&5
9540 ac_cv_header_stdc=no
9542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9544 if test $ac_cv_header_stdc = yes; then
9545 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9546 cat >conftest.$ac_ext <<_ACEOF
9549 cat confdefs.h >>conftest.$ac_ext
9550 cat >>conftest.$ac_ext <<_ACEOF
9551 /* end confdefs.h. */
9555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9556 $EGREP "memchr" >/dev/null 2>&1; then
9559 ac_cv_header_stdc=no
9565 if test $ac_cv_header_stdc = yes; then
9566 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9567 cat >conftest.$ac_ext <<_ACEOF
9570 cat confdefs.h >>conftest.$ac_ext
9571 cat >>conftest.$ac_ext <<_ACEOF
9572 /* end confdefs.h. */
9576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9577 $EGREP "free" >/dev/null 2>&1; then
9580 ac_cv_header_stdc=no
9586 if test $ac_cv_header_stdc = yes; then
9587 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9588 if test "$cross_compiling" = yes; then
9591 cat >conftest.$ac_ext <<_ACEOF
9594 cat confdefs.h >>conftest.$ac_ext
9595 cat >>conftest.$ac_ext <<_ACEOF
9596 /* end confdefs.h. */
9598 #if ((' ' & 0x0FF) == 0x020)
9599 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9600 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9602 # define ISLOWER(c) \
9603 (('a' <= (c) && (c) <= 'i') \
9604 || ('j' <= (c) && (c) <= 'r') \
9605 || ('s' <= (c) && (c) <= 'z'))
9606 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9609 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9614 for (i = 0; i < 256; i++)
9615 if (XOR (islower (i), ISLOWER (i))
9616 || toupper (i) != TOUPPER (i))
9621 rm -f conftest$ac_exeext
9622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9623 (eval $ac_link) 2>&5
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); }; }; then
9634 echo "$as_me: program exited with status $ac_status" >&5
9635 echo "$as_me: failed program was:" >&5
9636 sed 's/^/| /' conftest.$ac_ext >&5
9639 ac_cv_header_stdc=no
9641 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9645 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9646 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9647 if test $ac_cv_header_stdc = yes; then
9649 cat >>confdefs.h <<\_ACEOF
9650 #define STDC_HEADERS 1
9669 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
9671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9673 echo "$as_me:$LINENO: checking for $ac_header" >&5
9674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9676 echo $ECHO_N "(cached) $ECHO_C" >&6
9678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9681 # Is the header compilable?
9682 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9684 cat >conftest.$ac_ext <<_ACEOF
9687 cat confdefs.h >>conftest.$ac_ext
9688 cat >>conftest.$ac_ext <<_ACEOF
9689 /* end confdefs.h. */
9690 $ac_includes_default
9691 #include <$ac_header>
9693 rm -f conftest.$ac_objext
9694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9695 (eval $ac_compile) 2>conftest.er1
9697 grep -v '^ *+' conftest.er1 >conftest.err
9699 cat conftest.err >&5
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); } &&
9702 { ac_try='test -z "$ac_c_werror_flag"
9703 || test ! -s conftest.err'
9704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); }; } &&
9709 { ac_try='test -s conftest.$ac_objext'
9710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); }; }; then
9715 ac_header_compiler=yes
9717 echo "$as_me: failed program was:" >&5
9718 sed 's/^/| /' conftest.$ac_ext >&5
9720 ac_header_compiler=no
9722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9723 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9724 echo "${ECHO_T}$ac_header_compiler" >&6
9726 # Is the header present?
9727 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9728 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9729 cat >conftest.$ac_ext <<_ACEOF
9732 cat confdefs.h >>conftest.$ac_ext
9733 cat >>conftest.$ac_ext <<_ACEOF
9734 /* end confdefs.h. */
9735 #include <$ac_header>
9737 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9738 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9740 grep -v '^ *+' conftest.er1 >conftest.err
9742 cat conftest.err >&5
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); } >/dev/null; then
9745 if test -s conftest.err; then
9746 ac_cpp_err=$ac_c_preproc_warn_flag
9747 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9754 if test -z "$ac_cpp_err"; then
9755 ac_header_preproc=yes
9757 echo "$as_me: failed program was:" >&5
9758 sed 's/^/| /' conftest.$ac_ext >&5
9760 ac_header_preproc=no
9762 rm -f conftest.err conftest.$ac_ext
9763 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9764 echo "${ECHO_T}$ac_header_preproc" >&6
9766 # So? What about this header?
9767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9769 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9773 ac_header_preproc=yes
9776 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9778 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9779 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9780 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9781 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9782 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9783 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9786 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9787 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9790 ## ------------------------------------------ ##
9791 ## Report this to the AC_PACKAGE_NAME lists. ##
9792 ## ------------------------------------------ ##
9795 sed "s/^/$as_me: WARNING: /" >&2
9798 echo "$as_me:$LINENO: checking for $ac_header" >&5
9799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9801 echo $ECHO_N "(cached) $ECHO_C" >&6
9803 eval "$as_ac_Header=\$ac_header_preproc"
9805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9810 cat >>confdefs.h <<_ACEOF
9811 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9819 if test "x${ac_cv_header_jpeglib_h}" != "xyes"; then
9820 DISABLEPDF2SWF=true;
9821 DISABLEJPEG2SWF=true;
9822 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
9824 if test "x${ac_cv_header_t1lib_h}" != "xyes"; then
9825 DISABLEPDF2SWF=true;
9826 MISSINGLIBS="${MISSINGLIBS} t1lib.h"
9828 if test "x${ac_cv_header_zlib_h}" != "xyes"; then
9829 DISABLEPNG2SWF=true;
9830 MISSINGLIBS="${MISSINGLIBS} zlib.h"
9834 cat >>confdefs.h <<_ACEOF
9835 #define PACKAGE "$PACKAGE"
9838 cat >>confdefs.h <<_ACEOF
9839 #define VERSION "$VERSION"
9848 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9849 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9850 if test "${ac_cv_c_const+set}" = set; then
9851 echo $ECHO_N "(cached) $ECHO_C" >&6
9853 cat >conftest.$ac_ext <<_ACEOF
9856 cat confdefs.h >>conftest.$ac_ext
9857 cat >>conftest.$ac_ext <<_ACEOF
9858 /* end confdefs.h. */
9863 /* FIXME: Include the comments suggested by Paul. */
9865 /* Ultrix mips cc rejects this. */
9866 typedef int charset[2];
9868 /* SunOS 4.1.1 cc rejects this. */
9869 char const *const *ccp;
9871 /* NEC SVR4.0.2 mips cc rejects this. */
9872 struct point {int x, y;};
9873 static struct point const zero = {0,0};
9874 /* AIX XL C 1.02.0.0 rejects this.
9875 It does not let you subtract one const X* pointer from another in
9876 an arm of an if-expression whose if-part is not a constant
9878 const char *g = "string";
9879 ccp = &g + (g ? g-g : 0);
9880 /* HPUX 7.0 cc rejects these. */
9883 ccp = (char const *const *) p;
9884 { /* SCO 3.2v4 cc rejects this. */
9886 char const *s = 0 ? (char *) 0 : (char const *) 0;
9890 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9892 const int *foo = &x[0];
9895 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9896 typedef const int *iptr;
9900 { /* AIX XL C 1.02.0.0 rejects this saying
9901 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9902 struct s { int j; const int *ap[3]; };
9903 struct s *b; b->j = 5;
9905 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9914 rm -f conftest.$ac_objext
9915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9916 (eval $ac_compile) 2>conftest.er1
9918 grep -v '^ *+' conftest.er1 >conftest.err
9920 cat conftest.err >&5
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); } &&
9923 { ac_try='test -z "$ac_c_werror_flag"
9924 || test ! -s conftest.err'
9925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 (exit $ac_status); }; } &&
9930 { ac_try='test -s conftest.$ac_objext'
9931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); }; }; then
9938 echo "$as_me: failed program was:" >&5
9939 sed 's/^/| /' conftest.$ac_ext >&5
9943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9945 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9946 echo "${ECHO_T}$ac_cv_c_const" >&6
9947 if test $ac_cv_c_const = no; then
9949 cat >>confdefs.h <<\_ACEOF
9955 echo "$as_me:$LINENO: checking for inline" >&5
9956 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9957 if test "${ac_cv_c_inline+set}" = set; then
9958 echo $ECHO_N "(cached) $ECHO_C" >&6
9961 for ac_kw in inline __inline__ __inline; do
9962 cat >conftest.$ac_ext <<_ACEOF
9965 cat confdefs.h >>conftest.$ac_ext
9966 cat >>conftest.$ac_ext <<_ACEOF
9967 /* end confdefs.h. */
9970 static $ac_kw foo_t static_foo () {return 0; }
9971 $ac_kw foo_t foo () {return 0; }
9975 rm -f conftest.$ac_objext
9976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9977 (eval $ac_compile) 2>conftest.er1
9979 grep -v '^ *+' conftest.er1 >conftest.err
9981 cat conftest.err >&5
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); } &&
9984 { ac_try='test -z "$ac_c_werror_flag"
9985 || test ! -s conftest.err'
9986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); }; } &&
9991 { ac_try='test -s conftest.$ac_objext'
9992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); }; }; then
9997 ac_cv_c_inline=$ac_kw; break
9999 echo "$as_me: failed program was:" >&5
10000 sed 's/^/| /' conftest.$ac_ext >&5
10003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10007 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10008 echo "${ECHO_T}$ac_cv_c_inline" >&6
10011 case $ac_cv_c_inline in
10014 case $ac_cv_c_inline in
10016 *) ac_val=$ac_cv_c_inline;;
10018 cat >>confdefs.h <<_ACEOF
10019 #ifndef __cplusplus
10020 #define inline $ac_val
10026 echo "$as_me:$LINENO: checking for off_t" >&5
10027 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10028 if test "${ac_cv_type_off_t+set}" = set; then
10029 echo $ECHO_N "(cached) $ECHO_C" >&6
10031 cat >conftest.$ac_ext <<_ACEOF
10034 cat confdefs.h >>conftest.$ac_ext
10035 cat >>conftest.$ac_ext <<_ACEOF
10036 /* end confdefs.h. */
10037 $ac_includes_default
10043 if (sizeof (off_t))
10049 rm -f conftest.$ac_objext
10050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10051 (eval $ac_compile) 2>conftest.er1
10053 grep -v '^ *+' conftest.er1 >conftest.err
10055 cat conftest.err >&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); } &&
10058 { ac_try='test -z "$ac_c_werror_flag"
10059 || test ! -s conftest.err'
10060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10061 (eval $ac_try) 2>&5
10063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064 (exit $ac_status); }; } &&
10065 { ac_try='test -s conftest.$ac_objext'
10066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10067 (eval $ac_try) 2>&5
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); }; }; then
10071 ac_cv_type_off_t=yes
10073 echo "$as_me: failed program was:" >&5
10074 sed 's/^/| /' conftest.$ac_ext >&5
10076 ac_cv_type_off_t=no
10078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10080 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10081 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10082 if test $ac_cv_type_off_t = yes; then
10086 cat >>confdefs.h <<_ACEOF
10092 echo "$as_me:$LINENO: checking for size_t" >&5
10093 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10094 if test "${ac_cv_type_size_t+set}" = set; then
10095 echo $ECHO_N "(cached) $ECHO_C" >&6
10097 cat >conftest.$ac_ext <<_ACEOF
10100 cat confdefs.h >>conftest.$ac_ext
10101 cat >>conftest.$ac_ext <<_ACEOF
10102 /* end confdefs.h. */
10103 $ac_includes_default
10109 if (sizeof (size_t))
10115 rm -f conftest.$ac_objext
10116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10117 (eval $ac_compile) 2>conftest.er1
10119 grep -v '^ *+' conftest.er1 >conftest.err
10121 cat conftest.err >&5
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); } &&
10124 { ac_try='test -z "$ac_c_werror_flag"
10125 || test ! -s conftest.err'
10126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10127 (eval $ac_try) 2>&5
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); }; } &&
10131 { ac_try='test -s conftest.$ac_objext'
10132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10133 (eval $ac_try) 2>&5
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); }; }; then
10137 ac_cv_type_size_t=yes
10139 echo "$as_me: failed program was:" >&5
10140 sed 's/^/| /' conftest.$ac_ext >&5
10142 ac_cv_type_size_t=no
10144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10146 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10147 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10148 if test $ac_cv_type_size_t = yes; then
10152 cat >>confdefs.h <<_ACEOF
10153 #define size_t unsigned
10158 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10159 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10160 if test "${ac_cv_struct_tm+set}" = set; then
10161 echo $ECHO_N "(cached) $ECHO_C" >&6
10163 cat >conftest.$ac_ext <<_ACEOF
10166 cat confdefs.h >>conftest.$ac_ext
10167 cat >>conftest.$ac_ext <<_ACEOF
10168 /* end confdefs.h. */
10169 #include <sys/types.h>
10175 struct tm *tp; tp->tm_sec;
10180 rm -f conftest.$ac_objext
10181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10182 (eval $ac_compile) 2>conftest.er1
10184 grep -v '^ *+' conftest.er1 >conftest.err
10186 cat conftest.err >&5
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); } &&
10189 { ac_try='test -z "$ac_c_werror_flag"
10190 || test ! -s conftest.err'
10191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10192 (eval $ac_try) 2>&5
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); }; } &&
10196 { ac_try='test -s conftest.$ac_objext'
10197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198 (eval $ac_try) 2>&5
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); }; }; then
10202 ac_cv_struct_tm=time.h
10204 echo "$as_me: failed program was:" >&5
10205 sed 's/^/| /' conftest.$ac_ext >&5
10207 ac_cv_struct_tm=sys/time.h
10209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10211 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10212 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10213 if test $ac_cv_struct_tm = sys/time.h; then
10215 cat >>confdefs.h <<\_ACEOF
10216 #define TM_IN_SYS_TIME 1
10221 echo "$as_me:$LINENO: checking for boolean" >&5
10222 echo $ECHO_N "checking for boolean... $ECHO_C" >&6
10223 if test "${ac_cv_type_boolean+set}" = set; then
10224 echo $ECHO_N "(cached) $ECHO_C" >&6
10226 cat >conftest.$ac_ext <<_ACEOF
10229 cat confdefs.h >>conftest.$ac_ext
10230 cat >>conftest.$ac_ext <<_ACEOF
10231 /* end confdefs.h. */
10232 $ac_includes_default
10238 if (sizeof (boolean))
10244 rm -f conftest.$ac_objext
10245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10246 (eval $ac_compile) 2>conftest.er1
10248 grep -v '^ *+' conftest.er1 >conftest.err
10250 cat conftest.err >&5
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); } &&
10253 { ac_try='test -z "$ac_c_werror_flag"
10254 || test ! -s conftest.err'
10255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10256 (eval $ac_try) 2>&5
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); }; } &&
10260 { ac_try='test -s conftest.$ac_objext'
10261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10262 (eval $ac_try) 2>&5
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); }; }; then
10266 ac_cv_type_boolean=yes
10268 echo "$as_me: failed program was:" >&5
10269 sed 's/^/| /' conftest.$ac_ext >&5
10271 ac_cv_type_boolean=no
10273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10275 echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
10276 echo "${ECHO_T}$ac_cv_type_boolean" >&6
10277 if test $ac_cv_type_boolean = yes; then
10281 cat >>confdefs.h <<_ACEOF
10282 #define boolean int
10287 echo "$as_me:$LINENO: checking for bool" >&5
10288 echo $ECHO_N "checking for bool... $ECHO_C" >&6
10289 if test "${ac_cv_type_bool+set}" = set; then
10290 echo $ECHO_N "(cached) $ECHO_C" >&6
10292 cat >conftest.$ac_ext <<_ACEOF
10295 cat confdefs.h >>conftest.$ac_ext
10296 cat >>conftest.$ac_ext <<_ACEOF
10297 /* end confdefs.h. */
10298 $ac_includes_default
10310 rm -f conftest.$ac_objext
10311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10312 (eval $ac_compile) 2>conftest.er1
10314 grep -v '^ *+' conftest.er1 >conftest.err
10316 cat conftest.err >&5
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); } &&
10319 { ac_try='test -z "$ac_c_werror_flag"
10320 || test ! -s conftest.err'
10321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10322 (eval $ac_try) 2>&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); }; } &&
10326 { ac_try='test -s conftest.$ac_objext'
10327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10328 (eval $ac_try) 2>&5
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); }; }; then
10332 ac_cv_type_bool=yes
10334 echo "$as_me: failed program was:" >&5
10335 sed 's/^/| /' conftest.$ac_ext >&5
10339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10341 echo "$as_me:$LINENO: result: $ac_cv_type_bool" >&5
10342 echo "${ECHO_T}$ac_cv_type_bool" >&6
10343 if test $ac_cv_type_bool = yes; then
10347 cat >>confdefs.h <<_ACEOF
10364 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
10366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10367 echo "$as_me:$LINENO: checking for $ac_func" >&5
10368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10369 if eval "test \"\${$as_ac_var+set}\" = set"; then
10370 echo $ECHO_N "(cached) $ECHO_C" >&6
10372 cat >conftest.$ac_ext <<_ACEOF
10375 cat confdefs.h >>conftest.$ac_ext
10376 cat >>conftest.$ac_ext <<_ACEOF
10377 /* end confdefs.h. */
10378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10380 #define $ac_func innocuous_$ac_func
10382 /* System header to define __stub macros and hopefully few prototypes,
10383 which can conflict with char $ac_func (); below.
10384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10385 <limits.h> exists even on freestanding compilers. */
10388 # include <limits.h>
10390 # include <assert.h>
10395 /* Override any gcc2 internal prototype to avoid an error. */
10400 /* We use char because int might match the return type of a gcc2
10401 builtin and then its argument prototype would still apply. */
10403 /* The GNU C library defines this for functions which it implements
10404 to always fail with ENOSYS. Some functions are actually named
10405 something starting with __ and the normal name is an alias. */
10406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10409 char (*f) () = $ac_func;
10418 return f != $ac_func;
10423 rm -f conftest.$ac_objext conftest$ac_exeext
10424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10425 (eval $ac_link) 2>conftest.er1
10427 grep -v '^ *+' conftest.er1 >conftest.err
10429 cat conftest.err >&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); } &&
10432 { ac_try='test -z "$ac_c_werror_flag"
10433 || test ! -s conftest.err'
10434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10435 (eval $ac_try) 2>&5
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); }; } &&
10439 { ac_try='test -s conftest$ac_exeext'
10440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10441 (eval $ac_try) 2>&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); }; }; then
10445 eval "$as_ac_var=yes"
10447 echo "$as_me: failed program was:" >&5
10448 sed 's/^/| /' conftest.$ac_ext >&5
10450 eval "$as_ac_var=no"
10452 rm -f conftest.err conftest.$ac_objext \
10453 conftest$ac_exeext conftest.$ac_ext
10455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10456 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10457 if test `eval echo '${'$as_ac_var'}'` = yes; then
10458 cat >>confdefs.h <<_ACEOF
10459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10467 for ac_prog in avifile-config
10469 # Extract the first word of "$ac_prog", so it can be a program name with args.
10470 set dummy $ac_prog; ac_word=$2
10471 echo "$as_me:$LINENO: checking for $ac_word" >&5
10472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10473 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
10474 echo $ECHO_N "(cached) $ECHO_C" >&6
10476 if test -n "$AVIFILE_CONFIG"; then
10477 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
10479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10480 for as_dir in $PATH
10483 test -z "$as_dir" && as_dir=.
10484 for ac_exec_ext in '' $ac_executable_extensions; do
10485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10486 ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
10487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10495 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
10496 if test -n "$AVIFILE_CONFIG"; then
10497 echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
10498 echo "${ECHO_T}$AVIFILE_CONFIG" >&6
10500 echo "$as_me:$LINENO: result: no" >&5
10501 echo "${ECHO_T}no" >&6
10504 test -n "$AVIFILE_CONFIG" && break
10508 if test "x$AVIFILE_CONFIG" '!=' "x";then
10509 OLDCPPFLAGS="$CPPFLAGS"
10510 #OLDLDFLAGS="$LDFLAGS"
10511 CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
10512 #LDFLAGS="$LDFLAGS `$AVIFILE_CONFIG --libs`"
10515 for ac_header in avifile/version.h version.h
10517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10519 echo "$as_me:$LINENO: checking for $ac_header" >&5
10520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10522 echo $ECHO_N "(cached) $ECHO_C" >&6
10524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10527 # Is the header compilable?
10528 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10530 cat >conftest.$ac_ext <<_ACEOF
10533 cat confdefs.h >>conftest.$ac_ext
10534 cat >>conftest.$ac_ext <<_ACEOF
10535 /* end confdefs.h. */
10536 $ac_includes_default
10537 #include <$ac_header>
10539 rm -f conftest.$ac_objext
10540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10541 (eval $ac_compile) 2>conftest.er1
10543 grep -v '^ *+' conftest.er1 >conftest.err
10545 cat conftest.err >&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); } &&
10548 { ac_try='test -z "$ac_c_werror_flag"
10549 || test ! -s conftest.err'
10550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10551 (eval $ac_try) 2>&5
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); }; } &&
10555 { ac_try='test -s conftest.$ac_objext'
10556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10557 (eval $ac_try) 2>&5
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); }; }; then
10561 ac_header_compiler=yes
10563 echo "$as_me: failed program was:" >&5
10564 sed 's/^/| /' conftest.$ac_ext >&5
10566 ac_header_compiler=no
10568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10569 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10570 echo "${ECHO_T}$ac_header_compiler" >&6
10572 # Is the header present?
10573 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10575 cat >conftest.$ac_ext <<_ACEOF
10578 cat confdefs.h >>conftest.$ac_ext
10579 cat >>conftest.$ac_ext <<_ACEOF
10580 /* end confdefs.h. */
10581 #include <$ac_header>
10583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10584 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10586 grep -v '^ *+' conftest.er1 >conftest.err
10588 cat conftest.err >&5
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); } >/dev/null; then
10591 if test -s conftest.err; then
10592 ac_cpp_err=$ac_c_preproc_warn_flag
10593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10600 if test -z "$ac_cpp_err"; then
10601 ac_header_preproc=yes
10603 echo "$as_me: failed program was:" >&5
10604 sed 's/^/| /' conftest.$ac_ext >&5
10606 ac_header_preproc=no
10608 rm -f conftest.err conftest.$ac_ext
10609 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10610 echo "${ECHO_T}$ac_header_preproc" >&6
10612 # So? What about this header?
10613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10615 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10618 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10619 ac_header_preproc=yes
10622 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10624 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10625 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10626 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10627 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10628 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10629 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10632 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10633 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10636 ## ------------------------------------------ ##
10637 ## Report this to the AC_PACKAGE_NAME lists. ##
10638 ## ------------------------------------------ ##
10641 sed "s/^/$as_me: WARNING: /" >&2
10644 echo "$as_me:$LINENO: checking for $ac_header" >&5
10645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10647 echo $ECHO_N "(cached) $ECHO_C" >&6
10649 eval "$as_ac_Header=\$ac_header_preproc"
10651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10656 cat >>confdefs.h <<_ACEOF
10657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10664 #LDFLAGS="$OLDLDFLAGS"
10665 CPPFLAGS="$OLDCPPFLAGS"
10668 echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
10669 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6
10671 if test "x${ac_cv_header_version_h}" '=' "xyes";then
10672 HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
10674 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
10675 HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
10678 cat > conftest.cpp << EOF
10680 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
10681 // so we have to introduce them this way
10682 $HAVE_VERSION_H_DEFINE
10683 $HAVE_AVIFILE_VERSION_H_DEFINE
10685 #ifdef HAVE_VERSION_H
10686 #include <version.h>
10688 #ifdef HAVE_AVIFILE_VERSION_H
10689 #include <avifile/version.h>
10692 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
10693 #include <avifile.h>
10694 #include <aviplay.h>
10695 #include <fourcc.h>
10696 #include <creators.h>
10697 #include <StreamInfo.h>
10700 #include <avifile.h>
10701 #include <aviplay.h>
10702 #include <aviutil.h>
10703 #define Width width
10704 #define Height height
10711 IAviReadFile* player;
10712 IAviReadStream* astream;
10713 IAviReadStream* vstream;
10714 player = CreateIAviReadFile(0);
10715 astream = player->GetStream(0, AviStream::Audio);
10716 vstream = player->GetStream(0, AviStream::Video);
10717 vstream -> StartStreaming();
10718 astream -> StartStreaming();
10720 MainAVIHeader head;
10721 player->GetFileHeader(&head);
10722 head.dwMicroSecPerFrame;
10723 head.dwTotalFrames;
10727 head.dwMicroSecPerFrame;
10728 astream->GetEndPos(),
10729 astream->GetEndTime());
10730 player->StreamCount();
10732 StreamInfo*audioinfo;
10733 StreamInfo*videoinfo;
10734 audioinfo = astream->GetStreamInfo();
10735 videoinfo = vstream->GetStreamInfo();
10736 videoinfo->GetVideoWidth();
10737 videoinfo->GetVideoHeight();
10738 audioinfo->GetAudioSamplesPerSec();
10739 videoinfo->GetFps();
10741 CImage*img = vstream->GetFrame();
10748 astream->GetAudioFormatInfo(&wave,0);
10750 astream->ReadFrames(0,0,0,a,b);
10752 int main (int argc, char*argv)
10758 if test "x$AVIFILE_CONFIG" '!=' "x";then
10759 ac_link='$CXX $CPPFLAGS $CXXFLAGS `$AVIFILE_CONFIG --cflags` `$AVIFILE_CONFIG --libs` conftest.cpp -o conftest${ac_exeext}'
10760 if { (eval echo avi2swf.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
10761 echo "$as_me:$LINENO: result: yes" >&5
10762 echo "${ECHO_T}yes" >&6
10765 cat >>confdefs.h <<_ACEOF
10766 #define AVIFILE true
10770 echo "configure: failed program was:" >&5
10771 cat conftest.cpp >&5
10772 echo "$as_me:$LINENO: result: no" >&5
10773 echo "${ECHO_T}no" >&6
10776 echo "$as_me:$LINENO: result: no" >&5
10777 echo "${ECHO_T}no" >&6
10782 avi2swf="avi2swf/Makefile"
10783 if test "x${AVIFILE}" != "xtrue"; then
10784 echo "* Couldn't compile the avifile test program."
10785 echo "* Disabling avi2swf tool..."
10786 echo all install uninstall clean: > avi2swf/Makefile
10790 if test "x${DISABLE_LAME}" = "xtrue"; then
10791 echo "*" Disabling lame support...
10794 cat >>confdefs.h <<_ACEOF
10795 #define HAVE_LAME 1
10798 lame_objects='$(lame_objects_2)'
10802 if test "x${UNCOMPRESS}" = "xgzip"; then
10803 cat >>confdefs.h <<_ACEOF
10810 JPEG2SWF='jpeg2swf$(E)'
10812 PNG2SWF='png2swf$(E)'
10814 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
10815 echo "***************************************************"
10816 echo "The following headers/libraries are missing: " ${MISSINGLIBS}
10817 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
10818 echo "Disabling pdf2swf tool..."
10819 rm -f pdf2swf/Makefile
10820 echo all install uninstall clean: > pdf2swf/Makefile
10822 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
10823 echo "Disabling jpeg2swf tool..."
10827 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
10828 echo "Disabling png2swf tool..."
10832 if test "x${ZLIBMISSING}" = "xtrue"; then
10834 echo "Warning! Without zlib, you will not be able to read"
10835 echo "or write compressed Flash MX files!"
10837 echo "***************************************************"
10838 FILES="./release Makefile.common ${avi2swf} Makefile lib/lame/Makefile lib/Makefile lib/action/Makefile src/Makefile swfs/Makefile"
10840 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"
10845 ac_config_files="$ac_config_files ${FILES}"
10846 cat >confcache <<\_ACEOF
10847 # This file is a shell script that caches the results of configure
10848 # tests run on this system so they can be shared between configure
10849 # scripts and configure runs, see configure's option --config-cache.
10850 # It is not useful on other systems. If it contains results you don't
10851 # want to keep, you may remove or edit it.
10853 # config.status only pays attention to the cache file if you give it
10854 # the --recheck option to rerun configure.
10856 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10857 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10858 # following values.
10862 # The following way of writing the cache mishandles newlines in values,
10863 # but we know of no workaround that is simple, portable, and efficient.
10864 # So, don't put newlines in cache variables' values.
10865 # Ultrix sh set writes to stderr and can't be redirected directly,
10866 # and sets the high bit in the cache file unless we assign to the vars.
10869 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10871 # `set' does not quote correctly, so add quotes (double-quote
10872 # substitution turns \\\\ into \\, and sed turns \\ into \).
10875 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10878 # `set' quotes correctly as required by POSIX, so do not add quotes.
10880 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10887 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10889 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10891 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10892 if test -w $cache_file; then
10893 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10894 cat confcache >$cache_file
10896 echo "not updating unwritable cache $cache_file"
10901 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10902 # Let make expand exec_prefix.
10903 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10905 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10906 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10907 # trailing colons and then remove the whole line if VPATH becomes empty
10908 # (actually we leave an empty line to preserve line numbers).
10909 if test "x$srcdir" = x.; then
10910 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10911 s/:*\$(srcdir):*/:/;
10912 s/:*\${srcdir}:*/:/;
10914 s/^\([^=]*=[ ]*\):*/\1/;
10920 DEFS=-DHAVE_CONFIG_H
10924 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10925 # 1. Remove the extension, and $U if already installed.
10926 ac_i=`echo "$ac_i" |
10927 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10929 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10930 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10932 LIBOBJS=$ac_libobjs
10934 LTLIBOBJS=$ac_ltlibobjs
10938 : ${CONFIG_STATUS=./config.status}
10939 ac_clean_files_save=$ac_clean_files
10940 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10941 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10942 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10943 cat >$CONFIG_STATUS <<_ACEOF
10945 # Generated by $as_me.
10946 # Run this file to recreate the current configuration.
10947 # Compiler output produced by configure, useful for debugging
10948 # configure, is in config.log if it exists.
10951 ac_cs_recheck=false
10953 SHELL=\${CONFIG_SHELL-$SHELL}
10956 cat >>$CONFIG_STATUS <<\_ACEOF
10957 ## --------------------- ##
10958 ## M4sh Initialization. ##
10959 ## --------------------- ##
10961 # Be Bourne compatible
10962 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10965 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10966 # is contrary to our usage. Disable this feature.
10967 alias -g '${1+"$@"}'='"$@"'
10968 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10971 DUALCASE=1; export DUALCASE # for MKS sh
10973 # Support unset when possible.
10974 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10981 # Work around bugs in pre-3.0 UWIN ksh.
10982 $as_unset ENV MAIL MAILPATH
10989 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10990 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10991 LC_TELEPHONE LC_TIME
10993 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10994 eval $as_var=C; export $as_var
11000 # Required to use basename.
11001 if expr a : '\(a\)' >/dev/null 2>&1; then
11007 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11008 as_basename=basename
11014 # Name of the executable.
11015 as_me=`$as_basename "$0" ||
11016 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11017 X"$0" : 'X\(//\)$' \| \
11018 X"$0" : 'X\(/\)$' \| \
11019 . : '\(.\)' 2>/dev/null ||
11021 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11022 /^X\/\(\/\/\)$/{ s//\1/; q; }
11023 /^X\/\(\/\).*/{ s//\1/; q; }
11027 # PATH needs CR, and LINENO needs CR and PATH.
11028 # Avoid depending upon Character Ranges.
11029 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11030 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11031 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11032 as_cr_digits='0123456789'
11033 as_cr_alnum=$as_cr_Letters$as_cr_digits
11035 # The user is always right.
11036 if test "${PATH_SEPARATOR+set}" != set; then
11037 echo "#! /bin/sh" >conf$$.sh
11038 echo "exit 0" >>conf$$.sh
11040 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11049 as_lineno_1=$LINENO
11050 as_lineno_2=$LINENO
11051 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11052 test "x$as_lineno_1" != "x$as_lineno_2" &&
11053 test "x$as_lineno_3" = "x$as_lineno_2" || {
11054 # Find who we are. Look in the path if we contain no path at all
11057 *[\\/]* ) as_myself=$0 ;;
11058 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11059 for as_dir in $PATH
11062 test -z "$as_dir" && as_dir=.
11063 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11068 # We did not find ourselves, most probably we were run as `sh COMMAND'
11069 # in which case we are not to be found in the path.
11070 if test "x$as_myself" = x; then
11073 if test ! -f "$as_myself"; then
11074 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11075 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11076 { (exit 1); exit 1; }; }
11078 case $CONFIG_SHELL in
11080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11081 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11084 test -z "$as_dir" && as_dir=.
11085 for as_base in sh bash ksh sh5; do
11088 if ("$as_dir/$as_base" -c '
11089 as_lineno_1=$LINENO
11090 as_lineno_2=$LINENO
11091 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11092 test "x$as_lineno_1" != "x$as_lineno_2" &&
11093 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11094 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11095 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11096 CONFIG_SHELL=$as_dir/$as_base
11097 export CONFIG_SHELL
11098 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11106 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11107 # uniformly replaced by the line number. The first 'sed' inserts a
11108 # line-number line before each line; the second 'sed' does the real
11109 # work. The second script uses 'N' to pair each line-number line
11110 # with the numbered line, and appends trailing '-' during
11111 # substitution so that $LINENO is not a special case at line end.
11112 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11113 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11114 sed '=' <$as_myself |
11119 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11122 s,^['$as_cr_digits']*\n,,
11123 ' >$as_me.lineno &&
11124 chmod +x $as_me.lineno ||
11125 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11126 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11127 { (exit 1); exit 1; }; }
11129 # Don't try to exec as it changes $[0], causing all sort of problems
11130 # (the dirname of $[0] is not the place where we might find the
11131 # original and so on. Autoconf is especially sensible to this).
11133 # Exit status is that of the last command.
11138 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11139 *c*,-n*) ECHO_N= ECHO_C='
11141 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11142 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11145 if expr a : '\(a\)' >/dev/null 2>&1; then
11151 rm -f conf$$ conf$$.exe conf$$.file
11153 if ln -s conf$$.file conf$$ 2>/dev/null; then
11154 # We could just check for DJGPP; but this test a) works b) is more generic
11155 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11156 if test -f conf$$.exe; then
11157 # Don't use ln at all; we don't have any links
11162 elif ln conf$$.file conf$$ 2>/dev/null; then
11167 rm -f conf$$ conf$$.exe conf$$.file
11169 if mkdir -p . 2>/dev/null; then
11172 test -d ./-p && rmdir ./-p
11176 as_executable_p="test -f"
11178 # Sed expression to map a string onto a valid CPP name.
11179 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11181 # Sed expression to map a string onto a valid variable name.
11182 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11186 # We need space, tab and new line, in precisely that order.
11196 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11197 # report actual input values of CONFIG_FILES etc. instead of their
11198 # values after options handling. Logging --version etc. is OK.
11202 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11203 ## Running $as_me. ##
11208 This file was extended by $as_me, which was
11209 generated by GNU Autoconf 2.58. Invocation command line was
11211 CONFIG_FILES = $CONFIG_FILES
11212 CONFIG_HEADERS = $CONFIG_HEADERS
11213 CONFIG_LINKS = $CONFIG_LINKS
11214 CONFIG_COMMANDS = $CONFIG_COMMANDS
11218 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11222 # Files that config.status was made for.
11223 if test -n "$ac_config_files"; then
11224 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11227 if test -n "$ac_config_headers"; then
11228 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11231 if test -n "$ac_config_links"; then
11232 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11235 if test -n "$ac_config_commands"; then
11236 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11239 cat >>$CONFIG_STATUS <<\_ACEOF
11242 \`$as_me' instantiates files from templates according to the
11243 current configuration.
11245 Usage: $0 [OPTIONS] [FILE]...
11247 -h, --help print this help, then exit
11248 -V, --version print version number, then exit
11249 -q, --quiet do not print progress messages
11250 -d, --debug don't remove temporary files
11251 --recheck update $as_me by reconfiguring in the same conditions
11252 --file=FILE[:TEMPLATE]
11253 instantiate the configuration file FILE
11254 --header=FILE[:TEMPLATE]
11255 instantiate the configuration header FILE
11257 Configuration files:
11260 Configuration headers:
11263 Report bugs to <bug-autoconf@gnu.org>."
11266 cat >>$CONFIG_STATUS <<_ACEOF
11269 configured by $0, generated by GNU Autoconf 2.58,
11270 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11272 Copyright (C) 2003 Free Software Foundation, Inc.
11273 This config.status script is free software; the Free Software Foundation
11274 gives unlimited permission to copy, distribute and modify it."
11279 cat >>$CONFIG_STATUS <<\_ACEOF
11280 # If no file are specified by the user, then we need to provide default
11281 # value. By we need to know if files were specified by the user.
11287 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11288 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11296 *) # This is not an option, so the user has probably given explicit
11299 ac_need_defaults=false;;
11303 # Handling of the options.
11305 cat >>$CONFIG_STATUS <<\_ACEOF
11306 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11308 --version | --vers* | -V )
11309 echo "$ac_cs_version"; exit 0 ;;
11311 # Conflict between --help and --header
11312 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11313 Try \`$0 --help' for more information." >&5
11314 echo "$as_me: error: ambiguous option: $1
11315 Try \`$0 --help' for more information." >&2;}
11316 { (exit 1); exit 1; }; };;
11317 --help | --hel | -h )
11318 echo "$ac_cs_usage"; exit 0 ;;
11319 --debug | --d* | -d )
11321 --file | --fil | --fi | --f )
11323 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11324 ac_need_defaults=false;;
11325 --header | --heade | --head | --hea )
11327 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11328 ac_need_defaults=false;;
11329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11330 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11333 # This is an error.
11334 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11335 Try \`$0 --help' for more information." >&5
11336 echo "$as_me: error: unrecognized option: $1
11337 Try \`$0 --help' for more information." >&2;}
11338 { (exit 1); exit 1; }; } ;;
11340 *) ac_config_targets="$ac_config_targets $1" ;;
11346 ac_configure_extra_args=
11348 if $ac_cs_silent; then
11350 ac_configure_extra_args="$ac_configure_extra_args --silent"
11354 cat >>$CONFIG_STATUS <<_ACEOF
11355 if \$ac_cs_recheck; then
11356 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11357 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11366 cat >>$CONFIG_STATUS <<\_ACEOF
11367 for ac_config_target in $ac_config_targets
11369 case "$ac_config_target" in
11370 # Handling of arguments.
11371 "${FILES}" ) CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
11372 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11373 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11374 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11375 { (exit 1); exit 1; }; };;
11379 # If the user did not use the arguments to specify the items to instantiate,
11380 # then the envvar interface is used. Set only those that are not.
11381 # We use the long form for the default assignment because of an extremely
11382 # bizarre bug on SunOS 4.1.3.
11383 if $ac_need_defaults; then
11384 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11385 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11388 # Have a temporary directory for convenience. Make it in the build tree
11389 # simply because there is no reason to put it here, and in addition,
11390 # creating and moving files from /tmp can sometimes cause problems.
11391 # Create a temporary directory, and hook for its removal unless debugging.
11394 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11395 trap '{ (exit 1); exit 1; }' 1 2 13 15
11398 # Create a (secure) tmp directory for tmp files.
11401 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11402 test -n "$tmp" && test -d "$tmp"
11405 tmp=./confstat$$-$RANDOM
11406 (umask 077 && mkdir $tmp)
11409 echo "$me: cannot create a temporary directory in ." >&2
11410 { (exit 1); exit 1; }
11415 cat >>$CONFIG_STATUS <<_ACEOF
11418 # CONFIG_FILES section.
11421 # No need to generate the scripts if there are no CONFIG_FILES.
11422 # This happens for instance when ./config.status config.h
11423 if test -n "\$CONFIG_FILES"; then
11424 # Protect against being on the right side of a sed subst in config.status.
11425 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11426 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11427 s,@SHELL@,$SHELL,;t t
11428 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11429 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11430 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11431 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11432 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11433 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11434 s,@exec_prefix@,$exec_prefix,;t t
11435 s,@prefix@,$prefix,;t t
11436 s,@program_transform_name@,$program_transform_name,;t t
11437 s,@bindir@,$bindir,;t t
11438 s,@sbindir@,$sbindir,;t t
11439 s,@libexecdir@,$libexecdir,;t t
11440 s,@datadir@,$datadir,;t t
11441 s,@sysconfdir@,$sysconfdir,;t t
11442 s,@sharedstatedir@,$sharedstatedir,;t t
11443 s,@localstatedir@,$localstatedir,;t t
11444 s,@libdir@,$libdir,;t t
11445 s,@includedir@,$includedir,;t t
11446 s,@oldincludedir@,$oldincludedir,;t t
11447 s,@infodir@,$infodir,;t t
11448 s,@mandir@,$mandir,;t t
11449 s,@build_alias@,$build_alias,;t t
11450 s,@host_alias@,$host_alias,;t t
11451 s,@target_alias@,$target_alias,;t t
11452 s,@DEFS@,$DEFS,;t t
11453 s,@ECHO_C@,$ECHO_C,;t t
11454 s,@ECHO_N@,$ECHO_N,;t t
11455 s,@ECHO_T@,$ECHO_T,;t t
11456 s,@LIBS@,$LIBS,;t t
11457 s,@build@,$build,;t t
11458 s,@build_cpu@,$build_cpu,;t t
11459 s,@build_vendor@,$build_vendor,;t t
11460 s,@build_os@,$build_os,;t t
11461 s,@host@,$host,;t t
11462 s,@host_cpu@,$host_cpu,;t t
11463 s,@host_vendor@,$host_vendor,;t t
11464 s,@host_os@,$host_os,;t t
11466 s,@CFLAGS@,$CFLAGS,;t t
11467 s,@LDFLAGS@,$LDFLAGS,;t t
11468 s,@CPPFLAGS@,$CPPFLAGS,;t t
11469 s,@ac_ct_CC@,$ac_ct_CC,;t t
11470 s,@EXEEXT@,$EXEEXT,;t t
11471 s,@OBJEXT@,$OBJEXT,;t t
11473 s,@CXXFLAGS@,$CXXFLAGS,;t t
11474 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
11476 s,@RANLIB@,$RANLIB,;t t
11477 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11478 s,@SET_MAKE@,$SET_MAKE,;t t
11479 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11480 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11481 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11482 s,@LN_S@,$LN_S,;t t
11483 s,@ECHO@,$ECHO,;t t
11484 s,@STRIP@,$STRIP,;t t
11485 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11486 s,@EGREP@,$EGREP,;t t
11487 s,@LIBTOOL@,$LIBTOOL,;t t
11488 s,@UNCOMPRESS@,$UNCOMPRESS,;t t
11490 s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t
11491 s,@target@,$target,;t t
11492 s,@target_cpu@,$target_cpu,;t t
11493 s,@target_vendor@,$target_vendor,;t t
11494 s,@target_os@,$target_os,;t t
11495 s,@WORDS_BIGENDIAN@,$WORDS_BIGENDIAN,;t t
11496 s,@SYSTEM_BACKTICKS@,$SYSTEM_BACKTICKS,;t t
11497 s,@PACKAGE@,$PACKAGE,;t t
11498 s,@VERSION@,$VERSION,;t t
11499 s,@HAVE_UNISTD_H@,$HAVE_UNISTD_H,;t t
11500 s,@AVIFILE_CONFIG@,$AVIFILE_CONFIG,;t t
11501 s,@lame_objects@,$lame_objects,;t t
11502 s,@USE_GZIP@,$USE_GZIP,;t t
11503 s,@JPEG2SWF@,$JPEG2SWF,;t t
11504 s,@PNG2SWF@,$PNG2SWF,;t t
11505 s,@LIBOBJS@,$LIBOBJS,;t t
11506 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11511 cat >>$CONFIG_STATUS <<\_ACEOF
11512 # Split the substitutions into bite-sized pieces for seds with
11513 # small command number limits, like on Digital OSF/1 and HP-UX.
11514 ac_max_sed_lines=48
11515 ac_sed_frag=1 # Number of current file.
11516 ac_beg=1 # First line for current file.
11517 ac_end=$ac_max_sed_lines # Line after last line for current file.
11520 while $ac_more_lines; do
11521 if test $ac_beg -gt 1; then
11522 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11524 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11526 if test ! -s $tmp/subs.frag; then
11527 ac_more_lines=false
11529 # The purpose of the label and of the branching condition is to
11530 # speed up the sed processing (if there are no `@' at all, there
11531 # is no need to browse any of the substitutions).
11532 # These are the two extra sed commands mentioned above.
11534 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11535 if test -z "$ac_sed_cmds"; then
11536 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11538 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11540 ac_sed_frag=`expr $ac_sed_frag + 1`
11542 ac_end=`expr $ac_end + $ac_max_sed_lines`
11545 if test -z "$ac_sed_cmds"; then
11548 fi # test -n "$CONFIG_FILES"
11551 cat >>$CONFIG_STATUS <<\_ACEOF
11552 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11553 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11555 - | *:- | *:-:* ) # input from stdin
11557 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11558 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11559 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11560 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11561 * ) ac_file_in=$ac_file.in ;;
11564 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11565 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11566 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11567 X"$ac_file" : 'X\(//\)[^/]' \| \
11568 X"$ac_file" : 'X\(//\)$' \| \
11569 X"$ac_file" : 'X\(/\)' \| \
11570 . : '\(.\)' 2>/dev/null ||
11572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11573 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11574 /^X\(\/\/\)$/{ s//\1/; q; }
11575 /^X\(\/\).*/{ s//\1/; q; }
11577 { if $as_mkdir_p; then
11582 while test ! -d "$as_dir"; do
11583 as_dirs="$as_dir $as_dirs"
11584 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11585 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11586 X"$as_dir" : 'X\(//\)[^/]' \| \
11587 X"$as_dir" : 'X\(//\)$' \| \
11588 X"$as_dir" : 'X\(/\)' \| \
11589 . : '\(.\)' 2>/dev/null ||
11591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11592 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11593 /^X\(\/\/\)$/{ s//\1/; q; }
11594 /^X\(\/\).*/{ s//\1/; q; }
11597 test ! -n "$as_dirs" || mkdir $as_dirs
11598 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11599 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11600 { (exit 1); exit 1; }; }; }
11604 if test "$ac_dir" != .; then
11605 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11606 # A "../" for each directory in $ac_dir_suffix.
11607 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11609 ac_dir_suffix= ac_top_builddir=
11613 .) # No --srcdir option. We are building in place.
11615 if test -z "$ac_top_builddir"; then
11618 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11620 [\\/]* | ?:[\\/]* ) # Absolute path.
11621 ac_srcdir=$srcdir$ac_dir_suffix;
11622 ac_top_srcdir=$srcdir ;;
11623 *) # Relative path.
11624 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11625 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11628 .) ac_abs_builddir=$ac_builddir;;
11630 case $ac_builddir in
11631 .) ac_abs_builddir="$ac_dir";;
11632 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
11633 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
11637 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11639 case ${ac_top_builddir}. in
11640 .) ac_abs_top_builddir="$ac_dir";;
11641 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11642 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
11646 .) ac_abs_srcdir=$ac_srcdir;;
11649 .) ac_abs_srcdir="$ac_dir";;
11650 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11651 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
11655 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11657 case $ac_top_srcdir in
11658 .) ac_abs_top_srcdir="$ac_dir";;
11659 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11660 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
11666 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11667 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11670 if test x"$ac_file" != x-; then
11671 { echo "$as_me:$LINENO: creating $ac_file" >&5
11672 echo "$as_me: creating $ac_file" >&6;}
11675 # Let's still pretend it is `configure' which instantiates (i.e., don't
11676 # use $as_me), people would be surprised to read:
11677 # /* config.h. Generated by config.status. */
11678 if test x"$ac_file" = x-; then
11681 configure_input="$ac_file. "
11683 configure_input=$configure_input"Generated from `echo $ac_file_in |
11684 sed 's,.*/,,'` by configure."
11686 # First look for the input files in the build tree, otherwise in the
11688 ac_file_inputs=`IFS=:
11689 for f in $ac_file_in; do
11691 -) echo $tmp/stdin ;;
11693 # Absolute (can't be DOS-style, as IFS=:)
11694 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11695 echo "$as_me: error: cannot find input file: $f" >&2;}
11696 { (exit 1); exit 1; }; }
11699 if test -f "$f"; then
11702 elif test -f "$srcdir/$f"; then
11707 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11708 echo "$as_me: error: cannot find input file: $f" >&2;}
11709 { (exit 1); exit 1; }; }
11712 done` || { (exit 1); exit 1; }
11714 cat >>$CONFIG_STATUS <<_ACEOF
11718 cat >>$CONFIG_STATUS <<\_ACEOF
11720 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11721 s,@configure_input@,$configure_input,;t t
11722 s,@srcdir@,$ac_srcdir,;t t
11723 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11724 s,@top_srcdir@,$ac_top_srcdir,;t t
11725 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11726 s,@builddir@,$ac_builddir,;t t
11727 s,@abs_builddir@,$ac_abs_builddir,;t t
11728 s,@top_builddir@,$ac_top_builddir,;t t
11729 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11730 s,@INSTALL@,$ac_INSTALL,;t t
11731 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11733 if test x"$ac_file" != x-; then
11734 mv $tmp/out $ac_file
11742 cat >>$CONFIG_STATUS <<\_ACEOF
11745 # CONFIG_HEADER section.
11748 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11749 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11751 # ac_d sets the value in "#define NAME VALUE" lines.
11752 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11753 ac_dB='[ ].*$,\1#\2'
11756 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11757 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11758 ac_uB='$,\1#\2define\3'
11762 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11763 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11765 - | *:- | *:-:* ) # input from stdin
11767 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11768 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11769 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11770 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11771 * ) ac_file_in=$ac_file.in ;;
11774 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11775 echo "$as_me: creating $ac_file" >&6;}
11777 # First look for the input files in the build tree, otherwise in the
11779 ac_file_inputs=`IFS=:
11780 for f in $ac_file_in; do
11782 -) echo $tmp/stdin ;;
11784 # Absolute (can't be DOS-style, as IFS=:)
11785 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11786 echo "$as_me: error: cannot find input file: $f" >&2;}
11787 { (exit 1); exit 1; }; }
11788 # Do quote $f, to prevent DOS paths from being IFS'd.
11791 if test -f "$f"; then
11794 elif test -f "$srcdir/$f"; then
11799 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11800 echo "$as_me: error: cannot find input file: $f" >&2;}
11801 { (exit 1); exit 1; }; }
11804 done` || { (exit 1); exit 1; }
11805 # Remove the trailing spaces.
11806 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11810 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11811 # `conftest.undefs', that substitutes the proper values into
11812 # config.h.in to produce config.h. The first handles `#define'
11813 # templates, and the second `#undef' templates.
11814 # And first: Protect against being on the right side of a sed subst in
11815 # config.status. Protect against being in an unquoted here document
11816 # in config.status.
11817 rm -f conftest.defines conftest.undefs
11818 # Using a here document instead of a string reduces the quoting nightmare.
11819 # Putting comments in sed scripts is not portable.
11821 # `end' is used to avoid that the second main sed command (meant for
11822 # 0-ary CPP macros) applies to n-ary macro definitions.
11823 # See the Autoconf documentation for `clear'.
11824 cat >confdef2sed.sed <<\_ACEOF
11829 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11831 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11834 # If some macros were called several times there might be several times
11835 # the same #defines, which is useless. Nevertheless, we may not want to
11836 # sort them, since we want the *last* AC-DEFINE to be honored.
11837 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11838 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11839 rm -f confdef2sed.sed
11841 # This sed command replaces #undef with comments. This is necessary, for
11842 # example, in the case of _POSIX_SOURCE, which is predefined and required
11843 # on some systems where configure will not decide to define it.
11844 cat >>conftest.undefs <<\_ACEOF
11845 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11848 # Break up conftest.defines because some shells have a limit on the size
11849 # of here documents, and old seds have small limits too (100 cmds).
11850 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11851 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11852 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11853 echo ' :' >>$CONFIG_STATUS
11854 rm -f conftest.tail
11855 while grep . conftest.defines >/dev/null
11857 # Write a limited-size here document to $tmp/defines.sed.
11858 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11859 # Speed up: don't consider the non `#define' lines.
11860 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11861 # Work around the forget-to-reset-the-flag bug.
11862 echo 't clr' >>$CONFIG_STATUS
11863 echo ': clr' >>$CONFIG_STATUS
11864 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11866 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11868 mv $tmp/out $tmp/in
11870 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11871 rm -f conftest.defines
11872 mv conftest.tail conftest.defines
11874 rm -f conftest.defines
11875 echo ' fi # grep' >>$CONFIG_STATUS
11876 echo >>$CONFIG_STATUS
11878 # Break up conftest.undefs because some shells have a limit on the size
11879 # of here documents, and old seds have small limits too (100 cmds).
11880 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11881 rm -f conftest.tail
11882 while grep . conftest.undefs >/dev/null
11884 # Write a limited-size here document to $tmp/undefs.sed.
11885 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11886 # Speed up: don't consider the non `#undef'
11887 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11888 # Work around the forget-to-reset-the-flag bug.
11889 echo 't clr' >>$CONFIG_STATUS
11890 echo ': clr' >>$CONFIG_STATUS
11891 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11893 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11895 mv $tmp/out $tmp/in
11897 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11898 rm -f conftest.undefs
11899 mv conftest.tail conftest.undefs
11901 rm -f conftest.undefs
11903 cat >>$CONFIG_STATUS <<\_ACEOF
11904 # Let's still pretend it is `configure' which instantiates (i.e., don't
11905 # use $as_me), people would be surprised to read:
11906 # /* config.h. Generated by config.status. */
11907 if test x"$ac_file" = x-; then
11908 echo "/* Generated by configure. */" >$tmp/config.h
11910 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11912 cat $tmp/in >>$tmp/config.h
11914 if test x"$ac_file" != x-; then
11915 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11916 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11917 echo "$as_me: $ac_file is unchanged" >&6;}
11919 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11920 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11921 X"$ac_file" : 'X\(//\)[^/]' \| \
11922 X"$ac_file" : 'X\(//\)$' \| \
11923 X"$ac_file" : 'X\(/\)' \| \
11924 . : '\(.\)' 2>/dev/null ||
11926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11927 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11928 /^X\(\/\/\)$/{ s//\1/; q; }
11929 /^X\(\/\).*/{ s//\1/; q; }
11931 { if $as_mkdir_p; then
11936 while test ! -d "$as_dir"; do
11937 as_dirs="$as_dir $as_dirs"
11938 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11939 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11940 X"$as_dir" : 'X\(//\)[^/]' \| \
11941 X"$as_dir" : 'X\(//\)$' \| \
11942 X"$as_dir" : 'X\(/\)' \| \
11943 . : '\(.\)' 2>/dev/null ||
11945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11946 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11947 /^X\(\/\/\)$/{ s//\1/; q; }
11948 /^X\(\/\).*/{ s//\1/; q; }
11951 test ! -n "$as_dirs" || mkdir $as_dirs
11952 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11953 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11954 { (exit 1); exit 1; }; }; }
11957 mv $tmp/config.h $ac_file
11961 rm -f $tmp/config.h
11966 cat >>$CONFIG_STATUS <<\_ACEOF
11968 { (exit 0); exit 0; }
11970 chmod +x $CONFIG_STATUS
11971 ac_clean_files=$ac_clean_files_save
11974 # configure is writing to config.log, and then calls config.status.
11975 # config.status does its own redirection, appending to config.log.
11976 # Unfortunately, on DOS this fails, as config.log is still kept open
11977 # by configure, so config.status won't be able to write to it; its
11978 # output is simply discarded. So we exec the FD to /dev/null,
11979 # effectively closing config.log, so it can be properly (re)opened and
11980 # appended to by config.status. When coming back to configure, we
11981 # need to make the FD available again.
11982 if test "$no_create" != yes; then
11984 ac_config_status_args=
11985 test "$silent" = yes &&
11986 ac_config_status_args="$ac_config_status_args --quiet"
11988 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11990 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11991 # would make configure fail if this is the last instruction.
11992 $ac_cs_success || { (exit 1); exit 1; }
11996 if test "x${srcdir}" != "x."; then
11997 echo "Warning: --srcdir is not supported"