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 # ------------------------------------------------------------------
10093 for ac_prog in freetype-config
10095 # Extract the first word of "$ac_prog", so it can be a program name with args.
10096 set dummy $ac_prog; ac_word=$2
10097 echo "$as_me:$LINENO: checking for $ac_word" >&5
10098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10099 if test "${ac_cv_prog_FREETYPE_CONFIG+set}" = set; then
10100 echo $ECHO_N "(cached) $ECHO_C" >&6
10102 if test -n "$FREETYPE_CONFIG"; then
10103 ac_cv_prog_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test.
10105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10106 for as_dir in $PATH
10109 test -z "$as_dir" && as_dir=.
10110 for ac_exec_ext in '' $ac_executable_extensions; do
10111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10112 ac_cv_prog_FREETYPE_CONFIG="$ac_prog"
10113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10121 FREETYPE_CONFIG=$ac_cv_prog_FREETYPE_CONFIG
10122 if test -n "$FREETYPE_CONFIG"; then
10123 echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
10124 echo "${ECHO_T}$FREETYPE_CONFIG" >&6
10126 echo "$as_me:$LINENO: result: no" >&5
10127 echo "${ECHO_T}no" >&6
10130 test -n "$FREETYPE_CONFIG" && break
10133 OLDCPPFLAGS="${CPPFLAGS}"
10135 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
10136 CPPFLAGS="$CPPFLAGS "`freetype-config --cflags`
10137 else if test -d /usr/include/freetype2; then
10138 CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
10139 else if test -d /usr/local/include/freetype2; then
10140 CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
10145 if test "x${FREETYPE_CONFIG}" '=' "x";then
10146 # if we didn't find the freetype-config program, we won't
10147 # know where the libs are expected to be. So just blindly
10148 # try to link against them.
10149 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
10150 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
10151 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
10152 echo $ECHO_N "(cached) $ECHO_C" >&6
10154 ac_check_lib_save_LIBS=$LIBS
10155 LIBS="-lfreetype $LIBS"
10156 cat >conftest.$ac_ext <<_ACEOF
10159 cat confdefs.h >>conftest.$ac_ext
10160 cat >>conftest.$ac_ext <<_ACEOF
10161 /* end confdefs.h. */
10163 /* Override any gcc2 internal prototype to avoid an error. */
10167 /* We use char because int might match the return type of a gcc2
10168 builtin and then its argument prototype would still apply. */
10169 char FT_Init_FreeType ();
10173 FT_Init_FreeType ();
10178 rm -f conftest.$ac_objext conftest$ac_exeext
10179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10180 (eval $ac_link) 2>conftest.er1
10182 grep -v '^ *+' conftest.er1 >conftest.err
10184 cat conftest.err >&5
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); } &&
10187 { ac_try='test -z "$ac_c_werror_flag"
10188 || test ! -s conftest.err'
10189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10190 (eval $ac_try) 2>&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); }; } &&
10194 { ac_try='test -s conftest$ac_exeext'
10195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10196 (eval $ac_try) 2>&5
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); }; }; then
10200 ac_cv_lib_freetype_FT_Init_FreeType=yes
10202 echo "$as_me: failed program was:" >&5
10203 sed 's/^/| /' conftest.$ac_ext >&5
10205 ac_cv_lib_freetype_FT_Init_FreeType=no
10207 rm -f conftest.err conftest.$ac_objext \
10208 conftest$ac_exeext conftest.$ac_ext
10209 LIBS=$ac_check_lib_save_LIBS
10211 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
10212 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10213 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
10214 HAVE_LIB_FREETYPE=1
10220 for ac_header in ft2build.h
10222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10224 echo "$as_me:$LINENO: checking for $ac_header" >&5
10225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10227 echo $ECHO_N "(cached) $ECHO_C" >&6
10229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10232 # Is the header compilable?
10233 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10234 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10235 cat >conftest.$ac_ext <<_ACEOF
10238 cat confdefs.h >>conftest.$ac_ext
10239 cat >>conftest.$ac_ext <<_ACEOF
10240 /* end confdefs.h. */
10241 $ac_includes_default
10242 #include <$ac_header>
10244 rm -f conftest.$ac_objext
10245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10246 (eval $ac_compile) 2>conftest.er1
10248 grep -v '^ *+' conftest.er1 >conftest.err
10250 cat conftest.err >&5
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); } &&
10253 { ac_try='test -z "$ac_c_werror_flag"
10254 || test ! -s conftest.err'
10255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10256 (eval $ac_try) 2>&5
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); }; } &&
10260 { ac_try='test -s conftest.$ac_objext'
10261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10262 (eval $ac_try) 2>&5
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); }; }; then
10266 ac_header_compiler=yes
10268 echo "$as_me: failed program was:" >&5
10269 sed 's/^/| /' conftest.$ac_ext >&5
10271 ac_header_compiler=no
10273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10274 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10275 echo "${ECHO_T}$ac_header_compiler" >&6
10277 # Is the header present?
10278 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10279 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10280 cat >conftest.$ac_ext <<_ACEOF
10283 cat confdefs.h >>conftest.$ac_ext
10284 cat >>conftest.$ac_ext <<_ACEOF
10285 /* end confdefs.h. */
10286 #include <$ac_header>
10288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10291 grep -v '^ *+' conftest.er1 >conftest.err
10293 cat conftest.err >&5
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); } >/dev/null; then
10296 if test -s conftest.err; then
10297 ac_cpp_err=$ac_c_preproc_warn_flag
10298 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10305 if test -z "$ac_cpp_err"; then
10306 ac_header_preproc=yes
10308 echo "$as_me: failed program was:" >&5
10309 sed 's/^/| /' conftest.$ac_ext >&5
10311 ac_header_preproc=no
10313 rm -f conftest.err conftest.$ac_ext
10314 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10315 echo "${ECHO_T}$ac_header_preproc" >&6
10317 # So? What about this header?
10318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10320 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10321 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10323 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10324 ac_header_preproc=yes
10327 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10328 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10329 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10330 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10331 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10332 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10333 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10334 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10337 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10338 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10341 ## ------------------------------------------ ##
10342 ## Report this to the AC_PACKAGE_NAME lists. ##
10343 ## ------------------------------------------ ##
10346 sed "s/^/$as_me: WARNING: /" >&2
10349 echo "$as_me:$LINENO: checking for $ac_header" >&5
10350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10352 echo $ECHO_N "(cached) $ECHO_C" >&6
10354 eval "$as_ac_Header=\$ac_header_preproc"
10356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10361 cat >>confdefs.h <<_ACEOF
10362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10369 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
10371 for ac_header in freetype/freetype.h
10373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10375 echo "$as_me:$LINENO: checking for $ac_header" >&5
10376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10378 echo $ECHO_N "(cached) $ECHO_C" >&6
10380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10383 # Is the header compilable?
10384 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10385 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10386 cat >conftest.$ac_ext <<_ACEOF
10389 cat confdefs.h >>conftest.$ac_ext
10390 cat >>conftest.$ac_ext <<_ACEOF
10391 /* end confdefs.h. */
10392 $ac_includes_default
10393 #include <$ac_header>
10395 rm -f conftest.$ac_objext
10396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10397 (eval $ac_compile) 2>conftest.er1
10399 grep -v '^ *+' conftest.er1 >conftest.err
10401 cat conftest.err >&5
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); } &&
10404 { ac_try='test -z "$ac_c_werror_flag"
10405 || test ! -s conftest.err'
10406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10407 (eval $ac_try) 2>&5
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); }; } &&
10411 { ac_try='test -s conftest.$ac_objext'
10412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10413 (eval $ac_try) 2>&5
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); }; }; then
10417 ac_header_compiler=yes
10419 echo "$as_me: failed program was:" >&5
10420 sed 's/^/| /' conftest.$ac_ext >&5
10422 ac_header_compiler=no
10424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10425 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10426 echo "${ECHO_T}$ac_header_compiler" >&6
10428 # Is the header present?
10429 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10430 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10431 cat >conftest.$ac_ext <<_ACEOF
10434 cat confdefs.h >>conftest.$ac_ext
10435 cat >>conftest.$ac_ext <<_ACEOF
10436 /* end confdefs.h. */
10437 #include <$ac_header>
10439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10440 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10442 grep -v '^ *+' conftest.er1 >conftest.err
10444 cat conftest.err >&5
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); } >/dev/null; then
10447 if test -s conftest.err; then
10448 ac_cpp_err=$ac_c_preproc_warn_flag
10449 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10456 if test -z "$ac_cpp_err"; then
10457 ac_header_preproc=yes
10459 echo "$as_me: failed program was:" >&5
10460 sed 's/^/| /' conftest.$ac_ext >&5
10462 ac_header_preproc=no
10464 rm -f conftest.err conftest.$ac_ext
10465 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10466 echo "${ECHO_T}$ac_header_preproc" >&6
10468 # So? What about this header?
10469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10471 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10472 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10474 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10475 ac_header_preproc=yes
10478 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10479 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10480 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10481 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10482 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10483 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10484 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10485 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10487 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10488 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10489 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10492 ## ------------------------------------------ ##
10493 ## Report this to the AC_PACKAGE_NAME lists. ##
10494 ## ------------------------------------------ ##
10497 sed "s/^/$as_me: WARNING: /" >&2
10500 echo "$as_me:$LINENO: checking for $ac_header" >&5
10501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10503 echo $ECHO_N "(cached) $ECHO_C" >&6
10505 eval "$as_ac_Header=\$ac_header_preproc"
10507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10508 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10512 cat >>confdefs.h <<_ACEOF
10513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10515 HAVE_FREETYPE_FREETYPE_H=1
10522 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
10523 "x${HAVE_FREETYPE_CONFIG}" '!=' "x";then
10524 if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
10527 if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
10532 if test "x${HAVE_FREETYPE}" = "x1"; then
10533 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
10534 LIBS="$LIBS "`freetype-config --libs`
10536 LIBS="$LIBS -lfreetype"
10539 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
10540 HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
10543 echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
10544 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6
10546 cat > conftest.c << EOF
10547 $HAVE_FT2BUILD_H_DEFINE
10549 #ifdef HAVE_FT2BUILD_H
10550 #include <ft2build.h>
10551 #include FT_FREETYPE_H
10552 #include FT_GLYPH_H
10553 #include FT_SIZES_H
10554 #include FT_SFNT_NAMES_H
10555 #include FT_TRUETYPE_IDS_H
10556 #include FT_OUTLINE_H
10558 #include <freetype/freetype.h>
10559 #include <freetype/ftglyph.h>
10560 #include <freetype/ftsizes.h>
10561 #include <freetype/ftsnames.h>
10562 #include <freetype/ttnameid.h>
10563 #include <freetype/ftoutln.h>
10568 FT_Library ftlibrary;
10580 FT_Init_FreeType(&ftlibrary);
10581 FT_New_Face(ftlibrary, "filename", 0, &face);
10582 i = face->num_glyphs - 1;
10583 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
10584 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
10585 FT_Get_Postscript_Name(face);
10586 FT_Get_Char_Index(face, 33);
10587 FT_Get_First_Char(face, &i);
10588 FT_Get_Next_Char(face, 33, &i);
10589 if(FT_HAS_GLYPH_NAMES(face)) {
10590 FT_Get_Glyph_Name(face, 33, name, 127);
10592 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
10593 FT_Get_Glyph(face->glyph, &glyph);
10594 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
10595 FT_Done_Glyph(glyph);
10596 FT_Done_Face(face);
10597 FT_Done_FreeType(ftlibrary);
10602 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
10603 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10604 echo "$as_me:$LINENO: result: yes" >&5
10605 echo "${ECHO_T}yes" >&6
10606 cat >>confdefs.h <<_ACEOF
10607 #define HAVE_FREETYPE 1
10610 cat >>confdefs.h <<_ACEOF
10611 #define USE_FREETYPE 1
10615 echo "configure: failed program was:" >&5
10618 echo "$as_me:$LINENO: result: no" >&5
10619 echo "${ECHO_T}no" >&6
10624 # if the above didn't work out, reset all changes to the compiler variables.
10625 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
10626 CPPFLAGS=$OLDCPPFLAGS
10632 OLDCPPFLAGS="${CPPFLAGS}"
10635 if test -d /usr/include/fontconfig; then
10636 CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
10639 echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
10640 echo $ECHO_N "checking for FcInit in -lfontconfig... $ECHO_C" >&6
10641 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
10642 echo $ECHO_N "(cached) $ECHO_C" >&6
10644 ac_check_lib_save_LIBS=$LIBS
10645 LIBS="-lfontconfig $LIBS"
10646 cat >conftest.$ac_ext <<_ACEOF
10649 cat confdefs.h >>conftest.$ac_ext
10650 cat >>conftest.$ac_ext <<_ACEOF
10651 /* end confdefs.h. */
10653 /* Override any gcc2 internal prototype to avoid an error. */
10657 /* We use char because int might match the return type of a gcc2
10658 builtin and then its argument prototype would still apply. */
10668 rm -f conftest.$ac_objext conftest$ac_exeext
10669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10670 (eval $ac_link) 2>conftest.er1
10672 grep -v '^ *+' conftest.er1 >conftest.err
10674 cat conftest.err >&5
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); } &&
10677 { ac_try='test -z "$ac_c_werror_flag"
10678 || test ! -s conftest.err'
10679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10680 (eval $ac_try) 2>&5
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); }; } &&
10684 { ac_try='test -s conftest$ac_exeext'
10685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10686 (eval $ac_try) 2>&5
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); }; }; then
10690 ac_cv_lib_fontconfig_FcInit=yes
10692 echo "$as_me: failed program was:" >&5
10693 sed 's/^/| /' conftest.$ac_ext >&5
10695 ac_cv_lib_fontconfig_FcInit=no
10697 rm -f conftest.err conftest.$ac_objext \
10698 conftest$ac_exeext conftest.$ac_ext
10699 LIBS=$ac_check_lib_save_LIBS
10701 echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
10702 echo "${ECHO_T}$ac_cv_lib_fontconfig_FcInit" >&6
10703 if test $ac_cv_lib_fontconfig_FcInit = yes; then
10704 HAVE_LIB_FONTCONFIG=1
10708 for ac_header in fontconfig.h
10710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10712 echo "$as_me:$LINENO: checking for $ac_header" >&5
10713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10715 echo $ECHO_N "(cached) $ECHO_C" >&6
10717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10720 # Is the header compilable?
10721 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10722 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10723 cat >conftest.$ac_ext <<_ACEOF
10726 cat confdefs.h >>conftest.$ac_ext
10727 cat >>conftest.$ac_ext <<_ACEOF
10728 /* end confdefs.h. */
10729 $ac_includes_default
10730 #include <$ac_header>
10732 rm -f conftest.$ac_objext
10733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10734 (eval $ac_compile) 2>conftest.er1
10736 grep -v '^ *+' conftest.er1 >conftest.err
10738 cat conftest.err >&5
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); } &&
10741 { ac_try='test -z "$ac_c_werror_flag"
10742 || test ! -s conftest.err'
10743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10744 (eval $ac_try) 2>&5
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); }; } &&
10748 { ac_try='test -s conftest.$ac_objext'
10749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10750 (eval $ac_try) 2>&5
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); }; }; then
10754 ac_header_compiler=yes
10756 echo "$as_me: failed program was:" >&5
10757 sed 's/^/| /' conftest.$ac_ext >&5
10759 ac_header_compiler=no
10761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10762 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10763 echo "${ECHO_T}$ac_header_compiler" >&6
10765 # Is the header present?
10766 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10768 cat >conftest.$ac_ext <<_ACEOF
10771 cat confdefs.h >>conftest.$ac_ext
10772 cat >>conftest.$ac_ext <<_ACEOF
10773 /* end confdefs.h. */
10774 #include <$ac_header>
10776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10777 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10779 grep -v '^ *+' conftest.er1 >conftest.err
10781 cat conftest.err >&5
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); } >/dev/null; then
10784 if test -s conftest.err; then
10785 ac_cpp_err=$ac_c_preproc_warn_flag
10786 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10793 if test -z "$ac_cpp_err"; then
10794 ac_header_preproc=yes
10796 echo "$as_me: failed program was:" >&5
10797 sed 's/^/| /' conftest.$ac_ext >&5
10799 ac_header_preproc=no
10801 rm -f conftest.err conftest.$ac_ext
10802 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10803 echo "${ECHO_T}$ac_header_preproc" >&6
10805 # So? What about this header?
10806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10808 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10812 ac_header_preproc=yes
10815 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10817 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10818 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10819 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10821 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10822 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10825 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10829 ## ------------------------------------------ ##
10830 ## Report this to the AC_PACKAGE_NAME lists. ##
10831 ## ------------------------------------------ ##
10834 sed "s/^/$as_me: WARNING: /" >&2
10837 echo "$as_me:$LINENO: checking for $ac_header" >&5
10838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10840 echo $ECHO_N "(cached) $ECHO_C" >&6
10842 eval "$as_ac_Header=\$ac_header_preproc"
10844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10849 cat >>confdefs.h <<_ACEOF
10850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10852 HAVE_FONTCONFIG_H=1
10858 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
10859 if test "x${HAVE_FONTCONFIG_H}" != "x";then
10864 if test "x${HAVE_FONTCONFIG}" = "x1"; then
10865 LIBS="$LIBS -lfontconfig"
10866 echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
10867 echo $ECHO_N "checking whether we can compile the fontconfig test program... $ECHO_C" >&6
10869 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
10870 #move freetype library to the end of libraries, otherwise fontconfig
10872 LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
10875 cat > conftest.c << EOF
10876 #include <fontconfig.h>
10880 FcPattern *pattern, *match;
10884 pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
10885 FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
10886 FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
10887 FcConfigSubstitute(0, pattern, FcMatchPattern);
10888 FcDefaultSubstitute(pattern);
10889 match = FcFontMatch(0, pattern, &result);
10890 FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
10891 FcPatternPrint(pattern);
10892 FcPatternDestroy(pattern);
10893 FcPatternDestroy(match);
10898 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
10899 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10900 echo "$as_me:$LINENO: result: yes" >&5
10901 echo "${ECHO_T}yes" >&6
10902 cat >>confdefs.h <<_ACEOF
10903 #define HAVE_FONTCONFIG 1
10907 echo "configure: failed program was:" >&5
10910 echo "$as_me:$LINENO: result: no" >&5
10911 echo "${ECHO_T}no" >&6
10916 # if the above didn't work out, reset all changes to the compiler variables.
10917 if test "x${HAVE_FREETYPE}" "!=" "x1"; then
10918 CPPFLAGS=$OLDCPPFLAGS
10923 # ------------------------------------------------------------------
10927 if test "x${DISABLE_LAME}" = "xtrue"; then
10928 echo "*" Disabling lame support...
10930 # old lame code at lib/lame
10931 if test -f lib/lame/Makefile.in; then
10932 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)"
10933 lame_makefile="lib/lame/Makefile"
10934 CPPFLAGS="$CPPFLAGS -Ilame"
10935 cat >>confdefs.h <<_ACEOF
10936 #define HAVE_LAME 1
10940 if test -d /usr/include/lame; then
10941 CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
10943 if test -d /usr/local/include/lame; then
10944 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
10948 echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
10949 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6
10950 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
10951 echo $ECHO_N "(cached) $ECHO_C" >&6
10953 ac_check_lib_save_LIBS=$LIBS
10954 LIBS="-lmp3lame $LIBS"
10955 cat >conftest.$ac_ext <<_ACEOF
10958 cat confdefs.h >>conftest.$ac_ext
10959 cat >>conftest.$ac_ext <<_ACEOF
10960 /* end confdefs.h. */
10962 /* Override any gcc2 internal prototype to avoid an error. */
10966 /* We use char because int might match the return type of a gcc2
10967 builtin and then its argument prototype would still apply. */
10977 rm -f conftest.$ac_objext conftest$ac_exeext
10978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10979 (eval $ac_link) 2>conftest.er1
10981 grep -v '^ *+' conftest.er1 >conftest.err
10983 cat conftest.err >&5
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); } &&
10986 { ac_try='test -z "$ac_c_werror_flag"
10987 || test ! -s conftest.err'
10988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10989 (eval $ac_try) 2>&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); }; } &&
10993 { ac_try='test -s conftest$ac_exeext'
10994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10995 (eval $ac_try) 2>&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); }; }; then
10999 ac_cv_lib_mp3lame_lame_init=yes
11001 echo "$as_me: failed program was:" >&5
11002 sed 's/^/| /' conftest.$ac_ext >&5
11004 ac_cv_lib_mp3lame_lame_init=no
11006 rm -f conftest.err conftest.$ac_objext \
11007 conftest$ac_exeext conftest.$ac_ext
11008 LIBS=$ac_check_lib_save_LIBS
11010 echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
11011 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6
11012 if test $ac_cv_lib_mp3lame_lame_init = yes; then
11013 cat >>confdefs.h <<_ACEOF
11014 #define HAVE_LIBMP3LAME 1
11017 LIBS="-lmp3lame $LIBS"
11024 for ac_header in lame.h
11026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11028 echo "$as_me:$LINENO: checking for $ac_header" >&5
11029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11031 echo $ECHO_N "(cached) $ECHO_C" >&6
11033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11036 # Is the header compilable?
11037 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11039 cat >conftest.$ac_ext <<_ACEOF
11042 cat confdefs.h >>conftest.$ac_ext
11043 cat >>conftest.$ac_ext <<_ACEOF
11044 /* end confdefs.h. */
11045 $ac_includes_default
11046 #include <$ac_header>
11048 rm -f conftest.$ac_objext
11049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11050 (eval $ac_compile) 2>conftest.er1
11052 grep -v '^ *+' conftest.er1 >conftest.err
11054 cat conftest.err >&5
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); } &&
11057 { ac_try='test -z "$ac_c_werror_flag"
11058 || test ! -s conftest.err'
11059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11060 (eval $ac_try) 2>&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); }; } &&
11064 { ac_try='test -s conftest.$ac_objext'
11065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11066 (eval $ac_try) 2>&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); }; }; then
11070 ac_header_compiler=yes
11072 echo "$as_me: failed program was:" >&5
11073 sed 's/^/| /' conftest.$ac_ext >&5
11075 ac_header_compiler=no
11077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11078 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11079 echo "${ECHO_T}$ac_header_compiler" >&6
11081 # Is the header present?
11082 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11083 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11084 cat >conftest.$ac_ext <<_ACEOF
11087 cat confdefs.h >>conftest.$ac_ext
11088 cat >>conftest.$ac_ext <<_ACEOF
11089 /* end confdefs.h. */
11090 #include <$ac_header>
11092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11095 grep -v '^ *+' conftest.er1 >conftest.err
11097 cat conftest.err >&5
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); } >/dev/null; then
11100 if test -s conftest.err; then
11101 ac_cpp_err=$ac_c_preproc_warn_flag
11102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11109 if test -z "$ac_cpp_err"; then
11110 ac_header_preproc=yes
11112 echo "$as_me: failed program was:" >&5
11113 sed 's/^/| /' conftest.$ac_ext >&5
11115 ac_header_preproc=no
11117 rm -f conftest.err conftest.$ac_ext
11118 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11119 echo "${ECHO_T}$ac_header_preproc" >&6
11121 # So? What about this header?
11122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11124 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11125 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11127 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11128 ac_header_preproc=yes
11131 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11132 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11133 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11134 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11135 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11136 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11137 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11138 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11140 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11141 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11142 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11145 ## ------------------------------------------ ##
11146 ## Report this to the AC_PACKAGE_NAME lists. ##
11147 ## ------------------------------------------ ##
11150 sed "s/^/$as_me: WARNING: /" >&2
11153 echo "$as_me:$LINENO: checking for $ac_header" >&5
11154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11156 echo $ECHO_N "(cached) $ECHO_C" >&6
11158 eval "$as_ac_Header=\$ac_header_preproc"
11160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11161 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11165 cat >>confdefs.h <<_ACEOF
11166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11173 if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$ac_cv_header_lame_h" "!=" "x";then
11174 cat >>confdefs.h <<_ACEOF
11175 #define HAVE_LAME 1
11183 # ------------------------------------------------------------------
11187 for ac_prog in avifile-config
11189 # Extract the first word of "$ac_prog", so it can be a program name with args.
11190 set dummy $ac_prog; ac_word=$2
11191 echo "$as_me:$LINENO: checking for $ac_word" >&5
11192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11193 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
11194 echo $ECHO_N "(cached) $ECHO_C" >&6
11196 if test -n "$AVIFILE_CONFIG"; then
11197 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
11199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11200 for as_dir in $PATH
11203 test -z "$as_dir" && as_dir=.
11204 for ac_exec_ext in '' $ac_executable_extensions; do
11205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11206 ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
11207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11215 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
11216 if test -n "$AVIFILE_CONFIG"; then
11217 echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
11218 echo "${ECHO_T}$AVIFILE_CONFIG" >&6
11220 echo "$as_me:$LINENO: result: no" >&5
11221 echo "${ECHO_T}no" >&6
11224 test -n "$AVIFILE_CONFIG" && break
11228 if test "x$AVIFILE_CONFIG" '!=' "x";then
11229 OLDCPPFLAGS="$CPPFLAGS"
11230 # temporarily add avifile paths to CPPFLAGS...
11231 CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
11234 for ac_header in avifile/version.h version.h
11236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11238 echo "$as_me:$LINENO: checking for $ac_header" >&5
11239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11241 echo $ECHO_N "(cached) $ECHO_C" >&6
11243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11244 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11246 # Is the header compilable?
11247 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11249 cat >conftest.$ac_ext <<_ACEOF
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h. */
11255 $ac_includes_default
11256 #include <$ac_header>
11258 rm -f conftest.$ac_objext
11259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11260 (eval $ac_compile) 2>conftest.er1
11262 grep -v '^ *+' conftest.er1 >conftest.err
11264 cat conftest.err >&5
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); } &&
11267 { ac_try='test -z "$ac_c_werror_flag"
11268 || test ! -s conftest.err'
11269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11270 (eval $ac_try) 2>&5
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); }; } &&
11274 { ac_try='test -s conftest.$ac_objext'
11275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11276 (eval $ac_try) 2>&5
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); }; }; then
11280 ac_header_compiler=yes
11282 echo "$as_me: failed program was:" >&5
11283 sed 's/^/| /' conftest.$ac_ext >&5
11285 ac_header_compiler=no
11287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11288 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11289 echo "${ECHO_T}$ac_header_compiler" >&6
11291 # Is the header present?
11292 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11294 cat >conftest.$ac_ext <<_ACEOF
11297 cat confdefs.h >>conftest.$ac_ext
11298 cat >>conftest.$ac_ext <<_ACEOF
11299 /* end confdefs.h. */
11300 #include <$ac_header>
11302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11305 grep -v '^ *+' conftest.er1 >conftest.err
11307 cat conftest.err >&5
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); } >/dev/null; then
11310 if test -s conftest.err; then
11311 ac_cpp_err=$ac_c_preproc_warn_flag
11312 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11319 if test -z "$ac_cpp_err"; then
11320 ac_header_preproc=yes
11322 echo "$as_me: failed program was:" >&5
11323 sed 's/^/| /' conftest.$ac_ext >&5
11325 ac_header_preproc=no
11327 rm -f conftest.err conftest.$ac_ext
11328 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11329 echo "${ECHO_T}$ac_header_preproc" >&6
11331 # So? What about this header?
11332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11334 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11335 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11337 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11338 ac_header_preproc=yes
11341 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11342 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11343 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11344 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11345 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11346 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11347 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11348 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11350 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11351 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11352 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11355 ## ------------------------------------------ ##
11356 ## Report this to the AC_PACKAGE_NAME lists. ##
11357 ## ------------------------------------------ ##
11360 sed "s/^/$as_me: WARNING: /" >&2
11363 echo "$as_me:$LINENO: checking for $ac_header" >&5
11364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11366 echo $ECHO_N "(cached) $ECHO_C" >&6
11368 eval "$as_ac_Header=\$ac_header_preproc"
11370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11375 cat >>confdefs.h <<_ACEOF
11376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11384 CPPFLAGS="$OLDCPPFLAGS"
11387 echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
11388 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6
11390 if test "x${ac_cv_header_version_h}" '=' "xyes";then
11391 HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
11393 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
11394 HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
11397 cat > conftest.cpp << EOF
11399 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
11400 // so we have to introduce them this way
11401 $HAVE_VERSION_H_DEFINE
11402 $HAVE_AVIFILE_VERSION_H_DEFINE
11404 #ifdef HAVE_VERSION_H
11405 #include <version.h>
11407 #ifdef HAVE_AVIFILE_VERSION_H
11408 #include <avifile/version.h>
11411 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
11412 #include <avifile.h>
11413 #include <aviplay.h>
11414 #include <fourcc.h>
11415 #include <creators.h>
11416 #include <StreamInfo.h>
11419 #include <avifile.h>
11420 #include <aviplay.h>
11421 #include <aviutil.h>
11422 #define Width width
11423 #define Height height
11430 IAviReadFile* player;
11431 IAviReadStream* astream;
11432 IAviReadStream* vstream;
11433 player = CreateIAviReadFile(0);
11434 astream = player->GetStream(0, AviStream::Audio);
11435 vstream = player->GetStream(0, AviStream::Video);
11436 vstream -> StartStreaming();
11437 astream -> StartStreaming();
11439 MainAVIHeader head;
11440 player->GetFileHeader(&head);
11441 head.dwMicroSecPerFrame;
11442 head.dwTotalFrames;
11446 head.dwMicroSecPerFrame;
11447 astream->GetEndPos(),
11448 astream->GetEndTime());
11449 player->StreamCount();
11451 StreamInfo*audioinfo;
11452 StreamInfo*videoinfo;
11453 audioinfo = astream->GetStreamInfo();
11454 videoinfo = vstream->GetStreamInfo();
11455 videoinfo->GetVideoWidth();
11456 videoinfo->GetVideoHeight();
11457 audioinfo->GetAudioSamplesPerSec();
11458 videoinfo->GetFps();
11460 CImage*img = vstream->GetFrame();
11467 astream->GetAudioFormatInfo(&wave,0);
11469 astream->ReadFrames(0,0,0,a,b);
11471 int main (int argc, char*argv)
11477 if test "x$AVIFILE_CONFIG" '!=' "x";then
11478 AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
11479 AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
11480 avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
11481 if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
11482 echo "$as_me:$LINENO: result: yes" >&5
11483 echo "${ECHO_T}yes" >&6
11486 cat >>confdefs.h <<_ACEOF
11487 #define AVIFILE true
11491 echo "configure: failed program was:" >&5
11492 cat conftest.cpp >&5
11493 echo "$as_me:$LINENO: result: no" >&5
11494 echo "${ECHO_T}no" >&6
11497 echo "$as_me:$LINENO: result: no" >&5
11498 echo "${ECHO_T}no" >&6
11502 if test "x${AVIFILE}" = "xtrue"; then
11503 VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
11504 VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
11505 cat >>confdefs.h <<_ACEOF
11506 #define HAVE_AVIFILE 1
11511 if test "x${WIN32}" != "x"; then
11512 #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
11513 #if test "x${AVIFIL32}" != "x"; then
11514 # VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
11516 VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
11522 # ------------------------------------------------------------------
11524 if test "x${UNCOMPRESS}" = "xgzip"; then
11525 cat >>confdefs.h <<_ACEOF
11532 # ------------------------------------------------------------------
11535 echo "$as_me:$LINENO: checking for Python.h and PIL" >&5
11536 echo $ECHO_N "checking for Python.h and PIL... $ECHO_C" >&6
11538 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
11541 if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
11542 echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
11544 # iterate through version 2.2 to 2.4
11547 if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.$v/Python.h";then
11549 PYTHON_LIB="-lpython$PY_VERSION /usr/lib/python$PY_VERSION/site-packages/PIL/_imaging.so"
11550 PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
11553 if test -f "/Library/Python/2.$v/PIL/_imaging.so" \
11554 -a "/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
11556 #PYTHON_LIB="-lpython$PY_VERSION /Library/Python/2.$v/PIL/_imaging.so"
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/"
11563 if test "x$PY_VERSION" "!=" "x"; then
11564 echo "$as_me:$LINENO: result: $PY_VERSION" >&5
11565 echo "${ECHO_T}$PY_VERSION" >&6
11566 export PYTHON_INCLUDES PYTHON_LIB
11569 echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
11570 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6
11572 cat > conftest.c << EOF
11573 #include <Python.h>
11574 #include <Imaging.h>
11579 ret = Py_Main(0, 0);
11580 int x; // check also for gcc 2.95.x incompatibilities
11584 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
11585 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11586 echo "$as_me:$LINENO: result: yes" >&5
11587 echo "${ECHO_T}yes" >&6
11590 echo "configure: failed program was:" >&5
11592 echo "$as_me:$LINENO: result: no" >&5
11593 echo "${ECHO_T}no" >&6
11597 echo "$as_me:$LINENO: result: nope" >&5
11598 echo "${ECHO_T}nope" >&6
11602 if test "x$PYTHON_OK" '!=' "xyes";then
11603 echo all install uninstall clean: > lib/python/Makefile
11604 # fail silently- the most users won't have any need for the
11605 # python interface anyway
11607 pythonrfxswf="lib/python/Makefile"
11610 # ------------------------------------------------------------------
11612 echo "$as_me:$LINENO: checking for missing libraries" >&5
11613 echo $ECHO_N "checking for missing libraries... $ECHO_C" >&6
11615 if test "x$ZLIBMISSING" = "xtrue";then
11616 MISSINGLIBS="${MISSINGLIBS} zlib"
11617 DISABLEPNG2SWF=true
11620 if test "x$JPEGLIBMISSING" = "xtrue";then
11621 MISSINGLIBS="${MISSINGLIBS} jpeglib"
11622 DISABLEPDF2SWF=true
11623 DISABLEJPEG2SWF=true
11626 if test "x$T1LIBMISSING" = "xtrue";then
11627 MISSINGLIBS="${MISSINGLIBS} t1lib"
11630 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
11631 DISABLEPDF2SWF=true;
11632 DISABLEJPEG2SWF=true;
11633 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
11636 if test "x$HAVE_FREETYPE" '!=' "x1"; then
11637 DISABLEPDF2SWF=true;
11638 MISSINGLIBS="${MISSINGLIBS} freetype"
11641 if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
11642 MISSINGLIBS="${MISSINGLIBS} t1lib.h"
11644 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
11645 DISABLEPNG2SWF=true;
11646 MISSINGLIBS="${MISSINGLIBS} zlib.h"
11649 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
11650 MISSINGLIBS="${MISSINGLIBS} avifile"
11654 echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
11655 echo "${ECHO_T}${MISSINGLIBS}" >&6
11657 # ------------------------------------------------------------------
11659 if test "x${MISSINGLIBS}" '!=' "x"; then
11660 echo "***************************************************"
11661 echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
11664 avi2swf="avi2swf/Makefile"
11665 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
11666 echo "* Disabling avi2swf tool..."
11667 echo all install uninstall clean: > avi2swf/Makefile
11671 pdf2swf_makefile="pdf2swf/Makefile pdf2swf/xpdf/Makefile"
11672 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
11673 echo "* Disabling pdf2swf tool..."
11674 rm -f pdf2swf/Makefile
11675 echo all install uninstall clean: > pdf2swf/Makefile
11676 pdf2swf_makefile=""
11679 if test "x${ZLIBMISSING}" = "xtrue"; then
11681 echo "* Warning! Without zlib, you will not be able to read"
11682 echo "* or write compressed Flash MX files!"
11685 JPEG2SWF='jpeg2swf$(E)'
11686 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
11687 echo "* Disabling jpeg2swf tool..."
11693 PNG2SWF='png2swf$(E)'
11694 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
11695 echo "* Disabling png2swf tool..."
11701 if test "x${MISSINGLIBS}" '!=' "x"; then
11702 if test "x${PARTIAL}" '=' "x"; then
11703 echo "* (never mind)"
11705 echo "***************************************************"
11708 # ------------------------------------------------------------------
11710 if test -f "release.in"; then release_in="./release"; fi
11711 FILES="$release_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile ${pythonrfxswf} ${lame_makefile}"
11713 ac_config_files="$ac_config_files ${FILES}"
11715 cat >confcache <<\_ACEOF
11716 # This file is a shell script that caches the results of configure
11717 # tests run on this system so they can be shared between configure
11718 # scripts and configure runs, see configure's option --config-cache.
11719 # It is not useful on other systems. If it contains results you don't
11720 # want to keep, you may remove or edit it.
11722 # config.status only pays attention to the cache file if you give it
11723 # the --recheck option to rerun configure.
11725 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11726 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11727 # following values.
11731 # The following way of writing the cache mishandles newlines in values,
11732 # but we know of no workaround that is simple, portable, and efficient.
11733 # So, don't put newlines in cache variables' values.
11734 # Ultrix sh set writes to stderr and can't be redirected directly,
11735 # and sets the high bit in the cache file unless we assign to the vars.
11738 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11740 # `set' does not quote correctly, so add quotes (double-quote
11741 # substitution turns \\\\ into \\, and sed turns \\ into \).
11744 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11747 # `set' quotes correctly as required by POSIX, so do not add quotes.
11749 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11756 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11758 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11760 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11761 if test -w $cache_file; then
11762 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11763 cat confcache >$cache_file
11765 echo "not updating unwritable cache $cache_file"
11770 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11771 # Let make expand exec_prefix.
11772 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11774 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11775 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11776 # trailing colons and then remove the whole line if VPATH becomes empty
11777 # (actually we leave an empty line to preserve line numbers).
11778 if test "x$srcdir" = x.; then
11779 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11780 s/:*\$(srcdir):*/:/;
11781 s/:*\${srcdir}:*/:/;
11783 s/^\([^=]*=[ ]*\):*/\1/;
11789 DEFS=-DHAVE_CONFIG_H
11793 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11794 # 1. Remove the extension, and $U if already installed.
11795 ac_i=`echo "$ac_i" |
11796 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11798 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11799 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11801 LIBOBJS=$ac_libobjs
11803 LTLIBOBJS=$ac_ltlibobjs
11807 : ${CONFIG_STATUS=./config.status}
11808 ac_clean_files_save=$ac_clean_files
11809 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11810 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11811 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11812 cat >$CONFIG_STATUS <<_ACEOF
11814 # Generated by $as_me.
11815 # Run this file to recreate the current configuration.
11816 # Compiler output produced by configure, useful for debugging
11817 # configure, is in config.log if it exists.
11820 ac_cs_recheck=false
11822 SHELL=\${CONFIG_SHELL-$SHELL}
11825 cat >>$CONFIG_STATUS <<\_ACEOF
11826 ## --------------------- ##
11827 ## M4sh Initialization. ##
11828 ## --------------------- ##
11830 # Be Bourne compatible
11831 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11834 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11835 # is contrary to our usage. Disable this feature.
11836 alias -g '${1+"$@"}'='"$@"'
11837 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11840 DUALCASE=1; export DUALCASE # for MKS sh
11842 # Support unset when possible.
11843 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11850 # Work around bugs in pre-3.0 UWIN ksh.
11851 $as_unset ENV MAIL MAILPATH
11858 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11859 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11860 LC_TELEPHONE LC_TIME
11862 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11863 eval $as_var=C; export $as_var
11869 # Required to use basename.
11870 if expr a : '\(a\)' >/dev/null 2>&1; then
11876 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11877 as_basename=basename
11883 # Name of the executable.
11884 as_me=`$as_basename "$0" ||
11885 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11886 X"$0" : 'X\(//\)$' \| \
11887 X"$0" : 'X\(/\)$' \| \
11888 . : '\(.\)' 2>/dev/null ||
11890 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11891 /^X\/\(\/\/\)$/{ s//\1/; q; }
11892 /^X\/\(\/\).*/{ s//\1/; q; }
11896 # PATH needs CR, and LINENO needs CR and PATH.
11897 # Avoid depending upon Character Ranges.
11898 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11899 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11900 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11901 as_cr_digits='0123456789'
11902 as_cr_alnum=$as_cr_Letters$as_cr_digits
11904 # The user is always right.
11905 if test "${PATH_SEPARATOR+set}" != set; then
11906 echo "#! /bin/sh" >conf$$.sh
11907 echo "exit 0" >>conf$$.sh
11909 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11918 as_lineno_1=$LINENO
11919 as_lineno_2=$LINENO
11920 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11921 test "x$as_lineno_1" != "x$as_lineno_2" &&
11922 test "x$as_lineno_3" = "x$as_lineno_2" || {
11923 # Find who we are. Look in the path if we contain no path at all
11926 *[\\/]* ) as_myself=$0 ;;
11927 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11928 for as_dir in $PATH
11931 test -z "$as_dir" && as_dir=.
11932 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11937 # We did not find ourselves, most probably we were run as `sh COMMAND'
11938 # in which case we are not to be found in the path.
11939 if test "x$as_myself" = x; then
11942 if test ! -f "$as_myself"; then
11943 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11944 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11945 { (exit 1); exit 1; }; }
11947 case $CONFIG_SHELL in
11949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11950 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11953 test -z "$as_dir" && as_dir=.
11954 for as_base in sh bash ksh sh5; do
11957 if ("$as_dir/$as_base" -c '
11958 as_lineno_1=$LINENO
11959 as_lineno_2=$LINENO
11960 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11961 test "x$as_lineno_1" != "x$as_lineno_2" &&
11962 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11963 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11964 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11965 CONFIG_SHELL=$as_dir/$as_base
11966 export CONFIG_SHELL
11967 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11975 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11976 # uniformly replaced by the line number. The first 'sed' inserts a
11977 # line-number line before each line; the second 'sed' does the real
11978 # work. The second script uses 'N' to pair each line-number line
11979 # with the numbered line, and appends trailing '-' during
11980 # substitution so that $LINENO is not a special case at line end.
11981 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11982 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11983 sed '=' <$as_myself |
11988 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11991 s,^['$as_cr_digits']*\n,,
11992 ' >$as_me.lineno &&
11993 chmod +x $as_me.lineno ||
11994 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11995 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11996 { (exit 1); exit 1; }; }
11998 # Don't try to exec as it changes $[0], causing all sort of problems
11999 # (the dirname of $[0] is not the place where we might find the
12000 # original and so on. Autoconf is especially sensible to this).
12002 # Exit status is that of the last command.
12007 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12008 *c*,-n*) ECHO_N= ECHO_C='
12010 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12011 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12014 if expr a : '\(a\)' >/dev/null 2>&1; then
12020 rm -f conf$$ conf$$.exe conf$$.file
12022 if ln -s conf$$.file conf$$ 2>/dev/null; then
12023 # We could just check for DJGPP; but this test a) works b) is more generic
12024 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12025 if test -f conf$$.exe; then
12026 # Don't use ln at all; we don't have any links
12031 elif ln conf$$.file conf$$ 2>/dev/null; then
12036 rm -f conf$$ conf$$.exe conf$$.file
12038 if mkdir -p . 2>/dev/null; then
12041 test -d ./-p && rmdir ./-p
12045 as_executable_p="test -f"
12047 # Sed expression to map a string onto a valid CPP name.
12048 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12050 # Sed expression to map a string onto a valid variable name.
12051 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12055 # We need space, tab and new line, in precisely that order.
12065 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12066 # report actual input values of CONFIG_FILES etc. instead of their
12067 # values after options handling. Logging --version etc. is OK.
12071 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12072 ## Running $as_me. ##
12077 This file was extended by $as_me, which was
12078 generated by GNU Autoconf 2.58. Invocation command line was
12080 CONFIG_FILES = $CONFIG_FILES
12081 CONFIG_HEADERS = $CONFIG_HEADERS
12082 CONFIG_LINKS = $CONFIG_LINKS
12083 CONFIG_COMMANDS = $CONFIG_COMMANDS
12087 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12091 # Files that config.status was made for.
12092 if test -n "$ac_config_files"; then
12093 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12096 if test -n "$ac_config_headers"; then
12097 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12100 if test -n "$ac_config_links"; then
12101 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12104 if test -n "$ac_config_commands"; then
12105 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12108 cat >>$CONFIG_STATUS <<\_ACEOF
12111 \`$as_me' instantiates files from templates according to the
12112 current configuration.
12114 Usage: $0 [OPTIONS] [FILE]...
12116 -h, --help print this help, then exit
12117 -V, --version print version number, then exit
12118 -q, --quiet do not print progress messages
12119 -d, --debug don't remove temporary files
12120 --recheck update $as_me by reconfiguring in the same conditions
12121 --file=FILE[:TEMPLATE]
12122 instantiate the configuration file FILE
12123 --header=FILE[:TEMPLATE]
12124 instantiate the configuration header FILE
12126 Configuration files:
12129 Configuration headers:
12132 Report bugs to <bug-autoconf@gnu.org>."
12135 cat >>$CONFIG_STATUS <<_ACEOF
12138 configured by $0, generated by GNU Autoconf 2.58,
12139 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12141 Copyright (C) 2003 Free Software Foundation, Inc.
12142 This config.status script is free software; the Free Software Foundation
12143 gives unlimited permission to copy, distribute and modify it."
12148 cat >>$CONFIG_STATUS <<\_ACEOF
12149 # If no file are specified by the user, then we need to provide default
12150 # value. By we need to know if files were specified by the user.
12156 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12157 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12165 *) # This is not an option, so the user has probably given explicit
12168 ac_need_defaults=false;;
12172 # Handling of the options.
12174 cat >>$CONFIG_STATUS <<\_ACEOF
12175 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12177 --version | --vers* | -V )
12178 echo "$ac_cs_version"; exit 0 ;;
12180 # Conflict between --help and --header
12181 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12182 Try \`$0 --help' for more information." >&5
12183 echo "$as_me: error: ambiguous option: $1
12184 Try \`$0 --help' for more information." >&2;}
12185 { (exit 1); exit 1; }; };;
12186 --help | --hel | -h )
12187 echo "$ac_cs_usage"; exit 0 ;;
12188 --debug | --d* | -d )
12190 --file | --fil | --fi | --f )
12192 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12193 ac_need_defaults=false;;
12194 --header | --heade | --head | --hea )
12196 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12197 ac_need_defaults=false;;
12198 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12199 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12202 # This is an error.
12203 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12204 Try \`$0 --help' for more information." >&5
12205 echo "$as_me: error: unrecognized option: $1
12206 Try \`$0 --help' for more information." >&2;}
12207 { (exit 1); exit 1; }; } ;;
12209 *) ac_config_targets="$ac_config_targets $1" ;;
12215 ac_configure_extra_args=
12217 if $ac_cs_silent; then
12219 ac_configure_extra_args="$ac_configure_extra_args --silent"
12223 cat >>$CONFIG_STATUS <<_ACEOF
12224 if \$ac_cs_recheck; then
12225 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12226 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12235 cat >>$CONFIG_STATUS <<\_ACEOF
12236 for ac_config_target in $ac_config_targets
12238 case "$ac_config_target" in
12239 # Handling of arguments.
12240 "${FILES}" ) CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
12241 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12242 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12243 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12244 { (exit 1); exit 1; }; };;
12248 # If the user did not use the arguments to specify the items to instantiate,
12249 # then the envvar interface is used. Set only those that are not.
12250 # We use the long form for the default assignment because of an extremely
12251 # bizarre bug on SunOS 4.1.3.
12252 if $ac_need_defaults; then
12253 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12254 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12257 # Have a temporary directory for convenience. Make it in the build tree
12258 # simply because there is no reason to put it here, and in addition,
12259 # creating and moving files from /tmp can sometimes cause problems.
12260 # Create a temporary directory, and hook for its removal unless debugging.
12263 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12264 trap '{ (exit 1); exit 1; }' 1 2 13 15
12267 # Create a (secure) tmp directory for tmp files.
12270 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12271 test -n "$tmp" && test -d "$tmp"
12274 tmp=./confstat$$-$RANDOM
12275 (umask 077 && mkdir $tmp)
12278 echo "$me: cannot create a temporary directory in ." >&2
12279 { (exit 1); exit 1; }
12284 cat >>$CONFIG_STATUS <<_ACEOF
12287 # CONFIG_FILES section.
12290 # No need to generate the scripts if there are no CONFIG_FILES.
12291 # This happens for instance when ./config.status config.h
12292 if test -n "\$CONFIG_FILES"; then
12293 # Protect against being on the right side of a sed subst in config.status.
12294 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12295 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12296 s,@SHELL@,$SHELL,;t t
12297 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12298 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12299 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12300 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12301 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12302 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12303 s,@exec_prefix@,$exec_prefix,;t t
12304 s,@prefix@,$prefix,;t t
12305 s,@program_transform_name@,$program_transform_name,;t t
12306 s,@bindir@,$bindir,;t t
12307 s,@sbindir@,$sbindir,;t t
12308 s,@libexecdir@,$libexecdir,;t t
12309 s,@datadir@,$datadir,;t t
12310 s,@sysconfdir@,$sysconfdir,;t t
12311 s,@sharedstatedir@,$sharedstatedir,;t t
12312 s,@localstatedir@,$localstatedir,;t t
12313 s,@libdir@,$libdir,;t t
12314 s,@includedir@,$includedir,;t t
12315 s,@oldincludedir@,$oldincludedir,;t t
12316 s,@infodir@,$infodir,;t t
12317 s,@mandir@,$mandir,;t t
12318 s,@build_alias@,$build_alias,;t t
12319 s,@host_alias@,$host_alias,;t t
12320 s,@target_alias@,$target_alias,;t t
12321 s,@DEFS@,$DEFS,;t t
12322 s,@ECHO_C@,$ECHO_C,;t t
12323 s,@ECHO_N@,$ECHO_N,;t t
12324 s,@ECHO_T@,$ECHO_T,;t t
12325 s,@LIBS@,$LIBS,;t t
12326 s,@build@,$build,;t t
12327 s,@build_cpu@,$build_cpu,;t t
12328 s,@build_vendor@,$build_vendor,;t t
12329 s,@build_os@,$build_os,;t t
12330 s,@host@,$host,;t t
12331 s,@host_cpu@,$host_cpu,;t t
12332 s,@host_vendor@,$host_vendor,;t t
12333 s,@host_os@,$host_os,;t t
12334 s,@SHARED@,$SHARED,;t t
12336 s,@CFLAGS@,$CFLAGS,;t t
12337 s,@LDFLAGS@,$LDFLAGS,;t t
12338 s,@CPPFLAGS@,$CPPFLAGS,;t t
12339 s,@ac_ct_CC@,$ac_ct_CC,;t t
12340 s,@EXEEXT@,$EXEEXT,;t t
12341 s,@OBJEXT@,$OBJEXT,;t t
12343 s,@CXXFLAGS@,$CXXFLAGS,;t t
12344 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12346 s,@RANLIB@,$RANLIB,;t t
12347 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12348 s,@SET_MAKE@,$SET_MAKE,;t t
12349 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12350 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12351 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12352 s,@LN_S@,$LN_S,;t t
12353 s,@ECHO@,$ECHO,;t t
12354 s,@STRIP@,$STRIP,;t t
12355 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12356 s,@EGREP@,$EGREP,;t t
12357 s,@LIBTOOL@,$LIBTOOL,;t t
12358 s,@UNCOMPRESS@,$UNCOMPRESS,;t t
12360 s,@SLEXT@,$SLEXT,;t t
12361 s,@target@,$target,;t t
12362 s,@target_cpu@,$target_cpu,;t t
12363 s,@target_vendor@,$target_vendor,;t t
12364 s,@target_os@,$target_os,;t t
12365 s,@WORDS_BIGENDIAN@,$WORDS_BIGENDIAN,;t t
12366 s,@SYSTEM_BACKTICKS@,$SYSTEM_BACKTICKS,;t t
12367 s,@PACKAGE@,$PACKAGE,;t t
12368 s,@VERSION@,$VERSION,;t t
12369 s,@HAVE_UNISTD_H@,$HAVE_UNISTD_H,;t t
12370 s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t
12371 s,@lame_objects@,$lame_objects,;t t
12372 s,@AVIFILE_CONFIG@,$AVIFILE_CONFIG,;t t
12373 s,@VIDEO_LIBS@,$VIDEO_LIBS,;t t
12374 s,@VIDEO_CFLAGS@,$VIDEO_CFLAGS,;t t
12375 s,@USE_GZIP@,$USE_GZIP,;t t
12376 s,@PYTHON_LIB@,$PYTHON_LIB,;t t
12377 s,@PYTHON_INCLUDES@,$PYTHON_INCLUDES,;t t
12378 s,@JPEG2SWF@,$JPEG2SWF,;t t
12379 s,@PNG2SWF@,$PNG2SWF,;t t
12380 s,@LIBOBJS@,$LIBOBJS,;t t
12381 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12386 cat >>$CONFIG_STATUS <<\_ACEOF
12387 # Split the substitutions into bite-sized pieces for seds with
12388 # small command number limits, like on Digital OSF/1 and HP-UX.
12389 ac_max_sed_lines=48
12390 ac_sed_frag=1 # Number of current file.
12391 ac_beg=1 # First line for current file.
12392 ac_end=$ac_max_sed_lines # Line after last line for current file.
12395 while $ac_more_lines; do
12396 if test $ac_beg -gt 1; then
12397 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12399 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12401 if test ! -s $tmp/subs.frag; then
12402 ac_more_lines=false
12404 # The purpose of the label and of the branching condition is to
12405 # speed up the sed processing (if there are no `@' at all, there
12406 # is no need to browse any of the substitutions).
12407 # These are the two extra sed commands mentioned above.
12409 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12410 if test -z "$ac_sed_cmds"; then
12411 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12413 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12415 ac_sed_frag=`expr $ac_sed_frag + 1`
12417 ac_end=`expr $ac_end + $ac_max_sed_lines`
12420 if test -z "$ac_sed_cmds"; then
12423 fi # test -n "$CONFIG_FILES"
12426 cat >>$CONFIG_STATUS <<\_ACEOF
12427 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12428 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12430 - | *:- | *:-:* ) # input from stdin
12432 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12433 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12434 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12435 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12436 * ) ac_file_in=$ac_file.in ;;
12439 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12440 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12441 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12442 X"$ac_file" : 'X\(//\)[^/]' \| \
12443 X"$ac_file" : 'X\(//\)$' \| \
12444 X"$ac_file" : 'X\(/\)' \| \
12445 . : '\(.\)' 2>/dev/null ||
12447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12448 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12449 /^X\(\/\/\)$/{ s//\1/; q; }
12450 /^X\(\/\).*/{ s//\1/; q; }
12452 { if $as_mkdir_p; then
12457 while test ! -d "$as_dir"; do
12458 as_dirs="$as_dir $as_dirs"
12459 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12460 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12461 X"$as_dir" : 'X\(//\)[^/]' \| \
12462 X"$as_dir" : 'X\(//\)$' \| \
12463 X"$as_dir" : 'X\(/\)' \| \
12464 . : '\(.\)' 2>/dev/null ||
12466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12467 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12468 /^X\(\/\/\)$/{ s//\1/; q; }
12469 /^X\(\/\).*/{ s//\1/; q; }
12472 test ! -n "$as_dirs" || mkdir $as_dirs
12473 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12474 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12475 { (exit 1); exit 1; }; }; }
12479 if test "$ac_dir" != .; then
12480 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12481 # A "../" for each directory in $ac_dir_suffix.
12482 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12484 ac_dir_suffix= ac_top_builddir=
12488 .) # No --srcdir option. We are building in place.
12490 if test -z "$ac_top_builddir"; then
12493 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12495 [\\/]* | ?:[\\/]* ) # Absolute path.
12496 ac_srcdir=$srcdir$ac_dir_suffix;
12497 ac_top_srcdir=$srcdir ;;
12498 *) # Relative path.
12499 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12500 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12503 .) ac_abs_builddir=$ac_builddir;;
12505 case $ac_builddir in
12506 .) ac_abs_builddir="$ac_dir";;
12507 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
12508 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
12512 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12514 case ${ac_top_builddir}. in
12515 .) ac_abs_top_builddir="$ac_dir";;
12516 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12517 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
12521 .) ac_abs_srcdir=$ac_srcdir;;
12524 .) ac_abs_srcdir="$ac_dir";;
12525 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12526 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
12530 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12532 case $ac_top_srcdir in
12533 .) ac_abs_top_srcdir="$ac_dir";;
12534 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12535 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
12541 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12542 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12545 if test x"$ac_file" != x-; then
12546 { echo "$as_me:$LINENO: creating $ac_file" >&5
12547 echo "$as_me: creating $ac_file" >&6;}
12550 # Let's still pretend it is `configure' which instantiates (i.e., don't
12551 # use $as_me), people would be surprised to read:
12552 # /* config.h. Generated by config.status. */
12553 if test x"$ac_file" = x-; then
12556 configure_input="$ac_file. "
12558 configure_input=$configure_input"Generated from `echo $ac_file_in |
12559 sed 's,.*/,,'` by configure."
12561 # First look for the input files in the build tree, otherwise in the
12563 ac_file_inputs=`IFS=:
12564 for f in $ac_file_in; do
12566 -) echo $tmp/stdin ;;
12568 # Absolute (can't be DOS-style, as IFS=:)
12569 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12570 echo "$as_me: error: cannot find input file: $f" >&2;}
12571 { (exit 1); exit 1; }; }
12574 if test -f "$f"; then
12577 elif test -f "$srcdir/$f"; then
12582 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12583 echo "$as_me: error: cannot find input file: $f" >&2;}
12584 { (exit 1); exit 1; }; }
12587 done` || { (exit 1); exit 1; }
12589 cat >>$CONFIG_STATUS <<_ACEOF
12593 cat >>$CONFIG_STATUS <<\_ACEOF
12595 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12596 s,@configure_input@,$configure_input,;t t
12597 s,@srcdir@,$ac_srcdir,;t t
12598 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12599 s,@top_srcdir@,$ac_top_srcdir,;t t
12600 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12601 s,@builddir@,$ac_builddir,;t t
12602 s,@abs_builddir@,$ac_abs_builddir,;t t
12603 s,@top_builddir@,$ac_top_builddir,;t t
12604 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12605 s,@INSTALL@,$ac_INSTALL,;t t
12606 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12608 if test x"$ac_file" != x-; then
12609 mv $tmp/out $ac_file
12617 cat >>$CONFIG_STATUS <<\_ACEOF
12620 # CONFIG_HEADER section.
12623 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12624 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12626 # ac_d sets the value in "#define NAME VALUE" lines.
12627 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12628 ac_dB='[ ].*$,\1#\2'
12631 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12632 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12633 ac_uB='$,\1#\2define\3'
12637 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12638 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12640 - | *:- | *:-:* ) # input from stdin
12642 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12643 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12644 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12645 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12646 * ) ac_file_in=$ac_file.in ;;
12649 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12650 echo "$as_me: creating $ac_file" >&6;}
12652 # First look for the input files in the build tree, otherwise in the
12654 ac_file_inputs=`IFS=:
12655 for f in $ac_file_in; do
12657 -) echo $tmp/stdin ;;
12659 # Absolute (can't be DOS-style, as IFS=:)
12660 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12661 echo "$as_me: error: cannot find input file: $f" >&2;}
12662 { (exit 1); exit 1; }; }
12663 # Do quote $f, to prevent DOS paths from being IFS'd.
12666 if test -f "$f"; then
12669 elif test -f "$srcdir/$f"; then
12674 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12675 echo "$as_me: error: cannot find input file: $f" >&2;}
12676 { (exit 1); exit 1; }; }
12679 done` || { (exit 1); exit 1; }
12680 # Remove the trailing spaces.
12681 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12685 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12686 # `conftest.undefs', that substitutes the proper values into
12687 # config.h.in to produce config.h. The first handles `#define'
12688 # templates, and the second `#undef' templates.
12689 # And first: Protect against being on the right side of a sed subst in
12690 # config.status. Protect against being in an unquoted here document
12691 # in config.status.
12692 rm -f conftest.defines conftest.undefs
12693 # Using a here document instead of a string reduces the quoting nightmare.
12694 # Putting comments in sed scripts is not portable.
12696 # `end' is used to avoid that the second main sed command (meant for
12697 # 0-ary CPP macros) applies to n-ary macro definitions.
12698 # See the Autoconf documentation for `clear'.
12699 cat >confdef2sed.sed <<\_ACEOF
12704 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12706 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12709 # If some macros were called several times there might be several times
12710 # the same #defines, which is useless. Nevertheless, we may not want to
12711 # sort them, since we want the *last* AC-DEFINE to be honored.
12712 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12713 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12714 rm -f confdef2sed.sed
12716 # This sed command replaces #undef with comments. This is necessary, for
12717 # example, in the case of _POSIX_SOURCE, which is predefined and required
12718 # on some systems where configure will not decide to define it.
12719 cat >>conftest.undefs <<\_ACEOF
12720 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12723 # Break up conftest.defines because some shells have a limit on the size
12724 # of here documents, and old seds have small limits too (100 cmds).
12725 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12726 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12727 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12728 echo ' :' >>$CONFIG_STATUS
12729 rm -f conftest.tail
12730 while grep . conftest.defines >/dev/null
12732 # Write a limited-size here document to $tmp/defines.sed.
12733 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12734 # Speed up: don't consider the non `#define' lines.
12735 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12736 # Work around the forget-to-reset-the-flag bug.
12737 echo 't clr' >>$CONFIG_STATUS
12738 echo ': clr' >>$CONFIG_STATUS
12739 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12741 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12743 mv $tmp/out $tmp/in
12745 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12746 rm -f conftest.defines
12747 mv conftest.tail conftest.defines
12749 rm -f conftest.defines
12750 echo ' fi # grep' >>$CONFIG_STATUS
12751 echo >>$CONFIG_STATUS
12753 # Break up conftest.undefs because some shells have a limit on the size
12754 # of here documents, and old seds have small limits too (100 cmds).
12755 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12756 rm -f conftest.tail
12757 while grep . conftest.undefs >/dev/null
12759 # Write a limited-size here document to $tmp/undefs.sed.
12760 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12761 # Speed up: don't consider the non `#undef'
12762 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12763 # Work around the forget-to-reset-the-flag bug.
12764 echo 't clr' >>$CONFIG_STATUS
12765 echo ': clr' >>$CONFIG_STATUS
12766 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12768 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12770 mv $tmp/out $tmp/in
12772 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12773 rm -f conftest.undefs
12774 mv conftest.tail conftest.undefs
12776 rm -f conftest.undefs
12778 cat >>$CONFIG_STATUS <<\_ACEOF
12779 # Let's still pretend it is `configure' which instantiates (i.e., don't
12780 # use $as_me), people would be surprised to read:
12781 # /* config.h. Generated by config.status. */
12782 if test x"$ac_file" = x-; then
12783 echo "/* Generated by configure. */" >$tmp/config.h
12785 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12787 cat $tmp/in >>$tmp/config.h
12789 if test x"$ac_file" != x-; then
12790 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12791 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12792 echo "$as_me: $ac_file is unchanged" >&6;}
12794 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12795 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12796 X"$ac_file" : 'X\(//\)[^/]' \| \
12797 X"$ac_file" : 'X\(//\)$' \| \
12798 X"$ac_file" : 'X\(/\)' \| \
12799 . : '\(.\)' 2>/dev/null ||
12801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12802 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12803 /^X\(\/\/\)$/{ s//\1/; q; }
12804 /^X\(\/\).*/{ s//\1/; q; }
12806 { if $as_mkdir_p; then
12811 while test ! -d "$as_dir"; do
12812 as_dirs="$as_dir $as_dirs"
12813 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12814 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12815 X"$as_dir" : 'X\(//\)[^/]' \| \
12816 X"$as_dir" : 'X\(//\)$' \| \
12817 X"$as_dir" : 'X\(/\)' \| \
12818 . : '\(.\)' 2>/dev/null ||
12820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12821 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12822 /^X\(\/\/\)$/{ s//\1/; q; }
12823 /^X\(\/\).*/{ s//\1/; q; }
12826 test ! -n "$as_dirs" || mkdir $as_dirs
12827 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12828 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12829 { (exit 1); exit 1; }; }; }
12832 mv $tmp/config.h $ac_file
12836 rm -f $tmp/config.h
12841 cat >>$CONFIG_STATUS <<\_ACEOF
12843 { (exit 0); exit 0; }
12845 chmod +x $CONFIG_STATUS
12846 ac_clean_files=$ac_clean_files_save
12849 # configure is writing to config.log, and then calls config.status.
12850 # config.status does its own redirection, appending to config.log.
12851 # Unfortunately, on DOS this fails, as config.log is still kept open
12852 # by configure, so config.status won't be able to write to it; its
12853 # output is simply discarded. So we exec the FD to /dev/null,
12854 # effectively closing config.log, so it can be properly (re)opened and
12855 # appended to by config.status. When coming back to configure, we
12856 # need to make the FD available again.
12857 if test "$no_create" != yes; then
12859 ac_config_status_args=
12860 test "$silent" = yes &&
12861 ac_config_status_args="$ac_config_status_args --quiet"
12863 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12865 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12866 # would make configure fail if this is the last instruction.
12867 $ac_cs_success || { (exit 1); exit 1; }