2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.58.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
244 # Find the correct PATH separator. Usually this is `:', but
245 # DJGPP uses `;' like DOS.
246 if test "X${PATH_SEPARATOR+set}" != Xset; then
247 UNAME=${UNAME-`uname 2>/dev/null`}
249 *-DOS) lt_cv_sys_path_separator=';' ;;
250 *) lt_cv_sys_path_separator=':' ;;
252 PATH_SEPARATOR=$lt_cv_sys_path_separator
256 # Check that we are running under the correct shell.
257 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Remove one level of quotation (which was required for Make).
262 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
267 if test "X$1" = X--no-reexec; then
268 # Discard the --no-reexec flag, and continue.
270 elif test "X$1" = X--fallback-echo; then
271 # Avoid inline document here, it may be left over
273 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
274 # Yippee, $echo works!
277 # Restart under the correct shell.
278 exec $SHELL "$0" --no-reexec ${1+"$@"}
281 if test "X$1" = X--fallback-echo; then
282 # used as fallback echo
290 # The HP-UX ksh and POSIX shell print the target directory to stdout
292 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
294 if test -z "$ECHO"; then
295 if test "X${echo_test_string+set}" != Xset; then
296 # find a string as large as possible, as long as the shell can cope with it
297 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
298 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
299 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
300 echo_test_string="`eval $cmd`" &&
301 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
308 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
309 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
310 test "X$echo_testing_string" = "X$echo_test_string"; then
313 # The Solaris, AIX, and Digital Unix default echo programs unquote
314 # backslashes. This makes it impossible to quote backslashes using
315 # echo "$something" | sed 's/\\/\\\\/g'
317 # So, first we look for a working echo in the user's PATH.
319 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
320 for dir in $PATH /usr/ucb; do
321 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
322 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
331 if test "X$echo" = Xecho; then
332 # We didn't find a better echo, so look for alternatives.
333 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
334 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
335 test "X$echo_testing_string" = "X$echo_test_string"; then
336 # This shell has a builtin print -r that does the trick.
338 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
339 test "X$CONFIG_SHELL" != X/bin/ksh; then
340 # If we have ksh, try running configure again with it.
341 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
342 export ORIGINAL_CONFIG_SHELL
343 CONFIG_SHELL=/bin/ksh
345 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
349 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
350 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
354 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
360 SHELL="$CONFIG_SHELL"
362 echo="$CONFIG_SHELL $0 --fallback-echo"
363 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
364 test "X$echo_testing_string" = 'X\t' &&
365 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
366 test "X$echo_testing_string" = "X$echo_test_string"; then
367 echo="$CONFIG_SHELL $0 --fallback-echo"
369 # maybe with a smaller string...
372 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
373 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
380 if test "$prev" != 'sed 50q "$0"'; then
381 echo_test_string=`eval $prev`
382 export echo_test_string
383 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
385 # Oops. We lost completely, so just stick with echo.
394 # Copy echo and quote the copy suitably for passing to libtool from
395 # the Makefile, instead of quoting the original, which is used later.
397 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
398 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
404 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
405 # so uname gets run too.
406 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
413 ac_default_prefix=/usr/local
414 ac_config_libobj_dir=.
419 SHELL=${CONFIG_SHELL-/bin/sh}
421 # Maximum number of lines to put in a shell here document.
422 # This variable seems obsolete. It should probably be removed, and
423 # only ac_max_sed_lines should be used.
424 : ${ac_max_here_lines=38}
426 # Identity of this package.
433 ac_unique_file="src/"
434 # Factoring default headers for most tests.
435 ac_includes_default="\
438 # include <sys/types.h>
441 # include <sys/stat.h>
452 # if !STDC_HEADERS && HAVE_MEMORY_H
458 # include <strings.h>
461 # include <inttypes.h>
471 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os SHARED 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 target target_cpu target_vendor target_os WORDS_BIGENDIAN SYSTEM_BACKTICKS PACKAGE VERSION HAVE_UNISTD_H FREETYPE_CONFIG lame_objects AVIFILE_CONFIG VIDEO_LIBS VIDEO_CFLAGS 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-profiling turn on profiling
1023 --enable-warnings turn on compiler warnings
1024 --enable-optimizations turn on compiler optimizations (recommended for avi2swf)
1025 --disable-lame don't compile any L.A.M.E. mp3 encoding code in
1026 --enable-shared=PKGS build shared libraries default=yes
1027 --enable-static=PKGS build static libraries default=yes
1028 --enable-fast-install=PKGS optimize for fast installation default=yes
1029 --disable-libtool-lock avoid locking (might break parallel builds)
1032 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1033 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1034 --with-gnu-ld assume the C compiler uses GNU ld default=no
1035 --with-pic try to use only PIC/non-PIC objects default=use both
1037 Some influential environment variables:
1038 CC C compiler command
1039 CFLAGS C compiler flags
1040 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1041 nonstandard directory <lib dir>
1042 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1043 headers in a nonstandard directory <include dir>
1044 CXX C++ compiler command
1045 CXXFLAGS C++ compiler flags
1048 Use these variables to override the choices made by `configure' or to help
1049 it to find libraries and programs with nonstandard names/locations.
1054 if test "$ac_init_help" = "recursive"; then
1055 # If there are subdirs, report their specific --help.
1057 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1058 test -d $ac_dir || continue
1061 if test "$ac_dir" != .; then
1062 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1063 # A "../" for each directory in $ac_dir_suffix.
1064 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1066 ac_dir_suffix= ac_top_builddir=
1070 .) # No --srcdir option. We are building in place.
1072 if test -z "$ac_top_builddir"; then
1075 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1077 [\\/]* | ?:[\\/]* ) # Absolute path.
1078 ac_srcdir=$srcdir$ac_dir_suffix;
1079 ac_top_srcdir=$srcdir ;;
1081 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1082 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1085 .) ac_abs_builddir=$ac_builddir;;
1087 case $ac_builddir in
1088 .) ac_abs_builddir="$ac_dir";;
1089 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
1090 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
1094 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1096 case ${ac_top_builddir}. in
1097 .) ac_abs_top_builddir="$ac_dir";;
1098 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1099 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
1103 .) ac_abs_srcdir=$ac_srcdir;;
1106 .) ac_abs_srcdir="$ac_dir";;
1107 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1108 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
1112 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1114 case $ac_top_srcdir in
1115 .) ac_abs_top_srcdir="$ac_dir";;
1116 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1117 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
1122 # Check for guested configure; otherwise get Cygnus style configure.
1123 if test -f $ac_srcdir/configure.gnu; then
1125 $SHELL $ac_srcdir/configure.gnu --help=recursive
1126 elif test -f $ac_srcdir/configure; then
1128 $SHELL $ac_srcdir/configure --help=recursive
1129 elif test -f $ac_srcdir/configure.ac ||
1130 test -f $ac_srcdir/configure.in; then
1132 $ac_configure --help
1134 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1140 test -n "$ac_init_help" && exit 0
1141 if $ac_init_version; then
1144 Copyright (C) 2003 Free Software Foundation, Inc.
1145 This configure script is free software; the Free Software Foundation
1146 gives unlimited permission to copy, distribute and modify it.
1152 This file contains any messages produced by compilers while
1153 running configure, to aid debugging if configure makes a mistake.
1155 It was created by $as_me, which was
1156 generated by GNU Autoconf 2.58. Invocation command line was
1167 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1168 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1169 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1170 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1171 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1173 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1174 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1176 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1177 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1178 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1179 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1180 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1181 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1182 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1190 test -z "$as_dir" && as_dir=.
1191 echo "PATH: $as_dir"
1206 # Keep a trace of the command line.
1207 # Strip out --no-create and --no-recursion so they do not pile up.
1208 # Strip out --silent because we don't want to record it for future runs.
1209 # Also quote any args containing shell meta-characters.
1210 # Make two passes to allow for proper duplicate-argument suppression.
1215 ac_must_keep_next=false
1221 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1223 | -silent | --silent | --silen | --sile | --sil)
1225 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1226 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1229 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1231 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1232 if test $ac_must_keep_next = true; then
1233 ac_must_keep_next=false # Got value, back to normal.
1236 *=* | --config-cache | -C | -disable-* | --disable-* \
1237 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1238 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1239 | -with-* | --with-* | -without-* | --without-* | --x)
1240 case "$ac_configure_args0 " in
1241 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1244 -* ) ac_must_keep_next=true ;;
1247 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1248 # Get rid of the leading space.
1254 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1255 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1257 # When interrupted or exit'd, cleanup temporary files, and complete
1258 # config.log. We remove comments because anyway the quotes in there
1259 # would cause problems or look ugly.
1260 # WARNING: Be sure not to use single quotes in there, as some shells,
1261 # such as our DU 5.0 friend, will then `close' the trap.
1262 trap 'exit_status=$?
1263 # Save into config.log some information that might help in debugging.
1268 ## ---------------- ##
1269 ## Cache variables. ##
1270 ## ---------------- ##
1273 # The following way of writing the cache mishandles newlines in values,
1276 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1279 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1280 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1284 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1291 ## ----------------- ##
1292 ## Output variables. ##
1293 ## ----------------- ##
1296 for ac_var in $ac_subst_vars
1298 eval ac_val=$`echo $ac_var`
1299 echo "$ac_var='"'"'$ac_val'"'"'"
1303 if test -n "$ac_subst_files"; then
1310 for ac_var in $ac_subst_files
1312 eval ac_val=$`echo $ac_var`
1313 echo "$ac_var='"'"'$ac_val'"'"'"
1318 if test -s confdefs.h; then
1325 sed "/^$/d" confdefs.h | sort
1328 test "$ac_signal" != 0 &&
1329 echo "$as_me: caught signal $ac_signal"
1330 echo "$as_me: exit $exit_status"
1332 rm -f core *.core &&
1333 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1336 for ac_signal in 1 2 13 15; do
1337 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1341 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1342 rm -rf conftest* confdefs.h
1343 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1346 # Predefined preprocessor variables.
1348 cat >>confdefs.h <<_ACEOF
1349 #define PACKAGE_NAME "$PACKAGE_NAME"
1353 cat >>confdefs.h <<_ACEOF
1354 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1358 cat >>confdefs.h <<_ACEOF
1359 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1363 cat >>confdefs.h <<_ACEOF
1364 #define PACKAGE_STRING "$PACKAGE_STRING"
1368 cat >>confdefs.h <<_ACEOF
1369 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1373 # Let the site file select an alternate cache file if it wants to.
1374 # Prefer explicitly selected file to automatically selected ones.
1375 if test -z "$CONFIG_SITE"; then
1376 if test "x$prefix" != xNONE; then
1377 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1379 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1382 for ac_site_file in $CONFIG_SITE; do
1383 if test -r "$ac_site_file"; then
1384 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1385 echo "$as_me: loading site script $ac_site_file" >&6;}
1386 sed 's/^/| /' "$ac_site_file" >&5
1391 if test -r "$cache_file"; then
1392 # Some versions of bash will fail to source /dev/null (special
1393 # files actually), so we avoid doing that.
1394 if test -f "$cache_file"; then
1395 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1396 echo "$as_me: loading cache $cache_file" >&6;}
1398 [\\/]* | ?:[\\/]* ) . $cache_file;;
1399 *) . ./$cache_file;;
1403 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1404 echo "$as_me: creating cache $cache_file" >&6;}
1408 # Check that the precious variables saved in the cache have kept the same
1410 ac_cache_corrupted=false
1411 for ac_var in `(set) 2>&1 |
1412 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1413 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1414 eval ac_new_set=\$ac_env_${ac_var}_set
1415 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1416 eval ac_new_val="\$ac_env_${ac_var}_value"
1417 case $ac_old_set,$ac_new_set in
1419 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1420 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1421 ac_cache_corrupted=: ;;
1423 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1424 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1425 ac_cache_corrupted=: ;;
1428 if test "x$ac_old_val" != "x$ac_new_val"; then
1429 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1430 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1431 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1432 echo "$as_me: former value: $ac_old_val" >&2;}
1433 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1434 echo "$as_me: current value: $ac_new_val" >&2;}
1435 ac_cache_corrupted=:
1438 # Pass precious variables to config.status.
1439 if test "$ac_new_set" = set; then
1441 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1442 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1443 *) ac_arg=$ac_var=$ac_new_val ;;
1445 case " $ac_configure_args " in
1446 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1447 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1451 if $ac_cache_corrupted; then
1452 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1453 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1454 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1455 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1456 { (exit 1); exit 1; }; }
1460 ac_cpp='$CPP $CPPFLAGS'
1461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1485 # Check whether --enable-checkmem or --disable-checkmem was given.
1486 if test "${enable_checkmem+set}" = set; then
1487 enableval="$enable_checkmem"
1490 # Check whether --enable-debug or --disable-debug was given.
1491 if test "${enable_debug+set}" = set; then
1492 enableval="$enable_debug"
1495 # Check whether --enable-profiling or --disable-profiling was given.
1496 if test "${enable_profiling+set}" = set; then
1497 enableval="$enable_profiling"
1500 # Check whether --enable-warnings or --disable-warnings was given.
1501 if test "${enable_warnings+set}" = set; then
1502 enableval="$enable_warnings"
1503 ENABLE_WARNINGS=true
1505 # Check whether --enable-optimizations or --disable-optimizations was given.
1506 if test "${enable_optimizations+set}" = set; then
1507 enableval="$enable_optimizations"
1510 # Check whether --enable-lame or --disable-lame was given.
1511 if test "${enable_lame+set}" = set; then
1512 enableval="$enable_lame"
1517 VERSION=2004-11-13-2026
1520 # ------------------------------------------------------------------
1522 if test "x${srcdir}" != "x."; then
1523 echo "--srcdir is not supported"
1527 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1528 if test "x$ENABLE_WARNINGS" '!=' "x";then
1529 WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls"
1532 if test "x$CHECKMEM" '!=' "x";then
1535 if test "x$PROFILING" '!=' "x";then
1538 if test "x$DEBUG" '!=' "x";then
1539 if test "x$PROFILING" = "x";then
1540 CFLAGS="$WARNINGS -g $CFLAGS"
1541 CXXFLAGS="$WARNINGS -g $CXXFLAGS"
1543 CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1544 CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1545 LDFLAGS="-g -pg $LIBS"
1547 else if test "x$OPTIMIZE" '!=' "x"; then
1548 CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1549 CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1551 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1552 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1556 #if test "x$OLDGCC" '!=' "x";then
1557 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1558 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1559 # CFLAGS="$CFLAGS -ansi -pendantic"
1560 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1563 export PACKAGE VERSION CFLAGS CXXFLAGS
1567 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1568 if test -f $ac_dir/install-sh; then
1570 ac_install_sh="$ac_aux_dir/install-sh -c"
1572 elif test -f $ac_dir/install.sh; then
1574 ac_install_sh="$ac_aux_dir/install.sh -c"
1576 elif test -f $ac_dir/shtool; then
1578 ac_install_sh="$ac_aux_dir/shtool install -c"
1582 if test -z "$ac_aux_dir"; then
1583 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1584 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1585 { (exit 1); exit 1; }; }
1587 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1588 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1589 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1591 # Make sure we can run config.sub.
1592 $ac_config_sub sun4 >/dev/null 2>&1 ||
1593 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1594 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1595 { (exit 1); exit 1; }; }
1597 echo "$as_me:$LINENO: checking build system type" >&5
1598 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1599 if test "${ac_cv_build+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1602 ac_cv_build_alias=$build_alias
1603 test -z "$ac_cv_build_alias" &&
1604 ac_cv_build_alias=`$ac_config_guess`
1605 test -z "$ac_cv_build_alias" &&
1606 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1607 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1608 { (exit 1); exit 1; }; }
1609 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1610 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1611 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1612 { (exit 1); exit 1; }; }
1615 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1616 echo "${ECHO_T}$ac_cv_build" >&6
1618 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1619 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1620 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1623 echo "$as_me:$LINENO: checking host system type" >&5
1624 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1625 if test "${ac_cv_host+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 ac_cv_host_alias=$host_alias
1629 test -z "$ac_cv_host_alias" &&
1630 ac_cv_host_alias=$ac_cv_build_alias
1631 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1632 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1633 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1634 { (exit 1); exit 1; }; }
1637 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1638 echo "${ECHO_T}$ac_cv_host" >&6
1640 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1641 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1642 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1651 CFLAGS="$CFLAGS -fno-rtti"
1652 CXXFLAGS="$CXXFLAGS -fno-rtti"
1660 ac_cpp='$CPP $CPPFLAGS'
1661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1664 if test -n "$ac_tool_prefix"; then
1665 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1666 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1667 echo "$as_me:$LINENO: checking for $ac_word" >&5
1668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1669 if test "${ac_cv_prog_CC+set}" = set; then
1670 echo $ECHO_N "(cached) $ECHO_C" >&6
1672 if test -n "$CC"; then
1673 ac_cv_prog_CC="$CC" # Let the user override the test.
1675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1679 test -z "$as_dir" && as_dir=.
1680 for ac_exec_ext in '' $ac_executable_extensions; do
1681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1682 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1692 if test -n "$CC"; then
1693 echo "$as_me:$LINENO: result: $CC" >&5
1694 echo "${ECHO_T}$CC" >&6
1696 echo "$as_me:$LINENO: result: no" >&5
1697 echo "${ECHO_T}no" >&6
1701 if test -z "$ac_cv_prog_CC"; then
1703 # Extract the first word of "gcc", so it can be a program name with args.
1704 set dummy gcc; ac_word=$2
1705 echo "$as_me:$LINENO: checking for $ac_word" >&5
1706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1707 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1708 echo $ECHO_N "(cached) $ECHO_C" >&6
1710 if test -n "$ac_ct_CC"; then
1711 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717 test -z "$as_dir" && as_dir=.
1718 for ac_exec_ext in '' $ac_executable_extensions; do
1719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1720 ac_cv_prog_ac_ct_CC="gcc"
1721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1729 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1730 if test -n "$ac_ct_CC"; then
1731 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1732 echo "${ECHO_T}$ac_ct_CC" >&6
1734 echo "$as_me:$LINENO: result: no" >&5
1735 echo "${ECHO_T}no" >&6
1743 if test -z "$CC"; then
1744 if test -n "$ac_tool_prefix"; then
1745 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1746 set dummy ${ac_tool_prefix}cc; ac_word=$2
1747 echo "$as_me:$LINENO: checking for $ac_word" >&5
1748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1749 if test "${ac_cv_prog_CC+set}" = set; then
1750 echo $ECHO_N "(cached) $ECHO_C" >&6
1752 if test -n "$CC"; then
1753 ac_cv_prog_CC="$CC" # Let the user override the test.
1755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1759 test -z "$as_dir" && as_dir=.
1760 for ac_exec_ext in '' $ac_executable_extensions; do
1761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1762 ac_cv_prog_CC="${ac_tool_prefix}cc"
1763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1772 if test -n "$CC"; then
1773 echo "$as_me:$LINENO: result: $CC" >&5
1774 echo "${ECHO_T}$CC" >&6
1776 echo "$as_me:$LINENO: result: no" >&5
1777 echo "${ECHO_T}no" >&6
1781 if test -z "$ac_cv_prog_CC"; then
1783 # Extract the first word of "cc", so it can be a program name with args.
1784 set dummy cc; ac_word=$2
1785 echo "$as_me:$LINENO: checking for $ac_word" >&5
1786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1787 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1788 echo $ECHO_N "(cached) $ECHO_C" >&6
1790 if test -n "$ac_ct_CC"; then
1791 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1797 test -z "$as_dir" && as_dir=.
1798 for ac_exec_ext in '' $ac_executable_extensions; do
1799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1800 ac_cv_prog_ac_ct_CC="cc"
1801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1810 if test -n "$ac_ct_CC"; then
1811 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1812 echo "${ECHO_T}$ac_ct_CC" >&6
1814 echo "$as_me:$LINENO: result: no" >&5
1815 echo "${ECHO_T}no" >&6
1824 if test -z "$CC"; then
1825 # Extract the first word of "cc", so it can be a program name with args.
1826 set dummy cc; ac_word=$2
1827 echo "$as_me:$LINENO: checking for $ac_word" >&5
1828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1829 if test "${ac_cv_prog_CC+set}" = set; then
1830 echo $ECHO_N "(cached) $ECHO_C" >&6
1832 if test -n "$CC"; then
1833 ac_cv_prog_CC="$CC" # Let the user override the test.
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840 test -z "$as_dir" && as_dir=.
1841 for ac_exec_ext in '' $ac_executable_extensions; do
1842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1844 ac_prog_rejected=yes
1848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1854 if test $ac_prog_rejected = yes; then
1855 # We found a bogon in the path, so make sure we never use it.
1856 set dummy $ac_cv_prog_CC
1858 if test $# != 0; then
1859 # We chose a different compiler from the bogus one.
1860 # However, it has the same basename, so the bogon will be chosen
1861 # first if we set CC to just the basename; use the full file name.
1863 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1869 if test -n "$CC"; then
1870 echo "$as_me:$LINENO: result: $CC" >&5
1871 echo "${ECHO_T}$CC" >&6
1873 echo "$as_me:$LINENO: result: no" >&5
1874 echo "${ECHO_T}no" >&6
1878 if test -z "$CC"; then
1879 if test -n "$ac_tool_prefix"; then
1882 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1883 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1884 echo "$as_me:$LINENO: checking for $ac_word" >&5
1885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1886 if test "${ac_cv_prog_CC+set}" = set; then
1887 echo $ECHO_N "(cached) $ECHO_C" >&6
1889 if test -n "$CC"; then
1890 ac_cv_prog_CC="$CC" # Let the user override the test.
1892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896 test -z "$as_dir" && as_dir=.
1897 for ac_exec_ext in '' $ac_executable_extensions; do
1898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1909 if test -n "$CC"; then
1910 echo "$as_me:$LINENO: result: $CC" >&5
1911 echo "${ECHO_T}$CC" >&6
1913 echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6
1917 test -n "$CC" && break
1920 if test -z "$CC"; then
1924 # Extract the first word of "$ac_prog", so it can be a program name with args.
1925 set dummy $ac_prog; ac_word=$2
1926 echo "$as_me:$LINENO: checking for $ac_word" >&5
1927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1928 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1929 echo $ECHO_N "(cached) $ECHO_C" >&6
1931 if test -n "$ac_ct_CC"; then
1932 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938 test -z "$as_dir" && as_dir=.
1939 for ac_exec_ext in '' $ac_executable_extensions; do
1940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1941 ac_cv_prog_ac_ct_CC="$ac_prog"
1942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1950 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1951 if test -n "$ac_ct_CC"; then
1952 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1953 echo "${ECHO_T}$ac_ct_CC" >&6
1955 echo "$as_me:$LINENO: result: no" >&5
1956 echo "${ECHO_T}no" >&6
1959 test -n "$ac_ct_CC" && break
1968 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1969 See \`config.log' for more details." >&5
1970 echo "$as_me: error: no acceptable C compiler found in \$PATH
1971 See \`config.log' for more details." >&2;}
1972 { (exit 1); exit 1; }; }
1974 # Provide some information about the compiler.
1975 echo "$as_me:$LINENO:" \
1976 "checking for C compiler version" >&5
1977 ac_compiler=`set X $ac_compile; echo $2`
1978 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1979 (eval $ac_compiler --version </dev/null >&5) 2>&5
1981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982 (exit $ac_status); }
1983 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1984 (eval $ac_compiler -v </dev/null >&5) 2>&5
1986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1987 (exit $ac_status); }
1988 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1989 (eval $ac_compiler -V </dev/null >&5) 2>&5
1991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992 (exit $ac_status); }
1994 cat >conftest.$ac_ext <<_ACEOF
1997 cat confdefs.h >>conftest.$ac_ext
1998 cat >>conftest.$ac_ext <<_ACEOF
1999 /* end confdefs.h. */
2009 ac_clean_files_save=$ac_clean_files
2010 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2011 # Try to create an executable without -o first, disregard a.out.
2012 # It will help us diagnose broken compilers, and finding out an intuition
2014 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2015 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2016 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2017 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2018 (eval $ac_link_default) 2>&5
2020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021 (exit $ac_status); }; then
2022 # Find the output, starting from the most likely. This scheme is
2023 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2026 # Be careful to initialize this variable, since it used to be cached.
2027 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2029 # b.out is created by i960 compilers.
2030 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2032 test -f "$ac_file" || continue
2034 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2037 # This is the source file.
2040 # We found the default executable, but exeext='' is most
2044 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2045 # FIXME: I believe we export ac_cv_exeext for Libtool,
2046 # but it would be cool to find out if it's true. Does anybody
2047 # maintain Libtool? --akim.
2055 echo "$as_me: failed program was:" >&5
2056 sed 's/^/| /' conftest.$ac_ext >&5
2058 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2059 See \`config.log' for more details." >&5
2060 echo "$as_me: error: C compiler cannot create executables
2061 See \`config.log' for more details." >&2;}
2062 { (exit 77); exit 77; }; }
2065 ac_exeext=$ac_cv_exeext
2066 echo "$as_me:$LINENO: result: $ac_file" >&5
2067 echo "${ECHO_T}$ac_file" >&6
2069 # Check the compiler produces executables we can run. If not, either
2070 # the compiler is broken, or we cross compile.
2071 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2072 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2073 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2074 # If not cross compiling, check that we can run a simple program.
2075 if test "$cross_compiling" != yes; then
2076 if { ac_try='./$ac_file'
2077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081 (exit $ac_status); }; }; then
2084 if test "$cross_compiling" = maybe; then
2087 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2088 If you meant to cross compile, use \`--host'.
2089 See \`config.log' for more details." >&5
2090 echo "$as_me: error: cannot run C compiled programs.
2091 If you meant to cross compile, use \`--host'.
2092 See \`config.log' for more details." >&2;}
2093 { (exit 1); exit 1; }; }
2097 echo "$as_me:$LINENO: result: yes" >&5
2098 echo "${ECHO_T}yes" >&6
2100 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2101 ac_clean_files=$ac_clean_files_save
2102 # Check the compiler produces executables we can run. If not, either
2103 # the compiler is broken, or we cross compile.
2104 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2105 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2106 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2107 echo "${ECHO_T}$cross_compiling" >&6
2109 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2110 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2112 (eval $ac_link) 2>&5
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); }; then
2116 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2117 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2118 # work properly (i.e., refer to `conftest.exe'), while it won't with
2120 for ac_file in conftest.exe conftest conftest.*; do
2121 test -f "$ac_file" || continue
2123 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2124 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2131 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2132 See \`config.log' for more details." >&5
2133 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2134 See \`config.log' for more details." >&2;}
2135 { (exit 1); exit 1; }; }
2138 rm -f conftest$ac_cv_exeext
2139 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2140 echo "${ECHO_T}$ac_cv_exeext" >&6
2142 rm -f conftest.$ac_ext
2143 EXEEXT=$ac_cv_exeext
2145 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2146 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2147 if test "${ac_cv_objext+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 cat >conftest.$ac_ext <<_ACEOF
2153 cat confdefs.h >>conftest.$ac_ext
2154 cat >>conftest.$ac_ext <<_ACEOF
2155 /* end confdefs.h. */
2165 rm -f conftest.o conftest.obj
2166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2167 (eval $ac_compile) 2>&5
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); }; then
2171 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2173 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2174 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2179 echo "$as_me: failed program was:" >&5
2180 sed 's/^/| /' conftest.$ac_ext >&5
2182 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2183 See \`config.log' for more details." >&5
2184 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2185 See \`config.log' for more details." >&2;}
2186 { (exit 1); exit 1; }; }
2189 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2191 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2192 echo "${ECHO_T}$ac_cv_objext" >&6
2193 OBJEXT=$ac_cv_objext
2195 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2196 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2197 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2198 echo $ECHO_N "(cached) $ECHO_C" >&6
2200 cat >conftest.$ac_ext <<_ACEOF
2203 cat confdefs.h >>conftest.$ac_ext
2204 cat >>conftest.$ac_ext <<_ACEOF
2205 /* end confdefs.h. */
2218 rm -f conftest.$ac_objext
2219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2220 (eval $ac_compile) 2>conftest.er1
2222 grep -v '^ *+' conftest.er1 >conftest.err
2224 cat conftest.err >&5
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); } &&
2227 { ac_try='test -z "$ac_c_werror_flag"
2228 || test ! -s conftest.err'
2229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; } &&
2234 { ac_try='test -s conftest.$ac_objext'
2235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; }; then
2242 echo "$as_me: failed program was:" >&5
2243 sed 's/^/| /' conftest.$ac_ext >&5
2247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2248 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2251 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2252 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2253 GCC=`test $ac_compiler_gnu = yes && echo yes`
2254 ac_test_CFLAGS=${CFLAGS+set}
2255 ac_save_CFLAGS=$CFLAGS
2257 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2258 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2259 if test "${ac_cv_prog_cc_g+set}" = set; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6
2262 cat >conftest.$ac_ext <<_ACEOF
2265 cat confdefs.h >>conftest.$ac_ext
2266 cat >>conftest.$ac_ext <<_ACEOF
2267 /* end confdefs.h. */
2277 rm -f conftest.$ac_objext
2278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2279 (eval $ac_compile) 2>conftest.er1
2281 grep -v '^ *+' conftest.er1 >conftest.err
2283 cat conftest.err >&5
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); } &&
2286 { ac_try='test -z "$ac_c_werror_flag"
2287 || test ! -s conftest.err'
2288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); }; } &&
2293 { ac_try='test -s conftest.$ac_objext'
2294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); }; }; then
2301 echo "$as_me: failed program was:" >&5
2302 sed 's/^/| /' conftest.$ac_ext >&5
2306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2308 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2309 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2310 if test "$ac_test_CFLAGS" = set; then
2311 CFLAGS=$ac_save_CFLAGS
2312 elif test $ac_cv_prog_cc_g = yes; then
2313 if test "$GCC" = yes; then
2319 if test "$GCC" = yes; then
2325 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2326 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2327 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
2330 ac_cv_prog_cc_stdc=no
2332 cat >conftest.$ac_ext <<_ACEOF
2335 cat confdefs.h >>conftest.$ac_ext
2336 cat >>conftest.$ac_ext <<_ACEOF
2337 /* end confdefs.h. */
2340 #include <sys/types.h>
2341 #include <sys/stat.h>
2342 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2343 struct buf { int x; };
2344 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2345 static char *e (p, i)
2351 static char *f (char * (*g) (char **, int), char **p, ...)
2356 s = g (p, va_arg (v,int));
2361 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2362 function prototypes and stuff, but not '\xHH' hex character constants.
2363 These don't provoke an error unfortunately, instead are silently treated
2364 as 'x'. The following induces an error, until -std1 is added to get
2365 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2366 array size at least. It's necessary to write '\x00'==0 to get something
2367 that's true only with -std1. */
2368 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2370 int test (int i, double x);
2371 struct s1 {int (*f) (int a);};
2372 struct s2 {int (*f) (double a);};
2373 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2379 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2384 # Don't try gcc -ansi; that turns off useful extensions and
2385 # breaks some systems' header files.
2386 # AIX -qlanglvl=ansi
2387 # Ultrix and OSF/1 -std1
2388 # HP-UX 10.20 and later -Ae
2389 # HP-UX older versions -Aa -D_HPUX_SOURCE
2390 # SVR4 -Xc -D__EXTENSIONS__
2391 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2393 CC="$ac_save_CC $ac_arg"
2394 rm -f conftest.$ac_objext
2395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2396 (eval $ac_compile) 2>conftest.er1
2398 grep -v '^ *+' conftest.er1 >conftest.err
2400 cat conftest.err >&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); } &&
2403 { ac_try='test -z "$ac_c_werror_flag"
2404 || test ! -s conftest.err'
2405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; } &&
2410 { ac_try='test -s conftest.$ac_objext'
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; }; then
2416 ac_cv_prog_cc_stdc=$ac_arg
2419 echo "$as_me: failed program was:" >&5
2420 sed 's/^/| /' conftest.$ac_ext >&5
2423 rm -f conftest.err conftest.$ac_objext
2425 rm -f conftest.$ac_ext conftest.$ac_objext
2430 case "x$ac_cv_prog_cc_stdc" in
2432 echo "$as_me:$LINENO: result: none needed" >&5
2433 echo "${ECHO_T}none needed" >&6 ;;
2435 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2436 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2437 CC="$CC $ac_cv_prog_cc_stdc" ;;
2440 # Some people use a C++ compiler to compile C. Since we use `exit',
2441 # in C++ we need to declare it. In case someone uses the same compiler
2442 # for both compiling C and C++ we need to have the C++ compiler decide
2443 # the declaration of exit, since it's the most demanding environment.
2444 cat >conftest.$ac_ext <<_ACEOF
2449 rm -f conftest.$ac_objext
2450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2451 (eval $ac_compile) 2>conftest.er1
2453 grep -v '^ *+' conftest.er1 >conftest.err
2455 cat conftest.err >&5
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); } &&
2458 { ac_try='test -z "$ac_c_werror_flag"
2459 || test ! -s conftest.err'
2460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; } &&
2465 { ac_try='test -s conftest.$ac_objext'
2466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; }; then
2471 for ac_declaration in \
2473 'extern "C" void std::exit (int) throw (); using std::exit;' \
2474 'extern "C" void std::exit (int); using std::exit;' \
2475 'extern "C" void exit (int) throw ();' \
2476 'extern "C" void exit (int);' \
2479 cat >conftest.$ac_ext <<_ACEOF
2482 cat confdefs.h >>conftest.$ac_ext
2483 cat >>conftest.$ac_ext <<_ACEOF
2484 /* end confdefs.h. */
2495 rm -f conftest.$ac_objext
2496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2497 (eval $ac_compile) 2>conftest.er1
2499 grep -v '^ *+' conftest.er1 >conftest.err
2501 cat conftest.err >&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); } &&
2504 { ac_try='test -z "$ac_c_werror_flag"
2505 || test ! -s conftest.err'
2506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }; } &&
2511 { ac_try='test -s conftest.$ac_objext'
2512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; }; then
2519 echo "$as_me: failed program was:" >&5
2520 sed 's/^/| /' conftest.$ac_ext >&5
2524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2525 cat >conftest.$ac_ext <<_ACEOF
2528 cat confdefs.h >>conftest.$ac_ext
2529 cat >>conftest.$ac_ext <<_ACEOF
2530 /* end confdefs.h. */
2540 rm -f conftest.$ac_objext
2541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2542 (eval $ac_compile) 2>conftest.er1
2544 grep -v '^ *+' conftest.er1 >conftest.err
2546 cat conftest.err >&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); } &&
2549 { ac_try='test -z "$ac_c_werror_flag"
2550 || test ! -s conftest.err'
2551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); }; } &&
2556 { ac_try='test -s conftest.$ac_objext'
2557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); }; }; then
2564 echo "$as_me: failed program was:" >&5
2565 sed 's/^/| /' conftest.$ac_ext >&5
2568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2571 if test -n "$ac_declaration"; then
2572 echo '#ifdef __cplusplus' >>confdefs.h
2573 echo $ac_declaration >>confdefs.h
2574 echo '#endif' >>confdefs.h
2578 echo "$as_me: failed program was:" >&5
2579 sed 's/^/| /' conftest.$ac_ext >&5
2582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2584 ac_cpp='$CPP $CPPFLAGS'
2585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2590 ac_cpp='$CXXCPP $CPPFLAGS'
2591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2594 if test -n "$ac_tool_prefix"; then
2595 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2597 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2598 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2599 echo "$as_me:$LINENO: checking for $ac_word" >&5
2600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2601 if test "${ac_cv_prog_CXX+set}" = set; then
2602 echo $ECHO_N "(cached) $ECHO_C" >&6
2604 if test -n "$CXX"; then
2605 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 test -z "$as_dir" && as_dir=.
2612 for ac_exec_ext in '' $ac_executable_extensions; do
2613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2614 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624 if test -n "$CXX"; then
2625 echo "$as_me:$LINENO: result: $CXX" >&5
2626 echo "${ECHO_T}$CXX" >&6
2628 echo "$as_me:$LINENO: result: no" >&5
2629 echo "${ECHO_T}no" >&6
2632 test -n "$CXX" && break
2635 if test -z "$CXX"; then
2637 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2639 # Extract the first word of "$ac_prog", so it can be a program name with args.
2640 set dummy $ac_prog; ac_word=$2
2641 echo "$as_me:$LINENO: checking for $ac_word" >&5
2642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2643 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2646 if test -n "$ac_ct_CXX"; then
2647 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 test -z "$as_dir" && as_dir=.
2654 for ac_exec_ext in '' $ac_executable_extensions; do
2655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2656 ac_cv_prog_ac_ct_CXX="$ac_prog"
2657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2665 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2666 if test -n "$ac_ct_CXX"; then
2667 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2668 echo "${ECHO_T}$ac_ct_CXX" >&6
2670 echo "$as_me:$LINENO: result: no" >&5
2671 echo "${ECHO_T}no" >&6
2674 test -n "$ac_ct_CXX" && break
2676 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2682 # Provide some information about the compiler.
2683 echo "$as_me:$LINENO:" \
2684 "checking for C++ compiler version" >&5
2685 ac_compiler=`set X $ac_compile; echo $2`
2686 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2687 (eval $ac_compiler --version </dev/null >&5) 2>&5
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); }
2691 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2692 (eval $ac_compiler -v </dev/null >&5) 2>&5
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }
2696 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2697 (eval $ac_compiler -V </dev/null >&5) 2>&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); }
2702 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2703 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2704 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2705 echo $ECHO_N "(cached) $ECHO_C" >&6
2707 cat >conftest.$ac_ext <<_ACEOF
2710 cat confdefs.h >>conftest.$ac_ext
2711 cat >>conftest.$ac_ext <<_ACEOF
2712 /* end confdefs.h. */
2725 rm -f conftest.$ac_objext
2726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2727 (eval $ac_compile) 2>conftest.er1
2729 grep -v '^ *+' conftest.er1 >conftest.err
2731 cat conftest.err >&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); } &&
2734 { ac_try='test -z "$ac_cxx_werror_flag"
2735 || test ! -s conftest.err'
2736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; } &&
2741 { ac_try='test -s conftest.$ac_objext'
2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; }; then
2749 echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2755 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2758 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2759 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2760 GXX=`test $ac_compiler_gnu = yes && echo yes`
2761 ac_test_CXXFLAGS=${CXXFLAGS+set}
2762 ac_save_CXXFLAGS=$CXXFLAGS
2764 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2765 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2766 if test "${ac_cv_prog_cxx_g+set}" = set; then
2767 echo $ECHO_N "(cached) $ECHO_C" >&6
2769 cat >conftest.$ac_ext <<_ACEOF
2772 cat confdefs.h >>conftest.$ac_ext
2773 cat >>conftest.$ac_ext <<_ACEOF
2774 /* end confdefs.h. */
2784 rm -f conftest.$ac_objext
2785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2786 (eval $ac_compile) 2>conftest.er1
2788 grep -v '^ *+' conftest.er1 >conftest.err
2790 cat conftest.err >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); } &&
2793 { ac_try='test -z "$ac_cxx_werror_flag"
2794 || test ! -s conftest.err'
2795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }; } &&
2800 { ac_try='test -s conftest.$ac_objext'
2801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }; }; then
2806 ac_cv_prog_cxx_g=yes
2808 echo "$as_me: failed program was:" >&5
2809 sed 's/^/| /' conftest.$ac_ext >&5
2813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2815 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2816 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2817 if test "$ac_test_CXXFLAGS" = set; then
2818 CXXFLAGS=$ac_save_CXXFLAGS
2819 elif test $ac_cv_prog_cxx_g = yes; then
2820 if test "$GXX" = yes; then
2826 if test "$GXX" = yes; then
2832 for ac_declaration in \
2834 'extern "C" void std::exit (int) throw (); using std::exit;' \
2835 'extern "C" void std::exit (int); using std::exit;' \
2836 'extern "C" void exit (int) throw ();' \
2837 'extern "C" void exit (int);' \
2840 cat >conftest.$ac_ext <<_ACEOF
2843 cat confdefs.h >>conftest.$ac_ext
2844 cat >>conftest.$ac_ext <<_ACEOF
2845 /* end confdefs.h. */
2856 rm -f conftest.$ac_objext
2857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2858 (eval $ac_compile) 2>conftest.er1
2860 grep -v '^ *+' conftest.er1 >conftest.err
2862 cat conftest.err >&5
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); } &&
2865 { ac_try='test -z "$ac_cxx_werror_flag"
2866 || test ! -s conftest.err'
2867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); }; } &&
2872 { ac_try='test -s conftest.$ac_objext'
2873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); }; }; then
2880 echo "$as_me: failed program was:" >&5
2881 sed 's/^/| /' conftest.$ac_ext >&5
2885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2886 cat >conftest.$ac_ext <<_ACEOF
2889 cat confdefs.h >>conftest.$ac_ext
2890 cat >>conftest.$ac_ext <<_ACEOF
2891 /* end confdefs.h. */
2901 rm -f conftest.$ac_objext
2902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2903 (eval $ac_compile) 2>conftest.er1
2905 grep -v '^ *+' conftest.er1 >conftest.err
2907 cat conftest.err >&5
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); } &&
2910 { ac_try='test -z "$ac_cxx_werror_flag"
2911 || test ! -s conftest.err'
2912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }; } &&
2917 { ac_try='test -s conftest.$ac_objext'
2918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); }; }; then
2925 echo "$as_me: failed program was:" >&5
2926 sed 's/^/| /' conftest.$ac_ext >&5
2929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2932 if test -n "$ac_declaration"; then
2933 echo '#ifdef __cplusplus' >>confdefs.h
2934 echo $ac_declaration >>confdefs.h
2935 echo '#endif' >>confdefs.h
2939 ac_cpp='$CPP $CPPFLAGS'
2940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2945 if test "x$CHECKMEM" '!=' "x";then
2949 #unset ac_cv_prog_CC
2950 #unset ac_cv_prog_CXX
2955 ac_cpp='$CPP $CPPFLAGS'
2956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2959 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2960 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2961 # On Suns, sometimes $CPP names a directory.
2962 if test -n "$CPP" && test -d "$CPP"; then
2965 if test -z "$CPP"; then
2966 if test "${ac_cv_prog_CPP+set}" = set; then
2967 echo $ECHO_N "(cached) $ECHO_C" >&6
2969 # Double quotes because CPP needs to be expanded
2970 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2973 for ac_c_preproc_warn_flag in '' yes
2975 # Use a header file that comes with gcc, so configuring glibc
2976 # with a fresh cross-compiler works.
2977 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2978 # <limits.h> exists even on freestanding compilers.
2979 # On the NeXT, cc -E runs the code through the compiler's parser,
2980 # not just through cpp. "Syntax error" is here to catch this case.
2981 cat >conftest.$ac_ext <<_ACEOF
2984 cat confdefs.h >>conftest.$ac_ext
2985 cat >>conftest.$ac_ext <<_ACEOF
2986 /* end confdefs.h. */
2988 # include <limits.h>
2990 # include <assert.h>
2994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2997 grep -v '^ *+' conftest.er1 >conftest.err
2999 cat conftest.err >&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); } >/dev/null; then
3002 if test -s conftest.err; then
3003 ac_cpp_err=$ac_c_preproc_warn_flag
3004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3011 if test -z "$ac_cpp_err"; then
3014 echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3017 # Broken: fails on valid input.
3020 rm -f conftest.err conftest.$ac_ext
3022 # OK, works on sane cases. Now check whether non-existent headers
3023 # can be detected and how.
3024 cat >conftest.$ac_ext <<_ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3030 #include <ac_nonexistent.h>
3032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3033 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3035 grep -v '^ *+' conftest.er1 >conftest.err
3037 cat conftest.err >&5
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); } >/dev/null; then
3040 if test -s conftest.err; then
3041 ac_cpp_err=$ac_c_preproc_warn_flag
3042 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3049 if test -z "$ac_cpp_err"; then
3050 # Broken: success on invalid input.
3053 echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3056 # Passes both tests.
3060 rm -f conftest.err conftest.$ac_ext
3063 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3064 rm -f conftest.err conftest.$ac_ext
3065 if $ac_preproc_ok; then
3077 echo "$as_me:$LINENO: result: $CPP" >&5
3078 echo "${ECHO_T}$CPP" >&6
3080 for ac_c_preproc_warn_flag in '' yes
3082 # Use a header file that comes with gcc, so configuring glibc
3083 # with a fresh cross-compiler works.
3084 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3085 # <limits.h> exists even on freestanding compilers.
3086 # On the NeXT, cc -E runs the code through the compiler's parser,
3087 # not just through cpp. "Syntax error" is here to catch this case.
3088 cat >conftest.$ac_ext <<_ACEOF
3091 cat confdefs.h >>conftest.$ac_ext
3092 cat >>conftest.$ac_ext <<_ACEOF
3093 /* end confdefs.h. */
3095 # include <limits.h>
3097 # include <assert.h>
3101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3104 grep -v '^ *+' conftest.er1 >conftest.err
3106 cat conftest.err >&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); } >/dev/null; then
3109 if test -s conftest.err; then
3110 ac_cpp_err=$ac_c_preproc_warn_flag
3111 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3118 if test -z "$ac_cpp_err"; then
3121 echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3124 # Broken: fails on valid input.
3127 rm -f conftest.err conftest.$ac_ext
3129 # OK, works on sane cases. Now check whether non-existent headers
3130 # can be detected and how.
3131 cat >conftest.$ac_ext <<_ACEOF
3134 cat confdefs.h >>conftest.$ac_ext
3135 cat >>conftest.$ac_ext <<_ACEOF
3136 /* end confdefs.h. */
3137 #include <ac_nonexistent.h>
3139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3142 grep -v '^ *+' conftest.er1 >conftest.err
3144 cat conftest.err >&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); } >/dev/null; then
3147 if test -s conftest.err; then
3148 ac_cpp_err=$ac_c_preproc_warn_flag
3149 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3156 if test -z "$ac_cpp_err"; then
3157 # Broken: success on invalid input.
3160 echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3163 # Passes both tests.
3167 rm -f conftest.err conftest.$ac_ext
3170 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3171 rm -f conftest.err conftest.$ac_ext
3172 if $ac_preproc_ok; then
3175 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3176 See \`config.log' for more details." >&5
3177 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3178 See \`config.log' for more details." >&2;}
3179 { (exit 1); exit 1; }; }
3183 ac_cpp='$CPP $CPPFLAGS'
3184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3189 if test -n "$ac_tool_prefix"; then
3190 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3191 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3192 echo "$as_me:$LINENO: checking for $ac_word" >&5
3193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3194 if test "${ac_cv_prog_RANLIB+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
3197 if test -n "$RANLIB"; then
3198 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 test -z "$as_dir" && as_dir=.
3205 for ac_exec_ext in '' $ac_executable_extensions; do
3206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3207 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3216 RANLIB=$ac_cv_prog_RANLIB
3217 if test -n "$RANLIB"; then
3218 echo "$as_me:$LINENO: result: $RANLIB" >&5
3219 echo "${ECHO_T}$RANLIB" >&6
3221 echo "$as_me:$LINENO: result: no" >&5
3222 echo "${ECHO_T}no" >&6
3226 if test -z "$ac_cv_prog_RANLIB"; then
3227 ac_ct_RANLIB=$RANLIB
3228 # Extract the first word of "ranlib", so it can be a program name with args.
3229 set dummy ranlib; ac_word=$2
3230 echo "$as_me:$LINENO: checking for $ac_word" >&5
3231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3232 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3233 echo $ECHO_N "(cached) $ECHO_C" >&6
3235 if test -n "$ac_ct_RANLIB"; then
3236 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 test -z "$as_dir" && as_dir=.
3243 for ac_exec_ext in '' $ac_executable_extensions; do
3244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3245 ac_cv_prog_ac_ct_RANLIB="ranlib"
3246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3252 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3255 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3256 if test -n "$ac_ct_RANLIB"; then
3257 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3258 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3260 echo "$as_me:$LINENO: result: no" >&5
3261 echo "${ECHO_T}no" >&6
3264 RANLIB=$ac_ct_RANLIB
3266 RANLIB="$ac_cv_prog_RANLIB"
3269 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3270 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3271 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3272 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3273 echo $ECHO_N "(cached) $ECHO_C" >&6
3275 cat >conftest.make <<\_ACEOF
3277 @echo 'ac_maketemp="$(MAKE)"'
3279 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3280 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3281 if test -n "$ac_maketemp"; then
3282 eval ac_cv_prog_make_${ac_make}_set=yes
3284 eval ac_cv_prog_make_${ac_make}_set=no
3288 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3289 echo "$as_me:$LINENO: result: yes" >&5
3290 echo "${ECHO_T}yes" >&6
3293 echo "$as_me:$LINENO: result: no" >&5
3294 echo "${ECHO_T}no" >&6
3295 SET_MAKE="MAKE=${MAKE-make}"
3298 # Find a good install program. We prefer a C program (faster),
3299 # so one script is as good as another. But avoid the broken or
3300 # incompatible versions:
3301 # SysV /etc/install, /usr/sbin/install
3302 # SunOS /usr/etc/install
3303 # IRIX /sbin/install
3305 # AmigaOS /C/install, which installs bootblocks on floppy discs
3306 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3307 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3308 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3309 # OS/2's system install, which has a completely different semantic
3310 # ./install, which can be erroneously created by make from ./install.sh.
3311 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3312 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3313 if test -z "$INSTALL"; then
3314 if test "${ac_cv_path_install+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 test -z "$as_dir" && as_dir=.
3322 # Account for people who put trailing slashes in PATH elements.
3324 ./ | .// | /cC/* | \
3325 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3326 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3329 # OSF1 and SCO ODT 3.0 have their own names for install.
3330 # Don't use installbsd from OSF since it installs stuff as root
3332 for ac_prog in ginstall scoinst install; do
3333 for ac_exec_ext in '' $ac_executable_extensions; do
3334 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3335 if test $ac_prog = install &&
3336 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3337 # AIX install. It has an incompatible calling convention.
3339 elif test $ac_prog = install &&
3340 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3341 # program-specific install script used by HP pwplus--don't use.
3344 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3356 if test "${ac_cv_path_install+set}" = set; then
3357 INSTALL=$ac_cv_path_install
3359 # As a last resort, use the slow shell script. We don't cache a
3360 # path for INSTALL within a source directory, because that will
3361 # break other packages using the cache if that directory is
3362 # removed, or if the path is relative.
3363 INSTALL=$ac_install_sh
3366 echo "$as_me:$LINENO: result: $INSTALL" >&5
3367 echo "${ECHO_T}$INSTALL" >&6
3369 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3370 # It thinks the first close brace ends the variable substitution.
3371 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3373 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3375 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3377 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3378 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3380 if test "$LN_S" = "ln -s"; then
3381 echo "$as_me:$LINENO: result: yes" >&5
3382 echo "${ECHO_T}yes" >&6
3384 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3385 echo "${ECHO_T}no, using $LN_S" >&6
3388 # Check whether --enable-shared or --disable-shared was given.
3389 if test "${enable_shared+set}" = set; then
3390 enableval="$enable_shared"
3391 p=${PACKAGE-default}
3393 yes) enable_shared=yes ;;
3394 no) enable_shared=no ;;
3397 # Look at the argument we got. We use all the common list separators.
3398 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3399 for pkg in $enableval; do
3400 if test "X$pkg" = "X$p"; then
3410 # Check whether --enable-static or --disable-static was given.
3411 if test "${enable_static+set}" = set; then
3412 enableval="$enable_static"
3413 p=${PACKAGE-default}
3415 yes) enable_static=yes ;;
3416 no) enable_static=no ;;
3419 # Look at the argument we got. We use all the common list separators.
3420 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3421 for pkg in $enableval; do
3422 if test "X$pkg" = "X$p"; then
3432 # Check whether --enable-fast-install or --disable-fast-install was given.
3433 if test "${enable_fast_install+set}" = set; then
3434 enableval="$enable_fast_install"
3435 p=${PACKAGE-default}
3437 yes) enable_fast_install=yes ;;
3438 no) enable_fast_install=no ;;
3440 enable_fast_install=no
3441 # Look at the argument we got. We use all the common list separators.
3442 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3443 for pkg in $enableval; do
3444 if test "X$pkg" = "X$p"; then
3445 enable_fast_install=yes
3452 enable_fast_install=yes
3454 # Find the correct PATH separator. Usually this is `:', but
3455 # DJGPP uses `;' like DOS.
3456 if test "X${PATH_SEPARATOR+set}" != Xset; then
3457 UNAME=${UNAME-`uname 2>/dev/null`}
3459 *-DOS) lt_cv_sys_path_separator=';' ;;
3460 *) lt_cv_sys_path_separator=':' ;;
3462 PATH_SEPARATOR=$lt_cv_sys_path_separator
3466 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3467 if test "${with_gnu_ld+set}" = set; then
3468 withval="$with_gnu_ld"
3469 test "$withval" = no || with_gnu_ld=yes
3474 if test "$GCC" = yes; then
3475 # Check if gcc -print-prog-name=ld gives a path.
3476 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3477 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3480 # gcc leaves a trailing carriage return which upsets mingw
3481 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3483 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3486 # Accept absolute paths.
3487 [\\/]* | [A-Za-z]:[\\/]*)
3488 re_direlt='/[^/][^/]*/\.\./'
3489 # Canonicalize the path of ld
3490 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3491 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3492 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3494 test -z "$LD" && LD="$ac_prog"
3497 # If it fails, then pretend we aren't using GCC.
3501 # If it is relative, then search for the first ld in PATH.
3505 elif test "$with_gnu_ld" = yes; then
3506 echo "$as_me:$LINENO: checking for GNU ld" >&5
3507 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3509 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3510 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3512 if test "${lt_cv_path_LD+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3515 if test -z "$LD"; then
3516 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3517 for ac_dir in $PATH; do
3518 test -z "$ac_dir" && ac_dir=.
3519 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3520 lt_cv_path_LD="$ac_dir/$ac_prog"
3521 # Check to see if the program is GNU ld. I'd rather use --version,
3522 # but apparently some GNU ld's only accept -v.
3523 # Break only if it was the GNU/non-GNU ld that we prefer.
3524 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3525 test "$with_gnu_ld" != no && break
3527 test "$with_gnu_ld" != yes && break
3533 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3538 if test -n "$LD"; then
3539 echo "$as_me:$LINENO: result: $LD" >&5
3540 echo "${ECHO_T}$LD" >&6
3542 echo "$as_me:$LINENO: result: no" >&5
3543 echo "${ECHO_T}no" >&6
3545 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3546 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3547 { (exit 1); exit 1; }; }
3548 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3549 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3550 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
3553 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3554 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3555 lt_cv_prog_gnu_ld=yes
3557 lt_cv_prog_gnu_ld=no
3560 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3561 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3562 with_gnu_ld=$lt_cv_prog_gnu_ld
3565 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3566 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3567 if test "${lt_cv_ld_reload_flag+set}" = set; then
3568 echo $ECHO_N "(cached) $ECHO_C" >&6
3570 lt_cv_ld_reload_flag='-r'
3572 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3573 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3574 reload_flag=$lt_cv_ld_reload_flag
3575 test -n "$reload_flag" && reload_flag=" $reload_flag"
3577 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3578 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3579 if test "${lt_cv_path_NM+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3582 if test -n "$NM"; then
3583 # Let the user override the test.
3586 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3587 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3588 test -z "$ac_dir" && ac_dir=.
3589 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3590 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3591 # Check to see if the nm accepts a BSD-compat flag.
3592 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3593 # nm: unknown option "B" ignored
3594 # Tru64's nm complains that /dev/null is an invalid object file
3595 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3596 lt_cv_path_NM="$tmp_nm -B"
3598 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3599 lt_cv_path_NM="$tmp_nm -p"
3602 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3603 continue # so that we can try to find one that supports BSD flags
3608 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3613 echo "$as_me:$LINENO: result: $NM" >&5
3614 echo "${ECHO_T}$NM" >&6
3616 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3617 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3618 if test "${lt_cv_path_SED+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3621 # Loop through the user's path and test for sed and gsed.
3622 # Then use that list of sed's as ones to test for truncation.
3623 as_executable_p="test -f"
3624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628 test -z "$as_dir" && as_dir=.
3629 for ac_prog in sed gsed; do
3630 for ac_exec_ext in '' $ac_executable_extensions; do
3631 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3632 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3638 # Create a temporary directory, and hook for its removal unless debugging.
3641 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3642 trap '{ (exit 1); exit 1; }' 1 2 13 15
3645 # Create a (secure) tmp directory for tmp files.
3648 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3649 test -n "$tmp" && test -d "$tmp"
3652 tmp=$TMPDIR/sed$$-$RANDOM
3653 (umask 077 && mkdir $tmp)
3656 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3657 { (exit 1); exit 1; }
3661 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3662 # along with /bin/sed that truncates output.
3663 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3664 test ! -f ${_sed} && break
3665 cat /dev/null > "$tmp/sed.in"
3667 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3668 # Check for GNU sed and select it if it is found.
3669 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3670 lt_cv_path_SED=${_sed}
3674 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3675 mv "$tmp/sed.tmp" "$tmp/sed.in"
3676 cp "$tmp/sed.in" "$tmp/sed.nl"
3677 echo >>"$tmp/sed.nl"
3678 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3679 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3680 # 40000 chars as input seems more than enough
3681 test $_count -gt 10 && break
3682 _count=`expr $_count + 1`
3683 if test $_count -gt $_max; then
3685 lt_cv_path_SED=$_sed
3693 if test "X$SED" != "X"; then
3698 echo "$as_me:$LINENO: result: $SED" >&5
3699 echo "${ECHO_T}$SED" >&6
3701 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3702 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3703 if test "${lt_cv_deplibs_check_method+set}" = set; then
3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3706 lt_cv_file_magic_cmd='$MAGIC_CMD'
3707 lt_cv_file_magic_test_file=
3708 lt_cv_deplibs_check_method='unknown'
3709 # Need to set the preceding variable on all platforms that support
3710 # interlibrary dependencies.
3711 # 'none' -- dependencies not supported.
3712 # `unknown' -- same as none, but documents that we really don't know.
3713 # 'pass_all' -- all dependencies passed with no checks.
3714 # 'test_compile' -- check by making test program.
3715 # 'file_magic [[regex]]' -- check by looking for files in library path
3716 # which responds to the $file_magic_cmd with a given egrep regex.
3717 # If you have `file' or equivalent on your system and you're not sure
3718 # whether `pass_all' will *always* work, you probably want this one.
3722 lt_cv_deplibs_check_method=pass_all
3726 lt_cv_deplibs_check_method=pass_all
3730 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3731 lt_cv_file_magic_cmd='/usr/bin/file -L'
3732 lt_cv_file_magic_test_file=/shlib/libc.so
3735 cygwin* | mingw* | pw32*)
3736 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3737 lt_cv_file_magic_cmd='$OBJDUMP -f'
3740 darwin* | rhapsody*)
3741 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3742 lt_cv_file_magic_cmd='/usr/bin/file -L'
3744 rhapsody* | darwin1.[012])
3745 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3748 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3754 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3757 # Not sure whether the presence of OpenBSD here was a mistake.
3758 # Let's accept both of them until this is cleared up.
3759 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3760 lt_cv_file_magic_cmd=/usr/bin/file
3761 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3765 lt_cv_deplibs_check_method=pass_all
3770 lt_cv_deplibs_check_method=pass_all
3774 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3775 lt_cv_file_magic_cmd=/usr/bin/file
3776 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3779 irix5* | irix6* | nonstopux*)
3781 irix5* | nonstopux*)
3782 # this will be overridden with pass_all, but let us keep it just in case
3783 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3787 *-32|*"-32 ") libmagic=32-bit;;
3788 *-n32|*"-n32 ") libmagic=N32;;
3789 *-64|*"-64 ") libmagic=64-bit;;
3790 *) libmagic=never-match;;
3792 # this will be overridden with pass_all, but let us keep it just in case
3793 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3796 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3797 lt_cv_deplibs_check_method=pass_all
3800 # This must be Linux ELF.
3803 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
3804 lt_cv_deplibs_check_method=pass_all ;;
3806 # glibc up to 2.1.1 does not perform some relocations on ARM
3807 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3809 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3813 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3814 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3816 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3821 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3822 lt_cv_file_magic_cmd=/usr/bin/file
3823 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3827 lt_cv_file_magic_cmd=/usr/bin/file
3828 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3829 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3830 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3832 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3836 osf3* | osf4* | osf5*)
3837 # this will be overridden with pass_all, but let us keep it just in case
3838 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3839 lt_cv_file_magic_test_file=/shlib/libc.so
3840 lt_cv_deplibs_check_method=pass_all
3844 lt_cv_deplibs_check_method=pass_all
3848 lt_cv_deplibs_check_method=pass_all
3849 lt_cv_file_magic_test_file=/lib/libc.so
3852 sysv5uw[78]* | sysv4*uw2*)
3853 lt_cv_deplibs_check_method=pass_all
3856 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3857 case $host_vendor in
3859 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]'
3860 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3863 lt_cv_deplibs_check_method=pass_all
3866 lt_cv_file_magic_cmd='/bin/file'
3867 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3870 lt_cv_file_magic_cmd='/bin/file'
3871 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3872 lt_cv_file_magic_test_file=/lib/libc.so
3875 lt_cv_deplibs_check_method=pass_all
3882 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3883 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3884 file_magic_cmd=$lt_cv_file_magic_cmd
3885 deplibs_check_method=$lt_cv_deplibs_check_method
3894 # Check for command to grab the raw symbol name followed by C symbol from nm.
3895 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3896 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3897 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3898 echo $ECHO_N "(cached) $ECHO_C" >&6
3901 # These are sane defaults that work on at least a few old systems.
3902 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3904 # Character class describing NM global symbol codes.
3905 symcode='[BCDEGRST]'
3907 # Regexp to match symbols that can be accessed directly from C.
3908 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3910 # Transform the above into a raw symbol and a C symbol.
3911 symxfrm='\1 \2\3 \3'
3913 # Transform an extracted symbol line into a proper C declaration
3914 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3916 # Transform an extracted symbol line into symbol name and symbol address
3917 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'"
3919 # Define system-specific variables.
3924 cygwin* | mingw* | pw32*)
3925 symcode='[ABCDGISTW]'
3927 hpux*) # Its linker distinguishes data from code symbols
3928 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3929 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'"
3932 symcode='[BCDEGRST]'
3935 symcode='[BCDEGQRST]'
3945 # Handle CRLF in mingw tool chain
3949 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3953 # If we're using GNU nm, then use its standard symbol codes.
3954 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3955 symcode='[ABCDGISTW]'
3958 # Try without a prefix undercore, then with it.
3959 for ac_symprfx in "" "_"; do
3961 # Write the raw and C identifiers.
3962 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3964 # Check to see that the pipe works correctly.
3967 cat > conftest.$ac_ext <<EOF
3972 void nm_test_func(){}
3976 int main(){nm_test_var='a';nm_test_func();return(0);}
3979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3980 (eval $ac_compile) 2>&5
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); }; then
3984 # Now try to grab the symbols.
3986 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3987 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); } && test -s "$nlist"; then
3991 # Try sorting and uniquifying the output.
3992 if sort "$nlist" | uniq > "$nlist"T; then
3993 mv -f "$nlist"T "$nlist"
3998 # Make sure that we snagged all the symbols we need.
3999 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4000 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4001 cat <<EOF > conftest.$ac_ext
4007 # Now generate the symbol file.
4008 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4010 cat <<EOF >> conftest.$ac_ext
4011 #if defined (__STDC__) && __STDC__
4012 # define lt_ptr void *
4014 # define lt_ptr char *
4018 /* The mapping between symbol names and symbols. */
4023 lt_preloaded_symbols[] =
4026 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4027 cat <<\EOF >> conftest.$ac_ext
4035 # Now try linking the two files.
4036 mv conftest.$ac_objext conftstm.$ac_objext
4038 save_CFLAGS="$CFLAGS"
4039 LIBS="conftstm.$ac_objext"
4040 CFLAGS="$CFLAGS$no_builtin_flag"
4041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4042 (eval $ac_link) 2>&5
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); } && test -s conftest$ac_exeext; then
4049 CFLAGS="$save_CFLAGS"
4051 echo "cannot find nm_test_func in $nlist" >&5
4054 echo "cannot find nm_test_var in $nlist" >&5
4057 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4060 echo "$progname: failed program was:" >&5
4061 cat conftest.$ac_ext >&5
4063 rm -f conftest* conftst*
4065 # Do not use the global_symbol_pipe unless it works.
4066 if test "$pipe_works" = yes; then
4069 lt_cv_sys_global_symbol_pipe=
4075 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4076 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4077 global_symbol_to_cdecl=
4078 global_symbol_to_c_name_address=
4080 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4081 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4083 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4085 echo "$as_me:$LINENO: result: failed" >&5
4086 echo "${ECHO_T}failed" >&6
4088 echo "$as_me:$LINENO: result: ok" >&5
4089 echo "${ECHO_T}ok" >&6
4093 echo "$as_me:$LINENO: checking for egrep" >&5
4094 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4095 if test "${ac_cv_prog_egrep+set}" = set; then
4096 echo $ECHO_N "(cached) $ECHO_C" >&6
4098 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4099 then ac_cv_prog_egrep='grep -E'
4100 else ac_cv_prog_egrep='egrep'
4103 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4104 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4105 EGREP=$ac_cv_prog_egrep
4108 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4109 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4110 if test "${ac_cv_header_stdc+set}" = set; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4113 cat >conftest.$ac_ext <<_ACEOF
4116 cat confdefs.h >>conftest.$ac_ext
4117 cat >>conftest.$ac_ext <<_ACEOF
4118 /* end confdefs.h. */
4132 rm -f conftest.$ac_objext
4133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4134 (eval $ac_compile) 2>conftest.er1
4136 grep -v '^ *+' conftest.er1 >conftest.err
4138 cat conftest.err >&5
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); } &&
4141 { ac_try='test -z "$ac_c_werror_flag"
4142 || test ! -s conftest.err'
4143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); }; } &&
4148 { ac_try='test -s conftest.$ac_objext'
4149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); }; }; then
4154 ac_cv_header_stdc=yes
4156 echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4159 ac_cv_header_stdc=no
4161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4163 if test $ac_cv_header_stdc = yes; then
4164 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4165 cat >conftest.$ac_ext <<_ACEOF
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h. */
4174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4175 $EGREP "memchr" >/dev/null 2>&1; then
4178 ac_cv_header_stdc=no
4184 if test $ac_cv_header_stdc = yes; then
4185 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4186 cat >conftest.$ac_ext <<_ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h. */
4195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4196 $EGREP "free" >/dev/null 2>&1; then
4199 ac_cv_header_stdc=no
4205 if test $ac_cv_header_stdc = yes; then
4206 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4207 if test "$cross_compiling" = yes; then
4210 cat >conftest.$ac_ext <<_ACEOF
4213 cat confdefs.h >>conftest.$ac_ext
4214 cat >>conftest.$ac_ext <<_ACEOF
4215 /* end confdefs.h. */
4217 #if ((' ' & 0x0FF) == 0x020)
4218 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4219 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4221 # define ISLOWER(c) \
4222 (('a' <= (c) && (c) <= 'i') \
4223 || ('j' <= (c) && (c) <= 'r') \
4224 || ('s' <= (c) && (c) <= 'z'))
4225 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4228 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4233 for (i = 0; i < 256; i++)
4234 if (XOR (islower (i), ISLOWER (i))
4235 || toupper (i) != TOUPPER (i))
4240 rm -f conftest$ac_exeext
4241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4242 (eval $ac_link) 2>&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); }; }; then
4253 echo "$as_me: program exited with status $ac_status" >&5
4254 echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.$ac_ext >&5
4258 ac_cv_header_stdc=no
4260 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4264 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4265 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4266 if test $ac_cv_header_stdc = yes; then
4268 cat >>confdefs.h <<\_ACEOF
4269 #define STDC_HEADERS 1
4274 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4284 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4285 inttypes.h stdint.h unistd.h
4287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4288 echo "$as_me:$LINENO: checking for $ac_header" >&5
4289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4293 cat >conftest.$ac_ext <<_ACEOF
4296 cat confdefs.h >>conftest.$ac_ext
4297 cat >>conftest.$ac_ext <<_ACEOF
4298 /* end confdefs.h. */
4299 $ac_includes_default
4301 #include <$ac_header>
4303 rm -f conftest.$ac_objext
4304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4305 (eval $ac_compile) 2>conftest.er1
4307 grep -v '^ *+' conftest.er1 >conftest.err
4309 cat conftest.err >&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); } &&
4312 { ac_try='test -z "$ac_c_werror_flag"
4313 || test ! -s conftest.err'
4314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; } &&
4319 { ac_try='test -s conftest.$ac_objext'
4320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); }; }; then
4325 eval "$as_ac_Header=yes"
4327 echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4330 eval "$as_ac_Header=no"
4332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4337 cat >>confdefs.h <<_ACEOF
4338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4347 for ac_header in dlfcn.h
4349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4351 echo "$as_me:$LINENO: checking for $ac_header" >&5
4352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4354 echo $ECHO_N "(cached) $ECHO_C" >&6
4356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4359 # Is the header compilable?
4360 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4362 cat >conftest.$ac_ext <<_ACEOF
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h. */
4368 $ac_includes_default
4369 #include <$ac_header>
4371 rm -f conftest.$ac_objext
4372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4373 (eval $ac_compile) 2>conftest.er1
4375 grep -v '^ *+' conftest.er1 >conftest.err
4377 cat conftest.err >&5
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); } &&
4380 { ac_try='test -z "$ac_c_werror_flag"
4381 || test ! -s conftest.err'
4382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }; } &&
4387 { ac_try='test -s conftest.$ac_objext'
4388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); }; }; then
4393 ac_header_compiler=yes
4395 echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4398 ac_header_compiler=no
4400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4401 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4402 echo "${ECHO_T}$ac_header_compiler" >&6
4404 # Is the header present?
4405 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4407 cat >conftest.$ac_ext <<_ACEOF
4410 cat confdefs.h >>conftest.$ac_ext
4411 cat >>conftest.$ac_ext <<_ACEOF
4412 /* end confdefs.h. */
4413 #include <$ac_header>
4415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4416 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4418 grep -v '^ *+' conftest.er1 >conftest.err
4420 cat conftest.err >&5
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); } >/dev/null; then
4423 if test -s conftest.err; then
4424 ac_cpp_err=$ac_c_preproc_warn_flag
4425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4432 if test -z "$ac_cpp_err"; then
4433 ac_header_preproc=yes
4435 echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.$ac_ext >&5
4438 ac_header_preproc=no
4440 rm -f conftest.err conftest.$ac_ext
4441 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4442 echo "${ECHO_T}$ac_header_preproc" >&6
4444 # So? What about this header?
4445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4451 ac_header_preproc=yes
4454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4457 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4459 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4461 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4465 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4468 ## ------------------------------------------ ##
4469 ## Report this to the AC_PACKAGE_NAME lists. ##
4470 ## ------------------------------------------ ##
4473 sed "s/^/$as_me: WARNING: /" >&2
4476 echo "$as_me:$LINENO: checking for $ac_header" >&5
4477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4481 eval "$as_ac_Header=\$ac_header_preproc"
4483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4488 cat >>confdefs.h <<_ACEOF
4489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4501 # Only perform the check for file, if the check method requires it
4502 case $deplibs_check_method in
4504 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4505 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4506 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4507 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4508 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4515 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4518 ac_save_MAGIC_CMD="$MAGIC_CMD"
4519 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4520 ac_dummy="/usr/bin:$PATH"
4521 for ac_dir in $ac_dummy; do
4522 test -z "$ac_dir" && ac_dir=.
4523 if test -f $ac_dir/${ac_tool_prefix}file; then
4524 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4525 if test -n "$file_magic_test_file"; then
4526 case $deplibs_check_method in
4528 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4529 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4530 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4531 egrep "$file_magic_regex" > /dev/null; then
4536 *** Warning: the command libtool uses to detect shared libraries,
4537 *** $file_magic_cmd, produces output that libtool cannot recognize.
4538 *** The result is that libtool may fail to recognize shared libraries
4539 *** as such. This will affect the creation of libtool libraries that
4540 *** depend on shared libraries, but programs linked with such libtool
4541 *** libraries will work regardless of this problem. Nevertheless, you
4542 *** may want to report the problem to your system manager and/or to
4543 *** bug-libtool@gnu.org
4553 MAGIC_CMD="$ac_save_MAGIC_CMD"
4558 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4559 if test -n "$MAGIC_CMD"; then
4560 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4561 echo "${ECHO_T}$MAGIC_CMD" >&6
4563 echo "$as_me:$LINENO: result: no" >&5
4564 echo "${ECHO_T}no" >&6
4567 if test -z "$lt_cv_path_MAGIC_CMD"; then
4568 if test -n "$ac_tool_prefix"; then
4569 echo "$as_me:$LINENO: checking for file" >&5
4570 echo $ECHO_N "checking for file... $ECHO_C" >&6
4571 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4572 echo $ECHO_N "(cached) $ECHO_C" >&6
4576 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4579 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4582 ac_save_MAGIC_CMD="$MAGIC_CMD"
4583 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4584 ac_dummy="/usr/bin:$PATH"
4585 for ac_dir in $ac_dummy; do
4586 test -z "$ac_dir" && ac_dir=.
4587 if test -f $ac_dir/file; then
4588 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4589 if test -n "$file_magic_test_file"; then
4590 case $deplibs_check_method in
4592 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4593 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4594 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4595 egrep "$file_magic_regex" > /dev/null; then
4600 *** Warning: the command libtool uses to detect shared libraries,
4601 *** $file_magic_cmd, produces output that libtool cannot recognize.
4602 *** The result is that libtool may fail to recognize shared libraries
4603 *** as such. This will affect the creation of libtool libraries that
4604 *** depend on shared libraries, but programs linked with such libtool
4605 *** libraries will work regardless of this problem. Nevertheless, you
4606 *** may want to report the problem to your system manager and/or to
4607 *** bug-libtool@gnu.org
4617 MAGIC_CMD="$ac_save_MAGIC_CMD"
4622 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4623 if test -n "$MAGIC_CMD"; then
4624 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4625 echo "${ECHO_T}$MAGIC_CMD" >&6
4627 echo "$as_me:$LINENO: result: no" >&5
4628 echo "${ECHO_T}no" >&6
4640 if test -n "$ac_tool_prefix"; then
4641 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4642 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4643 echo "$as_me:$LINENO: checking for $ac_word" >&5
4644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4645 if test "${ac_cv_prog_RANLIB+set}" = set; then
4646 echo $ECHO_N "(cached) $ECHO_C" >&6
4648 if test -n "$RANLIB"; then
4649 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 test -z "$as_dir" && as_dir=.
4656 for ac_exec_ext in '' $ac_executable_extensions; do
4657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4658 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 RANLIB=$ac_cv_prog_RANLIB
4668 if test -n "$RANLIB"; then
4669 echo "$as_me:$LINENO: result: $RANLIB" >&5
4670 echo "${ECHO_T}$RANLIB" >&6
4672 echo "$as_me:$LINENO: result: no" >&5
4673 echo "${ECHO_T}no" >&6
4677 if test -z "$ac_cv_prog_RANLIB"; then
4678 ac_ct_RANLIB=$RANLIB
4679 # Extract the first word of "ranlib", so it can be a program name with args.
4680 set dummy ranlib; ac_word=$2
4681 echo "$as_me:$LINENO: checking for $ac_word" >&5
4682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4683 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
4686 if test -n "$ac_ct_RANLIB"; then
4687 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 test -z "$as_dir" && as_dir=.
4694 for ac_exec_ext in '' $ac_executable_extensions; do
4695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4696 ac_cv_prog_ac_ct_RANLIB="ranlib"
4697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4703 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4706 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4707 if test -n "$ac_ct_RANLIB"; then
4708 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4709 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4711 echo "$as_me:$LINENO: result: no" >&5
4712 echo "${ECHO_T}no" >&6
4715 RANLIB=$ac_ct_RANLIB
4717 RANLIB="$ac_cv_prog_RANLIB"
4720 if test -n "$ac_tool_prefix"; then
4721 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4722 set dummy ${ac_tool_prefix}strip; ac_word=$2
4723 echo "$as_me:$LINENO: checking for $ac_word" >&5
4724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4725 if test "${ac_cv_prog_STRIP+set}" = set; then
4726 echo $ECHO_N "(cached) $ECHO_C" >&6
4728 if test -n "$STRIP"; then
4729 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 test -z "$as_dir" && as_dir=.
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4738 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4747 STRIP=$ac_cv_prog_STRIP
4748 if test -n "$STRIP"; then
4749 echo "$as_me:$LINENO: result: $STRIP" >&5
4750 echo "${ECHO_T}$STRIP" >&6
4752 echo "$as_me:$LINENO: result: no" >&5
4753 echo "${ECHO_T}no" >&6
4757 if test -z "$ac_cv_prog_STRIP"; then
4759 # Extract the first word of "strip", so it can be a program name with args.
4760 set dummy strip; ac_word=$2
4761 echo "$as_me:$LINENO: checking for $ac_word" >&5
4762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4763 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4766 if test -n "$ac_ct_STRIP"; then
4767 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 test -z "$as_dir" && as_dir=.
4774 for ac_exec_ext in '' $ac_executable_extensions; do
4775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4776 ac_cv_prog_ac_ct_STRIP="strip"
4777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4783 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4786 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4787 if test -n "$ac_ct_STRIP"; then
4788 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4789 echo "${ECHO_T}$ac_ct_STRIP" >&6
4791 echo "$as_me:$LINENO: result: no" >&5
4792 echo "${ECHO_T}no" >&6
4797 STRIP="$ac_cv_prog_STRIP"
4804 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4805 if test "${enable_libtool_lock+set}" = set; then
4806 enableval="$enable_libtool_lock"
4809 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4811 # Some flags need to be propagated to the compiler or linker for good
4815 # Find out which ABI we are using.
4816 echo '#line 4816 "configure"' > conftest.$ac_ext
4817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4818 (eval $ac_compile) 2>&5
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); }; then
4822 case `/usr/bin/file conftest.$ac_objext` in
4838 # Test if the compiler is 64bit
4839 echo 'int i;' > conftest.$ac_ext
4840 lt_cv_cc_64bit_output=no
4841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4842 (eval $ac_compile) 2>&5
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); }; then
4846 case `/usr/bin/file conftest.$ac_objext` in
4848 lt_cv_cc_64bit_output=yes
4856 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4857 SAVE_CFLAGS="$CFLAGS"
4858 CFLAGS="$CFLAGS -belf"
4859 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4860 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4861 if test "${lt_cv_cc_needs_belf+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4867 ac_cpp='$CPP $CPPFLAGS'
4868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4872 cat >conftest.$ac_ext <<_ACEOF
4875 cat confdefs.h >>conftest.$ac_ext
4876 cat >>conftest.$ac_ext <<_ACEOF
4877 /* end confdefs.h. */
4887 rm -f conftest.$ac_objext conftest$ac_exeext
4888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4889 (eval $ac_link) 2>conftest.er1
4891 grep -v '^ *+' conftest.er1 >conftest.err
4893 cat conftest.err >&5
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); } &&
4896 { ac_try='test -z "$ac_c_werror_flag"
4897 || test ! -s conftest.err'
4898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }; } &&
4903 { ac_try='test -s conftest$ac_exeext'
4904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); }; }; then
4909 lt_cv_cc_needs_belf=yes
4911 echo "$as_me: failed program was:" >&5
4912 sed 's/^/| /' conftest.$ac_ext >&5
4914 lt_cv_cc_needs_belf=no
4916 rm -f conftest.err conftest.$ac_objext \
4917 conftest$ac_exeext conftest.$ac_ext
4919 ac_cpp='$CPP $CPPFLAGS'
4920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4925 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4926 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4927 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4928 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4929 CFLAGS="$SAVE_CFLAGS"
4936 # Sed substitution that helps us do robust quoting. It backslashifies
4937 # metacharacters that are still active within double-quoted strings.
4938 Xsed='sed -e s/^X//'
4939 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4941 # Same as above, but do not quote variable references.
4942 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4944 # Sed substitution to delay expansion of an escaped shell variable in a
4945 # double_quote_subst'ed string.
4946 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4952 default_ofile=libtool
4953 can_build_shared=yes
4955 # All known linkers require a `.a' archive for static linking (except M$VC,
4956 # which needs '.lib').
4958 ltmain="$ac_aux_dir/ltmain.sh"
4959 ofile="$default_ofile"
4960 with_gnu_ld="$lt_cv_prog_gnu_ld"
4961 need_locks="$enable_libtool_lock"
4964 old_CFLAGS="$CFLAGS"
4966 # Set sane defaults for various variables
4967 test -z "$AR" && AR=ar
4968 test -z "$AR_FLAGS" && AR_FLAGS=cru
4969 test -z "$AS" && AS=as
4970 test -z "$CC" && CC=cc
4971 test -z "$DLLTOOL" && DLLTOOL=dlltool
4972 test -z "$LD" && LD=ld
4973 test -z "$LN_S" && LN_S="ln -s"
4974 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4975 test -z "$NM" && NM=nm
4976 test -z "$OBJDUMP" && OBJDUMP=objdump
4977 test -z "$RANLIB" && RANLIB=:
4978 test -z "$STRIP" && STRIP=:
4979 test -z "$ac_objext" && ac_objext=o
4981 if test x"$host" != x"$build"; then
4982 ac_tool_prefix=${host_alias}-
4987 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4990 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4995 # AIX sometimes has problems with the GCC collect2 program. For some
4996 # reason, if we set the COLLECT_NAMES environment variable, the problems
4997 # vanish in a puff of smoke.
4998 if test "X${COLLECT_NAMES+set}" != Xset; then
5000 export COLLECT_NAMES
5005 # Determine commands to create old-style static archives.
5006 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5007 old_postinstall_cmds='chmod 644 $oldlib'
5008 old_postuninstall_cmds=
5010 if test -n "$RANLIB"; then
5013 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5016 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5019 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5022 # Allow CC to be a program name with arguments.
5026 echo "$as_me:$LINENO: checking for objdir" >&5
5027 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5028 rm -f .libs 2>/dev/null
5029 mkdir .libs 2>/dev/null
5030 if test -d .libs; then
5033 # MS-DOS does not allow filenames that begin with a dot.
5036 rmdir .libs 2>/dev/null
5037 echo "$as_me:$LINENO: result: $objdir" >&5
5038 echo "${ECHO_T}$objdir" >&6
5042 # Check whether --with-pic or --without-pic was given.
5043 if test "${with_pic+set}" = set; then
5049 test -z "$pic_mode" && pic_mode=default
5051 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5052 # in isolation, and that seeing it set (from the cache) indicates that
5053 # the associated values are set (in the cache) correctly too.
5054 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5055 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5056 if test "${lt_cv_prog_cc_pic+set}" = set; then
5057 echo $ECHO_N "(cached) $ECHO_C" >&6
5060 lt_cv_prog_cc_shlib=
5062 lt_cv_prog_cc_static=
5063 lt_cv_prog_cc_no_builtin=
5064 lt_cv_prog_cc_can_build_shared=$can_build_shared
5066 if test "$GCC" = yes; then
5067 lt_cv_prog_cc_wl='-Wl,'
5068 lt_cv_prog_cc_static='-static'
5072 # Below there is a dirty hack to force normal static linking with -ldl
5073 # The problem is because libdl dynamically linked with both libc and
5074 # libC (AIX C++ library), which obviously doesn't included in libraries
5075 # list by gcc. This cause undefined symbols with -static flags.
5076 # This hack allows C programs to be linked with "-static -ldl", but
5077 # not sure about C++ programs.
5078 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5081 # FIXME: we need at least 68020 code to build shared libraries, but
5082 # adding the `-m68020' flag to GCC prevents building anything better,
5084 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5086 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5087 # PIC is the default for these OSes.
5089 darwin* | rhapsody*)
5090 # PIC is the default on this platform
5091 # Common symbols not allowed in MH_DYLIB files
5092 lt_cv_prog_cc_pic='-fno-common'
5094 cygwin* | mingw* | pw32* | os2*)
5095 # This hack is so that the source file can tell whether it is being
5096 # built for inclusion in a dll (and should export symbols for example).
5097 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5100 if test -d /usr/nec; then
5101 lt_cv_prog_cc_pic=-Kconform_pic
5105 lt_cv_prog_cc_pic='-fPIC'
5109 # PORTME Check for PIC flags for the system compiler.
5111 aix3* | aix4* | aix5*)
5112 lt_cv_prog_cc_wl='-Wl,'
5113 # All AIX code is PIC.
5114 if test "$host_cpu" = ia64; then
5115 # AIX 5 now supports IA64 processor
5116 lt_cv_prog_cc_static='-Bstatic'
5118 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5122 hpux9* | hpux10* | hpux11*)
5123 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5124 lt_cv_prog_cc_wl='-Wl,'
5125 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5126 lt_cv_prog_cc_pic='+Z'
5129 irix5* | irix6* | nonstopux*)
5130 lt_cv_prog_cc_wl='-Wl,'
5131 lt_cv_prog_cc_static='-non_shared'
5132 # PIC (with -KPIC) is the default.
5135 cygwin* | mingw* | pw32* | os2*)
5136 # This hack is so that the source file can tell whether it is being
5137 # built for inclusion in a dll (and should export symbols for example).
5138 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5142 lt_cv_prog_cc_pic='-KPIC'
5143 lt_cv_prog_cc_static='-Bstatic'
5146 osf3* | osf4* | osf5*)
5147 # All OSF/1 code is PIC.
5148 lt_cv_prog_cc_wl='-Wl,'
5149 lt_cv_prog_cc_static='-non_shared'
5153 lt_cv_prog_cc_pic='-Kpic'
5154 lt_cv_prog_cc_static='-dn'
5155 lt_cv_prog_cc_shlib='-belf'
5159 lt_cv_prog_cc_pic='-KPIC'
5160 lt_cv_prog_cc_static='-Bstatic'
5161 lt_cv_prog_cc_wl='-Wl,'
5165 lt_cv_prog_cc_pic='-PIC'
5166 lt_cv_prog_cc_static='-Bstatic'
5167 lt_cv_prog_cc_wl='-Qoption ld '
5170 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5171 lt_cv_prog_cc_pic='-KPIC'
5172 lt_cv_prog_cc_static='-Bstatic'
5173 lt_cv_prog_cc_wl='-Wl,'
5177 lt_cv_prog_cc_pic='-pic'
5178 lt_cv_prog_cc_static='-Bstatic'
5182 if test -d /usr/nec ;then
5183 lt_cv_prog_cc_pic='-Kconform_pic'
5184 lt_cv_prog_cc_static='-Bstatic'
5189 lt_cv_prog_cc_can_build_shared=no
5196 if test -z "$lt_cv_prog_cc_pic"; then
5197 echo "$as_me:$LINENO: result: none" >&5
5198 echo "${ECHO_T}none" >&6
5200 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5201 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5203 # Check to make sure the pic_flag actually works.
5204 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5205 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5206 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5207 echo $ECHO_N "(cached) $ECHO_C" >&6
5209 save_CFLAGS="$CFLAGS"
5210 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5211 cat >conftest.$ac_ext <<_ACEOF
5214 cat confdefs.h >>conftest.$ac_ext
5215 cat >>conftest.$ac_ext <<_ACEOF
5216 /* end confdefs.h. */
5226 rm -f conftest.$ac_objext
5227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5228 (eval $ac_compile) 2>conftest.er1
5230 grep -v '^ *+' conftest.er1 >conftest.err
5232 cat conftest.err >&5
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); } &&
5235 { ac_try='test -z "$ac_c_werror_flag"
5236 || test ! -s conftest.err'
5237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); }; } &&
5242 { ac_try='test -s conftest.$ac_objext'
5243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; }; then
5249 hpux9* | hpux10* | hpux11*)
5250 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5251 # they create non-PIC objects. So, if there were any warnings, we
5252 # assume that PIC is not supported.
5253 if test -s conftest.err; then
5254 lt_cv_prog_cc_pic_works=no
5256 lt_cv_prog_cc_pic_works=yes
5260 lt_cv_prog_cc_pic_works=yes
5265 echo "$as_me: failed program was:" >&5
5266 sed 's/^/| /' conftest.$ac_ext >&5
5268 lt_cv_prog_cc_pic_works=no
5271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5272 CFLAGS="$save_CFLAGS"
5277 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5279 lt_cv_prog_cc_can_build_shared=no
5281 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5284 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5285 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5288 # Check for any special shared library compilation flags.
5289 if test -n "$lt_cv_prog_cc_shlib"; then
5290 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5291 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5292 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5294 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5295 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5296 lt_cv_prog_cc_can_build_shared=no
5300 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5301 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5302 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5303 echo $ECHO_N "(cached) $ECHO_C" >&6
5305 lt_cv_prog_cc_static_works=no
5306 save_LDFLAGS="$LDFLAGS"
5307 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5308 cat >conftest.$ac_ext <<_ACEOF
5311 cat confdefs.h >>conftest.$ac_ext
5312 cat >>conftest.$ac_ext <<_ACEOF
5313 /* end confdefs.h. */
5323 rm -f conftest.$ac_objext conftest$ac_exeext
5324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5325 (eval $ac_link) 2>conftest.er1
5327 grep -v '^ *+' conftest.er1 >conftest.err
5329 cat conftest.err >&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); } &&
5332 { ac_try='test -z "$ac_c_werror_flag"
5333 || test ! -s conftest.err'
5334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); }; } &&
5339 { ac_try='test -s conftest$ac_exeext'
5340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); }; }; then
5345 lt_cv_prog_cc_static_works=yes
5347 echo "$as_me: failed program was:" >&5
5348 sed 's/^/| /' conftest.$ac_ext >&5
5351 rm -f conftest.err conftest.$ac_objext \
5352 conftest$ac_exeext conftest.$ac_ext
5353 LDFLAGS="$save_LDFLAGS"
5358 # Belt *and* braces to stop my trousers falling down:
5359 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5360 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5361 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5363 pic_flag="$lt_cv_prog_cc_pic"
5364 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5365 wl="$lt_cv_prog_cc_wl"
5366 link_static_flag="$lt_cv_prog_cc_static"
5367 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5368 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5371 # Check to see if options -o and -c are simultaneously supported by compiler
5372 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5373 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5374 if test "${lt_cv_compiler_c_o+set}" = set; then
5375 echo $ECHO_N "(cached) $ECHO_C" >&6
5378 $rm -r conftest 2>/dev/null
5381 echo "int some_variable = 0;" > conftest.$ac_ext
5383 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5384 # that will create temporary files in the current directory regardless of
5385 # the output directory. Thus, making CWD read-only will cause this test
5386 # to fail, enabling locking or at least warning the user not to do parallel
5389 save_CFLAGS="$CFLAGS"
5390 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5392 if { (eval echo configure:5392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5393 # The compiler can only warn and ignore the option if not recognized
5394 # So say no if there are warnings
5395 if test -s out/conftest.err; then
5396 lt_cv_compiler_c_o=no
5398 lt_cv_compiler_c_o=yes
5401 # Append any errors to the config.log.
5402 cat out/conftest.err 1>&5
5403 lt_cv_compiler_c_o=no
5405 CFLAGS="$save_CFLAGS"
5411 $rm -r conftest 2>/dev/null
5415 compiler_c_o=$lt_cv_compiler_c_o
5416 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5417 echo "${ECHO_T}$compiler_c_o" >&6
5419 if test x"$compiler_c_o" = x"yes"; then
5420 # Check to see if we can write to a .lo
5421 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5422 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5423 if test "${lt_cv_compiler_o_lo+set}" = set; then
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5427 lt_cv_compiler_o_lo=no
5428 save_CFLAGS="$CFLAGS"
5429 CFLAGS="$CFLAGS -c -o conftest.lo"
5430 save_objext="$ac_objext"
5432 cat >conftest.$ac_ext <<_ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h. */
5442 int some_variable = 0;
5447 rm -f conftest.$ac_objext
5448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5449 (eval $ac_compile) 2>conftest.er1
5451 grep -v '^ *+' conftest.er1 >conftest.err
5453 cat conftest.err >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); } &&
5456 { ac_try='test -z "$ac_c_werror_flag"
5457 || test ! -s conftest.err'
5458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); }; } &&
5463 { ac_try='test -s conftest.$ac_objext'
5464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); }; }; then
5469 # The compiler can only warn and ignore the option if not recognized
5470 # So say no if there are warnings
5471 if test -s conftest.err; then
5472 lt_cv_compiler_o_lo=no
5474 lt_cv_compiler_o_lo=yes
5478 echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5483 ac_objext="$save_objext"
5484 CFLAGS="$save_CFLAGS"
5488 compiler_o_lo=$lt_cv_compiler_o_lo
5489 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5490 echo "${ECHO_T}$compiler_o_lo" >&6
5495 # Check to see if we can do hard links to lock some files if needed
5496 hard_links="nottested"
5497 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5498 # do not overwrite the value of need_locks provided by the user
5499 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5500 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5503 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5505 ln conftest.a conftest.b 2>&5 || hard_links=no
5506 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5507 echo "$as_me:$LINENO: result: $hard_links" >&5
5508 echo "${ECHO_T}$hard_links" >&6
5509 if test "$hard_links" = no; then
5510 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5511 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5518 if test "$GCC" = yes; then
5519 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5520 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5521 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5522 echo "int some_variable = 0;" > conftest.$ac_ext
5523 save_CFLAGS="$CFLAGS"
5524 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5525 compiler_rtti_exceptions=no
5526 cat >conftest.$ac_ext <<_ACEOF
5529 cat confdefs.h >>conftest.$ac_ext
5530 cat >>conftest.$ac_ext <<_ACEOF
5531 /* end confdefs.h. */
5536 int some_variable = 0;
5541 rm -f conftest.$ac_objext
5542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5543 (eval $ac_compile) 2>conftest.er1
5545 grep -v '^ *+' conftest.er1 >conftest.err
5547 cat conftest.err >&5
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); } &&
5550 { ac_try='test -z "$ac_c_werror_flag"
5551 || test ! -s conftest.err'
5552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); }; } &&
5557 { ac_try='test -s conftest.$ac_objext'
5558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562 (exit $ac_status); }; }; then
5563 # The compiler can only warn and ignore the option if not recognized
5564 # So say no if there are warnings
5565 if test -s conftest.err; then
5566 compiler_rtti_exceptions=no
5568 compiler_rtti_exceptions=yes
5572 echo "$as_me: failed program was:" >&5
5573 sed 's/^/| /' conftest.$ac_ext >&5
5576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5577 CFLAGS="$save_CFLAGS"
5578 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5579 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5581 if test "$compiler_rtti_exceptions" = "yes"; then
5582 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5584 no_builtin_flag=' -fno-builtin'
5588 # See if the linker supports building shared libraries.
5589 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5590 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5592 allow_undefined_flag=
5594 need_lib_prefix=unknown
5595 need_version=unknown
5596 # when you set need_version to no, make sure it does not cause -set_version
5597 # flags to be left without arguments
5599 archive_expsym_cmds=
5600 old_archive_from_new_cmds=
5601 old_archive_from_expsyms_cmds=
5602 export_dynamic_flag_spec=
5603 whole_archive_flag_spec=
5604 thread_safe_flag_spec=
5605 hardcode_into_libs=no
5606 hardcode_libdir_flag_spec=
5607 hardcode_libdir_separator=
5610 hardcode_shlibpath_var=unsupported
5612 link_all_deplibs=unknown
5613 always_export_symbols=no
5614 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5615 # include_expsyms should be a list of space-separated symbols to be *always*
5616 # included in the symbol list
5618 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5619 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5620 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5621 # as well as any symbol that contains `d'.
5622 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5623 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5624 # platforms (ab)use it in PIC code, but their linkers get confused if
5625 # the symbol is explicitly referenced. Since portable code cannot
5626 # rely on this symbol name, it's probably fine to never include it in
5627 # preloaded symbol tables.
5628 extract_expsyms_cmds=
5631 cygwin* | mingw* | pw32*)
5632 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5633 # When not using gcc, we currently assume that we are using
5634 # Microsoft Visual C++.
5635 if test "$GCC" != yes; then
5645 if test "$with_gnu_ld" = yes; then
5646 # If archive_cmds runs LD, not CC, wlarc should be empty
5649 # See if GNU ld supports shared libraries.
5651 aix3* | aix4* | aix5*)
5652 # On AIX, the GNU linker is very broken
5653 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5657 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5658 *** to be unable to reliably create shared libraries on AIX.
5659 *** Therefore, libtool is disabling shared libraries support. If you
5660 *** really care for shared libraries, you may want to modify your PATH
5661 *** so that a non-GNU linker is found, and then restart.
5667 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)'
5668 hardcode_libdir_flag_spec='-L$libdir'
5669 hardcode_minus_L=yes
5671 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5672 # that the semantics of dynamic libraries on AmigaOS, at least up
5673 # to version 4, is to share data among multiple programs linked
5674 # with the same dynamic library. Since this doesn't match the
5675 # behavior of shared libraries on other platforms, we can use
5681 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5682 allow_undefined_flag=unsupported
5683 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5684 # support --undefined. This deserves some investigation. FIXME
5685 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5691 cygwin* | mingw* | pw32*)
5692 # hardcode_libdir_flag_spec is actually meaningless, as there is
5693 # no search path for DLLs.
5694 hardcode_libdir_flag_spec='-L$libdir'
5695 allow_undefined_flag=unsupported
5696 always_export_symbols=yes
5698 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5699 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5700 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5701 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5702 else $CC -o impgen impgen.c ; fi)~
5703 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5705 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5707 # cygwin and mingw dlls have different entry points and sets of symbols
5709 # FIXME: what about values for MSVC?
5710 dll_entry=__cygwin_dll_entry@12
5711 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5715 dll_entry=_DllMainCRTStartup@12
5716 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5720 # mingw and cygwin differ, and it's simplest to just exclude the union
5721 # of the two symbol sets.
5722 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5724 # recent cygwin and mingw systems supply a stub DllMain which the user
5725 # can override, but on older systems we have to supply one (in ltdll.c)
5726 if test "x$lt_cv_need_dllmain" = "xyes"; then
5727 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5728 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~
5729 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5735 # Extract the symbol export list from an `--export-all' def file,
5736 # then regenerate the def file from the symbol export list, so that
5737 # the compiled dll only exports the symbol export list.
5738 # Be careful not to strip the DATA tag left be newer dlltools.
5739 export_symbols_cmds="$ltdll_cmds"'
5740 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5741 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5743 # If the export-symbols file already is a .def file (1st line
5744 # is EXPORTS), use it as is.
5745 # If DATA tags from a recent dlltool are present, honour them!
5746 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5747 cp $export_symbols $output_objdir/$soname-def;
5749 echo EXPORTS > $output_objdir/$soname-def;
5751 cat $export_symbols | while read symbol; do
5754 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5755 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5756 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5758 _lt_hint=`expr 1 + \$_lt_hint`;
5762 $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~
5763 $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~
5764 $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~
5765 $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~
5766 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5770 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5771 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5774 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5775 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5780 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5784 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5785 *** create shared libraries on Solaris systems. Therefore, libtool
5786 *** is disabling shared libraries support. We urge you to upgrade GNU
5787 *** binutils to release 2.9.1 or newer. Another option is to modify
5788 *** your PATH or compiler configuration so that the native linker is
5789 *** used, and then restart.
5792 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5793 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5794 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5801 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5804 hardcode_shlibpath_var=no
5808 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5809 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5810 supports_anon_versioning=no
5811 case `$LD -v 2>/dev/null` in
5812 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
5813 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5814 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5815 *\ 2.11.*) ;; # other 2.11 versions
5816 *) supports_anon_versioning=yes ;;
5818 if test $supports_anon_versioning = yes; then
5819 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
5820 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5821 $echo "local: *; };" >> $output_objdir/$libname.ver~
5822 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5824 $archive_expsym_cmds="$archive_cmds"
5832 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5833 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5834 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5841 if test "$ld_shlibs" = yes; then
5842 runpath_var=LD_RUN_PATH
5843 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5844 export_dynamic_flag_spec='${wl}--export-dynamic'
5846 cygwin* | mingw* | pw32*)
5847 # dlltool doesn't understand --whole-archive et. al.
5848 whole_archive_flag_spec=
5851 # ancient GNU ld didn't support --whole-archive et. al.
5852 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5853 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5855 whole_archive_flag_spec=
5861 # PORTME fill in a description of your system's linker (not GNU ld)
5864 allow_undefined_flag=unsupported
5865 always_export_symbols=yes
5866 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'
5867 # Note: this linker hardcodes the directories in LIBPATH if there
5868 # are no directories specified by -L.
5869 hardcode_minus_L=yes
5870 if test "$GCC" = yes && test -z "$link_static_flag"; then
5871 # Neither direct hardcoding nor static linking is supported with a
5873 hardcode_direct=unsupported
5878 if test "$host_cpu" = ia64; then
5879 # On IA64, the linker does run time linking by default, so we don't
5880 # have to do anything special.
5881 aix_use_runtimelinking=no
5882 exp_sym_flag='-Bexport'
5885 aix_use_runtimelinking=no
5887 # Test if we are trying to use run time linking or normal
5888 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5889 # need to do runtime linking.
5890 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5891 for ld_flag in $LDFLAGS; do
5894 aix_use_runtimelinking=yes
5901 exp_sym_flag='-bexport'
5902 no_entry_flag='-bnoentry'
5905 # When large executables or shared objects are built, AIX ld can
5906 # have problems creating the table of contents. If linking a library
5907 # or program results in "error TOC overflow" add -mminimal-toc to
5908 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5909 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5913 hardcode_libdir_separator=':'
5914 if test "$GCC" = yes; then
5915 case $host_os in aix4.[012]|aix4.[012].*)
5916 collect2name=`${CC} -print-prog-name=collect2`
5917 if test -f "$collect2name" && \
5918 strings "$collect2name" | grep resolve_lib_name >/dev/null
5920 # We have reworked collect2
5923 # We have old collect2
5924 hardcode_direct=unsupported
5925 # It fails to find uninstalled libraries when the uninstalled
5926 # path is not listed in the libpath. Setting hardcode_minus_L
5927 # to unsupported forces relinking
5928 hardcode_minus_L=yes
5929 hardcode_libdir_flag_spec='-L$libdir'
5930 hardcode_libdir_separator=
5934 shared_flag='-shared'
5937 if test "$host_cpu" = ia64; then
5938 shared_flag='${wl}-G'
5940 if test "$aix_use_runtimelinking" = yes; then
5941 shared_flag='${wl}-G'
5943 shared_flag='${wl}-bM:SRE'
5948 # It seems that -bexpall can do strange things, so it is better to
5949 # generate a list of symbols to export.
5950 always_export_symbols=yes
5951 if test "$aix_use_runtimelinking" = yes; then
5952 # Warning - without using the other runtime loading flags (-brtl),
5953 # -berok will link without error, but may produce a broken library.
5954 allow_undefined_flag='-berok'
5955 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5956 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"
5958 if test "$host_cpu" = ia64; then
5959 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5960 allow_undefined_flag="-z nodefs"
5961 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"
5963 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5964 # Warning - without using the other run time loading flags,
5965 # -berok will link without error, but may produce a broken library.
5966 allow_undefined_flag='${wl}-berok'
5967 # This is a bit strange, but is similar to how AIX traditionally builds
5968 # it's shared libraries.
5969 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'
5975 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)'
5976 hardcode_libdir_flag_spec='-L$libdir'
5977 hardcode_minus_L=yes
5978 # see comment about different semantics on the GNU ld section
5982 cygwin* | mingw* | pw32*)
5983 # When not using gcc, we currently assume that we are using
5984 # Microsoft Visual C++.
5985 # hardcode_libdir_flag_spec is actually meaningless, as there is
5986 # no search path for DLLs.
5987 hardcode_libdir_flag_spec=' '
5988 allow_undefined_flag=unsupported
5989 # Tell ltmain to make .lib files, not .a files.
5991 # FIXME: Setting linknames here is a bad hack.
5992 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5993 # The linker will automatically build a .lib file if we build a DLL.
5994 old_archive_from_new_cmds='true'
5995 # FIXME: Should let the user specify the lib program.
5996 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5997 fix_srcfile_path='`cygpath -w "$srcfile"`'
6000 darwin* | rhapsody*)
6002 rhapsody* | darwin1.[012])
6003 allow_undefined_flag='-undefined suppress'
6006 allow_undefined_flag='-flat_namespace -undefined suppress'
6009 # FIXME: Relying on posixy $() will cause problems for
6010 # cross-compilation, but unfortunately the echo tests do not
6011 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6012 # `"' quotes if we put them in here... so don't!
6013 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)'
6014 # We need to add '_' to the symbols in $export_symbols first
6015 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6017 hardcode_shlibpath_var=no
6018 whole_archive_flag_spec='-all_load $convenience'
6025 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6026 # support. Future versions do this automatically, but an explicit c++rt0.o
6027 # does not break anything, and helps significantly (at the cost of a little
6030 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6031 hardcode_libdir_flag_spec='-R$libdir'
6033 hardcode_shlibpath_var=no
6036 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6038 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6040 hardcode_minus_L=yes
6041 hardcode_shlibpath_var=no
6044 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6046 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6047 hardcode_libdir_flag_spec='-R$libdir'
6049 hardcode_shlibpath_var=no
6052 hpux9* | hpux10* | hpux11*)
6054 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' ;;
6055 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6057 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6058 hardcode_libdir_separator=:
6060 hardcode_minus_L=yes # Not in the search PATH, but as the default
6061 # location of the library.
6062 export_dynamic_flag_spec='${wl}-E'
6065 irix5* | irix6* | nonstopux*)
6066 if test "$GCC" = yes; then
6067 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'
6068 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6070 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'
6071 hardcode_libdir_flag_spec='-rpath $libdir'
6073 hardcode_libdir_separator=:
6074 link_all_deplibs=yes
6078 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6079 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6081 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6083 hardcode_libdir_flag_spec='-R$libdir'
6085 hardcode_shlibpath_var=no
6089 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6091 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6092 hardcode_libdir_separator=:
6093 hardcode_shlibpath_var=no
6098 hardcode_shlibpath_var=no
6099 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6100 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6101 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6102 export_dynamic_flag_spec='${wl}-E'
6105 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6106 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6107 hardcode_libdir_flag_spec='-R$libdir'
6110 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6111 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6118 hardcode_libdir_flag_spec='-L$libdir'
6119 hardcode_minus_L=yes
6120 allow_undefined_flag=unsupported
6121 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'
6122 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6126 if test "$GCC" = yes; then
6127 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6128 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'
6130 allow_undefined_flag=' -expect_unresolved \*'
6131 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'
6133 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6134 hardcode_libdir_separator=:
6137 osf4* | osf5*) # as osf3* with the addition of -msym flag
6138 if test "$GCC" = yes; then
6139 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6140 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'
6141 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6143 allow_undefined_flag=' -expect_unresolved \*'
6144 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'
6145 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6146 $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'
6148 #Both c and cxx compiler support -rpath directly
6149 hardcode_libdir_flag_spec='-rpath $libdir'
6151 hardcode_libdir_separator=:
6155 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6156 hardcode_shlibpath_var=no
6157 runpath_var=LD_RUN_PATH
6158 hardcode_runpath_var=yes
6159 export_dynamic_flag_spec='${wl}-Bexport'
6163 # gcc --version < 3.0 without binutils cannot create self contained
6164 # shared libraries reliably, requiring libgcc.a to resolve some of
6165 # the object symbols generated in some cases. Libraries that use
6166 # assert need libgcc.a to resolve __eprintf, for example. Linking
6167 # a copy of libgcc.a into every shared library to guarantee resolving
6168 # such symbols causes other problems: According to Tim Van Holder
6169 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6170 # (to the application) exception stack for one thing.
6171 no_undefined_flag=' -z defs'
6172 if test "$GCC" = yes; then
6173 case `$CC --version 2>/dev/null` in
6177 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6178 *** create self contained shared libraries on Solaris systems, without
6179 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6180 *** -no-undefined support, which will at least allow you to build shared
6181 *** libraries. However, you may find that when you link such libraries
6182 *** into an application without using GCC, you have to manually add
6183 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6184 *** upgrade to a newer version of GCC. Another option is to rebuild your
6185 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6192 # $CC -shared without GNU ld will not create a library from C++
6193 # object files and a static libstdc++, better avoid it by now
6194 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6195 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6196 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6197 hardcode_libdir_flag_spec='-R$libdir'
6198 hardcode_shlibpath_var=no
6200 solaris2.[0-5] | solaris2.[0-5].*) ;;
6201 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6202 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6204 link_all_deplibs=yes
6208 if test "x$host_vendor" = xsequent; then
6209 # Use $CC to link under sequent, because it throws in some extra .o
6210 # files that make .init and .fini sections work.
6211 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6213 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6215 hardcode_libdir_flag_spec='-L$libdir'
6217 hardcode_minus_L=yes
6218 hardcode_shlibpath_var=no
6222 case $host_vendor in
6224 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6225 hardcode_direct=yes # is this really true???
6228 ## LD is ld it makes a PLAMLIB
6229 ## CC just makes a GrossModule.
6230 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6231 reload_cmds='$CC -r -o $output$reload_objs'
6235 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6236 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6239 runpath_var='LD_RUN_PATH'
6240 hardcode_shlibpath_var=no
6244 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6245 hardcode_shlibpath_var=no
6246 export_dynamic_flag_spec='-Bexport'
6250 no_undefined_flag=' -z text'
6251 # $CC -shared without GNU ld will not create a library from C++
6252 # object files and a static libstdc++, better avoid it by now
6253 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6254 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6255 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6256 hardcode_libdir_flag_spec=
6257 hardcode_shlibpath_var=no
6258 runpath_var='LD_RUN_PATH'
6262 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6263 hardcode_libdir_flag_spec='-L$libdir'
6264 hardcode_shlibpath_var=no
6268 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6269 hardcode_libdir_flag_spec='-L$libdir'
6270 hardcode_shlibpath_var=no
6274 if test -d /usr/nec; then
6275 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6276 hardcode_shlibpath_var=no
6277 runpath_var=LD_RUN_PATH
6278 hardcode_runpath_var=yes
6284 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6287 hardcode_shlibpath_var=no
6288 hardcode_runpath_var=yes
6289 runpath_var=LD_RUN_PATH
6292 sysv5uw7* | unixware7*)
6293 no_undefined_flag='${wl}-z ${wl}text'
6294 if test "$GCC" = yes; then
6295 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6297 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6299 runpath_var='LD_RUN_PATH'
6300 hardcode_shlibpath_var=no
6308 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6309 echo "${ECHO_T}$ld_shlibs" >&6
6310 test "$ld_shlibs" = no && can_build_shared=no
6312 # Check hardcoding attributes.
6313 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6314 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6316 if test -n "$hardcode_libdir_flag_spec" || \
6317 test -n "$runpath_var"; then
6319 # We can hardcode non-existant directories.
6320 if test "$hardcode_direct" != no &&
6321 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6322 # have to relink, otherwise we might link with an installed library
6323 # when we should be linking with a yet-to-be-installed one
6324 ## test "$hardcode_shlibpath_var" != no &&
6325 test "$hardcode_minus_L" != no; then
6326 # Linking always hardcodes the temporary library directory.
6327 hardcode_action=relink
6329 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6330 hardcode_action=immediate
6333 # We cannot hardcode anything, or else we can only hardcode existing
6335 hardcode_action=unsupported
6337 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6338 echo "${ECHO_T}$hardcode_action" >&6
6342 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6343 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6344 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6345 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6346 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6347 echo "$as_me:$LINENO: result: yes" >&5
6348 echo "${ECHO_T}yes" >&6
6350 echo "$as_me:$LINENO: result: no" >&5
6351 echo "${ECHO_T}no" >&6
6354 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6355 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6357 # PORTME Fill in your ld.so characteristics
6358 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6359 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6361 libname_spec='lib$name'
6368 shlibpath_overrides_runpath=unknown
6370 dynamic_linker="$host_os ld.so"
6371 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib"
6372 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib"
6377 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6378 shlibpath_var=LIBPATH
6380 # AIX has no versioning support, so we append a major version to the name.
6381 soname_spec='${libname}${release}.so$major'
6388 hardcode_into_libs=yes
6389 if test "$host_cpu" = ia64; then
6390 # AIX 5 supports IA64
6391 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6392 shlibpath_var=LD_LIBRARY_PATH
6394 # With GCC up to 2.95.x, collect2 would create an import file
6395 # for dependence libraries. The import file would start with
6396 # the line `#! .'. This would cause the generated library to
6397 # depend on `.', always an invalid library. This was fixed in
6398 # development snapshots of GCC prior to 3.0.
6400 aix4 | aix4.[01] | aix4.[01].*)
6401 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6403 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6410 # AIX (on Power*) has no versioning support, so currently we can
6411 # not hardcode correct soname into executable. Probably we can
6412 # add versioning support to collect2, so additional links can
6413 # be useful in future.
6414 if test "$aix_use_runtimelinking" = yes; then
6415 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6416 # instead of lib<name>.a to let people know that these are not
6417 # typical AIX shared libraries.
6418 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6420 # We preserve .a as extension for shared libraries through AIX4.2
6421 # and later when we are not doing run time linking.
6422 library_names_spec='${libname}${release}.a $libname.a'
6423 soname_spec='${libname}${release}.so$major'
6425 shlibpath_var=LIBPATH
6427 hardcode_into_libs=yes
6431 library_names_spec='$libname.ixlibrary $libname.a'
6432 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6433 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'
6437 library_names_spec='${libname}.so'
6438 dynamic_linker="$host_os ld.so"
6439 shlibpath_var=LIBRARY_PATH
6445 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6446 soname_spec='${libname}${release}.so$major'
6447 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6448 shlibpath_var=LD_LIBRARY_PATH
6449 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6450 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6451 export_dynamic_flag_spec=-rdynamic
6452 # the default ld.so.conf also contains /usr/contrib/lib and
6453 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6454 # libtool to hard-code these into programs
6457 cygwin* | mingw* | pw32*)
6458 version_type=windows
6461 case $GCC,$host_os in
6463 library_names_spec='$libname.dll.a'
6464 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6465 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6466 dldir=$destdir/`dirname \$dlpath`~
6467 test -d \$dldir || mkdir -p \$dldir~
6468 $install_prog .libs/$dlname \$dldir/$dlname'
6469 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6470 dlpath=$dir/\$dldll~
6474 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6475 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6478 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6481 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6484 dynamic_linker='Win32 ld.exe'
6485 # FIXME: first we should search . and the directory the executable is in
6489 darwin* | rhapsody*)
6490 dynamic_linker="$host_os dyld"
6494 # FIXME: Relying on posixy $() will cause problems for
6495 # cross-compilation, but unfortunately the echo tests do not
6496 # yet detect zsh echo's removal of \ escapes.
6497 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)'
6498 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6499 shlibpath_overrides_runpath=yes
6500 shlibpath_var=DYLD_LIBRARY_PATH
6508 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6509 version_type=freebsd-$objformat
6510 case $version_type in
6512 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6517 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6521 shlibpath_var=LD_LIBRARY_PATH
6524 shlibpath_overrides_runpath=yes
6527 shlibpath_overrides_runpath=no
6528 hardcode_into_libs=yes
6537 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6538 soname_spec='${libname}${release}.so$major'
6539 shlibpath_var=LD_LIBRARY_PATH
6540 hardcode_into_libs=yes
6543 hpux9* | hpux10* | hpux11*)
6544 # Give a soname corresponding to the major version so that dld.sl refuses to
6545 # link against other versions.
6546 dynamic_linker="$host_os dld.sl"
6550 shlibpath_var=SHLIB_PATH
6551 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6552 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6553 soname_spec='${libname}${release}.sl$major'
6554 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6555 postinstall_cmds='chmod 555 $lib'
6558 irix5* | irix6* | nonstopux*)
6560 nonstopux*) version_type=nonstopux ;;
6561 *) version_type=irix ;;
6565 soname_spec='${libname}${release}.so$major'
6566 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6568 irix5* | nonstopux*)
6572 case $LD in # libtool.m4 will add one of these switches to LD
6573 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6574 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6575 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6576 *) libsuff= shlibsuff= libmagic=never-match;;
6580 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6581 shlibpath_overrides_runpath=no
6582 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6583 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6586 # No shared lib support for Linux oldld, aout, or coff.
6587 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6591 # This must be Linux ELF.
6596 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6597 soname_spec='${libname}${release}.so$major'
6598 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6599 shlibpath_var=LD_LIBRARY_PATH
6600 shlibpath_overrides_runpath=no
6601 # This implies no fast_install, which is unacceptable.
6602 # Some rework will be needed to allow for fast_install
6603 # before this can be enabled.
6604 hardcode_into_libs=yes
6606 case $host_cpu:$lt_cv_cc_64bit_output in
6607 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
6608 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
6609 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
6613 # We used to test for /lib/ld.so.1 and disable shared libraries on
6614 # powerpc, because MkLinux only supported shared libraries with the
6615 # GNU dynamic linker. Since this was broken with cross compilers,
6616 # most powerpc-linux boxes support dynamic linking these days and
6617 # people can always --disable-shared, the test was removed, and we
6618 # assume the GNU/Linux dynamic linker is in use.
6619 dynamic_linker='GNU/Linux ld.so'
6621 # Find out which ABI we are using (multilib Linux x86_64 hack).
6625 echo '#line 6625 "configure"' > conftest.$ac_ext
6626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6627 (eval $ac_compile) 2>&5
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); }; then
6631 case `/usr/bin/file conftest.$ac_objext` in
6642 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
6643 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
6650 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6651 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6652 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6653 dynamic_linker='NetBSD (a.out) ld.so'
6655 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6656 soname_spec='${libname}${release}.so$major'
6657 dynamic_linker='NetBSD ld.elf_so'
6659 shlibpath_var=LD_LIBRARY_PATH
6660 shlibpath_overrides_runpath=yes
6661 hardcode_into_libs=yes
6666 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6667 shlibpath_var=LD_LIBRARY_PATH
6668 shlibpath_overrides_runpath=yes
6675 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6677 openbsd2.[89] | openbsd2.[89].*)
6678 shlibpath_overrides_runpath=no
6681 shlibpath_overrides_runpath=yes
6685 shlibpath_overrides_runpath=yes
6687 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6688 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6689 shlibpath_var=LD_LIBRARY_PATH
6693 libname_spec='$name'
6695 library_names_spec='$libname.dll $libname.a'
6696 dynamic_linker='OS/2 ld.exe'
6697 shlibpath_var=LIBPATH
6700 osf3* | osf4* | osf5*)
6703 soname_spec='${libname}${release}.so$major'
6704 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6705 shlibpath_var=LD_LIBRARY_PATH
6706 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6707 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6708 hardcode_into_libs=yes
6713 soname_spec='${libname}${release}.so$major'
6714 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6715 shlibpath_var=LD_LIBRARY_PATH
6722 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6723 soname_spec='${libname}${release}.so$major'
6724 shlibpath_var=LD_LIBRARY_PATH
6725 shlibpath_overrides_runpath=yes
6726 hardcode_into_libs=yes
6727 # ldd complains unless libraries are executable
6728 postinstall_cmds='chmod +x $lib'
6733 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6734 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6735 shlibpath_var=LD_LIBRARY_PATH
6736 shlibpath_overrides_runpath=yes
6737 if test "$with_gnu_ld" = yes; then
6743 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6745 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6746 soname_spec='${libname}${release}.so$major'
6747 shlibpath_var=LD_LIBRARY_PATH
6748 case $host_vendor in
6750 shlibpath_overrides_runpath=no
6752 export_dynamic_flag_spec='${wl}-Blargedynsym'
6753 runpath_var=LD_RUN_PATH
6761 shlibpath_overrides_runpath=no
6762 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6769 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6770 soname_spec='${libname}${release}.so$major'
6771 shlibpath_var=LD_LIBRARY_PATH
6778 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6779 soname_spec='${libname}${release}.so$major'
6780 shlibpath_var=LD_LIBRARY_PATH
6784 if test -d /usr/nec ;then
6786 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6787 soname_spec='$libname.so.$major'
6788 shlibpath_var=LD_LIBRARY_PATH
6796 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6797 echo "${ECHO_T}$dynamic_linker" >&6
6798 test "$dynamic_linker" = no && can_build_shared=no
6800 # Report the final consequences.
6801 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6802 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6803 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6804 echo "${ECHO_T}$can_build_shared" >&6
6806 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6807 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6808 test "$can_build_shared" = "no" && enable_shared=no
6810 # On AIX, shared libraries and static libraries use the same namespace, and
6811 # are all built from PIC.
6814 test "$enable_shared" = yes && enable_static=no
6815 if test -n "$RANLIB"; then
6816 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6817 postinstall_cmds='$RANLIB $lib'
6822 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6823 test "$enable_shared" = yes && enable_static=no
6827 echo "$as_me:$LINENO: result: $enable_shared" >&5
6828 echo "${ECHO_T}$enable_shared" >&6
6830 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6831 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6832 # Make sure either enable_shared or enable_static is yes.
6833 test "$enable_shared" = yes || enable_static=yes
6834 echo "$as_me:$LINENO: result: $enable_static" >&5
6835 echo "${ECHO_T}$enable_static" >&6
6837 if test "$hardcode_action" = relink; then
6838 # Fast installation is not supported
6839 enable_fast_install=no
6840 elif test "$shlibpath_overrides_runpath" = yes ||
6841 test "$enable_shared" = no; then
6842 # Fast installation is not necessary
6843 enable_fast_install=needless
6846 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6847 if test "$GCC" = yes; then
6848 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6851 if test "x$enable_dlopen" != xyes; then
6852 enable_dlopen=unknown
6853 enable_dlopen_self=unknown
6854 enable_dlopen_self_static=unknown
6861 lt_cv_dlopen="load_add_on"
6863 lt_cv_dlopen_self=yes
6866 cygwin* | mingw* | pw32*)
6867 lt_cv_dlopen="LoadLibrary"
6872 echo "$as_me:$LINENO: checking for shl_load" >&5
6873 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6874 if test "${ac_cv_func_shl_load+set}" = set; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
6877 cat >conftest.$ac_ext <<_ACEOF
6880 cat confdefs.h >>conftest.$ac_ext
6881 cat >>conftest.$ac_ext <<_ACEOF
6882 /* end confdefs.h. */
6883 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
6884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6885 #define shl_load innocuous_shl_load
6887 /* System header to define __stub macros and hopefully few prototypes,
6888 which can conflict with char shl_load (); below.
6889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6890 <limits.h> exists even on freestanding compilers. */
6893 # include <limits.h>
6895 # include <assert.h>
6900 /* Override any gcc2 internal prototype to avoid an error. */
6905 /* We use char because int might match the return type of a gcc2
6906 builtin and then its argument prototype would still apply. */
6908 /* The GNU C library defines this for functions which it implements
6909 to always fail with ENOSYS. Some functions are actually named
6910 something starting with __ and the normal name is an alias. */
6911 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6914 char (*f) () = shl_load;
6923 return f != shl_load;
6928 rm -f conftest.$ac_objext conftest$ac_exeext
6929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6930 (eval $ac_link) 2>conftest.er1
6932 grep -v '^ *+' conftest.er1 >conftest.err
6934 cat conftest.err >&5
6935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936 (exit $ac_status); } &&
6937 { ac_try='test -z "$ac_c_werror_flag"
6938 || test ! -s conftest.err'
6939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); }; } &&
6944 { ac_try='test -s conftest$ac_exeext'
6945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); }; }; then
6950 ac_cv_func_shl_load=yes
6952 echo "$as_me: failed program was:" >&5
6953 sed 's/^/| /' conftest.$ac_ext >&5
6955 ac_cv_func_shl_load=no
6957 rm -f conftest.err conftest.$ac_objext \
6958 conftest$ac_exeext conftest.$ac_ext
6960 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6961 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6962 if test $ac_cv_func_shl_load = yes; then
6963 lt_cv_dlopen="shl_load"
6965 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6966 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6967 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6968 echo $ECHO_N "(cached) $ECHO_C" >&6
6970 ac_check_lib_save_LIBS=$LIBS
6972 cat >conftest.$ac_ext <<_ACEOF
6975 cat confdefs.h >>conftest.$ac_ext
6976 cat >>conftest.$ac_ext <<_ACEOF
6977 /* end confdefs.h. */
6979 /* Override any gcc2 internal prototype to avoid an error. */
6983 /* We use char because int might match the return type of a gcc2
6984 builtin and then its argument prototype would still apply. */
6994 rm -f conftest.$ac_objext conftest$ac_exeext
6995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6996 (eval $ac_link) 2>conftest.er1
6998 grep -v '^ *+' conftest.er1 >conftest.err
7000 cat conftest.err >&5
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); } &&
7003 { ac_try='test -z "$ac_c_werror_flag"
7004 || test ! -s conftest.err'
7005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); }; } &&
7010 { ac_try='test -s conftest$ac_exeext'
7011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; }; then
7016 ac_cv_lib_dld_shl_load=yes
7018 echo "$as_me: failed program was:" >&5
7019 sed 's/^/| /' conftest.$ac_ext >&5
7021 ac_cv_lib_dld_shl_load=no
7023 rm -f conftest.err conftest.$ac_objext \
7024 conftest$ac_exeext conftest.$ac_ext
7025 LIBS=$ac_check_lib_save_LIBS
7027 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7028 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7029 if test $ac_cv_lib_dld_shl_load = yes; then
7030 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7032 echo "$as_me:$LINENO: checking for dlopen" >&5
7033 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7034 if test "${ac_cv_func_dlopen+set}" = set; then
7035 echo $ECHO_N "(cached) $ECHO_C" >&6
7037 cat >conftest.$ac_ext <<_ACEOF
7040 cat confdefs.h >>conftest.$ac_ext
7041 cat >>conftest.$ac_ext <<_ACEOF
7042 /* end confdefs.h. */
7043 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7045 #define dlopen innocuous_dlopen
7047 /* System header to define __stub macros and hopefully few prototypes,
7048 which can conflict with char dlopen (); below.
7049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7050 <limits.h> exists even on freestanding compilers. */
7053 # include <limits.h>
7055 # include <assert.h>
7060 /* Override any gcc2 internal prototype to avoid an error. */
7065 /* We use char because int might match the return type of a gcc2
7066 builtin and then its argument prototype would still apply. */
7068 /* The GNU C library defines this for functions which it implements
7069 to always fail with ENOSYS. Some functions are actually named
7070 something starting with __ and the normal name is an alias. */
7071 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7074 char (*f) () = dlopen;
7088 rm -f conftest.$ac_objext conftest$ac_exeext
7089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7090 (eval $ac_link) 2>conftest.er1
7092 grep -v '^ *+' conftest.er1 >conftest.err
7094 cat conftest.err >&5
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); } &&
7097 { ac_try='test -z "$ac_c_werror_flag"
7098 || test ! -s conftest.err'
7099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); }; } &&
7104 { ac_try='test -s conftest$ac_exeext'
7105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109 (exit $ac_status); }; }; then
7110 ac_cv_func_dlopen=yes
7112 echo "$as_me: failed program was:" >&5
7113 sed 's/^/| /' conftest.$ac_ext >&5
7115 ac_cv_func_dlopen=no
7117 rm -f conftest.err conftest.$ac_objext \
7118 conftest$ac_exeext conftest.$ac_ext
7120 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7121 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7122 if test $ac_cv_func_dlopen = yes; then
7123 lt_cv_dlopen="dlopen"
7125 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7126 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7127 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7130 ac_check_lib_save_LIBS=$LIBS
7132 cat >conftest.$ac_ext <<_ACEOF
7135 cat confdefs.h >>conftest.$ac_ext
7136 cat >>conftest.$ac_ext <<_ACEOF
7137 /* end confdefs.h. */
7139 /* Override any gcc2 internal prototype to avoid an error. */
7143 /* We use char because int might match the return type of a gcc2
7144 builtin and then its argument prototype would still apply. */
7154 rm -f conftest.$ac_objext conftest$ac_exeext
7155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7156 (eval $ac_link) 2>conftest.er1
7158 grep -v '^ *+' conftest.er1 >conftest.err
7160 cat conftest.err >&5
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); } &&
7163 { ac_try='test -z "$ac_c_werror_flag"
7164 || test ! -s conftest.err'
7165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169 (exit $ac_status); }; } &&
7170 { ac_try='test -s conftest$ac_exeext'
7171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175 (exit $ac_status); }; }; then
7176 ac_cv_lib_dl_dlopen=yes
7178 echo "$as_me: failed program was:" >&5
7179 sed 's/^/| /' conftest.$ac_ext >&5
7181 ac_cv_lib_dl_dlopen=no
7183 rm -f conftest.err conftest.$ac_objext \
7184 conftest$ac_exeext conftest.$ac_ext
7185 LIBS=$ac_check_lib_save_LIBS
7187 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7188 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7189 if test $ac_cv_lib_dl_dlopen = yes; then
7190 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7192 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7193 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7194 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7197 ac_check_lib_save_LIBS=$LIBS
7199 cat >conftest.$ac_ext <<_ACEOF
7202 cat confdefs.h >>conftest.$ac_ext
7203 cat >>conftest.$ac_ext <<_ACEOF
7204 /* end confdefs.h. */
7206 /* Override any gcc2 internal prototype to avoid an error. */
7210 /* We use char because int might match the return type of a gcc2
7211 builtin and then its argument prototype would still apply. */
7221 rm -f conftest.$ac_objext conftest$ac_exeext
7222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7223 (eval $ac_link) 2>conftest.er1
7225 grep -v '^ *+' conftest.er1 >conftest.err
7227 cat conftest.err >&5
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); } &&
7230 { ac_try='test -z "$ac_c_werror_flag"
7231 || test ! -s conftest.err'
7232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); }; } &&
7237 { ac_try='test -s conftest$ac_exeext'
7238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242 (exit $ac_status); }; }; then
7243 ac_cv_lib_svld_dlopen=yes
7245 echo "$as_me: failed program was:" >&5
7246 sed 's/^/| /' conftest.$ac_ext >&5
7248 ac_cv_lib_svld_dlopen=no
7250 rm -f conftest.err conftest.$ac_objext \
7251 conftest$ac_exeext conftest.$ac_ext
7252 LIBS=$ac_check_lib_save_LIBS
7254 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7255 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7256 if test $ac_cv_lib_svld_dlopen = yes; then
7257 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7259 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7260 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7261 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7262 echo $ECHO_N "(cached) $ECHO_C" >&6
7264 ac_check_lib_save_LIBS=$LIBS
7266 cat >conftest.$ac_ext <<_ACEOF
7269 cat confdefs.h >>conftest.$ac_ext
7270 cat >>conftest.$ac_ext <<_ACEOF
7271 /* end confdefs.h. */
7273 /* Override any gcc2 internal prototype to avoid an error. */
7277 /* We use char because int might match the return type of a gcc2
7278 builtin and then its argument prototype would still apply. */
7288 rm -f conftest.$ac_objext conftest$ac_exeext
7289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7290 (eval $ac_link) 2>conftest.er1
7292 grep -v '^ *+' conftest.er1 >conftest.err
7294 cat conftest.err >&5
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); } &&
7297 { ac_try='test -z "$ac_c_werror_flag"
7298 || test ! -s conftest.err'
7299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); }; } &&
7304 { ac_try='test -s conftest$ac_exeext'
7305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); }; }; then
7310 ac_cv_lib_dld_dld_link=yes
7312 echo "$as_me: failed program was:" >&5
7313 sed 's/^/| /' conftest.$ac_ext >&5
7315 ac_cv_lib_dld_dld_link=no
7317 rm -f conftest.err conftest.$ac_objext \
7318 conftest$ac_exeext conftest.$ac_ext
7319 LIBS=$ac_check_lib_save_LIBS
7321 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7322 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7323 if test $ac_cv_lib_dld_dld_link = yes; then
7324 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7345 if test "x$lt_cv_dlopen" != xno; then
7351 case $lt_cv_dlopen in
7353 save_CPPFLAGS="$CPPFLAGS"
7354 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7356 save_LDFLAGS="$LDFLAGS"
7357 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7360 LIBS="$lt_cv_dlopen_libs $LIBS"
7362 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7363 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7364 if test "${lt_cv_dlopen_self+set}" = set; then
7365 echo $ECHO_N "(cached) $ECHO_C" >&6
7367 if test "$cross_compiling" = yes; then :
7368 lt_cv_dlopen_self=cross
7370 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7371 lt_status=$lt_dlunknown
7372 cat > conftest.$ac_ext <<EOF
7373 #line 7373 "configure"
7374 #include "confdefs.h"
7383 # define LT_DLGLOBAL RTLD_GLOBAL
7386 # define LT_DLGLOBAL DL_GLOBAL
7388 # define LT_DLGLOBAL 0
7392 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7393 find out it does not work in some platform. */
7394 #ifndef LT_DLLAZY_OR_NOW
7396 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7399 # define LT_DLLAZY_OR_NOW DL_LAZY
7402 # define LT_DLLAZY_OR_NOW RTLD_NOW
7405 # define LT_DLLAZY_OR_NOW DL_NOW
7407 # define LT_DLLAZY_OR_NOW 0
7415 extern "C" void exit (int);
7418 void fnord() { int i=42;}
7421 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7422 int status = $lt_dlunknown;
7426 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7427 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7428 /* dlclose (self); */
7434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7435 (eval $ac_link) 2>&5
7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7439 (./conftest; exit; ) 2>/dev/null
7442 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7443 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7444 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7447 # compilation failed
7448 lt_cv_dlopen_self=no
7455 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7456 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7458 if test "x$lt_cv_dlopen_self" = xyes; then
7459 LDFLAGS="$LDFLAGS $link_static_flag"
7460 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7461 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7462 if test "${lt_cv_dlopen_self_static+set}" = set; then
7463 echo $ECHO_N "(cached) $ECHO_C" >&6
7465 if test "$cross_compiling" = yes; then :
7466 lt_cv_dlopen_self_static=cross
7468 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7469 lt_status=$lt_dlunknown
7470 cat > conftest.$ac_ext <<EOF
7471 #line 7471 "configure"
7472 #include "confdefs.h"
7481 # define LT_DLGLOBAL RTLD_GLOBAL
7484 # define LT_DLGLOBAL DL_GLOBAL
7486 # define LT_DLGLOBAL 0
7490 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7491 find out it does not work in some platform. */
7492 #ifndef LT_DLLAZY_OR_NOW
7494 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7497 # define LT_DLLAZY_OR_NOW DL_LAZY
7500 # define LT_DLLAZY_OR_NOW RTLD_NOW
7503 # define LT_DLLAZY_OR_NOW DL_NOW
7505 # define LT_DLLAZY_OR_NOW 0
7513 extern "C" void exit (int);
7516 void fnord() { int i=42;}
7519 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7520 int status = $lt_dlunknown;
7524 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7525 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7526 /* dlclose (self); */
7532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7533 (eval $ac_link) 2>&5
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7537 (./conftest; exit; ) 2>/dev/null
7540 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7541 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7542 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7545 # compilation failed
7546 lt_cv_dlopen_self_static=no
7553 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7554 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7557 CPPFLAGS="$save_CPPFLAGS"
7558 LDFLAGS="$save_LDFLAGS"
7563 case $lt_cv_dlopen_self in
7564 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7565 *) enable_dlopen_self=unknown ;;
7568 case $lt_cv_dlopen_self_static in
7569 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7570 *) enable_dlopen_self_static=unknown ;;
7575 if test "$enable_shared" = yes && test "$GCC" = yes; then
7576 case $archive_cmds in
7578 # FIXME: we may have to deal with multi-command sequences.
7581 # Test whether the compiler implicitly links with -lc since on some
7582 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7583 # to ld, don't add -lc before -lgcc.
7584 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7585 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7586 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7590 echo 'static int dummy;' > conftest.$ac_ext
7592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7593 (eval $ac_compile) 2>&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); }; then
7599 libobjs=conftest.$ac_objext
7601 wl=$lt_cv_prog_cc_wl
7607 save_allow_undefined_flag=$allow_undefined_flag
7608 allow_undefined_flag=
7609 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7610 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); }
7615 lt_cv_archive_cmds_need_lc=no
7617 lt_cv_archive_cmds_need_lc=yes
7619 allow_undefined_flag=$save_allow_undefined_flag
7621 cat conftest.err 1>&5
7625 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7626 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7630 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7632 # The second clause should only fire when bootstrapping the
7633 # libtool distribution, otherwise you forgot to ship ltmain.sh
7634 # with your package, and you will get complaints that there are
7635 # no rules to generate ltmain.sh.
7636 if test -f "$ltmain"; then
7639 # If there is no Makefile yet, we rely on a make rule to execute
7640 # `config.status --recheck' to rerun these tests and create the
7641 # libtool script then.
7642 test -f Makefile && make "$ltmain"
7645 if test -f "$ltmain"; then
7646 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7649 echo creating $ofile
7651 # Now quote all the things that may contain metacharacters while being
7652 # careful not to overquote the AC_SUBSTed values. We take copies of the
7653 # variables and quote the copies for generation of the libtool script.
7654 for var in echo old_CC old_CFLAGS SED \
7655 AR AR_FLAGS CC LD LN_S NM SHELL \
7656 reload_flag reload_cmds wl \
7657 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7658 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7659 library_names_spec soname_spec \
7660 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7661 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7662 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7663 old_striplib striplib file_magic_cmd export_symbols_cmds \
7664 deplibs_check_method allow_undefined_flag no_undefined_flag \
7665 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7666 global_symbol_to_c_name_address \
7667 hardcode_libdir_flag_spec hardcode_libdir_separator \
7668 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7669 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7672 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7673 old_postinstall_cmds | old_postuninstall_cmds | \
7674 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7675 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7676 postinstall_cmds | postuninstall_cmds | \
7677 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7678 # Double-quote double-evaled strings.
7679 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7682 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7687 cat <<__EOF__ > "${ofile}T"
7690 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7691 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7692 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7694 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7695 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7697 # This program is free software; you can redistribute it and/or modify
7698 # it under the terms of the GNU General Public License as published by
7699 # the Free Software Foundation; either version 2 of the License, or
7700 # (at your option) any later version.
7702 # This program is distributed in the hope that it will be useful, but
7703 # WITHOUT ANY WARRANTY; without even the implied warranty of
7704 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7705 # General Public License for more details.
7707 # You should have received a copy of the GNU General Public License
7708 # along with this program; if not, write to the Free Software
7709 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7711 # As a special exception to the GNU General Public License, if you
7712 # distribute this file as part of a program that contains a
7713 # configuration script generated by Autoconf, you may include it under
7714 # the same distribution terms that you use for the rest of that program.
7716 # A sed that does not truncate output.
7719 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7720 Xsed="${SED} -e s/^X//"
7722 # The HP-UX ksh and POSIX shell print the target directory to stdout
7724 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7726 # ### BEGIN LIBTOOL CONFIG
7728 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7730 # Shell to use when invoking shell scripts.
7733 # Whether or not to build shared libraries.
7734 build_libtool_libs=$enable_shared
7736 # Whether or not to build static libraries.
7737 build_old_libs=$enable_static
7739 # Whether or not to add -lc for building shared libraries.
7740 build_libtool_need_lc=$need_lc
7742 # Whether or not to optimize for fast installation.
7743 fast_install=$enable_fast_install
7746 host_alias=$host_alias
7749 # An echo program that does not interpret backslashes.
7754 AR_FLAGS=$lt_AR_FLAGS
7756 # The default C compiler.
7759 # Is the compiler the GNU C compiler?
7762 # The linker used to build libraries.
7765 # Whether we need hard or soft links.
7768 # A BSD-compatible nm program.
7771 # A symbol stripping program
7774 # Used to examine libraries when file_magic_cmd begins "file"
7775 MAGIC_CMD=$MAGIC_CMD
7777 # Used on cygwin: DLL creation program.
7780 # Used on cygwin: object dumper.
7783 # Used on cygwin: assembler.
7786 # The name of the directory that contains temporary libtool files.
7789 # How to create reloadable object files.
7790 reload_flag=$lt_reload_flag
7791 reload_cmds=$lt_reload_cmds
7793 # How to pass a linker flag through the compiler.
7796 # Object file suffix (normally "o").
7799 # Old archive suffix (normally "a").
7802 # Executable file suffix (normally "").
7805 # Additional compiler flags for building library objects.
7806 pic_flag=$lt_pic_flag
7809 # Does compiler simultaneously support -c and -o options?
7810 compiler_c_o=$lt_compiler_c_o
7812 # Can we write directly to a .lo ?
7813 compiler_o_lo=$lt_compiler_o_lo
7815 # Must we lock files when doing compilation ?
7816 need_locks=$lt_need_locks
7818 # Do we need the lib prefix for modules?
7819 need_lib_prefix=$need_lib_prefix
7821 # Do we need a version for libraries?
7822 need_version=$need_version
7824 # Whether dlopen is supported.
7825 dlopen_support=$enable_dlopen
7827 # Whether dlopen of programs is supported.
7828 dlopen_self=$enable_dlopen_self
7830 # Whether dlopen of statically linked programs is supported.
7831 dlopen_self_static=$enable_dlopen_self_static
7833 # Compiler flag to prevent dynamic linking.
7834 link_static_flag=$lt_link_static_flag
7836 # Compiler flag to turn off builtin functions.
7837 no_builtin_flag=$lt_no_builtin_flag
7839 # Compiler flag to allow reflexive dlopens.
7840 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7842 # Compiler flag to generate shared objects directly from archives.
7843 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7845 # Compiler flag to generate thread-safe objects.
7846 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7848 # Library versioning type.
7849 version_type=$version_type
7851 # Format of library name prefix.
7852 libname_spec=$lt_libname_spec
7854 # List of archive names. First name is the real one, the rest are links.
7855 # The last name is the one that the linker finds with -lNAME.
7856 library_names_spec=$lt_library_names_spec
7858 # The coded name of the library, if different from the real name.
7859 soname_spec=$lt_soname_spec
7861 # Commands used to build and install an old-style archive.
7863 old_archive_cmds=$lt_old_archive_cmds
7864 old_postinstall_cmds=$lt_old_postinstall_cmds
7865 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7867 # Create an old-style archive from a shared archive.
7868 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7870 # Create a temporary old-style archive to link instead of a shared archive.
7871 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7873 # Commands used to build and install a shared archive.
7874 archive_cmds=$lt_archive_cmds
7875 archive_expsym_cmds=$lt_archive_expsym_cmds
7876 postinstall_cmds=$lt_postinstall_cmds
7877 postuninstall_cmds=$lt_postuninstall_cmds
7879 # Commands to strip libraries.
7880 old_striplib=$lt_old_striplib
7881 striplib=$lt_striplib
7883 # Method to check whether dependent libraries are shared objects.
7884 deplibs_check_method=$lt_deplibs_check_method
7886 # Command to use when deplibs_check_method == file_magic.
7887 file_magic_cmd=$lt_file_magic_cmd
7889 # Flag that allows shared libraries with undefined symbols to be built.
7890 allow_undefined_flag=$lt_allow_undefined_flag
7892 # Flag that forces no undefined symbols.
7893 no_undefined_flag=$lt_no_undefined_flag
7895 # Commands used to finish a libtool library installation in a directory.
7896 finish_cmds=$lt_finish_cmds
7898 # Same as above, but a single script fragment to be evaled but not shown.
7899 finish_eval=$lt_finish_eval
7901 # Take the output of nm and produce a listing of raw symbols and C names.
7902 global_symbol_pipe=$lt_global_symbol_pipe
7904 # Transform the output of nm in a proper C declaration
7905 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7907 # Transform the output of nm in a C name address pair
7908 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7910 # This is the shared library runtime path variable.
7911 runpath_var=$runpath_var
7913 # This is the shared library path variable.
7914 shlibpath_var=$shlibpath_var
7916 # Is shlibpath searched before the hard-coded library search path?
7917 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7919 # How to hardcode a shared library path into an executable.
7920 hardcode_action=$hardcode_action
7922 # Whether we should hardcode library paths into libraries.
7923 hardcode_into_libs=$hardcode_into_libs
7925 # Flag to hardcode \$libdir into a binary during linking.
7926 # This must work even if \$libdir does not exist.
7927 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7929 # Whether we need a single -rpath flag with a separated argument.
7930 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7932 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7934 hardcode_direct=$hardcode_direct
7936 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7938 hardcode_minus_L=$hardcode_minus_L
7940 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7941 # the resulting binary.
7942 hardcode_shlibpath_var=$hardcode_shlibpath_var
7944 # Variables whose values should be saved in libtool wrapper scripts and
7945 # restored at relink time.
7946 variables_saved_for_relink="$variables_saved_for_relink"
7948 # Whether libtool must link a program against all its dependency libraries.
7949 link_all_deplibs=$link_all_deplibs
7951 # Compile-time system search path for libraries
7952 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7954 # Run-time system search path for libraries
7955 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7957 # Fix the shell variable \$srcfile for the compiler.
7958 fix_srcfile_path="$fix_srcfile_path"
7960 # Set to yes if exported symbols are required.
7961 always_export_symbols=$always_export_symbols
7963 # The commands to list exported symbols.
7964 export_symbols_cmds=$lt_export_symbols_cmds
7966 # The commands to extract the exported symbol list from a shared archive.
7967 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7969 # Symbols that should not be listed in the preloaded symbols.
7970 exclude_expsyms=$lt_exclude_expsyms
7972 # Symbols that must always be exported.
7973 include_expsyms=$lt_include_expsyms
7975 # ### END LIBTOOL CONFIG
7981 cat <<\EOF >> "${ofile}T"
7983 # AIX sometimes has problems with the GCC collect2 program. For some
7984 # reason, if we set the COLLECT_NAMES environment variable, the problems
7985 # vanish in a puff of smoke.
7986 if test "X${COLLECT_NAMES+set}" != Xset; then
7988 export COLLECT_NAMES
7995 cygwin* | mingw* | pw32* | os2*)
7996 cat <<'EOF' >> "${ofile}T"
7997 # This is a source program that is used to create dlls on Windows
7998 # Don't remove nor modify the starting and closing comments
7999 # /* ltdll.c starts here */
8000 # #define WIN32_LEAN_AND_MEAN
8001 # #include <windows.h>
8002 # #undef WIN32_LEAN_AND_MEAN
8003 # #include <stdio.h>
8005 # #ifndef __CYGWIN__
8006 # # ifdef __CYGWIN32__
8007 # # define __CYGWIN__ __CYGWIN32__
8011 # #ifdef __cplusplus
8014 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8015 # #ifdef __cplusplus
8020 # #include <cygwin/cygwin_dll.h>
8021 # DECLARE_CYGWIN_DLL( DllMain );
8023 # HINSTANCE __hDllInstance_base;
8026 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8028 # __hDllInstance_base = hInst;
8031 # /* ltdll.c ends here */
8032 # This is a source program that is used to create import libraries
8033 # on Windows for dlls which lack them. Don't remove nor modify the
8034 # starting and closing comments
8035 # /* impgen.c starts here */
8036 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8038 # This file is part of GNU libtool.
8040 # This program is free software; you can redistribute it and/or modify
8041 # it under the terms of the GNU General Public License as published by
8042 # the Free Software Foundation; either version 2 of the License, or
8043 # (at your option) any later version.
8045 # This program is distributed in the hope that it will be useful,
8046 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8047 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8048 # GNU General Public License for more details.
8050 # You should have received a copy of the GNU General Public License
8051 # along with this program; if not, write to the Free Software
8052 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8055 # #include <stdio.h> /* for printf() */
8056 # #include <unistd.h> /* for open(), lseek(), read() */
8057 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8058 # #include <string.h> /* for strdup() */
8060 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8062 # #define O_BINARY 0
8065 # static unsigned int
8066 # pe_get16 (fd, offset)
8070 # unsigned char b[2];
8071 # lseek (fd, offset, SEEK_SET);
8073 # return b[0] + (b[1]<<8);
8076 # static unsigned int
8077 # pe_get32 (fd, offset)
8081 # unsigned char b[4];
8082 # lseek (fd, offset, SEEK_SET);
8084 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8087 # static unsigned int
8091 # unsigned char *b = ptr;
8092 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8101 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8102 # unsigned long export_rva, export_size, nsections, secptr, expptr;
8103 # unsigned long name_rvas, nexp;
8104 # unsigned char *expdata, *erva;
8105 # char *filename, *dll_name;
8107 # filename = argv[1];
8109 # dll = open(filename, O_RDONLY|O_BINARY);
8113 # dll_name = filename;
8115 # for (i=0; filename[i]; i++)
8116 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8117 # dll_name = filename + i +1;
8119 # pe_header_offset = pe_get32 (dll, 0x3c);
8120 # opthdr_ofs = pe_header_offset + 4 + 20;
8121 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
8123 # if (num_entries < 1) /* no exports */
8126 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
8127 # export_size = pe_get32 (dll, opthdr_ofs + 100);
8128 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8129 # secptr = (pe_header_offset + 4 + 20 +
8130 # pe_get16 (dll, pe_header_offset + 4 + 16));
8133 # for (i = 0; i < nsections; i++)
8136 # unsigned long secptr1 = secptr + 40 * i;
8137 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8138 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8139 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8140 # lseek(dll, secptr1, SEEK_SET);
8141 # read(dll, sname, 8);
8142 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8144 # expptr = fptr + (export_rva - vaddr);
8145 # if (export_rva + export_size > vaddr + vsize)
8146 # export_size = vsize - (export_rva - vaddr);
8151 # expdata = (unsigned char*)malloc(export_size);
8152 # lseek (dll, expptr, SEEK_SET);
8153 # read (dll, expdata, export_size);
8154 # erva = expdata - export_rva;
8156 # nexp = pe_as32 (expdata+24);
8157 # name_rvas = pe_as32 (expdata+32);
8159 # printf ("EXPORTS\n");
8160 # for (i = 0; i<nexp; i++)
8162 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8163 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8168 # /* impgen.c ends here */
8174 # We use sed instead of cat because bash on DJGPP gets confused if
8175 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8176 # text mode, it properly converts lines to CR/LF. This bash problem
8177 # is reportedly fixed, but why not run on old versions too?
8178 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8180 mv -f "${ofile}T" "$ofile" || \
8181 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8189 # This can be used to rebuild libtool when needed
8190 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8192 # Always use our own libtool.
8193 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8195 # Prevent multiple expansion
8198 for ac_prog in gzip uncompress compress
8200 # Extract the first word of "$ac_prog", so it can be a program name with args.
8201 set dummy $ac_prog; ac_word=$2
8202 echo "$as_me:$LINENO: checking for $ac_word" >&5
8203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8204 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
8205 echo $ECHO_N "(cached) $ECHO_C" >&6
8207 if test -n "$UNCOMPRESS"; then
8208 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
8210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8214 test -z "$as_dir" && as_dir=.
8215 for ac_exec_ext in '' $ac_executable_extensions; do
8216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8217 ac_cv_prog_UNCOMPRESS="$ac_prog"
8218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8226 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
8227 if test -n "$UNCOMPRESS"; then
8228 echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
8229 echo "${ECHO_T}$UNCOMPRESS" >&6
8231 echo "$as_me:$LINENO: result: no" >&5
8232 echo "${ECHO_T}no" >&6
8235 test -n "$UNCOMPRESS" && break
8241 if test "x$EXEEXT" = "x.exe";then
8250 echo "$as_me:$LINENO: checking for target system" >&5
8251 echo $ECHO_N "checking for target system... $ECHO_C" >&6
8255 *cygwin* ) CYGWIN=yes;;
8256 *mingw* ) MINGW=yes;;
8260 if test "x$MINGW" = "xyes"; then
8261 #fix for the debian distribution of mingw
8262 if test -x "/usr/i586-mingw32msvc/bin/ar";then
8263 AR="/usr/i586-mingw32msvc/bin/ar"
8265 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
8266 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
8268 #fix for the gentoo distribution of mingw
8269 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
8270 AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
8272 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
8273 RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
8275 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
8276 STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
8282 if test "x${CYGWIN}" = "xyes"; then
8283 cat >>confdefs.h <<_ACEOF
8287 echo "$as_me:$LINENO: result: cygwin" >&5
8288 echo "${ECHO_T}cygwin" >&6
8290 if test "x${MINGW}" = "xyes"; then
8291 cat >>confdefs.h <<_ACEOF
8296 cat >>confdefs.h <<_ACEOF
8300 LIBS="$LIBS -lws2_32"
8301 echo "$as_me:$LINENO: result: mingw" >&5
8302 echo "${ECHO_T}mingw" >&6
8306 cat >>confdefs.h <<_ACEOF
8310 echo "$as_me:$LINENO: result: " >&5
8311 echo "${ECHO_T}" >&6
8317 if test "x${MINGW}" != "xyes"; then
8319 cat >>confdefs.h <<_ACEOF
8330 # The following tries to make use of includes and libraries in
8331 # /usr/local, too. Notice: A -I/usr/local/include might break
8332 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
8333 # especially on systems which link /usr/local to /usr, so it has yet
8334 # to be seen how useful this is.
8335 if test -d /usr/local/lib; then
8336 LDFLAGS="$LDFLAGS -L/usr/local/lib"
8338 if test -d /usr/local/include; then
8339 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
8340 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
8343 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
8344 # if the user has a special prefix (like /opt), there might also be $prefix/lib
8345 # and $prefix/include, which should be included in our search paths for libraries
8347 LDFLAGS="$LDFLAGS -L${libdir}"
8348 CPPFLAGS="$CPPFLAGS -I${includedir}"
8349 # TODO- test whether gcc still works after this
8353 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
8356 # this must be done after (I believe) AC_PROG_MAKE_SET
8357 if test "x$DEBUG" '!=' "x";then
8358 STRIP="@echo debug enabled, not stripping "
8364 echo "$as_me:$LINENO: checking for sin in -lm" >&5
8365 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8366 if test "${ac_cv_lib_m_sin+set}" = set; then
8367 echo $ECHO_N "(cached) $ECHO_C" >&6
8369 ac_check_lib_save_LIBS=$LIBS
8371 cat >conftest.$ac_ext <<_ACEOF
8374 cat confdefs.h >>conftest.$ac_ext
8375 cat >>conftest.$ac_ext <<_ACEOF
8376 /* end confdefs.h. */
8378 /* Override any gcc2 internal prototype to avoid an error. */
8382 /* We use char because int might match the return type of a gcc2
8383 builtin and then its argument prototype would still apply. */
8393 rm -f conftest.$ac_objext conftest$ac_exeext
8394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8395 (eval $ac_link) 2>conftest.er1
8397 grep -v '^ *+' conftest.er1 >conftest.err
8399 cat conftest.err >&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); } &&
8402 { ac_try='test -z "$ac_c_werror_flag"
8403 || test ! -s conftest.err'
8404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }; } &&
8409 { ac_try='test -s conftest$ac_exeext'
8410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); }; }; then
8417 echo "$as_me: failed program was:" >&5
8418 sed 's/^/| /' conftest.$ac_ext >&5
8422 rm -f conftest.err conftest.$ac_objext \
8423 conftest$ac_exeext conftest.$ac_ext
8424 LIBS=$ac_check_lib_save_LIBS
8426 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8427 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8428 if test $ac_cv_lib_m_sin = yes; then
8429 cat >>confdefs.h <<_ACEOF
8436 echo "Error: Math library not found.";
8442 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
8443 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
8444 if test "${ac_cv_lib_z_deflate+set}" = set; then
8445 echo $ECHO_N "(cached) $ECHO_C" >&6
8447 ac_check_lib_save_LIBS=$LIBS
8449 cat >conftest.$ac_ext <<_ACEOF
8452 cat confdefs.h >>conftest.$ac_ext
8453 cat >>conftest.$ac_ext <<_ACEOF
8454 /* end confdefs.h. */
8456 /* Override any gcc2 internal prototype to avoid an error. */
8460 /* We use char because int might match the return type of a gcc2
8461 builtin and then its argument prototype would still apply. */
8471 rm -f conftest.$ac_objext conftest$ac_exeext
8472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8473 (eval $ac_link) 2>conftest.er1
8475 grep -v '^ *+' conftest.er1 >conftest.err
8477 cat conftest.err >&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); } &&
8480 { ac_try='test -z "$ac_c_werror_flag"
8481 || test ! -s conftest.err'
8482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); }; } &&
8487 { ac_try='test -s conftest$ac_exeext'
8488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); }; }; then
8493 ac_cv_lib_z_deflate=yes
8495 echo "$as_me: failed program was:" >&5
8496 sed 's/^/| /' conftest.$ac_ext >&5
8498 ac_cv_lib_z_deflate=no
8500 rm -f conftest.err conftest.$ac_objext \
8501 conftest$ac_exeext conftest.$ac_ext
8502 LIBS=$ac_check_lib_save_LIBS
8504 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
8505 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
8506 if test $ac_cv_lib_z_deflate = yes; then
8507 cat >>confdefs.h <<_ACEOF
8518 echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
8519 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6
8520 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
8521 echo $ECHO_N "(cached) $ECHO_C" >&6
8523 ac_check_lib_save_LIBS=$LIBS
8525 cat >conftest.$ac_ext <<_ACEOF
8528 cat confdefs.h >>conftest.$ac_ext
8529 cat >>conftest.$ac_ext <<_ACEOF
8530 /* end confdefs.h. */
8532 /* Override any gcc2 internal prototype to avoid an error. */
8536 /* We use char because int might match the return type of a gcc2
8537 builtin and then its argument prototype would still apply. */
8538 char jpeg_write_raw_data ();
8542 jpeg_write_raw_data ();
8547 rm -f conftest.$ac_objext conftest$ac_exeext
8548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8549 (eval $ac_link) 2>conftest.er1
8551 grep -v '^ *+' conftest.er1 >conftest.err
8553 cat conftest.err >&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); } &&
8556 { ac_try='test -z "$ac_c_werror_flag"
8557 || test ! -s conftest.err'
8558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); }; } &&
8563 { ac_try='test -s conftest$ac_exeext'
8564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); }; }; then
8569 ac_cv_lib_jpeg_jpeg_write_raw_data=yes
8571 echo "$as_me: failed program was:" >&5
8572 sed 's/^/| /' conftest.$ac_ext >&5
8574 ac_cv_lib_jpeg_jpeg_write_raw_data=no
8576 rm -f conftest.err conftest.$ac_objext \
8577 conftest$ac_exeext conftest.$ac_ext
8578 LIBS=$ac_check_lib_save_LIBS
8580 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
8581 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6
8582 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
8583 cat >>confdefs.h <<_ACEOF
8584 #define HAVE_LIBJPEG 1
8594 echo "$as_me:$LINENO: checking for T1_LoadFont in -lt1" >&5
8595 echo $ECHO_N "checking for T1_LoadFont in -lt1... $ECHO_C" >&6
8596 if test "${ac_cv_lib_t1_T1_LoadFont+set}" = set; then
8597 echo $ECHO_N "(cached) $ECHO_C" >&6
8599 ac_check_lib_save_LIBS=$LIBS
8601 cat >conftest.$ac_ext <<_ACEOF
8604 cat confdefs.h >>conftest.$ac_ext
8605 cat >>conftest.$ac_ext <<_ACEOF
8606 /* end confdefs.h. */
8608 /* Override any gcc2 internal prototype to avoid an error. */
8612 /* We use char because int might match the return type of a gcc2
8613 builtin and then its argument prototype would still apply. */
8614 char T1_LoadFont ();
8623 rm -f conftest.$ac_objext conftest$ac_exeext
8624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8625 (eval $ac_link) 2>conftest.er1
8627 grep -v '^ *+' conftest.er1 >conftest.err
8629 cat conftest.err >&5
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); } &&
8632 { ac_try='test -z "$ac_c_werror_flag"
8633 || test ! -s conftest.err'
8634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); }; } &&
8639 { ac_try='test -s conftest$ac_exeext'
8640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); }; }; then
8645 ac_cv_lib_t1_T1_LoadFont=yes
8647 echo "$as_me: failed program was:" >&5
8648 sed 's/^/| /' conftest.$ac_ext >&5
8650 ac_cv_lib_t1_T1_LoadFont=no
8652 rm -f conftest.err conftest.$ac_objext \
8653 conftest$ac_exeext conftest.$ac_ext
8654 LIBS=$ac_check_lib_save_LIBS
8656 echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_LoadFont" >&5
8657 echo "${ECHO_T}$ac_cv_lib_t1_T1_LoadFont" >&6
8658 if test $ac_cv_lib_t1_T1_LoadFont = yes; then
8659 cat >>confdefs.h <<_ACEOF
8660 #define HAVE_LIBT1 1
8671 echo "$as_me:$LINENO: checking for byte order" >&5
8672 echo $ECHO_N "checking for byte order... $ECHO_C" >&6
8673 if test "$cross_compiling" = yes; then
8676 cat >conftest.$ac_ext <<_ACEOF
8679 cat confdefs.h >>conftest.$ac_ext
8680 cat >>conftest.$ac_ext <<_ACEOF
8681 /* end confdefs.h. */
8683 int main (int argc, char *argv[])
8690 rm -f conftest$ac_exeext
8691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8692 (eval $ac_link) 2>&5
8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); }; }; then
8703 echo "$as_me: program exited with status $ac_status" >&5
8704 echo "$as_me: failed program was:" >&5
8705 sed 's/^/| /' conftest.$ac_ext >&5
8710 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8714 if test "x${CROSSCOMPILE}" = "x1"; then
8715 echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
8716 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6
8717 echo "$as_me:$LINENO: checking target system type" >&5
8718 echo $ECHO_N "checking target system type... $ECHO_C" >&6
8719 if test "${ac_cv_target+set}" = set; then
8720 echo $ECHO_N "(cached) $ECHO_C" >&6
8722 ac_cv_target_alias=$target_alias
8723 test "x$ac_cv_target_alias" = "x" &&
8724 ac_cv_target_alias=$ac_cv_host_alias
8725 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
8726 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
8727 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
8728 { (exit 1); exit 1; }; }
8731 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
8732 echo "${ECHO_T}$ac_cv_target" >&6
8733 target=$ac_cv_target
8734 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
8735 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
8736 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
8739 # The aliases save the names the user supplied, while $host etc.
8740 # will get canonicalized.
8741 test -n "$target_alias" &&
8742 test "$program_prefix$program_suffix$program_transform_name" = \
8744 program_prefix=${target_alias}-
8745 echo "$as_me:$LINENO: checking for byte order, try 2" >&5
8746 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6
8751 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
8758 if test "x${LITTLEENDIAN}" = "x1"; then
8759 echo "$as_me:$LINENO: result: little endian" >&5
8760 echo "${ECHO_T}little endian" >&6
8764 if test "x${BIGENDIAN}" = "x1"; then
8765 echo "$as_me:$LINENO: result: big endian" >&5
8766 echo "${ECHO_T}big endian" >&6
8769 export WORDS_BIGENDIAN
8770 cat >>confdefs.h <<_ACEOF
8771 #define WORDS_BIGENDIAN 1
8775 if test "x${BYTEORDERCHECKOK}" != "x1"; then
8776 echo "$as_me:$LINENO: result: unknown" >&5
8777 echo "${ECHO_T}unknown" >&6
8778 echo Byte order could not determined.
8784 echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
8785 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6
8786 if test "$cross_compiling" = yes; then
8789 cat >conftest.$ac_ext <<_ACEOF
8792 cat confdefs.h >>conftest.$ac_ext
8793 cat >>conftest.$ac_ext <<_ACEOF
8794 /* end confdefs.h. */
8797 int main (int argc, char*argv[])
8799 return system("test `touch config.tmp2`");
8803 rm -f conftest$ac_exeext
8804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8805 (eval $ac_link) 2>&5
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); }; }; then
8816 echo "$as_me: program exited with status $ac_status" >&5
8817 echo "$as_me: failed program was:" >&5
8818 sed 's/^/| /' conftest.$ac_ext >&5
8821 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8824 if test "x${OK}" = "xOK";then
8825 test -f config.tmp2 || OK=
8828 if test "x${CROSSCOMPILE}" = "x1";then
8831 if test "x${OK}" = "xOK";then
8833 echo "$as_me:$LINENO: result: yes" >&5
8834 echo "${ECHO_T}yes" >&6
8836 export SYSTEM_BACKTICKS
8837 cat >>confdefs.h <<_ACEOF
8838 #define SYSTEM_BACKTICKS 1
8842 echo "$as_me:$LINENO: result: no" >&5
8843 echo "${ECHO_T}no" >&6
8848 test "$program_prefix" != NONE &&
8849 program_transform_name="s,^,$program_prefix,;$program_transform_name"
8850 # Use a double $ so make ignores it.
8851 test "$program_suffix" != NONE &&
8852 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
8853 # Double any \ or $. echo might interpret backslashes.
8854 # By default was `s,x,x', remove it if useless.
8855 cat <<\_ACEOF >conftest.sed
8856 s/[\\$]/&&/g;s/;s,x,x,$//
8858 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
8862 ac_config_headers="$ac_config_headers config.h"
8870 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8871 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8872 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8873 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8875 echo $ECHO_N "(cached) $ECHO_C" >&6
8877 cat >conftest.$ac_ext <<_ACEOF
8880 cat confdefs.h >>conftest.$ac_ext
8881 cat >>conftest.$ac_ext <<_ACEOF
8882 /* end confdefs.h. */
8883 #include <sys/types.h>
8895 rm -f conftest.$ac_objext
8896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8897 (eval $ac_compile) 2>conftest.er1
8899 grep -v '^ *+' conftest.er1 >conftest.err
8901 cat conftest.err >&5
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); } &&
8904 { ac_try='test -z "$ac_c_werror_flag"
8905 || test ! -s conftest.err'
8906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); }; } &&
8911 { ac_try='test -s conftest.$ac_objext'
8912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); }; }; then
8917 eval "$as_ac_Header=yes"
8919 echo "$as_me: failed program was:" >&5
8920 sed 's/^/| /' conftest.$ac_ext >&5
8922 eval "$as_ac_Header=no"
8924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8929 cat >>confdefs.h <<_ACEOF
8930 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8933 ac_header_dirent=$ac_hdr; break
8937 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8938 if test $ac_header_dirent = dirent.h; then
8939 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8940 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8941 if test "${ac_cv_search_opendir+set}" = set; then
8942 echo $ECHO_N "(cached) $ECHO_C" >&6
8944 ac_func_search_save_LIBS=$LIBS
8945 ac_cv_search_opendir=no
8946 cat >conftest.$ac_ext <<_ACEOF
8949 cat confdefs.h >>conftest.$ac_ext
8950 cat >>conftest.$ac_ext <<_ACEOF
8951 /* end confdefs.h. */
8953 /* Override any gcc2 internal prototype to avoid an error. */
8957 /* We use char because int might match the return type of a gcc2
8958 builtin and then its argument prototype would still apply. */
8968 rm -f conftest.$ac_objext conftest$ac_exeext
8969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8970 (eval $ac_link) 2>conftest.er1
8972 grep -v '^ *+' conftest.er1 >conftest.err
8974 cat conftest.err >&5
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); } &&
8977 { ac_try='test -z "$ac_c_werror_flag"
8978 || test ! -s conftest.err'
8979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); }; } &&
8984 { ac_try='test -s conftest$ac_exeext'
8985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); }; }; then
8990 ac_cv_search_opendir="none required"
8992 echo "$as_me: failed program was:" >&5
8993 sed 's/^/| /' conftest.$ac_ext >&5
8996 rm -f conftest.err conftest.$ac_objext \
8997 conftest$ac_exeext conftest.$ac_ext
8998 if test "$ac_cv_search_opendir" = no; then
8999 for ac_lib in dir; do
9000 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9001 cat >conftest.$ac_ext <<_ACEOF
9004 cat confdefs.h >>conftest.$ac_ext
9005 cat >>conftest.$ac_ext <<_ACEOF
9006 /* end confdefs.h. */
9008 /* Override any gcc2 internal prototype to avoid an error. */
9012 /* We use char because int might match the return type of a gcc2
9013 builtin and then its argument prototype would still apply. */
9023 rm -f conftest.$ac_objext conftest$ac_exeext
9024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9025 (eval $ac_link) 2>conftest.er1
9027 grep -v '^ *+' conftest.er1 >conftest.err
9029 cat conftest.err >&5
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); } &&
9032 { ac_try='test -z "$ac_c_werror_flag"
9033 || test ! -s conftest.err'
9034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); }; } &&
9039 { ac_try='test -s conftest$ac_exeext'
9040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); }; }; then
9045 ac_cv_search_opendir="-l$ac_lib"
9048 echo "$as_me: failed program was:" >&5
9049 sed 's/^/| /' conftest.$ac_ext >&5
9052 rm -f conftest.err conftest.$ac_objext \
9053 conftest$ac_exeext conftest.$ac_ext
9056 LIBS=$ac_func_search_save_LIBS
9058 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9059 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9060 if test "$ac_cv_search_opendir" != no; then
9061 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9066 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9067 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9068 if test "${ac_cv_search_opendir+set}" = set; then
9069 echo $ECHO_N "(cached) $ECHO_C" >&6
9071 ac_func_search_save_LIBS=$LIBS
9072 ac_cv_search_opendir=no
9073 cat >conftest.$ac_ext <<_ACEOF
9076 cat confdefs.h >>conftest.$ac_ext
9077 cat >>conftest.$ac_ext <<_ACEOF
9078 /* end confdefs.h. */
9080 /* Override any gcc2 internal prototype to avoid an error. */
9084 /* We use char because int might match the return type of a gcc2
9085 builtin and then its argument prototype would still apply. */
9095 rm -f conftest.$ac_objext conftest$ac_exeext
9096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9097 (eval $ac_link) 2>conftest.er1
9099 grep -v '^ *+' conftest.er1 >conftest.err
9101 cat conftest.err >&5
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); } &&
9104 { ac_try='test -z "$ac_c_werror_flag"
9105 || test ! -s conftest.err'
9106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); }; } &&
9111 { ac_try='test -s conftest$ac_exeext'
9112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); }; }; then
9117 ac_cv_search_opendir="none required"
9119 echo "$as_me: failed program was:" >&5
9120 sed 's/^/| /' conftest.$ac_ext >&5
9123 rm -f conftest.err conftest.$ac_objext \
9124 conftest$ac_exeext conftest.$ac_ext
9125 if test "$ac_cv_search_opendir" = no; then
9127 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9128 cat >conftest.$ac_ext <<_ACEOF
9131 cat confdefs.h >>conftest.$ac_ext
9132 cat >>conftest.$ac_ext <<_ACEOF
9133 /* end confdefs.h. */
9135 /* Override any gcc2 internal prototype to avoid an error. */
9139 /* We use char because int might match the return type of a gcc2
9140 builtin and then its argument prototype would still apply. */
9150 rm -f conftest.$ac_objext conftest$ac_exeext
9151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9152 (eval $ac_link) 2>conftest.er1
9154 grep -v '^ *+' conftest.er1 >conftest.err
9156 cat conftest.err >&5
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); } &&
9159 { ac_try='test -z "$ac_c_werror_flag"
9160 || test ! -s conftest.err'
9161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); }; } &&
9166 { ac_try='test -s conftest$ac_exeext'
9167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); }; }; then
9172 ac_cv_search_opendir="-l$ac_lib"
9175 echo "$as_me: failed program was:" >&5
9176 sed 's/^/| /' conftest.$ac_ext >&5
9179 rm -f conftest.err conftest.$ac_objext \
9180 conftest$ac_exeext conftest.$ac_ext
9183 LIBS=$ac_func_search_save_LIBS
9185 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9186 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9187 if test "$ac_cv_search_opendir" != no; then
9188 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9194 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9195 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9196 if test "${ac_cv_header_stdc+set}" = set; then
9197 echo $ECHO_N "(cached) $ECHO_C" >&6
9199 cat >conftest.$ac_ext <<_ACEOF
9202 cat confdefs.h >>conftest.$ac_ext
9203 cat >>conftest.$ac_ext <<_ACEOF
9204 /* end confdefs.h. */
9218 rm -f conftest.$ac_objext
9219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9220 (eval $ac_compile) 2>conftest.er1
9222 grep -v '^ *+' conftest.er1 >conftest.err
9224 cat conftest.err >&5
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); } &&
9227 { ac_try='test -z "$ac_c_werror_flag"
9228 || test ! -s conftest.err'
9229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 (exit $ac_status); }; } &&
9234 { ac_try='test -s conftest.$ac_objext'
9235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); }; }; then
9240 ac_cv_header_stdc=yes
9242 echo "$as_me: failed program was:" >&5
9243 sed 's/^/| /' conftest.$ac_ext >&5
9245 ac_cv_header_stdc=no
9247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9249 if test $ac_cv_header_stdc = yes; then
9250 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9251 cat >conftest.$ac_ext <<_ACEOF
9254 cat confdefs.h >>conftest.$ac_ext
9255 cat >>conftest.$ac_ext <<_ACEOF
9256 /* end confdefs.h. */
9260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9261 $EGREP "memchr" >/dev/null 2>&1; then
9264 ac_cv_header_stdc=no
9270 if test $ac_cv_header_stdc = yes; then
9271 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9272 cat >conftest.$ac_ext <<_ACEOF
9275 cat confdefs.h >>conftest.$ac_ext
9276 cat >>conftest.$ac_ext <<_ACEOF
9277 /* end confdefs.h. */
9281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9282 $EGREP "free" >/dev/null 2>&1; then
9285 ac_cv_header_stdc=no
9291 if test $ac_cv_header_stdc = yes; then
9292 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9293 if test "$cross_compiling" = yes; then
9296 cat >conftest.$ac_ext <<_ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h. */
9303 #if ((' ' & 0x0FF) == 0x020)
9304 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9305 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9307 # define ISLOWER(c) \
9308 (('a' <= (c) && (c) <= 'i') \
9309 || ('j' <= (c) && (c) <= 'r') \
9310 || ('s' <= (c) && (c) <= 'z'))
9311 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9314 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9319 for (i = 0; i < 256; i++)
9320 if (XOR (islower (i), ISLOWER (i))
9321 || toupper (i) != TOUPPER (i))
9326 rm -f conftest$ac_exeext
9327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9328 (eval $ac_link) 2>&5
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); }; }; then
9339 echo "$as_me: program exited with status $ac_status" >&5
9340 echo "$as_me: failed program was:" >&5
9341 sed 's/^/| /' conftest.$ac_ext >&5
9344 ac_cv_header_stdc=no
9346 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9350 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9351 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9352 if test $ac_cv_header_stdc = yes; then
9354 cat >>confdefs.h <<\_ACEOF
9355 #define STDC_HEADERS 1
9374 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
9376 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9378 echo "$as_me:$LINENO: checking for $ac_header" >&5
9379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9381 echo $ECHO_N "(cached) $ECHO_C" >&6
9383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9384 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9386 # Is the header compilable?
9387 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9388 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9389 cat >conftest.$ac_ext <<_ACEOF
9392 cat confdefs.h >>conftest.$ac_ext
9393 cat >>conftest.$ac_ext <<_ACEOF
9394 /* end confdefs.h. */
9395 $ac_includes_default
9396 #include <$ac_header>
9398 rm -f conftest.$ac_objext
9399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9400 (eval $ac_compile) 2>conftest.er1
9402 grep -v '^ *+' conftest.er1 >conftest.err
9404 cat conftest.err >&5
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); } &&
9407 { ac_try='test -z "$ac_c_werror_flag"
9408 || test ! -s conftest.err'
9409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); }; } &&
9414 { ac_try='test -s conftest.$ac_objext'
9415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); }; }; then
9420 ac_header_compiler=yes
9422 echo "$as_me: failed program was:" >&5
9423 sed 's/^/| /' conftest.$ac_ext >&5
9425 ac_header_compiler=no
9427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9428 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9429 echo "${ECHO_T}$ac_header_compiler" >&6
9431 # Is the header present?
9432 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9433 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9434 cat >conftest.$ac_ext <<_ACEOF
9437 cat confdefs.h >>conftest.$ac_ext
9438 cat >>conftest.$ac_ext <<_ACEOF
9439 /* end confdefs.h. */
9440 #include <$ac_header>
9442 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9443 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9445 grep -v '^ *+' conftest.er1 >conftest.err
9447 cat conftest.err >&5
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); } >/dev/null; then
9450 if test -s conftest.err; then
9451 ac_cpp_err=$ac_c_preproc_warn_flag
9452 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9459 if test -z "$ac_cpp_err"; then
9460 ac_header_preproc=yes
9462 echo "$as_me: failed program was:" >&5
9463 sed 's/^/| /' conftest.$ac_ext >&5
9465 ac_header_preproc=no
9467 rm -f conftest.err conftest.$ac_ext
9468 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9469 echo "${ECHO_T}$ac_header_preproc" >&6
9471 # So? What about this header?
9472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9474 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9475 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9477 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9478 ac_header_preproc=yes
9481 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9482 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9483 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9484 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9485 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9486 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9487 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9488 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9490 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9491 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9492 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9495 ## ------------------------------------------ ##
9496 ## Report this to the AC_PACKAGE_NAME lists. ##
9497 ## ------------------------------------------ ##
9500 sed "s/^/$as_me: WARNING: /" >&2
9503 echo "$as_me:$LINENO: checking for $ac_header" >&5
9504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9506 echo $ECHO_N "(cached) $ECHO_C" >&6
9508 eval "$as_ac_Header=\$ac_header_preproc"
9510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9511 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9514 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9515 cat >>confdefs.h <<_ACEOF
9516 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9524 cat >>confdefs.h <<_ACEOF
9525 #define PACKAGE "$PACKAGE"
9528 cat >>confdefs.h <<_ACEOF
9529 #define VERSION "$VERSION"
9538 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9539 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9540 if test "${ac_cv_c_const+set}" = set; then
9541 echo $ECHO_N "(cached) $ECHO_C" >&6
9543 cat >conftest.$ac_ext <<_ACEOF
9546 cat confdefs.h >>conftest.$ac_ext
9547 cat >>conftest.$ac_ext <<_ACEOF
9548 /* end confdefs.h. */
9553 /* FIXME: Include the comments suggested by Paul. */
9555 /* Ultrix mips cc rejects this. */
9556 typedef int charset[2];
9558 /* SunOS 4.1.1 cc rejects this. */
9559 char const *const *ccp;
9561 /* NEC SVR4.0.2 mips cc rejects this. */
9562 struct point {int x, y;};
9563 static struct point const zero = {0,0};
9564 /* AIX XL C 1.02.0.0 rejects this.
9565 It does not let you subtract one const X* pointer from another in
9566 an arm of an if-expression whose if-part is not a constant
9568 const char *g = "string";
9569 ccp = &g + (g ? g-g : 0);
9570 /* HPUX 7.0 cc rejects these. */
9573 ccp = (char const *const *) p;
9574 { /* SCO 3.2v4 cc rejects this. */
9576 char const *s = 0 ? (char *) 0 : (char const *) 0;
9580 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9582 const int *foo = &x[0];
9585 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9586 typedef const int *iptr;
9590 { /* AIX XL C 1.02.0.0 rejects this saying
9591 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9592 struct s { int j; const int *ap[3]; };
9593 struct s *b; b->j = 5;
9595 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9604 rm -f conftest.$ac_objext
9605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9606 (eval $ac_compile) 2>conftest.er1
9608 grep -v '^ *+' conftest.er1 >conftest.err
9610 cat conftest.err >&5
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); } &&
9613 { ac_try='test -z "$ac_c_werror_flag"
9614 || test ! -s conftest.err'
9615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); }; } &&
9620 { ac_try='test -s conftest.$ac_objext'
9621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }; }; then
9628 echo "$as_me: failed program was:" >&5
9629 sed 's/^/| /' conftest.$ac_ext >&5
9633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9635 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9636 echo "${ECHO_T}$ac_cv_c_const" >&6
9637 if test $ac_cv_c_const = no; then
9639 cat >>confdefs.h <<\_ACEOF
9645 echo "$as_me:$LINENO: checking for inline" >&5
9646 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9647 if test "${ac_cv_c_inline+set}" = set; then
9648 echo $ECHO_N "(cached) $ECHO_C" >&6
9651 for ac_kw in inline __inline__ __inline; do
9652 cat >conftest.$ac_ext <<_ACEOF
9655 cat confdefs.h >>conftest.$ac_ext
9656 cat >>conftest.$ac_ext <<_ACEOF
9657 /* end confdefs.h. */
9660 static $ac_kw foo_t static_foo () {return 0; }
9661 $ac_kw foo_t foo () {return 0; }
9665 rm -f conftest.$ac_objext
9666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9667 (eval $ac_compile) 2>conftest.er1
9669 grep -v '^ *+' conftest.er1 >conftest.err
9671 cat conftest.err >&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); } &&
9674 { ac_try='test -z "$ac_c_werror_flag"
9675 || test ! -s conftest.err'
9676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); }; } &&
9681 { ac_try='test -s conftest.$ac_objext'
9682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); }; }; then
9687 ac_cv_c_inline=$ac_kw; break
9689 echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.$ac_ext >&5
9693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9697 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9698 echo "${ECHO_T}$ac_cv_c_inline" >&6
9701 case $ac_cv_c_inline in
9704 case $ac_cv_c_inline in
9706 *) ac_val=$ac_cv_c_inline;;
9708 cat >>confdefs.h <<_ACEOF
9710 #define inline $ac_val
9716 echo "$as_me:$LINENO: checking for off_t" >&5
9717 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
9718 if test "${ac_cv_type_off_t+set}" = set; then
9719 echo $ECHO_N "(cached) $ECHO_C" >&6
9721 cat >conftest.$ac_ext <<_ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h. */
9727 $ac_includes_default
9739 rm -f conftest.$ac_objext
9740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9741 (eval $ac_compile) 2>conftest.er1
9743 grep -v '^ *+' conftest.er1 >conftest.err
9745 cat conftest.err >&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); } &&
9748 { ac_try='test -z "$ac_c_werror_flag"
9749 || test ! -s conftest.err'
9750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); }; } &&
9755 { ac_try='test -s conftest.$ac_objext'
9756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; }; then
9761 ac_cv_type_off_t=yes
9763 echo "$as_me: failed program was:" >&5
9764 sed 's/^/| /' conftest.$ac_ext >&5
9768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9770 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9771 echo "${ECHO_T}$ac_cv_type_off_t" >&6
9772 if test $ac_cv_type_off_t = yes; then
9776 cat >>confdefs.h <<_ACEOF
9782 echo "$as_me:$LINENO: checking for size_t" >&5
9783 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9784 if test "${ac_cv_type_size_t+set}" = set; then
9785 echo $ECHO_N "(cached) $ECHO_C" >&6
9787 cat >conftest.$ac_ext <<_ACEOF
9790 cat confdefs.h >>conftest.$ac_ext
9791 cat >>conftest.$ac_ext <<_ACEOF
9792 /* end confdefs.h. */
9793 $ac_includes_default
9799 if (sizeof (size_t))
9805 rm -f conftest.$ac_objext
9806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9807 (eval $ac_compile) 2>conftest.er1
9809 grep -v '^ *+' conftest.er1 >conftest.err
9811 cat conftest.err >&5
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); } &&
9814 { ac_try='test -z "$ac_c_werror_flag"
9815 || test ! -s conftest.err'
9816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820 (exit $ac_status); }; } &&
9821 { ac_try='test -s conftest.$ac_objext'
9822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); }; }; then
9827 ac_cv_type_size_t=yes
9829 echo "$as_me: failed program was:" >&5
9830 sed 's/^/| /' conftest.$ac_ext >&5
9832 ac_cv_type_size_t=no
9834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9836 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9837 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9838 if test $ac_cv_type_size_t = yes; then
9842 cat >>confdefs.h <<_ACEOF
9843 #define size_t unsigned
9848 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9849 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9850 if test "${ac_cv_struct_tm+set}" = set; then
9851 echo $ECHO_N "(cached) $ECHO_C" >&6
9853 cat >conftest.$ac_ext <<_ACEOF
9856 cat confdefs.h >>conftest.$ac_ext
9857 cat >>conftest.$ac_ext <<_ACEOF
9858 /* end confdefs.h. */
9859 #include <sys/types.h>
9865 struct tm *tp; tp->tm_sec;
9870 rm -f conftest.$ac_objext
9871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9872 (eval $ac_compile) 2>conftest.er1
9874 grep -v '^ *+' conftest.er1 >conftest.err
9876 cat conftest.err >&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); } &&
9879 { ac_try='test -z "$ac_c_werror_flag"
9880 || test ! -s conftest.err'
9881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); }; } &&
9886 { ac_try='test -s conftest.$ac_objext'
9887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); }; }; then
9892 ac_cv_struct_tm=time.h
9894 echo "$as_me: failed program was:" >&5
9895 sed 's/^/| /' conftest.$ac_ext >&5
9897 ac_cv_struct_tm=sys/time.h
9899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9901 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9902 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9903 if test $ac_cv_struct_tm = sys/time.h; then
9905 cat >>confdefs.h <<\_ACEOF
9906 #define TM_IN_SYS_TIME 1
9911 echo "$as_me:$LINENO: checking for boolean" >&5
9912 echo $ECHO_N "checking for boolean... $ECHO_C" >&6
9913 if test "${ac_cv_type_boolean+set}" = set; then
9914 echo $ECHO_N "(cached) $ECHO_C" >&6
9916 cat >conftest.$ac_ext <<_ACEOF
9919 cat confdefs.h >>conftest.$ac_ext
9920 cat >>conftest.$ac_ext <<_ACEOF
9921 /* end confdefs.h. */
9922 $ac_includes_default
9928 if (sizeof (boolean))
9934 rm -f conftest.$ac_objext
9935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9936 (eval $ac_compile) 2>conftest.er1
9938 grep -v '^ *+' conftest.er1 >conftest.err
9940 cat conftest.err >&5
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); } &&
9943 { ac_try='test -z "$ac_c_werror_flag"
9944 || test ! -s conftest.err'
9945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); }; } &&
9950 { ac_try='test -s conftest.$ac_objext'
9951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); }; }; then
9956 ac_cv_type_boolean=yes
9958 echo "$as_me: failed program was:" >&5
9959 sed 's/^/| /' conftest.$ac_ext >&5
9961 ac_cv_type_boolean=no
9963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9965 echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
9966 echo "${ECHO_T}$ac_cv_type_boolean" >&6
9967 if test $ac_cv_type_boolean = yes; then
9971 cat >>confdefs.h <<_ACEOF
9988 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
9990 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9991 echo "$as_me:$LINENO: checking for $ac_func" >&5
9992 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9993 if eval "test \"\${$as_ac_var+set}\" = set"; then
9994 echo $ECHO_N "(cached) $ECHO_C" >&6
9996 cat >conftest.$ac_ext <<_ACEOF
9999 cat confdefs.h >>conftest.$ac_ext
10000 cat >>conftest.$ac_ext <<_ACEOF
10001 /* end confdefs.h. */
10002 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10004 #define $ac_func innocuous_$ac_func
10006 /* System header to define __stub macros and hopefully few prototypes,
10007 which can conflict with char $ac_func (); below.
10008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10009 <limits.h> exists even on freestanding compilers. */
10012 # include <limits.h>
10014 # include <assert.h>
10019 /* Override any gcc2 internal prototype to avoid an error. */
10024 /* We use char because int might match the return type of a gcc2
10025 builtin and then its argument prototype would still apply. */
10027 /* The GNU C library defines this for functions which it implements
10028 to always fail with ENOSYS. Some functions are actually named
10029 something starting with __ and the normal name is an alias. */
10030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10033 char (*f) () = $ac_func;
10042 return f != $ac_func;
10047 rm -f conftest.$ac_objext conftest$ac_exeext
10048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10049 (eval $ac_link) 2>conftest.er1
10051 grep -v '^ *+' conftest.er1 >conftest.err
10053 cat conftest.err >&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } &&
10056 { ac_try='test -z "$ac_c_werror_flag"
10057 || test ! -s conftest.err'
10058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10059 (eval $ac_try) 2>&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; } &&
10063 { ac_try='test -s conftest$ac_exeext'
10064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10065 (eval $ac_try) 2>&5
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); }; }; then
10069 eval "$as_ac_var=yes"
10071 echo "$as_me: failed program was:" >&5
10072 sed 's/^/| /' conftest.$ac_ext >&5
10074 eval "$as_ac_var=no"
10076 rm -f conftest.err conftest.$ac_objext \
10077 conftest$ac_exeext conftest.$ac_ext
10079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10080 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10081 if test `eval echo '${'$as_ac_var'}'` = yes; then
10082 cat >>confdefs.h <<_ACEOF
10083 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10090 # ------------------------------------------------------------------
10094 # Extract the first word of "freetype-config", so it can be a program name with args.
10095 set dummy freetype-config; ac_word=$2
10096 echo "$as_me:$LINENO: checking for $ac_word" >&5
10097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10098 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
10099 echo $ECHO_N "(cached) $ECHO_C" >&6
10101 case $FREETYPE_CONFIG in
10103 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
10106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10107 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
10108 for as_dir in $as_dummy
10111 test -z "$as_dir" && as_dir=.
10112 for ac_exec_ext in '' $ac_executable_extensions; do
10113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10114 ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10124 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
10126 if test -n "$FREETYPE_CONFIG"; then
10127 echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
10128 echo "${ECHO_T}$FREETYPE_CONFIG" >&6
10130 echo "$as_me:$LINENO: result: no" >&5
10131 echo "${ECHO_T}no" >&6
10135 OLDCPPFLAGS="${CPPFLAGS}"
10137 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
10138 CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
10139 else if test -d /usr/include/freetype2; then
10140 CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
10141 else if test -d /usr/local/include/freetype2; then
10142 CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
10147 if test "x${FREETYPE_CONFIG}" '=' "x";then
10148 # if we didn't find the freetype-config program, we won't
10149 # know where the libs are expected to be. So just blindly
10150 # try to link against them.
10151 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
10152 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
10153 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
10154 echo $ECHO_N "(cached) $ECHO_C" >&6
10156 ac_check_lib_save_LIBS=$LIBS
10157 LIBS="-lfreetype $LIBS"
10158 cat >conftest.$ac_ext <<_ACEOF
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h. */
10165 /* Override any gcc2 internal prototype to avoid an error. */
10169 /* We use char because int might match the return type of a gcc2
10170 builtin and then its argument prototype would still apply. */
10171 char FT_Init_FreeType ();
10175 FT_Init_FreeType ();
10180 rm -f conftest.$ac_objext conftest$ac_exeext
10181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10182 (eval $ac_link) 2>conftest.er1
10184 grep -v '^ *+' conftest.er1 >conftest.err
10186 cat conftest.err >&5
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); } &&
10189 { ac_try='test -z "$ac_c_werror_flag"
10190 || test ! -s conftest.err'
10191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10192 (eval $ac_try) 2>&5
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); }; } &&
10196 { ac_try='test -s conftest$ac_exeext'
10197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198 (eval $ac_try) 2>&5
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); }; }; then
10202 ac_cv_lib_freetype_FT_Init_FreeType=yes
10204 echo "$as_me: failed program was:" >&5
10205 sed 's/^/| /' conftest.$ac_ext >&5
10207 ac_cv_lib_freetype_FT_Init_FreeType=no
10209 rm -f conftest.err conftest.$ac_objext \
10210 conftest$ac_exeext conftest.$ac_ext
10211 LIBS=$ac_check_lib_save_LIBS
10213 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
10214 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10215 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
10216 HAVE_LIB_FREETYPE=1
10222 for ac_header in ft2build.h
10224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10226 echo "$as_me:$LINENO: checking for $ac_header" >&5
10227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10229 echo $ECHO_N "(cached) $ECHO_C" >&6
10231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10234 # Is the header compilable?
10235 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10236 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10237 cat >conftest.$ac_ext <<_ACEOF
10240 cat confdefs.h >>conftest.$ac_ext
10241 cat >>conftest.$ac_ext <<_ACEOF
10242 /* end confdefs.h. */
10243 $ac_includes_default
10244 #include <$ac_header>
10246 rm -f conftest.$ac_objext
10247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10248 (eval $ac_compile) 2>conftest.er1
10250 grep -v '^ *+' conftest.er1 >conftest.err
10252 cat conftest.err >&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); } &&
10255 { ac_try='test -z "$ac_c_werror_flag"
10256 || test ! -s conftest.err'
10257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258 (eval $ac_try) 2>&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); }; } &&
10262 { ac_try='test -s conftest.$ac_objext'
10263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10264 (eval $ac_try) 2>&5
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); }; }; then
10268 ac_header_compiler=yes
10270 echo "$as_me: failed program was:" >&5
10271 sed 's/^/| /' conftest.$ac_ext >&5
10273 ac_header_compiler=no
10275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10276 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10277 echo "${ECHO_T}$ac_header_compiler" >&6
10279 # Is the header present?
10280 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10281 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10282 cat >conftest.$ac_ext <<_ACEOF
10285 cat confdefs.h >>conftest.$ac_ext
10286 cat >>conftest.$ac_ext <<_ACEOF
10287 /* end confdefs.h. */
10288 #include <$ac_header>
10290 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10293 grep -v '^ *+' conftest.er1 >conftest.err
10295 cat conftest.err >&5
10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); } >/dev/null; then
10298 if test -s conftest.err; then
10299 ac_cpp_err=$ac_c_preproc_warn_flag
10300 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10307 if test -z "$ac_cpp_err"; then
10308 ac_header_preproc=yes
10310 echo "$as_me: failed program was:" >&5
10311 sed 's/^/| /' conftest.$ac_ext >&5
10313 ac_header_preproc=no
10315 rm -f conftest.err conftest.$ac_ext
10316 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10317 echo "${ECHO_T}$ac_header_preproc" >&6
10319 # So? What about this header?
10320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10322 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10323 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10325 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10326 ac_header_preproc=yes
10329 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10330 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10331 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10332 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10333 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10334 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10335 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10336 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10339 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10340 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10343 ## ------------------------------------------ ##
10344 ## Report this to the AC_PACKAGE_NAME lists. ##
10345 ## ------------------------------------------ ##
10348 sed "s/^/$as_me: WARNING: /" >&2
10351 echo "$as_me:$LINENO: checking for $ac_header" >&5
10352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10354 echo $ECHO_N "(cached) $ECHO_C" >&6
10356 eval "$as_ac_Header=\$ac_header_preproc"
10358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10363 cat >>confdefs.h <<_ACEOF
10364 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10371 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
10373 for ac_header in freetype/freetype.h
10375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10377 echo "$as_me:$LINENO: checking for $ac_header" >&5
10378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10380 echo $ECHO_N "(cached) $ECHO_C" >&6
10382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10385 # Is the header compilable?
10386 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10387 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10388 cat >conftest.$ac_ext <<_ACEOF
10391 cat confdefs.h >>conftest.$ac_ext
10392 cat >>conftest.$ac_ext <<_ACEOF
10393 /* end confdefs.h. */
10394 $ac_includes_default
10395 #include <$ac_header>
10397 rm -f conftest.$ac_objext
10398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10399 (eval $ac_compile) 2>conftest.er1
10401 grep -v '^ *+' conftest.er1 >conftest.err
10403 cat conftest.err >&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); } &&
10406 { ac_try='test -z "$ac_c_werror_flag"
10407 || test ! -s conftest.err'
10408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409 (eval $ac_try) 2>&5
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }; } &&
10413 { ac_try='test -s conftest.$ac_objext'
10414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10415 (eval $ac_try) 2>&5
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); }; }; then
10419 ac_header_compiler=yes
10421 echo "$as_me: failed program was:" >&5
10422 sed 's/^/| /' conftest.$ac_ext >&5
10424 ac_header_compiler=no
10426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10427 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10428 echo "${ECHO_T}$ac_header_compiler" >&6
10430 # Is the header present?
10431 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10432 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10433 cat >conftest.$ac_ext <<_ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h. */
10439 #include <$ac_header>
10441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10444 grep -v '^ *+' conftest.er1 >conftest.err
10446 cat conftest.err >&5
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); } >/dev/null; then
10449 if test -s conftest.err; then
10450 ac_cpp_err=$ac_c_preproc_warn_flag
10451 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10458 if test -z "$ac_cpp_err"; then
10459 ac_header_preproc=yes
10461 echo "$as_me: failed program was:" >&5
10462 sed 's/^/| /' conftest.$ac_ext >&5
10464 ac_header_preproc=no
10466 rm -f conftest.err conftest.$ac_ext
10467 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10468 echo "${ECHO_T}$ac_header_preproc" >&6
10470 # So? What about this header?
10471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10473 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10474 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10476 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10477 ac_header_preproc=yes
10480 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10481 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10482 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10483 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10484 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10485 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10486 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10487 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10489 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10490 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10491 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10494 ## ------------------------------------------ ##
10495 ## Report this to the AC_PACKAGE_NAME lists. ##
10496 ## ------------------------------------------ ##
10499 sed "s/^/$as_me: WARNING: /" >&2
10502 echo "$as_me:$LINENO: checking for $ac_header" >&5
10503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10505 echo $ECHO_N "(cached) $ECHO_C" >&6
10507 eval "$as_ac_Header=\$ac_header_preproc"
10509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10510 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10514 cat >>confdefs.h <<_ACEOF
10515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10517 HAVE_FREETYPE_FREETYPE_H=1
10524 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
10525 "x${FREETYPE_CONFIG}" '!=' "x";then
10526 if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
10529 if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
10534 if test "x${HAVE_FREETYPE}" = "x1"; then
10535 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
10536 LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
10538 LIBS="$LIBS -lfreetype"
10541 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
10542 HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
10545 echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
10546 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6
10548 cat > conftest.c << EOF
10549 $HAVE_FT2BUILD_H_DEFINE
10551 #ifdef HAVE_FT2BUILD_H
10552 #include <ft2build.h>
10553 #include FT_FREETYPE_H
10554 #include FT_GLYPH_H
10555 #include FT_SIZES_H
10556 #include FT_SFNT_NAMES_H
10557 #include FT_TRUETYPE_IDS_H
10558 #include FT_OUTLINE_H
10560 #include <freetype/freetype.h>
10561 #include <freetype/ftglyph.h>
10562 #include <freetype/ftsizes.h>
10563 #include <freetype/ftsnames.h>
10564 #include <freetype/ttnameid.h>
10565 #include <freetype/ftoutln.h>
10570 FT_Library ftlibrary;
10582 FT_Init_FreeType(&ftlibrary);
10583 FT_New_Face(ftlibrary, "filename", 0, &face);
10584 i = face->num_glyphs - 1;
10585 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
10586 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
10587 FT_Get_Postscript_Name(face);
10588 FT_Get_Char_Index(face, 33);
10589 FT_Get_First_Char(face, &i);
10590 FT_Get_Next_Char(face, 33, &i);
10591 if(FT_HAS_GLYPH_NAMES(face)) {
10592 FT_Get_Glyph_Name(face, 33, name, 127);
10594 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
10595 FT_Get_Glyph(face->glyph, &glyph);
10596 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
10597 FT_Done_Glyph(glyph);
10598 FT_Done_Face(face);
10599 FT_Done_FreeType(ftlibrary);
10604 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
10605 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10606 echo "$as_me:$LINENO: result: yes" >&5
10607 echo "${ECHO_T}yes" >&6
10608 cat >>confdefs.h <<_ACEOF
10609 #define HAVE_FREETYPE 1
10612 cat >>confdefs.h <<_ACEOF
10613 #define USE_FREETYPE 1
10617 echo "configure: failed program was:" >&5
10620 echo "$as_me:$LINENO: result: no" >&5
10621 echo "${ECHO_T}no" >&6
10626 # if the above didn't work out, reset all changes to the compiler variables.
10627 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
10628 CPPFLAGS=$OLDCPPFLAGS
10634 OLDCPPFLAGS="${CPPFLAGS}"
10637 if test -d /usr/include/fontconfig; then
10638 CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
10641 echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
10642 echo $ECHO_N "checking for FcInit in -lfontconfig... $ECHO_C" >&6
10643 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
10644 echo $ECHO_N "(cached) $ECHO_C" >&6
10646 ac_check_lib_save_LIBS=$LIBS
10647 LIBS="-lfontconfig $LIBS"
10648 cat >conftest.$ac_ext <<_ACEOF
10651 cat confdefs.h >>conftest.$ac_ext
10652 cat >>conftest.$ac_ext <<_ACEOF
10653 /* end confdefs.h. */
10655 /* Override any gcc2 internal prototype to avoid an error. */
10659 /* We use char because int might match the return type of a gcc2
10660 builtin and then its argument prototype would still apply. */
10670 rm -f conftest.$ac_objext conftest$ac_exeext
10671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10672 (eval $ac_link) 2>conftest.er1
10674 grep -v '^ *+' conftest.er1 >conftest.err
10676 cat conftest.err >&5
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); } &&
10679 { ac_try='test -z "$ac_c_werror_flag"
10680 || test ! -s conftest.err'
10681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10682 (eval $ac_try) 2>&5
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); }; } &&
10686 { ac_try='test -s conftest$ac_exeext'
10687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10688 (eval $ac_try) 2>&5
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); }; }; then
10692 ac_cv_lib_fontconfig_FcInit=yes
10694 echo "$as_me: failed program was:" >&5
10695 sed 's/^/| /' conftest.$ac_ext >&5
10697 ac_cv_lib_fontconfig_FcInit=no
10699 rm -f conftest.err conftest.$ac_objext \
10700 conftest$ac_exeext conftest.$ac_ext
10701 LIBS=$ac_check_lib_save_LIBS
10703 echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
10704 echo "${ECHO_T}$ac_cv_lib_fontconfig_FcInit" >&6
10705 if test $ac_cv_lib_fontconfig_FcInit = yes; then
10706 HAVE_LIB_FONTCONFIG=1
10710 for ac_header in fontconfig.h
10712 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10714 echo "$as_me:$LINENO: checking for $ac_header" >&5
10715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10717 echo $ECHO_N "(cached) $ECHO_C" >&6
10719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10722 # Is the header compilable?
10723 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10724 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10725 cat >conftest.$ac_ext <<_ACEOF
10728 cat confdefs.h >>conftest.$ac_ext
10729 cat >>conftest.$ac_ext <<_ACEOF
10730 /* end confdefs.h. */
10731 $ac_includes_default
10732 #include <$ac_header>
10734 rm -f conftest.$ac_objext
10735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10736 (eval $ac_compile) 2>conftest.er1
10738 grep -v '^ *+' conftest.er1 >conftest.err
10740 cat conftest.err >&5
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); } &&
10743 { ac_try='test -z "$ac_c_werror_flag"
10744 || test ! -s conftest.err'
10745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10746 (eval $ac_try) 2>&5
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); }; } &&
10750 { ac_try='test -s conftest.$ac_objext'
10751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10752 (eval $ac_try) 2>&5
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); }; }; then
10756 ac_header_compiler=yes
10758 echo "$as_me: failed program was:" >&5
10759 sed 's/^/| /' conftest.$ac_ext >&5
10761 ac_header_compiler=no
10763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10764 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10765 echo "${ECHO_T}$ac_header_compiler" >&6
10767 # Is the header present?
10768 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10769 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10770 cat >conftest.$ac_ext <<_ACEOF
10773 cat confdefs.h >>conftest.$ac_ext
10774 cat >>conftest.$ac_ext <<_ACEOF
10775 /* end confdefs.h. */
10776 #include <$ac_header>
10778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10779 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10781 grep -v '^ *+' conftest.er1 >conftest.err
10783 cat conftest.err >&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); } >/dev/null; then
10786 if test -s conftest.err; then
10787 ac_cpp_err=$ac_c_preproc_warn_flag
10788 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10795 if test -z "$ac_cpp_err"; then
10796 ac_header_preproc=yes
10798 echo "$as_me: failed program was:" >&5
10799 sed 's/^/| /' conftest.$ac_ext >&5
10801 ac_header_preproc=no
10803 rm -f conftest.err conftest.$ac_ext
10804 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10805 echo "${ECHO_T}$ac_header_preproc" >&6
10807 # So? What about this header?
10808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10810 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10811 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10813 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10814 ac_header_preproc=yes
10817 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10818 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10819 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10820 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10821 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10822 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10823 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10824 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10826 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10827 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10828 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10831 ## ------------------------------------------ ##
10832 ## Report this to the AC_PACKAGE_NAME lists. ##
10833 ## ------------------------------------------ ##
10836 sed "s/^/$as_me: WARNING: /" >&2
10839 echo "$as_me:$LINENO: checking for $ac_header" >&5
10840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10842 echo $ECHO_N "(cached) $ECHO_C" >&6
10844 eval "$as_ac_Header=\$ac_header_preproc"
10846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10851 cat >>confdefs.h <<_ACEOF
10852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10854 HAVE_FONTCONFIG_H=1
10860 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
10861 if test "x${HAVE_FONTCONFIG_H}" != "x";then
10866 if test "x${HAVE_FONTCONFIG}" = "x1"; then
10867 LIBS="$LIBS -lfontconfig"
10868 echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
10869 echo $ECHO_N "checking whether we can compile the fontconfig test program... $ECHO_C" >&6
10871 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
10872 #move freetype library to the end of libraries, otherwise fontconfig
10874 LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
10877 cat > conftest.c << EOF
10878 #include <fontconfig.h>
10882 FcPattern *pattern, *match;
10886 pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
10887 FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
10888 FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
10889 FcConfigSubstitute(0, pattern, FcMatchPattern);
10890 FcDefaultSubstitute(pattern);
10891 match = FcFontMatch(0, pattern, &result);
10892 FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
10893 FcPatternPrint(pattern);
10894 FcPatternDestroy(pattern);
10895 FcPatternDestroy(match);
10900 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
10901 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10902 echo "$as_me:$LINENO: result: yes" >&5
10903 echo "${ECHO_T}yes" >&6
10904 cat >>confdefs.h <<_ACEOF
10905 #define HAVE_FONTCONFIG 1
10909 echo "configure: failed program was:" >&5
10912 echo "$as_me:$LINENO: result: no" >&5
10913 echo "${ECHO_T}no" >&6
10918 # if the above didn't work out, reset all changes to the compiler variables.
10919 if test "x${HAVE_FREETYPE}" "!=" "x1"; then
10920 CPPFLAGS=$OLDCPPFLAGS
10925 # ------------------------------------------------------------------
10929 if test "x${DISABLE_LAME}" = "xtrue"; then
10930 echo "*" Disabling lame support...
10932 # old lame code at lib/lame
10933 if test -f lib/lame/Makefile.in; then
10934 lame_objects="lame/psymodel.\$(O) lame/fft.\$(O) lame/newmdct.\$(O) lame/quantize.\$(O) lame/takehiro.\$(O) lame/reservoir.\$(O) lame/quantize_pvt.\$(O) lame/vbrquantize.\$(O) lame/encoder.\$(O) lame/id3tag.\$(O) lame/version.\$(O) lame/tables.\$(O) lame/util.\$(O) lame/bitstream.\$(O) lame/set_get.\$(O) lame/VbrTag.\$(O) lame/lame.\$(O)"
10935 lame_makefile="lib/lame/Makefile"
10936 CPPFLAGS="$CPPFLAGS -Ilame"
10937 cat >>confdefs.h <<_ACEOF
10938 #define HAVE_LAME 1
10942 if test -d /usr/include/lame; then
10943 CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
10945 if test -d /usr/local/include/lame; then
10946 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
10950 echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
10951 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6
10952 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
10953 echo $ECHO_N "(cached) $ECHO_C" >&6
10955 ac_check_lib_save_LIBS=$LIBS
10956 LIBS="-lmp3lame $LIBS"
10957 cat >conftest.$ac_ext <<_ACEOF
10960 cat confdefs.h >>conftest.$ac_ext
10961 cat >>conftest.$ac_ext <<_ACEOF
10962 /* end confdefs.h. */
10964 /* Override any gcc2 internal prototype to avoid an error. */
10968 /* We use char because int might match the return type of a gcc2
10969 builtin and then its argument prototype would still apply. */
10979 rm -f conftest.$ac_objext conftest$ac_exeext
10980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10981 (eval $ac_link) 2>conftest.er1
10983 grep -v '^ *+' conftest.er1 >conftest.err
10985 cat conftest.err >&5
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); } &&
10988 { ac_try='test -z "$ac_c_werror_flag"
10989 || test ! -s conftest.err'
10990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10991 (eval $ac_try) 2>&5
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); }; } &&
10995 { ac_try='test -s conftest$ac_exeext'
10996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10997 (eval $ac_try) 2>&5
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); }; }; then
11001 ac_cv_lib_mp3lame_lame_init=yes
11003 echo "$as_me: failed program was:" >&5
11004 sed 's/^/| /' conftest.$ac_ext >&5
11006 ac_cv_lib_mp3lame_lame_init=no
11008 rm -f conftest.err conftest.$ac_objext \
11009 conftest$ac_exeext conftest.$ac_ext
11010 LIBS=$ac_check_lib_save_LIBS
11012 echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
11013 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6
11014 if test $ac_cv_lib_mp3lame_lame_init = yes; then
11015 cat >>confdefs.h <<_ACEOF
11016 #define HAVE_LIBMP3LAME 1
11019 LIBS="-lmp3lame $LIBS"
11026 for ac_header in lame.h
11028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11030 echo "$as_me:$LINENO: checking for $ac_header" >&5
11031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11033 echo $ECHO_N "(cached) $ECHO_C" >&6
11035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11038 # Is the header compilable?
11039 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11040 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11041 cat >conftest.$ac_ext <<_ACEOF
11044 cat confdefs.h >>conftest.$ac_ext
11045 cat >>conftest.$ac_ext <<_ACEOF
11046 /* end confdefs.h. */
11047 $ac_includes_default
11048 #include <$ac_header>
11050 rm -f conftest.$ac_objext
11051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11052 (eval $ac_compile) 2>conftest.er1
11054 grep -v '^ *+' conftest.er1 >conftest.err
11056 cat conftest.err >&5
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); } &&
11059 { ac_try='test -z "$ac_c_werror_flag"
11060 || test ! -s conftest.err'
11061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11062 (eval $ac_try) 2>&5
11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065 (exit $ac_status); }; } &&
11066 { ac_try='test -s conftest.$ac_objext'
11067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11068 (eval $ac_try) 2>&5
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); }; }; then
11072 ac_header_compiler=yes
11074 echo "$as_me: failed program was:" >&5
11075 sed 's/^/| /' conftest.$ac_ext >&5
11077 ac_header_compiler=no
11079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11080 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11081 echo "${ECHO_T}$ac_header_compiler" >&6
11083 # Is the header present?
11084 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11085 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11086 cat >conftest.$ac_ext <<_ACEOF
11089 cat confdefs.h >>conftest.$ac_ext
11090 cat >>conftest.$ac_ext <<_ACEOF
11091 /* end confdefs.h. */
11092 #include <$ac_header>
11094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11097 grep -v '^ *+' conftest.er1 >conftest.err
11099 cat conftest.err >&5
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); } >/dev/null; then
11102 if test -s conftest.err; then
11103 ac_cpp_err=$ac_c_preproc_warn_flag
11104 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11111 if test -z "$ac_cpp_err"; then
11112 ac_header_preproc=yes
11114 echo "$as_me: failed program was:" >&5
11115 sed 's/^/| /' conftest.$ac_ext >&5
11117 ac_header_preproc=no
11119 rm -f conftest.err conftest.$ac_ext
11120 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11121 echo "${ECHO_T}$ac_header_preproc" >&6
11123 # So? What about this header?
11124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11126 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11127 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11129 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11130 ac_header_preproc=yes
11133 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11134 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11135 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11136 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11137 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11138 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11139 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11140 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11142 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11143 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11144 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11147 ## ------------------------------------------ ##
11148 ## Report this to the AC_PACKAGE_NAME lists. ##
11149 ## ------------------------------------------ ##
11152 sed "s/^/$as_me: WARNING: /" >&2
11155 echo "$as_me:$LINENO: checking for $ac_header" >&5
11156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11157 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11158 echo $ECHO_N "(cached) $ECHO_C" >&6
11160 eval "$as_ac_Header=\$ac_header_preproc"
11162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11167 cat >>confdefs.h <<_ACEOF
11168 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11175 if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$ac_cv_header_lame_h" "!=" "x";then
11176 cat >>confdefs.h <<_ACEOF
11177 #define HAVE_LAME 1
11185 # ------------------------------------------------------------------
11189 for ac_prog in avifile-config
11191 # Extract the first word of "$ac_prog", so it can be a program name with args.
11192 set dummy $ac_prog; ac_word=$2
11193 echo "$as_me:$LINENO: checking for $ac_word" >&5
11194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11195 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
11196 echo $ECHO_N "(cached) $ECHO_C" >&6
11198 if test -n "$AVIFILE_CONFIG"; then
11199 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
11201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11202 for as_dir in $PATH
11205 test -z "$as_dir" && as_dir=.
11206 for ac_exec_ext in '' $ac_executable_extensions; do
11207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11208 ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
11209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11217 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
11218 if test -n "$AVIFILE_CONFIG"; then
11219 echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
11220 echo "${ECHO_T}$AVIFILE_CONFIG" >&6
11222 echo "$as_me:$LINENO: result: no" >&5
11223 echo "${ECHO_T}no" >&6
11226 test -n "$AVIFILE_CONFIG" && break
11230 if test "x$AVIFILE_CONFIG" '!=' "x";then
11231 OLDCPPFLAGS="$CPPFLAGS"
11232 # temporarily add avifile paths to CPPFLAGS...
11233 CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
11236 for ac_header in avifile/version.h version.h
11238 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11240 echo "$as_me:$LINENO: checking for $ac_header" >&5
11241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11243 echo $ECHO_N "(cached) $ECHO_C" >&6
11245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11246 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11248 # Is the header compilable?
11249 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11250 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11251 cat >conftest.$ac_ext <<_ACEOF
11254 cat confdefs.h >>conftest.$ac_ext
11255 cat >>conftest.$ac_ext <<_ACEOF
11256 /* end confdefs.h. */
11257 $ac_includes_default
11258 #include <$ac_header>
11260 rm -f conftest.$ac_objext
11261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11262 (eval $ac_compile) 2>conftest.er1
11264 grep -v '^ *+' conftest.er1 >conftest.err
11266 cat conftest.err >&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } &&
11269 { ac_try='test -z "$ac_c_werror_flag"
11270 || test ! -s conftest.err'
11271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11272 (eval $ac_try) 2>&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; } &&
11276 { ac_try='test -s conftest.$ac_objext'
11277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11278 (eval $ac_try) 2>&5
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); }; }; then
11282 ac_header_compiler=yes
11284 echo "$as_me: failed program was:" >&5
11285 sed 's/^/| /' conftest.$ac_ext >&5
11287 ac_header_compiler=no
11289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11290 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11291 echo "${ECHO_T}$ac_header_compiler" >&6
11293 # Is the header present?
11294 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11296 cat >conftest.$ac_ext <<_ACEOF
11299 cat confdefs.h >>conftest.$ac_ext
11300 cat >>conftest.$ac_ext <<_ACEOF
11301 /* end confdefs.h. */
11302 #include <$ac_header>
11304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11307 grep -v '^ *+' conftest.er1 >conftest.err
11309 cat conftest.err >&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); } >/dev/null; then
11312 if test -s conftest.err; then
11313 ac_cpp_err=$ac_c_preproc_warn_flag
11314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11321 if test -z "$ac_cpp_err"; then
11322 ac_header_preproc=yes
11324 echo "$as_me: failed program was:" >&5
11325 sed 's/^/| /' conftest.$ac_ext >&5
11327 ac_header_preproc=no
11329 rm -f conftest.err conftest.$ac_ext
11330 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11331 echo "${ECHO_T}$ac_header_preproc" >&6
11333 # So? What about this header?
11334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11339 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11340 ac_header_preproc=yes
11343 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11345 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11346 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11347 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11348 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11349 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11350 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11353 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11354 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11357 ## ------------------------------------------ ##
11358 ## Report this to the AC_PACKAGE_NAME lists. ##
11359 ## ------------------------------------------ ##
11362 sed "s/^/$as_me: WARNING: /" >&2
11365 echo "$as_me:$LINENO: checking for $ac_header" >&5
11366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11368 echo $ECHO_N "(cached) $ECHO_C" >&6
11370 eval "$as_ac_Header=\$ac_header_preproc"
11372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11377 cat >>confdefs.h <<_ACEOF
11378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11386 CPPFLAGS="$OLDCPPFLAGS"
11389 echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
11390 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6
11392 if test "x${ac_cv_header_version_h}" '=' "xyes";then
11393 HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
11395 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
11396 HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
11399 cat > conftest.cpp << EOF
11401 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
11402 // so we have to introduce them this way
11403 $HAVE_VERSION_H_DEFINE
11404 $HAVE_AVIFILE_VERSION_H_DEFINE
11406 #ifdef HAVE_VERSION_H
11407 #include <version.h>
11409 #ifdef HAVE_AVIFILE_VERSION_H
11410 #include <avifile/version.h>
11413 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
11414 #include <avifile.h>
11415 #include <aviplay.h>
11416 #include <fourcc.h>
11417 #include <creators.h>
11418 #include <StreamInfo.h>
11421 #include <avifile.h>
11422 #include <aviplay.h>
11423 #include <aviutil.h>
11424 #define Width width
11425 #define Height height
11432 IAviReadFile* player;
11433 IAviReadStream* astream;
11434 IAviReadStream* vstream;
11435 player = CreateIAviReadFile(0);
11436 astream = player->GetStream(0, AviStream::Audio);
11437 vstream = player->GetStream(0, AviStream::Video);
11438 vstream -> StartStreaming();
11439 astream -> StartStreaming();
11441 MainAVIHeader head;
11442 player->GetFileHeader(&head);
11443 head.dwMicroSecPerFrame;
11444 head.dwTotalFrames;
11448 head.dwMicroSecPerFrame;
11449 astream->GetEndPos(),
11450 astream->GetEndTime());
11451 player->StreamCount();
11453 StreamInfo*audioinfo;
11454 StreamInfo*videoinfo;
11455 audioinfo = astream->GetStreamInfo();
11456 videoinfo = vstream->GetStreamInfo();
11457 videoinfo->GetVideoWidth();
11458 videoinfo->GetVideoHeight();
11459 audioinfo->GetAudioSamplesPerSec();
11460 videoinfo->GetFps();
11462 CImage*img = vstream->GetFrame();
11469 astream->GetAudioFormatInfo(&wave,0);
11471 astream->ReadFrames(0,0,0,a,b);
11473 int main (int argc, char*argv)
11479 if test "x$AVIFILE_CONFIG" '!=' "x";then
11480 AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
11481 AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
11482 avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
11483 if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
11484 echo "$as_me:$LINENO: result: yes" >&5
11485 echo "${ECHO_T}yes" >&6
11488 cat >>confdefs.h <<_ACEOF
11489 #define AVIFILE true
11493 echo "configure: failed program was:" >&5
11494 cat conftest.cpp >&5
11495 echo "$as_me:$LINENO: result: no" >&5
11496 echo "${ECHO_T}no" >&6
11499 echo "$as_me:$LINENO: result: no" >&5
11500 echo "${ECHO_T}no" >&6
11504 if test "x${AVIFILE}" = "xtrue"; then
11505 VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
11506 VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
11507 cat >>confdefs.h <<_ACEOF
11508 #define HAVE_AVIFILE 1
11513 if test "x${WIN32}" != "x"; then
11514 #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
11515 #if test "x${AVIFIL32}" != "x"; then
11516 # VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
11518 VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
11524 # ------------------------------------------------------------------
11526 if test "x${UNCOMPRESS}" = "xgzip"; then
11527 cat >>confdefs.h <<_ACEOF
11534 # ------------------------------------------------------------------
11537 echo "$as_me:$LINENO: checking for Python.h and PIL" >&5
11538 echo $ECHO_N "checking for Python.h and PIL... $ECHO_C" >&6
11540 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
11543 if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
11544 echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
11546 # iterate through version 2.2 to 2.4
11549 if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.$v/Python.h";then
11551 PYTHON_LIB="-lpython$PY_VERSION /usr/lib/python$PY_VERSION/site-packages/PIL/_imaging.so"
11552 PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
11554 elif test -f "/Library/Python/2.$v/PIL/_imaging.so" \
11555 -a -f "/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
11557 PYTHON_LIB="-framework Python /Library/Python/2.$v/PIL/_imaging.so"
11558 PYTHON_INCLUDES="-I/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
11560 elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
11561 -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
11562 -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
11564 -a -f "/sw/include/python2.$v/Python.h" \
11565 -a -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
11567 PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
11568 PYTHON_INCLUDES="-I /sw/include/python2.$v/"
11573 if test "x$PY_VERSION" "!=" "x"; then
11574 echo "$as_me:$LINENO: result: $PY_VERSION" >&5
11575 echo "${ECHO_T}$PY_VERSION" >&6
11576 export PYTHON_INCLUDES PYTHON_LIB
11579 echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
11580 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6
11582 cat > conftest.c << EOF
11583 #include <Python.h>
11584 #include <Imaging.h>
11589 ret = Py_Main(0, 0);
11590 int x; // check also for gcc 2.95.x incompatibilities
11594 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
11595 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11596 echo "$as_me:$LINENO: result: yes" >&5
11597 echo "${ECHO_T}yes" >&6
11600 echo "configure: failed program was:" >&5
11602 echo "$as_me:$LINENO: result: no" >&5
11603 echo "${ECHO_T}no" >&6
11607 echo "$as_me:$LINENO: result: nope" >&5
11608 echo "${ECHO_T}nope" >&6
11612 if test "x$PYTHON_OK" '!=' "xyes";then
11613 echo all install uninstall clean: > lib/python/Makefile
11614 # fail silently- the most users won't have any need for the
11615 # python interface anyway
11617 pythonrfxswf="lib/python/Makefile"
11620 # ------------------------------------------------------------------
11622 echo "$as_me:$LINENO: checking for missing libraries" >&5
11623 echo $ECHO_N "checking for missing libraries... $ECHO_C" >&6
11625 if test "x$ZLIBMISSING" = "xtrue";then
11626 MISSINGLIBS="${MISSINGLIBS} zlib"
11627 DISABLEPNG2SWF=true
11630 if test "x$JPEGLIBMISSING" = "xtrue";then
11631 MISSINGLIBS="${MISSINGLIBS} jpeglib"
11632 DISABLEPDF2SWF=true
11633 DISABLEJPEG2SWF=true
11636 if test "x$T1LIBMISSING" = "xtrue";then
11637 MISSINGLIBS="${MISSINGLIBS} t1lib"
11640 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
11641 DISABLEPDF2SWF=true;
11642 DISABLEJPEG2SWF=true;
11643 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
11646 if test "x$HAVE_FREETYPE" '!=' "x1"; then
11647 DISABLEPDF2SWF=true;
11648 MISSINGLIBS="${MISSINGLIBS} freetype"
11651 if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
11652 MISSINGLIBS="${MISSINGLIBS} t1lib.h"
11654 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
11655 DISABLEPNG2SWF=true;
11656 MISSINGLIBS="${MISSINGLIBS} zlib.h"
11659 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
11660 MISSINGLIBS="${MISSINGLIBS} avifile"
11664 echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
11665 echo "${ECHO_T}${MISSINGLIBS}" >&6
11667 # ------------------------------------------------------------------
11669 if test "x${MISSINGLIBS}" '!=' "x"; then
11670 echo "***************************************************"
11671 echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
11674 avi2swf="avi2swf/Makefile"
11675 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
11676 echo "* Disabling avi2swf tool..."
11677 echo all install uninstall clean: > avi2swf/Makefile
11681 pdf2swf_makefile="pdf2swf/Makefile pdf2swf/xpdf/Makefile"
11682 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
11683 echo "* Disabling pdf2swf tool..."
11684 rm -f pdf2swf/Makefile
11685 echo all install uninstall clean: > pdf2swf/Makefile
11686 pdf2swf_makefile=""
11689 if test "x${ZLIBMISSING}" = "xtrue"; then
11691 echo "* Warning! Without zlib, you will not be able to read"
11692 echo "* or write compressed Flash MX files!"
11695 JPEG2SWF='jpeg2swf$(E)'
11696 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
11697 echo "* Disabling jpeg2swf tool..."
11703 PNG2SWF='png2swf$(E)'
11704 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
11705 echo "* Disabling png2swf tool..."
11711 if test "x${MISSINGLIBS}" '!=' "x"; then
11712 if test "x${PARTIAL}" '=' "x"; then
11713 echo "* (never mind)"
11715 echo "***************************************************"
11718 # ------------------------------------------------------------------
11720 if test -f "release.in"; then release_in="./release"; fi
11721 FILES="$release_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile ${pythonrfxswf} ${lame_makefile}"
11723 ac_config_files="$ac_config_files ${FILES}"
11725 cat >confcache <<\_ACEOF
11726 # This file is a shell script that caches the results of configure
11727 # tests run on this system so they can be shared between configure
11728 # scripts and configure runs, see configure's option --config-cache.
11729 # It is not useful on other systems. If it contains results you don't
11730 # want to keep, you may remove or edit it.
11732 # config.status only pays attention to the cache file if you give it
11733 # the --recheck option to rerun configure.
11735 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11736 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11737 # following values.
11741 # The following way of writing the cache mishandles newlines in values,
11742 # but we know of no workaround that is simple, portable, and efficient.
11743 # So, don't put newlines in cache variables' values.
11744 # Ultrix sh set writes to stderr and can't be redirected directly,
11745 # and sets the high bit in the cache file unless we assign to the vars.
11748 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11750 # `set' does not quote correctly, so add quotes (double-quote
11751 # substitution turns \\\\ into \\, and sed turns \\ into \).
11754 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11757 # `set' quotes correctly as required by POSIX, so do not add quotes.
11759 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11766 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11768 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11770 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11771 if test -w $cache_file; then
11772 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11773 cat confcache >$cache_file
11775 echo "not updating unwritable cache $cache_file"
11780 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11781 # Let make expand exec_prefix.
11782 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11784 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11785 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11786 # trailing colons and then remove the whole line if VPATH becomes empty
11787 # (actually we leave an empty line to preserve line numbers).
11788 if test "x$srcdir" = x.; then
11789 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11790 s/:*\$(srcdir):*/:/;
11791 s/:*\${srcdir}:*/:/;
11793 s/^\([^=]*=[ ]*\):*/\1/;
11799 DEFS=-DHAVE_CONFIG_H
11803 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11804 # 1. Remove the extension, and $U if already installed.
11805 ac_i=`echo "$ac_i" |
11806 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11808 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11809 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11811 LIBOBJS=$ac_libobjs
11813 LTLIBOBJS=$ac_ltlibobjs
11817 : ${CONFIG_STATUS=./config.status}
11818 ac_clean_files_save=$ac_clean_files
11819 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11820 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11821 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11822 cat >$CONFIG_STATUS <<_ACEOF
11824 # Generated by $as_me.
11825 # Run this file to recreate the current configuration.
11826 # Compiler output produced by configure, useful for debugging
11827 # configure, is in config.log if it exists.
11830 ac_cs_recheck=false
11832 SHELL=\${CONFIG_SHELL-$SHELL}
11835 cat >>$CONFIG_STATUS <<\_ACEOF
11836 ## --------------------- ##
11837 ## M4sh Initialization. ##
11838 ## --------------------- ##
11840 # Be Bourne compatible
11841 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11844 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11845 # is contrary to our usage. Disable this feature.
11846 alias -g '${1+"$@"}'='"$@"'
11847 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11850 DUALCASE=1; export DUALCASE # for MKS sh
11852 # Support unset when possible.
11853 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11860 # Work around bugs in pre-3.0 UWIN ksh.
11861 $as_unset ENV MAIL MAILPATH
11868 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11869 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11870 LC_TELEPHONE LC_TIME
11872 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11873 eval $as_var=C; export $as_var
11879 # Required to use basename.
11880 if expr a : '\(a\)' >/dev/null 2>&1; then
11886 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11887 as_basename=basename
11893 # Name of the executable.
11894 as_me=`$as_basename "$0" ||
11895 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11896 X"$0" : 'X\(//\)$' \| \
11897 X"$0" : 'X\(/\)$' \| \
11898 . : '\(.\)' 2>/dev/null ||
11900 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11901 /^X\/\(\/\/\)$/{ s//\1/; q; }
11902 /^X\/\(\/\).*/{ s//\1/; q; }
11906 # PATH needs CR, and LINENO needs CR and PATH.
11907 # Avoid depending upon Character Ranges.
11908 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11909 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11910 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11911 as_cr_digits='0123456789'
11912 as_cr_alnum=$as_cr_Letters$as_cr_digits
11914 # The user is always right.
11915 if test "${PATH_SEPARATOR+set}" != set; then
11916 echo "#! /bin/sh" >conf$$.sh
11917 echo "exit 0" >>conf$$.sh
11919 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11928 as_lineno_1=$LINENO
11929 as_lineno_2=$LINENO
11930 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11931 test "x$as_lineno_1" != "x$as_lineno_2" &&
11932 test "x$as_lineno_3" = "x$as_lineno_2" || {
11933 # Find who we are. Look in the path if we contain no path at all
11936 *[\\/]* ) as_myself=$0 ;;
11937 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11938 for as_dir in $PATH
11941 test -z "$as_dir" && as_dir=.
11942 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11947 # We did not find ourselves, most probably we were run as `sh COMMAND'
11948 # in which case we are not to be found in the path.
11949 if test "x$as_myself" = x; then
11952 if test ! -f "$as_myself"; then
11953 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11954 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11955 { (exit 1); exit 1; }; }
11957 case $CONFIG_SHELL in
11959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11960 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11963 test -z "$as_dir" && as_dir=.
11964 for as_base in sh bash ksh sh5; do
11967 if ("$as_dir/$as_base" -c '
11968 as_lineno_1=$LINENO
11969 as_lineno_2=$LINENO
11970 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11971 test "x$as_lineno_1" != "x$as_lineno_2" &&
11972 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11973 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11974 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11975 CONFIG_SHELL=$as_dir/$as_base
11976 export CONFIG_SHELL
11977 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11985 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11986 # uniformly replaced by the line number. The first 'sed' inserts a
11987 # line-number line before each line; the second 'sed' does the real
11988 # work. The second script uses 'N' to pair each line-number line
11989 # with the numbered line, and appends trailing '-' during
11990 # substitution so that $LINENO is not a special case at line end.
11991 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11992 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11993 sed '=' <$as_myself |
11998 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12001 s,^['$as_cr_digits']*\n,,
12002 ' >$as_me.lineno &&
12003 chmod +x $as_me.lineno ||
12004 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12005 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12006 { (exit 1); exit 1; }; }
12008 # Don't try to exec as it changes $[0], causing all sort of problems
12009 # (the dirname of $[0] is not the place where we might find the
12010 # original and so on. Autoconf is especially sensible to this).
12012 # Exit status is that of the last command.
12017 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12018 *c*,-n*) ECHO_N= ECHO_C='
12020 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12021 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12024 if expr a : '\(a\)' >/dev/null 2>&1; then
12030 rm -f conf$$ conf$$.exe conf$$.file
12032 if ln -s conf$$.file conf$$ 2>/dev/null; then
12033 # We could just check for DJGPP; but this test a) works b) is more generic
12034 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12035 if test -f conf$$.exe; then
12036 # Don't use ln at all; we don't have any links
12041 elif ln conf$$.file conf$$ 2>/dev/null; then
12046 rm -f conf$$ conf$$.exe conf$$.file
12048 if mkdir -p . 2>/dev/null; then
12051 test -d ./-p && rmdir ./-p
12055 as_executable_p="test -f"
12057 # Sed expression to map a string onto a valid CPP name.
12058 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12060 # Sed expression to map a string onto a valid variable name.
12061 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12065 # We need space, tab and new line, in precisely that order.
12075 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12076 # report actual input values of CONFIG_FILES etc. instead of their
12077 # values after options handling. Logging --version etc. is OK.
12081 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12082 ## Running $as_me. ##
12087 This file was extended by $as_me, which was
12088 generated by GNU Autoconf 2.58. Invocation command line was
12090 CONFIG_FILES = $CONFIG_FILES
12091 CONFIG_HEADERS = $CONFIG_HEADERS
12092 CONFIG_LINKS = $CONFIG_LINKS
12093 CONFIG_COMMANDS = $CONFIG_COMMANDS
12097 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12101 # Files that config.status was made for.
12102 if test -n "$ac_config_files"; then
12103 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12106 if test -n "$ac_config_headers"; then
12107 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12110 if test -n "$ac_config_links"; then
12111 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12114 if test -n "$ac_config_commands"; then
12115 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12118 cat >>$CONFIG_STATUS <<\_ACEOF
12121 \`$as_me' instantiates files from templates according to the
12122 current configuration.
12124 Usage: $0 [OPTIONS] [FILE]...
12126 -h, --help print this help, then exit
12127 -V, --version print version number, then exit
12128 -q, --quiet do not print progress messages
12129 -d, --debug don't remove temporary files
12130 --recheck update $as_me by reconfiguring in the same conditions
12131 --file=FILE[:TEMPLATE]
12132 instantiate the configuration file FILE
12133 --header=FILE[:TEMPLATE]
12134 instantiate the configuration header FILE
12136 Configuration files:
12139 Configuration headers:
12142 Report bugs to <bug-autoconf@gnu.org>."
12145 cat >>$CONFIG_STATUS <<_ACEOF
12148 configured by $0, generated by GNU Autoconf 2.58,
12149 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12151 Copyright (C) 2003 Free Software Foundation, Inc.
12152 This config.status script is free software; the Free Software Foundation
12153 gives unlimited permission to copy, distribute and modify it."
12158 cat >>$CONFIG_STATUS <<\_ACEOF
12159 # If no file are specified by the user, then we need to provide default
12160 # value. By we need to know if files were specified by the user.
12166 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12167 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12175 *) # This is not an option, so the user has probably given explicit
12178 ac_need_defaults=false;;
12182 # Handling of the options.
12184 cat >>$CONFIG_STATUS <<\_ACEOF
12185 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12187 --version | --vers* | -V )
12188 echo "$ac_cs_version"; exit 0 ;;
12190 # Conflict between --help and --header
12191 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12192 Try \`$0 --help' for more information." >&5
12193 echo "$as_me: error: ambiguous option: $1
12194 Try \`$0 --help' for more information." >&2;}
12195 { (exit 1); exit 1; }; };;
12196 --help | --hel | -h )
12197 echo "$ac_cs_usage"; exit 0 ;;
12198 --debug | --d* | -d )
12200 --file | --fil | --fi | --f )
12202 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12203 ac_need_defaults=false;;
12204 --header | --heade | --head | --hea )
12206 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12207 ac_need_defaults=false;;
12208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12209 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12212 # This is an error.
12213 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12214 Try \`$0 --help' for more information." >&5
12215 echo "$as_me: error: unrecognized option: $1
12216 Try \`$0 --help' for more information." >&2;}
12217 { (exit 1); exit 1; }; } ;;
12219 *) ac_config_targets="$ac_config_targets $1" ;;
12225 ac_configure_extra_args=
12227 if $ac_cs_silent; then
12229 ac_configure_extra_args="$ac_configure_extra_args --silent"
12233 cat >>$CONFIG_STATUS <<_ACEOF
12234 if \$ac_cs_recheck; then
12235 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12236 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12245 cat >>$CONFIG_STATUS <<\_ACEOF
12246 for ac_config_target in $ac_config_targets
12248 case "$ac_config_target" in
12249 # Handling of arguments.
12250 "${FILES}" ) CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
12251 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12252 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12253 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12254 { (exit 1); exit 1; }; };;
12258 # If the user did not use the arguments to specify the items to instantiate,
12259 # then the envvar interface is used. Set only those that are not.
12260 # We use the long form for the default assignment because of an extremely
12261 # bizarre bug on SunOS 4.1.3.
12262 if $ac_need_defaults; then
12263 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12264 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12267 # Have a temporary directory for convenience. Make it in the build tree
12268 # simply because there is no reason to put it here, and in addition,
12269 # creating and moving files from /tmp can sometimes cause problems.
12270 # Create a temporary directory, and hook for its removal unless debugging.
12273 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12274 trap '{ (exit 1); exit 1; }' 1 2 13 15
12277 # Create a (secure) tmp directory for tmp files.
12280 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12281 test -n "$tmp" && test -d "$tmp"
12284 tmp=./confstat$$-$RANDOM
12285 (umask 077 && mkdir $tmp)
12288 echo "$me: cannot create a temporary directory in ." >&2
12289 { (exit 1); exit 1; }
12294 cat >>$CONFIG_STATUS <<_ACEOF
12297 # CONFIG_FILES section.
12300 # No need to generate the scripts if there are no CONFIG_FILES.
12301 # This happens for instance when ./config.status config.h
12302 if test -n "\$CONFIG_FILES"; then
12303 # Protect against being on the right side of a sed subst in config.status.
12304 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12305 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12306 s,@SHELL@,$SHELL,;t t
12307 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12308 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12309 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12310 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12311 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12312 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12313 s,@exec_prefix@,$exec_prefix,;t t
12314 s,@prefix@,$prefix,;t t
12315 s,@program_transform_name@,$program_transform_name,;t t
12316 s,@bindir@,$bindir,;t t
12317 s,@sbindir@,$sbindir,;t t
12318 s,@libexecdir@,$libexecdir,;t t
12319 s,@datadir@,$datadir,;t t
12320 s,@sysconfdir@,$sysconfdir,;t t
12321 s,@sharedstatedir@,$sharedstatedir,;t t
12322 s,@localstatedir@,$localstatedir,;t t
12323 s,@libdir@,$libdir,;t t
12324 s,@includedir@,$includedir,;t t
12325 s,@oldincludedir@,$oldincludedir,;t t
12326 s,@infodir@,$infodir,;t t
12327 s,@mandir@,$mandir,;t t
12328 s,@build_alias@,$build_alias,;t t
12329 s,@host_alias@,$host_alias,;t t
12330 s,@target_alias@,$target_alias,;t t
12331 s,@DEFS@,$DEFS,;t t
12332 s,@ECHO_C@,$ECHO_C,;t t
12333 s,@ECHO_N@,$ECHO_N,;t t
12334 s,@ECHO_T@,$ECHO_T,;t t
12335 s,@LIBS@,$LIBS,;t t
12336 s,@build@,$build,;t t
12337 s,@build_cpu@,$build_cpu,;t t
12338 s,@build_vendor@,$build_vendor,;t t
12339 s,@build_os@,$build_os,;t t
12340 s,@host@,$host,;t t
12341 s,@host_cpu@,$host_cpu,;t t
12342 s,@host_vendor@,$host_vendor,;t t
12343 s,@host_os@,$host_os,;t t
12344 s,@SHARED@,$SHARED,;t t
12346 s,@CFLAGS@,$CFLAGS,;t t
12347 s,@LDFLAGS@,$LDFLAGS,;t t
12348 s,@CPPFLAGS@,$CPPFLAGS,;t t
12349 s,@ac_ct_CC@,$ac_ct_CC,;t t
12350 s,@EXEEXT@,$EXEEXT,;t t
12351 s,@OBJEXT@,$OBJEXT,;t t
12353 s,@CXXFLAGS@,$CXXFLAGS,;t t
12354 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12356 s,@RANLIB@,$RANLIB,;t t
12357 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12358 s,@SET_MAKE@,$SET_MAKE,;t t
12359 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12360 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12361 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12362 s,@LN_S@,$LN_S,;t t
12363 s,@ECHO@,$ECHO,;t t
12364 s,@STRIP@,$STRIP,;t t
12365 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12366 s,@EGREP@,$EGREP,;t t
12367 s,@LIBTOOL@,$LIBTOOL,;t t
12368 s,@UNCOMPRESS@,$UNCOMPRESS,;t t
12370 s,@SLEXT@,$SLEXT,;t t
12371 s,@target@,$target,;t t
12372 s,@target_cpu@,$target_cpu,;t t
12373 s,@target_vendor@,$target_vendor,;t t
12374 s,@target_os@,$target_os,;t t
12375 s,@WORDS_BIGENDIAN@,$WORDS_BIGENDIAN,;t t
12376 s,@SYSTEM_BACKTICKS@,$SYSTEM_BACKTICKS,;t t
12377 s,@PACKAGE@,$PACKAGE,;t t
12378 s,@VERSION@,$VERSION,;t t
12379 s,@HAVE_UNISTD_H@,$HAVE_UNISTD_H,;t t
12380 s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t
12381 s,@lame_objects@,$lame_objects,;t t
12382 s,@AVIFILE_CONFIG@,$AVIFILE_CONFIG,;t t
12383 s,@VIDEO_LIBS@,$VIDEO_LIBS,;t t
12384 s,@VIDEO_CFLAGS@,$VIDEO_CFLAGS,;t t
12385 s,@USE_GZIP@,$USE_GZIP,;t t
12386 s,@PYTHON_LIB@,$PYTHON_LIB,;t t
12387 s,@PYTHON_INCLUDES@,$PYTHON_INCLUDES,;t t
12388 s,@JPEG2SWF@,$JPEG2SWF,;t t
12389 s,@PNG2SWF@,$PNG2SWF,;t t
12390 s,@LIBOBJS@,$LIBOBJS,;t t
12391 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12396 cat >>$CONFIG_STATUS <<\_ACEOF
12397 # Split the substitutions into bite-sized pieces for seds with
12398 # small command number limits, like on Digital OSF/1 and HP-UX.
12399 ac_max_sed_lines=48
12400 ac_sed_frag=1 # Number of current file.
12401 ac_beg=1 # First line for current file.
12402 ac_end=$ac_max_sed_lines # Line after last line for current file.
12405 while $ac_more_lines; do
12406 if test $ac_beg -gt 1; then
12407 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12409 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12411 if test ! -s $tmp/subs.frag; then
12412 ac_more_lines=false
12414 # The purpose of the label and of the branching condition is to
12415 # speed up the sed processing (if there are no `@' at all, there
12416 # is no need to browse any of the substitutions).
12417 # These are the two extra sed commands mentioned above.
12419 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12420 if test -z "$ac_sed_cmds"; then
12421 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12423 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12425 ac_sed_frag=`expr $ac_sed_frag + 1`
12427 ac_end=`expr $ac_end + $ac_max_sed_lines`
12430 if test -z "$ac_sed_cmds"; then
12433 fi # test -n "$CONFIG_FILES"
12436 cat >>$CONFIG_STATUS <<\_ACEOF
12437 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12438 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12440 - | *:- | *:-:* ) # input from stdin
12442 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12443 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12444 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12445 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12446 * ) ac_file_in=$ac_file.in ;;
12449 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12450 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12451 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12452 X"$ac_file" : 'X\(//\)[^/]' \| \
12453 X"$ac_file" : 'X\(//\)$' \| \
12454 X"$ac_file" : 'X\(/\)' \| \
12455 . : '\(.\)' 2>/dev/null ||
12457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12458 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12459 /^X\(\/\/\)$/{ s//\1/; q; }
12460 /^X\(\/\).*/{ s//\1/; q; }
12462 { if $as_mkdir_p; then
12467 while test ! -d "$as_dir"; do
12468 as_dirs="$as_dir $as_dirs"
12469 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12470 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12471 X"$as_dir" : 'X\(//\)[^/]' \| \
12472 X"$as_dir" : 'X\(//\)$' \| \
12473 X"$as_dir" : 'X\(/\)' \| \
12474 . : '\(.\)' 2>/dev/null ||
12476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12477 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12478 /^X\(\/\/\)$/{ s//\1/; q; }
12479 /^X\(\/\).*/{ s//\1/; q; }
12482 test ! -n "$as_dirs" || mkdir $as_dirs
12483 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12484 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12485 { (exit 1); exit 1; }; }; }
12489 if test "$ac_dir" != .; then
12490 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12491 # A "../" for each directory in $ac_dir_suffix.
12492 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12494 ac_dir_suffix= ac_top_builddir=
12498 .) # No --srcdir option. We are building in place.
12500 if test -z "$ac_top_builddir"; then
12503 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12505 [\\/]* | ?:[\\/]* ) # Absolute path.
12506 ac_srcdir=$srcdir$ac_dir_suffix;
12507 ac_top_srcdir=$srcdir ;;
12508 *) # Relative path.
12509 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12510 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12513 .) ac_abs_builddir=$ac_builddir;;
12515 case $ac_builddir in
12516 .) ac_abs_builddir="$ac_dir";;
12517 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
12518 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
12522 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12524 case ${ac_top_builddir}. in
12525 .) ac_abs_top_builddir="$ac_dir";;
12526 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12527 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
12531 .) ac_abs_srcdir=$ac_srcdir;;
12534 .) ac_abs_srcdir="$ac_dir";;
12535 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12536 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
12540 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12542 case $ac_top_srcdir in
12543 .) ac_abs_top_srcdir="$ac_dir";;
12544 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12545 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
12551 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12552 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12555 if test x"$ac_file" != x-; then
12556 { echo "$as_me:$LINENO: creating $ac_file" >&5
12557 echo "$as_me: creating $ac_file" >&6;}
12560 # Let's still pretend it is `configure' which instantiates (i.e., don't
12561 # use $as_me), people would be surprised to read:
12562 # /* config.h. Generated by config.status. */
12563 if test x"$ac_file" = x-; then
12566 configure_input="$ac_file. "
12568 configure_input=$configure_input"Generated from `echo $ac_file_in |
12569 sed 's,.*/,,'` by configure."
12571 # First look for the input files in the build tree, otherwise in the
12573 ac_file_inputs=`IFS=:
12574 for f in $ac_file_in; do
12576 -) echo $tmp/stdin ;;
12578 # Absolute (can't be DOS-style, as IFS=:)
12579 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12580 echo "$as_me: error: cannot find input file: $f" >&2;}
12581 { (exit 1); exit 1; }; }
12584 if test -f "$f"; then
12587 elif test -f "$srcdir/$f"; then
12592 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12593 echo "$as_me: error: cannot find input file: $f" >&2;}
12594 { (exit 1); exit 1; }; }
12597 done` || { (exit 1); exit 1; }
12599 cat >>$CONFIG_STATUS <<_ACEOF
12603 cat >>$CONFIG_STATUS <<\_ACEOF
12605 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12606 s,@configure_input@,$configure_input,;t t
12607 s,@srcdir@,$ac_srcdir,;t t
12608 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12609 s,@top_srcdir@,$ac_top_srcdir,;t t
12610 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12611 s,@builddir@,$ac_builddir,;t t
12612 s,@abs_builddir@,$ac_abs_builddir,;t t
12613 s,@top_builddir@,$ac_top_builddir,;t t
12614 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12615 s,@INSTALL@,$ac_INSTALL,;t t
12616 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12618 if test x"$ac_file" != x-; then
12619 mv $tmp/out $ac_file
12627 cat >>$CONFIG_STATUS <<\_ACEOF
12630 # CONFIG_HEADER section.
12633 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12634 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12636 # ac_d sets the value in "#define NAME VALUE" lines.
12637 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12638 ac_dB='[ ].*$,\1#\2'
12641 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12642 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12643 ac_uB='$,\1#\2define\3'
12647 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12648 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12650 - | *:- | *:-:* ) # input from stdin
12652 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12653 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12654 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12655 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12656 * ) ac_file_in=$ac_file.in ;;
12659 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12660 echo "$as_me: creating $ac_file" >&6;}
12662 # First look for the input files in the build tree, otherwise in the
12664 ac_file_inputs=`IFS=:
12665 for f in $ac_file_in; do
12667 -) echo $tmp/stdin ;;
12669 # Absolute (can't be DOS-style, as IFS=:)
12670 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12671 echo "$as_me: error: cannot find input file: $f" >&2;}
12672 { (exit 1); exit 1; }; }
12673 # Do quote $f, to prevent DOS paths from being IFS'd.
12676 if test -f "$f"; then
12679 elif test -f "$srcdir/$f"; then
12684 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12685 echo "$as_me: error: cannot find input file: $f" >&2;}
12686 { (exit 1); exit 1; }; }
12689 done` || { (exit 1); exit 1; }
12690 # Remove the trailing spaces.
12691 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12695 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12696 # `conftest.undefs', that substitutes the proper values into
12697 # config.h.in to produce config.h. The first handles `#define'
12698 # templates, and the second `#undef' templates.
12699 # And first: Protect against being on the right side of a sed subst in
12700 # config.status. Protect against being in an unquoted here document
12701 # in config.status.
12702 rm -f conftest.defines conftest.undefs
12703 # Using a here document instead of a string reduces the quoting nightmare.
12704 # Putting comments in sed scripts is not portable.
12706 # `end' is used to avoid that the second main sed command (meant for
12707 # 0-ary CPP macros) applies to n-ary macro definitions.
12708 # See the Autoconf documentation for `clear'.
12709 cat >confdef2sed.sed <<\_ACEOF
12714 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12716 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12719 # If some macros were called several times there might be several times
12720 # the same #defines, which is useless. Nevertheless, we may not want to
12721 # sort them, since we want the *last* AC-DEFINE to be honored.
12722 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12723 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12724 rm -f confdef2sed.sed
12726 # This sed command replaces #undef with comments. This is necessary, for
12727 # example, in the case of _POSIX_SOURCE, which is predefined and required
12728 # on some systems where configure will not decide to define it.
12729 cat >>conftest.undefs <<\_ACEOF
12730 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12733 # Break up conftest.defines because some shells have a limit on the size
12734 # of here documents, and old seds have small limits too (100 cmds).
12735 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12736 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12737 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12738 echo ' :' >>$CONFIG_STATUS
12739 rm -f conftest.tail
12740 while grep . conftest.defines >/dev/null
12742 # Write a limited-size here document to $tmp/defines.sed.
12743 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12744 # Speed up: don't consider the non `#define' lines.
12745 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12746 # Work around the forget-to-reset-the-flag bug.
12747 echo 't clr' >>$CONFIG_STATUS
12748 echo ': clr' >>$CONFIG_STATUS
12749 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12751 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12753 mv $tmp/out $tmp/in
12755 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12756 rm -f conftest.defines
12757 mv conftest.tail conftest.defines
12759 rm -f conftest.defines
12760 echo ' fi # grep' >>$CONFIG_STATUS
12761 echo >>$CONFIG_STATUS
12763 # Break up conftest.undefs because some shells have a limit on the size
12764 # of here documents, and old seds have small limits too (100 cmds).
12765 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12766 rm -f conftest.tail
12767 while grep . conftest.undefs >/dev/null
12769 # Write a limited-size here document to $tmp/undefs.sed.
12770 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12771 # Speed up: don't consider the non `#undef'
12772 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12773 # Work around the forget-to-reset-the-flag bug.
12774 echo 't clr' >>$CONFIG_STATUS
12775 echo ': clr' >>$CONFIG_STATUS
12776 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12778 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12780 mv $tmp/out $tmp/in
12782 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12783 rm -f conftest.undefs
12784 mv conftest.tail conftest.undefs
12786 rm -f conftest.undefs
12788 cat >>$CONFIG_STATUS <<\_ACEOF
12789 # Let's still pretend it is `configure' which instantiates (i.e., don't
12790 # use $as_me), people would be surprised to read:
12791 # /* config.h. Generated by config.status. */
12792 if test x"$ac_file" = x-; then
12793 echo "/* Generated by configure. */" >$tmp/config.h
12795 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12797 cat $tmp/in >>$tmp/config.h
12799 if test x"$ac_file" != x-; then
12800 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12801 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12802 echo "$as_me: $ac_file is unchanged" >&6;}
12804 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12805 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12806 X"$ac_file" : 'X\(//\)[^/]' \| \
12807 X"$ac_file" : 'X\(//\)$' \| \
12808 X"$ac_file" : 'X\(/\)' \| \
12809 . : '\(.\)' 2>/dev/null ||
12811 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12812 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12813 /^X\(\/\/\)$/{ s//\1/; q; }
12814 /^X\(\/\).*/{ s//\1/; q; }
12816 { if $as_mkdir_p; then
12821 while test ! -d "$as_dir"; do
12822 as_dirs="$as_dir $as_dirs"
12823 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12824 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12825 X"$as_dir" : 'X\(//\)[^/]' \| \
12826 X"$as_dir" : 'X\(//\)$' \| \
12827 X"$as_dir" : 'X\(/\)' \| \
12828 . : '\(.\)' 2>/dev/null ||
12830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12831 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12832 /^X\(\/\/\)$/{ s//\1/; q; }
12833 /^X\(\/\).*/{ s//\1/; q; }
12836 test ! -n "$as_dirs" || mkdir $as_dirs
12837 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12838 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12839 { (exit 1); exit 1; }; }; }
12842 mv $tmp/config.h $ac_file
12846 rm -f $tmp/config.h
12851 cat >>$CONFIG_STATUS <<\_ACEOF
12853 { (exit 0); exit 0; }
12855 chmod +x $CONFIG_STATUS
12856 ac_clean_files=$ac_clean_files_save
12859 # configure is writing to config.log, and then calls config.status.
12860 # config.status does its own redirection, appending to config.log.
12861 # Unfortunately, on DOS this fails, as config.log is still kept open
12862 # by configure, so config.status won't be able to write to it; its
12863 # output is simply discarded. So we exec the FD to /dev/null,
12864 # effectively closing config.log, so it can be properly (re)opened and
12865 # appended to by config.status. When coming back to configure, we
12866 # need to make the FD available again.
12867 if test "$no_create" != yes; then
12869 ac_config_status_args=
12870 test "$silent" = yes &&
12871 ac_config_status_args="$ac_config_status_args --quiet"
12873 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12875 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12876 # would make configure fail if this is the last instruction.
12877 $ac_cs_success || { (exit 1); exit 1; }