2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
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 SLEXT FREETYPE_CONFIG target target_cpu target_vendor target_os WORDS_BIGENDIAN SYSTEM_BACKTICKS PACKAGE VERSION HAVE_UNISTD_H AVIFILE_CONFIG lame_objects USE_GZIP PYTHON_LIB PYTHON_INCLUDES 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 # Do not use `cd foo && pwd` to compute absolute paths, because
1085 # the directories may not exist.
1087 .) ac_abs_builddir="$ac_dir";;
1090 .) ac_abs_builddir=`pwd`;;
1091 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1092 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1095 case $ac_abs_builddir in
1096 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1098 case ${ac_top_builddir}. in
1099 .) ac_abs_top_builddir=$ac_abs_builddir;;
1100 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1101 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1104 case $ac_abs_builddir in
1105 .) ac_abs_srcdir=$ac_srcdir;;
1108 .) ac_abs_srcdir=$ac_abs_builddir;;
1109 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1110 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1113 case $ac_abs_builddir in
1114 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1116 case $ac_top_srcdir in
1117 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1118 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1119 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1124 # Check for guested configure; otherwise get Cygnus style configure.
1125 if test -f $ac_srcdir/configure.gnu; then
1127 $SHELL $ac_srcdir/configure.gnu --help=recursive
1128 elif test -f $ac_srcdir/configure; then
1130 $SHELL $ac_srcdir/configure --help=recursive
1131 elif test -f $ac_srcdir/configure.ac ||
1132 test -f $ac_srcdir/configure.in; then
1134 $ac_configure --help
1136 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1142 test -n "$ac_init_help" && exit 0
1143 if $ac_init_version; then
1146 Copyright (C) 2003 Free Software Foundation, Inc.
1147 This configure script is free software; the Free Software Foundation
1148 gives unlimited permission to copy, distribute and modify it.
1154 This file contains any messages produced by compilers while
1155 running configure, to aid debugging if configure makes a mistake.
1157 It was created by $as_me, which was
1158 generated by GNU Autoconf 2.59. Invocation command line was
1169 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1170 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1171 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1172 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1173 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1175 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1176 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1178 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1179 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1180 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1181 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1182 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1183 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1184 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1192 test -z "$as_dir" && as_dir=.
1193 echo "PATH: $as_dir"
1208 # Keep a trace of the command line.
1209 # Strip out --no-create and --no-recursion so they do not pile up.
1210 # Strip out --silent because we don't want to record it for future runs.
1211 # Also quote any args containing shell meta-characters.
1212 # Make two passes to allow for proper duplicate-argument suppression.
1217 ac_must_keep_next=false
1223 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225 | -silent | --silent | --silen | --sile | --sil)
1227 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1228 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1231 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1233 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1234 if test $ac_must_keep_next = true; then
1235 ac_must_keep_next=false # Got value, back to normal.
1238 *=* | --config-cache | -C | -disable-* | --disable-* \
1239 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1240 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1241 | -with-* | --with-* | -without-* | --without-* | --x)
1242 case "$ac_configure_args0 " in
1243 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1246 -* ) ac_must_keep_next=true ;;
1249 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1250 # Get rid of the leading space.
1256 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1257 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1259 # When interrupted or exit'd, cleanup temporary files, and complete
1260 # config.log. We remove comments because anyway the quotes in there
1261 # would cause problems or look ugly.
1262 # WARNING: Be sure not to use single quotes in there, as some shells,
1263 # such as our DU 5.0 friend, will then `close' the trap.
1264 trap 'exit_status=$?
1265 # Save into config.log some information that might help in debugging.
1270 ## ---------------- ##
1271 ## Cache variables. ##
1272 ## ---------------- ##
1275 # The following way of writing the cache mishandles newlines in values,
1278 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1281 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1282 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1286 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1293 ## ----------------- ##
1294 ## Output variables. ##
1295 ## ----------------- ##
1298 for ac_var in $ac_subst_vars
1300 eval ac_val=$`echo $ac_var`
1301 echo "$ac_var='"'"'$ac_val'"'"'"
1305 if test -n "$ac_subst_files"; then
1312 for ac_var in $ac_subst_files
1314 eval ac_val=$`echo $ac_var`
1315 echo "$ac_var='"'"'$ac_val'"'"'"
1320 if test -s confdefs.h; then
1327 sed "/^$/d" confdefs.h | sort
1330 test "$ac_signal" != 0 &&
1331 echo "$as_me: caught signal $ac_signal"
1332 echo "$as_me: exit $exit_status"
1334 rm -f core *.core &&
1335 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1338 for ac_signal in 1 2 13 15; do
1339 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1343 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1344 rm -rf conftest* confdefs.h
1345 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1348 # Predefined preprocessor variables.
1350 cat >>confdefs.h <<_ACEOF
1351 #define PACKAGE_NAME "$PACKAGE_NAME"
1355 cat >>confdefs.h <<_ACEOF
1356 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1360 cat >>confdefs.h <<_ACEOF
1361 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1365 cat >>confdefs.h <<_ACEOF
1366 #define PACKAGE_STRING "$PACKAGE_STRING"
1370 cat >>confdefs.h <<_ACEOF
1371 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1375 # Let the site file select an alternate cache file if it wants to.
1376 # Prefer explicitly selected file to automatically selected ones.
1377 if test -z "$CONFIG_SITE"; then
1378 if test "x$prefix" != xNONE; then
1379 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1381 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1384 for ac_site_file in $CONFIG_SITE; do
1385 if test -r "$ac_site_file"; then
1386 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1387 echo "$as_me: loading site script $ac_site_file" >&6;}
1388 sed 's/^/| /' "$ac_site_file" >&5
1393 if test -r "$cache_file"; then
1394 # Some versions of bash will fail to source /dev/null (special
1395 # files actually), so we avoid doing that.
1396 if test -f "$cache_file"; then
1397 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1398 echo "$as_me: loading cache $cache_file" >&6;}
1400 [\\/]* | ?:[\\/]* ) . $cache_file;;
1401 *) . ./$cache_file;;
1405 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1406 echo "$as_me: creating cache $cache_file" >&6;}
1410 # Check that the precious variables saved in the cache have kept the same
1412 ac_cache_corrupted=false
1413 for ac_var in `(set) 2>&1 |
1414 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1415 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1416 eval ac_new_set=\$ac_env_${ac_var}_set
1417 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1418 eval ac_new_val="\$ac_env_${ac_var}_value"
1419 case $ac_old_set,$ac_new_set in
1421 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1422 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1423 ac_cache_corrupted=: ;;
1425 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1426 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1427 ac_cache_corrupted=: ;;
1430 if test "x$ac_old_val" != "x$ac_new_val"; then
1431 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1432 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1433 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1434 echo "$as_me: former value: $ac_old_val" >&2;}
1435 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1436 echo "$as_me: current value: $ac_new_val" >&2;}
1437 ac_cache_corrupted=:
1440 # Pass precious variables to config.status.
1441 if test "$ac_new_set" = set; then
1443 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1444 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1445 *) ac_arg=$ac_var=$ac_new_val ;;
1447 case " $ac_configure_args " in
1448 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1449 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1453 if $ac_cache_corrupted; then
1454 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1455 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1456 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1457 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1458 { (exit 1); exit 1; }; }
1462 ac_cpp='$CPP $CPPFLAGS'
1463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1487 # Check whether --enable-checkmem or --disable-checkmem was given.
1488 if test "${enable_checkmem+set}" = set; then
1489 enableval="$enable_checkmem"
1492 # Check whether --enable-debug or --disable-debug was given.
1493 if test "${enable_debug+set}" = set; then
1494 enableval="$enable_debug"
1497 # Check whether --enable-warnings or --disable-warnings was given.
1498 if test "${enable_warnings+set}" = set; then
1499 enableval="$enable_warnings"
1500 ENABLE_WARNINGS=true
1502 # Check whether --enable-optimizations or --disable-optimizations was given.
1503 if test "${enable_optimizations+set}" = set; then
1504 enableval="$enable_optimizations"
1507 # Check whether --enable-lame or --disable-lame was given.
1508 if test "${enable_lame+set}" = set; then
1509 enableval="$enable_lame"
1514 VERSION=2004-05-18-1254
1518 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1519 if test "x$ENABLE_WARNINGS" '!=' "x";then
1520 WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls"
1523 if test "x$CHECKMEM" '!=' "x";then
1526 if test "x$DEBUG" '!=' "x";then
1527 CFLAGS="$WARNINGS -g $CFLAGS"
1528 CXXFLAGS="$WARNINGS -g $CXXFLAGS"
1529 else if test "x$OPTIMIZE" '!=' "x"; then
1530 CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1531 CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1533 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1534 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1538 #if test "x$OLDGCC" '!=' "x";then
1539 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1540 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1541 # CFLAGS="$CFLAGS -ansi -pendantic"
1542 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1545 export PACKAGE VERSION CFLAGS CXXFLAGS
1548 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1549 if test -f $ac_dir/install-sh; then
1551 ac_install_sh="$ac_aux_dir/install-sh -c"
1553 elif test -f $ac_dir/install.sh; then
1555 ac_install_sh="$ac_aux_dir/install.sh -c"
1557 elif test -f $ac_dir/shtool; then
1559 ac_install_sh="$ac_aux_dir/shtool install -c"
1563 if test -z "$ac_aux_dir"; then
1564 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1565 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1566 { (exit 1); exit 1; }; }
1568 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1569 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1570 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1572 # Make sure we can run config.sub.
1573 $ac_config_sub sun4 >/dev/null 2>&1 ||
1574 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1575 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1576 { (exit 1); exit 1; }; }
1578 echo "$as_me:$LINENO: checking build system type" >&5
1579 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1580 if test "${ac_cv_build+set}" = set; then
1581 echo $ECHO_N "(cached) $ECHO_C" >&6
1583 ac_cv_build_alias=$build_alias
1584 test -z "$ac_cv_build_alias" &&
1585 ac_cv_build_alias=`$ac_config_guess`
1586 test -z "$ac_cv_build_alias" &&
1587 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1588 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1589 { (exit 1); exit 1; }; }
1590 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1591 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1592 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1593 { (exit 1); exit 1; }; }
1596 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1597 echo "${ECHO_T}$ac_cv_build" >&6
1599 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1600 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1601 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1604 echo "$as_me:$LINENO: checking host system type" >&5
1605 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1606 if test "${ac_cv_host+set}" = set; then
1607 echo $ECHO_N "(cached) $ECHO_C" >&6
1609 ac_cv_host_alias=$host_alias
1610 test -z "$ac_cv_host_alias" &&
1611 ac_cv_host_alias=$ac_cv_build_alias
1612 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1613 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1614 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1615 { (exit 1); exit 1; }; }
1618 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1619 echo "${ECHO_T}$ac_cv_host" >&6
1621 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1622 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1623 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1630 CFLAGS="$CFLAGS -fno-rtti"
1631 CXXFLAGS="$CXXFLAGS -fno-rtti"
1635 ac_cpp='$CPP $CPPFLAGS'
1636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1639 if test -n "$ac_tool_prefix"; then
1640 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1641 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1642 echo "$as_me:$LINENO: checking for $ac_word" >&5
1643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1644 if test "${ac_cv_prog_CC+set}" = set; then
1645 echo $ECHO_N "(cached) $ECHO_C" >&6
1647 if test -n "$CC"; then
1648 ac_cv_prog_CC="$CC" # Let the user override the test.
1650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1654 test -z "$as_dir" && as_dir=.
1655 for ac_exec_ext in '' $ac_executable_extensions; do
1656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1657 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1667 if test -n "$CC"; then
1668 echo "$as_me:$LINENO: result: $CC" >&5
1669 echo "${ECHO_T}$CC" >&6
1671 echo "$as_me:$LINENO: result: no" >&5
1672 echo "${ECHO_T}no" >&6
1676 if test -z "$ac_cv_prog_CC"; then
1678 # Extract the first word of "gcc", so it can be a program name with args.
1679 set dummy gcc; ac_word=$2
1680 echo "$as_me:$LINENO: checking for $ac_word" >&5
1681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1682 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1683 echo $ECHO_N "(cached) $ECHO_C" >&6
1685 if test -n "$ac_ct_CC"; then
1686 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1692 test -z "$as_dir" && as_dir=.
1693 for ac_exec_ext in '' $ac_executable_extensions; do
1694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1695 ac_cv_prog_ac_ct_CC="gcc"
1696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1704 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1705 if test -n "$ac_ct_CC"; then
1706 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1707 echo "${ECHO_T}$ac_ct_CC" >&6
1709 echo "$as_me:$LINENO: result: no" >&5
1710 echo "${ECHO_T}no" >&6
1718 if test -z "$CC"; then
1719 if test -n "$ac_tool_prefix"; then
1720 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1721 set dummy ${ac_tool_prefix}cc; ac_word=$2
1722 echo "$as_me:$LINENO: checking for $ac_word" >&5
1723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1724 if test "${ac_cv_prog_CC+set}" = set; then
1725 echo $ECHO_N "(cached) $ECHO_C" >&6
1727 if test -n "$CC"; then
1728 ac_cv_prog_CC="$CC" # Let the user override the test.
1730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1734 test -z "$as_dir" && as_dir=.
1735 for ac_exec_ext in '' $ac_executable_extensions; do
1736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1737 ac_cv_prog_CC="${ac_tool_prefix}cc"
1738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1747 if test -n "$CC"; then
1748 echo "$as_me:$LINENO: result: $CC" >&5
1749 echo "${ECHO_T}$CC" >&6
1751 echo "$as_me:$LINENO: result: no" >&5
1752 echo "${ECHO_T}no" >&6
1756 if test -z "$ac_cv_prog_CC"; then
1758 # Extract the first word of "cc", so it can be a program name with args.
1759 set dummy cc; ac_word=$2
1760 echo "$as_me:$LINENO: checking for $ac_word" >&5
1761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1762 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1763 echo $ECHO_N "(cached) $ECHO_C" >&6
1765 if test -n "$ac_ct_CC"; then
1766 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1772 test -z "$as_dir" && as_dir=.
1773 for ac_exec_ext in '' $ac_executable_extensions; do
1774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1775 ac_cv_prog_ac_ct_CC="cc"
1776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1784 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1785 if test -n "$ac_ct_CC"; then
1786 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1787 echo "${ECHO_T}$ac_ct_CC" >&6
1789 echo "$as_me:$LINENO: result: no" >&5
1790 echo "${ECHO_T}no" >&6
1799 if test -z "$CC"; then
1800 # Extract the first word of "cc", so it can be a program name with args.
1801 set dummy cc; ac_word=$2
1802 echo "$as_me:$LINENO: checking for $ac_word" >&5
1803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1804 if test "${ac_cv_prog_CC+set}" = set; then
1805 echo $ECHO_N "(cached) $ECHO_C" >&6
1807 if test -n "$CC"; then
1808 ac_cv_prog_CC="$CC" # Let the user override the test.
1811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815 test -z "$as_dir" && as_dir=.
1816 for ac_exec_ext in '' $ac_executable_extensions; do
1817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1818 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1819 ac_prog_rejected=yes
1823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1829 if test $ac_prog_rejected = yes; then
1830 # We found a bogon in the path, so make sure we never use it.
1831 set dummy $ac_cv_prog_CC
1833 if test $# != 0; then
1834 # We chose a different compiler from the bogus one.
1835 # However, it has the same basename, so the bogon will be chosen
1836 # first if we set CC to just the basename; use the full file name.
1838 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1844 if test -n "$CC"; then
1845 echo "$as_me:$LINENO: result: $CC" >&5
1846 echo "${ECHO_T}$CC" >&6
1848 echo "$as_me:$LINENO: result: no" >&5
1849 echo "${ECHO_T}no" >&6
1853 if test -z "$CC"; then
1854 if test -n "$ac_tool_prefix"; then
1857 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1858 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1859 echo "$as_me:$LINENO: checking for $ac_word" >&5
1860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1861 if test "${ac_cv_prog_CC+set}" = set; then
1862 echo $ECHO_N "(cached) $ECHO_C" >&6
1864 if test -n "$CC"; then
1865 ac_cv_prog_CC="$CC" # Let the user override the test.
1867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1871 test -z "$as_dir" && as_dir=.
1872 for ac_exec_ext in '' $ac_executable_extensions; do
1873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1874 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1884 if test -n "$CC"; then
1885 echo "$as_me:$LINENO: result: $CC" >&5
1886 echo "${ECHO_T}$CC" >&6
1888 echo "$as_me:$LINENO: result: no" >&5
1889 echo "${ECHO_T}no" >&6
1892 test -n "$CC" && break
1895 if test -z "$CC"; then
1899 # Extract the first word of "$ac_prog", so it can be a program name with args.
1900 set dummy $ac_prog; ac_word=$2
1901 echo "$as_me:$LINENO: checking for $ac_word" >&5
1902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1903 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1904 echo $ECHO_N "(cached) $ECHO_C" >&6
1906 if test -n "$ac_ct_CC"; then
1907 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913 test -z "$as_dir" && as_dir=.
1914 for ac_exec_ext in '' $ac_executable_extensions; do
1915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1916 ac_cv_prog_ac_ct_CC="$ac_prog"
1917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1925 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1926 if test -n "$ac_ct_CC"; then
1927 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1928 echo "${ECHO_T}$ac_ct_CC" >&6
1930 echo "$as_me:$LINENO: result: no" >&5
1931 echo "${ECHO_T}no" >&6
1934 test -n "$ac_ct_CC" && break
1943 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1944 See \`config.log' for more details." >&5
1945 echo "$as_me: error: no acceptable C compiler found in \$PATH
1946 See \`config.log' for more details." >&2;}
1947 { (exit 1); exit 1; }; }
1949 # Provide some information about the compiler.
1950 echo "$as_me:$LINENO:" \
1951 "checking for C compiler version" >&5
1952 ac_compiler=`set X $ac_compile; echo $2`
1953 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1954 (eval $ac_compiler --version </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); }
1963 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1964 (eval $ac_compiler -V </dev/null >&5) 2>&5
1966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1967 (exit $ac_status); }
1969 cat >conftest.$ac_ext <<_ACEOF
1972 cat confdefs.h >>conftest.$ac_ext
1973 cat >>conftest.$ac_ext <<_ACEOF
1974 /* end confdefs.h. */
1984 ac_clean_files_save=$ac_clean_files
1985 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1986 # Try to create an executable without -o first, disregard a.out.
1987 # It will help us diagnose broken compilers, and finding out an intuition
1989 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1990 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1991 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1992 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1993 (eval $ac_link_default) 2>&5
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); }; then
1997 # Find the output, starting from the most likely. This scheme is
1998 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2001 # Be careful to initialize this variable, since it used to be cached.
2002 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2004 # b.out is created by i960 compilers.
2005 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2007 test -f "$ac_file" || continue
2009 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2012 # This is the source file.
2015 # We found the default executable, but exeext='' is most
2019 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2020 # FIXME: I believe we export ac_cv_exeext for Libtool,
2021 # but it would be cool to find out if it's true. Does anybody
2022 # maintain Libtool? --akim.
2030 echo "$as_me: failed program was:" >&5
2031 sed 's/^/| /' conftest.$ac_ext >&5
2033 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2034 See \`config.log' for more details." >&5
2035 echo "$as_me: error: C compiler cannot create executables
2036 See \`config.log' for more details." >&2;}
2037 { (exit 77); exit 77; }; }
2040 ac_exeext=$ac_cv_exeext
2041 echo "$as_me:$LINENO: result: $ac_file" >&5
2042 echo "${ECHO_T}$ac_file" >&6
2044 # Check the compiler produces executables we can run. If not, either
2045 # the compiler is broken, or we cross compile.
2046 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2047 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2048 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2049 # If not cross compiling, check that we can run a simple program.
2050 if test "$cross_compiling" != yes; then
2051 if { ac_try='./$ac_file'
2052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); }; }; then
2059 if test "$cross_compiling" = maybe; then
2062 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2063 If you meant to cross compile, use \`--host'.
2064 See \`config.log' for more details." >&5
2065 echo "$as_me: error: cannot run C compiled programs.
2066 If you meant to cross compile, use \`--host'.
2067 See \`config.log' for more details." >&2;}
2068 { (exit 1); exit 1; }; }
2072 echo "$as_me:$LINENO: result: yes" >&5
2073 echo "${ECHO_T}yes" >&6
2075 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2076 ac_clean_files=$ac_clean_files_save
2077 # Check the compiler produces executables we can run. If not, either
2078 # the compiler is broken, or we cross compile.
2079 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2080 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2081 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2082 echo "${ECHO_T}$cross_compiling" >&6
2084 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2085 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2087 (eval $ac_link) 2>&5
2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); }; then
2091 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2092 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2093 # work properly (i.e., refer to `conftest.exe'), while it won't with
2095 for ac_file in conftest.exe conftest conftest.*; do
2096 test -f "$ac_file" || continue
2098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2099 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2106 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2107 See \`config.log' for more details." >&5
2108 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2109 See \`config.log' for more details." >&2;}
2110 { (exit 1); exit 1; }; }
2113 rm -f conftest$ac_cv_exeext
2114 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2115 echo "${ECHO_T}$ac_cv_exeext" >&6
2117 rm -f conftest.$ac_ext
2118 EXEEXT=$ac_cv_exeext
2120 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2121 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2122 if test "${ac_cv_objext+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2125 cat >conftest.$ac_ext <<_ACEOF
2128 cat confdefs.h >>conftest.$ac_ext
2129 cat >>conftest.$ac_ext <<_ACEOF
2130 /* end confdefs.h. */
2140 rm -f conftest.o conftest.obj
2141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2142 (eval $ac_compile) 2>&5
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }; then
2146 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2148 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2149 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2154 echo "$as_me: failed program was:" >&5
2155 sed 's/^/| /' conftest.$ac_ext >&5
2157 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2158 See \`config.log' for more details." >&5
2159 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2160 See \`config.log' for more details." >&2;}
2161 { (exit 1); exit 1; }; }
2164 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2166 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2167 echo "${ECHO_T}$ac_cv_objext" >&6
2168 OBJEXT=$ac_cv_objext
2170 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2171 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2172 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2173 echo $ECHO_N "(cached) $ECHO_C" >&6
2175 cat >conftest.$ac_ext <<_ACEOF
2178 cat confdefs.h >>conftest.$ac_ext
2179 cat >>conftest.$ac_ext <<_ACEOF
2180 /* end confdefs.h. */
2193 rm -f conftest.$ac_objext
2194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2195 (eval $ac_compile) 2>conftest.er1
2197 grep -v '^ *+' conftest.er1 >conftest.err
2199 cat conftest.err >&5
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); } &&
2202 { ac_try='test -z "$ac_c_werror_flag"
2203 || test ! -s conftest.err'
2204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; } &&
2209 { ac_try='test -s conftest.$ac_objext'
2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; }; then
2217 echo "$as_me: failed program was:" >&5
2218 sed 's/^/| /' conftest.$ac_ext >&5
2222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2223 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2226 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2227 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2228 GCC=`test $ac_compiler_gnu = yes && echo yes`
2229 ac_test_CFLAGS=${CFLAGS+set}
2230 ac_save_CFLAGS=$CFLAGS
2232 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2233 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2234 if test "${ac_cv_prog_cc_g+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
2237 cat >conftest.$ac_ext <<_ACEOF
2240 cat confdefs.h >>conftest.$ac_ext
2241 cat >>conftest.$ac_ext <<_ACEOF
2242 /* end confdefs.h. */
2252 rm -f conftest.$ac_objext
2253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2254 (eval $ac_compile) 2>conftest.er1
2256 grep -v '^ *+' conftest.er1 >conftest.err
2258 cat conftest.err >&5
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); } &&
2261 { ac_try='test -z "$ac_c_werror_flag"
2262 || test ! -s conftest.err'
2263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }; } &&
2268 { ac_try='test -s conftest.$ac_objext'
2269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; }; then
2276 echo "$as_me: failed program was:" >&5
2277 sed 's/^/| /' conftest.$ac_ext >&5
2281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2283 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2284 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2285 if test "$ac_test_CFLAGS" = set; then
2286 CFLAGS=$ac_save_CFLAGS
2287 elif test $ac_cv_prog_cc_g = yes; then
2288 if test "$GCC" = yes; then
2294 if test "$GCC" = yes; then
2300 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2301 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2302 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2305 ac_cv_prog_cc_stdc=no
2307 cat >conftest.$ac_ext <<_ACEOF
2310 cat confdefs.h >>conftest.$ac_ext
2311 cat >>conftest.$ac_ext <<_ACEOF
2312 /* end confdefs.h. */
2315 #include <sys/types.h>
2316 #include <sys/stat.h>
2317 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2318 struct buf { int x; };
2319 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2320 static char *e (p, i)
2326 static char *f (char * (*g) (char **, int), char **p, ...)
2331 s = g (p, va_arg (v,int));
2336 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2337 function prototypes and stuff, but not '\xHH' hex character constants.
2338 These don't provoke an error unfortunately, instead are silently treated
2339 as 'x'. The following induces an error, until -std1 is added to get
2340 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2341 array size at least. It's necessary to write '\x00'==0 to get something
2342 that's true only with -std1. */
2343 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2345 int test (int i, double x);
2346 struct s1 {int (*f) (int a);};
2347 struct s2 {int (*f) (double a);};
2348 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2354 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2359 # Don't try gcc -ansi; that turns off useful extensions and
2360 # breaks some systems' header files.
2361 # AIX -qlanglvl=ansi
2362 # Ultrix and OSF/1 -std1
2363 # HP-UX 10.20 and later -Ae
2364 # HP-UX older versions -Aa -D_HPUX_SOURCE
2365 # SVR4 -Xc -D__EXTENSIONS__
2366 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2368 CC="$ac_save_CC $ac_arg"
2369 rm -f conftest.$ac_objext
2370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2371 (eval $ac_compile) 2>conftest.er1
2373 grep -v '^ *+' conftest.er1 >conftest.err
2375 cat conftest.err >&5
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); } &&
2378 { ac_try='test -z "$ac_c_werror_flag"
2379 || test ! -s conftest.err'
2380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); }; } &&
2385 { ac_try='test -s conftest.$ac_objext'
2386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }; }; then
2391 ac_cv_prog_cc_stdc=$ac_arg
2394 echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.$ac_ext >&5
2398 rm -f conftest.err conftest.$ac_objext
2400 rm -f conftest.$ac_ext conftest.$ac_objext
2405 case "x$ac_cv_prog_cc_stdc" in
2407 echo "$as_me:$LINENO: result: none needed" >&5
2408 echo "${ECHO_T}none needed" >&6 ;;
2410 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2411 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2412 CC="$CC $ac_cv_prog_cc_stdc" ;;
2415 # Some people use a C++ compiler to compile C. Since we use `exit',
2416 # in C++ we need to declare it. In case someone uses the same compiler
2417 # for both compiling C and C++ we need to have the C++ compiler decide
2418 # the declaration of exit, since it's the most demanding environment.
2419 cat >conftest.$ac_ext <<_ACEOF
2424 rm -f conftest.$ac_objext
2425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2426 (eval $ac_compile) 2>conftest.er1
2428 grep -v '^ *+' conftest.er1 >conftest.err
2430 cat conftest.err >&5
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); } &&
2433 { ac_try='test -z "$ac_c_werror_flag"
2434 || test ! -s conftest.err'
2435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }; } &&
2440 { ac_try='test -s conftest.$ac_objext'
2441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); }; }; then
2446 for ac_declaration in \
2448 'extern "C" void std::exit (int) throw (); using std::exit;' \
2449 'extern "C" void std::exit (int); using std::exit;' \
2450 'extern "C" void exit (int) throw ();' \
2451 'extern "C" void exit (int);' \
2454 cat >conftest.$ac_ext <<_ACEOF
2457 cat confdefs.h >>conftest.$ac_ext
2458 cat >>conftest.$ac_ext <<_ACEOF
2459 /* end confdefs.h. */
2470 rm -f conftest.$ac_objext
2471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2472 (eval $ac_compile) 2>conftest.er1
2474 grep -v '^ *+' conftest.er1 >conftest.err
2476 cat conftest.err >&5
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); } &&
2479 { ac_try='test -z "$ac_c_werror_flag"
2480 || test ! -s conftest.err'
2481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }; } &&
2486 { ac_try='test -s conftest.$ac_objext'
2487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }; }; then
2494 echo "$as_me: failed program was:" >&5
2495 sed 's/^/| /' conftest.$ac_ext >&5
2499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2500 cat >conftest.$ac_ext <<_ACEOF
2503 cat confdefs.h >>conftest.$ac_ext
2504 cat >>conftest.$ac_ext <<_ACEOF
2505 /* end confdefs.h. */
2515 rm -f conftest.$ac_objext
2516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2517 (eval $ac_compile) 2>conftest.er1
2519 grep -v '^ *+' conftest.er1 >conftest.err
2521 cat conftest.err >&5
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); } &&
2524 { ac_try='test -z "$ac_c_werror_flag"
2525 || test ! -s conftest.err'
2526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; } &&
2531 { ac_try='test -s conftest.$ac_objext'
2532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; }; then
2539 echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2546 if test -n "$ac_declaration"; then
2547 echo '#ifdef __cplusplus' >>confdefs.h
2548 echo $ac_declaration >>confdefs.h
2549 echo '#endif' >>confdefs.h
2553 echo "$as_me: failed program was:" >&5
2554 sed 's/^/| /' conftest.$ac_ext >&5
2557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2559 ac_cpp='$CPP $CPPFLAGS'
2560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2565 ac_cpp='$CXXCPP $CPPFLAGS'
2566 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2567 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2568 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2569 if test -n "$ac_tool_prefix"; then
2570 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2572 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2573 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2574 echo "$as_me:$LINENO: checking for $ac_word" >&5
2575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2576 if test "${ac_cv_prog_CXX+set}" = set; then
2577 echo $ECHO_N "(cached) $ECHO_C" >&6
2579 if test -n "$CXX"; then
2580 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586 test -z "$as_dir" && as_dir=.
2587 for ac_exec_ext in '' $ac_executable_extensions; do
2588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2589 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2599 if test -n "$CXX"; then
2600 echo "$as_me:$LINENO: result: $CXX" >&5
2601 echo "${ECHO_T}$CXX" >&6
2603 echo "$as_me:$LINENO: result: no" >&5
2604 echo "${ECHO_T}no" >&6
2607 test -n "$CXX" && break
2610 if test -z "$CXX"; then
2612 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2614 # Extract the first word of "$ac_prog", so it can be a program name with args.
2615 set dummy $ac_prog; ac_word=$2
2616 echo "$as_me:$LINENO: checking for $ac_word" >&5
2617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2618 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
2621 if test -n "$ac_ct_CXX"; then
2622 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628 test -z "$as_dir" && as_dir=.
2629 for ac_exec_ext in '' $ac_executable_extensions; do
2630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2631 ac_cv_prog_ac_ct_CXX="$ac_prog"
2632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2640 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2641 if test -n "$ac_ct_CXX"; then
2642 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2643 echo "${ECHO_T}$ac_ct_CXX" >&6
2645 echo "$as_me:$LINENO: result: no" >&5
2646 echo "${ECHO_T}no" >&6
2649 test -n "$ac_ct_CXX" && break
2651 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2657 # Provide some information about the compiler.
2658 echo "$as_me:$LINENO:" \
2659 "checking for C++ compiler version" >&5
2660 ac_compiler=`set X $ac_compile; echo $2`
2661 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2662 (eval $ac_compiler --version </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); }
2671 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2672 (eval $ac_compiler -V </dev/null >&5) 2>&5
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }
2677 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2678 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2679 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 cat >conftest.$ac_ext <<_ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h. */
2700 rm -f conftest.$ac_objext
2701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2702 (eval $ac_compile) 2>conftest.er1
2704 grep -v '^ *+' conftest.er1 >conftest.err
2706 cat conftest.err >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); } &&
2709 { ac_try='test -z "$ac_cxx_werror_flag"
2710 || test ! -s conftest.err'
2711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }; } &&
2716 { ac_try='test -s conftest.$ac_objext'
2717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; }; then
2724 echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2730 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2733 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2734 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2735 GXX=`test $ac_compiler_gnu = yes && echo yes`
2736 ac_test_CXXFLAGS=${CXXFLAGS+set}
2737 ac_save_CXXFLAGS=$CXXFLAGS
2739 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2740 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2741 if test "${ac_cv_prog_cxx_g+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2744 cat >conftest.$ac_ext <<_ACEOF
2747 cat confdefs.h >>conftest.$ac_ext
2748 cat >>conftest.$ac_ext <<_ACEOF
2749 /* end confdefs.h. */
2759 rm -f conftest.$ac_objext
2760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2761 (eval $ac_compile) 2>conftest.er1
2763 grep -v '^ *+' conftest.er1 >conftest.err
2765 cat conftest.err >&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); } &&
2768 { ac_try='test -z "$ac_cxx_werror_flag"
2769 || test ! -s conftest.err'
2770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); }; } &&
2775 { ac_try='test -s conftest.$ac_objext'
2776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; }; then
2781 ac_cv_prog_cxx_g=yes
2783 echo "$as_me: failed program was:" >&5
2784 sed 's/^/| /' conftest.$ac_ext >&5
2788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2790 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2791 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2792 if test "$ac_test_CXXFLAGS" = set; then
2793 CXXFLAGS=$ac_save_CXXFLAGS
2794 elif test $ac_cv_prog_cxx_g = yes; then
2795 if test "$GXX" = yes; then
2801 if test "$GXX" = yes; then
2807 for ac_declaration in \
2809 'extern "C" void std::exit (int) throw (); using std::exit;' \
2810 'extern "C" void std::exit (int); using std::exit;' \
2811 'extern "C" void exit (int) throw ();' \
2812 'extern "C" void exit (int);' \
2815 cat >conftest.$ac_ext <<_ACEOF
2818 cat confdefs.h >>conftest.$ac_ext
2819 cat >>conftest.$ac_ext <<_ACEOF
2820 /* end confdefs.h. */
2831 rm -f conftest.$ac_objext
2832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2833 (eval $ac_compile) 2>conftest.er1
2835 grep -v '^ *+' conftest.er1 >conftest.err
2837 cat conftest.err >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } &&
2840 { ac_try='test -z "$ac_cxx_werror_flag"
2841 || test ! -s conftest.err'
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; } &&
2847 { ac_try='test -s conftest.$ac_objext'
2848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; }; then
2855 echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2861 cat >conftest.$ac_ext <<_ACEOF
2864 cat confdefs.h >>conftest.$ac_ext
2865 cat >>conftest.$ac_ext <<_ACEOF
2866 /* end confdefs.h. */
2876 rm -f conftest.$ac_objext
2877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2878 (eval $ac_compile) 2>conftest.er1
2880 grep -v '^ *+' conftest.er1 >conftest.err
2882 cat conftest.err >&5
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); } &&
2885 { ac_try='test -z "$ac_cxx_werror_flag"
2886 || test ! -s conftest.err'
2887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; } &&
2892 { ac_try='test -s conftest.$ac_objext'
2893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }; }; then
2900 echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2907 if test -n "$ac_declaration"; then
2908 echo '#ifdef __cplusplus' >>confdefs.h
2909 echo $ac_declaration >>confdefs.h
2910 echo '#endif' >>confdefs.h
2914 ac_cpp='$CPP $CPPFLAGS'
2915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2920 if test "x$CHECKMEM" '!=' "x";then
2924 #unset ac_cv_prog_CC
2925 #unset ac_cv_prog_CXX
2930 ac_cpp='$CPP $CPPFLAGS'
2931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2934 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2935 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2936 # On Suns, sometimes $CPP names a directory.
2937 if test -n "$CPP" && test -d "$CPP"; then
2940 if test -z "$CPP"; then
2941 if test "${ac_cv_prog_CPP+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2944 # Double quotes because CPP needs to be expanded
2945 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2948 for ac_c_preproc_warn_flag in '' yes
2950 # Use a header file that comes with gcc, so configuring glibc
2951 # with a fresh cross-compiler works.
2952 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2953 # <limits.h> exists even on freestanding compilers.
2954 # On the NeXT, cc -E runs the code through the compiler's parser,
2955 # not just through cpp. "Syntax error" is here to catch this case.
2956 cat >conftest.$ac_ext <<_ACEOF
2959 cat confdefs.h >>conftest.$ac_ext
2960 cat >>conftest.$ac_ext <<_ACEOF
2961 /* end confdefs.h. */
2963 # include <limits.h>
2965 # include <assert.h>
2969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2972 grep -v '^ *+' conftest.er1 >conftest.err
2974 cat conftest.err >&5
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); } >/dev/null; then
2977 if test -s conftest.err; then
2978 ac_cpp_err=$ac_c_preproc_warn_flag
2979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2986 if test -z "$ac_cpp_err"; then
2989 echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2992 # Broken: fails on valid input.
2995 rm -f conftest.err conftest.$ac_ext
2997 # OK, works on sane cases. Now check whether non-existent headers
2998 # can be detected and how.
2999 cat >conftest.$ac_ext <<_ACEOF
3002 cat confdefs.h >>conftest.$ac_ext
3003 cat >>conftest.$ac_ext <<_ACEOF
3004 /* end confdefs.h. */
3005 #include <ac_nonexistent.h>
3007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3010 grep -v '^ *+' conftest.er1 >conftest.err
3012 cat conftest.err >&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); } >/dev/null; then
3015 if test -s conftest.err; then
3016 ac_cpp_err=$ac_c_preproc_warn_flag
3017 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3024 if test -z "$ac_cpp_err"; then
3025 # Broken: success on invalid input.
3028 echo "$as_me: failed program was:" >&5
3029 sed 's/^/| /' conftest.$ac_ext >&5
3031 # Passes both tests.
3035 rm -f conftest.err conftest.$ac_ext
3038 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3039 rm -f conftest.err conftest.$ac_ext
3040 if $ac_preproc_ok; then
3052 echo "$as_me:$LINENO: result: $CPP" >&5
3053 echo "${ECHO_T}$CPP" >&6
3055 for ac_c_preproc_warn_flag in '' yes
3057 # Use a header file that comes with gcc, so configuring glibc
3058 # with a fresh cross-compiler works.
3059 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3060 # <limits.h> exists even on freestanding compilers.
3061 # On the NeXT, cc -E runs the code through the compiler's parser,
3062 # not just through cpp. "Syntax error" is here to catch this case.
3063 cat >conftest.$ac_ext <<_ACEOF
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h. */
3070 # include <limits.h>
3072 # include <assert.h>
3076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3079 grep -v '^ *+' conftest.er1 >conftest.err
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } >/dev/null; then
3084 if test -s conftest.err; then
3085 ac_cpp_err=$ac_c_preproc_warn_flag
3086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3093 if test -z "$ac_cpp_err"; then
3096 echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3099 # Broken: fails on valid input.
3102 rm -f conftest.err conftest.$ac_ext
3104 # OK, works on sane cases. Now check whether non-existent headers
3105 # can be detected and how.
3106 cat >conftest.$ac_ext <<_ACEOF
3109 cat confdefs.h >>conftest.$ac_ext
3110 cat >>conftest.$ac_ext <<_ACEOF
3111 /* end confdefs.h. */
3112 #include <ac_nonexistent.h>
3114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3115 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3117 grep -v '^ *+' conftest.er1 >conftest.err
3119 cat conftest.err >&5
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); } >/dev/null; then
3122 if test -s conftest.err; then
3123 ac_cpp_err=$ac_c_preproc_warn_flag
3124 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3131 if test -z "$ac_cpp_err"; then
3132 # Broken: success on invalid input.
3135 echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3138 # Passes both tests.
3142 rm -f conftest.err conftest.$ac_ext
3145 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3146 rm -f conftest.err conftest.$ac_ext
3147 if $ac_preproc_ok; then
3150 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3151 See \`config.log' for more details." >&5
3152 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3153 See \`config.log' for more details." >&2;}
3154 { (exit 1); exit 1; }; }
3158 ac_cpp='$CPP $CPPFLAGS'
3159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3164 if test -n "$ac_tool_prefix"; then
3165 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3166 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3167 echo "$as_me:$LINENO: checking for $ac_word" >&5
3168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3169 if test "${ac_cv_prog_RANLIB+set}" = set; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
3172 if test -n "$RANLIB"; then
3173 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179 test -z "$as_dir" && as_dir=.
3180 for ac_exec_ext in '' $ac_executable_extensions; do
3181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3182 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3191 RANLIB=$ac_cv_prog_RANLIB
3192 if test -n "$RANLIB"; then
3193 echo "$as_me:$LINENO: result: $RANLIB" >&5
3194 echo "${ECHO_T}$RANLIB" >&6
3196 echo "$as_me:$LINENO: result: no" >&5
3197 echo "${ECHO_T}no" >&6
3201 if test -z "$ac_cv_prog_RANLIB"; then
3202 ac_ct_RANLIB=$RANLIB
3203 # Extract the first word of "ranlib", so it can be a program name with args.
3204 set dummy ranlib; ac_word=$2
3205 echo "$as_me:$LINENO: checking for $ac_word" >&5
3206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3207 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3210 if test -n "$ac_ct_RANLIB"; then
3211 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 test -z "$as_dir" && as_dir=.
3218 for ac_exec_ext in '' $ac_executable_extensions; do
3219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3220 ac_cv_prog_ac_ct_RANLIB="ranlib"
3221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3227 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3230 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3231 if test -n "$ac_ct_RANLIB"; then
3232 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3233 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3235 echo "$as_me:$LINENO: result: no" >&5
3236 echo "${ECHO_T}no" >&6
3239 RANLIB=$ac_ct_RANLIB
3241 RANLIB="$ac_cv_prog_RANLIB"
3244 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3245 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3246 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3247 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 cat >conftest.make <<\_ACEOF
3252 @echo 'ac_maketemp="$(MAKE)"'
3254 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3255 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3256 if test -n "$ac_maketemp"; then
3257 eval ac_cv_prog_make_${ac_make}_set=yes
3259 eval ac_cv_prog_make_${ac_make}_set=no
3263 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3264 echo "$as_me:$LINENO: result: yes" >&5
3265 echo "${ECHO_T}yes" >&6
3268 echo "$as_me:$LINENO: result: no" >&5
3269 echo "${ECHO_T}no" >&6
3270 SET_MAKE="MAKE=${MAKE-make}"
3273 # Find a good install program. We prefer a C program (faster),
3274 # so one script is as good as another. But avoid the broken or
3275 # incompatible versions:
3276 # SysV /etc/install, /usr/sbin/install
3277 # SunOS /usr/etc/install
3278 # IRIX /sbin/install
3280 # AmigaOS /C/install, which installs bootblocks on floppy discs
3281 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3282 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3283 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3284 # OS/2's system install, which has a completely different semantic
3285 # ./install, which can be erroneously created by make from ./install.sh.
3286 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3287 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3288 if test -z "$INSTALL"; then
3289 if test "${ac_cv_path_install+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 test -z "$as_dir" && as_dir=.
3297 # Account for people who put trailing slashes in PATH elements.
3299 ./ | .// | /cC/* | \
3300 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3301 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3304 # OSF1 and SCO ODT 3.0 have their own names for install.
3305 # Don't use installbsd from OSF since it installs stuff as root
3307 for ac_prog in ginstall scoinst install; do
3308 for ac_exec_ext in '' $ac_executable_extensions; do
3309 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3310 if test $ac_prog = install &&
3311 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3312 # AIX install. It has an incompatible calling convention.
3314 elif test $ac_prog = install &&
3315 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3316 # program-specific install script used by HP pwplus--don't use.
3319 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3331 if test "${ac_cv_path_install+set}" = set; then
3332 INSTALL=$ac_cv_path_install
3334 # As a last resort, use the slow shell script. We don't cache a
3335 # path for INSTALL within a source directory, because that will
3336 # break other packages using the cache if that directory is
3337 # removed, or if the path is relative.
3338 INSTALL=$ac_install_sh
3341 echo "$as_me:$LINENO: result: $INSTALL" >&5
3342 echo "${ECHO_T}$INSTALL" >&6
3344 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3345 # It thinks the first close brace ends the variable substitution.
3346 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3348 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3350 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3352 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3353 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3355 if test "$LN_S" = "ln -s"; then
3356 echo "$as_me:$LINENO: result: yes" >&5
3357 echo "${ECHO_T}yes" >&6
3359 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3360 echo "${ECHO_T}no, using $LN_S" >&6
3363 # Check whether --enable-shared or --disable-shared was given.
3364 if test "${enable_shared+set}" = set; then
3365 enableval="$enable_shared"
3366 p=${PACKAGE-default}
3368 yes) enable_shared=yes ;;
3369 no) enable_shared=no ;;
3372 # Look at the argument we got. We use all the common list separators.
3373 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3374 for pkg in $enableval; do
3375 if test "X$pkg" = "X$p"; then
3385 # Check whether --enable-static or --disable-static was given.
3386 if test "${enable_static+set}" = set; then
3387 enableval="$enable_static"
3388 p=${PACKAGE-default}
3390 yes) enable_static=yes ;;
3391 no) enable_static=no ;;
3394 # Look at the argument we got. We use all the common list separators.
3395 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3396 for pkg in $enableval; do
3397 if test "X$pkg" = "X$p"; then
3407 # Check whether --enable-fast-install or --disable-fast-install was given.
3408 if test "${enable_fast_install+set}" = set; then
3409 enableval="$enable_fast_install"
3410 p=${PACKAGE-default}
3412 yes) enable_fast_install=yes ;;
3413 no) enable_fast_install=no ;;
3415 enable_fast_install=no
3416 # Look at the argument we got. We use all the common list separators.
3417 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3418 for pkg in $enableval; do
3419 if test "X$pkg" = "X$p"; then
3420 enable_fast_install=yes
3427 enable_fast_install=yes
3429 # Find the correct PATH separator. Usually this is `:', but
3430 # DJGPP uses `;' like DOS.
3431 if test "X${PATH_SEPARATOR+set}" != Xset; then
3432 UNAME=${UNAME-`uname 2>/dev/null`}
3434 *-DOS) lt_cv_sys_path_separator=';' ;;
3435 *) lt_cv_sys_path_separator=':' ;;
3437 PATH_SEPARATOR=$lt_cv_sys_path_separator
3441 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3442 if test "${with_gnu_ld+set}" = set; then
3443 withval="$with_gnu_ld"
3444 test "$withval" = no || with_gnu_ld=yes
3449 if test "$GCC" = yes; then
3450 # Check if gcc -print-prog-name=ld gives a path.
3451 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3452 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3455 # gcc leaves a trailing carriage return which upsets mingw
3456 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3458 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3461 # Accept absolute paths.
3462 [\\/]* | [A-Za-z]:[\\/]*)
3463 re_direlt='/[^/][^/]*/\.\./'
3464 # Canonicalize the path of ld
3465 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3466 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3467 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3469 test -z "$LD" && LD="$ac_prog"
3472 # If it fails, then pretend we aren't using GCC.
3476 # If it is relative, then search for the first ld in PATH.
3480 elif test "$with_gnu_ld" = yes; then
3481 echo "$as_me:$LINENO: checking for GNU ld" >&5
3482 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3484 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3485 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3487 if test "${lt_cv_path_LD+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 if test -z "$LD"; then
3491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3492 for ac_dir in $PATH; do
3493 test -z "$ac_dir" && ac_dir=.
3494 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3495 lt_cv_path_LD="$ac_dir/$ac_prog"
3496 # Check to see if the program is GNU ld. I'd rather use --version,
3497 # but apparently some GNU ld's only accept -v.
3498 # Break only if it was the GNU/non-GNU ld that we prefer.
3499 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3500 test "$with_gnu_ld" != no && break
3502 test "$with_gnu_ld" != yes && break
3508 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3513 if test -n "$LD"; then
3514 echo "$as_me:$LINENO: result: $LD" >&5
3515 echo "${ECHO_T}$LD" >&6
3517 echo "$as_me:$LINENO: result: no" >&5
3518 echo "${ECHO_T}no" >&6
3520 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3521 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3522 { (exit 1); exit 1; }; }
3523 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3524 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3525 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" >&6
3528 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3529 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3530 lt_cv_prog_gnu_ld=yes
3532 lt_cv_prog_gnu_ld=no
3535 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3536 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3537 with_gnu_ld=$lt_cv_prog_gnu_ld
3540 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3541 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3542 if test "${lt_cv_ld_reload_flag+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 lt_cv_ld_reload_flag='-r'
3547 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3548 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3549 reload_flag=$lt_cv_ld_reload_flag
3550 test -n "$reload_flag" && reload_flag=" $reload_flag"
3552 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3553 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3554 if test "${lt_cv_path_NM+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3557 if test -n "$NM"; then
3558 # Let the user override the test.
3561 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3562 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3563 test -z "$ac_dir" && ac_dir=.
3564 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3565 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3566 # Check to see if the nm accepts a BSD-compat flag.
3567 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3568 # nm: unknown option "B" ignored
3569 # Tru64's nm complains that /dev/null is an invalid object file
3570 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3571 lt_cv_path_NM="$tmp_nm -B"
3573 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3574 lt_cv_path_NM="$tmp_nm -p"
3577 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3578 continue # so that we can try to find one that supports BSD flags
3583 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3588 echo "$as_me:$LINENO: result: $NM" >&5
3589 echo "${ECHO_T}$NM" >&6
3591 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3592 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3593 if test "${lt_cv_path_SED+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3596 # Loop through the user's path and test for sed and gsed.
3597 # Then use that list of sed's as ones to test for truncation.
3598 as_executable_p="test -f"
3599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 test -z "$as_dir" && as_dir=.
3604 for ac_prog in sed gsed; do
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3607 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3613 # Create a temporary directory, and hook for its removal unless debugging.
3616 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3617 trap '{ (exit 1); exit 1; }' 1 2 13 15
3620 # Create a (secure) tmp directory for tmp files.
3623 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3624 test -n "$tmp" && test -d "$tmp"
3627 tmp=$TMPDIR/sed$$-$RANDOM
3628 (umask 077 && mkdir $tmp)
3631 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3632 { (exit 1); exit 1; }
3636 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3637 # along with /bin/sed that truncates output.
3638 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3639 test ! -f ${_sed} && break
3640 cat /dev/null > "$tmp/sed.in"
3642 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3643 # Check for GNU sed and select it if it is found.
3644 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3645 lt_cv_path_SED=${_sed}
3649 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3650 mv "$tmp/sed.tmp" "$tmp/sed.in"
3651 cp "$tmp/sed.in" "$tmp/sed.nl"
3652 echo >>"$tmp/sed.nl"
3653 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3654 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3655 # 40000 chars as input seems more than enough
3656 test $_count -gt 10 && break
3657 _count=`expr $_count + 1`
3658 if test $_count -gt $_max; then
3660 lt_cv_path_SED=$_sed
3668 if test "X$SED" != "X"; then
3673 echo "$as_me:$LINENO: result: $SED" >&5
3674 echo "${ECHO_T}$SED" >&6
3676 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3677 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3678 if test "${lt_cv_deplibs_check_method+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3681 lt_cv_file_magic_cmd='$MAGIC_CMD'
3682 lt_cv_file_magic_test_file=
3683 lt_cv_deplibs_check_method='unknown'
3684 # Need to set the preceding variable on all platforms that support
3685 # interlibrary dependencies.
3686 # 'none' -- dependencies not supported.
3687 # `unknown' -- same as none, but documents that we really don't know.
3688 # 'pass_all' -- all dependencies passed with no checks.
3689 # 'test_compile' -- check by making test program.
3690 # 'file_magic [[regex]]' -- check by looking for files in library path
3691 # which responds to the $file_magic_cmd with a given egrep regex.
3692 # If you have `file' or equivalent on your system and you're not sure
3693 # whether `pass_all' will *always* work, you probably want this one.
3697 lt_cv_deplibs_check_method=pass_all
3701 lt_cv_deplibs_check_method=pass_all
3705 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3706 lt_cv_file_magic_cmd='/usr/bin/file -L'
3707 lt_cv_file_magic_test_file=/shlib/libc.so
3710 cygwin* | mingw* | pw32*)
3711 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3712 lt_cv_file_magic_cmd='$OBJDUMP -f'
3715 darwin* | rhapsody*)
3716 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3717 lt_cv_file_magic_cmd='/usr/bin/file -L'
3719 rhapsody* | darwin1.[012])
3720 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3723 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3729 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3732 # Not sure whether the presence of OpenBSD here was a mistake.
3733 # Let's accept both of them until this is cleared up.
3734 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3735 lt_cv_file_magic_cmd=/usr/bin/file
3736 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3740 lt_cv_deplibs_check_method=pass_all
3745 lt_cv_deplibs_check_method=pass_all
3749 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3750 lt_cv_file_magic_cmd=/usr/bin/file
3751 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3754 irix5* | irix6* | nonstopux*)
3756 irix5* | nonstopux*)
3757 # this will be overridden with pass_all, but let us keep it just in case
3758 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3762 *-32|*"-32 ") libmagic=32-bit;;
3763 *-n32|*"-n32 ") libmagic=N32;;
3764 *-64|*"-64 ") libmagic=64-bit;;
3765 *) libmagic=never-match;;
3767 # this will be overridden with pass_all, but let us keep it just in case
3768 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3771 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3772 lt_cv_deplibs_check_method=pass_all
3775 # This must be Linux ELF.
3778 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
3779 lt_cv_deplibs_check_method=pass_all ;;
3781 # glibc up to 2.1.1 does not perform some relocations on ARM
3782 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3784 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3788 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3789 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3791 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3796 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3797 lt_cv_file_magic_cmd=/usr/bin/file
3798 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3802 lt_cv_file_magic_cmd=/usr/bin/file
3803 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3804 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3805 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3807 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3811 osf3* | osf4* | osf5*)
3812 # this will be overridden with pass_all, but let us keep it just in case
3813 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3814 lt_cv_file_magic_test_file=/shlib/libc.so
3815 lt_cv_deplibs_check_method=pass_all
3819 lt_cv_deplibs_check_method=pass_all
3823 lt_cv_deplibs_check_method=pass_all
3824 lt_cv_file_magic_test_file=/lib/libc.so
3827 sysv5uw[78]* | sysv4*uw2*)
3828 lt_cv_deplibs_check_method=pass_all
3831 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3832 case $host_vendor in
3834 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]'
3835 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3838 lt_cv_deplibs_check_method=pass_all
3841 lt_cv_file_magic_cmd='/bin/file'
3842 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3845 lt_cv_file_magic_cmd='/bin/file'
3846 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3847 lt_cv_file_magic_test_file=/lib/libc.so
3850 lt_cv_deplibs_check_method=pass_all
3857 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3858 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3859 file_magic_cmd=$lt_cv_file_magic_cmd
3860 deplibs_check_method=$lt_cv_deplibs_check_method
3869 # Check for command to grab the raw symbol name followed by C symbol from nm.
3870 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3871 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3872 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3873 echo $ECHO_N "(cached) $ECHO_C" >&6
3876 # These are sane defaults that work on at least a few old systems.
3877 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3879 # Character class describing NM global symbol codes.
3880 symcode='[BCDEGRST]'
3882 # Regexp to match symbols that can be accessed directly from C.
3883 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3885 # Transform the above into a raw symbol and a C symbol.
3886 symxfrm='\1 \2\3 \3'
3888 # Transform an extracted symbol line into a proper C declaration
3889 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3891 # Transform an extracted symbol line into symbol name and symbol address
3892 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'"
3894 # Define system-specific variables.
3899 cygwin* | mingw* | pw32*)
3900 symcode='[ABCDGISTW]'
3902 hpux*) # Its linker distinguishes data from code symbols
3903 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3904 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'"
3907 symcode='[BCDEGRST]'
3910 symcode='[BCDEGQRST]'
3920 # Handle CRLF in mingw tool chain
3924 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3928 # If we're using GNU nm, then use its standard symbol codes.
3929 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3930 symcode='[ABCDGISTW]'
3933 # Try without a prefix undercore, then with it.
3934 for ac_symprfx in "" "_"; do
3936 # Write the raw and C identifiers.
3937 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3939 # Check to see that the pipe works correctly.
3942 cat > conftest.$ac_ext <<EOF
3947 void nm_test_func(){}
3951 int main(){nm_test_var='a';nm_test_func();return(0);}
3954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3955 (eval $ac_compile) 2>&5
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); }; then
3959 # Now try to grab the symbols.
3961 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3962 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); } && test -s "$nlist"; then
3966 # Try sorting and uniquifying the output.
3967 if sort "$nlist" | uniq > "$nlist"T; then
3968 mv -f "$nlist"T "$nlist"
3973 # Make sure that we snagged all the symbols we need.
3974 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3975 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3976 cat <<EOF > conftest.$ac_ext
3982 # Now generate the symbol file.
3983 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3985 cat <<EOF >> conftest.$ac_ext
3986 #if defined (__STDC__) && __STDC__
3987 # define lt_ptr void *
3989 # define lt_ptr char *
3993 /* The mapping between symbol names and symbols. */
3998 lt_preloaded_symbols[] =
4001 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4002 cat <<\EOF >> conftest.$ac_ext
4010 # Now try linking the two files.
4011 mv conftest.$ac_objext conftstm.$ac_objext
4013 save_CFLAGS="$CFLAGS"
4014 LIBS="conftstm.$ac_objext"
4015 CFLAGS="$CFLAGS$no_builtin_flag"
4016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4017 (eval $ac_link) 2>&5
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); } && test -s conftest$ac_exeext; then
4024 CFLAGS="$save_CFLAGS"
4026 echo "cannot find nm_test_func in $nlist" >&5
4029 echo "cannot find nm_test_var in $nlist" >&5
4032 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4035 echo "$progname: failed program was:" >&5
4036 cat conftest.$ac_ext >&5
4038 rm -f conftest* conftst*
4040 # Do not use the global_symbol_pipe unless it works.
4041 if test "$pipe_works" = yes; then
4044 lt_cv_sys_global_symbol_pipe=
4050 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4051 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4052 global_symbol_to_cdecl=
4053 global_symbol_to_c_name_address=
4055 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4056 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4058 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4060 echo "$as_me:$LINENO: result: failed" >&5
4061 echo "${ECHO_T}failed" >&6
4063 echo "$as_me:$LINENO: result: ok" >&5
4064 echo "${ECHO_T}ok" >&6
4068 echo "$as_me:$LINENO: checking for egrep" >&5
4069 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4070 if test "${ac_cv_prog_egrep+set}" = set; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4074 then ac_cv_prog_egrep='grep -E'
4075 else ac_cv_prog_egrep='egrep'
4078 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4079 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4080 EGREP=$ac_cv_prog_egrep
4083 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4084 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4085 if test "${ac_cv_header_stdc+set}" = set; then
4086 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 cat >conftest.$ac_ext <<_ACEOF
4091 cat confdefs.h >>conftest.$ac_ext
4092 cat >>conftest.$ac_ext <<_ACEOF
4093 /* end confdefs.h. */
4107 rm -f conftest.$ac_objext
4108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4109 (eval $ac_compile) 2>conftest.er1
4111 grep -v '^ *+' conftest.er1 >conftest.err
4113 cat conftest.err >&5
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); } &&
4116 { ac_try='test -z "$ac_c_werror_flag"
4117 || test ! -s conftest.err'
4118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); }; } &&
4123 { ac_try='test -s conftest.$ac_objext'
4124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); }; }; then
4129 ac_cv_header_stdc=yes
4131 echo "$as_me: failed program was:" >&5
4132 sed 's/^/| /' conftest.$ac_ext >&5
4134 ac_cv_header_stdc=no
4136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4138 if test $ac_cv_header_stdc = yes; then
4139 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4140 cat >conftest.$ac_ext <<_ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4150 $EGREP "memchr" >/dev/null 2>&1; then
4153 ac_cv_header_stdc=no
4159 if test $ac_cv_header_stdc = yes; then
4160 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4161 cat >conftest.$ac_ext <<_ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h. */
4170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4171 $EGREP "free" >/dev/null 2>&1; then
4174 ac_cv_header_stdc=no
4180 if test $ac_cv_header_stdc = yes; then
4181 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4182 if test "$cross_compiling" = yes; then
4185 cat >conftest.$ac_ext <<_ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h. */
4192 #if ((' ' & 0x0FF) == 0x020)
4193 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4194 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4196 # define ISLOWER(c) \
4197 (('a' <= (c) && (c) <= 'i') \
4198 || ('j' <= (c) && (c) <= 'r') \
4199 || ('s' <= (c) && (c) <= 'z'))
4200 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4203 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4208 for (i = 0; i < 256; i++)
4209 if (XOR (islower (i), ISLOWER (i))
4210 || toupper (i) != TOUPPER (i))
4215 rm -f conftest$ac_exeext
4216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4217 (eval $ac_link) 2>&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; }; then
4228 echo "$as_me: program exited with status $ac_status" >&5
4229 echo "$as_me: failed program was:" >&5
4230 sed 's/^/| /' conftest.$ac_ext >&5
4233 ac_cv_header_stdc=no
4235 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4239 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4240 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4241 if test $ac_cv_header_stdc = yes; then
4243 cat >>confdefs.h <<\_ACEOF
4244 #define STDC_HEADERS 1
4249 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4259 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4260 inttypes.h stdint.h unistd.h
4262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4263 echo "$as_me:$LINENO: checking for $ac_header" >&5
4264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4265 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4268 cat >conftest.$ac_ext <<_ACEOF
4271 cat confdefs.h >>conftest.$ac_ext
4272 cat >>conftest.$ac_ext <<_ACEOF
4273 /* end confdefs.h. */
4274 $ac_includes_default
4276 #include <$ac_header>
4278 rm -f conftest.$ac_objext
4279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4280 (eval $ac_compile) 2>conftest.er1
4282 grep -v '^ *+' conftest.er1 >conftest.err
4284 cat conftest.err >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } &&
4287 { ac_try='test -z "$ac_c_werror_flag"
4288 || test ! -s conftest.err'
4289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; } &&
4294 { ac_try='test -s conftest.$ac_objext'
4295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; }; then
4300 eval "$as_ac_Header=yes"
4302 echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4305 eval "$as_ac_Header=no"
4307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4312 cat >>confdefs.h <<_ACEOF
4313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4322 for ac_header in dlfcn.h
4324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4326 echo "$as_me:$LINENO: checking for $ac_header" >&5
4327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4334 # Is the header compilable?
4335 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4336 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4337 cat >conftest.$ac_ext <<_ACEOF
4340 cat confdefs.h >>conftest.$ac_ext
4341 cat >>conftest.$ac_ext <<_ACEOF
4342 /* end confdefs.h. */
4343 $ac_includes_default
4344 #include <$ac_header>
4346 rm -f conftest.$ac_objext
4347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4348 (eval $ac_compile) 2>conftest.er1
4350 grep -v '^ *+' conftest.er1 >conftest.err
4352 cat conftest.err >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } &&
4355 { ac_try='test -z "$ac_c_werror_flag"
4356 || test ! -s conftest.err'
4357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); }; } &&
4362 { ac_try='test -s conftest.$ac_objext'
4363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }; }; then
4368 ac_header_compiler=yes
4370 echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.$ac_ext >&5
4373 ac_header_compiler=no
4375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4376 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4377 echo "${ECHO_T}$ac_header_compiler" >&6
4379 # Is the header present?
4380 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4381 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4382 cat >conftest.$ac_ext <<_ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h. */
4388 #include <$ac_header>
4390 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4393 grep -v '^ *+' conftest.er1 >conftest.err
4395 cat conftest.err >&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); } >/dev/null; then
4398 if test -s conftest.err; then
4399 ac_cpp_err=$ac_c_preproc_warn_flag
4400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4407 if test -z "$ac_cpp_err"; then
4408 ac_header_preproc=yes
4410 echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4413 ac_header_preproc=no
4415 rm -f conftest.err conftest.$ac_ext
4416 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4417 echo "${ECHO_T}$ac_header_preproc" >&6
4419 # So? What about this header?
4420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4422 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4423 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4425 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4426 ac_header_preproc=yes
4429 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4431 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4432 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4433 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4434 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4435 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4436 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4438 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4439 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4440 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4443 ## ------------------------------------------ ##
4444 ## Report this to the AC_PACKAGE_NAME lists. ##
4445 ## ------------------------------------------ ##
4448 sed "s/^/$as_me: WARNING: /" >&2
4451 echo "$as_me:$LINENO: checking for $ac_header" >&5
4452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4454 echo $ECHO_N "(cached) $ECHO_C" >&6
4456 eval "$as_ac_Header=\$ac_header_preproc"
4458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4463 cat >>confdefs.h <<_ACEOF
4464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4476 # Only perform the check for file, if the check method requires it
4477 case $deplibs_check_method in
4479 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4480 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4481 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4482 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
4487 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4490 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4493 ac_save_MAGIC_CMD="$MAGIC_CMD"
4494 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4495 ac_dummy="/usr/bin:$PATH"
4496 for ac_dir in $ac_dummy; do
4497 test -z "$ac_dir" && ac_dir=.
4498 if test -f $ac_dir/${ac_tool_prefix}file; then
4499 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4500 if test -n "$file_magic_test_file"; then
4501 case $deplibs_check_method in
4503 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4504 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4505 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4506 egrep "$file_magic_regex" > /dev/null; then
4511 *** Warning: the command libtool uses to detect shared libraries,
4512 *** $file_magic_cmd, produces output that libtool cannot recognize.
4513 *** The result is that libtool may fail to recognize shared libraries
4514 *** as such. This will affect the creation of libtool libraries that
4515 *** depend on shared libraries, but programs linked with such libtool
4516 *** libraries will work regardless of this problem. Nevertheless, you
4517 *** may want to report the problem to your system manager and/or to
4518 *** bug-libtool@gnu.org
4528 MAGIC_CMD="$ac_save_MAGIC_CMD"
4533 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4534 if test -n "$MAGIC_CMD"; then
4535 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4536 echo "${ECHO_T}$MAGIC_CMD" >&6
4538 echo "$as_me:$LINENO: result: no" >&5
4539 echo "${ECHO_T}no" >&6
4542 if test -z "$lt_cv_path_MAGIC_CMD"; then
4543 if test -n "$ac_tool_prefix"; then
4544 echo "$as_me:$LINENO: checking for file" >&5
4545 echo $ECHO_N "checking for file... $ECHO_C" >&6
4546 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4551 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4554 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4557 ac_save_MAGIC_CMD="$MAGIC_CMD"
4558 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4559 ac_dummy="/usr/bin:$PATH"
4560 for ac_dir in $ac_dummy; do
4561 test -z "$ac_dir" && ac_dir=.
4562 if test -f $ac_dir/file; then
4563 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4564 if test -n "$file_magic_test_file"; then
4565 case $deplibs_check_method in
4567 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4568 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4569 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4570 egrep "$file_magic_regex" > /dev/null; then
4575 *** Warning: the command libtool uses to detect shared libraries,
4576 *** $file_magic_cmd, produces output that libtool cannot recognize.
4577 *** The result is that libtool may fail to recognize shared libraries
4578 *** as such. This will affect the creation of libtool libraries that
4579 *** depend on shared libraries, but programs linked with such libtool
4580 *** libraries will work regardless of this problem. Nevertheless, you
4581 *** may want to report the problem to your system manager and/or to
4582 *** bug-libtool@gnu.org
4592 MAGIC_CMD="$ac_save_MAGIC_CMD"
4597 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4598 if test -n "$MAGIC_CMD"; then
4599 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4600 echo "${ECHO_T}$MAGIC_CMD" >&6
4602 echo "$as_me:$LINENO: result: no" >&5
4603 echo "${ECHO_T}no" >&6
4615 if test -n "$ac_tool_prefix"; then
4616 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4617 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4618 echo "$as_me:$LINENO: checking for $ac_word" >&5
4619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4620 if test "${ac_cv_prog_RANLIB+set}" = set; then
4621 echo $ECHO_N "(cached) $ECHO_C" >&6
4623 if test -n "$RANLIB"; then
4624 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4633 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4642 RANLIB=$ac_cv_prog_RANLIB
4643 if test -n "$RANLIB"; then
4644 echo "$as_me:$LINENO: result: $RANLIB" >&5
4645 echo "${ECHO_T}$RANLIB" >&6
4647 echo "$as_me:$LINENO: result: no" >&5
4648 echo "${ECHO_T}no" >&6
4652 if test -z "$ac_cv_prog_RANLIB"; then
4653 ac_ct_RANLIB=$RANLIB
4654 # Extract the first word of "ranlib", so it can be a program name with args.
4655 set dummy ranlib; ac_word=$2
4656 echo "$as_me:$LINENO: checking for $ac_word" >&5
4657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4658 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4661 if test -n "$ac_ct_RANLIB"; then
4662 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 test -z "$as_dir" && as_dir=.
4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4671 ac_cv_prog_ac_ct_RANLIB="ranlib"
4672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4681 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4682 if test -n "$ac_ct_RANLIB"; then
4683 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4684 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4686 echo "$as_me:$LINENO: result: no" >&5
4687 echo "${ECHO_T}no" >&6
4690 RANLIB=$ac_ct_RANLIB
4692 RANLIB="$ac_cv_prog_RANLIB"
4695 if test -n "$ac_tool_prefix"; then
4696 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4697 set dummy ${ac_tool_prefix}strip; ac_word=$2
4698 echo "$as_me:$LINENO: checking for $ac_word" >&5
4699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4700 if test "${ac_cv_prog_STRIP+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
4703 if test -n "$STRIP"; then
4704 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 test -z "$as_dir" && as_dir=.
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4713 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4722 STRIP=$ac_cv_prog_STRIP
4723 if test -n "$STRIP"; then
4724 echo "$as_me:$LINENO: result: $STRIP" >&5
4725 echo "${ECHO_T}$STRIP" >&6
4727 echo "$as_me:$LINENO: result: no" >&5
4728 echo "${ECHO_T}no" >&6
4732 if test -z "$ac_cv_prog_STRIP"; then
4734 # Extract the first word of "strip", so it can be a program name with args.
4735 set dummy strip; ac_word=$2
4736 echo "$as_me:$LINENO: checking for $ac_word" >&5
4737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4738 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4741 if test -n "$ac_ct_STRIP"; then
4742 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 test -z "$as_dir" && as_dir=.
4749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4751 ac_cv_prog_ac_ct_STRIP="strip"
4752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4761 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4762 if test -n "$ac_ct_STRIP"; then
4763 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4764 echo "${ECHO_T}$ac_ct_STRIP" >&6
4766 echo "$as_me:$LINENO: result: no" >&5
4767 echo "${ECHO_T}no" >&6
4772 STRIP="$ac_cv_prog_STRIP"
4779 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4780 if test "${enable_libtool_lock+set}" = set; then
4781 enableval="$enable_libtool_lock"
4784 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4786 # Some flags need to be propagated to the compiler or linker for good
4790 # Find out which ABI we are using.
4791 echo '#line 4791 "configure"' > conftest.$ac_ext
4792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4793 (eval $ac_compile) 2>&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; then
4797 case `/usr/bin/file conftest.$ac_objext` in
4813 # Test if the compiler is 64bit
4814 echo 'int i;' > conftest.$ac_ext
4815 lt_cv_cc_64bit_output=no
4816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4817 (eval $ac_compile) 2>&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; then
4821 case `/usr/bin/file conftest.$ac_objext` in
4823 lt_cv_cc_64bit_output=yes
4831 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4832 SAVE_CFLAGS="$CFLAGS"
4833 CFLAGS="$CFLAGS -belf"
4834 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4835 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4836 if test "${lt_cv_cc_needs_belf+set}" = set; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4842 ac_cpp='$CPP $CPPFLAGS'
4843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4847 cat >conftest.$ac_ext <<_ACEOF
4850 cat confdefs.h >>conftest.$ac_ext
4851 cat >>conftest.$ac_ext <<_ACEOF
4852 /* end confdefs.h. */
4862 rm -f conftest.$ac_objext conftest$ac_exeext
4863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4864 (eval $ac_link) 2>conftest.er1
4866 grep -v '^ *+' conftest.er1 >conftest.err
4868 cat conftest.err >&5
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); } &&
4871 { ac_try='test -z "$ac_c_werror_flag"
4872 || test ! -s conftest.err'
4873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); }; } &&
4878 { ac_try='test -s conftest$ac_exeext'
4879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); }; }; then
4884 lt_cv_cc_needs_belf=yes
4886 echo "$as_me: failed program was:" >&5
4887 sed 's/^/| /' conftest.$ac_ext >&5
4889 lt_cv_cc_needs_belf=no
4891 rm -f conftest.err conftest.$ac_objext \
4892 conftest$ac_exeext conftest.$ac_ext
4894 ac_cpp='$CPP $CPPFLAGS'
4895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4900 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4901 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4902 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4903 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4904 CFLAGS="$SAVE_CFLAGS"
4911 # Sed substitution that helps us do robust quoting. It backslashifies
4912 # metacharacters that are still active within double-quoted strings.
4913 Xsed='sed -e s/^X//'
4914 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4916 # Same as above, but do not quote variable references.
4917 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4919 # Sed substitution to delay expansion of an escaped shell variable in a
4920 # double_quote_subst'ed string.
4921 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4927 default_ofile=libtool
4928 can_build_shared=yes
4930 # All known linkers require a `.a' archive for static linking (except M$VC,
4931 # which needs '.lib').
4933 ltmain="$ac_aux_dir/ltmain.sh"
4934 ofile="$default_ofile"
4935 with_gnu_ld="$lt_cv_prog_gnu_ld"
4936 need_locks="$enable_libtool_lock"
4939 old_CFLAGS="$CFLAGS"
4941 # Set sane defaults for various variables
4942 test -z "$AR" && AR=ar
4943 test -z "$AR_FLAGS" && AR_FLAGS=cru
4944 test -z "$AS" && AS=as
4945 test -z "$CC" && CC=cc
4946 test -z "$DLLTOOL" && DLLTOOL=dlltool
4947 test -z "$LD" && LD=ld
4948 test -z "$LN_S" && LN_S="ln -s"
4949 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4950 test -z "$NM" && NM=nm
4951 test -z "$OBJDUMP" && OBJDUMP=objdump
4952 test -z "$RANLIB" && RANLIB=:
4953 test -z "$STRIP" && STRIP=:
4954 test -z "$ac_objext" && ac_objext=o
4956 if test x"$host" != x"$build"; then
4957 ac_tool_prefix=${host_alias}-
4962 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4965 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4970 # AIX sometimes has problems with the GCC collect2 program. For some
4971 # reason, if we set the COLLECT_NAMES environment variable, the problems
4972 # vanish in a puff of smoke.
4973 if test "X${COLLECT_NAMES+set}" != Xset; then
4975 export COLLECT_NAMES
4980 # Determine commands to create old-style static archives.
4981 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4982 old_postinstall_cmds='chmod 644 $oldlib'
4983 old_postuninstall_cmds=
4985 if test -n "$RANLIB"; then
4988 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4991 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4994 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4997 # Allow CC to be a program name with arguments.
5001 echo "$as_me:$LINENO: checking for objdir" >&5
5002 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5003 rm -f .libs 2>/dev/null
5004 mkdir .libs 2>/dev/null
5005 if test -d .libs; then
5008 # MS-DOS does not allow filenames that begin with a dot.
5011 rmdir .libs 2>/dev/null
5012 echo "$as_me:$LINENO: result: $objdir" >&5
5013 echo "${ECHO_T}$objdir" >&6
5017 # Check whether --with-pic or --without-pic was given.
5018 if test "${with_pic+set}" = set; then
5024 test -z "$pic_mode" && pic_mode=default
5026 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5027 # in isolation, and that seeing it set (from the cache) indicates that
5028 # the associated values are set (in the cache) correctly too.
5029 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5030 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5031 if test "${lt_cv_prog_cc_pic+set}" = set; then
5032 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 lt_cv_prog_cc_shlib=
5037 lt_cv_prog_cc_static=
5038 lt_cv_prog_cc_no_builtin=
5039 lt_cv_prog_cc_can_build_shared=$can_build_shared
5041 if test "$GCC" = yes; then
5042 lt_cv_prog_cc_wl='-Wl,'
5043 lt_cv_prog_cc_static='-static'
5047 # Below there is a dirty hack to force normal static linking with -ldl
5048 # The problem is because libdl dynamically linked with both libc and
5049 # libC (AIX C++ library), which obviously doesn't included in libraries
5050 # list by gcc. This cause undefined symbols with -static flags.
5051 # This hack allows C programs to be linked with "-static -ldl", but
5052 # not sure about C++ programs.
5053 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5056 # FIXME: we need at least 68020 code to build shared libraries, but
5057 # adding the `-m68020' flag to GCC prevents building anything better,
5059 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5061 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5062 # PIC is the default for these OSes.
5064 darwin* | rhapsody*)
5065 # PIC is the default on this platform
5066 # Common symbols not allowed in MH_DYLIB files
5067 lt_cv_prog_cc_pic='-fno-common'
5069 cygwin* | mingw* | pw32* | os2*)
5070 # This hack is so that the source file can tell whether it is being
5071 # built for inclusion in a dll (and should export symbols for example).
5072 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5075 if test -d /usr/nec; then
5076 lt_cv_prog_cc_pic=-Kconform_pic
5080 lt_cv_prog_cc_pic='-fPIC'
5084 # PORTME Check for PIC flags for the system compiler.
5086 aix3* | aix4* | aix5*)
5087 lt_cv_prog_cc_wl='-Wl,'
5088 # All AIX code is PIC.
5089 if test "$host_cpu" = ia64; then
5090 # AIX 5 now supports IA64 processor
5091 lt_cv_prog_cc_static='-Bstatic'
5093 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5097 hpux9* | hpux10* | hpux11*)
5098 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5099 lt_cv_prog_cc_wl='-Wl,'
5100 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5101 lt_cv_prog_cc_pic='+Z'
5104 irix5* | irix6* | nonstopux*)
5105 lt_cv_prog_cc_wl='-Wl,'
5106 lt_cv_prog_cc_static='-non_shared'
5107 # PIC (with -KPIC) is the default.
5110 cygwin* | mingw* | pw32* | os2*)
5111 # This hack is so that the source file can tell whether it is being
5112 # built for inclusion in a dll (and should export symbols for example).
5113 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5117 lt_cv_prog_cc_pic='-KPIC'
5118 lt_cv_prog_cc_static='-Bstatic'
5121 osf3* | osf4* | osf5*)
5122 # All OSF/1 code is PIC.
5123 lt_cv_prog_cc_wl='-Wl,'
5124 lt_cv_prog_cc_static='-non_shared'
5128 lt_cv_prog_cc_pic='-Kpic'
5129 lt_cv_prog_cc_static='-dn'
5130 lt_cv_prog_cc_shlib='-belf'
5134 lt_cv_prog_cc_pic='-KPIC'
5135 lt_cv_prog_cc_static='-Bstatic'
5136 lt_cv_prog_cc_wl='-Wl,'
5140 lt_cv_prog_cc_pic='-PIC'
5141 lt_cv_prog_cc_static='-Bstatic'
5142 lt_cv_prog_cc_wl='-Qoption ld '
5145 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5146 lt_cv_prog_cc_pic='-KPIC'
5147 lt_cv_prog_cc_static='-Bstatic'
5148 lt_cv_prog_cc_wl='-Wl,'
5152 lt_cv_prog_cc_pic='-pic'
5153 lt_cv_prog_cc_static='-Bstatic'
5157 if test -d /usr/nec ;then
5158 lt_cv_prog_cc_pic='-Kconform_pic'
5159 lt_cv_prog_cc_static='-Bstatic'
5164 lt_cv_prog_cc_can_build_shared=no
5171 if test -z "$lt_cv_prog_cc_pic"; then
5172 echo "$as_me:$LINENO: result: none" >&5
5173 echo "${ECHO_T}none" >&6
5175 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5176 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5178 # Check to make sure the pic_flag actually works.
5179 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5180 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5181 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5182 echo $ECHO_N "(cached) $ECHO_C" >&6
5184 save_CFLAGS="$CFLAGS"
5185 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5186 cat >conftest.$ac_ext <<_ACEOF
5189 cat confdefs.h >>conftest.$ac_ext
5190 cat >>conftest.$ac_ext <<_ACEOF
5191 /* end confdefs.h. */
5201 rm -f conftest.$ac_objext
5202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5203 (eval $ac_compile) 2>conftest.er1
5205 grep -v '^ *+' conftest.er1 >conftest.err
5207 cat conftest.err >&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); } &&
5210 { ac_try='test -z "$ac_c_werror_flag"
5211 || test ! -s conftest.err'
5212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); }; } &&
5217 { ac_try='test -s conftest.$ac_objext'
5218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); }; }; then
5224 hpux9* | hpux10* | hpux11*)
5225 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5226 # they create non-PIC objects. So, if there were any warnings, we
5227 # assume that PIC is not supported.
5228 if test -s conftest.err; then
5229 lt_cv_prog_cc_pic_works=no
5231 lt_cv_prog_cc_pic_works=yes
5235 lt_cv_prog_cc_pic_works=yes
5240 echo "$as_me: failed program was:" >&5
5241 sed 's/^/| /' conftest.$ac_ext >&5
5243 lt_cv_prog_cc_pic_works=no
5246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5247 CFLAGS="$save_CFLAGS"
5252 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5254 lt_cv_prog_cc_can_build_shared=no
5256 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5259 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5260 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5263 # Check for any special shared library compilation flags.
5264 if test -n "$lt_cv_prog_cc_shlib"; then
5265 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5266 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5267 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5269 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5270 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5271 lt_cv_prog_cc_can_build_shared=no
5275 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5276 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5277 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5278 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 lt_cv_prog_cc_static_works=no
5281 save_LDFLAGS="$LDFLAGS"
5282 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5283 cat >conftest.$ac_ext <<_ACEOF
5286 cat confdefs.h >>conftest.$ac_ext
5287 cat >>conftest.$ac_ext <<_ACEOF
5288 /* end confdefs.h. */
5298 rm -f conftest.$ac_objext conftest$ac_exeext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5300 (eval $ac_link) 2>conftest.er1
5302 grep -v '^ *+' conftest.er1 >conftest.err
5304 cat conftest.err >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); } &&
5307 { ac_try='test -z "$ac_c_werror_flag"
5308 || test ! -s conftest.err'
5309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); }; } &&
5314 { ac_try='test -s conftest$ac_exeext'
5315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }; }; then
5320 lt_cv_prog_cc_static_works=yes
5322 echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.$ac_ext >&5
5326 rm -f conftest.err conftest.$ac_objext \
5327 conftest$ac_exeext conftest.$ac_ext
5328 LDFLAGS="$save_LDFLAGS"
5333 # Belt *and* braces to stop my trousers falling down:
5334 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5335 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5336 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5338 pic_flag="$lt_cv_prog_cc_pic"
5339 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5340 wl="$lt_cv_prog_cc_wl"
5341 link_static_flag="$lt_cv_prog_cc_static"
5342 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5343 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5346 # Check to see if options -o and -c are simultaneously supported by compiler
5347 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5348 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5349 if test "${lt_cv_compiler_c_o+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5353 $rm -r conftest 2>/dev/null
5356 echo "int some_variable = 0;" > conftest.$ac_ext
5358 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5359 # that will create temporary files in the current directory regardless of
5360 # the output directory. Thus, making CWD read-only will cause this test
5361 # to fail, enabling locking or at least warning the user not to do parallel
5364 save_CFLAGS="$CFLAGS"
5365 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5367 if { (eval echo configure:5367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5368 # The compiler can only warn and ignore the option if not recognized
5369 # So say no if there are warnings
5370 if test -s out/conftest.err; then
5371 lt_cv_compiler_c_o=no
5373 lt_cv_compiler_c_o=yes
5376 # Append any errors to the config.log.
5377 cat out/conftest.err 1>&5
5378 lt_cv_compiler_c_o=no
5380 CFLAGS="$save_CFLAGS"
5386 $rm -r conftest 2>/dev/null
5390 compiler_c_o=$lt_cv_compiler_c_o
5391 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5392 echo "${ECHO_T}$compiler_c_o" >&6
5394 if test x"$compiler_c_o" = x"yes"; then
5395 # Check to see if we can write to a .lo
5396 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5397 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5398 if test "${lt_cv_compiler_o_lo+set}" = set; then
5399 echo $ECHO_N "(cached) $ECHO_C" >&6
5402 lt_cv_compiler_o_lo=no
5403 save_CFLAGS="$CFLAGS"
5404 CFLAGS="$CFLAGS -c -o conftest.lo"
5405 save_objext="$ac_objext"
5407 cat >conftest.$ac_ext <<_ACEOF
5410 cat confdefs.h >>conftest.$ac_ext
5411 cat >>conftest.$ac_ext <<_ACEOF
5412 /* end confdefs.h. */
5417 int some_variable = 0;
5422 rm -f conftest.$ac_objext
5423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5424 (eval $ac_compile) 2>conftest.er1
5426 grep -v '^ *+' conftest.er1 >conftest.err
5428 cat conftest.err >&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); } &&
5431 { ac_try='test -z "$ac_c_werror_flag"
5432 || test ! -s conftest.err'
5433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); }; } &&
5438 { ac_try='test -s conftest.$ac_objext'
5439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; }; then
5444 # The compiler can only warn and ignore the option if not recognized
5445 # So say no if there are warnings
5446 if test -s conftest.err; then
5447 lt_cv_compiler_o_lo=no
5449 lt_cv_compiler_o_lo=yes
5453 echo "$as_me: failed program was:" >&5
5454 sed 's/^/| /' conftest.$ac_ext >&5
5457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5458 ac_objext="$save_objext"
5459 CFLAGS="$save_CFLAGS"
5463 compiler_o_lo=$lt_cv_compiler_o_lo
5464 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5465 echo "${ECHO_T}$compiler_o_lo" >&6
5470 # Check to see if we can do hard links to lock some files if needed
5471 hard_links="nottested"
5472 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5473 # do not overwrite the value of need_locks provided by the user
5474 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5475 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5478 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5480 ln conftest.a conftest.b 2>&5 || hard_links=no
5481 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5482 echo "$as_me:$LINENO: result: $hard_links" >&5
5483 echo "${ECHO_T}$hard_links" >&6
5484 if test "$hard_links" = no; then
5485 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5486 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5493 if test "$GCC" = yes; then
5494 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5495 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5496 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5497 echo "int some_variable = 0;" > conftest.$ac_ext
5498 save_CFLAGS="$CFLAGS"
5499 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5500 compiler_rtti_exceptions=no
5501 cat >conftest.$ac_ext <<_ACEOF
5504 cat confdefs.h >>conftest.$ac_ext
5505 cat >>conftest.$ac_ext <<_ACEOF
5506 /* end confdefs.h. */
5511 int some_variable = 0;
5516 rm -f conftest.$ac_objext
5517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5518 (eval $ac_compile) 2>conftest.er1
5520 grep -v '^ *+' conftest.er1 >conftest.err
5522 cat conftest.err >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } &&
5525 { ac_try='test -z "$ac_c_werror_flag"
5526 || test ! -s conftest.err'
5527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); }; } &&
5532 { ac_try='test -s conftest.$ac_objext'
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; }; then
5538 # The compiler can only warn and ignore the option if not recognized
5539 # So say no if there are warnings
5540 if test -s conftest.err; then
5541 compiler_rtti_exceptions=no
5543 compiler_rtti_exceptions=yes
5547 echo "$as_me: failed program was:" >&5
5548 sed 's/^/| /' conftest.$ac_ext >&5
5551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5552 CFLAGS="$save_CFLAGS"
5553 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5554 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5556 if test "$compiler_rtti_exceptions" = "yes"; then
5557 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5559 no_builtin_flag=' -fno-builtin'
5563 # See if the linker supports building shared libraries.
5564 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5565 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5567 allow_undefined_flag=
5569 need_lib_prefix=unknown
5570 need_version=unknown
5571 # when you set need_version to no, make sure it does not cause -set_version
5572 # flags to be left without arguments
5574 archive_expsym_cmds=
5575 old_archive_from_new_cmds=
5576 old_archive_from_expsyms_cmds=
5577 export_dynamic_flag_spec=
5578 whole_archive_flag_spec=
5579 thread_safe_flag_spec=
5580 hardcode_into_libs=no
5581 hardcode_libdir_flag_spec=
5582 hardcode_libdir_separator=
5585 hardcode_shlibpath_var=unsupported
5587 link_all_deplibs=unknown
5588 always_export_symbols=no
5589 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5590 # include_expsyms should be a list of space-separated symbols to be *always*
5591 # included in the symbol list
5593 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5594 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5595 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5596 # as well as any symbol that contains `d'.
5597 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5598 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5599 # platforms (ab)use it in PIC code, but their linkers get confused if
5600 # the symbol is explicitly referenced. Since portable code cannot
5601 # rely on this symbol name, it's probably fine to never include it in
5602 # preloaded symbol tables.
5603 extract_expsyms_cmds=
5606 cygwin* | mingw* | pw32*)
5607 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5608 # When not using gcc, we currently assume that we are using
5609 # Microsoft Visual C++.
5610 if test "$GCC" != yes; then
5620 if test "$with_gnu_ld" = yes; then
5621 # If archive_cmds runs LD, not CC, wlarc should be empty
5624 # See if GNU ld supports shared libraries.
5626 aix3* | aix4* | aix5*)
5627 # On AIX, the GNU linker is very broken
5628 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5632 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5633 *** to be unable to reliably create shared libraries on AIX.
5634 *** Therefore, libtool is disabling shared libraries support. If you
5635 *** really care for shared libraries, you may want to modify your PATH
5636 *** so that a non-GNU linker is found, and then restart.
5642 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)'
5643 hardcode_libdir_flag_spec='-L$libdir'
5644 hardcode_minus_L=yes
5646 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5647 # that the semantics of dynamic libraries on AmigaOS, at least up
5648 # to version 4, is to share data among multiple programs linked
5649 # with the same dynamic library. Since this doesn't match the
5650 # behavior of shared libraries on other platforms, we can use
5656 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5657 allow_undefined_flag=unsupported
5658 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5659 # support --undefined. This deserves some investigation. FIXME
5660 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5666 cygwin* | mingw* | pw32*)
5667 # hardcode_libdir_flag_spec is actually meaningless, as there is
5668 # no search path for DLLs.
5669 hardcode_libdir_flag_spec='-L$libdir'
5670 allow_undefined_flag=unsupported
5671 always_export_symbols=yes
5673 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5674 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5675 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5676 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5677 else $CC -o impgen impgen.c ; fi)~
5678 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5680 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5682 # cygwin and mingw dlls have different entry points and sets of symbols
5684 # FIXME: what about values for MSVC?
5685 dll_entry=__cygwin_dll_entry@12
5686 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5690 dll_entry=_DllMainCRTStartup@12
5691 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5695 # mingw and cygwin differ, and it's simplest to just exclude the union
5696 # of the two symbol sets.
5697 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5699 # recent cygwin and mingw systems supply a stub DllMain which the user
5700 # can override, but on older systems we have to supply one (in ltdll.c)
5701 if test "x$lt_cv_need_dllmain" = "xyes"; then
5702 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5703 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~
5704 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5710 # Extract the symbol export list from an `--export-all' def file,
5711 # then regenerate the def file from the symbol export list, so that
5712 # the compiled dll only exports the symbol export list.
5713 # Be careful not to strip the DATA tag left be newer dlltools.
5714 export_symbols_cmds="$ltdll_cmds"'
5715 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5716 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5718 # If the export-symbols file already is a .def file (1st line
5719 # is EXPORTS), use it as is.
5720 # If DATA tags from a recent dlltool are present, honour them!
5721 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5722 cp $export_symbols $output_objdir/$soname-def;
5724 echo EXPORTS > $output_objdir/$soname-def;
5726 cat $export_symbols | while read symbol; do
5729 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5730 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5731 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5733 _lt_hint=`expr 1 + \$_lt_hint`;
5737 $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~
5738 $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~
5739 $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~
5740 $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~
5741 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5745 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5746 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5749 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5750 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5755 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5759 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5760 *** create shared libraries on Solaris systems. Therefore, libtool
5761 *** is disabling shared libraries support. We urge you to upgrade GNU
5762 *** binutils to release 2.9.1 or newer. Another option is to modify
5763 *** your PATH or compiler configuration so that the native linker is
5764 *** used, and then restart.
5767 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5768 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5769 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5776 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5779 hardcode_shlibpath_var=no
5783 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5784 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5785 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5792 if test "$ld_shlibs" = yes; then
5793 runpath_var=LD_RUN_PATH
5794 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5795 export_dynamic_flag_spec='${wl}--export-dynamic'
5797 cygwin* | mingw* | pw32*)
5798 # dlltool doesn't understand --whole-archive et. al.
5799 whole_archive_flag_spec=
5802 # ancient GNU ld didn't support --whole-archive et. al.
5803 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5804 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5806 whole_archive_flag_spec=
5812 # PORTME fill in a description of your system's linker (not GNU ld)
5815 allow_undefined_flag=unsupported
5816 always_export_symbols=yes
5817 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'
5818 # Note: this linker hardcodes the directories in LIBPATH if there
5819 # are no directories specified by -L.
5820 hardcode_minus_L=yes
5821 if test "$GCC" = yes && test -z "$link_static_flag"; then
5822 # Neither direct hardcoding nor static linking is supported with a
5824 hardcode_direct=unsupported
5829 if test "$host_cpu" = ia64; then
5830 # On IA64, the linker does run time linking by default, so we don't
5831 # have to do anything special.
5832 aix_use_runtimelinking=no
5833 exp_sym_flag='-Bexport'
5836 aix_use_runtimelinking=no
5838 # Test if we are trying to use run time linking or normal
5839 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5840 # need to do runtime linking.
5841 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5842 for ld_flag in $LDFLAGS; do
5845 aix_use_runtimelinking=yes
5852 exp_sym_flag='-bexport'
5853 no_entry_flag='-bnoentry'
5856 # When large executables or shared objects are built, AIX ld can
5857 # have problems creating the table of contents. If linking a library
5858 # or program results in "error TOC overflow" add -mminimal-toc to
5859 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5860 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5864 hardcode_libdir_separator=':'
5865 if test "$GCC" = yes; then
5866 case $host_os in aix4.[012]|aix4.[012].*)
5867 collect2name=`${CC} -print-prog-name=collect2`
5868 if test -f "$collect2name" && \
5869 strings "$collect2name" | grep resolve_lib_name >/dev/null
5871 # We have reworked collect2
5874 # We have old collect2
5875 hardcode_direct=unsupported
5876 # It fails to find uninstalled libraries when the uninstalled
5877 # path is not listed in the libpath. Setting hardcode_minus_L
5878 # to unsupported forces relinking
5879 hardcode_minus_L=yes
5880 hardcode_libdir_flag_spec='-L$libdir'
5881 hardcode_libdir_separator=
5885 shared_flag='-shared'
5888 if test "$host_cpu" = ia64; then
5889 shared_flag='${wl}-G'
5891 if test "$aix_use_runtimelinking" = yes; then
5892 shared_flag='${wl}-G'
5894 shared_flag='${wl}-bM:SRE'
5899 # It seems that -bexpall can do strange things, so it is better to
5900 # generate a list of symbols to export.
5901 always_export_symbols=yes
5902 if test "$aix_use_runtimelinking" = yes; then
5903 # Warning - without using the other runtime loading flags (-brtl),
5904 # -berok will link without error, but may produce a broken library.
5905 allow_undefined_flag='-berok'
5906 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5907 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"
5909 if test "$host_cpu" = ia64; then
5910 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5911 allow_undefined_flag="-z nodefs"
5912 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"
5914 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5915 # Warning - without using the other run time loading flags,
5916 # -berok will link without error, but may produce a broken library.
5917 allow_undefined_flag='${wl}-berok'
5918 # This is a bit strange, but is similar to how AIX traditionally builds
5919 # it's shared libraries.
5920 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'
5926 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)'
5927 hardcode_libdir_flag_spec='-L$libdir'
5928 hardcode_minus_L=yes
5929 # see comment about different semantics on the GNU ld section
5933 cygwin* | mingw* | pw32*)
5934 # When not using gcc, we currently assume that we are using
5935 # Microsoft Visual C++.
5936 # hardcode_libdir_flag_spec is actually meaningless, as there is
5937 # no search path for DLLs.
5938 hardcode_libdir_flag_spec=' '
5939 allow_undefined_flag=unsupported
5940 # Tell ltmain to make .lib files, not .a files.
5942 # FIXME: Setting linknames here is a bad hack.
5943 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5944 # The linker will automatically build a .lib file if we build a DLL.
5945 old_archive_from_new_cmds='true'
5946 # FIXME: Should let the user specify the lib program.
5947 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5948 fix_srcfile_path='`cygpath -w "$srcfile"`'
5951 darwin* | rhapsody*)
5953 rhapsody* | darwin1.[012])
5954 allow_undefined_flag='-undefined suppress'
5957 allow_undefined_flag='-flat_namespace -undefined suppress'
5960 # FIXME: Relying on posixy $() will cause problems for
5961 # cross-compilation, but unfortunately the echo tests do not
5962 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5963 # `"' quotes if we put them in here... so don't!
5964 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)'
5965 # We need to add '_' to the symbols in $export_symbols first
5966 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5968 hardcode_shlibpath_var=no
5969 whole_archive_flag_spec='-all_load $convenience'
5976 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5977 # support. Future versions do this automatically, but an explicit c++rt0.o
5978 # does not break anything, and helps significantly (at the cost of a little
5981 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5982 hardcode_libdir_flag_spec='-R$libdir'
5984 hardcode_shlibpath_var=no
5987 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5989 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5991 hardcode_minus_L=yes
5992 hardcode_shlibpath_var=no
5995 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5997 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5998 hardcode_libdir_flag_spec='-R$libdir'
6000 hardcode_shlibpath_var=no
6003 hpux9* | hpux10* | hpux11*)
6005 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' ;;
6006 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6008 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6009 hardcode_libdir_separator=:
6011 hardcode_minus_L=yes # Not in the search PATH, but as the default
6012 # location of the library.
6013 export_dynamic_flag_spec='${wl}-E'
6016 irix5* | irix6* | nonstopux*)
6017 if test "$GCC" = yes; then
6018 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'
6019 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6021 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'
6022 hardcode_libdir_flag_spec='-rpath $libdir'
6024 hardcode_libdir_separator=:
6025 link_all_deplibs=yes
6029 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6030 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6032 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6034 hardcode_libdir_flag_spec='-R$libdir'
6036 hardcode_shlibpath_var=no
6040 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6042 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6043 hardcode_libdir_separator=:
6044 hardcode_shlibpath_var=no
6049 hardcode_shlibpath_var=no
6050 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6051 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6052 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6053 export_dynamic_flag_spec='${wl}-E'
6056 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6057 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6058 hardcode_libdir_flag_spec='-R$libdir'
6061 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6062 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6069 hardcode_libdir_flag_spec='-L$libdir'
6070 hardcode_minus_L=yes
6071 allow_undefined_flag=unsupported
6072 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'
6073 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6077 if test "$GCC" = yes; then
6078 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6079 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'
6081 allow_undefined_flag=' -expect_unresolved \*'
6082 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'
6084 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6085 hardcode_libdir_separator=:
6088 osf4* | osf5*) # as osf3* with the addition of -msym flag
6089 if test "$GCC" = yes; then
6090 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6091 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'
6092 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6094 allow_undefined_flag=' -expect_unresolved \*'
6095 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'
6096 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6097 $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'
6099 #Both c and cxx compiler support -rpath directly
6100 hardcode_libdir_flag_spec='-rpath $libdir'
6102 hardcode_libdir_separator=:
6106 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6107 hardcode_shlibpath_var=no
6108 runpath_var=LD_RUN_PATH
6109 hardcode_runpath_var=yes
6110 export_dynamic_flag_spec='${wl}-Bexport'
6114 # gcc --version < 3.0 without binutils cannot create self contained
6115 # shared libraries reliably, requiring libgcc.a to resolve some of
6116 # the object symbols generated in some cases. Libraries that use
6117 # assert need libgcc.a to resolve __eprintf, for example. Linking
6118 # a copy of libgcc.a into every shared library to guarantee resolving
6119 # such symbols causes other problems: According to Tim Van Holder
6120 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6121 # (to the application) exception stack for one thing.
6122 no_undefined_flag=' -z defs'
6123 if test "$GCC" = yes; then
6124 case `$CC --version 2>/dev/null` in
6128 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6129 *** create self contained shared libraries on Solaris systems, without
6130 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6131 *** -no-undefined support, which will at least allow you to build shared
6132 *** libraries. However, you may find that when you link such libraries
6133 *** into an application without using GCC, you have to manually add
6134 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6135 *** upgrade to a newer version of GCC. Another option is to rebuild your
6136 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6143 # $CC -shared without GNU ld will not create a library from C++
6144 # object files and a static libstdc++, better avoid it by now
6145 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6146 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6147 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6148 hardcode_libdir_flag_spec='-R$libdir'
6149 hardcode_shlibpath_var=no
6151 solaris2.[0-5] | solaris2.[0-5].*) ;;
6152 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6153 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6155 link_all_deplibs=yes
6159 if test "x$host_vendor" = xsequent; then
6160 # Use $CC to link under sequent, because it throws in some extra .o
6161 # files that make .init and .fini sections work.
6162 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6164 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6166 hardcode_libdir_flag_spec='-L$libdir'
6168 hardcode_minus_L=yes
6169 hardcode_shlibpath_var=no
6173 case $host_vendor in
6175 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6176 hardcode_direct=yes # is this really true???
6179 ## LD is ld it makes a PLAMLIB
6180 ## CC just makes a GrossModule.
6181 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6182 reload_cmds='$CC -r -o $output$reload_objs'
6186 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6187 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6190 runpath_var='LD_RUN_PATH'
6191 hardcode_shlibpath_var=no
6195 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6196 hardcode_shlibpath_var=no
6197 export_dynamic_flag_spec='-Bexport'
6201 no_undefined_flag=' -z text'
6202 # $CC -shared without GNU ld will not create a library from C++
6203 # object files and a static libstdc++, better avoid it by now
6204 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6205 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6206 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6207 hardcode_libdir_flag_spec=
6208 hardcode_shlibpath_var=no
6209 runpath_var='LD_RUN_PATH'
6213 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6214 hardcode_libdir_flag_spec='-L$libdir'
6215 hardcode_shlibpath_var=no
6219 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6220 hardcode_libdir_flag_spec='-L$libdir'
6221 hardcode_shlibpath_var=no
6225 if test -d /usr/nec; then
6226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6227 hardcode_shlibpath_var=no
6228 runpath_var=LD_RUN_PATH
6229 hardcode_runpath_var=yes
6235 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6238 hardcode_shlibpath_var=no
6239 hardcode_runpath_var=yes
6240 runpath_var=LD_RUN_PATH
6243 sysv5uw7* | unixware7*)
6244 no_undefined_flag='${wl}-z ${wl}text'
6245 if test "$GCC" = yes; then
6246 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6248 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6250 runpath_var='LD_RUN_PATH'
6251 hardcode_shlibpath_var=no
6259 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6260 echo "${ECHO_T}$ld_shlibs" >&6
6261 test "$ld_shlibs" = no && can_build_shared=no
6263 # Check hardcoding attributes.
6264 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6265 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6267 if test -n "$hardcode_libdir_flag_spec" || \
6268 test -n "$runpath_var"; then
6270 # We can hardcode non-existant directories.
6271 if test "$hardcode_direct" != no &&
6272 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6273 # have to relink, otherwise we might link with an installed library
6274 # when we should be linking with a yet-to-be-installed one
6275 ## test "$hardcode_shlibpath_var" != no &&
6276 test "$hardcode_minus_L" != no; then
6277 # Linking always hardcodes the temporary library directory.
6278 hardcode_action=relink
6280 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6281 hardcode_action=immediate
6284 # We cannot hardcode anything, or else we can only hardcode existing
6286 hardcode_action=unsupported
6288 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6289 echo "${ECHO_T}$hardcode_action" >&6
6293 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6294 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6295 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6296 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6297 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6298 echo "$as_me:$LINENO: result: yes" >&5
6299 echo "${ECHO_T}yes" >&6
6301 echo "$as_me:$LINENO: result: no" >&5
6302 echo "${ECHO_T}no" >&6
6305 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6306 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6308 # PORTME Fill in your ld.so characteristics
6309 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6310 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6312 libname_spec='lib$name'
6319 shlibpath_overrides_runpath=unknown
6321 dynamic_linker="$host_os ld.so"
6322 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib"
6323 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib"
6328 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6329 shlibpath_var=LIBPATH
6331 # AIX has no versioning support, so we append a major version to the name.
6332 soname_spec='${libname}${release}.so$major'
6339 hardcode_into_libs=yes
6340 if test "$host_cpu" = ia64; then
6341 # AIX 5 supports IA64
6342 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6343 shlibpath_var=LD_LIBRARY_PATH
6345 # With GCC up to 2.95.x, collect2 would create an import file
6346 # for dependence libraries. The import file would start with
6347 # the line `#! .'. This would cause the generated library to
6348 # depend on `.', always an invalid library. This was fixed in
6349 # development snapshots of GCC prior to 3.0.
6351 aix4 | aix4.[01] | aix4.[01].*)
6352 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6354 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6361 # AIX (on Power*) has no versioning support, so currently we can
6362 # not hardcode correct soname into executable. Probably we can
6363 # add versioning support to collect2, so additional links can
6364 # be useful in future.
6365 if test "$aix_use_runtimelinking" = yes; then
6366 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6367 # instead of lib<name>.a to let people know that these are not
6368 # typical AIX shared libraries.
6369 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6371 # We preserve .a as extension for shared libraries through AIX4.2
6372 # and later when we are not doing run time linking.
6373 library_names_spec='${libname}${release}.a $libname.a'
6374 soname_spec='${libname}${release}.so$major'
6376 shlibpath_var=LIBPATH
6378 hardcode_into_libs=yes
6382 library_names_spec='$libname.ixlibrary $libname.a'
6383 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6384 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'
6388 library_names_spec='${libname}.so'
6389 dynamic_linker="$host_os ld.so"
6390 shlibpath_var=LIBRARY_PATH
6396 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6397 soname_spec='${libname}${release}.so$major'
6398 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6399 shlibpath_var=LD_LIBRARY_PATH
6400 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6401 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6402 export_dynamic_flag_spec=-rdynamic
6403 # the default ld.so.conf also contains /usr/contrib/lib and
6404 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6405 # libtool to hard-code these into programs
6408 cygwin* | mingw* | pw32*)
6409 version_type=windows
6412 case $GCC,$host_os in
6414 library_names_spec='$libname.dll.a'
6415 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6416 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6417 dldir=$destdir/`dirname \$dlpath`~
6418 test -d \$dldir || mkdir -p \$dldir~
6419 $install_prog .libs/$dlname \$dldir/$dlname'
6420 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6421 dlpath=$dir/\$dldll~
6425 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6426 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6429 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6432 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6435 dynamic_linker='Win32 ld.exe'
6436 # FIXME: first we should search . and the directory the executable is in
6440 darwin* | rhapsody*)
6441 dynamic_linker="$host_os dyld"
6445 # FIXME: Relying on posixy $() will cause problems for
6446 # cross-compilation, but unfortunately the echo tests do not
6447 # yet detect zsh echo's removal of \ escapes.
6448 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)'
6449 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6450 shlibpath_overrides_runpath=yes
6451 shlibpath_var=DYLD_LIBRARY_PATH
6459 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6460 version_type=freebsd-$objformat
6461 case $version_type in
6463 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6468 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6472 shlibpath_var=LD_LIBRARY_PATH
6475 shlibpath_overrides_runpath=yes
6478 shlibpath_overrides_runpath=no
6479 hardcode_into_libs=yes
6488 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6489 soname_spec='${libname}${release}.so$major'
6490 shlibpath_var=LD_LIBRARY_PATH
6491 hardcode_into_libs=yes
6494 hpux9* | hpux10* | hpux11*)
6495 # Give a soname corresponding to the major version so that dld.sl refuses to
6496 # link against other versions.
6497 dynamic_linker="$host_os dld.sl"
6501 shlibpath_var=SHLIB_PATH
6502 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6503 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6504 soname_spec='${libname}${release}.sl$major'
6505 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6506 postinstall_cmds='chmod 555 $lib'
6509 irix5* | irix6* | nonstopux*)
6511 nonstopux*) version_type=nonstopux ;;
6512 *) version_type=irix ;;
6516 soname_spec='${libname}${release}.so$major'
6517 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6519 irix5* | nonstopux*)
6523 case $LD in # libtool.m4 will add one of these switches to LD
6524 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6525 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6526 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6527 *) libsuff= shlibsuff= libmagic=never-match;;
6531 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6532 shlibpath_overrides_runpath=no
6533 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6534 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6537 # No shared lib support for Linux oldld, aout, or coff.
6538 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6542 # This must be Linux ELF.
6547 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6548 soname_spec='${libname}${release}.so$major'
6549 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6550 shlibpath_var=LD_LIBRARY_PATH
6551 shlibpath_overrides_runpath=no
6552 # This implies no fast_install, which is unacceptable.
6553 # Some rework will be needed to allow for fast_install
6554 # before this can be enabled.
6555 hardcode_into_libs=yes
6557 case $host_cpu:$lt_cv_cc_64bit_output in
6558 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
6559 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
6560 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
6564 # We used to test for /lib/ld.so.1 and disable shared libraries on
6565 # powerpc, because MkLinux only supported shared libraries with the
6566 # GNU dynamic linker. Since this was broken with cross compilers,
6567 # most powerpc-linux boxes support dynamic linking these days and
6568 # people can always --disable-shared, the test was removed, and we
6569 # assume the GNU/Linux dynamic linker is in use.
6570 dynamic_linker='GNU/Linux ld.so'
6572 # Find out which ABI we are using (multilib Linux x86_64 hack).
6576 echo '#line 6576 "configure"' > conftest.$ac_ext
6577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6578 (eval $ac_compile) 2>&5
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); }; then
6582 case `/usr/bin/file conftest.$ac_objext` in
6593 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
6594 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
6601 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6602 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6603 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6604 dynamic_linker='NetBSD (a.out) ld.so'
6606 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6607 soname_spec='${libname}${release}.so$major'
6608 dynamic_linker='NetBSD ld.elf_so'
6610 shlibpath_var=LD_LIBRARY_PATH
6611 shlibpath_overrides_runpath=yes
6612 hardcode_into_libs=yes
6617 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6618 shlibpath_var=LD_LIBRARY_PATH
6619 shlibpath_overrides_runpath=yes
6626 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6628 openbsd2.[89] | openbsd2.[89].*)
6629 shlibpath_overrides_runpath=no
6632 shlibpath_overrides_runpath=yes
6636 shlibpath_overrides_runpath=yes
6638 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6639 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6640 shlibpath_var=LD_LIBRARY_PATH
6644 libname_spec='$name'
6646 library_names_spec='$libname.dll $libname.a'
6647 dynamic_linker='OS/2 ld.exe'
6648 shlibpath_var=LIBPATH
6651 osf3* | osf4* | osf5*)
6654 soname_spec='${libname}${release}.so$major'
6655 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6656 shlibpath_var=LD_LIBRARY_PATH
6657 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6658 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6659 hardcode_into_libs=yes
6664 soname_spec='${libname}${release}.so$major'
6665 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6666 shlibpath_var=LD_LIBRARY_PATH
6673 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6674 soname_spec='${libname}${release}.so$major'
6675 shlibpath_var=LD_LIBRARY_PATH
6676 shlibpath_overrides_runpath=yes
6677 hardcode_into_libs=yes
6678 # ldd complains unless libraries are executable
6679 postinstall_cmds='chmod +x $lib'
6684 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6685 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6686 shlibpath_var=LD_LIBRARY_PATH
6687 shlibpath_overrides_runpath=yes
6688 if test "$with_gnu_ld" = yes; then
6694 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6696 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6697 soname_spec='${libname}${release}.so$major'
6698 shlibpath_var=LD_LIBRARY_PATH
6699 case $host_vendor in
6701 shlibpath_overrides_runpath=no
6703 export_dynamic_flag_spec='${wl}-Blargedynsym'
6704 runpath_var=LD_RUN_PATH
6712 shlibpath_overrides_runpath=no
6713 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6720 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6721 soname_spec='${libname}${release}.so$major'
6722 shlibpath_var=LD_LIBRARY_PATH
6729 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6730 soname_spec='${libname}${release}.so$major'
6731 shlibpath_var=LD_LIBRARY_PATH
6735 if test -d /usr/nec ;then
6737 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6738 soname_spec='$libname.so.$major'
6739 shlibpath_var=LD_LIBRARY_PATH
6747 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6748 echo "${ECHO_T}$dynamic_linker" >&6
6749 test "$dynamic_linker" = no && can_build_shared=no
6751 # Report the final consequences.
6752 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6753 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6754 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6755 echo "${ECHO_T}$can_build_shared" >&6
6757 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6758 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6759 test "$can_build_shared" = "no" && enable_shared=no
6761 # On AIX, shared libraries and static libraries use the same namespace, and
6762 # are all built from PIC.
6765 test "$enable_shared" = yes && enable_static=no
6766 if test -n "$RANLIB"; then
6767 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6768 postinstall_cmds='$RANLIB $lib'
6773 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6774 test "$enable_shared" = yes && enable_static=no
6778 echo "$as_me:$LINENO: result: $enable_shared" >&5
6779 echo "${ECHO_T}$enable_shared" >&6
6781 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6782 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6783 # Make sure either enable_shared or enable_static is yes.
6784 test "$enable_shared" = yes || enable_static=yes
6785 echo "$as_me:$LINENO: result: $enable_static" >&5
6786 echo "${ECHO_T}$enable_static" >&6
6788 if test "$hardcode_action" = relink; then
6789 # Fast installation is not supported
6790 enable_fast_install=no
6791 elif test "$shlibpath_overrides_runpath" = yes ||
6792 test "$enable_shared" = no; then
6793 # Fast installation is not necessary
6794 enable_fast_install=needless
6797 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6798 if test "$GCC" = yes; then
6799 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6802 if test "x$enable_dlopen" != xyes; then
6803 enable_dlopen=unknown
6804 enable_dlopen_self=unknown
6805 enable_dlopen_self_static=unknown
6812 lt_cv_dlopen="load_add_on"
6814 lt_cv_dlopen_self=yes
6817 cygwin* | mingw* | pw32*)
6818 lt_cv_dlopen="LoadLibrary"
6823 echo "$as_me:$LINENO: checking for shl_load" >&5
6824 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6825 if test "${ac_cv_func_shl_load+set}" = set; then
6826 echo $ECHO_N "(cached) $ECHO_C" >&6
6828 cat >conftest.$ac_ext <<_ACEOF
6831 cat confdefs.h >>conftest.$ac_ext
6832 cat >>conftest.$ac_ext <<_ACEOF
6833 /* end confdefs.h. */
6834 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
6835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6836 #define shl_load innocuous_shl_load
6838 /* System header to define __stub macros and hopefully few prototypes,
6839 which can conflict with char shl_load (); below.
6840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6841 <limits.h> exists even on freestanding compilers. */
6844 # include <limits.h>
6846 # include <assert.h>
6851 /* Override any gcc2 internal prototype to avoid an error. */
6856 /* We use char because int might match the return type of a gcc2
6857 builtin and then its argument prototype would still apply. */
6859 /* The GNU C library defines this for functions which it implements
6860 to always fail with ENOSYS. Some functions are actually named
6861 something starting with __ and the normal name is an alias. */
6862 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6865 char (*f) () = shl_load;
6874 return f != shl_load;
6879 rm -f conftest.$ac_objext conftest$ac_exeext
6880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6881 (eval $ac_link) 2>conftest.er1
6883 grep -v '^ *+' conftest.er1 >conftest.err
6885 cat conftest.err >&5
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); } &&
6888 { ac_try='test -z "$ac_c_werror_flag"
6889 || test ! -s conftest.err'
6890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); }; } &&
6895 { ac_try='test -s conftest$ac_exeext'
6896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); }; }; then
6901 ac_cv_func_shl_load=yes
6903 echo "$as_me: failed program was:" >&5
6904 sed 's/^/| /' conftest.$ac_ext >&5
6906 ac_cv_func_shl_load=no
6908 rm -f conftest.err conftest.$ac_objext \
6909 conftest$ac_exeext conftest.$ac_ext
6911 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6912 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6913 if test $ac_cv_func_shl_load = yes; then
6914 lt_cv_dlopen="shl_load"
6916 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6917 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6918 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6919 echo $ECHO_N "(cached) $ECHO_C" >&6
6921 ac_check_lib_save_LIBS=$LIBS
6923 cat >conftest.$ac_ext <<_ACEOF
6926 cat confdefs.h >>conftest.$ac_ext
6927 cat >>conftest.$ac_ext <<_ACEOF
6928 /* end confdefs.h. */
6930 /* Override any gcc2 internal prototype to avoid an error. */
6934 /* We use char because int might match the return type of a gcc2
6935 builtin and then its argument prototype would still apply. */
6945 rm -f conftest.$ac_objext conftest$ac_exeext
6946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6947 (eval $ac_link) 2>conftest.er1
6949 grep -v '^ *+' conftest.er1 >conftest.err
6951 cat conftest.err >&5
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); } &&
6954 { ac_try='test -z "$ac_c_werror_flag"
6955 || test ! -s conftest.err'
6956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); }; } &&
6961 { ac_try='test -s conftest$ac_exeext'
6962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); }; }; then
6967 ac_cv_lib_dld_shl_load=yes
6969 echo "$as_me: failed program was:" >&5
6970 sed 's/^/| /' conftest.$ac_ext >&5
6972 ac_cv_lib_dld_shl_load=no
6974 rm -f conftest.err conftest.$ac_objext \
6975 conftest$ac_exeext conftest.$ac_ext
6976 LIBS=$ac_check_lib_save_LIBS
6978 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6979 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6980 if test $ac_cv_lib_dld_shl_load = yes; then
6981 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6983 echo "$as_me:$LINENO: checking for dlopen" >&5
6984 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6985 if test "${ac_cv_func_dlopen+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 cat >conftest.$ac_ext <<_ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>conftest.$ac_ext <<_ACEOF
6993 /* end confdefs.h. */
6994 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
6995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6996 #define dlopen innocuous_dlopen
6998 /* System header to define __stub macros and hopefully few prototypes,
6999 which can conflict with char dlopen (); below.
7000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7001 <limits.h> exists even on freestanding compilers. */
7004 # include <limits.h>
7006 # include <assert.h>
7011 /* Override any gcc2 internal prototype to avoid an error. */
7016 /* We use char because int might match the return type of a gcc2
7017 builtin and then its argument prototype would still apply. */
7019 /* The GNU C library defines this for functions which it implements
7020 to always fail with ENOSYS. Some functions are actually named
7021 something starting with __ and the normal name is an alias. */
7022 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7025 char (*f) () = dlopen;
7039 rm -f conftest.$ac_objext conftest$ac_exeext
7040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7041 (eval $ac_link) 2>conftest.er1
7043 grep -v '^ *+' conftest.er1 >conftest.err
7045 cat conftest.err >&5
7046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047 (exit $ac_status); } &&
7048 { ac_try='test -z "$ac_c_werror_flag"
7049 || test ! -s conftest.err'
7050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); }; } &&
7055 { ac_try='test -s conftest$ac_exeext'
7056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); }; }; then
7061 ac_cv_func_dlopen=yes
7063 echo "$as_me: failed program was:" >&5
7064 sed 's/^/| /' conftest.$ac_ext >&5
7066 ac_cv_func_dlopen=no
7068 rm -f conftest.err conftest.$ac_objext \
7069 conftest$ac_exeext conftest.$ac_ext
7071 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7072 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7073 if test $ac_cv_func_dlopen = yes; then
7074 lt_cv_dlopen="dlopen"
7076 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7077 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7078 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7081 ac_check_lib_save_LIBS=$LIBS
7083 cat >conftest.$ac_ext <<_ACEOF
7086 cat confdefs.h >>conftest.$ac_ext
7087 cat >>conftest.$ac_ext <<_ACEOF
7088 /* end confdefs.h. */
7090 /* Override any gcc2 internal prototype to avoid an error. */
7094 /* We use char because int might match the return type of a gcc2
7095 builtin and then its argument prototype would still apply. */
7105 rm -f conftest.$ac_objext conftest$ac_exeext
7106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7107 (eval $ac_link) 2>conftest.er1
7109 grep -v '^ *+' conftest.er1 >conftest.err
7111 cat conftest.err >&5
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); } &&
7114 { ac_try='test -z "$ac_c_werror_flag"
7115 || test ! -s conftest.err'
7116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); }; } &&
7121 { ac_try='test -s conftest$ac_exeext'
7122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); }; }; then
7127 ac_cv_lib_dl_dlopen=yes
7129 echo "$as_me: failed program was:" >&5
7130 sed 's/^/| /' conftest.$ac_ext >&5
7132 ac_cv_lib_dl_dlopen=no
7134 rm -f conftest.err conftest.$ac_objext \
7135 conftest$ac_exeext conftest.$ac_ext
7136 LIBS=$ac_check_lib_save_LIBS
7138 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7139 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7140 if test $ac_cv_lib_dl_dlopen = yes; then
7141 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7143 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7144 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7145 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7148 ac_check_lib_save_LIBS=$LIBS
7150 cat >conftest.$ac_ext <<_ACEOF
7153 cat confdefs.h >>conftest.$ac_ext
7154 cat >>conftest.$ac_ext <<_ACEOF
7155 /* end confdefs.h. */
7157 /* Override any gcc2 internal prototype to avoid an error. */
7161 /* We use char because int might match the return type of a gcc2
7162 builtin and then its argument prototype would still apply. */
7172 rm -f conftest.$ac_objext conftest$ac_exeext
7173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7174 (eval $ac_link) 2>conftest.er1
7176 grep -v '^ *+' conftest.er1 >conftest.err
7178 cat conftest.err >&5
7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); } &&
7181 { ac_try='test -z "$ac_c_werror_flag"
7182 || test ! -s conftest.err'
7183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); }; } &&
7188 { ac_try='test -s conftest$ac_exeext'
7189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); }; }; then
7194 ac_cv_lib_svld_dlopen=yes
7196 echo "$as_me: failed program was:" >&5
7197 sed 's/^/| /' conftest.$ac_ext >&5
7199 ac_cv_lib_svld_dlopen=no
7201 rm -f conftest.err conftest.$ac_objext \
7202 conftest$ac_exeext conftest.$ac_ext
7203 LIBS=$ac_check_lib_save_LIBS
7205 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7206 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7207 if test $ac_cv_lib_svld_dlopen = yes; then
7208 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7210 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7211 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7212 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7213 echo $ECHO_N "(cached) $ECHO_C" >&6
7215 ac_check_lib_save_LIBS=$LIBS
7217 cat >conftest.$ac_ext <<_ACEOF
7220 cat confdefs.h >>conftest.$ac_ext
7221 cat >>conftest.$ac_ext <<_ACEOF
7222 /* end confdefs.h. */
7224 /* Override any gcc2 internal prototype to avoid an error. */
7228 /* We use char because int might match the return type of a gcc2
7229 builtin and then its argument prototype would still apply. */
7239 rm -f conftest.$ac_objext conftest$ac_exeext
7240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7241 (eval $ac_link) 2>conftest.er1
7243 grep -v '^ *+' conftest.er1 >conftest.err
7245 cat conftest.err >&5
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); } &&
7248 { ac_try='test -z "$ac_c_werror_flag"
7249 || test ! -s conftest.err'
7250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254 (exit $ac_status); }; } &&
7255 { ac_try='test -s conftest$ac_exeext'
7256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); }; }; then
7261 ac_cv_lib_dld_dld_link=yes
7263 echo "$as_me: failed program was:" >&5
7264 sed 's/^/| /' conftest.$ac_ext >&5
7266 ac_cv_lib_dld_dld_link=no
7268 rm -f conftest.err conftest.$ac_objext \
7269 conftest$ac_exeext conftest.$ac_ext
7270 LIBS=$ac_check_lib_save_LIBS
7272 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7273 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7274 if test $ac_cv_lib_dld_dld_link = yes; then
7275 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7296 if test "x$lt_cv_dlopen" != xno; then
7302 case $lt_cv_dlopen in
7304 save_CPPFLAGS="$CPPFLAGS"
7305 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7307 save_LDFLAGS="$LDFLAGS"
7308 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7311 LIBS="$lt_cv_dlopen_libs $LIBS"
7313 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7314 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7315 if test "${lt_cv_dlopen_self+set}" = set; then
7316 echo $ECHO_N "(cached) $ECHO_C" >&6
7318 if test "$cross_compiling" = yes; then :
7319 lt_cv_dlopen_self=cross
7321 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7322 lt_status=$lt_dlunknown
7323 cat > conftest.$ac_ext <<EOF
7324 #line 7324 "configure"
7325 #include "confdefs.h"
7334 # define LT_DLGLOBAL RTLD_GLOBAL
7337 # define LT_DLGLOBAL DL_GLOBAL
7339 # define LT_DLGLOBAL 0
7343 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7344 find out it does not work in some platform. */
7345 #ifndef LT_DLLAZY_OR_NOW
7347 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7350 # define LT_DLLAZY_OR_NOW DL_LAZY
7353 # define LT_DLLAZY_OR_NOW RTLD_NOW
7356 # define LT_DLLAZY_OR_NOW DL_NOW
7358 # define LT_DLLAZY_OR_NOW 0
7366 extern "C" void exit (int);
7369 void fnord() { int i=42;}
7372 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7373 int status = $lt_dlunknown;
7377 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7378 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7379 /* dlclose (self); */
7385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7386 (eval $ac_link) 2>&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7390 (./conftest; exit; ) 2>/dev/null
7393 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7394 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7395 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7398 # compilation failed
7399 lt_cv_dlopen_self=no
7406 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7407 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7409 if test "x$lt_cv_dlopen_self" = xyes; then
7410 LDFLAGS="$LDFLAGS $link_static_flag"
7411 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7412 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7413 if test "${lt_cv_dlopen_self_static+set}" = set; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
7416 if test "$cross_compiling" = yes; then :
7417 lt_cv_dlopen_self_static=cross
7419 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7420 lt_status=$lt_dlunknown
7421 cat > conftest.$ac_ext <<EOF
7422 #line 7422 "configure"
7423 #include "confdefs.h"
7432 # define LT_DLGLOBAL RTLD_GLOBAL
7435 # define LT_DLGLOBAL DL_GLOBAL
7437 # define LT_DLGLOBAL 0
7441 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7442 find out it does not work in some platform. */
7443 #ifndef LT_DLLAZY_OR_NOW
7445 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7448 # define LT_DLLAZY_OR_NOW DL_LAZY
7451 # define LT_DLLAZY_OR_NOW RTLD_NOW
7454 # define LT_DLLAZY_OR_NOW DL_NOW
7456 # define LT_DLLAZY_OR_NOW 0
7464 extern "C" void exit (int);
7467 void fnord() { int i=42;}
7470 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7471 int status = $lt_dlunknown;
7475 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7476 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7477 /* dlclose (self); */
7483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7484 (eval $ac_link) 2>&5
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7488 (./conftest; exit; ) 2>/dev/null
7491 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7492 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7493 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7496 # compilation failed
7497 lt_cv_dlopen_self_static=no
7504 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7505 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7508 CPPFLAGS="$save_CPPFLAGS"
7509 LDFLAGS="$save_LDFLAGS"
7514 case $lt_cv_dlopen_self in
7515 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7516 *) enable_dlopen_self=unknown ;;
7519 case $lt_cv_dlopen_self_static in
7520 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7521 *) enable_dlopen_self_static=unknown ;;
7526 if test "$enable_shared" = yes && test "$GCC" = yes; then
7527 case $archive_cmds in
7529 # FIXME: we may have to deal with multi-command sequences.
7532 # Test whether the compiler implicitly links with -lc since on some
7533 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7534 # to ld, don't add -lc before -lgcc.
7535 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7536 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7537 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7538 echo $ECHO_N "(cached) $ECHO_C" >&6
7541 echo 'static int dummy;' > conftest.$ac_ext
7543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7544 (eval $ac_compile) 2>&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); }; then
7550 libobjs=conftest.$ac_objext
7552 wl=$lt_cv_prog_cc_wl
7558 save_allow_undefined_flag=$allow_undefined_flag
7559 allow_undefined_flag=
7560 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7561 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); }
7566 lt_cv_archive_cmds_need_lc=no
7568 lt_cv_archive_cmds_need_lc=yes
7570 allow_undefined_flag=$save_allow_undefined_flag
7572 cat conftest.err 1>&5
7576 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7577 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7581 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7583 # The second clause should only fire when bootstrapping the
7584 # libtool distribution, otherwise you forgot to ship ltmain.sh
7585 # with your package, and you will get complaints that there are
7586 # no rules to generate ltmain.sh.
7587 if test -f "$ltmain"; then
7590 # If there is no Makefile yet, we rely on a make rule to execute
7591 # `config.status --recheck' to rerun these tests and create the
7592 # libtool script then.
7593 test -f Makefile && make "$ltmain"
7596 if test -f "$ltmain"; then
7597 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7600 echo creating $ofile
7602 # Now quote all the things that may contain metacharacters while being
7603 # careful not to overquote the AC_SUBSTed values. We take copies of the
7604 # variables and quote the copies for generation of the libtool script.
7605 for var in echo old_CC old_CFLAGS SED \
7606 AR AR_FLAGS CC LD LN_S NM SHELL \
7607 reload_flag reload_cmds wl \
7608 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7609 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7610 library_names_spec soname_spec \
7611 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7612 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7613 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7614 old_striplib striplib file_magic_cmd export_symbols_cmds \
7615 deplibs_check_method allow_undefined_flag no_undefined_flag \
7616 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7617 global_symbol_to_c_name_address \
7618 hardcode_libdir_flag_spec hardcode_libdir_separator \
7619 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7620 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7623 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7624 old_postinstall_cmds | old_postuninstall_cmds | \
7625 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7626 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7627 postinstall_cmds | postuninstall_cmds | \
7628 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7629 # Double-quote double-evaled strings.
7630 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7633 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7638 cat <<__EOF__ > "${ofile}T"
7641 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7642 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7643 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7645 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7646 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7648 # This program is free software; you can redistribute it and/or modify
7649 # it under the terms of the GNU General Public License as published by
7650 # the Free Software Foundation; either version 2 of the License, or
7651 # (at your option) any later version.
7653 # This program is distributed in the hope that it will be useful, but
7654 # WITHOUT ANY WARRANTY; without even the implied warranty of
7655 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7656 # General Public License for more details.
7658 # You should have received a copy of the GNU General Public License
7659 # along with this program; if not, write to the Free Software
7660 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7662 # As a special exception to the GNU General Public License, if you
7663 # distribute this file as part of a program that contains a
7664 # configuration script generated by Autoconf, you may include it under
7665 # the same distribution terms that you use for the rest of that program.
7667 # A sed that does not truncate output.
7670 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7671 Xsed="${SED} -e s/^X//"
7673 # The HP-UX ksh and POSIX shell print the target directory to stdout
7675 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7677 # ### BEGIN LIBTOOL CONFIG
7679 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7681 # Shell to use when invoking shell scripts.
7684 # Whether or not to build shared libraries.
7685 build_libtool_libs=$enable_shared
7687 # Whether or not to build static libraries.
7688 build_old_libs=$enable_static
7690 # Whether or not to add -lc for building shared libraries.
7691 build_libtool_need_lc=$need_lc
7693 # Whether or not to optimize for fast installation.
7694 fast_install=$enable_fast_install
7697 host_alias=$host_alias
7700 # An echo program that does not interpret backslashes.
7705 AR_FLAGS=$lt_AR_FLAGS
7707 # The default C compiler.
7710 # Is the compiler the GNU C compiler?
7713 # The linker used to build libraries.
7716 # Whether we need hard or soft links.
7719 # A BSD-compatible nm program.
7722 # A symbol stripping program
7725 # Used to examine libraries when file_magic_cmd begins "file"
7726 MAGIC_CMD=$MAGIC_CMD
7728 # Used on cygwin: DLL creation program.
7731 # Used on cygwin: object dumper.
7734 # Used on cygwin: assembler.
7737 # The name of the directory that contains temporary libtool files.
7740 # How to create reloadable object files.
7741 reload_flag=$lt_reload_flag
7742 reload_cmds=$lt_reload_cmds
7744 # How to pass a linker flag through the compiler.
7747 # Object file suffix (normally "o").
7750 # Old archive suffix (normally "a").
7753 # Executable file suffix (normally "").
7756 # Additional compiler flags for building library objects.
7757 pic_flag=$lt_pic_flag
7760 # Does compiler simultaneously support -c and -o options?
7761 compiler_c_o=$lt_compiler_c_o
7763 # Can we write directly to a .lo ?
7764 compiler_o_lo=$lt_compiler_o_lo
7766 # Must we lock files when doing compilation ?
7767 need_locks=$lt_need_locks
7769 # Do we need the lib prefix for modules?
7770 need_lib_prefix=$need_lib_prefix
7772 # Do we need a version for libraries?
7773 need_version=$need_version
7775 # Whether dlopen is supported.
7776 dlopen_support=$enable_dlopen
7778 # Whether dlopen of programs is supported.
7779 dlopen_self=$enable_dlopen_self
7781 # Whether dlopen of statically linked programs is supported.
7782 dlopen_self_static=$enable_dlopen_self_static
7784 # Compiler flag to prevent dynamic linking.
7785 link_static_flag=$lt_link_static_flag
7787 # Compiler flag to turn off builtin functions.
7788 no_builtin_flag=$lt_no_builtin_flag
7790 # Compiler flag to allow reflexive dlopens.
7791 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7793 # Compiler flag to generate shared objects directly from archives.
7794 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7796 # Compiler flag to generate thread-safe objects.
7797 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7799 # Library versioning type.
7800 version_type=$version_type
7802 # Format of library name prefix.
7803 libname_spec=$lt_libname_spec
7805 # List of archive names. First name is the real one, the rest are links.
7806 # The last name is the one that the linker finds with -lNAME.
7807 library_names_spec=$lt_library_names_spec
7809 # The coded name of the library, if different from the real name.
7810 soname_spec=$lt_soname_spec
7812 # Commands used to build and install an old-style archive.
7814 old_archive_cmds=$lt_old_archive_cmds
7815 old_postinstall_cmds=$lt_old_postinstall_cmds
7816 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7818 # Create an old-style archive from a shared archive.
7819 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7821 # Create a temporary old-style archive to link instead of a shared archive.
7822 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7824 # Commands used to build and install a shared archive.
7825 archive_cmds=$lt_archive_cmds
7826 archive_expsym_cmds=$lt_archive_expsym_cmds
7827 postinstall_cmds=$lt_postinstall_cmds
7828 postuninstall_cmds=$lt_postuninstall_cmds
7830 # Commands to strip libraries.
7831 old_striplib=$lt_old_striplib
7832 striplib=$lt_striplib
7834 # Method to check whether dependent libraries are shared objects.
7835 deplibs_check_method=$lt_deplibs_check_method
7837 # Command to use when deplibs_check_method == file_magic.
7838 file_magic_cmd=$lt_file_magic_cmd
7840 # Flag that allows shared libraries with undefined symbols to be built.
7841 allow_undefined_flag=$lt_allow_undefined_flag
7843 # Flag that forces no undefined symbols.
7844 no_undefined_flag=$lt_no_undefined_flag
7846 # Commands used to finish a libtool library installation in a directory.
7847 finish_cmds=$lt_finish_cmds
7849 # Same as above, but a single script fragment to be evaled but not shown.
7850 finish_eval=$lt_finish_eval
7852 # Take the output of nm and produce a listing of raw symbols and C names.
7853 global_symbol_pipe=$lt_global_symbol_pipe
7855 # Transform the output of nm in a proper C declaration
7856 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7858 # Transform the output of nm in a C name address pair
7859 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7861 # This is the shared library runtime path variable.
7862 runpath_var=$runpath_var
7864 # This is the shared library path variable.
7865 shlibpath_var=$shlibpath_var
7867 # Is shlibpath searched before the hard-coded library search path?
7868 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7870 # How to hardcode a shared library path into an executable.
7871 hardcode_action=$hardcode_action
7873 # Whether we should hardcode library paths into libraries.
7874 hardcode_into_libs=$hardcode_into_libs
7876 # Flag to hardcode \$libdir into a binary during linking.
7877 # This must work even if \$libdir does not exist.
7878 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7880 # Whether we need a single -rpath flag with a separated argument.
7881 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7883 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7885 hardcode_direct=$hardcode_direct
7887 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7889 hardcode_minus_L=$hardcode_minus_L
7891 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7892 # the resulting binary.
7893 hardcode_shlibpath_var=$hardcode_shlibpath_var
7895 # Variables whose values should be saved in libtool wrapper scripts and
7896 # restored at relink time.
7897 variables_saved_for_relink="$variables_saved_for_relink"
7899 # Whether libtool must link a program against all its dependency libraries.
7900 link_all_deplibs=$link_all_deplibs
7902 # Compile-time system search path for libraries
7903 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7905 # Run-time system search path for libraries
7906 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7908 # Fix the shell variable \$srcfile for the compiler.
7909 fix_srcfile_path="$fix_srcfile_path"
7911 # Set to yes if exported symbols are required.
7912 always_export_symbols=$always_export_symbols
7914 # The commands to list exported symbols.
7915 export_symbols_cmds=$lt_export_symbols_cmds
7917 # The commands to extract the exported symbol list from a shared archive.
7918 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7920 # Symbols that should not be listed in the preloaded symbols.
7921 exclude_expsyms=$lt_exclude_expsyms
7923 # Symbols that must always be exported.
7924 include_expsyms=$lt_include_expsyms
7926 # ### END LIBTOOL CONFIG
7932 cat <<\EOF >> "${ofile}T"
7934 # AIX sometimes has problems with the GCC collect2 program. For some
7935 # reason, if we set the COLLECT_NAMES environment variable, the problems
7936 # vanish in a puff of smoke.
7937 if test "X${COLLECT_NAMES+set}" != Xset; then
7939 export COLLECT_NAMES
7946 cygwin* | mingw* | pw32* | os2*)
7947 cat <<'EOF' >> "${ofile}T"
7948 # This is a source program that is used to create dlls on Windows
7949 # Don't remove nor modify the starting and closing comments
7950 # /* ltdll.c starts here */
7951 # #define WIN32_LEAN_AND_MEAN
7952 # #include <windows.h>
7953 # #undef WIN32_LEAN_AND_MEAN
7954 # #include <stdio.h>
7956 # #ifndef __CYGWIN__
7957 # # ifdef __CYGWIN32__
7958 # # define __CYGWIN__ __CYGWIN32__
7962 # #ifdef __cplusplus
7965 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7966 # #ifdef __cplusplus
7971 # #include <cygwin/cygwin_dll.h>
7972 # DECLARE_CYGWIN_DLL( DllMain );
7974 # HINSTANCE __hDllInstance_base;
7977 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7979 # __hDllInstance_base = hInst;
7982 # /* ltdll.c ends here */
7983 # This is a source program that is used to create import libraries
7984 # on Windows for dlls which lack them. Don't remove nor modify the
7985 # starting and closing comments
7986 # /* impgen.c starts here */
7987 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7989 # This file is part of GNU libtool.
7991 # This program is free software; you can redistribute it and/or modify
7992 # it under the terms of the GNU General Public License as published by
7993 # the Free Software Foundation; either version 2 of the License, or
7994 # (at your option) any later version.
7996 # This program is distributed in the hope that it will be useful,
7997 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7998 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7999 # GNU General Public License for more details.
8001 # You should have received a copy of the GNU General Public License
8002 # along with this program; if not, write to the Free Software
8003 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8006 # #include <stdio.h> /* for printf() */
8007 # #include <unistd.h> /* for open(), lseek(), read() */
8008 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8009 # #include <string.h> /* for strdup() */
8011 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8013 # #define O_BINARY 0
8016 # static unsigned int
8017 # pe_get16 (fd, offset)
8021 # unsigned char b[2];
8022 # lseek (fd, offset, SEEK_SET);
8024 # return b[0] + (b[1]<<8);
8027 # static unsigned int
8028 # pe_get32 (fd, offset)
8032 # unsigned char b[4];
8033 # lseek (fd, offset, SEEK_SET);
8035 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8038 # static unsigned int
8042 # unsigned char *b = ptr;
8043 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8052 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8053 # unsigned long export_rva, export_size, nsections, secptr, expptr;
8054 # unsigned long name_rvas, nexp;
8055 # unsigned char *expdata, *erva;
8056 # char *filename, *dll_name;
8058 # filename = argv[1];
8060 # dll = open(filename, O_RDONLY|O_BINARY);
8064 # dll_name = filename;
8066 # for (i=0; filename[i]; i++)
8067 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8068 # dll_name = filename + i +1;
8070 # pe_header_offset = pe_get32 (dll, 0x3c);
8071 # opthdr_ofs = pe_header_offset + 4 + 20;
8072 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
8074 # if (num_entries < 1) /* no exports */
8077 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
8078 # export_size = pe_get32 (dll, opthdr_ofs + 100);
8079 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8080 # secptr = (pe_header_offset + 4 + 20 +
8081 # pe_get16 (dll, pe_header_offset + 4 + 16));
8084 # for (i = 0; i < nsections; i++)
8087 # unsigned long secptr1 = secptr + 40 * i;
8088 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8089 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8090 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8091 # lseek(dll, secptr1, SEEK_SET);
8092 # read(dll, sname, 8);
8093 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8095 # expptr = fptr + (export_rva - vaddr);
8096 # if (export_rva + export_size > vaddr + vsize)
8097 # export_size = vsize - (export_rva - vaddr);
8102 # expdata = (unsigned char*)malloc(export_size);
8103 # lseek (dll, expptr, SEEK_SET);
8104 # read (dll, expdata, export_size);
8105 # erva = expdata - export_rva;
8107 # nexp = pe_as32 (expdata+24);
8108 # name_rvas = pe_as32 (expdata+32);
8110 # printf ("EXPORTS\n");
8111 # for (i = 0; i<nexp; i++)
8113 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8114 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8119 # /* impgen.c ends here */
8125 # We use sed instead of cat because bash on DJGPP gets confused if
8126 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8127 # text mode, it properly converts lines to CR/LF. This bash problem
8128 # is reportedly fixed, but why not run on old versions too?
8129 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8131 mv -f "${ofile}T" "$ofile" || \
8132 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8140 # This can be used to rebuild libtool when needed
8141 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8143 # Always use our own libtool.
8144 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8146 # Prevent multiple expansion
8149 for ac_prog in gzip uncompress compress
8151 # Extract the first word of "$ac_prog", so it can be a program name with args.
8152 set dummy $ac_prog; ac_word=$2
8153 echo "$as_me:$LINENO: checking for $ac_word" >&5
8154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8155 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
8156 echo $ECHO_N "(cached) $ECHO_C" >&6
8158 if test -n "$UNCOMPRESS"; then
8159 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
8161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8165 test -z "$as_dir" && as_dir=.
8166 for ac_exec_ext in '' $ac_executable_extensions; do
8167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8168 ac_cv_prog_UNCOMPRESS="$ac_prog"
8169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8177 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
8178 if test -n "$UNCOMPRESS"; then
8179 echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
8180 echo "${ECHO_T}$UNCOMPRESS" >&6
8182 echo "$as_me:$LINENO: result: no" >&5
8183 echo "${ECHO_T}no" >&6
8186 test -n "$UNCOMPRESS" && break
8196 echo "$as_me:$LINENO: checking for target system" >&5
8197 echo $ECHO_N "checking for target system... $ECHO_C" >&6
8201 *cygwin* ) CYGWIN=yes;;
8202 *mingw* ) MINGW=yes;;
8206 if test "x$MINGW" = "xyes"; then
8207 #fix for the debian distribution of mingw
8208 if test -x "/usr/i586-mingw32msvc/bin/ar";then
8209 AR="/usr/i586-mingw32msvc/bin/ar"
8211 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
8212 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
8214 #fix for the gentoo distribution of mingw
8215 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
8216 AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
8218 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
8219 RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
8221 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
8222 STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
8228 if test "x${CYGWIN}" = "xyes"; then
8229 cat >>confdefs.h <<_ACEOF
8233 echo "$as_me:$LINENO: result: cygwin" >&5
8234 echo "${ECHO_T}cygwin" >&6
8236 if test "x${MINGW}" = "xyes"; then
8237 cat >>confdefs.h <<_ACEOF
8242 cat >>confdefs.h <<_ACEOF
8246 LIBS="$LIBS -lws2_32"
8247 echo "$as_me:$LINENO: result: mingw" >&5
8248 echo "${ECHO_T}mingw" >&6
8252 cat >>confdefs.h <<_ACEOF
8256 echo "$as_me:$LINENO: result: " >&5
8257 echo "${ECHO_T}" >&6
8263 if test "x${MINGW}" != "xyes"; then
8264 cat >>confdefs.h <<_ACEOF
8273 # The following tries to make use of includes and libraries in
8274 # /usr/local, too. Notice: A -I/usr/local/include might break
8275 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
8276 # especially on systems which link /usr/local to /usr, so it has yet
8277 # to be seen how useful this is.
8278 if test -d /usr/local/lib; then
8279 LDFLAGS="$LDFLAGS -L/usr/local/lib"
8281 if test -d /usr/local/include; then
8282 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
8283 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
8286 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
8287 # if the user has a special prefix (like /opt), there might also be $prefix/lib
8288 # and $prefix/include, which should be included in our search paths for libraries
8290 LDFLAGS="$LDFLAGS -L${libdir}"
8291 CPPFLAGS="$CPPFLAGS -I${includedir}"
8292 # TODO- test whether gcc still works after this
8295 # this must be done after (I believe) AC_PROG_MAKE_SET
8296 if test "x$DEBUG" '!=' "x";then
8297 STRIP="@echo debug enabled, not stripping "
8303 echo "$as_me:$LINENO: checking for sin in -lm" >&5
8304 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8305 if test "${ac_cv_lib_m_sin+set}" = set; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
8308 ac_check_lib_save_LIBS=$LIBS
8310 cat >conftest.$ac_ext <<_ACEOF
8313 cat confdefs.h >>conftest.$ac_ext
8314 cat >>conftest.$ac_ext <<_ACEOF
8315 /* end confdefs.h. */
8317 /* Override any gcc2 internal prototype to avoid an error. */
8321 /* We use char because int might match the return type of a gcc2
8322 builtin and then its argument prototype would still apply. */
8332 rm -f conftest.$ac_objext conftest$ac_exeext
8333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8334 (eval $ac_link) 2>conftest.er1
8336 grep -v '^ *+' conftest.er1 >conftest.err
8338 cat conftest.err >&5
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); } &&
8341 { ac_try='test -z "$ac_c_werror_flag"
8342 || test ! -s conftest.err'
8343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); }; } &&
8348 { ac_try='test -s conftest$ac_exeext'
8349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); }; }; then
8356 echo "$as_me: failed program was:" >&5
8357 sed 's/^/| /' conftest.$ac_ext >&5
8361 rm -f conftest.err conftest.$ac_objext \
8362 conftest$ac_exeext conftest.$ac_ext
8363 LIBS=$ac_check_lib_save_LIBS
8365 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8366 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8367 if test $ac_cv_lib_m_sin = yes; then
8368 cat >>confdefs.h <<_ACEOF
8375 echo "Error: Math library not found.";
8381 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
8382 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
8383 if test "${ac_cv_lib_z_deflate+set}" = set; then
8384 echo $ECHO_N "(cached) $ECHO_C" >&6
8386 ac_check_lib_save_LIBS=$LIBS
8388 cat >conftest.$ac_ext <<_ACEOF
8391 cat confdefs.h >>conftest.$ac_ext
8392 cat >>conftest.$ac_ext <<_ACEOF
8393 /* end confdefs.h. */
8395 /* Override any gcc2 internal prototype to avoid an error. */
8399 /* We use char because int might match the return type of a gcc2
8400 builtin and then its argument prototype would still apply. */
8410 rm -f conftest.$ac_objext conftest$ac_exeext
8411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8412 (eval $ac_link) 2>conftest.er1
8414 grep -v '^ *+' conftest.er1 >conftest.err
8416 cat conftest.err >&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); } &&
8419 { ac_try='test -z "$ac_c_werror_flag"
8420 || test ! -s conftest.err'
8421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); }; } &&
8426 { ac_try='test -s conftest$ac_exeext'
8427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); }; }; then
8432 ac_cv_lib_z_deflate=yes
8434 echo "$as_me: failed program was:" >&5
8435 sed 's/^/| /' conftest.$ac_ext >&5
8437 ac_cv_lib_z_deflate=no
8439 rm -f conftest.err conftest.$ac_objext \
8440 conftest$ac_exeext conftest.$ac_ext
8441 LIBS=$ac_check_lib_save_LIBS
8443 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
8444 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
8445 if test $ac_cv_lib_z_deflate = yes; then
8446 cat >>confdefs.h <<_ACEOF
8453 DISABLEPNG2SWF=true;
8454 MISSINGLIBS="${MISSINGLIBS} zlib"
8460 echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
8461 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6
8462 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
8463 echo $ECHO_N "(cached) $ECHO_C" >&6
8465 ac_check_lib_save_LIBS=$LIBS
8467 cat >conftest.$ac_ext <<_ACEOF
8470 cat confdefs.h >>conftest.$ac_ext
8471 cat >>conftest.$ac_ext <<_ACEOF
8472 /* end confdefs.h. */
8474 /* Override any gcc2 internal prototype to avoid an error. */
8478 /* We use char because int might match the return type of a gcc2
8479 builtin and then its argument prototype would still apply. */
8480 char jpeg_write_raw_data ();
8484 jpeg_write_raw_data ();
8489 rm -f conftest.$ac_objext conftest$ac_exeext
8490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8491 (eval $ac_link) 2>conftest.er1
8493 grep -v '^ *+' conftest.er1 >conftest.err
8495 cat conftest.err >&5
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); } &&
8498 { ac_try='test -z "$ac_c_werror_flag"
8499 || test ! -s conftest.err'
8500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); }; } &&
8505 { ac_try='test -s conftest$ac_exeext'
8506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); }; }; then
8511 ac_cv_lib_jpeg_jpeg_write_raw_data=yes
8513 echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8516 ac_cv_lib_jpeg_jpeg_write_raw_data=no
8518 rm -f conftest.err conftest.$ac_objext \
8519 conftest$ac_exeext conftest.$ac_ext
8520 LIBS=$ac_check_lib_save_LIBS
8522 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
8523 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6
8524 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
8525 cat >>confdefs.h <<_ACEOF
8526 #define HAVE_LIBJPEG 1
8532 DISABLEPDF2SWF=true;
8533 DISABLEJPEG2SWF=true;
8534 MISSINGLIBS="${MISSINGLIBS} jpeglib"
8539 echo "$as_me:$LINENO: checking for T1_LoadFont in -lt1" >&5
8540 echo $ECHO_N "checking for T1_LoadFont in -lt1... $ECHO_C" >&6
8541 if test "${ac_cv_lib_t1_T1_LoadFont+set}" = set; then
8542 echo $ECHO_N "(cached) $ECHO_C" >&6
8544 ac_check_lib_save_LIBS=$LIBS
8546 cat >conftest.$ac_ext <<_ACEOF
8549 cat confdefs.h >>conftest.$ac_ext
8550 cat >>conftest.$ac_ext <<_ACEOF
8551 /* end confdefs.h. */
8553 /* Override any gcc2 internal prototype to avoid an error. */
8557 /* We use char because int might match the return type of a gcc2
8558 builtin and then its argument prototype would still apply. */
8559 char T1_LoadFont ();
8568 rm -f conftest.$ac_objext conftest$ac_exeext
8569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8570 (eval $ac_link) 2>conftest.er1
8572 grep -v '^ *+' conftest.er1 >conftest.err
8574 cat conftest.err >&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); } &&
8577 { ac_try='test -z "$ac_c_werror_flag"
8578 || test ! -s conftest.err'
8579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); }; } &&
8584 { ac_try='test -s conftest$ac_exeext'
8585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); }; }; then
8590 ac_cv_lib_t1_T1_LoadFont=yes
8592 echo "$as_me: failed program was:" >&5
8593 sed 's/^/| /' conftest.$ac_ext >&5
8595 ac_cv_lib_t1_T1_LoadFont=no
8597 rm -f conftest.err conftest.$ac_objext \
8598 conftest$ac_exeext conftest.$ac_ext
8599 LIBS=$ac_check_lib_save_LIBS
8601 echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_LoadFont" >&5
8602 echo "${ECHO_T}$ac_cv_lib_t1_T1_LoadFont" >&6
8603 if test $ac_cv_lib_t1_T1_LoadFont = yes; then
8604 cat >>confdefs.h <<_ACEOF
8605 #define HAVE_LIBT1 1
8611 DISABLEPDF2SWF=true;
8612 MISSINGLIBS="${MISSINGLIBS} t1lib"
8618 for ac_prog in freetype-config
8620 # Extract the first word of "$ac_prog", so it can be a program name with args.
8621 set dummy $ac_prog; ac_word=$2
8622 echo "$as_me:$LINENO: checking for $ac_word" >&5
8623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8624 if test "${ac_cv_prog_FREETYPE_CONFIG+set}" = set; then
8625 echo $ECHO_N "(cached) $ECHO_C" >&6
8627 if test -n "$FREETYPE_CONFIG"; then
8628 ac_cv_prog_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test.
8630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8634 test -z "$as_dir" && as_dir=.
8635 for ac_exec_ext in '' $ac_executable_extensions; do
8636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8637 ac_cv_prog_FREETYPE_CONFIG="$ac_prog"
8638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8646 FREETYPE_CONFIG=$ac_cv_prog_FREETYPE_CONFIG
8647 if test -n "$FREETYPE_CONFIG"; then
8648 echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8649 echo "${ECHO_T}$FREETYPE_CONFIG" >&6
8651 echo "$as_me:$LINENO: result: no" >&5
8652 echo "${ECHO_T}no" >&6
8655 test -n "$FREETYPE_CONFIG" && break
8658 OLDCPPFLAGS="${CPPFLAGS}"
8660 if test "x${FREETYPE_CONFIG}" != "x"; then
8661 CPPFLAGS="$CPPFLAGS "`freetype-config --cflags`
8662 else if test -d /usr/include/freetype2; then
8663 CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
8664 else if test -d /usr/local/include/freetype2; then
8665 CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
8669 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8670 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
8671 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8672 echo $ECHO_N "(cached) $ECHO_C" >&6
8674 ac_check_lib_save_LIBS=$LIBS
8675 LIBS="-lfreetype $LIBS"
8676 cat >conftest.$ac_ext <<_ACEOF
8679 cat confdefs.h >>conftest.$ac_ext
8680 cat >>conftest.$ac_ext <<_ACEOF
8681 /* end confdefs.h. */
8683 /* Override any gcc2 internal prototype to avoid an error. */
8687 /* We use char because int might match the return type of a gcc2
8688 builtin and then its argument prototype would still apply. */
8689 char FT_Init_FreeType ();
8693 FT_Init_FreeType ();
8698 rm -f conftest.$ac_objext conftest$ac_exeext
8699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8700 (eval $ac_link) 2>conftest.er1
8702 grep -v '^ *+' conftest.er1 >conftest.err
8704 cat conftest.err >&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } &&
8707 { ac_try='test -z "$ac_c_werror_flag"
8708 || test ! -s conftest.err'
8709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); }; } &&
8714 { ac_try='test -s conftest$ac_exeext'
8715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); }; }; then
8720 ac_cv_lib_freetype_FT_Init_FreeType=yes
8722 echo "$as_me: failed program was:" >&5
8723 sed 's/^/| /' conftest.$ac_ext >&5
8725 ac_cv_lib_freetype_FT_Init_FreeType=no
8727 rm -f conftest.err conftest.$ac_objext \
8728 conftest$ac_exeext conftest.$ac_ext
8729 LIBS=$ac_check_lib_save_LIBS
8731 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8732 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
8733 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8738 for ac_header in freetype/freetype.h
8740 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8742 echo "$as_me:$LINENO: checking for $ac_header" >&5
8743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
8747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8748 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8750 # Is the header compilable?
8751 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8752 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8753 cat >conftest.$ac_ext <<_ACEOF
8756 cat confdefs.h >>conftest.$ac_ext
8757 cat >>conftest.$ac_ext <<_ACEOF
8758 /* end confdefs.h. */
8759 $ac_includes_default
8760 #include <$ac_header>
8762 rm -f conftest.$ac_objext
8763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8764 (eval $ac_compile) 2>conftest.er1
8766 grep -v '^ *+' conftest.er1 >conftest.err
8768 cat conftest.err >&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); } &&
8771 { ac_try='test -z "$ac_c_werror_flag"
8772 || test ! -s conftest.err'
8773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); }; } &&
8778 { ac_try='test -s conftest.$ac_objext'
8779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783 (exit $ac_status); }; }; then
8784 ac_header_compiler=yes
8786 echo "$as_me: failed program was:" >&5
8787 sed 's/^/| /' conftest.$ac_ext >&5
8789 ac_header_compiler=no
8791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8792 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8793 echo "${ECHO_T}$ac_header_compiler" >&6
8795 # Is the header present?
8796 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8797 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8798 cat >conftest.$ac_ext <<_ACEOF
8801 cat confdefs.h >>conftest.$ac_ext
8802 cat >>conftest.$ac_ext <<_ACEOF
8803 /* end confdefs.h. */
8804 #include <$ac_header>
8806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8807 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8809 grep -v '^ *+' conftest.er1 >conftest.err
8811 cat conftest.err >&5
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); } >/dev/null; then
8814 if test -s conftest.err; then
8815 ac_cpp_err=$ac_c_preproc_warn_flag
8816 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8823 if test -z "$ac_cpp_err"; then
8824 ac_header_preproc=yes
8826 echo "$as_me: failed program was:" >&5
8827 sed 's/^/| /' conftest.$ac_ext >&5
8829 ac_header_preproc=no
8831 rm -f conftest.err conftest.$ac_ext
8832 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8833 echo "${ECHO_T}$ac_header_preproc" >&6
8835 # So? What about this header?
8836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8838 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8839 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8841 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8842 ac_header_preproc=yes
8845 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8846 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8847 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8848 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8849 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8850 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8851 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8852 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8854 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8855 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8856 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8859 ## ------------------------------------------ ##
8860 ## Report this to the AC_PACKAGE_NAME lists. ##
8861 ## ------------------------------------------ ##
8864 sed "s/^/$as_me: WARNING: /" >&2
8867 echo "$as_me:$LINENO: checking for $ac_header" >&5
8868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8869 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8870 echo $ECHO_N "(cached) $ECHO_C" >&6
8872 eval "$as_ac_Header=\$ac_header_preproc"
8874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8878 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8879 cat >>confdefs.h <<_ACEOF
8880 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8882 HAVE_FREETYPE_FREETYPE_H=1
8887 if test "x${HAVE_LIB_FREETYPE}" != "x";then
8888 if test "x${HAVE_FREETYPE_FREETYPE_H}" != "x";then
8893 if test "x${HAVE_FREETYPE}" = "x1"; then
8894 if test "x{$FREETYPE_CONFIG}" != "x"; then
8895 LIBS="$LIBS "`freetype-config --libs`
8897 LIBS="$LIBS -lfreetype"
8900 echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8901 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6
8903 cat > conftest.c << EOF
8904 #include <freetype/freetype.h>
8905 #include <freetype/ftglyph.h>
8906 #include <freetype/ftsnames.h>
8907 #include <freetype/ttnameid.h>
8908 #include <freetype/ftoutln.h>
8912 FT_Library ftlibrary;
8924 FT_Init_FreeType(&ftlibrary);
8925 FT_New_Face(ftlibrary, "filename", 0, &face);
8926 i = face->num_glyphs - 1;
8927 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
8928 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
8929 FT_Get_Postscript_Name(face);
8930 FT_Get_Char_Index(face, 33);
8931 FT_Get_First_Char(face, &i);
8932 FT_Get_Next_Char(face, 33, &i);
8933 if(FT_HAS_GLYPH_NAMES(face)) {
8934 FT_Get_Glyph_Name(face, 33, name, 127);
8936 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
8937 FT_Get_Glyph(face->glyph, &glyph);
8938 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
8939 FT_Done_Glyph(glyph);
8941 FT_Done_FreeType(ftlibrary);
8946 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8947 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8948 echo "$as_me:$LINENO: result: yes" >&5
8949 echo "${ECHO_T}yes" >&6
8950 cat >>confdefs.h <<_ACEOF
8951 #define HAVE_FREETYPE 1
8954 cat >>confdefs.h <<_ACEOF
8955 #define USE_FREETYPE 1
8959 echo "configure: failed program was:" >&5
8962 echo "$as_me:$LINENO: result: no" >&5
8963 echo "${ECHO_T}no" >&6
8968 # if the above didn't work out, reset all changes to the compiler variables.
8969 if test "x${HAVE_FREETYPE}" "!=" "x1"; then
8970 CPPFLAGS=$OLDCPPFLAGS
8976 echo "$as_me:$LINENO: checking for byte order" >&5
8977 echo $ECHO_N "checking for byte order... $ECHO_C" >&6
8978 if test "$cross_compiling" = yes; then
8981 cat >conftest.$ac_ext <<_ACEOF
8984 cat confdefs.h >>conftest.$ac_ext
8985 cat >>conftest.$ac_ext <<_ACEOF
8986 /* end confdefs.h. */
8988 int main (int argc, char *argv[])
8995 rm -f conftest$ac_exeext
8996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8997 (eval $ac_link) 2>&5
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); }; }; then
9008 echo "$as_me: program exited with status $ac_status" >&5
9009 echo "$as_me: failed program was:" >&5
9010 sed 's/^/| /' conftest.$ac_ext >&5
9015 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9019 if test "x${CROSSCOMPILE}" = "x1"; then
9020 echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
9021 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6
9022 echo "$as_me:$LINENO: checking target system type" >&5
9023 echo $ECHO_N "checking target system type... $ECHO_C" >&6
9024 if test "${ac_cv_target+set}" = set; then
9025 echo $ECHO_N "(cached) $ECHO_C" >&6
9027 ac_cv_target_alias=$target_alias
9028 test "x$ac_cv_target_alias" = "x" &&
9029 ac_cv_target_alias=$ac_cv_host_alias
9030 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
9031 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
9032 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
9033 { (exit 1); exit 1; }; }
9036 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
9037 echo "${ECHO_T}$ac_cv_target" >&6
9038 target=$ac_cv_target
9039 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
9040 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
9041 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
9044 # The aliases save the names the user supplied, while $host etc.
9045 # will get canonicalized.
9046 test -n "$target_alias" &&
9047 test "$program_prefix$program_suffix$program_transform_name" = \
9049 program_prefix=${target_alias}-
9050 echo "$as_me:$LINENO: checking for byte order, try 2" >&5
9051 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6
9056 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
9063 if test "x${LITTLEENDIAN}" = "x1"; then
9064 echo "$as_me:$LINENO: result: little endian" >&5
9065 echo "${ECHO_T}little endian" >&6
9069 if test "x${BIGENDIAN}" = "x1"; then
9070 echo "$as_me:$LINENO: result: big endian" >&5
9071 echo "${ECHO_T}big endian" >&6
9074 export WORDS_BIGENDIAN
9075 cat >>confdefs.h <<_ACEOF
9076 #define WORDS_BIGENDIAN 1
9080 if test "x${BYTEORDERCHECKOK}" != "x1"; then
9081 echo "$as_me:$LINENO: result: unknown" >&5
9082 echo "${ECHO_T}unknown" >&6
9083 echo Byte order could not determined.
9089 echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
9090 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6
9091 if test "$cross_compiling" = yes; then
9094 cat >conftest.$ac_ext <<_ACEOF
9097 cat confdefs.h >>conftest.$ac_ext
9098 cat >>conftest.$ac_ext <<_ACEOF
9099 /* end confdefs.h. */
9102 int main (int argc, char*argv[])
9104 return system("test `touch config.tmp2`");
9108 rm -f conftest$ac_exeext
9109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9110 (eval $ac_link) 2>&5
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); }; }; then
9121 echo "$as_me: program exited with status $ac_status" >&5
9122 echo "$as_me: failed program was:" >&5
9123 sed 's/^/| /' conftest.$ac_ext >&5
9126 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9129 if test "x${OK}" = "xOK";then
9130 test -f config.tmp2 || OK=
9133 if test "x${CROSSCOMPILE}" = "x1";then
9136 if test "x${OK}" = "xOK";then
9138 echo "$as_me:$LINENO: result: yes" >&5
9139 echo "${ECHO_T}yes" >&6
9141 export SYSTEM_BACKTICKS
9142 cat >>confdefs.h <<_ACEOF
9143 #define SYSTEM_BACKTICKS 1
9147 echo "$as_me:$LINENO: result: no" >&5
9148 echo "${ECHO_T}no" >&6
9153 test "$program_prefix" != NONE &&
9154 program_transform_name="s,^,$program_prefix,;$program_transform_name"
9155 # Use a double $ so make ignores it.
9156 test "$program_suffix" != NONE &&
9157 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
9158 # Double any \ or $. echo might interpret backslashes.
9159 # By default was `s,x,x', remove it if useless.
9160 cat <<\_ACEOF >conftest.sed
9161 s/[\\$]/&&/g;s/;s,x,x,$//
9163 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
9167 ac_config_headers="$ac_config_headers config.h"
9175 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9176 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9177 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9178 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9180 echo $ECHO_N "(cached) $ECHO_C" >&6
9182 cat >conftest.$ac_ext <<_ACEOF
9185 cat confdefs.h >>conftest.$ac_ext
9186 cat >>conftest.$ac_ext <<_ACEOF
9187 /* end confdefs.h. */
9188 #include <sys/types.h>
9200 rm -f conftest.$ac_objext
9201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9202 (eval $ac_compile) 2>conftest.er1
9204 grep -v '^ *+' conftest.er1 >conftest.err
9206 cat conftest.err >&5
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); } &&
9209 { ac_try='test -z "$ac_c_werror_flag"
9210 || test ! -s conftest.err'
9211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); }; } &&
9216 { ac_try='test -s conftest.$ac_objext'
9217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221 (exit $ac_status); }; }; then
9222 eval "$as_ac_Header=yes"
9224 echo "$as_me: failed program was:" >&5
9225 sed 's/^/| /' conftest.$ac_ext >&5
9227 eval "$as_ac_Header=no"
9229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9234 cat >>confdefs.h <<_ACEOF
9235 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9238 ac_header_dirent=$ac_hdr; break
9242 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9243 if test $ac_header_dirent = dirent.h; then
9244 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9245 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9246 if test "${ac_cv_search_opendir+set}" = set; then
9247 echo $ECHO_N "(cached) $ECHO_C" >&6
9249 ac_func_search_save_LIBS=$LIBS
9250 ac_cv_search_opendir=no
9251 cat >conftest.$ac_ext <<_ACEOF
9254 cat confdefs.h >>conftest.$ac_ext
9255 cat >>conftest.$ac_ext <<_ACEOF
9256 /* end confdefs.h. */
9258 /* Override any gcc2 internal prototype to avoid an error. */
9262 /* We use char because int might match the return type of a gcc2
9263 builtin and then its argument prototype would still apply. */
9273 rm -f conftest.$ac_objext conftest$ac_exeext
9274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9275 (eval $ac_link) 2>conftest.er1
9277 grep -v '^ *+' conftest.er1 >conftest.err
9279 cat conftest.err >&5
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); } &&
9282 { ac_try='test -z "$ac_c_werror_flag"
9283 || test ! -s conftest.err'
9284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); }; } &&
9289 { ac_try='test -s conftest$ac_exeext'
9290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); }; }; then
9295 ac_cv_search_opendir="none required"
9297 echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.$ac_ext >&5
9301 rm -f conftest.err conftest.$ac_objext \
9302 conftest$ac_exeext conftest.$ac_ext
9303 if test "$ac_cv_search_opendir" = no; then
9304 for ac_lib in dir; do
9305 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9306 cat >conftest.$ac_ext <<_ACEOF
9309 cat confdefs.h >>conftest.$ac_ext
9310 cat >>conftest.$ac_ext <<_ACEOF
9311 /* end confdefs.h. */
9313 /* Override any gcc2 internal prototype to avoid an error. */
9317 /* We use char because int might match the return type of a gcc2
9318 builtin and then its argument prototype would still apply. */
9328 rm -f conftest.$ac_objext conftest$ac_exeext
9329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9330 (eval $ac_link) 2>conftest.er1
9332 grep -v '^ *+' conftest.er1 >conftest.err
9334 cat conftest.err >&5
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); } &&
9337 { ac_try='test -z "$ac_c_werror_flag"
9338 || test ! -s conftest.err'
9339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); }; } &&
9344 { ac_try='test -s conftest$ac_exeext'
9345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); }; }; then
9350 ac_cv_search_opendir="-l$ac_lib"
9353 echo "$as_me: failed program was:" >&5
9354 sed 's/^/| /' conftest.$ac_ext >&5
9357 rm -f conftest.err conftest.$ac_objext \
9358 conftest$ac_exeext conftest.$ac_ext
9361 LIBS=$ac_func_search_save_LIBS
9363 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9364 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9365 if test "$ac_cv_search_opendir" != no; then
9366 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9371 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9372 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9373 if test "${ac_cv_search_opendir+set}" = set; then
9374 echo $ECHO_N "(cached) $ECHO_C" >&6
9376 ac_func_search_save_LIBS=$LIBS
9377 ac_cv_search_opendir=no
9378 cat >conftest.$ac_ext <<_ACEOF
9381 cat confdefs.h >>conftest.$ac_ext
9382 cat >>conftest.$ac_ext <<_ACEOF
9383 /* end confdefs.h. */
9385 /* Override any gcc2 internal prototype to avoid an error. */
9389 /* We use char because int might match the return type of a gcc2
9390 builtin and then its argument prototype would still apply. */
9400 rm -f conftest.$ac_objext conftest$ac_exeext
9401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9402 (eval $ac_link) 2>conftest.er1
9404 grep -v '^ *+' conftest.er1 >conftest.err
9406 cat conftest.err >&5
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); } &&
9409 { ac_try='test -z "$ac_c_werror_flag"
9410 || test ! -s conftest.err'
9411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); }; } &&
9416 { ac_try='test -s conftest$ac_exeext'
9417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); }; }; then
9422 ac_cv_search_opendir="none required"
9424 echo "$as_me: failed program was:" >&5
9425 sed 's/^/| /' conftest.$ac_ext >&5
9428 rm -f conftest.err conftest.$ac_objext \
9429 conftest$ac_exeext conftest.$ac_ext
9430 if test "$ac_cv_search_opendir" = no; then
9432 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9433 cat >conftest.$ac_ext <<_ACEOF
9436 cat confdefs.h >>conftest.$ac_ext
9437 cat >>conftest.$ac_ext <<_ACEOF
9438 /* end confdefs.h. */
9440 /* Override any gcc2 internal prototype to avoid an error. */
9444 /* We use char because int might match the return type of a gcc2
9445 builtin and then its argument prototype would still apply. */
9455 rm -f conftest.$ac_objext conftest$ac_exeext
9456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9457 (eval $ac_link) 2>conftest.er1
9459 grep -v '^ *+' conftest.er1 >conftest.err
9461 cat conftest.err >&5
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); } &&
9464 { ac_try='test -z "$ac_c_werror_flag"
9465 || test ! -s conftest.err'
9466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); }; } &&
9471 { ac_try='test -s conftest$ac_exeext'
9472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); }; }; then
9477 ac_cv_search_opendir="-l$ac_lib"
9480 echo "$as_me: failed program was:" >&5
9481 sed 's/^/| /' conftest.$ac_ext >&5
9484 rm -f conftest.err conftest.$ac_objext \
9485 conftest$ac_exeext conftest.$ac_ext
9488 LIBS=$ac_func_search_save_LIBS
9490 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9491 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9492 if test "$ac_cv_search_opendir" != no; then
9493 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9499 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9500 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9501 if test "${ac_cv_header_stdc+set}" = set; then
9502 echo $ECHO_N "(cached) $ECHO_C" >&6
9504 cat >conftest.$ac_ext <<_ACEOF
9507 cat confdefs.h >>conftest.$ac_ext
9508 cat >>conftest.$ac_ext <<_ACEOF
9509 /* end confdefs.h. */
9523 rm -f conftest.$ac_objext
9524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9525 (eval $ac_compile) 2>conftest.er1
9527 grep -v '^ *+' conftest.er1 >conftest.err
9529 cat conftest.err >&5
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); } &&
9532 { ac_try='test -z "$ac_c_werror_flag"
9533 || test ! -s conftest.err'
9534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); }; } &&
9539 { ac_try='test -s conftest.$ac_objext'
9540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); }; }; then
9545 ac_cv_header_stdc=yes
9547 echo "$as_me: failed program was:" >&5
9548 sed 's/^/| /' conftest.$ac_ext >&5
9550 ac_cv_header_stdc=no
9552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9554 if test $ac_cv_header_stdc = yes; then
9555 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9556 cat >conftest.$ac_ext <<_ACEOF
9559 cat confdefs.h >>conftest.$ac_ext
9560 cat >>conftest.$ac_ext <<_ACEOF
9561 /* end confdefs.h. */
9565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9566 $EGREP "memchr" >/dev/null 2>&1; then
9569 ac_cv_header_stdc=no
9575 if test $ac_cv_header_stdc = yes; then
9576 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9577 cat >conftest.$ac_ext <<_ACEOF
9580 cat confdefs.h >>conftest.$ac_ext
9581 cat >>conftest.$ac_ext <<_ACEOF
9582 /* end confdefs.h. */
9586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9587 $EGREP "free" >/dev/null 2>&1; then
9590 ac_cv_header_stdc=no
9596 if test $ac_cv_header_stdc = yes; then
9597 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9598 if test "$cross_compiling" = yes; then
9601 cat >conftest.$ac_ext <<_ACEOF
9604 cat confdefs.h >>conftest.$ac_ext
9605 cat >>conftest.$ac_ext <<_ACEOF
9606 /* end confdefs.h. */
9608 #if ((' ' & 0x0FF) == 0x020)
9609 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9610 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9612 # define ISLOWER(c) \
9613 (('a' <= (c) && (c) <= 'i') \
9614 || ('j' <= (c) && (c) <= 'r') \
9615 || ('s' <= (c) && (c) <= 'z'))
9616 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9619 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9624 for (i = 0; i < 256; i++)
9625 if (XOR (islower (i), ISLOWER (i))
9626 || toupper (i) != TOUPPER (i))
9631 rm -f conftest$ac_exeext
9632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9633 (eval $ac_link) 2>&5
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); }; }; then
9644 echo "$as_me: program exited with status $ac_status" >&5
9645 echo "$as_me: failed program was:" >&5
9646 sed 's/^/| /' conftest.$ac_ext >&5
9649 ac_cv_header_stdc=no
9651 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9655 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9656 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9657 if test $ac_cv_header_stdc = yes; then
9659 cat >>confdefs.h <<\_ACEOF
9660 #define STDC_HEADERS 1
9679 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
9681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9682 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9683 echo "$as_me:$LINENO: checking for $ac_header" >&5
9684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9689 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9691 # Is the header compilable?
9692 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9693 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9694 cat >conftest.$ac_ext <<_ACEOF
9697 cat confdefs.h >>conftest.$ac_ext
9698 cat >>conftest.$ac_ext <<_ACEOF
9699 /* end confdefs.h. */
9700 $ac_includes_default
9701 #include <$ac_header>
9703 rm -f conftest.$ac_objext
9704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9705 (eval $ac_compile) 2>conftest.er1
9707 grep -v '^ *+' conftest.er1 >conftest.err
9709 cat conftest.err >&5
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); } &&
9712 { ac_try='test -z "$ac_c_werror_flag"
9713 || test ! -s conftest.err'
9714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); }; } &&
9719 { ac_try='test -s conftest.$ac_objext'
9720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); }; }; then
9725 ac_header_compiler=yes
9727 echo "$as_me: failed program was:" >&5
9728 sed 's/^/| /' conftest.$ac_ext >&5
9730 ac_header_compiler=no
9732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9733 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9734 echo "${ECHO_T}$ac_header_compiler" >&6
9736 # Is the header present?
9737 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9738 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9739 cat >conftest.$ac_ext <<_ACEOF
9742 cat confdefs.h >>conftest.$ac_ext
9743 cat >>conftest.$ac_ext <<_ACEOF
9744 /* end confdefs.h. */
9745 #include <$ac_header>
9747 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9748 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9750 grep -v '^ *+' conftest.er1 >conftest.err
9752 cat conftest.err >&5
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); } >/dev/null; then
9755 if test -s conftest.err; then
9756 ac_cpp_err=$ac_c_preproc_warn_flag
9757 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9764 if test -z "$ac_cpp_err"; then
9765 ac_header_preproc=yes
9767 echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9770 ac_header_preproc=no
9772 rm -f conftest.err conftest.$ac_ext
9773 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9774 echo "${ECHO_T}$ac_header_preproc" >&6
9776 # So? What about this header?
9777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9779 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9780 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9782 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9783 ac_header_preproc=yes
9786 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9787 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9788 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9789 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9790 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9791 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9792 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9793 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9795 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9796 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9797 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9800 ## ------------------------------------------ ##
9801 ## Report this to the AC_PACKAGE_NAME lists. ##
9802 ## ------------------------------------------ ##
9805 sed "s/^/$as_me: WARNING: /" >&2
9808 echo "$as_me:$LINENO: checking for $ac_header" >&5
9809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9811 echo $ECHO_N "(cached) $ECHO_C" >&6
9813 eval "$as_ac_Header=\$ac_header_preproc"
9815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9820 cat >>confdefs.h <<_ACEOF
9821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9829 if test "x${ac_cv_header_jpeglib_h}" != "xyes"; then
9830 DISABLEPDF2SWF=true;
9831 DISABLEJPEG2SWF=true;
9832 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
9834 if test "x${ac_cv_header_t1lib_h}" != "xyes"; then
9835 DISABLEPDF2SWF=true;
9836 MISSINGLIBS="${MISSINGLIBS} t1lib.h"
9838 if test "x${ac_cv_header_zlib_h}" != "xyes"; then
9839 DISABLEPNG2SWF=true;
9840 MISSINGLIBS="${MISSINGLIBS} zlib.h"
9844 cat >>confdefs.h <<_ACEOF
9845 #define PACKAGE "$PACKAGE"
9848 cat >>confdefs.h <<_ACEOF
9849 #define VERSION "$VERSION"
9858 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9859 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9860 if test "${ac_cv_c_const+set}" = set; then
9861 echo $ECHO_N "(cached) $ECHO_C" >&6
9863 cat >conftest.$ac_ext <<_ACEOF
9866 cat confdefs.h >>conftest.$ac_ext
9867 cat >>conftest.$ac_ext <<_ACEOF
9868 /* end confdefs.h. */
9873 /* FIXME: Include the comments suggested by Paul. */
9875 /* Ultrix mips cc rejects this. */
9876 typedef int charset[2];
9878 /* SunOS 4.1.1 cc rejects this. */
9879 char const *const *ccp;
9881 /* NEC SVR4.0.2 mips cc rejects this. */
9882 struct point {int x, y;};
9883 static struct point const zero = {0,0};
9884 /* AIX XL C 1.02.0.0 rejects this.
9885 It does not let you subtract one const X* pointer from another in
9886 an arm of an if-expression whose if-part is not a constant
9888 const char *g = "string";
9889 ccp = &g + (g ? g-g : 0);
9890 /* HPUX 7.0 cc rejects these. */
9893 ccp = (char const *const *) p;
9894 { /* SCO 3.2v4 cc rejects this. */
9896 char const *s = 0 ? (char *) 0 : (char const *) 0;
9900 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9902 const int *foo = &x[0];
9905 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9906 typedef const int *iptr;
9910 { /* AIX XL C 1.02.0.0 rejects this saying
9911 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9912 struct s { int j; const int *ap[3]; };
9913 struct s *b; b->j = 5;
9915 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9924 rm -f conftest.$ac_objext
9925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9926 (eval $ac_compile) 2>conftest.er1
9928 grep -v '^ *+' conftest.er1 >conftest.err
9930 cat conftest.err >&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); } &&
9933 { ac_try='test -z "$ac_c_werror_flag"
9934 || test ! -s conftest.err'
9935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); }; } &&
9940 { ac_try='test -s conftest.$ac_objext'
9941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); }; }; then
9948 echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9955 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9956 echo "${ECHO_T}$ac_cv_c_const" >&6
9957 if test $ac_cv_c_const = no; then
9959 cat >>confdefs.h <<\_ACEOF
9965 echo "$as_me:$LINENO: checking for inline" >&5
9966 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9967 if test "${ac_cv_c_inline+set}" = set; then
9968 echo $ECHO_N "(cached) $ECHO_C" >&6
9971 for ac_kw in inline __inline__ __inline; do
9972 cat >conftest.$ac_ext <<_ACEOF
9975 cat confdefs.h >>conftest.$ac_ext
9976 cat >>conftest.$ac_ext <<_ACEOF
9977 /* end confdefs.h. */
9980 static $ac_kw foo_t static_foo () {return 0; }
9981 $ac_kw foo_t foo () {return 0; }
9985 rm -f conftest.$ac_objext
9986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9987 (eval $ac_compile) 2>conftest.er1
9989 grep -v '^ *+' conftest.er1 >conftest.err
9991 cat conftest.err >&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); } &&
9994 { ac_try='test -z "$ac_c_werror_flag"
9995 || test ! -s conftest.err'
9996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); }; } &&
10001 { ac_try='test -s conftest.$ac_objext'
10002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10003 (eval $ac_try) 2>&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); }; }; then
10007 ac_cv_c_inline=$ac_kw; break
10009 echo "$as_me: failed program was:" >&5
10010 sed 's/^/| /' conftest.$ac_ext >&5
10013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10017 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10018 echo "${ECHO_T}$ac_cv_c_inline" >&6
10021 case $ac_cv_c_inline in
10024 case $ac_cv_c_inline in
10026 *) ac_val=$ac_cv_c_inline;;
10028 cat >>confdefs.h <<_ACEOF
10029 #ifndef __cplusplus
10030 #define inline $ac_val
10036 echo "$as_me:$LINENO: checking for off_t" >&5
10037 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10038 if test "${ac_cv_type_off_t+set}" = set; then
10039 echo $ECHO_N "(cached) $ECHO_C" >&6
10041 cat >conftest.$ac_ext <<_ACEOF
10044 cat confdefs.h >>conftest.$ac_ext
10045 cat >>conftest.$ac_ext <<_ACEOF
10046 /* end confdefs.h. */
10047 $ac_includes_default
10053 if (sizeof (off_t))
10059 rm -f conftest.$ac_objext
10060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10061 (eval $ac_compile) 2>conftest.er1
10063 grep -v '^ *+' conftest.er1 >conftest.err
10065 cat conftest.err >&5
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); } &&
10068 { ac_try='test -z "$ac_c_werror_flag"
10069 || test ! -s conftest.err'
10070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10071 (eval $ac_try) 2>&5
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); }; } &&
10075 { ac_try='test -s conftest.$ac_objext'
10076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10077 (eval $ac_try) 2>&5
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); }; }; then
10081 ac_cv_type_off_t=yes
10083 echo "$as_me: failed program was:" >&5
10084 sed 's/^/| /' conftest.$ac_ext >&5
10086 ac_cv_type_off_t=no
10088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10090 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10091 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10092 if test $ac_cv_type_off_t = yes; then
10096 cat >>confdefs.h <<_ACEOF
10102 echo "$as_me:$LINENO: checking for size_t" >&5
10103 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10104 if test "${ac_cv_type_size_t+set}" = set; then
10105 echo $ECHO_N "(cached) $ECHO_C" >&6
10107 cat >conftest.$ac_ext <<_ACEOF
10110 cat confdefs.h >>conftest.$ac_ext
10111 cat >>conftest.$ac_ext <<_ACEOF
10112 /* end confdefs.h. */
10113 $ac_includes_default
10119 if (sizeof (size_t))
10125 rm -f conftest.$ac_objext
10126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10127 (eval $ac_compile) 2>conftest.er1
10129 grep -v '^ *+' conftest.er1 >conftest.err
10131 cat conftest.err >&5
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); } &&
10134 { ac_try='test -z "$ac_c_werror_flag"
10135 || test ! -s conftest.err'
10136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10137 (eval $ac_try) 2>&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); }; } &&
10141 { ac_try='test -s conftest.$ac_objext'
10142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10143 (eval $ac_try) 2>&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); }; }; then
10147 ac_cv_type_size_t=yes
10149 echo "$as_me: failed program was:" >&5
10150 sed 's/^/| /' conftest.$ac_ext >&5
10152 ac_cv_type_size_t=no
10154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10156 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10157 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10158 if test $ac_cv_type_size_t = yes; then
10162 cat >>confdefs.h <<_ACEOF
10163 #define size_t unsigned
10168 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10169 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10170 if test "${ac_cv_struct_tm+set}" = set; then
10171 echo $ECHO_N "(cached) $ECHO_C" >&6
10173 cat >conftest.$ac_ext <<_ACEOF
10176 cat confdefs.h >>conftest.$ac_ext
10177 cat >>conftest.$ac_ext <<_ACEOF
10178 /* end confdefs.h. */
10179 #include <sys/types.h>
10185 struct tm *tp; tp->tm_sec;
10190 rm -f conftest.$ac_objext
10191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10192 (eval $ac_compile) 2>conftest.er1
10194 grep -v '^ *+' conftest.er1 >conftest.err
10196 cat conftest.err >&5
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); } &&
10199 { ac_try='test -z "$ac_c_werror_flag"
10200 || test ! -s conftest.err'
10201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202 (eval $ac_try) 2>&5
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); }; } &&
10206 { ac_try='test -s conftest.$ac_objext'
10207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10208 (eval $ac_try) 2>&5
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); }; }; then
10212 ac_cv_struct_tm=time.h
10214 echo "$as_me: failed program was:" >&5
10215 sed 's/^/| /' conftest.$ac_ext >&5
10217 ac_cv_struct_tm=sys/time.h
10219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10221 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10222 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10223 if test $ac_cv_struct_tm = sys/time.h; then
10225 cat >>confdefs.h <<\_ACEOF
10226 #define TM_IN_SYS_TIME 1
10231 echo "$as_me:$LINENO: checking for boolean" >&5
10232 echo $ECHO_N "checking for boolean... $ECHO_C" >&6
10233 if test "${ac_cv_type_boolean+set}" = set; then
10234 echo $ECHO_N "(cached) $ECHO_C" >&6
10236 cat >conftest.$ac_ext <<_ACEOF
10239 cat confdefs.h >>conftest.$ac_ext
10240 cat >>conftest.$ac_ext <<_ACEOF
10241 /* end confdefs.h. */
10242 $ac_includes_default
10248 if (sizeof (boolean))
10254 rm -f conftest.$ac_objext
10255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10256 (eval $ac_compile) 2>conftest.er1
10258 grep -v '^ *+' conftest.er1 >conftest.err
10260 cat conftest.err >&5
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); } &&
10263 { ac_try='test -z "$ac_c_werror_flag"
10264 || test ! -s conftest.err'
10265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10266 (eval $ac_try) 2>&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); }; } &&
10270 { ac_try='test -s conftest.$ac_objext'
10271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10272 (eval $ac_try) 2>&5
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); }; }; then
10276 ac_cv_type_boolean=yes
10278 echo "$as_me: failed program was:" >&5
10279 sed 's/^/| /' conftest.$ac_ext >&5
10281 ac_cv_type_boolean=no
10283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10285 echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
10286 echo "${ECHO_T}$ac_cv_type_boolean" >&6
10287 if test $ac_cv_type_boolean = yes; then
10291 cat >>confdefs.h <<_ACEOF
10292 #define boolean int
10297 echo "$as_me:$LINENO: checking for bool" >&5
10298 echo $ECHO_N "checking for bool... $ECHO_C" >&6
10299 if test "${ac_cv_type_bool+set}" = set; then
10300 echo $ECHO_N "(cached) $ECHO_C" >&6
10302 cat >conftest.$ac_ext <<_ACEOF
10305 cat confdefs.h >>conftest.$ac_ext
10306 cat >>conftest.$ac_ext <<_ACEOF
10307 /* end confdefs.h. */
10308 $ac_includes_default
10320 rm -f conftest.$ac_objext
10321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10322 (eval $ac_compile) 2>conftest.er1
10324 grep -v '^ *+' conftest.er1 >conftest.err
10326 cat conftest.err >&5
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); } &&
10329 { ac_try='test -z "$ac_c_werror_flag"
10330 || test ! -s conftest.err'
10331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10332 (eval $ac_try) 2>&5
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); }; } &&
10336 { ac_try='test -s conftest.$ac_objext'
10337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10338 (eval $ac_try) 2>&5
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); }; }; then
10342 ac_cv_type_bool=yes
10344 echo "$as_me: failed program was:" >&5
10345 sed 's/^/| /' conftest.$ac_ext >&5
10349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10351 echo "$as_me:$LINENO: result: $ac_cv_type_bool" >&5
10352 echo "${ECHO_T}$ac_cv_type_bool" >&6
10353 if test $ac_cv_type_bool = yes; then
10357 cat >>confdefs.h <<_ACEOF
10374 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
10376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10377 echo "$as_me:$LINENO: checking for $ac_func" >&5
10378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10379 if eval "test \"\${$as_ac_var+set}\" = set"; then
10380 echo $ECHO_N "(cached) $ECHO_C" >&6
10382 cat >conftest.$ac_ext <<_ACEOF
10385 cat confdefs.h >>conftest.$ac_ext
10386 cat >>conftest.$ac_ext <<_ACEOF
10387 /* end confdefs.h. */
10388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10390 #define $ac_func innocuous_$ac_func
10392 /* System header to define __stub macros and hopefully few prototypes,
10393 which can conflict with char $ac_func (); below.
10394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10395 <limits.h> exists even on freestanding compilers. */
10398 # include <limits.h>
10400 # include <assert.h>
10405 /* Override any gcc2 internal prototype to avoid an error. */
10410 /* We use char because int might match the return type of a gcc2
10411 builtin and then its argument prototype would still apply. */
10413 /* The GNU C library defines this for functions which it implements
10414 to always fail with ENOSYS. Some functions are actually named
10415 something starting with __ and the normal name is an alias. */
10416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10419 char (*f) () = $ac_func;
10428 return f != $ac_func;
10433 rm -f conftest.$ac_objext conftest$ac_exeext
10434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10435 (eval $ac_link) 2>conftest.er1
10437 grep -v '^ *+' conftest.er1 >conftest.err
10439 cat conftest.err >&5
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); } &&
10442 { ac_try='test -z "$ac_c_werror_flag"
10443 || test ! -s conftest.err'
10444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10445 (eval $ac_try) 2>&5
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); }; } &&
10449 { ac_try='test -s conftest$ac_exeext'
10450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10451 (eval $ac_try) 2>&5
10453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 (exit $ac_status); }; }; then
10455 eval "$as_ac_var=yes"
10457 echo "$as_me: failed program was:" >&5
10458 sed 's/^/| /' conftest.$ac_ext >&5
10460 eval "$as_ac_var=no"
10462 rm -f conftest.err conftest.$ac_objext \
10463 conftest$ac_exeext conftest.$ac_ext
10465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10466 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10467 if test `eval echo '${'$as_ac_var'}'` = yes; then
10468 cat >>confdefs.h <<_ACEOF
10469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10477 for ac_prog in avifile-config
10479 # Extract the first word of "$ac_prog", so it can be a program name with args.
10480 set dummy $ac_prog; ac_word=$2
10481 echo "$as_me:$LINENO: checking for $ac_word" >&5
10482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10483 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
10486 if test -n "$AVIFILE_CONFIG"; then
10487 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
10489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10490 for as_dir in $PATH
10493 test -z "$as_dir" && as_dir=.
10494 for ac_exec_ext in '' $ac_executable_extensions; do
10495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10496 ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
10497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10505 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
10506 if test -n "$AVIFILE_CONFIG"; then
10507 echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
10508 echo "${ECHO_T}$AVIFILE_CONFIG" >&6
10510 echo "$as_me:$LINENO: result: no" >&5
10511 echo "${ECHO_T}no" >&6
10514 test -n "$AVIFILE_CONFIG" && break
10518 if test "x$AVIFILE_CONFIG" '!=' "x";then
10519 OLDCPPFLAGS="$CPPFLAGS"
10520 #OLDLDFLAGS="$LDFLAGS"
10521 CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
10522 #LDFLAGS="$LDFLAGS `$AVIFILE_CONFIG --libs`"
10525 for ac_header in avifile/version.h version.h
10527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10529 echo "$as_me:$LINENO: checking for $ac_header" >&5
10530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10532 echo $ECHO_N "(cached) $ECHO_C" >&6
10534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10537 # Is the header compilable?
10538 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10539 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10540 cat >conftest.$ac_ext <<_ACEOF
10543 cat confdefs.h >>conftest.$ac_ext
10544 cat >>conftest.$ac_ext <<_ACEOF
10545 /* end confdefs.h. */
10546 $ac_includes_default
10547 #include <$ac_header>
10549 rm -f conftest.$ac_objext
10550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10551 (eval $ac_compile) 2>conftest.er1
10553 grep -v '^ *+' conftest.er1 >conftest.err
10555 cat conftest.err >&5
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); } &&
10558 { ac_try='test -z "$ac_c_werror_flag"
10559 || test ! -s conftest.err'
10560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10561 (eval $ac_try) 2>&5
10563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564 (exit $ac_status); }; } &&
10565 { ac_try='test -s conftest.$ac_objext'
10566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10567 (eval $ac_try) 2>&5
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); }; }; then
10571 ac_header_compiler=yes
10573 echo "$as_me: failed program was:" >&5
10574 sed 's/^/| /' conftest.$ac_ext >&5
10576 ac_header_compiler=no
10578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10579 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10580 echo "${ECHO_T}$ac_header_compiler" >&6
10582 # Is the header present?
10583 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10585 cat >conftest.$ac_ext <<_ACEOF
10588 cat confdefs.h >>conftest.$ac_ext
10589 cat >>conftest.$ac_ext <<_ACEOF
10590 /* end confdefs.h. */
10591 #include <$ac_header>
10593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10594 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10596 grep -v '^ *+' conftest.er1 >conftest.err
10598 cat conftest.err >&5
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); } >/dev/null; then
10601 if test -s conftest.err; then
10602 ac_cpp_err=$ac_c_preproc_warn_flag
10603 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10610 if test -z "$ac_cpp_err"; then
10611 ac_header_preproc=yes
10613 echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10616 ac_header_preproc=no
10618 rm -f conftest.err conftest.$ac_ext
10619 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10620 echo "${ECHO_T}$ac_header_preproc" >&6
10622 # So? What about this header?
10623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10628 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10629 ac_header_preproc=yes
10632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10635 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10636 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10637 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10638 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10639 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10642 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10643 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10646 ## ------------------------------------------ ##
10647 ## Report this to the AC_PACKAGE_NAME lists. ##
10648 ## ------------------------------------------ ##
10651 sed "s/^/$as_me: WARNING: /" >&2
10654 echo "$as_me:$LINENO: checking for $ac_header" >&5
10655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10657 echo $ECHO_N "(cached) $ECHO_C" >&6
10659 eval "$as_ac_Header=\$ac_header_preproc"
10661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10662 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10666 cat >>confdefs.h <<_ACEOF
10667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10674 #LDFLAGS="$OLDLDFLAGS"
10675 CPPFLAGS="$OLDCPPFLAGS"
10678 echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
10679 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6
10681 if test "x${ac_cv_header_version_h}" '=' "xyes";then
10682 HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
10684 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
10685 HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
10688 cat > conftest.cpp << EOF
10690 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
10691 // so we have to introduce them this way
10692 $HAVE_VERSION_H_DEFINE
10693 $HAVE_AVIFILE_VERSION_H_DEFINE
10695 #ifdef HAVE_VERSION_H
10696 #include <version.h>
10698 #ifdef HAVE_AVIFILE_VERSION_H
10699 #include <avifile/version.h>
10702 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
10703 #include <avifile.h>
10704 #include <aviplay.h>
10705 #include <fourcc.h>
10706 #include <creators.h>
10707 #include <StreamInfo.h>
10710 #include <avifile.h>
10711 #include <aviplay.h>
10712 #include <aviutil.h>
10713 #define Width width
10714 #define Height height
10721 IAviReadFile* player;
10722 IAviReadStream* astream;
10723 IAviReadStream* vstream;
10724 player = CreateIAviReadFile(0);
10725 astream = player->GetStream(0, AviStream::Audio);
10726 vstream = player->GetStream(0, AviStream::Video);
10727 vstream -> StartStreaming();
10728 astream -> StartStreaming();
10730 MainAVIHeader head;
10731 player->GetFileHeader(&head);
10732 head.dwMicroSecPerFrame;
10733 head.dwTotalFrames;
10737 head.dwMicroSecPerFrame;
10738 astream->GetEndPos(),
10739 astream->GetEndTime());
10740 player->StreamCount();
10742 StreamInfo*audioinfo;
10743 StreamInfo*videoinfo;
10744 audioinfo = astream->GetStreamInfo();
10745 videoinfo = vstream->GetStreamInfo();
10746 videoinfo->GetVideoWidth();
10747 videoinfo->GetVideoHeight();
10748 audioinfo->GetAudioSamplesPerSec();
10749 videoinfo->GetFps();
10751 CImage*img = vstream->GetFrame();
10758 astream->GetAudioFormatInfo(&wave,0);
10760 astream->ReadFrames(0,0,0,a,b);
10762 int main (int argc, char*argv)
10768 if test "x$AVIFILE_CONFIG" '!=' "x";then
10769 ac_link='$CXX $CPPFLAGS $CXXFLAGS `$AVIFILE_CONFIG --cflags` conftest.cpp `$AVIFILE_CONFIG --libs` -o conftest${ac_exeext}'
10770 if { (eval echo avi2swf.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
10771 echo "$as_me:$LINENO: result: yes" >&5
10772 echo "${ECHO_T}yes" >&6
10775 cat >>confdefs.h <<_ACEOF
10776 #define AVIFILE true
10780 echo "configure: failed program was:" >&5
10781 cat conftest.cpp >&5
10782 echo "$as_me:$LINENO: result: no" >&5
10783 echo "${ECHO_T}no" >&6
10786 echo "$as_me:$LINENO: result: no" >&5
10787 echo "${ECHO_T}no" >&6
10792 avi2swf="avi2swf/Makefile"
10793 if test "x${AVIFILE}" != "xtrue"; then
10794 echo "* Couldn't compile the avifile test program."
10795 echo "* Disabling avi2swf tool..."
10796 echo all install uninstall clean: > avi2swf/Makefile
10800 if test "x${DISABLE_LAME}" = "xtrue"; then
10801 echo "*" Disabling lame support...
10804 cat >>confdefs.h <<_ACEOF
10805 #define HAVE_LAME 1
10808 lame_objects='$(lame_objects_2)'
10812 if test "x${UNCOMPRESS}" = "xgzip"; then
10813 cat >>confdefs.h <<_ACEOF
10820 JPEG2SWF='jpeg2swf$(E)'
10822 PNG2SWF='png2swf$(E)'
10825 # ------------------------------------------------------------------
10827 echo "$as_me:$LINENO: checking for Python.h and PIL" >&5
10828 echo $ECHO_N "checking for Python.h and PIL... $ECHO_C" >&6
10829 # should we support python versions below 2.2?
10830 if test -f "/usr/lib/python2.2/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.2/Python.h";then
10833 if test -f "/usr/lib/python2.3/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.3/Python.h";then
10836 if test -f "/usr/lib/python2.4/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.4/Python.h";then
10840 if test "x$PY_VERSION" "!=" "x"; then
10841 pythonrfxswf="lib/python/Makefile"
10842 if test "x$PYTHON_LIB" = "x";then
10843 PYTHON_LIB="-lpython$PY_VERSION /usr/lib/python$PY_VERSION/site-packages/PIL/_imaging.so"
10845 if test "x$PYTHON_INCLUDES" = "x";then
10846 PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
10848 export PYTHON_INCLUDES PYTHON_LIB
10851 echo "$as_me:$LINENO: result: yes" >&5
10852 echo "${ECHO_T}yes" >&6
10854 echo all install uninstall clean: > lib/python/Makefile
10855 echo "* No usable python installation found"
10856 echo "* Not compiling the python interface"
10857 echo "$as_me:$LINENO: result: nope" >&5
10858 echo "${ECHO_T}nope" >&6
10861 # ------------------------------------------------------------------
10863 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
10864 echo "***************************************************"
10865 echo "The following headers/libraries are missing: " ${MISSINGLIBS}
10866 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
10867 echo "Disabling pdf2swf tool..."
10868 rm -f pdf2swf/Makefile
10869 echo all install uninstall clean: > pdf2swf/Makefile
10871 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
10872 echo "Disabling jpeg2swf tool..."
10876 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
10877 echo "Disabling png2swf tool..."
10881 if test "x${ZLIBMISSING}" = "xtrue"; then
10883 echo "Warning! Without zlib, you will not be able to read"
10884 echo "or write compressed Flash MX files!"
10886 echo "***************************************************"
10887 FILES="./release Makefile.common ${avi2swf} Makefile lib/lame/Makefile lib/Makefile lib/action/Makefile src/Makefile swfs/Makefile ${pythonrfxswf}"
10889 FILES="./release Makefile.common ${avi2swf} Makefile lib/lame/Makefile lib/Makefile lib/action/Makefile src/Makefile pdf2swf/Makefile pdf2swf/xpdf/Makefile pdf2swf/ttf2pt1/Makefile swfs/Makefile ${pythonrfxswf}"
10894 ac_config_files="$ac_config_files ${FILES}"
10896 cat >confcache <<\_ACEOF
10897 # This file is a shell script that caches the results of configure
10898 # tests run on this system so they can be shared between configure
10899 # scripts and configure runs, see configure's option --config-cache.
10900 # It is not useful on other systems. If it contains results you don't
10901 # want to keep, you may remove or edit it.
10903 # config.status only pays attention to the cache file if you give it
10904 # the --recheck option to rerun configure.
10906 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10907 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10908 # following values.
10912 # The following way of writing the cache mishandles newlines in values,
10913 # but we know of no workaround that is simple, portable, and efficient.
10914 # So, don't put newlines in cache variables' values.
10915 # Ultrix sh set writes to stderr and can't be redirected directly,
10916 # and sets the high bit in the cache file unless we assign to the vars.
10919 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10921 # `set' does not quote correctly, so add quotes (double-quote
10922 # substitution turns \\\\ into \\, and sed turns \\ into \).
10925 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10928 # `set' quotes correctly as required by POSIX, so do not add quotes.
10930 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10937 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10939 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10941 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10942 if test -w $cache_file; then
10943 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10944 cat confcache >$cache_file
10946 echo "not updating unwritable cache $cache_file"
10951 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10952 # Let make expand exec_prefix.
10953 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10955 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10956 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10957 # trailing colons and then remove the whole line if VPATH becomes empty
10958 # (actually we leave an empty line to preserve line numbers).
10959 if test "x$srcdir" = x.; then
10960 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10961 s/:*\$(srcdir):*/:/;
10962 s/:*\${srcdir}:*/:/;
10964 s/^\([^=]*=[ ]*\):*/\1/;
10970 DEFS=-DHAVE_CONFIG_H
10974 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10975 # 1. Remove the extension, and $U if already installed.
10976 ac_i=`echo "$ac_i" |
10977 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10979 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10980 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10982 LIBOBJS=$ac_libobjs
10984 LTLIBOBJS=$ac_ltlibobjs
10988 : ${CONFIG_STATUS=./config.status}
10989 ac_clean_files_save=$ac_clean_files
10990 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10991 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10992 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10993 cat >$CONFIG_STATUS <<_ACEOF
10995 # Generated by $as_me.
10996 # Run this file to recreate the current configuration.
10997 # Compiler output produced by configure, useful for debugging
10998 # configure, is in config.log if it exists.
11001 ac_cs_recheck=false
11003 SHELL=\${CONFIG_SHELL-$SHELL}
11006 cat >>$CONFIG_STATUS <<\_ACEOF
11007 ## --------------------- ##
11008 ## M4sh Initialization. ##
11009 ## --------------------- ##
11011 # Be Bourne compatible
11012 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11015 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11016 # is contrary to our usage. Disable this feature.
11017 alias -g '${1+"$@"}'='"$@"'
11018 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11021 DUALCASE=1; export DUALCASE # for MKS sh
11023 # Support unset when possible.
11024 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11031 # Work around bugs in pre-3.0 UWIN ksh.
11032 $as_unset ENV MAIL MAILPATH
11039 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11040 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11041 LC_TELEPHONE LC_TIME
11043 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11044 eval $as_var=C; export $as_var
11050 # Required to use basename.
11051 if expr a : '\(a\)' >/dev/null 2>&1; then
11057 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11058 as_basename=basename
11064 # Name of the executable.
11065 as_me=`$as_basename "$0" ||
11066 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11067 X"$0" : 'X\(//\)$' \| \
11068 X"$0" : 'X\(/\)$' \| \
11069 . : '\(.\)' 2>/dev/null ||
11071 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11072 /^X\/\(\/\/\)$/{ s//\1/; q; }
11073 /^X\/\(\/\).*/{ s//\1/; q; }
11077 # PATH needs CR, and LINENO needs CR and PATH.
11078 # Avoid depending upon Character Ranges.
11079 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11080 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11081 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11082 as_cr_digits='0123456789'
11083 as_cr_alnum=$as_cr_Letters$as_cr_digits
11085 # The user is always right.
11086 if test "${PATH_SEPARATOR+set}" != set; then
11087 echo "#! /bin/sh" >conf$$.sh
11088 echo "exit 0" >>conf$$.sh
11090 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11099 as_lineno_1=$LINENO
11100 as_lineno_2=$LINENO
11101 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11102 test "x$as_lineno_1" != "x$as_lineno_2" &&
11103 test "x$as_lineno_3" = "x$as_lineno_2" || {
11104 # Find who we are. Look in the path if we contain no path at all
11107 *[\\/]* ) as_myself=$0 ;;
11108 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11109 for as_dir in $PATH
11112 test -z "$as_dir" && as_dir=.
11113 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11118 # We did not find ourselves, most probably we were run as `sh COMMAND'
11119 # in which case we are not to be found in the path.
11120 if test "x$as_myself" = x; then
11123 if test ! -f "$as_myself"; then
11124 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11125 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11126 { (exit 1); exit 1; }; }
11128 case $CONFIG_SHELL in
11130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11134 test -z "$as_dir" && as_dir=.
11135 for as_base in sh bash ksh sh5; do
11138 if ("$as_dir/$as_base" -c '
11139 as_lineno_1=$LINENO
11140 as_lineno_2=$LINENO
11141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11142 test "x$as_lineno_1" != "x$as_lineno_2" &&
11143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11146 CONFIG_SHELL=$as_dir/$as_base
11147 export CONFIG_SHELL
11148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11157 # uniformly replaced by the line number. The first 'sed' inserts a
11158 # line-number line before each line; the second 'sed' does the real
11159 # work. The second script uses 'N' to pair each line-number line
11160 # with the numbered line, and appends trailing '-' during
11161 # substitution so that $LINENO is not a special case at line end.
11162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11164 sed '=' <$as_myself |
11169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11172 s,^['$as_cr_digits']*\n,,
11173 ' >$as_me.lineno &&
11174 chmod +x $as_me.lineno ||
11175 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11176 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11177 { (exit 1); exit 1; }; }
11179 # Don't try to exec as it changes $[0], causing all sort of problems
11180 # (the dirname of $[0] is not the place where we might find the
11181 # original and so on. Autoconf is especially sensible to this).
11183 # Exit status is that of the last command.
11188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11189 *c*,-n*) ECHO_N= ECHO_C='
11191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11195 if expr a : '\(a\)' >/dev/null 2>&1; then
11201 rm -f conf$$ conf$$.exe conf$$.file
11203 if ln -s conf$$.file conf$$ 2>/dev/null; then
11204 # We could just check for DJGPP; but this test a) works b) is more generic
11205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11206 if test -f conf$$.exe; then
11207 # Don't use ln at all; we don't have any links
11212 elif ln conf$$.file conf$$ 2>/dev/null; then
11217 rm -f conf$$ conf$$.exe conf$$.file
11219 if mkdir -p . 2>/dev/null; then
11222 test -d ./-p && rmdir ./-p
11226 as_executable_p="test -f"
11228 # Sed expression to map a string onto a valid CPP name.
11229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11231 # Sed expression to map a string onto a valid variable name.
11232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11236 # We need space, tab and new line, in precisely that order.
11246 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11247 # report actual input values of CONFIG_FILES etc. instead of their
11248 # values after options handling. Logging --version etc. is OK.
11252 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11253 ## Running $as_me. ##
11258 This file was extended by $as_me, which was
11259 generated by GNU Autoconf 2.59. Invocation command line was
11261 CONFIG_FILES = $CONFIG_FILES
11262 CONFIG_HEADERS = $CONFIG_HEADERS
11263 CONFIG_LINKS = $CONFIG_LINKS
11264 CONFIG_COMMANDS = $CONFIG_COMMANDS
11268 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11272 # Files that config.status was made for.
11273 if test -n "$ac_config_files"; then
11274 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11277 if test -n "$ac_config_headers"; then
11278 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11281 if test -n "$ac_config_links"; then
11282 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11285 if test -n "$ac_config_commands"; then
11286 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11289 cat >>$CONFIG_STATUS <<\_ACEOF
11292 \`$as_me' instantiates files from templates according to the
11293 current configuration.
11295 Usage: $0 [OPTIONS] [FILE]...
11297 -h, --help print this help, then exit
11298 -V, --version print version number, then exit
11299 -q, --quiet do not print progress messages
11300 -d, --debug don't remove temporary files
11301 --recheck update $as_me by reconfiguring in the same conditions
11302 --file=FILE[:TEMPLATE]
11303 instantiate the configuration file FILE
11304 --header=FILE[:TEMPLATE]
11305 instantiate the configuration header FILE
11307 Configuration files:
11310 Configuration headers:
11313 Report bugs to <bug-autoconf@gnu.org>."
11316 cat >>$CONFIG_STATUS <<_ACEOF
11319 configured by $0, generated by GNU Autoconf 2.59,
11320 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11322 Copyright (C) 2003 Free Software Foundation, Inc.
11323 This config.status script is free software; the Free Software Foundation
11324 gives unlimited permission to copy, distribute and modify it."
11329 cat >>$CONFIG_STATUS <<\_ACEOF
11330 # If no file are specified by the user, then we need to provide default
11331 # value. By we need to know if files were specified by the user.
11337 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11338 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11346 *) # This is not an option, so the user has probably given explicit
11349 ac_need_defaults=false;;
11353 # Handling of the options.
11355 cat >>$CONFIG_STATUS <<\_ACEOF
11356 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11358 --version | --vers* | -V )
11359 echo "$ac_cs_version"; exit 0 ;;
11361 # Conflict between --help and --header
11362 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11363 Try \`$0 --help' for more information." >&5
11364 echo "$as_me: error: ambiguous option: $1
11365 Try \`$0 --help' for more information." >&2;}
11366 { (exit 1); exit 1; }; };;
11367 --help | --hel | -h )
11368 echo "$ac_cs_usage"; exit 0 ;;
11369 --debug | --d* | -d )
11371 --file | --fil | --fi | --f )
11373 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11374 ac_need_defaults=false;;
11375 --header | --heade | --head | --hea )
11377 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11378 ac_need_defaults=false;;
11379 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11380 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11383 # This is an error.
11384 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11385 Try \`$0 --help' for more information." >&5
11386 echo "$as_me: error: unrecognized option: $1
11387 Try \`$0 --help' for more information." >&2;}
11388 { (exit 1); exit 1; }; } ;;
11390 *) ac_config_targets="$ac_config_targets $1" ;;
11396 ac_configure_extra_args=
11398 if $ac_cs_silent; then
11400 ac_configure_extra_args="$ac_configure_extra_args --silent"
11404 cat >>$CONFIG_STATUS <<_ACEOF
11405 if \$ac_cs_recheck; then
11406 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11407 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11416 cat >>$CONFIG_STATUS <<\_ACEOF
11417 for ac_config_target in $ac_config_targets
11419 case "$ac_config_target" in
11420 # Handling of arguments.
11421 "${FILES}" ) CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
11422 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11423 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11424 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11425 { (exit 1); exit 1; }; };;
11429 # If the user did not use the arguments to specify the items to instantiate,
11430 # then the envvar interface is used. Set only those that are not.
11431 # We use the long form for the default assignment because of an extremely
11432 # bizarre bug on SunOS 4.1.3.
11433 if $ac_need_defaults; then
11434 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11435 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11438 # Have a temporary directory for convenience. Make it in the build tree
11439 # simply because there is no reason to put it here, and in addition,
11440 # creating and moving files from /tmp can sometimes cause problems.
11441 # Create a temporary directory, and hook for its removal unless debugging.
11444 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11445 trap '{ (exit 1); exit 1; }' 1 2 13 15
11448 # Create a (secure) tmp directory for tmp files.
11451 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11452 test -n "$tmp" && test -d "$tmp"
11455 tmp=./confstat$$-$RANDOM
11456 (umask 077 && mkdir $tmp)
11459 echo "$me: cannot create a temporary directory in ." >&2
11460 { (exit 1); exit 1; }
11465 cat >>$CONFIG_STATUS <<_ACEOF
11468 # CONFIG_FILES section.
11471 # No need to generate the scripts if there are no CONFIG_FILES.
11472 # This happens for instance when ./config.status config.h
11473 if test -n "\$CONFIG_FILES"; then
11474 # Protect against being on the right side of a sed subst in config.status.
11475 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11476 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11477 s,@SHELL@,$SHELL,;t t
11478 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11479 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11480 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11481 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11482 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11483 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11484 s,@exec_prefix@,$exec_prefix,;t t
11485 s,@prefix@,$prefix,;t t
11486 s,@program_transform_name@,$program_transform_name,;t t
11487 s,@bindir@,$bindir,;t t
11488 s,@sbindir@,$sbindir,;t t
11489 s,@libexecdir@,$libexecdir,;t t
11490 s,@datadir@,$datadir,;t t
11491 s,@sysconfdir@,$sysconfdir,;t t
11492 s,@sharedstatedir@,$sharedstatedir,;t t
11493 s,@localstatedir@,$localstatedir,;t t
11494 s,@libdir@,$libdir,;t t
11495 s,@includedir@,$includedir,;t t
11496 s,@oldincludedir@,$oldincludedir,;t t
11497 s,@infodir@,$infodir,;t t
11498 s,@mandir@,$mandir,;t t
11499 s,@build_alias@,$build_alias,;t t
11500 s,@host_alias@,$host_alias,;t t
11501 s,@target_alias@,$target_alias,;t t
11502 s,@DEFS@,$DEFS,;t t
11503 s,@ECHO_C@,$ECHO_C,;t t
11504 s,@ECHO_N@,$ECHO_N,;t t
11505 s,@ECHO_T@,$ECHO_T,;t t
11506 s,@LIBS@,$LIBS,;t t
11507 s,@build@,$build,;t t
11508 s,@build_cpu@,$build_cpu,;t t
11509 s,@build_vendor@,$build_vendor,;t t
11510 s,@build_os@,$build_os,;t t
11511 s,@host@,$host,;t t
11512 s,@host_cpu@,$host_cpu,;t t
11513 s,@host_vendor@,$host_vendor,;t t
11514 s,@host_os@,$host_os,;t t
11516 s,@CFLAGS@,$CFLAGS,;t t
11517 s,@LDFLAGS@,$LDFLAGS,;t t
11518 s,@CPPFLAGS@,$CPPFLAGS,;t t
11519 s,@ac_ct_CC@,$ac_ct_CC,;t t
11520 s,@EXEEXT@,$EXEEXT,;t t
11521 s,@OBJEXT@,$OBJEXT,;t t
11523 s,@CXXFLAGS@,$CXXFLAGS,;t t
11524 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
11526 s,@RANLIB@,$RANLIB,;t t
11527 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11528 s,@SET_MAKE@,$SET_MAKE,;t t
11529 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11530 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11531 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11532 s,@LN_S@,$LN_S,;t t
11533 s,@ECHO@,$ECHO,;t t
11534 s,@STRIP@,$STRIP,;t t
11535 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11536 s,@EGREP@,$EGREP,;t t
11537 s,@LIBTOOL@,$LIBTOOL,;t t
11538 s,@UNCOMPRESS@,$UNCOMPRESS,;t t
11540 s,@SLEXT@,$SLEXT,;t t
11541 s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t
11542 s,@target@,$target,;t t
11543 s,@target_cpu@,$target_cpu,;t t
11544 s,@target_vendor@,$target_vendor,;t t
11545 s,@target_os@,$target_os,;t t
11546 s,@WORDS_BIGENDIAN@,$WORDS_BIGENDIAN,;t t
11547 s,@SYSTEM_BACKTICKS@,$SYSTEM_BACKTICKS,;t t
11548 s,@PACKAGE@,$PACKAGE,;t t
11549 s,@VERSION@,$VERSION,;t t
11550 s,@HAVE_UNISTD_H@,$HAVE_UNISTD_H,;t t
11551 s,@AVIFILE_CONFIG@,$AVIFILE_CONFIG,;t t
11552 s,@lame_objects@,$lame_objects,;t t
11553 s,@USE_GZIP@,$USE_GZIP,;t t
11554 s,@PYTHON_LIB@,$PYTHON_LIB,;t t
11555 s,@PYTHON_INCLUDES@,$PYTHON_INCLUDES,;t t
11556 s,@JPEG2SWF@,$JPEG2SWF,;t t
11557 s,@PNG2SWF@,$PNG2SWF,;t t
11558 s,@LIBOBJS@,$LIBOBJS,;t t
11559 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11564 cat >>$CONFIG_STATUS <<\_ACEOF
11565 # Split the substitutions into bite-sized pieces for seds with
11566 # small command number limits, like on Digital OSF/1 and HP-UX.
11567 ac_max_sed_lines=48
11568 ac_sed_frag=1 # Number of current file.
11569 ac_beg=1 # First line for current file.
11570 ac_end=$ac_max_sed_lines # Line after last line for current file.
11573 while $ac_more_lines; do
11574 if test $ac_beg -gt 1; then
11575 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11577 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11579 if test ! -s $tmp/subs.frag; then
11580 ac_more_lines=false
11582 # The purpose of the label and of the branching condition is to
11583 # speed up the sed processing (if there are no `@' at all, there
11584 # is no need to browse any of the substitutions).
11585 # These are the two extra sed commands mentioned above.
11587 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11588 if test -z "$ac_sed_cmds"; then
11589 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11591 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11593 ac_sed_frag=`expr $ac_sed_frag + 1`
11595 ac_end=`expr $ac_end + $ac_max_sed_lines`
11598 if test -z "$ac_sed_cmds"; then
11601 fi # test -n "$CONFIG_FILES"
11604 cat >>$CONFIG_STATUS <<\_ACEOF
11605 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11606 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11608 - | *:- | *:-:* ) # input from stdin
11610 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11611 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11612 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11613 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11614 * ) ac_file_in=$ac_file.in ;;
11617 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11618 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11619 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11620 X"$ac_file" : 'X\(//\)[^/]' \| \
11621 X"$ac_file" : 'X\(//\)$' \| \
11622 X"$ac_file" : 'X\(/\)' \| \
11623 . : '\(.\)' 2>/dev/null ||
11625 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11626 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11627 /^X\(\/\/\)$/{ s//\1/; q; }
11628 /^X\(\/\).*/{ s//\1/; q; }
11630 { if $as_mkdir_p; then
11635 while test ! -d "$as_dir"; do
11636 as_dirs="$as_dir $as_dirs"
11637 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11638 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11639 X"$as_dir" : 'X\(//\)[^/]' \| \
11640 X"$as_dir" : 'X\(//\)$' \| \
11641 X"$as_dir" : 'X\(/\)' \| \
11642 . : '\(.\)' 2>/dev/null ||
11644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11645 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11646 /^X\(\/\/\)$/{ s//\1/; q; }
11647 /^X\(\/\).*/{ s//\1/; q; }
11650 test ! -n "$as_dirs" || mkdir $as_dirs
11651 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11652 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11653 { (exit 1); exit 1; }; }; }
11657 if test "$ac_dir" != .; then
11658 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11659 # A "../" for each directory in $ac_dir_suffix.
11660 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11662 ac_dir_suffix= ac_top_builddir=
11666 .) # No --srcdir option. We are building in place.
11668 if test -z "$ac_top_builddir"; then
11671 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11673 [\\/]* | ?:[\\/]* ) # Absolute path.
11674 ac_srcdir=$srcdir$ac_dir_suffix;
11675 ac_top_srcdir=$srcdir ;;
11676 *) # Relative path.
11677 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11678 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11681 # Do not use `cd foo && pwd` to compute absolute paths, because
11682 # the directories may not exist.
11684 .) ac_abs_builddir="$ac_dir";;
11687 .) ac_abs_builddir=`pwd`;;
11688 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11689 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11692 case $ac_abs_builddir in
11693 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11695 case ${ac_top_builddir}. in
11696 .) ac_abs_top_builddir=$ac_abs_builddir;;
11697 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11698 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11701 case $ac_abs_builddir in
11702 .) ac_abs_srcdir=$ac_srcdir;;
11705 .) ac_abs_srcdir=$ac_abs_builddir;;
11706 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11707 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11710 case $ac_abs_builddir in
11711 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11713 case $ac_top_srcdir in
11714 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11715 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11716 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11722 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11723 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11726 if test x"$ac_file" != x-; then
11727 { echo "$as_me:$LINENO: creating $ac_file" >&5
11728 echo "$as_me: creating $ac_file" >&6;}
11731 # Let's still pretend it is `configure' which instantiates (i.e., don't
11732 # use $as_me), people would be surprised to read:
11733 # /* config.h. Generated by config.status. */
11734 if test x"$ac_file" = x-; then
11737 configure_input="$ac_file. "
11739 configure_input=$configure_input"Generated from `echo $ac_file_in |
11740 sed 's,.*/,,'` by configure."
11742 # First look for the input files in the build tree, otherwise in the
11744 ac_file_inputs=`IFS=:
11745 for f in $ac_file_in; do
11747 -) echo $tmp/stdin ;;
11749 # Absolute (can't be DOS-style, as IFS=:)
11750 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11751 echo "$as_me: error: cannot find input file: $f" >&2;}
11752 { (exit 1); exit 1; }; }
11755 if test -f "$f"; then
11758 elif test -f "$srcdir/$f"; then
11763 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11764 echo "$as_me: error: cannot find input file: $f" >&2;}
11765 { (exit 1); exit 1; }; }
11768 done` || { (exit 1); exit 1; }
11770 cat >>$CONFIG_STATUS <<_ACEOF
11774 cat >>$CONFIG_STATUS <<\_ACEOF
11776 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11777 s,@configure_input@,$configure_input,;t t
11778 s,@srcdir@,$ac_srcdir,;t t
11779 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11780 s,@top_srcdir@,$ac_top_srcdir,;t t
11781 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11782 s,@builddir@,$ac_builddir,;t t
11783 s,@abs_builddir@,$ac_abs_builddir,;t t
11784 s,@top_builddir@,$ac_top_builddir,;t t
11785 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11786 s,@INSTALL@,$ac_INSTALL,;t t
11787 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11789 if test x"$ac_file" != x-; then
11790 mv $tmp/out $ac_file
11798 cat >>$CONFIG_STATUS <<\_ACEOF
11801 # CONFIG_HEADER section.
11804 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11805 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11807 # ac_d sets the value in "#define NAME VALUE" lines.
11808 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11809 ac_dB='[ ].*$,\1#\2'
11812 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11813 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11814 ac_uB='$,\1#\2define\3'
11818 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11819 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11821 - | *:- | *:-:* ) # input from stdin
11823 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11824 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11825 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11826 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11827 * ) ac_file_in=$ac_file.in ;;
11830 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11831 echo "$as_me: creating $ac_file" >&6;}
11833 # First look for the input files in the build tree, otherwise in the
11835 ac_file_inputs=`IFS=:
11836 for f in $ac_file_in; do
11838 -) echo $tmp/stdin ;;
11840 # Absolute (can't be DOS-style, as IFS=:)
11841 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11842 echo "$as_me: error: cannot find input file: $f" >&2;}
11843 { (exit 1); exit 1; }; }
11844 # Do quote $f, to prevent DOS paths from being IFS'd.
11847 if test -f "$f"; then
11850 elif test -f "$srcdir/$f"; then
11855 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11856 echo "$as_me: error: cannot find input file: $f" >&2;}
11857 { (exit 1); exit 1; }; }
11860 done` || { (exit 1); exit 1; }
11861 # Remove the trailing spaces.
11862 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11866 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11867 # `conftest.undefs', that substitutes the proper values into
11868 # config.h.in to produce config.h. The first handles `#define'
11869 # templates, and the second `#undef' templates.
11870 # And first: Protect against being on the right side of a sed subst in
11871 # config.status. Protect against being in an unquoted here document
11872 # in config.status.
11873 rm -f conftest.defines conftest.undefs
11874 # Using a here document instead of a string reduces the quoting nightmare.
11875 # Putting comments in sed scripts is not portable.
11877 # `end' is used to avoid that the second main sed command (meant for
11878 # 0-ary CPP macros) applies to n-ary macro definitions.
11879 # See the Autoconf documentation for `clear'.
11880 cat >confdef2sed.sed <<\_ACEOF
11885 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11887 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11890 # If some macros were called several times there might be several times
11891 # the same #defines, which is useless. Nevertheless, we may not want to
11892 # sort them, since we want the *last* AC-DEFINE to be honored.
11893 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11894 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11895 rm -f confdef2sed.sed
11897 # This sed command replaces #undef with comments. This is necessary, for
11898 # example, in the case of _POSIX_SOURCE, which is predefined and required
11899 # on some systems where configure will not decide to define it.
11900 cat >>conftest.undefs <<\_ACEOF
11901 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11904 # Break up conftest.defines because some shells have a limit on the size
11905 # of here documents, and old seds have small limits too (100 cmds).
11906 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11907 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11908 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11909 echo ' :' >>$CONFIG_STATUS
11910 rm -f conftest.tail
11911 while grep . conftest.defines >/dev/null
11913 # Write a limited-size here document to $tmp/defines.sed.
11914 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11915 # Speed up: don't consider the non `#define' lines.
11916 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11917 # Work around the forget-to-reset-the-flag bug.
11918 echo 't clr' >>$CONFIG_STATUS
11919 echo ': clr' >>$CONFIG_STATUS
11920 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11922 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11924 mv $tmp/out $tmp/in
11926 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11927 rm -f conftest.defines
11928 mv conftest.tail conftest.defines
11930 rm -f conftest.defines
11931 echo ' fi # grep' >>$CONFIG_STATUS
11932 echo >>$CONFIG_STATUS
11934 # Break up conftest.undefs because some shells have a limit on the size
11935 # of here documents, and old seds have small limits too (100 cmds).
11936 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11937 rm -f conftest.tail
11938 while grep . conftest.undefs >/dev/null
11940 # Write a limited-size here document to $tmp/undefs.sed.
11941 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11942 # Speed up: don't consider the non `#undef'
11943 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11944 # Work around the forget-to-reset-the-flag bug.
11945 echo 't clr' >>$CONFIG_STATUS
11946 echo ': clr' >>$CONFIG_STATUS
11947 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11949 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11951 mv $tmp/out $tmp/in
11953 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11954 rm -f conftest.undefs
11955 mv conftest.tail conftest.undefs
11957 rm -f conftest.undefs
11959 cat >>$CONFIG_STATUS <<\_ACEOF
11960 # Let's still pretend it is `configure' which instantiates (i.e., don't
11961 # use $as_me), people would be surprised to read:
11962 # /* config.h. Generated by config.status. */
11963 if test x"$ac_file" = x-; then
11964 echo "/* Generated by configure. */" >$tmp/config.h
11966 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11968 cat $tmp/in >>$tmp/config.h
11970 if test x"$ac_file" != x-; then
11971 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11972 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11973 echo "$as_me: $ac_file is unchanged" >&6;}
11975 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11976 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11977 X"$ac_file" : 'X\(//\)[^/]' \| \
11978 X"$ac_file" : 'X\(//\)$' \| \
11979 X"$ac_file" : 'X\(/\)' \| \
11980 . : '\(.\)' 2>/dev/null ||
11982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11983 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11984 /^X\(\/\/\)$/{ s//\1/; q; }
11985 /^X\(\/\).*/{ s//\1/; q; }
11987 { if $as_mkdir_p; then
11992 while test ! -d "$as_dir"; do
11993 as_dirs="$as_dir $as_dirs"
11994 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11995 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11996 X"$as_dir" : 'X\(//\)[^/]' \| \
11997 X"$as_dir" : 'X\(//\)$' \| \
11998 X"$as_dir" : 'X\(/\)' \| \
11999 . : '\(.\)' 2>/dev/null ||
12001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12002 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12003 /^X\(\/\/\)$/{ s//\1/; q; }
12004 /^X\(\/\).*/{ s//\1/; q; }
12007 test ! -n "$as_dirs" || mkdir $as_dirs
12008 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12009 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12010 { (exit 1); exit 1; }; }; }
12013 mv $tmp/config.h $ac_file
12017 rm -f $tmp/config.h
12022 cat >>$CONFIG_STATUS <<\_ACEOF
12024 { (exit 0); exit 0; }
12026 chmod +x $CONFIG_STATUS
12027 ac_clean_files=$ac_clean_files_save
12030 # configure is writing to config.log, and then calls config.status.
12031 # config.status does its own redirection, appending to config.log.
12032 # Unfortunately, on DOS this fails, as config.log is still kept open
12033 # by configure, so config.status won't be able to write to it; its
12034 # output is simply discarded. So we exec the FD to /dev/null,
12035 # effectively closing config.log, so it can be properly (re)opened and
12036 # appended to by config.status. When coming back to configure, we
12037 # need to make the FD available again.
12038 if test "$no_create" != yes; then
12040 ac_config_status_args=
12041 test "$silent" = yes &&
12042 ac_config_status_args="$ac_config_status_args --quiet"
12044 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12046 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12047 # would make configure fail if this is the last instruction.
12048 $ac_cs_success || { (exit 1); exit 1; }
12052 if test "x${srcdir}" != "x."; then
12053 echo "Warning: --srcdir is not supported"