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-warnings turn on compiler warnings
1023 --enable-optimizations turn on compiler optimizations (recommended for avi2swf)
1024 --disable-lame don't compile any L.A.M.E. mp3 encoding code in
1025 --enable-shared=PKGS build shared libraries default=yes
1026 --enable-static=PKGS build static libraries default=yes
1027 --enable-fast-install=PKGS optimize for fast installation default=yes
1028 --disable-libtool-lock avoid locking (might break parallel builds)
1031 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1032 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1033 --with-gnu-ld assume the C compiler uses GNU ld default=no
1034 --with-pic try to use only PIC/non-PIC objects default=use both
1036 Some influential environment variables:
1037 CC C compiler command
1038 CFLAGS C compiler flags
1039 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1040 nonstandard directory <lib dir>
1041 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1042 headers in a nonstandard directory <include dir>
1043 CXX C++ compiler command
1044 CXXFLAGS C++ compiler flags
1047 Use these variables to override the choices made by `configure' or to help
1048 it to find libraries and programs with nonstandard names/locations.
1053 if test "$ac_init_help" = "recursive"; then
1054 # If there are subdirs, report their specific --help.
1056 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1057 test -d $ac_dir || continue
1060 if test "$ac_dir" != .; then
1061 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1062 # A "../" for each directory in $ac_dir_suffix.
1063 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1065 ac_dir_suffix= ac_top_builddir=
1069 .) # No --srcdir option. We are building in place.
1071 if test -z "$ac_top_builddir"; then
1074 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1076 [\\/]* | ?:[\\/]* ) # Absolute path.
1077 ac_srcdir=$srcdir$ac_dir_suffix;
1078 ac_top_srcdir=$srcdir ;;
1080 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1081 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1084 .) ac_abs_builddir=$ac_builddir;;
1086 case $ac_builddir in
1087 .) ac_abs_builddir="$ac_dir";;
1088 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
1089 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
1093 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1095 case ${ac_top_builddir}. in
1096 .) ac_abs_top_builddir="$ac_dir";;
1097 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1098 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
1102 .) ac_abs_srcdir=$ac_srcdir;;
1105 .) ac_abs_srcdir="$ac_dir";;
1106 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1107 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
1111 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1113 case $ac_top_srcdir in
1114 .) ac_abs_top_srcdir="$ac_dir";;
1115 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1116 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
1121 # Check for guested configure; otherwise get Cygnus style configure.
1122 if test -f $ac_srcdir/configure.gnu; then
1124 $SHELL $ac_srcdir/configure.gnu --help=recursive
1125 elif test -f $ac_srcdir/configure; then
1127 $SHELL $ac_srcdir/configure --help=recursive
1128 elif test -f $ac_srcdir/configure.ac ||
1129 test -f $ac_srcdir/configure.in; then
1131 $ac_configure --help
1133 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1139 test -n "$ac_init_help" && exit 0
1140 if $ac_init_version; then
1143 Copyright (C) 2003 Free Software Foundation, Inc.
1144 This configure script is free software; the Free Software Foundation
1145 gives unlimited permission to copy, distribute and modify it.
1151 This file contains any messages produced by compilers while
1152 running configure, to aid debugging if configure makes a mistake.
1154 It was created by $as_me, which was
1155 generated by GNU Autoconf 2.58. Invocation command line was
1166 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1167 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1168 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1169 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1170 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1172 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1173 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1175 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1176 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1177 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1178 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1179 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1180 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1181 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1189 test -z "$as_dir" && as_dir=.
1190 echo "PATH: $as_dir"
1205 # Keep a trace of the command line.
1206 # Strip out --no-create and --no-recursion so they do not pile up.
1207 # Strip out --silent because we don't want to record it for future runs.
1208 # Also quote any args containing shell meta-characters.
1209 # Make two passes to allow for proper duplicate-argument suppression.
1214 ac_must_keep_next=false
1220 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1222 | -silent | --silent | --silen | --sile | --sil)
1224 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1225 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1228 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1230 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1231 if test $ac_must_keep_next = true; then
1232 ac_must_keep_next=false # Got value, back to normal.
1235 *=* | --config-cache | -C | -disable-* | --disable-* \
1236 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1237 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1238 | -with-* | --with-* | -without-* | --without-* | --x)
1239 case "$ac_configure_args0 " in
1240 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1243 -* ) ac_must_keep_next=true ;;
1246 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1247 # Get rid of the leading space.
1253 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1254 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1256 # When interrupted or exit'd, cleanup temporary files, and complete
1257 # config.log. We remove comments because anyway the quotes in there
1258 # would cause problems or look ugly.
1259 # WARNING: Be sure not to use single quotes in there, as some shells,
1260 # such as our DU 5.0 friend, will then `close' the trap.
1261 trap 'exit_status=$?
1262 # Save into config.log some information that might help in debugging.
1267 ## ---------------- ##
1268 ## Cache variables. ##
1269 ## ---------------- ##
1272 # The following way of writing the cache mishandles newlines in values,
1275 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1278 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1279 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1283 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1290 ## ----------------- ##
1291 ## Output variables. ##
1292 ## ----------------- ##
1295 for ac_var in $ac_subst_vars
1297 eval ac_val=$`echo $ac_var`
1298 echo "$ac_var='"'"'$ac_val'"'"'"
1302 if test -n "$ac_subst_files"; then
1309 for ac_var in $ac_subst_files
1311 eval ac_val=$`echo $ac_var`
1312 echo "$ac_var='"'"'$ac_val'"'"'"
1317 if test -s confdefs.h; then
1324 sed "/^$/d" confdefs.h | sort
1327 test "$ac_signal" != 0 &&
1328 echo "$as_me: caught signal $ac_signal"
1329 echo "$as_me: exit $exit_status"
1331 rm -f core *.core &&
1332 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1335 for ac_signal in 1 2 13 15; do
1336 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1340 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1341 rm -rf conftest* confdefs.h
1342 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1345 # Predefined preprocessor variables.
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_NAME "$PACKAGE_NAME"
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_STRING "$PACKAGE_STRING"
1367 cat >>confdefs.h <<_ACEOF
1368 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1372 # Let the site file select an alternate cache file if it wants to.
1373 # Prefer explicitly selected file to automatically selected ones.
1374 if test -z "$CONFIG_SITE"; then
1375 if test "x$prefix" != xNONE; then
1376 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1378 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1381 for ac_site_file in $CONFIG_SITE; do
1382 if test -r "$ac_site_file"; then
1383 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1384 echo "$as_me: loading site script $ac_site_file" >&6;}
1385 sed 's/^/| /' "$ac_site_file" >&5
1390 if test -r "$cache_file"; then
1391 # Some versions of bash will fail to source /dev/null (special
1392 # files actually), so we avoid doing that.
1393 if test -f "$cache_file"; then
1394 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1395 echo "$as_me: loading cache $cache_file" >&6;}
1397 [\\/]* | ?:[\\/]* ) . $cache_file;;
1398 *) . ./$cache_file;;
1402 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1403 echo "$as_me: creating cache $cache_file" >&6;}
1407 # Check that the precious variables saved in the cache have kept the same
1409 ac_cache_corrupted=false
1410 for ac_var in `(set) 2>&1 |
1411 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1412 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1413 eval ac_new_set=\$ac_env_${ac_var}_set
1414 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1415 eval ac_new_val="\$ac_env_${ac_var}_value"
1416 case $ac_old_set,$ac_new_set in
1418 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1419 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1420 ac_cache_corrupted=: ;;
1422 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1423 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1424 ac_cache_corrupted=: ;;
1427 if test "x$ac_old_val" != "x$ac_new_val"; then
1428 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1429 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1430 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1431 echo "$as_me: former value: $ac_old_val" >&2;}
1432 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1433 echo "$as_me: current value: $ac_new_val" >&2;}
1434 ac_cache_corrupted=:
1437 # Pass precious variables to config.status.
1438 if test "$ac_new_set" = set; then
1440 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1441 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1442 *) ac_arg=$ac_var=$ac_new_val ;;
1444 case " $ac_configure_args " in
1445 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1446 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1450 if $ac_cache_corrupted; then
1451 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1452 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1453 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1454 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1455 { (exit 1); exit 1; }; }
1459 ac_cpp='$CPP $CPPFLAGS'
1460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1484 # Check whether --enable-checkmem or --disable-checkmem was given.
1485 if test "${enable_checkmem+set}" = set; then
1486 enableval="$enable_checkmem"
1489 # Check whether --enable-debug or --disable-debug was given.
1490 if test "${enable_debug+set}" = set; then
1491 enableval="$enable_debug"
1494 # Check whether --enable-warnings or --disable-warnings was given.
1495 if test "${enable_warnings+set}" = set; then
1496 enableval="$enable_warnings"
1497 ENABLE_WARNINGS=true
1499 # Check whether --enable-optimizations or --disable-optimizations was given.
1500 if test "${enable_optimizations+set}" = set; then
1501 enableval="$enable_optimizations"
1504 # Check whether --enable-lame or --disable-lame was given.
1505 if test "${enable_lame+set}" = set; then
1506 enableval="$enable_lame"
1511 VERSION=2004-11-07-1822
1514 # ------------------------------------------------------------------
1516 if test "x${srcdir}" != "x."; then
1517 echo "--srcdir is not supported"
1521 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1522 if test "x$ENABLE_WARNINGS" '!=' "x";then
1523 WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls"
1526 if test "x$CHECKMEM" '!=' "x";then
1529 if test "x$DEBUG" '!=' "x";then
1530 CFLAGS="$WARNINGS -g $CFLAGS"
1531 CXXFLAGS="$WARNINGS -g $CXXFLAGS"
1532 else if test "x$OPTIMIZE" '!=' "x"; then
1533 CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1534 CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1536 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1537 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1541 #if test "x$OLDGCC" '!=' "x";then
1542 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1543 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1544 # CFLAGS="$CFLAGS -ansi -pendantic"
1545 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1548 export PACKAGE VERSION CFLAGS CXXFLAGS
1552 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1553 if test -f $ac_dir/install-sh; then
1555 ac_install_sh="$ac_aux_dir/install-sh -c"
1557 elif test -f $ac_dir/install.sh; then
1559 ac_install_sh="$ac_aux_dir/install.sh -c"
1561 elif test -f $ac_dir/shtool; then
1563 ac_install_sh="$ac_aux_dir/shtool install -c"
1567 if test -z "$ac_aux_dir"; then
1568 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1569 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1570 { (exit 1); exit 1; }; }
1572 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1573 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1574 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1576 # Make sure we can run config.sub.
1577 $ac_config_sub sun4 >/dev/null 2>&1 ||
1578 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1579 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1580 { (exit 1); exit 1; }; }
1582 echo "$as_me:$LINENO: checking build system type" >&5
1583 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1584 if test "${ac_cv_build+set}" = set; then
1585 echo $ECHO_N "(cached) $ECHO_C" >&6
1587 ac_cv_build_alias=$build_alias
1588 test -z "$ac_cv_build_alias" &&
1589 ac_cv_build_alias=`$ac_config_guess`
1590 test -z "$ac_cv_build_alias" &&
1591 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1592 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1593 { (exit 1); exit 1; }; }
1594 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1595 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1596 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1597 { (exit 1); exit 1; }; }
1600 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1601 echo "${ECHO_T}$ac_cv_build" >&6
1603 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1604 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1605 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1608 echo "$as_me:$LINENO: checking host system type" >&5
1609 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1610 if test "${ac_cv_host+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
1613 ac_cv_host_alias=$host_alias
1614 test -z "$ac_cv_host_alias" &&
1615 ac_cv_host_alias=$ac_cv_build_alias
1616 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1617 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1618 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1619 { (exit 1); exit 1; }; }
1622 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1623 echo "${ECHO_T}$ac_cv_host" >&6
1625 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1626 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1627 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1636 CFLAGS="$CFLAGS -fno-rtti"
1637 CXXFLAGS="$CXXFLAGS -fno-rtti"
1645 ac_cpp='$CPP $CPPFLAGS'
1646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1649 if test -n "$ac_tool_prefix"; then
1650 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1651 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1652 echo "$as_me:$LINENO: checking for $ac_word" >&5
1653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1654 if test "${ac_cv_prog_CC+set}" = set; then
1655 echo $ECHO_N "(cached) $ECHO_C" >&6
1657 if test -n "$CC"; then
1658 ac_cv_prog_CC="$CC" # Let the user override the test.
1660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664 test -z "$as_dir" && as_dir=.
1665 for ac_exec_ext in '' $ac_executable_extensions; do
1666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1667 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1677 if test -n "$CC"; then
1678 echo "$as_me:$LINENO: result: $CC" >&5
1679 echo "${ECHO_T}$CC" >&6
1681 echo "$as_me:$LINENO: result: no" >&5
1682 echo "${ECHO_T}no" >&6
1686 if test -z "$ac_cv_prog_CC"; then
1688 # Extract the first word of "gcc", so it can be a program name with args.
1689 set dummy gcc; ac_word=$2
1690 echo "$as_me:$LINENO: checking for $ac_word" >&5
1691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1695 if test -n "$ac_ct_CC"; then
1696 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 test -z "$as_dir" && as_dir=.
1703 for ac_exec_ext in '' $ac_executable_extensions; do
1704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705 ac_cv_prog_ac_ct_CC="gcc"
1706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1715 if test -n "$ac_ct_CC"; then
1716 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1717 echo "${ECHO_T}$ac_ct_CC" >&6
1719 echo "$as_me:$LINENO: result: no" >&5
1720 echo "${ECHO_T}no" >&6
1728 if test -z "$CC"; then
1729 if test -n "$ac_tool_prefix"; then
1730 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1731 set dummy ${ac_tool_prefix}cc; ac_word=$2
1732 echo "$as_me:$LINENO: checking for $ac_word" >&5
1733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734 if test "${ac_cv_prog_CC+set}" = set; then
1735 echo $ECHO_N "(cached) $ECHO_C" >&6
1737 if test -n "$CC"; then
1738 ac_cv_prog_CC="$CC" # Let the user override the test.
1740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 test -z "$as_dir" && as_dir=.
1745 for ac_exec_ext in '' $ac_executable_extensions; do
1746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747 ac_cv_prog_CC="${ac_tool_prefix}cc"
1748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1757 if test -n "$CC"; then
1758 echo "$as_me:$LINENO: result: $CC" >&5
1759 echo "${ECHO_T}$CC" >&6
1761 echo "$as_me:$LINENO: result: no" >&5
1762 echo "${ECHO_T}no" >&6
1766 if test -z "$ac_cv_prog_CC"; then
1768 # Extract the first word of "cc", so it can be a program name with args.
1769 set dummy cc; ac_word=$2
1770 echo "$as_me:$LINENO: checking for $ac_word" >&5
1771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1775 if test -n "$ac_ct_CC"; then
1776 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1782 test -z "$as_dir" && as_dir=.
1783 for ac_exec_ext in '' $ac_executable_extensions; do
1784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1785 ac_cv_prog_ac_ct_CC="cc"
1786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1794 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1795 if test -n "$ac_ct_CC"; then
1796 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1797 echo "${ECHO_T}$ac_ct_CC" >&6
1799 echo "$as_me:$LINENO: result: no" >&5
1800 echo "${ECHO_T}no" >&6
1809 if test -z "$CC"; then
1810 # Extract the first word of "cc", so it can be a program name with args.
1811 set dummy cc; ac_word=$2
1812 echo "$as_me:$LINENO: checking for $ac_word" >&5
1813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814 if test "${ac_cv_prog_CC+set}" = set; then
1815 echo $ECHO_N "(cached) $ECHO_C" >&6
1817 if test -n "$CC"; then
1818 ac_cv_prog_CC="$CC" # Let the user override the test.
1821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1825 test -z "$as_dir" && as_dir=.
1826 for ac_exec_ext in '' $ac_executable_extensions; do
1827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1828 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1829 ac_prog_rejected=yes
1833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1839 if test $ac_prog_rejected = yes; then
1840 # We found a bogon in the path, so make sure we never use it.
1841 set dummy $ac_cv_prog_CC
1843 if test $# != 0; then
1844 # We chose a different compiler from the bogus one.
1845 # However, it has the same basename, so the bogon will be chosen
1846 # first if we set CC to just the basename; use the full file name.
1848 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1854 if test -n "$CC"; then
1855 echo "$as_me:$LINENO: result: $CC" >&5
1856 echo "${ECHO_T}$CC" >&6
1858 echo "$as_me:$LINENO: result: no" >&5
1859 echo "${ECHO_T}no" >&6
1863 if test -z "$CC"; then
1864 if test -n "$ac_tool_prefix"; then
1867 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1868 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1869 echo "$as_me:$LINENO: checking for $ac_word" >&5
1870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871 if test "${ac_cv_prog_CC+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1874 if test -n "$CC"; then
1875 ac_cv_prog_CC="$CC" # Let the user override the test.
1877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1881 test -z "$as_dir" && as_dir=.
1882 for ac_exec_ext in '' $ac_executable_extensions; do
1883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1884 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1894 if test -n "$CC"; then
1895 echo "$as_me:$LINENO: result: $CC" >&5
1896 echo "${ECHO_T}$CC" >&6
1898 echo "$as_me:$LINENO: result: no" >&5
1899 echo "${ECHO_T}no" >&6
1902 test -n "$CC" && break
1905 if test -z "$CC"; then
1909 # Extract the first word of "$ac_prog", so it can be a program name with args.
1910 set dummy $ac_prog; ac_word=$2
1911 echo "$as_me:$LINENO: checking for $ac_word" >&5
1912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1913 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1914 echo $ECHO_N "(cached) $ECHO_C" >&6
1916 if test -n "$ac_ct_CC"; then
1917 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923 test -z "$as_dir" && as_dir=.
1924 for ac_exec_ext in '' $ac_executable_extensions; do
1925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1926 ac_cv_prog_ac_ct_CC="$ac_prog"
1927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1935 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1936 if test -n "$ac_ct_CC"; then
1937 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1938 echo "${ECHO_T}$ac_ct_CC" >&6
1940 echo "$as_me:$LINENO: result: no" >&5
1941 echo "${ECHO_T}no" >&6
1944 test -n "$ac_ct_CC" && break
1953 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1954 See \`config.log' for more details." >&5
1955 echo "$as_me: error: no acceptable C compiler found in \$PATH
1956 See \`config.log' for more details." >&2;}
1957 { (exit 1); exit 1; }; }
1959 # Provide some information about the compiler.
1960 echo "$as_me:$LINENO:" \
1961 "checking for C compiler version" >&5
1962 ac_compiler=`set X $ac_compile; echo $2`
1963 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1964 (eval $ac_compiler --version </dev/null >&5) 2>&5
1966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1967 (exit $ac_status); }
1968 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1969 (eval $ac_compiler -v </dev/null >&5) 2>&5
1971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972 (exit $ac_status); }
1973 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1974 (eval $ac_compiler -V </dev/null >&5) 2>&5
1976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977 (exit $ac_status); }
1979 cat >conftest.$ac_ext <<_ACEOF
1982 cat confdefs.h >>conftest.$ac_ext
1983 cat >>conftest.$ac_ext <<_ACEOF
1984 /* end confdefs.h. */
1994 ac_clean_files_save=$ac_clean_files
1995 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1996 # Try to create an executable without -o first, disregard a.out.
1997 # It will help us diagnose broken compilers, and finding out an intuition
1999 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2000 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2001 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2002 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2003 (eval $ac_link_default) 2>&5
2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006 (exit $ac_status); }; then
2007 # Find the output, starting from the most likely. This scheme is
2008 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2011 # Be careful to initialize this variable, since it used to be cached.
2012 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2014 # b.out is created by i960 compilers.
2015 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2017 test -f "$ac_file" || continue
2019 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2022 # This is the source file.
2025 # We found the default executable, but exeext='' is most
2029 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2030 # FIXME: I believe we export ac_cv_exeext for Libtool,
2031 # but it would be cool to find out if it's true. Does anybody
2032 # maintain Libtool? --akim.
2040 echo "$as_me: failed program was:" >&5
2041 sed 's/^/| /' conftest.$ac_ext >&5
2043 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2044 See \`config.log' for more details." >&5
2045 echo "$as_me: error: C compiler cannot create executables
2046 See \`config.log' for more details." >&2;}
2047 { (exit 77); exit 77; }; }
2050 ac_exeext=$ac_cv_exeext
2051 echo "$as_me:$LINENO: result: $ac_file" >&5
2052 echo "${ECHO_T}$ac_file" >&6
2054 # Check the compiler produces executables we can run. If not, either
2055 # the compiler is broken, or we cross compile.
2056 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2057 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2058 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2059 # If not cross compiling, check that we can run a simple program.
2060 if test "$cross_compiling" != yes; then
2061 if { ac_try='./$ac_file'
2062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066 (exit $ac_status); }; }; then
2069 if test "$cross_compiling" = maybe; then
2072 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2073 If you meant to cross compile, use \`--host'.
2074 See \`config.log' for more details." >&5
2075 echo "$as_me: error: cannot run C compiled programs.
2076 If you meant to cross compile, use \`--host'.
2077 See \`config.log' for more details." >&2;}
2078 { (exit 1); exit 1; }; }
2082 echo "$as_me:$LINENO: result: yes" >&5
2083 echo "${ECHO_T}yes" >&6
2085 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2086 ac_clean_files=$ac_clean_files_save
2087 # Check the compiler produces executables we can run. If not, either
2088 # the compiler is broken, or we cross compile.
2089 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2090 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2091 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2092 echo "${ECHO_T}$cross_compiling" >&6
2094 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2095 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2097 (eval $ac_link) 2>&5
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); }; then
2101 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2102 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2103 # work properly (i.e., refer to `conftest.exe'), while it won't with
2105 for ac_file in conftest.exe conftest conftest.*; do
2106 test -f "$ac_file" || continue
2108 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2109 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2116 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2117 See \`config.log' for more details." >&5
2118 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2119 See \`config.log' for more details." >&2;}
2120 { (exit 1); exit 1; }; }
2123 rm -f conftest$ac_cv_exeext
2124 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2125 echo "${ECHO_T}$ac_cv_exeext" >&6
2127 rm -f conftest.$ac_ext
2128 EXEEXT=$ac_cv_exeext
2130 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2131 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2132 if test "${ac_cv_objext+set}" = set; then
2133 echo $ECHO_N "(cached) $ECHO_C" >&6
2135 cat >conftest.$ac_ext <<_ACEOF
2138 cat confdefs.h >>conftest.$ac_ext
2139 cat >>conftest.$ac_ext <<_ACEOF
2140 /* end confdefs.h. */
2150 rm -f conftest.o conftest.obj
2151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2152 (eval $ac_compile) 2>&5
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; then
2156 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2159 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2164 echo "$as_me: failed program was:" >&5
2165 sed 's/^/| /' conftest.$ac_ext >&5
2167 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2168 See \`config.log' for more details." >&5
2169 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2170 See \`config.log' for more details." >&2;}
2171 { (exit 1); exit 1; }; }
2174 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2176 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2177 echo "${ECHO_T}$ac_cv_objext" >&6
2178 OBJEXT=$ac_cv_objext
2180 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2181 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2182 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2183 echo $ECHO_N "(cached) $ECHO_C" >&6
2185 cat >conftest.$ac_ext <<_ACEOF
2188 cat confdefs.h >>conftest.$ac_ext
2189 cat >>conftest.$ac_ext <<_ACEOF
2190 /* end confdefs.h. */
2203 rm -f conftest.$ac_objext
2204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2205 (eval $ac_compile) 2>conftest.er1
2207 grep -v '^ *+' conftest.er1 >conftest.err
2209 cat conftest.err >&5
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); } &&
2212 { ac_try='test -z "$ac_c_werror_flag"
2213 || test ! -s conftest.err'
2214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; } &&
2219 { ac_try='test -s conftest.$ac_objext'
2220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); }; }; then
2227 echo "$as_me: failed program was:" >&5
2228 sed 's/^/| /' conftest.$ac_ext >&5
2232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2233 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2236 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2237 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2238 GCC=`test $ac_compiler_gnu = yes && echo yes`
2239 ac_test_CFLAGS=${CFLAGS+set}
2240 ac_save_CFLAGS=$CFLAGS
2242 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2243 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2244 if test "${ac_cv_prog_cc_g+set}" = set; then
2245 echo $ECHO_N "(cached) $ECHO_C" >&6
2247 cat >conftest.$ac_ext <<_ACEOF
2250 cat confdefs.h >>conftest.$ac_ext
2251 cat >>conftest.$ac_ext <<_ACEOF
2252 /* end confdefs.h. */
2262 rm -f conftest.$ac_objext
2263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2264 (eval $ac_compile) 2>conftest.er1
2266 grep -v '^ *+' conftest.er1 >conftest.err
2268 cat conftest.err >&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); } &&
2271 { ac_try='test -z "$ac_c_werror_flag"
2272 || test ! -s conftest.err'
2273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }; } &&
2278 { ac_try='test -s conftest.$ac_objext'
2279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }; }; then
2286 echo "$as_me: failed program was:" >&5
2287 sed 's/^/| /' conftest.$ac_ext >&5
2291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2293 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2294 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2295 if test "$ac_test_CFLAGS" = set; then
2296 CFLAGS=$ac_save_CFLAGS
2297 elif test $ac_cv_prog_cc_g = yes; then
2298 if test "$GCC" = yes; then
2304 if test "$GCC" = yes; then
2310 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2311 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2312 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2313 echo $ECHO_N "(cached) $ECHO_C" >&6
2315 ac_cv_prog_cc_stdc=no
2317 cat >conftest.$ac_ext <<_ACEOF
2320 cat confdefs.h >>conftest.$ac_ext
2321 cat >>conftest.$ac_ext <<_ACEOF
2322 /* end confdefs.h. */
2325 #include <sys/types.h>
2326 #include <sys/stat.h>
2327 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2328 struct buf { int x; };
2329 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2330 static char *e (p, i)
2336 static char *f (char * (*g) (char **, int), char **p, ...)
2341 s = g (p, va_arg (v,int));
2346 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2347 function prototypes and stuff, but not '\xHH' hex character constants.
2348 These don't provoke an error unfortunately, instead are silently treated
2349 as 'x'. The following induces an error, until -std1 is added to get
2350 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2351 array size at least. It's necessary to write '\x00'==0 to get something
2352 that's true only with -std1. */
2353 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2355 int test (int i, double x);
2356 struct s1 {int (*f) (int a);};
2357 struct s2 {int (*f) (double a);};
2358 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2364 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2369 # Don't try gcc -ansi; that turns off useful extensions and
2370 # breaks some systems' header files.
2371 # AIX -qlanglvl=ansi
2372 # Ultrix and OSF/1 -std1
2373 # HP-UX 10.20 and later -Ae
2374 # HP-UX older versions -Aa -D_HPUX_SOURCE
2375 # SVR4 -Xc -D__EXTENSIONS__
2376 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2378 CC="$ac_save_CC $ac_arg"
2379 rm -f conftest.$ac_objext
2380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2381 (eval $ac_compile) 2>conftest.er1
2383 grep -v '^ *+' conftest.er1 >conftest.err
2385 cat conftest.err >&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); } &&
2388 { ac_try='test -z "$ac_c_werror_flag"
2389 || test ! -s conftest.err'
2390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; } &&
2395 { ac_try='test -s conftest.$ac_objext'
2396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; }; then
2401 ac_cv_prog_cc_stdc=$ac_arg
2404 echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.$ac_ext >&5
2408 rm -f conftest.err conftest.$ac_objext
2410 rm -f conftest.$ac_ext conftest.$ac_objext
2415 case "x$ac_cv_prog_cc_stdc" in
2417 echo "$as_me:$LINENO: result: none needed" >&5
2418 echo "${ECHO_T}none needed" >&6 ;;
2420 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2421 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2422 CC="$CC $ac_cv_prog_cc_stdc" ;;
2425 # Some people use a C++ compiler to compile C. Since we use `exit',
2426 # in C++ we need to declare it. In case someone uses the same compiler
2427 # for both compiling C and C++ we need to have the C++ compiler decide
2428 # the declaration of exit, since it's the most demanding environment.
2429 cat >conftest.$ac_ext <<_ACEOF
2434 rm -f conftest.$ac_objext
2435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2436 (eval $ac_compile) 2>conftest.er1
2438 grep -v '^ *+' conftest.er1 >conftest.err
2440 cat conftest.err >&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); } &&
2443 { ac_try='test -z "$ac_c_werror_flag"
2444 || test ! -s conftest.err'
2445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; } &&
2450 { ac_try='test -s conftest.$ac_objext'
2451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; }; then
2456 for ac_declaration in \
2458 'extern "C" void std::exit (int) throw (); using std::exit;' \
2459 'extern "C" void std::exit (int); using std::exit;' \
2460 'extern "C" void exit (int) throw ();' \
2461 'extern "C" void exit (int);' \
2464 cat >conftest.$ac_ext <<_ACEOF
2467 cat confdefs.h >>conftest.$ac_ext
2468 cat >>conftest.$ac_ext <<_ACEOF
2469 /* end confdefs.h. */
2480 rm -f conftest.$ac_objext
2481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2482 (eval $ac_compile) 2>conftest.er1
2484 grep -v '^ *+' conftest.er1 >conftest.err
2486 cat conftest.err >&5
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); } &&
2489 { ac_try='test -z "$ac_c_werror_flag"
2490 || test ! -s conftest.err'
2491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); }; } &&
2496 { ac_try='test -s conftest.$ac_objext'
2497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }; }; then
2504 echo "$as_me: failed program was:" >&5
2505 sed 's/^/| /' conftest.$ac_ext >&5
2509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2510 cat >conftest.$ac_ext <<_ACEOF
2513 cat confdefs.h >>conftest.$ac_ext
2514 cat >>conftest.$ac_ext <<_ACEOF
2515 /* end confdefs.h. */
2525 rm -f conftest.$ac_objext
2526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2527 (eval $ac_compile) 2>conftest.er1
2529 grep -v '^ *+' conftest.er1 >conftest.err
2531 cat conftest.err >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); } &&
2534 { ac_try='test -z "$ac_c_werror_flag"
2535 || test ! -s conftest.err'
2536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; } &&
2541 { ac_try='test -s conftest.$ac_objext'
2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; }; then
2549 echo "$as_me: failed program was:" >&5
2550 sed 's/^/| /' conftest.$ac_ext >&5
2553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2556 if test -n "$ac_declaration"; then
2557 echo '#ifdef __cplusplus' >>confdefs.h
2558 echo $ac_declaration >>confdefs.h
2559 echo '#endif' >>confdefs.h
2563 echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2569 ac_cpp='$CPP $CPPFLAGS'
2570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2575 ac_cpp='$CXXCPP $CPPFLAGS'
2576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2579 if test -n "$ac_tool_prefix"; then
2580 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2582 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2583 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2584 echo "$as_me:$LINENO: checking for $ac_word" >&5
2585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2586 if test "${ac_cv_prog_CXX+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2589 if test -n "$CXX"; then
2590 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 test -z "$as_dir" && as_dir=.
2597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2599 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2609 if test -n "$CXX"; then
2610 echo "$as_me:$LINENO: result: $CXX" >&5
2611 echo "${ECHO_T}$CXX" >&6
2613 echo "$as_me:$LINENO: result: no" >&5
2614 echo "${ECHO_T}no" >&6
2617 test -n "$CXX" && break
2620 if test -z "$CXX"; then
2622 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2624 # Extract the first word of "$ac_prog", so it can be a program name with args.
2625 set dummy $ac_prog; ac_word=$2
2626 echo "$as_me:$LINENO: checking for $ac_word" >&5
2627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2628 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 if test -n "$ac_ct_CXX"; then
2632 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 test -z "$as_dir" && as_dir=.
2639 for ac_exec_ext in '' $ac_executable_extensions; do
2640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2641 ac_cv_prog_ac_ct_CXX="$ac_prog"
2642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2650 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2651 if test -n "$ac_ct_CXX"; then
2652 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2653 echo "${ECHO_T}$ac_ct_CXX" >&6
2655 echo "$as_me:$LINENO: result: no" >&5
2656 echo "${ECHO_T}no" >&6
2659 test -n "$ac_ct_CXX" && break
2661 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2667 # Provide some information about the compiler.
2668 echo "$as_me:$LINENO:" \
2669 "checking for C++ compiler version" >&5
2670 ac_compiler=`set X $ac_compile; echo $2`
2671 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2672 (eval $ac_compiler --version </dev/null >&5) 2>&5
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }
2676 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2677 (eval $ac_compiler -v </dev/null >&5) 2>&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }
2681 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2682 (eval $ac_compiler -V </dev/null >&5) 2>&5
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }
2687 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2688 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2689 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2690 echo $ECHO_N "(cached) $ECHO_C" >&6
2692 cat >conftest.$ac_ext <<_ACEOF
2695 cat confdefs.h >>conftest.$ac_ext
2696 cat >>conftest.$ac_ext <<_ACEOF
2697 /* end confdefs.h. */
2710 rm -f conftest.$ac_objext
2711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2712 (eval $ac_compile) 2>conftest.er1
2714 grep -v '^ *+' conftest.er1 >conftest.err
2716 cat conftest.err >&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); } &&
2719 { ac_try='test -z "$ac_cxx_werror_flag"
2720 || test ! -s conftest.err'
2721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }; } &&
2726 { ac_try='test -s conftest.$ac_objext'
2727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; }; then
2734 echo "$as_me: failed program was:" >&5
2735 sed 's/^/| /' conftest.$ac_ext >&5
2739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2740 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2743 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2744 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2745 GXX=`test $ac_compiler_gnu = yes && echo yes`
2746 ac_test_CXXFLAGS=${CXXFLAGS+set}
2747 ac_save_CXXFLAGS=$CXXFLAGS
2749 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2750 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2751 if test "${ac_cv_prog_cxx_g+set}" = set; then
2752 echo $ECHO_N "(cached) $ECHO_C" >&6
2754 cat >conftest.$ac_ext <<_ACEOF
2757 cat confdefs.h >>conftest.$ac_ext
2758 cat >>conftest.$ac_ext <<_ACEOF
2759 /* end confdefs.h. */
2769 rm -f conftest.$ac_objext
2770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2771 (eval $ac_compile) 2>conftest.er1
2773 grep -v '^ *+' conftest.er1 >conftest.err
2775 cat conftest.err >&5
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); } &&
2778 { ac_try='test -z "$ac_cxx_werror_flag"
2779 || test ! -s conftest.err'
2780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; } &&
2785 { ac_try='test -s conftest.$ac_objext'
2786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); }; }; then
2791 ac_cv_prog_cxx_g=yes
2793 echo "$as_me: failed program was:" >&5
2794 sed 's/^/| /' conftest.$ac_ext >&5
2798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2800 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2801 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2802 if test "$ac_test_CXXFLAGS" = set; then
2803 CXXFLAGS=$ac_save_CXXFLAGS
2804 elif test $ac_cv_prog_cxx_g = yes; then
2805 if test "$GXX" = yes; then
2811 if test "$GXX" = yes; then
2817 for ac_declaration in \
2819 'extern "C" void std::exit (int) throw (); using std::exit;' \
2820 'extern "C" void std::exit (int); using std::exit;' \
2821 'extern "C" void exit (int) throw ();' \
2822 'extern "C" void exit (int);' \
2825 cat >conftest.$ac_ext <<_ACEOF
2828 cat confdefs.h >>conftest.$ac_ext
2829 cat >>conftest.$ac_ext <<_ACEOF
2830 /* end confdefs.h. */
2841 rm -f conftest.$ac_objext
2842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2843 (eval $ac_compile) 2>conftest.er1
2845 grep -v '^ *+' conftest.er1 >conftest.err
2847 cat conftest.err >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); } &&
2850 { ac_try='test -z "$ac_cxx_werror_flag"
2851 || test ! -s conftest.err'
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; } &&
2857 { ac_try='test -s conftest.$ac_objext'
2858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }; }; then
2865 echo "$as_me: failed program was:" >&5
2866 sed 's/^/| /' conftest.$ac_ext >&5
2870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2871 cat >conftest.$ac_ext <<_ACEOF
2874 cat confdefs.h >>conftest.$ac_ext
2875 cat >>conftest.$ac_ext <<_ACEOF
2876 /* end confdefs.h. */
2886 rm -f conftest.$ac_objext
2887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2888 (eval $ac_compile) 2>conftest.er1
2890 grep -v '^ *+' conftest.er1 >conftest.err
2892 cat conftest.err >&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); } &&
2895 { ac_try='test -z "$ac_cxx_werror_flag"
2896 || test ! -s conftest.err'
2897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }; } &&
2902 { ac_try='test -s conftest.$ac_objext'
2903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }; }; then
2910 echo "$as_me: failed program was:" >&5
2911 sed 's/^/| /' conftest.$ac_ext >&5
2914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2917 if test -n "$ac_declaration"; then
2918 echo '#ifdef __cplusplus' >>confdefs.h
2919 echo $ac_declaration >>confdefs.h
2920 echo '#endif' >>confdefs.h
2924 ac_cpp='$CPP $CPPFLAGS'
2925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2930 if test "x$CHECKMEM" '!=' "x";then
2934 #unset ac_cv_prog_CC
2935 #unset ac_cv_prog_CXX
2940 ac_cpp='$CPP $CPPFLAGS'
2941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2944 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2945 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2946 # On Suns, sometimes $CPP names a directory.
2947 if test -n "$CPP" && test -d "$CPP"; then
2950 if test -z "$CPP"; then
2951 if test "${ac_cv_prog_CPP+set}" = set; then
2952 echo $ECHO_N "(cached) $ECHO_C" >&6
2954 # Double quotes because CPP needs to be expanded
2955 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2958 for ac_c_preproc_warn_flag in '' yes
2960 # Use a header file that comes with gcc, so configuring glibc
2961 # with a fresh cross-compiler works.
2962 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2963 # <limits.h> exists even on freestanding compilers.
2964 # On the NeXT, cc -E runs the code through the compiler's parser,
2965 # not just through cpp. "Syntax error" is here to catch this case.
2966 cat >conftest.$ac_ext <<_ACEOF
2969 cat confdefs.h >>conftest.$ac_ext
2970 cat >>conftest.$ac_ext <<_ACEOF
2971 /* end confdefs.h. */
2973 # include <limits.h>
2975 # include <assert.h>
2979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2982 grep -v '^ *+' conftest.er1 >conftest.err
2984 cat conftest.err >&5
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); } >/dev/null; then
2987 if test -s conftest.err; then
2988 ac_cpp_err=$ac_c_preproc_warn_flag
2989 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2996 if test -z "$ac_cpp_err"; then
2999 echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.$ac_ext >&5
3002 # Broken: fails on valid input.
3005 rm -f conftest.err conftest.$ac_ext
3007 # OK, works on sane cases. Now check whether non-existent headers
3008 # can be detected and how.
3009 cat >conftest.$ac_ext <<_ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h. */
3015 #include <ac_nonexistent.h>
3017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3018 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3020 grep -v '^ *+' conftest.er1 >conftest.err
3022 cat conftest.err >&5
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); } >/dev/null; then
3025 if test -s conftest.err; then
3026 ac_cpp_err=$ac_c_preproc_warn_flag
3027 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3034 if test -z "$ac_cpp_err"; then
3035 # Broken: success on invalid input.
3038 echo "$as_me: failed program was:" >&5
3039 sed 's/^/| /' conftest.$ac_ext >&5
3041 # Passes both tests.
3045 rm -f conftest.err conftest.$ac_ext
3048 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3049 rm -f conftest.err conftest.$ac_ext
3050 if $ac_preproc_ok; then
3062 echo "$as_me:$LINENO: result: $CPP" >&5
3063 echo "${ECHO_T}$CPP" >&6
3065 for ac_c_preproc_warn_flag in '' yes
3067 # Use a header file that comes with gcc, so configuring glibc
3068 # with a fresh cross-compiler works.
3069 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3070 # <limits.h> exists even on freestanding compilers.
3071 # On the NeXT, cc -E runs the code through the compiler's parser,
3072 # not just through cpp. "Syntax error" is here to catch this case.
3073 cat >conftest.$ac_ext <<_ACEOF
3076 cat confdefs.h >>conftest.$ac_ext
3077 cat >>conftest.$ac_ext <<_ACEOF
3078 /* end confdefs.h. */
3080 # include <limits.h>
3082 # include <assert.h>
3086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3089 grep -v '^ *+' conftest.er1 >conftest.err
3091 cat conftest.err >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } >/dev/null; then
3094 if test -s conftest.err; then
3095 ac_cpp_err=$ac_c_preproc_warn_flag
3096 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3103 if test -z "$ac_cpp_err"; then
3106 echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3109 # Broken: fails on valid input.
3112 rm -f conftest.err conftest.$ac_ext
3114 # OK, works on sane cases. Now check whether non-existent headers
3115 # can be detected and how.
3116 cat >conftest.$ac_ext <<_ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h. */
3122 #include <ac_nonexistent.h>
3124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3127 grep -v '^ *+' conftest.er1 >conftest.err
3129 cat conftest.err >&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); } >/dev/null; then
3132 if test -s conftest.err; then
3133 ac_cpp_err=$ac_c_preproc_warn_flag
3134 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3141 if test -z "$ac_cpp_err"; then
3142 # Broken: success on invalid input.
3145 echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3148 # Passes both tests.
3152 rm -f conftest.err conftest.$ac_ext
3155 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3156 rm -f conftest.err conftest.$ac_ext
3157 if $ac_preproc_ok; then
3160 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3161 See \`config.log' for more details." >&5
3162 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3163 See \`config.log' for more details." >&2;}
3164 { (exit 1); exit 1; }; }
3168 ac_cpp='$CPP $CPPFLAGS'
3169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3174 if test -n "$ac_tool_prefix"; then
3175 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3176 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3177 echo "$as_me:$LINENO: checking for $ac_word" >&5
3178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3179 if test "${ac_cv_prog_RANLIB+set}" = set; then
3180 echo $ECHO_N "(cached) $ECHO_C" >&6
3182 if test -n "$RANLIB"; then
3183 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189 test -z "$as_dir" && as_dir=.
3190 for ac_exec_ext in '' $ac_executable_extensions; do
3191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3192 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3201 RANLIB=$ac_cv_prog_RANLIB
3202 if test -n "$RANLIB"; then
3203 echo "$as_me:$LINENO: result: $RANLIB" >&5
3204 echo "${ECHO_T}$RANLIB" >&6
3206 echo "$as_me:$LINENO: result: no" >&5
3207 echo "${ECHO_T}no" >&6
3211 if test -z "$ac_cv_prog_RANLIB"; then
3212 ac_ct_RANLIB=$RANLIB
3213 # Extract the first word of "ranlib", so it can be a program name with args.
3214 set dummy ranlib; ac_word=$2
3215 echo "$as_me:$LINENO: checking for $ac_word" >&5
3216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3217 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 if test -n "$ac_ct_RANLIB"; then
3221 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 test -z "$as_dir" && as_dir=.
3228 for ac_exec_ext in '' $ac_executable_extensions; do
3229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3230 ac_cv_prog_ac_ct_RANLIB="ranlib"
3231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3237 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3240 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3241 if test -n "$ac_ct_RANLIB"; then
3242 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3243 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3245 echo "$as_me:$LINENO: result: no" >&5
3246 echo "${ECHO_T}no" >&6
3249 RANLIB=$ac_ct_RANLIB
3251 RANLIB="$ac_cv_prog_RANLIB"
3254 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3255 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3256 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3257 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3258 echo $ECHO_N "(cached) $ECHO_C" >&6
3260 cat >conftest.make <<\_ACEOF
3262 @echo 'ac_maketemp="$(MAKE)"'
3264 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3265 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3266 if test -n "$ac_maketemp"; then
3267 eval ac_cv_prog_make_${ac_make}_set=yes
3269 eval ac_cv_prog_make_${ac_make}_set=no
3273 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3274 echo "$as_me:$LINENO: result: yes" >&5
3275 echo "${ECHO_T}yes" >&6
3278 echo "$as_me:$LINENO: result: no" >&5
3279 echo "${ECHO_T}no" >&6
3280 SET_MAKE="MAKE=${MAKE-make}"
3283 # Find a good install program. We prefer a C program (faster),
3284 # so one script is as good as another. But avoid the broken or
3285 # incompatible versions:
3286 # SysV /etc/install, /usr/sbin/install
3287 # SunOS /usr/etc/install
3288 # IRIX /sbin/install
3290 # AmigaOS /C/install, which installs bootblocks on floppy discs
3291 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3292 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3293 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3294 # OS/2's system install, which has a completely different semantic
3295 # ./install, which can be erroneously created by make from ./install.sh.
3296 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3297 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3298 if test -z "$INSTALL"; then
3299 if test "${ac_cv_path_install+set}" = set; then
3300 echo $ECHO_N "(cached) $ECHO_C" >&6
3302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306 test -z "$as_dir" && as_dir=.
3307 # Account for people who put trailing slashes in PATH elements.
3309 ./ | .// | /cC/* | \
3310 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3311 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3314 # OSF1 and SCO ODT 3.0 have their own names for install.
3315 # Don't use installbsd from OSF since it installs stuff as root
3317 for ac_prog in ginstall scoinst install; do
3318 for ac_exec_ext in '' $ac_executable_extensions; do
3319 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3320 if test $ac_prog = install &&
3321 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3322 # AIX install. It has an incompatible calling convention.
3324 elif test $ac_prog = install &&
3325 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3326 # program-specific install script used by HP pwplus--don't use.
3329 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3341 if test "${ac_cv_path_install+set}" = set; then
3342 INSTALL=$ac_cv_path_install
3344 # As a last resort, use the slow shell script. We don't cache a
3345 # path for INSTALL within a source directory, because that will
3346 # break other packages using the cache if that directory is
3347 # removed, or if the path is relative.
3348 INSTALL=$ac_install_sh
3351 echo "$as_me:$LINENO: result: $INSTALL" >&5
3352 echo "${ECHO_T}$INSTALL" >&6
3354 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3355 # It thinks the first close brace ends the variable substitution.
3356 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3358 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3360 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3362 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3363 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3365 if test "$LN_S" = "ln -s"; then
3366 echo "$as_me:$LINENO: result: yes" >&5
3367 echo "${ECHO_T}yes" >&6
3369 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3370 echo "${ECHO_T}no, using $LN_S" >&6
3373 # Check whether --enable-shared or --disable-shared was given.
3374 if test "${enable_shared+set}" = set; then
3375 enableval="$enable_shared"
3376 p=${PACKAGE-default}
3378 yes) enable_shared=yes ;;
3379 no) enable_shared=no ;;
3382 # Look at the argument we got. We use all the common list separators.
3383 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3384 for pkg in $enableval; do
3385 if test "X$pkg" = "X$p"; then
3395 # Check whether --enable-static or --disable-static was given.
3396 if test "${enable_static+set}" = set; then
3397 enableval="$enable_static"
3398 p=${PACKAGE-default}
3400 yes) enable_static=yes ;;
3401 no) enable_static=no ;;
3404 # Look at the argument we got. We use all the common list separators.
3405 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3406 for pkg in $enableval; do
3407 if test "X$pkg" = "X$p"; then
3417 # Check whether --enable-fast-install or --disable-fast-install was given.
3418 if test "${enable_fast_install+set}" = set; then
3419 enableval="$enable_fast_install"
3420 p=${PACKAGE-default}
3422 yes) enable_fast_install=yes ;;
3423 no) enable_fast_install=no ;;
3425 enable_fast_install=no
3426 # Look at the argument we got. We use all the common list separators.
3427 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3428 for pkg in $enableval; do
3429 if test "X$pkg" = "X$p"; then
3430 enable_fast_install=yes
3437 enable_fast_install=yes
3439 # Find the correct PATH separator. Usually this is `:', but
3440 # DJGPP uses `;' like DOS.
3441 if test "X${PATH_SEPARATOR+set}" != Xset; then
3442 UNAME=${UNAME-`uname 2>/dev/null`}
3444 *-DOS) lt_cv_sys_path_separator=';' ;;
3445 *) lt_cv_sys_path_separator=':' ;;
3447 PATH_SEPARATOR=$lt_cv_sys_path_separator
3451 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3452 if test "${with_gnu_ld+set}" = set; then
3453 withval="$with_gnu_ld"
3454 test "$withval" = no || with_gnu_ld=yes
3459 if test "$GCC" = yes; then
3460 # Check if gcc -print-prog-name=ld gives a path.
3461 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3462 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3465 # gcc leaves a trailing carriage return which upsets mingw
3466 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3468 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3471 # Accept absolute paths.
3472 [\\/]* | [A-Za-z]:[\\/]*)
3473 re_direlt='/[^/][^/]*/\.\./'
3474 # Canonicalize the path of ld
3475 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3476 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3477 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3479 test -z "$LD" && LD="$ac_prog"
3482 # If it fails, then pretend we aren't using GCC.
3486 # If it is relative, then search for the first ld in PATH.
3490 elif test "$with_gnu_ld" = yes; then
3491 echo "$as_me:$LINENO: checking for GNU ld" >&5
3492 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3494 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3495 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3497 if test "${lt_cv_path_LD+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3500 if test -z "$LD"; then
3501 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3502 for ac_dir in $PATH; do
3503 test -z "$ac_dir" && ac_dir=.
3504 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3505 lt_cv_path_LD="$ac_dir/$ac_prog"
3506 # Check to see if the program is GNU ld. I'd rather use --version,
3507 # but apparently some GNU ld's only accept -v.
3508 # Break only if it was the GNU/non-GNU ld that we prefer.
3509 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3510 test "$with_gnu_ld" != no && break
3512 test "$with_gnu_ld" != yes && break
3518 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3523 if test -n "$LD"; then
3524 echo "$as_me:$LINENO: result: $LD" >&5
3525 echo "${ECHO_T}$LD" >&6
3527 echo "$as_me:$LINENO: result: no" >&5
3528 echo "${ECHO_T}no" >&6
3530 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3531 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3532 { (exit 1); exit 1; }; }
3533 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3534 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3535 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3538 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3539 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3540 lt_cv_prog_gnu_ld=yes
3542 lt_cv_prog_gnu_ld=no
3545 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3546 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3547 with_gnu_ld=$lt_cv_prog_gnu_ld
3550 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3551 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3552 if test "${lt_cv_ld_reload_flag+set}" = set; then
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
3555 lt_cv_ld_reload_flag='-r'
3557 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3558 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3559 reload_flag=$lt_cv_ld_reload_flag
3560 test -n "$reload_flag" && reload_flag=" $reload_flag"
3562 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3563 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3564 if test "${lt_cv_path_NM+set}" = set; then
3565 echo $ECHO_N "(cached) $ECHO_C" >&6
3567 if test -n "$NM"; then
3568 # Let the user override the test.
3571 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3572 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3573 test -z "$ac_dir" && ac_dir=.
3574 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3575 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3576 # Check to see if the nm accepts a BSD-compat flag.
3577 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3578 # nm: unknown option "B" ignored
3579 # Tru64's nm complains that /dev/null is an invalid object file
3580 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3581 lt_cv_path_NM="$tmp_nm -B"
3583 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3584 lt_cv_path_NM="$tmp_nm -p"
3587 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3588 continue # so that we can try to find one that supports BSD flags
3593 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3598 echo "$as_me:$LINENO: result: $NM" >&5
3599 echo "${ECHO_T}$NM" >&6
3601 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3602 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3603 if test "${lt_cv_path_SED+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3606 # Loop through the user's path and test for sed and gsed.
3607 # Then use that list of sed's as ones to test for truncation.
3608 as_executable_p="test -f"
3609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613 test -z "$as_dir" && as_dir=.
3614 for ac_prog in sed gsed; do
3615 for ac_exec_ext in '' $ac_executable_extensions; do
3616 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3617 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3623 # Create a temporary directory, and hook for its removal unless debugging.
3626 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3627 trap '{ (exit 1); exit 1; }' 1 2 13 15
3630 # Create a (secure) tmp directory for tmp files.
3633 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3634 test -n "$tmp" && test -d "$tmp"
3637 tmp=$TMPDIR/sed$$-$RANDOM
3638 (umask 077 && mkdir $tmp)
3641 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3642 { (exit 1); exit 1; }
3646 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3647 # along with /bin/sed that truncates output.
3648 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3649 test ! -f ${_sed} && break
3650 cat /dev/null > "$tmp/sed.in"
3652 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3653 # Check for GNU sed and select it if it is found.
3654 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3655 lt_cv_path_SED=${_sed}
3659 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3660 mv "$tmp/sed.tmp" "$tmp/sed.in"
3661 cp "$tmp/sed.in" "$tmp/sed.nl"
3662 echo >>"$tmp/sed.nl"
3663 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3664 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3665 # 40000 chars as input seems more than enough
3666 test $_count -gt 10 && break
3667 _count=`expr $_count + 1`
3668 if test $_count -gt $_max; then
3670 lt_cv_path_SED=$_sed
3678 if test "X$SED" != "X"; then
3683 echo "$as_me:$LINENO: result: $SED" >&5
3684 echo "${ECHO_T}$SED" >&6
3686 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3687 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3688 if test "${lt_cv_deplibs_check_method+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3691 lt_cv_file_magic_cmd='$MAGIC_CMD'
3692 lt_cv_file_magic_test_file=
3693 lt_cv_deplibs_check_method='unknown'
3694 # Need to set the preceding variable on all platforms that support
3695 # interlibrary dependencies.
3696 # 'none' -- dependencies not supported.
3697 # `unknown' -- same as none, but documents that we really don't know.
3698 # 'pass_all' -- all dependencies passed with no checks.
3699 # 'test_compile' -- check by making test program.
3700 # 'file_magic [[regex]]' -- check by looking for files in library path
3701 # which responds to the $file_magic_cmd with a given egrep regex.
3702 # If you have `file' or equivalent on your system and you're not sure
3703 # whether `pass_all' will *always* work, you probably want this one.
3707 lt_cv_deplibs_check_method=pass_all
3711 lt_cv_deplibs_check_method=pass_all
3715 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3716 lt_cv_file_magic_cmd='/usr/bin/file -L'
3717 lt_cv_file_magic_test_file=/shlib/libc.so
3720 cygwin* | mingw* | pw32*)
3721 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3722 lt_cv_file_magic_cmd='$OBJDUMP -f'
3725 darwin* | rhapsody*)
3726 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3727 lt_cv_file_magic_cmd='/usr/bin/file -L'
3729 rhapsody* | darwin1.[012])
3730 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3733 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3739 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3742 # Not sure whether the presence of OpenBSD here was a mistake.
3743 # Let's accept both of them until this is cleared up.
3744 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3745 lt_cv_file_magic_cmd=/usr/bin/file
3746 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3750 lt_cv_deplibs_check_method=pass_all
3755 lt_cv_deplibs_check_method=pass_all
3759 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3760 lt_cv_file_magic_cmd=/usr/bin/file
3761 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3764 irix5* | irix6* | nonstopux*)
3766 irix5* | nonstopux*)
3767 # this will be overridden with pass_all, but let us keep it just in case
3768 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3772 *-32|*"-32 ") libmagic=32-bit;;
3773 *-n32|*"-n32 ") libmagic=N32;;
3774 *-64|*"-64 ") libmagic=64-bit;;
3775 *) libmagic=never-match;;
3777 # this will be overridden with pass_all, but let us keep it just in case
3778 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3781 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3782 lt_cv_deplibs_check_method=pass_all
3785 # This must be Linux ELF.
3788 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
3789 lt_cv_deplibs_check_method=pass_all ;;
3791 # glibc up to 2.1.1 does not perform some relocations on ARM
3792 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3794 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3798 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3799 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3801 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3806 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3807 lt_cv_file_magic_cmd=/usr/bin/file
3808 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3812 lt_cv_file_magic_cmd=/usr/bin/file
3813 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3814 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3815 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3817 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3821 osf3* | osf4* | osf5*)
3822 # this will be overridden with pass_all, but let us keep it just in case
3823 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3824 lt_cv_file_magic_test_file=/shlib/libc.so
3825 lt_cv_deplibs_check_method=pass_all
3829 lt_cv_deplibs_check_method=pass_all
3833 lt_cv_deplibs_check_method=pass_all
3834 lt_cv_file_magic_test_file=/lib/libc.so
3837 sysv5uw[78]* | sysv4*uw2*)
3838 lt_cv_deplibs_check_method=pass_all
3841 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3842 case $host_vendor in
3844 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]'
3845 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3848 lt_cv_deplibs_check_method=pass_all
3851 lt_cv_file_magic_cmd='/bin/file'
3852 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3855 lt_cv_file_magic_cmd='/bin/file'
3856 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3857 lt_cv_file_magic_test_file=/lib/libc.so
3860 lt_cv_deplibs_check_method=pass_all
3867 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3868 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3869 file_magic_cmd=$lt_cv_file_magic_cmd
3870 deplibs_check_method=$lt_cv_deplibs_check_method
3879 # Check for command to grab the raw symbol name followed by C symbol from nm.
3880 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3881 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3882 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3883 echo $ECHO_N "(cached) $ECHO_C" >&6
3886 # These are sane defaults that work on at least a few old systems.
3887 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3889 # Character class describing NM global symbol codes.
3890 symcode='[BCDEGRST]'
3892 # Regexp to match symbols that can be accessed directly from C.
3893 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3895 # Transform the above into a raw symbol and a C symbol.
3896 symxfrm='\1 \2\3 \3'
3898 # Transform an extracted symbol line into a proper C declaration
3899 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3901 # Transform an extracted symbol line into symbol name and symbol address
3902 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3904 # Define system-specific variables.
3909 cygwin* | mingw* | pw32*)
3910 symcode='[ABCDGISTW]'
3912 hpux*) # Its linker distinguishes data from code symbols
3913 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3914 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'"
3917 symcode='[BCDEGRST]'
3920 symcode='[BCDEGQRST]'
3930 # Handle CRLF in mingw tool chain
3934 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3938 # If we're using GNU nm, then use its standard symbol codes.
3939 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3940 symcode='[ABCDGISTW]'
3943 # Try without a prefix undercore, then with it.
3944 for ac_symprfx in "" "_"; do
3946 # Write the raw and C identifiers.
3947 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3949 # Check to see that the pipe works correctly.
3952 cat > conftest.$ac_ext <<EOF
3957 void nm_test_func(){}
3961 int main(){nm_test_var='a';nm_test_func();return(0);}
3964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3965 (eval $ac_compile) 2>&5
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); }; then
3969 # Now try to grab the symbols.
3971 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3972 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); } && test -s "$nlist"; then
3976 # Try sorting and uniquifying the output.
3977 if sort "$nlist" | uniq > "$nlist"T; then
3978 mv -f "$nlist"T "$nlist"
3983 # Make sure that we snagged all the symbols we need.
3984 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3985 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3986 cat <<EOF > conftest.$ac_ext
3992 # Now generate the symbol file.
3993 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3995 cat <<EOF >> conftest.$ac_ext
3996 #if defined (__STDC__) && __STDC__
3997 # define lt_ptr void *
3999 # define lt_ptr char *
4003 /* The mapping between symbol names and symbols. */
4008 lt_preloaded_symbols[] =
4011 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4012 cat <<\EOF >> conftest.$ac_ext
4020 # Now try linking the two files.
4021 mv conftest.$ac_objext conftstm.$ac_objext
4023 save_CFLAGS="$CFLAGS"
4024 LIBS="conftstm.$ac_objext"
4025 CFLAGS="$CFLAGS$no_builtin_flag"
4026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4027 (eval $ac_link) 2>&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); } && test -s conftest$ac_exeext; then
4034 CFLAGS="$save_CFLAGS"
4036 echo "cannot find nm_test_func in $nlist" >&5
4039 echo "cannot find nm_test_var in $nlist" >&5
4042 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4045 echo "$progname: failed program was:" >&5
4046 cat conftest.$ac_ext >&5
4048 rm -f conftest* conftst*
4050 # Do not use the global_symbol_pipe unless it works.
4051 if test "$pipe_works" = yes; then
4054 lt_cv_sys_global_symbol_pipe=
4060 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4061 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4062 global_symbol_to_cdecl=
4063 global_symbol_to_c_name_address=
4065 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4066 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4068 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4070 echo "$as_me:$LINENO: result: failed" >&5
4071 echo "${ECHO_T}failed" >&6
4073 echo "$as_me:$LINENO: result: ok" >&5
4074 echo "${ECHO_T}ok" >&6
4078 echo "$as_me:$LINENO: checking for egrep" >&5
4079 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4080 if test "${ac_cv_prog_egrep+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4083 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4084 then ac_cv_prog_egrep='grep -E'
4085 else ac_cv_prog_egrep='egrep'
4088 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4089 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4090 EGREP=$ac_cv_prog_egrep
4093 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4094 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4095 if test "${ac_cv_header_stdc+set}" = set; then
4096 echo $ECHO_N "(cached) $ECHO_C" >&6
4098 cat >conftest.$ac_ext <<_ACEOF
4101 cat confdefs.h >>conftest.$ac_ext
4102 cat >>conftest.$ac_ext <<_ACEOF
4103 /* end confdefs.h. */
4117 rm -f conftest.$ac_objext
4118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4119 (eval $ac_compile) 2>conftest.er1
4121 grep -v '^ *+' conftest.er1 >conftest.err
4123 cat conftest.err >&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } &&
4126 { ac_try='test -z "$ac_c_werror_flag"
4127 || test ! -s conftest.err'
4128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); }; } &&
4133 { ac_try='test -s conftest.$ac_objext'
4134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); }; }; then
4139 ac_cv_header_stdc=yes
4141 echo "$as_me: failed program was:" >&5
4142 sed 's/^/| /' conftest.$ac_ext >&5
4144 ac_cv_header_stdc=no
4146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4148 if test $ac_cv_header_stdc = yes; then
4149 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4150 cat >conftest.$ac_ext <<_ACEOF
4153 cat confdefs.h >>conftest.$ac_ext
4154 cat >>conftest.$ac_ext <<_ACEOF
4155 /* end confdefs.h. */
4159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4160 $EGREP "memchr" >/dev/null 2>&1; then
4163 ac_cv_header_stdc=no
4169 if test $ac_cv_header_stdc = yes; then
4170 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4171 cat >conftest.$ac_ext <<_ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h. */
4180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4181 $EGREP "free" >/dev/null 2>&1; then
4184 ac_cv_header_stdc=no
4190 if test $ac_cv_header_stdc = yes; then
4191 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4192 if test "$cross_compiling" = yes; then
4195 cat >conftest.$ac_ext <<_ACEOF
4198 cat confdefs.h >>conftest.$ac_ext
4199 cat >>conftest.$ac_ext <<_ACEOF
4200 /* end confdefs.h. */
4202 #if ((' ' & 0x0FF) == 0x020)
4203 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4204 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4206 # define ISLOWER(c) \
4207 (('a' <= (c) && (c) <= 'i') \
4208 || ('j' <= (c) && (c) <= 'r') \
4209 || ('s' <= (c) && (c) <= 'z'))
4210 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4213 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4218 for (i = 0; i < 256; i++)
4219 if (XOR (islower (i), ISLOWER (i))
4220 || toupper (i) != TOUPPER (i))
4225 rm -f conftest$ac_exeext
4226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4227 (eval $ac_link) 2>&5
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; }; then
4238 echo "$as_me: program exited with status $ac_status" >&5
4239 echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4243 ac_cv_header_stdc=no
4245 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4249 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4250 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4251 if test $ac_cv_header_stdc = yes; then
4253 cat >>confdefs.h <<\_ACEOF
4254 #define STDC_HEADERS 1
4259 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4269 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4270 inttypes.h stdint.h unistd.h
4272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4273 echo "$as_me:$LINENO: checking for $ac_header" >&5
4274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4276 echo $ECHO_N "(cached) $ECHO_C" >&6
4278 cat >conftest.$ac_ext <<_ACEOF
4281 cat confdefs.h >>conftest.$ac_ext
4282 cat >>conftest.$ac_ext <<_ACEOF
4283 /* end confdefs.h. */
4284 $ac_includes_default
4286 #include <$ac_header>
4288 rm -f conftest.$ac_objext
4289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4290 (eval $ac_compile) 2>conftest.er1
4292 grep -v '^ *+' conftest.er1 >conftest.err
4294 cat conftest.err >&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); } &&
4297 { ac_try='test -z "$ac_c_werror_flag"
4298 || test ! -s conftest.err'
4299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; } &&
4304 { ac_try='test -s conftest.$ac_objext'
4305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); }; }; then
4310 eval "$as_ac_Header=yes"
4312 echo "$as_me: failed program was:" >&5
4313 sed 's/^/| /' conftest.$ac_ext >&5
4315 eval "$as_ac_Header=no"
4317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4320 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4322 cat >>confdefs.h <<_ACEOF
4323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4332 for ac_header in dlfcn.h
4334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4336 echo "$as_me:$LINENO: checking for $ac_header" >&5
4337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4344 # Is the header compilable?
4345 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4347 cat >conftest.$ac_ext <<_ACEOF
4350 cat confdefs.h >>conftest.$ac_ext
4351 cat >>conftest.$ac_ext <<_ACEOF
4352 /* end confdefs.h. */
4353 $ac_includes_default
4354 #include <$ac_header>
4356 rm -f conftest.$ac_objext
4357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4358 (eval $ac_compile) 2>conftest.er1
4360 grep -v '^ *+' conftest.er1 >conftest.err
4362 cat conftest.err >&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); } &&
4365 { ac_try='test -z "$ac_c_werror_flag"
4366 || test ! -s conftest.err'
4367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); }; } &&
4372 { ac_try='test -s conftest.$ac_objext'
4373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }; }; then
4378 ac_header_compiler=yes
4380 echo "$as_me: failed program was:" >&5
4381 sed 's/^/| /' conftest.$ac_ext >&5
4383 ac_header_compiler=no
4385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4387 echo "${ECHO_T}$ac_header_compiler" >&6
4389 # Is the header present?
4390 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4392 cat >conftest.$ac_ext <<_ACEOF
4395 cat confdefs.h >>conftest.$ac_ext
4396 cat >>conftest.$ac_ext <<_ACEOF
4397 /* end confdefs.h. */
4398 #include <$ac_header>
4400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4403 grep -v '^ *+' conftest.er1 >conftest.err
4405 cat conftest.err >&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); } >/dev/null; then
4408 if test -s conftest.err; then
4409 ac_cpp_err=$ac_c_preproc_warn_flag
4410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4417 if test -z "$ac_cpp_err"; then
4418 ac_header_preproc=yes
4420 echo "$as_me: failed program was:" >&5
4421 sed 's/^/| /' conftest.$ac_ext >&5
4423 ac_header_preproc=no
4425 rm -f conftest.err conftest.$ac_ext
4426 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4427 echo "${ECHO_T}$ac_header_preproc" >&6
4429 # So? What about this header?
4430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4435 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4436 ac_header_preproc=yes
4439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4442 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4443 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4444 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4445 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4446 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4449 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4450 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4453 ## ------------------------------------------ ##
4454 ## Report this to the AC_PACKAGE_NAME lists. ##
4455 ## ------------------------------------------ ##
4458 sed "s/^/$as_me: WARNING: /" >&2
4461 echo "$as_me:$LINENO: checking for $ac_header" >&5
4462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4466 eval "$as_ac_Header=\$ac_header_preproc"
4468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4473 cat >>confdefs.h <<_ACEOF
4474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4486 # Only perform the check for file, if the check method requires it
4487 case $deplibs_check_method in
4489 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4490 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4491 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4492 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4497 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4500 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4503 ac_save_MAGIC_CMD="$MAGIC_CMD"
4504 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4505 ac_dummy="/usr/bin:$PATH"
4506 for ac_dir in $ac_dummy; do
4507 test -z "$ac_dir" && ac_dir=.
4508 if test -f $ac_dir/${ac_tool_prefix}file; then
4509 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4510 if test -n "$file_magic_test_file"; then
4511 case $deplibs_check_method in
4513 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4514 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4515 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4516 egrep "$file_magic_regex" > /dev/null; then
4521 *** Warning: the command libtool uses to detect shared libraries,
4522 *** $file_magic_cmd, produces output that libtool cannot recognize.
4523 *** The result is that libtool may fail to recognize shared libraries
4524 *** as such. This will affect the creation of libtool libraries that
4525 *** depend on shared libraries, but programs linked with such libtool
4526 *** libraries will work regardless of this problem. Nevertheless, you
4527 *** may want to report the problem to your system manager and/or to
4528 *** bug-libtool@gnu.org
4538 MAGIC_CMD="$ac_save_MAGIC_CMD"
4543 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4544 if test -n "$MAGIC_CMD"; then
4545 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4546 echo "${ECHO_T}$MAGIC_CMD" >&6
4548 echo "$as_me:$LINENO: result: no" >&5
4549 echo "${ECHO_T}no" >&6
4552 if test -z "$lt_cv_path_MAGIC_CMD"; then
4553 if test -n "$ac_tool_prefix"; then
4554 echo "$as_me:$LINENO: checking for file" >&5
4555 echo $ECHO_N "checking for file... $ECHO_C" >&6
4556 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4561 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4564 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4567 ac_save_MAGIC_CMD="$MAGIC_CMD"
4568 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4569 ac_dummy="/usr/bin:$PATH"
4570 for ac_dir in $ac_dummy; do
4571 test -z "$ac_dir" && ac_dir=.
4572 if test -f $ac_dir/file; then
4573 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4574 if test -n "$file_magic_test_file"; then
4575 case $deplibs_check_method in
4577 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4578 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4579 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4580 egrep "$file_magic_regex" > /dev/null; then
4585 *** Warning: the command libtool uses to detect shared libraries,
4586 *** $file_magic_cmd, produces output that libtool cannot recognize.
4587 *** The result is that libtool may fail to recognize shared libraries
4588 *** as such. This will affect the creation of libtool libraries that
4589 *** depend on shared libraries, but programs linked with such libtool
4590 *** libraries will work regardless of this problem. Nevertheless, you
4591 *** may want to report the problem to your system manager and/or to
4592 *** bug-libtool@gnu.org
4602 MAGIC_CMD="$ac_save_MAGIC_CMD"
4607 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4608 if test -n "$MAGIC_CMD"; then
4609 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4610 echo "${ECHO_T}$MAGIC_CMD" >&6
4612 echo "$as_me:$LINENO: result: no" >&5
4613 echo "${ECHO_T}no" >&6
4625 if test -n "$ac_tool_prefix"; then
4626 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4627 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4628 echo "$as_me:$LINENO: checking for $ac_word" >&5
4629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4630 if test "${ac_cv_prog_RANLIB+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
4633 if test -n "$RANLIB"; then
4634 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 test -z "$as_dir" && as_dir=.
4641 for ac_exec_ext in '' $ac_executable_extensions; do
4642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4643 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 RANLIB=$ac_cv_prog_RANLIB
4653 if test -n "$RANLIB"; then
4654 echo "$as_me:$LINENO: result: $RANLIB" >&5
4655 echo "${ECHO_T}$RANLIB" >&6
4657 echo "$as_me:$LINENO: result: no" >&5
4658 echo "${ECHO_T}no" >&6
4662 if test -z "$ac_cv_prog_RANLIB"; then
4663 ac_ct_RANLIB=$RANLIB
4664 # Extract the first word of "ranlib", so it can be a program name with args.
4665 set dummy ranlib; ac_word=$2
4666 echo "$as_me:$LINENO: checking for $ac_word" >&5
4667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4668 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4669 echo $ECHO_N "(cached) $ECHO_C" >&6
4671 if test -n "$ac_ct_RANLIB"; then
4672 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678 test -z "$as_dir" && as_dir=.
4679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4681 ac_cv_prog_ac_ct_RANLIB="ranlib"
4682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4688 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4691 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4692 if test -n "$ac_ct_RANLIB"; then
4693 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4694 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4696 echo "$as_me:$LINENO: result: no" >&5
4697 echo "${ECHO_T}no" >&6
4700 RANLIB=$ac_ct_RANLIB
4702 RANLIB="$ac_cv_prog_RANLIB"
4705 if test -n "$ac_tool_prefix"; then
4706 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4707 set dummy ${ac_tool_prefix}strip; ac_word=$2
4708 echo "$as_me:$LINENO: checking for $ac_word" >&5
4709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4710 if test "${ac_cv_prog_STRIP+set}" = set; then
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
4713 if test -n "$STRIP"; then
4714 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720 test -z "$as_dir" && as_dir=.
4721 for ac_exec_ext in '' $ac_executable_extensions; do
4722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4723 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4732 STRIP=$ac_cv_prog_STRIP
4733 if test -n "$STRIP"; then
4734 echo "$as_me:$LINENO: result: $STRIP" >&5
4735 echo "${ECHO_T}$STRIP" >&6
4737 echo "$as_me:$LINENO: result: no" >&5
4738 echo "${ECHO_T}no" >&6
4742 if test -z "$ac_cv_prog_STRIP"; then
4744 # Extract the first word of "strip", so it can be a program name with args.
4745 set dummy strip; ac_word=$2
4746 echo "$as_me:$LINENO: checking for $ac_word" >&5
4747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4748 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4751 if test -n "$ac_ct_STRIP"; then
4752 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 test -z "$as_dir" && as_dir=.
4759 for ac_exec_ext in '' $ac_executable_extensions; do
4760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4761 ac_cv_prog_ac_ct_STRIP="strip"
4762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4768 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4771 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4772 if test -n "$ac_ct_STRIP"; then
4773 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4774 echo "${ECHO_T}$ac_ct_STRIP" >&6
4776 echo "$as_me:$LINENO: result: no" >&5
4777 echo "${ECHO_T}no" >&6
4782 STRIP="$ac_cv_prog_STRIP"
4789 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4790 if test "${enable_libtool_lock+set}" = set; then
4791 enableval="$enable_libtool_lock"
4794 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4796 # Some flags need to be propagated to the compiler or linker for good
4800 # Find out which ABI we are using.
4801 echo '#line 4801 "configure"' > conftest.$ac_ext
4802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4803 (eval $ac_compile) 2>&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }; then
4807 case `/usr/bin/file conftest.$ac_objext` in
4823 # Test if the compiler is 64bit
4824 echo 'int i;' > conftest.$ac_ext
4825 lt_cv_cc_64bit_output=no
4826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4827 (eval $ac_compile) 2>&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); }; then
4831 case `/usr/bin/file conftest.$ac_objext` in
4833 lt_cv_cc_64bit_output=yes
4841 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4842 SAVE_CFLAGS="$CFLAGS"
4843 CFLAGS="$CFLAGS -belf"
4844 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4845 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4846 if test "${lt_cv_cc_needs_belf+set}" = set; then
4847 echo $ECHO_N "(cached) $ECHO_C" >&6
4852 ac_cpp='$CPP $CPPFLAGS'
4853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4857 cat >conftest.$ac_ext <<_ACEOF
4860 cat confdefs.h >>conftest.$ac_ext
4861 cat >>conftest.$ac_ext <<_ACEOF
4862 /* end confdefs.h. */
4872 rm -f conftest.$ac_objext conftest$ac_exeext
4873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4874 (eval $ac_link) 2>conftest.er1
4876 grep -v '^ *+' conftest.er1 >conftest.err
4878 cat conftest.err >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); } &&
4881 { ac_try='test -z "$ac_c_werror_flag"
4882 || test ! -s conftest.err'
4883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); }; } &&
4888 { ac_try='test -s conftest$ac_exeext'
4889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); }; }; then
4894 lt_cv_cc_needs_belf=yes
4896 echo "$as_me: failed program was:" >&5
4897 sed 's/^/| /' conftest.$ac_ext >&5
4899 lt_cv_cc_needs_belf=no
4901 rm -f conftest.err conftest.$ac_objext \
4902 conftest$ac_exeext conftest.$ac_ext
4904 ac_cpp='$CPP $CPPFLAGS'
4905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4910 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4911 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4912 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4913 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4914 CFLAGS="$SAVE_CFLAGS"
4921 # Sed substitution that helps us do robust quoting. It backslashifies
4922 # metacharacters that are still active within double-quoted strings.
4923 Xsed='sed -e s/^X//'
4924 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4926 # Same as above, but do not quote variable references.
4927 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4929 # Sed substitution to delay expansion of an escaped shell variable in a
4930 # double_quote_subst'ed string.
4931 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4937 default_ofile=libtool
4938 can_build_shared=yes
4940 # All known linkers require a `.a' archive for static linking (except M$VC,
4941 # which needs '.lib').
4943 ltmain="$ac_aux_dir/ltmain.sh"
4944 ofile="$default_ofile"
4945 with_gnu_ld="$lt_cv_prog_gnu_ld"
4946 need_locks="$enable_libtool_lock"
4949 old_CFLAGS="$CFLAGS"
4951 # Set sane defaults for various variables
4952 test -z "$AR" && AR=ar
4953 test -z "$AR_FLAGS" && AR_FLAGS=cru
4954 test -z "$AS" && AS=as
4955 test -z "$CC" && CC=cc
4956 test -z "$DLLTOOL" && DLLTOOL=dlltool
4957 test -z "$LD" && LD=ld
4958 test -z "$LN_S" && LN_S="ln -s"
4959 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4960 test -z "$NM" && NM=nm
4961 test -z "$OBJDUMP" && OBJDUMP=objdump
4962 test -z "$RANLIB" && RANLIB=:
4963 test -z "$STRIP" && STRIP=:
4964 test -z "$ac_objext" && ac_objext=o
4966 if test x"$host" != x"$build"; then
4967 ac_tool_prefix=${host_alias}-
4972 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4975 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4980 # AIX sometimes has problems with the GCC collect2 program. For some
4981 # reason, if we set the COLLECT_NAMES environment variable, the problems
4982 # vanish in a puff of smoke.
4983 if test "X${COLLECT_NAMES+set}" != Xset; then
4985 export COLLECT_NAMES
4990 # Determine commands to create old-style static archives.
4991 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4992 old_postinstall_cmds='chmod 644 $oldlib'
4993 old_postuninstall_cmds=
4995 if test -n "$RANLIB"; then
4998 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5001 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5004 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5007 # Allow CC to be a program name with arguments.
5011 echo "$as_me:$LINENO: checking for objdir" >&5
5012 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5013 rm -f .libs 2>/dev/null
5014 mkdir .libs 2>/dev/null
5015 if test -d .libs; then
5018 # MS-DOS does not allow filenames that begin with a dot.
5021 rmdir .libs 2>/dev/null
5022 echo "$as_me:$LINENO: result: $objdir" >&5
5023 echo "${ECHO_T}$objdir" >&6
5027 # Check whether --with-pic or --without-pic was given.
5028 if test "${with_pic+set}" = set; then
5034 test -z "$pic_mode" && pic_mode=default
5036 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5037 # in isolation, and that seeing it set (from the cache) indicates that
5038 # the associated values are set (in the cache) correctly too.
5039 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5040 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5041 if test "${lt_cv_prog_cc_pic+set}" = set; then
5042 echo $ECHO_N "(cached) $ECHO_C" >&6
5045 lt_cv_prog_cc_shlib=
5047 lt_cv_prog_cc_static=
5048 lt_cv_prog_cc_no_builtin=
5049 lt_cv_prog_cc_can_build_shared=$can_build_shared
5051 if test "$GCC" = yes; then
5052 lt_cv_prog_cc_wl='-Wl,'
5053 lt_cv_prog_cc_static='-static'
5057 # Below there is a dirty hack to force normal static linking with -ldl
5058 # The problem is because libdl dynamically linked with both libc and
5059 # libC (AIX C++ library), which obviously doesn't included in libraries
5060 # list by gcc. This cause undefined symbols with -static flags.
5061 # This hack allows C programs to be linked with "-static -ldl", but
5062 # not sure about C++ programs.
5063 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5066 # FIXME: we need at least 68020 code to build shared libraries, but
5067 # adding the `-m68020' flag to GCC prevents building anything better,
5069 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5071 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5072 # PIC is the default for these OSes.
5074 darwin* | rhapsody*)
5075 # PIC is the default on this platform
5076 # Common symbols not allowed in MH_DYLIB files
5077 lt_cv_prog_cc_pic='-fno-common'
5079 cygwin* | mingw* | pw32* | os2*)
5080 # This hack is so that the source file can tell whether it is being
5081 # built for inclusion in a dll (and should export symbols for example).
5082 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5085 if test -d /usr/nec; then
5086 lt_cv_prog_cc_pic=-Kconform_pic
5090 lt_cv_prog_cc_pic='-fPIC'
5094 # PORTME Check for PIC flags for the system compiler.
5096 aix3* | aix4* | aix5*)
5097 lt_cv_prog_cc_wl='-Wl,'
5098 # All AIX code is PIC.
5099 if test "$host_cpu" = ia64; then
5100 # AIX 5 now supports IA64 processor
5101 lt_cv_prog_cc_static='-Bstatic'
5103 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5107 hpux9* | hpux10* | hpux11*)
5108 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5109 lt_cv_prog_cc_wl='-Wl,'
5110 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5111 lt_cv_prog_cc_pic='+Z'
5114 irix5* | irix6* | nonstopux*)
5115 lt_cv_prog_cc_wl='-Wl,'
5116 lt_cv_prog_cc_static='-non_shared'
5117 # PIC (with -KPIC) is the default.
5120 cygwin* | mingw* | pw32* | os2*)
5121 # This hack is so that the source file can tell whether it is being
5122 # built for inclusion in a dll (and should export symbols for example).
5123 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5127 lt_cv_prog_cc_pic='-KPIC'
5128 lt_cv_prog_cc_static='-Bstatic'
5131 osf3* | osf4* | osf5*)
5132 # All OSF/1 code is PIC.
5133 lt_cv_prog_cc_wl='-Wl,'
5134 lt_cv_prog_cc_static='-non_shared'
5138 lt_cv_prog_cc_pic='-Kpic'
5139 lt_cv_prog_cc_static='-dn'
5140 lt_cv_prog_cc_shlib='-belf'
5144 lt_cv_prog_cc_pic='-KPIC'
5145 lt_cv_prog_cc_static='-Bstatic'
5146 lt_cv_prog_cc_wl='-Wl,'
5150 lt_cv_prog_cc_pic='-PIC'
5151 lt_cv_prog_cc_static='-Bstatic'
5152 lt_cv_prog_cc_wl='-Qoption ld '
5155 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5156 lt_cv_prog_cc_pic='-KPIC'
5157 lt_cv_prog_cc_static='-Bstatic'
5158 lt_cv_prog_cc_wl='-Wl,'
5162 lt_cv_prog_cc_pic='-pic'
5163 lt_cv_prog_cc_static='-Bstatic'
5167 if test -d /usr/nec ;then
5168 lt_cv_prog_cc_pic='-Kconform_pic'
5169 lt_cv_prog_cc_static='-Bstatic'
5174 lt_cv_prog_cc_can_build_shared=no
5181 if test -z "$lt_cv_prog_cc_pic"; then
5182 echo "$as_me:$LINENO: result: none" >&5
5183 echo "${ECHO_T}none" >&6
5185 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5186 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5188 # Check to make sure the pic_flag actually works.
5189 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5190 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5191 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5194 save_CFLAGS="$CFLAGS"
5195 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5196 cat >conftest.$ac_ext <<_ACEOF
5199 cat confdefs.h >>conftest.$ac_ext
5200 cat >>conftest.$ac_ext <<_ACEOF
5201 /* end confdefs.h. */
5211 rm -f conftest.$ac_objext
5212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5213 (eval $ac_compile) 2>conftest.er1
5215 grep -v '^ *+' conftest.er1 >conftest.err
5217 cat conftest.err >&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); } &&
5220 { ac_try='test -z "$ac_c_werror_flag"
5221 || test ! -s conftest.err'
5222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); }; } &&
5227 { ac_try='test -s conftest.$ac_objext'
5228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); }; }; then
5234 hpux9* | hpux10* | hpux11*)
5235 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5236 # they create non-PIC objects. So, if there were any warnings, we
5237 # assume that PIC is not supported.
5238 if test -s conftest.err; then
5239 lt_cv_prog_cc_pic_works=no
5241 lt_cv_prog_cc_pic_works=yes
5245 lt_cv_prog_cc_pic_works=yes
5250 echo "$as_me: failed program was:" >&5
5251 sed 's/^/| /' conftest.$ac_ext >&5
5253 lt_cv_prog_cc_pic_works=no
5256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5257 CFLAGS="$save_CFLAGS"
5262 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5264 lt_cv_prog_cc_can_build_shared=no
5266 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5269 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5270 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5273 # Check for any special shared library compilation flags.
5274 if test -n "$lt_cv_prog_cc_shlib"; then
5275 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5276 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5277 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5279 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5280 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5281 lt_cv_prog_cc_can_build_shared=no
5285 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5286 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5287 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5288 echo $ECHO_N "(cached) $ECHO_C" >&6
5290 lt_cv_prog_cc_static_works=no
5291 save_LDFLAGS="$LDFLAGS"
5292 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5293 cat >conftest.$ac_ext <<_ACEOF
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h. */
5308 rm -f conftest.$ac_objext conftest$ac_exeext
5309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5310 (eval $ac_link) 2>conftest.er1
5312 grep -v '^ *+' conftest.er1 >conftest.err
5314 cat conftest.err >&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } &&
5317 { ac_try='test -z "$ac_c_werror_flag"
5318 || test ! -s conftest.err'
5319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); }; } &&
5324 { ac_try='test -s conftest$ac_exeext'
5325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); }; }; then
5330 lt_cv_prog_cc_static_works=yes
5332 echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.$ac_ext >&5
5336 rm -f conftest.err conftest.$ac_objext \
5337 conftest$ac_exeext conftest.$ac_ext
5338 LDFLAGS="$save_LDFLAGS"
5343 # Belt *and* braces to stop my trousers falling down:
5344 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5345 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5346 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5348 pic_flag="$lt_cv_prog_cc_pic"
5349 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5350 wl="$lt_cv_prog_cc_wl"
5351 link_static_flag="$lt_cv_prog_cc_static"
5352 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5353 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5356 # Check to see if options -o and -c are simultaneously supported by compiler
5357 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5358 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5359 if test "${lt_cv_compiler_c_o+set}" = set; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5363 $rm -r conftest 2>/dev/null
5366 echo "int some_variable = 0;" > conftest.$ac_ext
5368 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5369 # that will create temporary files in the current directory regardless of
5370 # the output directory. Thus, making CWD read-only will cause this test
5371 # to fail, enabling locking or at least warning the user not to do parallel
5374 save_CFLAGS="$CFLAGS"
5375 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5377 if { (eval echo configure:5377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5378 # The compiler can only warn and ignore the option if not recognized
5379 # So say no if there are warnings
5380 if test -s out/conftest.err; then
5381 lt_cv_compiler_c_o=no
5383 lt_cv_compiler_c_o=yes
5386 # Append any errors to the config.log.
5387 cat out/conftest.err 1>&5
5388 lt_cv_compiler_c_o=no
5390 CFLAGS="$save_CFLAGS"
5396 $rm -r conftest 2>/dev/null
5400 compiler_c_o=$lt_cv_compiler_c_o
5401 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5402 echo "${ECHO_T}$compiler_c_o" >&6
5404 if test x"$compiler_c_o" = x"yes"; then
5405 # Check to see if we can write to a .lo
5406 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5407 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5408 if test "${lt_cv_compiler_o_lo+set}" = set; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5412 lt_cv_compiler_o_lo=no
5413 save_CFLAGS="$CFLAGS"
5414 CFLAGS="$CFLAGS -c -o conftest.lo"
5415 save_objext="$ac_objext"
5417 cat >conftest.$ac_ext <<_ACEOF
5420 cat confdefs.h >>conftest.$ac_ext
5421 cat >>conftest.$ac_ext <<_ACEOF
5422 /* end confdefs.h. */
5427 int some_variable = 0;
5432 rm -f conftest.$ac_objext
5433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5434 (eval $ac_compile) 2>conftest.er1
5436 grep -v '^ *+' conftest.er1 >conftest.err
5438 cat conftest.err >&5
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); } &&
5441 { ac_try='test -z "$ac_c_werror_flag"
5442 || test ! -s conftest.err'
5443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }; } &&
5448 { ac_try='test -s conftest.$ac_objext'
5449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); }; }; then
5454 # The compiler can only warn and ignore the option if not recognized
5455 # So say no if there are warnings
5456 if test -s conftest.err; then
5457 lt_cv_compiler_o_lo=no
5459 lt_cv_compiler_o_lo=yes
5463 echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.$ac_ext >&5
5467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5468 ac_objext="$save_objext"
5469 CFLAGS="$save_CFLAGS"
5473 compiler_o_lo=$lt_cv_compiler_o_lo
5474 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5475 echo "${ECHO_T}$compiler_o_lo" >&6
5480 # Check to see if we can do hard links to lock some files if needed
5481 hard_links="nottested"
5482 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5483 # do not overwrite the value of need_locks provided by the user
5484 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5485 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5488 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5490 ln conftest.a conftest.b 2>&5 || hard_links=no
5491 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5492 echo "$as_me:$LINENO: result: $hard_links" >&5
5493 echo "${ECHO_T}$hard_links" >&6
5494 if test "$hard_links" = no; then
5495 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5496 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5503 if test "$GCC" = yes; then
5504 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5505 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5506 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5507 echo "int some_variable = 0;" > conftest.$ac_ext
5508 save_CFLAGS="$CFLAGS"
5509 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5510 compiler_rtti_exceptions=no
5511 cat >conftest.$ac_ext <<_ACEOF
5514 cat confdefs.h >>conftest.$ac_ext
5515 cat >>conftest.$ac_ext <<_ACEOF
5516 /* end confdefs.h. */
5521 int some_variable = 0;
5526 rm -f conftest.$ac_objext
5527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5528 (eval $ac_compile) 2>conftest.er1
5530 grep -v '^ *+' conftest.er1 >conftest.err
5532 cat conftest.err >&5
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); } &&
5535 { ac_try='test -z "$ac_c_werror_flag"
5536 || test ! -s conftest.err'
5537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); }; } &&
5542 { ac_try='test -s conftest.$ac_objext'
5543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); }; }; then
5548 # The compiler can only warn and ignore the option if not recognized
5549 # So say no if there are warnings
5550 if test -s conftest.err; then
5551 compiler_rtti_exceptions=no
5553 compiler_rtti_exceptions=yes
5557 echo "$as_me: failed program was:" >&5
5558 sed 's/^/| /' conftest.$ac_ext >&5
5561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5562 CFLAGS="$save_CFLAGS"
5563 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5564 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5566 if test "$compiler_rtti_exceptions" = "yes"; then
5567 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5569 no_builtin_flag=' -fno-builtin'
5573 # See if the linker supports building shared libraries.
5574 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5575 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5577 allow_undefined_flag=
5579 need_lib_prefix=unknown
5580 need_version=unknown
5581 # when you set need_version to no, make sure it does not cause -set_version
5582 # flags to be left without arguments
5584 archive_expsym_cmds=
5585 old_archive_from_new_cmds=
5586 old_archive_from_expsyms_cmds=
5587 export_dynamic_flag_spec=
5588 whole_archive_flag_spec=
5589 thread_safe_flag_spec=
5590 hardcode_into_libs=no
5591 hardcode_libdir_flag_spec=
5592 hardcode_libdir_separator=
5595 hardcode_shlibpath_var=unsupported
5597 link_all_deplibs=unknown
5598 always_export_symbols=no
5599 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5600 # include_expsyms should be a list of space-separated symbols to be *always*
5601 # included in the symbol list
5603 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5604 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5605 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5606 # as well as any symbol that contains `d'.
5607 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5608 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5609 # platforms (ab)use it in PIC code, but their linkers get confused if
5610 # the symbol is explicitly referenced. Since portable code cannot
5611 # rely on this symbol name, it's probably fine to never include it in
5612 # preloaded symbol tables.
5613 extract_expsyms_cmds=
5616 cygwin* | mingw* | pw32*)
5617 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5618 # When not using gcc, we currently assume that we are using
5619 # Microsoft Visual C++.
5620 if test "$GCC" != yes; then
5630 if test "$with_gnu_ld" = yes; then
5631 # If archive_cmds runs LD, not CC, wlarc should be empty
5634 # See if GNU ld supports shared libraries.
5636 aix3* | aix4* | aix5*)
5637 # On AIX, the GNU linker is very broken
5638 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5642 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5643 *** to be unable to reliably create shared libraries on AIX.
5644 *** Therefore, libtool is disabling shared libraries support. If you
5645 *** really care for shared libraries, you may want to modify your PATH
5646 *** so that a non-GNU linker is found, and then restart.
5652 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)'
5653 hardcode_libdir_flag_spec='-L$libdir'
5654 hardcode_minus_L=yes
5656 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5657 # that the semantics of dynamic libraries on AmigaOS, at least up
5658 # to version 4, is to share data among multiple programs linked
5659 # with the same dynamic library. Since this doesn't match the
5660 # behavior of shared libraries on other platforms, we can use
5666 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5667 allow_undefined_flag=unsupported
5668 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5669 # support --undefined. This deserves some investigation. FIXME
5670 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5676 cygwin* | mingw* | pw32*)
5677 # hardcode_libdir_flag_spec is actually meaningless, as there is
5678 # no search path for DLLs.
5679 hardcode_libdir_flag_spec='-L$libdir'
5680 allow_undefined_flag=unsupported
5681 always_export_symbols=yes
5683 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5684 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5685 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5686 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5687 else $CC -o impgen impgen.c ; fi)~
5688 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5690 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5692 # cygwin and mingw dlls have different entry points and sets of symbols
5694 # FIXME: what about values for MSVC?
5695 dll_entry=__cygwin_dll_entry@12
5696 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5700 dll_entry=_DllMainCRTStartup@12
5701 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5705 # mingw and cygwin differ, and it's simplest to just exclude the union
5706 # of the two symbol sets.
5707 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5709 # recent cygwin and mingw systems supply a stub DllMain which the user
5710 # can override, but on older systems we have to supply one (in ltdll.c)
5711 if test "x$lt_cv_need_dllmain" = "xyes"; then
5712 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5713 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~
5714 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5720 # Extract the symbol export list from an `--export-all' def file,
5721 # then regenerate the def file from the symbol export list, so that
5722 # the compiled dll only exports the symbol export list.
5723 # Be careful not to strip the DATA tag left be newer dlltools.
5724 export_symbols_cmds="$ltdll_cmds"'
5725 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5726 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5728 # If the export-symbols file already is a .def file (1st line
5729 # is EXPORTS), use it as is.
5730 # If DATA tags from a recent dlltool are present, honour them!
5731 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5732 cp $export_symbols $output_objdir/$soname-def;
5734 echo EXPORTS > $output_objdir/$soname-def;
5736 cat $export_symbols | while read symbol; do
5739 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5740 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5741 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5743 _lt_hint=`expr 1 + \$_lt_hint`;
5747 $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~
5748 $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~
5749 $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~
5750 $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~
5751 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5755 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5756 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5759 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5760 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5765 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5769 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5770 *** create shared libraries on Solaris systems. Therefore, libtool
5771 *** is disabling shared libraries support. We urge you to upgrade GNU
5772 *** binutils to release 2.9.1 or newer. Another option is to modify
5773 *** your PATH or compiler configuration so that the native linker is
5774 *** used, and then restart.
5777 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5778 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5779 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5786 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5789 hardcode_shlibpath_var=no
5793 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5794 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5795 supports_anon_versioning=no
5796 case `$LD -v 2>/dev/null` in
5797 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
5798 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5799 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5800 *\ 2.11.*) ;; # other 2.11 versions
5801 *) supports_anon_versioning=yes ;;
5803 if test $supports_anon_versioning = yes; then
5804 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
5805 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5806 $echo "local: *; };" >> $output_objdir/$libname.ver~
5807 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5809 $archive_expsym_cmds="$archive_cmds"
5817 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5818 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5819 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5826 if test "$ld_shlibs" = yes; then
5827 runpath_var=LD_RUN_PATH
5828 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5829 export_dynamic_flag_spec='${wl}--export-dynamic'
5831 cygwin* | mingw* | pw32*)
5832 # dlltool doesn't understand --whole-archive et. al.
5833 whole_archive_flag_spec=
5836 # ancient GNU ld didn't support --whole-archive et. al.
5837 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5838 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5840 whole_archive_flag_spec=
5846 # PORTME fill in a description of your system's linker (not GNU ld)
5849 allow_undefined_flag=unsupported
5850 always_export_symbols=yes
5851 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'
5852 # Note: this linker hardcodes the directories in LIBPATH if there
5853 # are no directories specified by -L.
5854 hardcode_minus_L=yes
5855 if test "$GCC" = yes && test -z "$link_static_flag"; then
5856 # Neither direct hardcoding nor static linking is supported with a
5858 hardcode_direct=unsupported
5863 if test "$host_cpu" = ia64; then
5864 # On IA64, the linker does run time linking by default, so we don't
5865 # have to do anything special.
5866 aix_use_runtimelinking=no
5867 exp_sym_flag='-Bexport'
5870 aix_use_runtimelinking=no
5872 # Test if we are trying to use run time linking or normal
5873 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5874 # need to do runtime linking.
5875 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5876 for ld_flag in $LDFLAGS; do
5879 aix_use_runtimelinking=yes
5886 exp_sym_flag='-bexport'
5887 no_entry_flag='-bnoentry'
5890 # When large executables or shared objects are built, AIX ld can
5891 # have problems creating the table of contents. If linking a library
5892 # or program results in "error TOC overflow" add -mminimal-toc to
5893 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5894 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5898 hardcode_libdir_separator=':'
5899 if test "$GCC" = yes; then
5900 case $host_os in aix4.[012]|aix4.[012].*)
5901 collect2name=`${CC} -print-prog-name=collect2`
5902 if test -f "$collect2name" && \
5903 strings "$collect2name" | grep resolve_lib_name >/dev/null
5905 # We have reworked collect2
5908 # We have old collect2
5909 hardcode_direct=unsupported
5910 # It fails to find uninstalled libraries when the uninstalled
5911 # path is not listed in the libpath. Setting hardcode_minus_L
5912 # to unsupported forces relinking
5913 hardcode_minus_L=yes
5914 hardcode_libdir_flag_spec='-L$libdir'
5915 hardcode_libdir_separator=
5919 shared_flag='-shared'
5922 if test "$host_cpu" = ia64; then
5923 shared_flag='${wl}-G'
5925 if test "$aix_use_runtimelinking" = yes; then
5926 shared_flag='${wl}-G'
5928 shared_flag='${wl}-bM:SRE'
5933 # It seems that -bexpall can do strange things, so it is better to
5934 # generate a list of symbols to export.
5935 always_export_symbols=yes
5936 if test "$aix_use_runtimelinking" = yes; then
5937 # Warning - without using the other runtime loading flags (-brtl),
5938 # -berok will link without error, but may produce a broken library.
5939 allow_undefined_flag='-berok'
5940 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5941 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"
5943 if test "$host_cpu" = ia64; then
5944 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5945 allow_undefined_flag="-z nodefs"
5946 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"
5948 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5949 # Warning - without using the other run time loading flags,
5950 # -berok will link without error, but may produce a broken library.
5951 allow_undefined_flag='${wl}-berok'
5952 # This is a bit strange, but is similar to how AIX traditionally builds
5953 # it's shared libraries.
5954 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'
5960 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)'
5961 hardcode_libdir_flag_spec='-L$libdir'
5962 hardcode_minus_L=yes
5963 # see comment about different semantics on the GNU ld section
5967 cygwin* | mingw* | pw32*)
5968 # When not using gcc, we currently assume that we are using
5969 # Microsoft Visual C++.
5970 # hardcode_libdir_flag_spec is actually meaningless, as there is
5971 # no search path for DLLs.
5972 hardcode_libdir_flag_spec=' '
5973 allow_undefined_flag=unsupported
5974 # Tell ltmain to make .lib files, not .a files.
5976 # FIXME: Setting linknames here is a bad hack.
5977 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5978 # The linker will automatically build a .lib file if we build a DLL.
5979 old_archive_from_new_cmds='true'
5980 # FIXME: Should let the user specify the lib program.
5981 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5982 fix_srcfile_path='`cygpath -w "$srcfile"`'
5985 darwin* | rhapsody*)
5987 rhapsody* | darwin1.[012])
5988 allow_undefined_flag='-undefined suppress'
5991 allow_undefined_flag='-flat_namespace -undefined suppress'
5994 # FIXME: Relying on posixy $() will cause problems for
5995 # cross-compilation, but unfortunately the echo tests do not
5996 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5997 # `"' quotes if we put them in here... so don't!
5998 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)'
5999 # We need to add '_' to the symbols in $export_symbols first
6000 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6002 hardcode_shlibpath_var=no
6003 whole_archive_flag_spec='-all_load $convenience'
6010 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6011 # support. Future versions do this automatically, but an explicit c++rt0.o
6012 # does not break anything, and helps significantly (at the cost of a little
6015 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6016 hardcode_libdir_flag_spec='-R$libdir'
6018 hardcode_shlibpath_var=no
6021 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6023 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6025 hardcode_minus_L=yes
6026 hardcode_shlibpath_var=no
6029 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6031 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6032 hardcode_libdir_flag_spec='-R$libdir'
6034 hardcode_shlibpath_var=no
6037 hpux9* | hpux10* | hpux11*)
6039 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' ;;
6040 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6042 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6043 hardcode_libdir_separator=:
6045 hardcode_minus_L=yes # Not in the search PATH, but as the default
6046 # location of the library.
6047 export_dynamic_flag_spec='${wl}-E'
6050 irix5* | irix6* | nonstopux*)
6051 if test "$GCC" = yes; then
6052 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'
6053 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6055 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'
6056 hardcode_libdir_flag_spec='-rpath $libdir'
6058 hardcode_libdir_separator=:
6059 link_all_deplibs=yes
6063 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6064 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6066 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6068 hardcode_libdir_flag_spec='-R$libdir'
6070 hardcode_shlibpath_var=no
6074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6076 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6077 hardcode_libdir_separator=:
6078 hardcode_shlibpath_var=no
6083 hardcode_shlibpath_var=no
6084 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6085 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6086 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6087 export_dynamic_flag_spec='${wl}-E'
6090 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6091 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6092 hardcode_libdir_flag_spec='-R$libdir'
6095 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6096 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6103 hardcode_libdir_flag_spec='-L$libdir'
6104 hardcode_minus_L=yes
6105 allow_undefined_flag=unsupported
6106 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'
6107 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6111 if test "$GCC" = yes; then
6112 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6113 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'
6115 allow_undefined_flag=' -expect_unresolved \*'
6116 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'
6118 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6119 hardcode_libdir_separator=:
6122 osf4* | osf5*) # as osf3* with the addition of -msym flag
6123 if test "$GCC" = yes; then
6124 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6125 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'
6126 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6128 allow_undefined_flag=' -expect_unresolved \*'
6129 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'
6130 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6131 $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'
6133 #Both c and cxx compiler support -rpath directly
6134 hardcode_libdir_flag_spec='-rpath $libdir'
6136 hardcode_libdir_separator=:
6140 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6141 hardcode_shlibpath_var=no
6142 runpath_var=LD_RUN_PATH
6143 hardcode_runpath_var=yes
6144 export_dynamic_flag_spec='${wl}-Bexport'
6148 # gcc --version < 3.0 without binutils cannot create self contained
6149 # shared libraries reliably, requiring libgcc.a to resolve some of
6150 # the object symbols generated in some cases. Libraries that use
6151 # assert need libgcc.a to resolve __eprintf, for example. Linking
6152 # a copy of libgcc.a into every shared library to guarantee resolving
6153 # such symbols causes other problems: According to Tim Van Holder
6154 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6155 # (to the application) exception stack for one thing.
6156 no_undefined_flag=' -z defs'
6157 if test "$GCC" = yes; then
6158 case `$CC --version 2>/dev/null` in
6162 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6163 *** create self contained shared libraries on Solaris systems, without
6164 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6165 *** -no-undefined support, which will at least allow you to build shared
6166 *** libraries. However, you may find that when you link such libraries
6167 *** into an application without using GCC, you have to manually add
6168 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6169 *** upgrade to a newer version of GCC. Another option is to rebuild your
6170 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6177 # $CC -shared without GNU ld will not create a library from C++
6178 # object files and a static libstdc++, better avoid it by now
6179 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6180 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6181 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6182 hardcode_libdir_flag_spec='-R$libdir'
6183 hardcode_shlibpath_var=no
6185 solaris2.[0-5] | solaris2.[0-5].*) ;;
6186 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6187 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6189 link_all_deplibs=yes
6193 if test "x$host_vendor" = xsequent; then
6194 # Use $CC to link under sequent, because it throws in some extra .o
6195 # files that make .init and .fini sections work.
6196 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6198 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6200 hardcode_libdir_flag_spec='-L$libdir'
6202 hardcode_minus_L=yes
6203 hardcode_shlibpath_var=no
6207 case $host_vendor in
6209 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6210 hardcode_direct=yes # is this really true???
6213 ## LD is ld it makes a PLAMLIB
6214 ## CC just makes a GrossModule.
6215 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6216 reload_cmds='$CC -r -o $output$reload_objs'
6220 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6221 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6224 runpath_var='LD_RUN_PATH'
6225 hardcode_shlibpath_var=no
6229 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6230 hardcode_shlibpath_var=no
6231 export_dynamic_flag_spec='-Bexport'
6235 no_undefined_flag=' -z text'
6236 # $CC -shared without GNU ld will not create a library from C++
6237 # object files and a static libstdc++, better avoid it by now
6238 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6239 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6240 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6241 hardcode_libdir_flag_spec=
6242 hardcode_shlibpath_var=no
6243 runpath_var='LD_RUN_PATH'
6247 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6248 hardcode_libdir_flag_spec='-L$libdir'
6249 hardcode_shlibpath_var=no
6253 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6254 hardcode_libdir_flag_spec='-L$libdir'
6255 hardcode_shlibpath_var=no
6259 if test -d /usr/nec; then
6260 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6261 hardcode_shlibpath_var=no
6262 runpath_var=LD_RUN_PATH
6263 hardcode_runpath_var=yes
6269 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6272 hardcode_shlibpath_var=no
6273 hardcode_runpath_var=yes
6274 runpath_var=LD_RUN_PATH
6277 sysv5uw7* | unixware7*)
6278 no_undefined_flag='${wl}-z ${wl}text'
6279 if test "$GCC" = yes; then
6280 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6282 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6284 runpath_var='LD_RUN_PATH'
6285 hardcode_shlibpath_var=no
6293 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6294 echo "${ECHO_T}$ld_shlibs" >&6
6295 test "$ld_shlibs" = no && can_build_shared=no
6297 # Check hardcoding attributes.
6298 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6299 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6301 if test -n "$hardcode_libdir_flag_spec" || \
6302 test -n "$runpath_var"; then
6304 # We can hardcode non-existant directories.
6305 if test "$hardcode_direct" != no &&
6306 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6307 # have to relink, otherwise we might link with an installed library
6308 # when we should be linking with a yet-to-be-installed one
6309 ## test "$hardcode_shlibpath_var" != no &&
6310 test "$hardcode_minus_L" != no; then
6311 # Linking always hardcodes the temporary library directory.
6312 hardcode_action=relink
6314 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6315 hardcode_action=immediate
6318 # We cannot hardcode anything, or else we can only hardcode existing
6320 hardcode_action=unsupported
6322 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6323 echo "${ECHO_T}$hardcode_action" >&6
6327 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6328 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6329 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6330 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6331 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6332 echo "$as_me:$LINENO: result: yes" >&5
6333 echo "${ECHO_T}yes" >&6
6335 echo "$as_me:$LINENO: result: no" >&5
6336 echo "${ECHO_T}no" >&6
6339 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6340 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6342 # PORTME Fill in your ld.so characteristics
6343 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6344 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6346 libname_spec='lib$name'
6353 shlibpath_overrides_runpath=unknown
6355 dynamic_linker="$host_os ld.so"
6356 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib"
6357 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib"
6362 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6363 shlibpath_var=LIBPATH
6365 # AIX has no versioning support, so we append a major version to the name.
6366 soname_spec='${libname}${release}.so$major'
6373 hardcode_into_libs=yes
6374 if test "$host_cpu" = ia64; then
6375 # AIX 5 supports IA64
6376 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6377 shlibpath_var=LD_LIBRARY_PATH
6379 # With GCC up to 2.95.x, collect2 would create an import file
6380 # for dependence libraries. The import file would start with
6381 # the line `#! .'. This would cause the generated library to
6382 # depend on `.', always an invalid library. This was fixed in
6383 # development snapshots of GCC prior to 3.0.
6385 aix4 | aix4.[01] | aix4.[01].*)
6386 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6388 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6395 # AIX (on Power*) has no versioning support, so currently we can
6396 # not hardcode correct soname into executable. Probably we can
6397 # add versioning support to collect2, so additional links can
6398 # be useful in future.
6399 if test "$aix_use_runtimelinking" = yes; then
6400 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6401 # instead of lib<name>.a to let people know that these are not
6402 # typical AIX shared libraries.
6403 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6405 # We preserve .a as extension for shared libraries through AIX4.2
6406 # and later when we are not doing run time linking.
6407 library_names_spec='${libname}${release}.a $libname.a'
6408 soname_spec='${libname}${release}.so$major'
6410 shlibpath_var=LIBPATH
6412 hardcode_into_libs=yes
6416 library_names_spec='$libname.ixlibrary $libname.a'
6417 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6418 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'
6422 library_names_spec='${libname}.so'
6423 dynamic_linker="$host_os ld.so"
6424 shlibpath_var=LIBRARY_PATH
6430 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6431 soname_spec='${libname}${release}.so$major'
6432 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6433 shlibpath_var=LD_LIBRARY_PATH
6434 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6435 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6436 export_dynamic_flag_spec=-rdynamic
6437 # the default ld.so.conf also contains /usr/contrib/lib and
6438 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6439 # libtool to hard-code these into programs
6442 cygwin* | mingw* | pw32*)
6443 version_type=windows
6446 case $GCC,$host_os in
6448 library_names_spec='$libname.dll.a'
6449 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6450 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6451 dldir=$destdir/`dirname \$dlpath`~
6452 test -d \$dldir || mkdir -p \$dldir~
6453 $install_prog .libs/$dlname \$dldir/$dlname'
6454 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6455 dlpath=$dir/\$dldll~
6459 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6460 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6463 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6466 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6469 dynamic_linker='Win32 ld.exe'
6470 # FIXME: first we should search . and the directory the executable is in
6474 darwin* | rhapsody*)
6475 dynamic_linker="$host_os dyld"
6479 # FIXME: Relying on posixy $() will cause problems for
6480 # cross-compilation, but unfortunately the echo tests do not
6481 # yet detect zsh echo's removal of \ escapes.
6482 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)'
6483 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6484 shlibpath_overrides_runpath=yes
6485 shlibpath_var=DYLD_LIBRARY_PATH
6493 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6494 version_type=freebsd-$objformat
6495 case $version_type in
6497 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6502 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6506 shlibpath_var=LD_LIBRARY_PATH
6509 shlibpath_overrides_runpath=yes
6512 shlibpath_overrides_runpath=no
6513 hardcode_into_libs=yes
6522 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6523 soname_spec='${libname}${release}.so$major'
6524 shlibpath_var=LD_LIBRARY_PATH
6525 hardcode_into_libs=yes
6528 hpux9* | hpux10* | hpux11*)
6529 # Give a soname corresponding to the major version so that dld.sl refuses to
6530 # link against other versions.
6531 dynamic_linker="$host_os dld.sl"
6535 shlibpath_var=SHLIB_PATH
6536 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6537 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6538 soname_spec='${libname}${release}.sl$major'
6539 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6540 postinstall_cmds='chmod 555 $lib'
6543 irix5* | irix6* | nonstopux*)
6545 nonstopux*) version_type=nonstopux ;;
6546 *) version_type=irix ;;
6550 soname_spec='${libname}${release}.so$major'
6551 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6553 irix5* | nonstopux*)
6557 case $LD in # libtool.m4 will add one of these switches to LD
6558 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6559 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6560 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6561 *) libsuff= shlibsuff= libmagic=never-match;;
6565 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6566 shlibpath_overrides_runpath=no
6567 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6568 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6571 # No shared lib support for Linux oldld, aout, or coff.
6572 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6576 # This must be Linux ELF.
6581 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6582 soname_spec='${libname}${release}.so$major'
6583 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6584 shlibpath_var=LD_LIBRARY_PATH
6585 shlibpath_overrides_runpath=no
6586 # This implies no fast_install, which is unacceptable.
6587 # Some rework will be needed to allow for fast_install
6588 # before this can be enabled.
6589 hardcode_into_libs=yes
6591 case $host_cpu:$lt_cv_cc_64bit_output in
6592 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
6593 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
6594 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
6598 # We used to test for /lib/ld.so.1 and disable shared libraries on
6599 # powerpc, because MkLinux only supported shared libraries with the
6600 # GNU dynamic linker. Since this was broken with cross compilers,
6601 # most powerpc-linux boxes support dynamic linking these days and
6602 # people can always --disable-shared, the test was removed, and we
6603 # assume the GNU/Linux dynamic linker is in use.
6604 dynamic_linker='GNU/Linux ld.so'
6606 # Find out which ABI we are using (multilib Linux x86_64 hack).
6610 echo '#line 6610 "configure"' > conftest.$ac_ext
6611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6612 (eval $ac_compile) 2>&5
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); }; then
6616 case `/usr/bin/file conftest.$ac_objext` in
6627 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
6628 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
6635 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6636 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6637 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6638 dynamic_linker='NetBSD (a.out) ld.so'
6640 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6641 soname_spec='${libname}${release}.so$major'
6642 dynamic_linker='NetBSD ld.elf_so'
6644 shlibpath_var=LD_LIBRARY_PATH
6645 shlibpath_overrides_runpath=yes
6646 hardcode_into_libs=yes
6651 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6652 shlibpath_var=LD_LIBRARY_PATH
6653 shlibpath_overrides_runpath=yes
6660 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6662 openbsd2.[89] | openbsd2.[89].*)
6663 shlibpath_overrides_runpath=no
6666 shlibpath_overrides_runpath=yes
6670 shlibpath_overrides_runpath=yes
6672 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6673 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6674 shlibpath_var=LD_LIBRARY_PATH
6678 libname_spec='$name'
6680 library_names_spec='$libname.dll $libname.a'
6681 dynamic_linker='OS/2 ld.exe'
6682 shlibpath_var=LIBPATH
6685 osf3* | osf4* | osf5*)
6688 soname_spec='${libname}${release}.so$major'
6689 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6690 shlibpath_var=LD_LIBRARY_PATH
6691 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6692 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6693 hardcode_into_libs=yes
6698 soname_spec='${libname}${release}.so$major'
6699 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6700 shlibpath_var=LD_LIBRARY_PATH
6707 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6708 soname_spec='${libname}${release}.so$major'
6709 shlibpath_var=LD_LIBRARY_PATH
6710 shlibpath_overrides_runpath=yes
6711 hardcode_into_libs=yes
6712 # ldd complains unless libraries are executable
6713 postinstall_cmds='chmod +x $lib'
6718 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6719 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6720 shlibpath_var=LD_LIBRARY_PATH
6721 shlibpath_overrides_runpath=yes
6722 if test "$with_gnu_ld" = yes; then
6728 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6730 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6731 soname_spec='${libname}${release}.so$major'
6732 shlibpath_var=LD_LIBRARY_PATH
6733 case $host_vendor in
6735 shlibpath_overrides_runpath=no
6737 export_dynamic_flag_spec='${wl}-Blargedynsym'
6738 runpath_var=LD_RUN_PATH
6746 shlibpath_overrides_runpath=no
6747 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6754 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6755 soname_spec='${libname}${release}.so$major'
6756 shlibpath_var=LD_LIBRARY_PATH
6763 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6764 soname_spec='${libname}${release}.so$major'
6765 shlibpath_var=LD_LIBRARY_PATH
6769 if test -d /usr/nec ;then
6771 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6772 soname_spec='$libname.so.$major'
6773 shlibpath_var=LD_LIBRARY_PATH
6781 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6782 echo "${ECHO_T}$dynamic_linker" >&6
6783 test "$dynamic_linker" = no && can_build_shared=no
6785 # Report the final consequences.
6786 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6787 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6788 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6789 echo "${ECHO_T}$can_build_shared" >&6
6791 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6792 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6793 test "$can_build_shared" = "no" && enable_shared=no
6795 # On AIX, shared libraries and static libraries use the same namespace, and
6796 # are all built from PIC.
6799 test "$enable_shared" = yes && enable_static=no
6800 if test -n "$RANLIB"; then
6801 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6802 postinstall_cmds='$RANLIB $lib'
6807 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6808 test "$enable_shared" = yes && enable_static=no
6812 echo "$as_me:$LINENO: result: $enable_shared" >&5
6813 echo "${ECHO_T}$enable_shared" >&6
6815 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6816 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6817 # Make sure either enable_shared or enable_static is yes.
6818 test "$enable_shared" = yes || enable_static=yes
6819 echo "$as_me:$LINENO: result: $enable_static" >&5
6820 echo "${ECHO_T}$enable_static" >&6
6822 if test "$hardcode_action" = relink; then
6823 # Fast installation is not supported
6824 enable_fast_install=no
6825 elif test "$shlibpath_overrides_runpath" = yes ||
6826 test "$enable_shared" = no; then
6827 # Fast installation is not necessary
6828 enable_fast_install=needless
6831 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6832 if test "$GCC" = yes; then
6833 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6836 if test "x$enable_dlopen" != xyes; then
6837 enable_dlopen=unknown
6838 enable_dlopen_self=unknown
6839 enable_dlopen_self_static=unknown
6846 lt_cv_dlopen="load_add_on"
6848 lt_cv_dlopen_self=yes
6851 cygwin* | mingw* | pw32*)
6852 lt_cv_dlopen="LoadLibrary"
6857 echo "$as_me:$LINENO: checking for shl_load" >&5
6858 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6859 if test "${ac_cv_func_shl_load+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6862 cat >conftest.$ac_ext <<_ACEOF
6865 cat confdefs.h >>conftest.$ac_ext
6866 cat >>conftest.$ac_ext <<_ACEOF
6867 /* end confdefs.h. */
6868 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
6869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6870 #define shl_load innocuous_shl_load
6872 /* System header to define __stub macros and hopefully few prototypes,
6873 which can conflict with char shl_load (); below.
6874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6875 <limits.h> exists even on freestanding compilers. */
6878 # include <limits.h>
6880 # include <assert.h>
6885 /* Override any gcc2 internal prototype to avoid an error. */
6890 /* We use char because int might match the return type of a gcc2
6891 builtin and then its argument prototype would still apply. */
6893 /* The GNU C library defines this for functions which it implements
6894 to always fail with ENOSYS. Some functions are actually named
6895 something starting with __ and the normal name is an alias. */
6896 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6899 char (*f) () = shl_load;
6908 return f != shl_load;
6913 rm -f conftest.$ac_objext conftest$ac_exeext
6914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6915 (eval $ac_link) 2>conftest.er1
6917 grep -v '^ *+' conftest.er1 >conftest.err
6919 cat conftest.err >&5
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); } &&
6922 { ac_try='test -z "$ac_c_werror_flag"
6923 || test ! -s conftest.err'
6924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); }; } &&
6929 { ac_try='test -s conftest$ac_exeext'
6930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); }; }; then
6935 ac_cv_func_shl_load=yes
6937 echo "$as_me: failed program was:" >&5
6938 sed 's/^/| /' conftest.$ac_ext >&5
6940 ac_cv_func_shl_load=no
6942 rm -f conftest.err conftest.$ac_objext \
6943 conftest$ac_exeext conftest.$ac_ext
6945 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6946 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6947 if test $ac_cv_func_shl_load = yes; then
6948 lt_cv_dlopen="shl_load"
6950 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6951 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6952 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6955 ac_check_lib_save_LIBS=$LIBS
6957 cat >conftest.$ac_ext <<_ACEOF
6960 cat confdefs.h >>conftest.$ac_ext
6961 cat >>conftest.$ac_ext <<_ACEOF
6962 /* end confdefs.h. */
6964 /* Override any gcc2 internal prototype to avoid an error. */
6968 /* We use char because int might match the return type of a gcc2
6969 builtin and then its argument prototype would still apply. */
6979 rm -f conftest.$ac_objext conftest$ac_exeext
6980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6981 (eval $ac_link) 2>conftest.er1
6983 grep -v '^ *+' conftest.er1 >conftest.err
6985 cat conftest.err >&5
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); } &&
6988 { ac_try='test -z "$ac_c_werror_flag"
6989 || test ! -s conftest.err'
6990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994 (exit $ac_status); }; } &&
6995 { ac_try='test -s conftest$ac_exeext'
6996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); }; }; then
7001 ac_cv_lib_dld_shl_load=yes
7003 echo "$as_me: failed program was:" >&5
7004 sed 's/^/| /' conftest.$ac_ext >&5
7006 ac_cv_lib_dld_shl_load=no
7008 rm -f conftest.err conftest.$ac_objext \
7009 conftest$ac_exeext conftest.$ac_ext
7010 LIBS=$ac_check_lib_save_LIBS
7012 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7013 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7014 if test $ac_cv_lib_dld_shl_load = yes; then
7015 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7017 echo "$as_me:$LINENO: checking for dlopen" >&5
7018 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7019 if test "${ac_cv_func_dlopen+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7022 cat >conftest.$ac_ext <<_ACEOF
7025 cat confdefs.h >>conftest.$ac_ext
7026 cat >>conftest.$ac_ext <<_ACEOF
7027 /* end confdefs.h. */
7028 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7030 #define dlopen innocuous_dlopen
7032 /* System header to define __stub macros and hopefully few prototypes,
7033 which can conflict with char dlopen (); below.
7034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7035 <limits.h> exists even on freestanding compilers. */
7038 # include <limits.h>
7040 # include <assert.h>
7045 /* Override any gcc2 internal prototype to avoid an error. */
7050 /* We use char because int might match the return type of a gcc2
7051 builtin and then its argument prototype would still apply. */
7053 /* The GNU C library defines this for functions which it implements
7054 to always fail with ENOSYS. Some functions are actually named
7055 something starting with __ and the normal name is an alias. */
7056 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7059 char (*f) () = dlopen;
7073 rm -f conftest.$ac_objext conftest$ac_exeext
7074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7075 (eval $ac_link) 2>conftest.er1
7077 grep -v '^ *+' conftest.er1 >conftest.err
7079 cat conftest.err >&5
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); } &&
7082 { ac_try='test -z "$ac_c_werror_flag"
7083 || test ! -s conftest.err'
7084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); }; } &&
7089 { ac_try='test -s conftest$ac_exeext'
7090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); }; }; then
7095 ac_cv_func_dlopen=yes
7097 echo "$as_me: failed program was:" >&5
7098 sed 's/^/| /' conftest.$ac_ext >&5
7100 ac_cv_func_dlopen=no
7102 rm -f conftest.err conftest.$ac_objext \
7103 conftest$ac_exeext conftest.$ac_ext
7105 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7106 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7107 if test $ac_cv_func_dlopen = yes; then
7108 lt_cv_dlopen="dlopen"
7110 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7111 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7112 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7113 echo $ECHO_N "(cached) $ECHO_C" >&6
7115 ac_check_lib_save_LIBS=$LIBS
7117 cat >conftest.$ac_ext <<_ACEOF
7120 cat confdefs.h >>conftest.$ac_ext
7121 cat >>conftest.$ac_ext <<_ACEOF
7122 /* end confdefs.h. */
7124 /* Override any gcc2 internal prototype to avoid an error. */
7128 /* We use char because int might match the return type of a gcc2
7129 builtin and then its argument prototype would still apply. */
7139 rm -f conftest.$ac_objext conftest$ac_exeext
7140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7141 (eval $ac_link) 2>conftest.er1
7143 grep -v '^ *+' conftest.er1 >conftest.err
7145 cat conftest.err >&5
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); } &&
7148 { ac_try='test -z "$ac_c_werror_flag"
7149 || test ! -s conftest.err'
7150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); }; } &&
7155 { ac_try='test -s conftest$ac_exeext'
7156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); }; }; then
7161 ac_cv_lib_dl_dlopen=yes
7163 echo "$as_me: failed program was:" >&5
7164 sed 's/^/| /' conftest.$ac_ext >&5
7166 ac_cv_lib_dl_dlopen=no
7168 rm -f conftest.err conftest.$ac_objext \
7169 conftest$ac_exeext conftest.$ac_ext
7170 LIBS=$ac_check_lib_save_LIBS
7172 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7173 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7174 if test $ac_cv_lib_dl_dlopen = yes; then
7175 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7177 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7178 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7179 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7180 echo $ECHO_N "(cached) $ECHO_C" >&6
7182 ac_check_lib_save_LIBS=$LIBS
7184 cat >conftest.$ac_ext <<_ACEOF
7187 cat confdefs.h >>conftest.$ac_ext
7188 cat >>conftest.$ac_ext <<_ACEOF
7189 /* end confdefs.h. */
7191 /* Override any gcc2 internal prototype to avoid an error. */
7195 /* We use char because int might match the return type of a gcc2
7196 builtin and then its argument prototype would still apply. */
7206 rm -f conftest.$ac_objext conftest$ac_exeext
7207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7208 (eval $ac_link) 2>conftest.er1
7210 grep -v '^ *+' conftest.er1 >conftest.err
7212 cat conftest.err >&5
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); } &&
7215 { ac_try='test -z "$ac_c_werror_flag"
7216 || test ! -s conftest.err'
7217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); }; } &&
7222 { ac_try='test -s conftest$ac_exeext'
7223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); }; }; then
7228 ac_cv_lib_svld_dlopen=yes
7230 echo "$as_me: failed program was:" >&5
7231 sed 's/^/| /' conftest.$ac_ext >&5
7233 ac_cv_lib_svld_dlopen=no
7235 rm -f conftest.err conftest.$ac_objext \
7236 conftest$ac_exeext conftest.$ac_ext
7237 LIBS=$ac_check_lib_save_LIBS
7239 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7240 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7241 if test $ac_cv_lib_svld_dlopen = yes; then
7242 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7244 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7245 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7246 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7247 echo $ECHO_N "(cached) $ECHO_C" >&6
7249 ac_check_lib_save_LIBS=$LIBS
7251 cat >conftest.$ac_ext <<_ACEOF
7254 cat confdefs.h >>conftest.$ac_ext
7255 cat >>conftest.$ac_ext <<_ACEOF
7256 /* end confdefs.h. */
7258 /* Override any gcc2 internal prototype to avoid an error. */
7262 /* We use char because int might match the return type of a gcc2
7263 builtin and then its argument prototype would still apply. */
7273 rm -f conftest.$ac_objext conftest$ac_exeext
7274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7275 (eval $ac_link) 2>conftest.er1
7277 grep -v '^ *+' conftest.er1 >conftest.err
7279 cat conftest.err >&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); } &&
7282 { ac_try='test -z "$ac_c_werror_flag"
7283 || test ! -s conftest.err'
7284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); }; } &&
7289 { ac_try='test -s conftest$ac_exeext'
7290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); }; }; then
7295 ac_cv_lib_dld_dld_link=yes
7297 echo "$as_me: failed program was:" >&5
7298 sed 's/^/| /' conftest.$ac_ext >&5
7300 ac_cv_lib_dld_dld_link=no
7302 rm -f conftest.err conftest.$ac_objext \
7303 conftest$ac_exeext conftest.$ac_ext
7304 LIBS=$ac_check_lib_save_LIBS
7306 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7307 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7308 if test $ac_cv_lib_dld_dld_link = yes; then
7309 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7330 if test "x$lt_cv_dlopen" != xno; then
7336 case $lt_cv_dlopen in
7338 save_CPPFLAGS="$CPPFLAGS"
7339 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7341 save_LDFLAGS="$LDFLAGS"
7342 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7345 LIBS="$lt_cv_dlopen_libs $LIBS"
7347 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7348 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7349 if test "${lt_cv_dlopen_self+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7352 if test "$cross_compiling" = yes; then :
7353 lt_cv_dlopen_self=cross
7355 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7356 lt_status=$lt_dlunknown
7357 cat > conftest.$ac_ext <<EOF
7358 #line 7358 "configure"
7359 #include "confdefs.h"
7368 # define LT_DLGLOBAL RTLD_GLOBAL
7371 # define LT_DLGLOBAL DL_GLOBAL
7373 # define LT_DLGLOBAL 0
7377 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7378 find out it does not work in some platform. */
7379 #ifndef LT_DLLAZY_OR_NOW
7381 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7384 # define LT_DLLAZY_OR_NOW DL_LAZY
7387 # define LT_DLLAZY_OR_NOW RTLD_NOW
7390 # define LT_DLLAZY_OR_NOW DL_NOW
7392 # define LT_DLLAZY_OR_NOW 0
7400 extern "C" void exit (int);
7403 void fnord() { int i=42;}
7406 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7407 int status = $lt_dlunknown;
7411 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7412 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7413 /* dlclose (self); */
7419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7420 (eval $ac_link) 2>&5
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7424 (./conftest; exit; ) 2>/dev/null
7427 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7428 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7429 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7432 # compilation failed
7433 lt_cv_dlopen_self=no
7440 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7441 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7443 if test "x$lt_cv_dlopen_self" = xyes; then
7444 LDFLAGS="$LDFLAGS $link_static_flag"
7445 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7446 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7447 if test "${lt_cv_dlopen_self_static+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7450 if test "$cross_compiling" = yes; then :
7451 lt_cv_dlopen_self_static=cross
7453 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7454 lt_status=$lt_dlunknown
7455 cat > conftest.$ac_ext <<EOF
7456 #line 7456 "configure"
7457 #include "confdefs.h"
7466 # define LT_DLGLOBAL RTLD_GLOBAL
7469 # define LT_DLGLOBAL DL_GLOBAL
7471 # define LT_DLGLOBAL 0
7475 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7476 find out it does not work in some platform. */
7477 #ifndef LT_DLLAZY_OR_NOW
7479 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7482 # define LT_DLLAZY_OR_NOW DL_LAZY
7485 # define LT_DLLAZY_OR_NOW RTLD_NOW
7488 # define LT_DLLAZY_OR_NOW DL_NOW
7490 # define LT_DLLAZY_OR_NOW 0
7498 extern "C" void exit (int);
7501 void fnord() { int i=42;}
7504 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7505 int status = $lt_dlunknown;
7509 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7510 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7511 /* dlclose (self); */
7517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7518 (eval $ac_link) 2>&5
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7522 (./conftest; exit; ) 2>/dev/null
7525 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7526 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7527 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7530 # compilation failed
7531 lt_cv_dlopen_self_static=no
7538 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7539 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7542 CPPFLAGS="$save_CPPFLAGS"
7543 LDFLAGS="$save_LDFLAGS"
7548 case $lt_cv_dlopen_self in
7549 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7550 *) enable_dlopen_self=unknown ;;
7553 case $lt_cv_dlopen_self_static in
7554 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7555 *) enable_dlopen_self_static=unknown ;;
7560 if test "$enable_shared" = yes && test "$GCC" = yes; then
7561 case $archive_cmds in
7563 # FIXME: we may have to deal with multi-command sequences.
7566 # Test whether the compiler implicitly links with -lc since on some
7567 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7568 # to ld, don't add -lc before -lgcc.
7569 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7570 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7571 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7572 echo $ECHO_N "(cached) $ECHO_C" >&6
7575 echo 'static int dummy;' > conftest.$ac_ext
7577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7578 (eval $ac_compile) 2>&5
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); }; then
7584 libobjs=conftest.$ac_objext
7586 wl=$lt_cv_prog_cc_wl
7592 save_allow_undefined_flag=$allow_undefined_flag
7593 allow_undefined_flag=
7594 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7595 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); }
7600 lt_cv_archive_cmds_need_lc=no
7602 lt_cv_archive_cmds_need_lc=yes
7604 allow_undefined_flag=$save_allow_undefined_flag
7606 cat conftest.err 1>&5
7610 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7611 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7615 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7617 # The second clause should only fire when bootstrapping the
7618 # libtool distribution, otherwise you forgot to ship ltmain.sh
7619 # with your package, and you will get complaints that there are
7620 # no rules to generate ltmain.sh.
7621 if test -f "$ltmain"; then
7624 # If there is no Makefile yet, we rely on a make rule to execute
7625 # `config.status --recheck' to rerun these tests and create the
7626 # libtool script then.
7627 test -f Makefile && make "$ltmain"
7630 if test -f "$ltmain"; then
7631 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7634 echo creating $ofile
7636 # Now quote all the things that may contain metacharacters while being
7637 # careful not to overquote the AC_SUBSTed values. We take copies of the
7638 # variables and quote the copies for generation of the libtool script.
7639 for var in echo old_CC old_CFLAGS SED \
7640 AR AR_FLAGS CC LD LN_S NM SHELL \
7641 reload_flag reload_cmds wl \
7642 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7643 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7644 library_names_spec soname_spec \
7645 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7646 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7647 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7648 old_striplib striplib file_magic_cmd export_symbols_cmds \
7649 deplibs_check_method allow_undefined_flag no_undefined_flag \
7650 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7651 global_symbol_to_c_name_address \
7652 hardcode_libdir_flag_spec hardcode_libdir_separator \
7653 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7654 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7657 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7658 old_postinstall_cmds | old_postuninstall_cmds | \
7659 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7660 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7661 postinstall_cmds | postuninstall_cmds | \
7662 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7663 # Double-quote double-evaled strings.
7664 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7667 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7672 cat <<__EOF__ > "${ofile}T"
7675 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7676 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7677 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7679 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7680 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7682 # This program is free software; you can redistribute it and/or modify
7683 # it under the terms of the GNU General Public License as published by
7684 # the Free Software Foundation; either version 2 of the License, or
7685 # (at your option) any later version.
7687 # This program is distributed in the hope that it will be useful, but
7688 # WITHOUT ANY WARRANTY; without even the implied warranty of
7689 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7690 # General Public License for more details.
7692 # You should have received a copy of the GNU General Public License
7693 # along with this program; if not, write to the Free Software
7694 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7696 # As a special exception to the GNU General Public License, if you
7697 # distribute this file as part of a program that contains a
7698 # configuration script generated by Autoconf, you may include it under
7699 # the same distribution terms that you use for the rest of that program.
7701 # A sed that does not truncate output.
7704 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7705 Xsed="${SED} -e s/^X//"
7707 # The HP-UX ksh and POSIX shell print the target directory to stdout
7709 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7711 # ### BEGIN LIBTOOL CONFIG
7713 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7715 # Shell to use when invoking shell scripts.
7718 # Whether or not to build shared libraries.
7719 build_libtool_libs=$enable_shared
7721 # Whether or not to build static libraries.
7722 build_old_libs=$enable_static
7724 # Whether or not to add -lc for building shared libraries.
7725 build_libtool_need_lc=$need_lc
7727 # Whether or not to optimize for fast installation.
7728 fast_install=$enable_fast_install
7731 host_alias=$host_alias
7734 # An echo program that does not interpret backslashes.
7739 AR_FLAGS=$lt_AR_FLAGS
7741 # The default C compiler.
7744 # Is the compiler the GNU C compiler?
7747 # The linker used to build libraries.
7750 # Whether we need hard or soft links.
7753 # A BSD-compatible nm program.
7756 # A symbol stripping program
7759 # Used to examine libraries when file_magic_cmd begins "file"
7760 MAGIC_CMD=$MAGIC_CMD
7762 # Used on cygwin: DLL creation program.
7765 # Used on cygwin: object dumper.
7768 # Used on cygwin: assembler.
7771 # The name of the directory that contains temporary libtool files.
7774 # How to create reloadable object files.
7775 reload_flag=$lt_reload_flag
7776 reload_cmds=$lt_reload_cmds
7778 # How to pass a linker flag through the compiler.
7781 # Object file suffix (normally "o").
7784 # Old archive suffix (normally "a").
7787 # Executable file suffix (normally "").
7790 # Additional compiler flags for building library objects.
7791 pic_flag=$lt_pic_flag
7794 # Does compiler simultaneously support -c and -o options?
7795 compiler_c_o=$lt_compiler_c_o
7797 # Can we write directly to a .lo ?
7798 compiler_o_lo=$lt_compiler_o_lo
7800 # Must we lock files when doing compilation ?
7801 need_locks=$lt_need_locks
7803 # Do we need the lib prefix for modules?
7804 need_lib_prefix=$need_lib_prefix
7806 # Do we need a version for libraries?
7807 need_version=$need_version
7809 # Whether dlopen is supported.
7810 dlopen_support=$enable_dlopen
7812 # Whether dlopen of programs is supported.
7813 dlopen_self=$enable_dlopen_self
7815 # Whether dlopen of statically linked programs is supported.
7816 dlopen_self_static=$enable_dlopen_self_static
7818 # Compiler flag to prevent dynamic linking.
7819 link_static_flag=$lt_link_static_flag
7821 # Compiler flag to turn off builtin functions.
7822 no_builtin_flag=$lt_no_builtin_flag
7824 # Compiler flag to allow reflexive dlopens.
7825 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7827 # Compiler flag to generate shared objects directly from archives.
7828 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7830 # Compiler flag to generate thread-safe objects.
7831 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7833 # Library versioning type.
7834 version_type=$version_type
7836 # Format of library name prefix.
7837 libname_spec=$lt_libname_spec
7839 # List of archive names. First name is the real one, the rest are links.
7840 # The last name is the one that the linker finds with -lNAME.
7841 library_names_spec=$lt_library_names_spec
7843 # The coded name of the library, if different from the real name.
7844 soname_spec=$lt_soname_spec
7846 # Commands used to build and install an old-style archive.
7848 old_archive_cmds=$lt_old_archive_cmds
7849 old_postinstall_cmds=$lt_old_postinstall_cmds
7850 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7852 # Create an old-style archive from a shared archive.
7853 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7855 # Create a temporary old-style archive to link instead of a shared archive.
7856 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7858 # Commands used to build and install a shared archive.
7859 archive_cmds=$lt_archive_cmds
7860 archive_expsym_cmds=$lt_archive_expsym_cmds
7861 postinstall_cmds=$lt_postinstall_cmds
7862 postuninstall_cmds=$lt_postuninstall_cmds
7864 # Commands to strip libraries.
7865 old_striplib=$lt_old_striplib
7866 striplib=$lt_striplib
7868 # Method to check whether dependent libraries are shared objects.
7869 deplibs_check_method=$lt_deplibs_check_method
7871 # Command to use when deplibs_check_method == file_magic.
7872 file_magic_cmd=$lt_file_magic_cmd
7874 # Flag that allows shared libraries with undefined symbols to be built.
7875 allow_undefined_flag=$lt_allow_undefined_flag
7877 # Flag that forces no undefined symbols.
7878 no_undefined_flag=$lt_no_undefined_flag
7880 # Commands used to finish a libtool library installation in a directory.
7881 finish_cmds=$lt_finish_cmds
7883 # Same as above, but a single script fragment to be evaled but not shown.
7884 finish_eval=$lt_finish_eval
7886 # Take the output of nm and produce a listing of raw symbols and C names.
7887 global_symbol_pipe=$lt_global_symbol_pipe
7889 # Transform the output of nm in a proper C declaration
7890 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7892 # Transform the output of nm in a C name address pair
7893 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7895 # This is the shared library runtime path variable.
7896 runpath_var=$runpath_var
7898 # This is the shared library path variable.
7899 shlibpath_var=$shlibpath_var
7901 # Is shlibpath searched before the hard-coded library search path?
7902 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7904 # How to hardcode a shared library path into an executable.
7905 hardcode_action=$hardcode_action
7907 # Whether we should hardcode library paths into libraries.
7908 hardcode_into_libs=$hardcode_into_libs
7910 # Flag to hardcode \$libdir into a binary during linking.
7911 # This must work even if \$libdir does not exist.
7912 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7914 # Whether we need a single -rpath flag with a separated argument.
7915 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7917 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7919 hardcode_direct=$hardcode_direct
7921 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7923 hardcode_minus_L=$hardcode_minus_L
7925 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7926 # the resulting binary.
7927 hardcode_shlibpath_var=$hardcode_shlibpath_var
7929 # Variables whose values should be saved in libtool wrapper scripts and
7930 # restored at relink time.
7931 variables_saved_for_relink="$variables_saved_for_relink"
7933 # Whether libtool must link a program against all its dependency libraries.
7934 link_all_deplibs=$link_all_deplibs
7936 # Compile-time system search path for libraries
7937 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7939 # Run-time system search path for libraries
7940 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7942 # Fix the shell variable \$srcfile for the compiler.
7943 fix_srcfile_path="$fix_srcfile_path"
7945 # Set to yes if exported symbols are required.
7946 always_export_symbols=$always_export_symbols
7948 # The commands to list exported symbols.
7949 export_symbols_cmds=$lt_export_symbols_cmds
7951 # The commands to extract the exported symbol list from a shared archive.
7952 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7954 # Symbols that should not be listed in the preloaded symbols.
7955 exclude_expsyms=$lt_exclude_expsyms
7957 # Symbols that must always be exported.
7958 include_expsyms=$lt_include_expsyms
7960 # ### END LIBTOOL CONFIG
7966 cat <<\EOF >> "${ofile}T"
7968 # AIX sometimes has problems with the GCC collect2 program. For some
7969 # reason, if we set the COLLECT_NAMES environment variable, the problems
7970 # vanish in a puff of smoke.
7971 if test "X${COLLECT_NAMES+set}" != Xset; then
7973 export COLLECT_NAMES
7980 cygwin* | mingw* | pw32* | os2*)
7981 cat <<'EOF' >> "${ofile}T"
7982 # This is a source program that is used to create dlls on Windows
7983 # Don't remove nor modify the starting and closing comments
7984 # /* ltdll.c starts here */
7985 # #define WIN32_LEAN_AND_MEAN
7986 # #include <windows.h>
7987 # #undef WIN32_LEAN_AND_MEAN
7988 # #include <stdio.h>
7990 # #ifndef __CYGWIN__
7991 # # ifdef __CYGWIN32__
7992 # # define __CYGWIN__ __CYGWIN32__
7996 # #ifdef __cplusplus
7999 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8000 # #ifdef __cplusplus
8005 # #include <cygwin/cygwin_dll.h>
8006 # DECLARE_CYGWIN_DLL( DllMain );
8008 # HINSTANCE __hDllInstance_base;
8011 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8013 # __hDllInstance_base = hInst;
8016 # /* ltdll.c ends here */
8017 # This is a source program that is used to create import libraries
8018 # on Windows for dlls which lack them. Don't remove nor modify the
8019 # starting and closing comments
8020 # /* impgen.c starts here */
8021 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8023 # This file is part of GNU libtool.
8025 # This program is free software; you can redistribute it and/or modify
8026 # it under the terms of the GNU General Public License as published by
8027 # the Free Software Foundation; either version 2 of the License, or
8028 # (at your option) any later version.
8030 # This program is distributed in the hope that it will be useful,
8031 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8032 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8033 # GNU General Public License for more details.
8035 # You should have received a copy of the GNU General Public License
8036 # along with this program; if not, write to the Free Software
8037 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8040 # #include <stdio.h> /* for printf() */
8041 # #include <unistd.h> /* for open(), lseek(), read() */
8042 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8043 # #include <string.h> /* for strdup() */
8045 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8047 # #define O_BINARY 0
8050 # static unsigned int
8051 # pe_get16 (fd, offset)
8055 # unsigned char b[2];
8056 # lseek (fd, offset, SEEK_SET);
8058 # return b[0] + (b[1]<<8);
8061 # static unsigned int
8062 # pe_get32 (fd, offset)
8066 # unsigned char b[4];
8067 # lseek (fd, offset, SEEK_SET);
8069 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8072 # static unsigned int
8076 # unsigned char *b = ptr;
8077 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8086 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8087 # unsigned long export_rva, export_size, nsections, secptr, expptr;
8088 # unsigned long name_rvas, nexp;
8089 # unsigned char *expdata, *erva;
8090 # char *filename, *dll_name;
8092 # filename = argv[1];
8094 # dll = open(filename, O_RDONLY|O_BINARY);
8098 # dll_name = filename;
8100 # for (i=0; filename[i]; i++)
8101 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8102 # dll_name = filename + i +1;
8104 # pe_header_offset = pe_get32 (dll, 0x3c);
8105 # opthdr_ofs = pe_header_offset + 4 + 20;
8106 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
8108 # if (num_entries < 1) /* no exports */
8111 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
8112 # export_size = pe_get32 (dll, opthdr_ofs + 100);
8113 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8114 # secptr = (pe_header_offset + 4 + 20 +
8115 # pe_get16 (dll, pe_header_offset + 4 + 16));
8118 # for (i = 0; i < nsections; i++)
8121 # unsigned long secptr1 = secptr + 40 * i;
8122 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8123 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8124 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8125 # lseek(dll, secptr1, SEEK_SET);
8126 # read(dll, sname, 8);
8127 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8129 # expptr = fptr + (export_rva - vaddr);
8130 # if (export_rva + export_size > vaddr + vsize)
8131 # export_size = vsize - (export_rva - vaddr);
8136 # expdata = (unsigned char*)malloc(export_size);
8137 # lseek (dll, expptr, SEEK_SET);
8138 # read (dll, expdata, export_size);
8139 # erva = expdata - export_rva;
8141 # nexp = pe_as32 (expdata+24);
8142 # name_rvas = pe_as32 (expdata+32);
8144 # printf ("EXPORTS\n");
8145 # for (i = 0; i<nexp; i++)
8147 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8148 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8153 # /* impgen.c ends here */
8159 # We use sed instead of cat because bash on DJGPP gets confused if
8160 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8161 # text mode, it properly converts lines to CR/LF. This bash problem
8162 # is reportedly fixed, but why not run on old versions too?
8163 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8165 mv -f "${ofile}T" "$ofile" || \
8166 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8174 # This can be used to rebuild libtool when needed
8175 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8177 # Always use our own libtool.
8178 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8180 # Prevent multiple expansion
8183 for ac_prog in gzip uncompress compress
8185 # Extract the first word of "$ac_prog", so it can be a program name with args.
8186 set dummy $ac_prog; ac_word=$2
8187 echo "$as_me:$LINENO: checking for $ac_word" >&5
8188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8189 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
8190 echo $ECHO_N "(cached) $ECHO_C" >&6
8192 if test -n "$UNCOMPRESS"; then
8193 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
8195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8199 test -z "$as_dir" && as_dir=.
8200 for ac_exec_ext in '' $ac_executable_extensions; do
8201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8202 ac_cv_prog_UNCOMPRESS="$ac_prog"
8203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8211 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
8212 if test -n "$UNCOMPRESS"; then
8213 echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
8214 echo "${ECHO_T}$UNCOMPRESS" >&6
8216 echo "$as_me:$LINENO: result: no" >&5
8217 echo "${ECHO_T}no" >&6
8220 test -n "$UNCOMPRESS" && break
8230 echo "$as_me:$LINENO: checking for target system" >&5
8231 echo $ECHO_N "checking for target system... $ECHO_C" >&6
8235 *cygwin* ) CYGWIN=yes;;
8236 *mingw* ) MINGW=yes;;
8240 if test "x$MINGW" = "xyes"; then
8241 #fix for the debian distribution of mingw
8242 if test -x "/usr/i586-mingw32msvc/bin/ar";then
8243 AR="/usr/i586-mingw32msvc/bin/ar"
8245 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
8246 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
8248 #fix for the gentoo distribution of mingw
8249 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
8250 AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
8252 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
8253 RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
8255 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
8256 STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
8262 if test "x${CYGWIN}" = "xyes"; then
8263 cat >>confdefs.h <<_ACEOF
8267 echo "$as_me:$LINENO: result: cygwin" >&5
8268 echo "${ECHO_T}cygwin" >&6
8270 if test "x${MINGW}" = "xyes"; then
8271 cat >>confdefs.h <<_ACEOF
8276 cat >>confdefs.h <<_ACEOF
8280 LIBS="$LIBS -lws2_32"
8281 echo "$as_me:$LINENO: result: mingw" >&5
8282 echo "${ECHO_T}mingw" >&6
8286 cat >>confdefs.h <<_ACEOF
8290 echo "$as_me:$LINENO: result: " >&5
8291 echo "${ECHO_T}" >&6
8297 if test "x${MINGW}" != "xyes"; then
8299 cat >>confdefs.h <<_ACEOF
8310 # The following tries to make use of includes and libraries in
8311 # /usr/local, too. Notice: A -I/usr/local/include might break
8312 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
8313 # especially on systems which link /usr/local to /usr, so it has yet
8314 # to be seen how useful this is.
8315 if test -d /usr/local/lib; then
8316 LDFLAGS="$LDFLAGS -L/usr/local/lib"
8318 if test -d /usr/local/include; then
8319 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
8320 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
8323 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
8324 # if the user has a special prefix (like /opt), there might also be $prefix/lib
8325 # and $prefix/include, which should be included in our search paths for libraries
8327 LDFLAGS="$LDFLAGS -L${libdir}"
8328 CPPFLAGS="$CPPFLAGS -I${includedir}"
8329 # TODO- test whether gcc still works after this
8332 # this must be done after (I believe) AC_PROG_MAKE_SET
8333 if test "x$DEBUG" '!=' "x";then
8334 STRIP="@echo debug enabled, not stripping "
8340 echo "$as_me:$LINENO: checking for sin in -lm" >&5
8341 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8342 if test "${ac_cv_lib_m_sin+set}" = set; then
8343 echo $ECHO_N "(cached) $ECHO_C" >&6
8345 ac_check_lib_save_LIBS=$LIBS
8347 cat >conftest.$ac_ext <<_ACEOF
8350 cat confdefs.h >>conftest.$ac_ext
8351 cat >>conftest.$ac_ext <<_ACEOF
8352 /* end confdefs.h. */
8354 /* Override any gcc2 internal prototype to avoid an error. */
8358 /* We use char because int might match the return type of a gcc2
8359 builtin and then its argument prototype would still apply. */
8369 rm -f conftest.$ac_objext conftest$ac_exeext
8370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8371 (eval $ac_link) 2>conftest.er1
8373 grep -v '^ *+' conftest.er1 >conftest.err
8375 cat conftest.err >&5
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); } &&
8378 { ac_try='test -z "$ac_c_werror_flag"
8379 || test ! -s conftest.err'
8380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); }; } &&
8385 { ac_try='test -s conftest$ac_exeext'
8386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); }; }; then
8393 echo "$as_me: failed program was:" >&5
8394 sed 's/^/| /' conftest.$ac_ext >&5
8398 rm -f conftest.err conftest.$ac_objext \
8399 conftest$ac_exeext conftest.$ac_ext
8400 LIBS=$ac_check_lib_save_LIBS
8402 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8403 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8404 if test $ac_cv_lib_m_sin = yes; then
8405 cat >>confdefs.h <<_ACEOF
8412 echo "Error: Math library not found.";
8418 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
8419 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
8420 if test "${ac_cv_lib_z_deflate+set}" = set; then
8421 echo $ECHO_N "(cached) $ECHO_C" >&6
8423 ac_check_lib_save_LIBS=$LIBS
8425 cat >conftest.$ac_ext <<_ACEOF
8428 cat confdefs.h >>conftest.$ac_ext
8429 cat >>conftest.$ac_ext <<_ACEOF
8430 /* end confdefs.h. */
8432 /* Override any gcc2 internal prototype to avoid an error. */
8436 /* We use char because int might match the return type of a gcc2
8437 builtin and then its argument prototype would still apply. */
8447 rm -f conftest.$ac_objext conftest$ac_exeext
8448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8449 (eval $ac_link) 2>conftest.er1
8451 grep -v '^ *+' conftest.er1 >conftest.err
8453 cat conftest.err >&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); } &&
8456 { ac_try='test -z "$ac_c_werror_flag"
8457 || test ! -s conftest.err'
8458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); }; } &&
8463 { ac_try='test -s conftest$ac_exeext'
8464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); }; }; then
8469 ac_cv_lib_z_deflate=yes
8471 echo "$as_me: failed program was:" >&5
8472 sed 's/^/| /' conftest.$ac_ext >&5
8474 ac_cv_lib_z_deflate=no
8476 rm -f conftest.err conftest.$ac_objext \
8477 conftest$ac_exeext conftest.$ac_ext
8478 LIBS=$ac_check_lib_save_LIBS
8480 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
8481 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
8482 if test $ac_cv_lib_z_deflate = yes; then
8483 cat >>confdefs.h <<_ACEOF
8494 echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
8495 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6
8496 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
8497 echo $ECHO_N "(cached) $ECHO_C" >&6
8499 ac_check_lib_save_LIBS=$LIBS
8501 cat >conftest.$ac_ext <<_ACEOF
8504 cat confdefs.h >>conftest.$ac_ext
8505 cat >>conftest.$ac_ext <<_ACEOF
8506 /* end confdefs.h. */
8508 /* Override any gcc2 internal prototype to avoid an error. */
8512 /* We use char because int might match the return type of a gcc2
8513 builtin and then its argument prototype would still apply. */
8514 char jpeg_write_raw_data ();
8518 jpeg_write_raw_data ();
8523 rm -f conftest.$ac_objext conftest$ac_exeext
8524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8525 (eval $ac_link) 2>conftest.er1
8527 grep -v '^ *+' conftest.er1 >conftest.err
8529 cat conftest.err >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); } &&
8532 { ac_try='test -z "$ac_c_werror_flag"
8533 || test ! -s conftest.err'
8534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); }; } &&
8539 { ac_try='test -s conftest$ac_exeext'
8540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); }; }; then
8545 ac_cv_lib_jpeg_jpeg_write_raw_data=yes
8547 echo "$as_me: failed program was:" >&5
8548 sed 's/^/| /' conftest.$ac_ext >&5
8550 ac_cv_lib_jpeg_jpeg_write_raw_data=no
8552 rm -f conftest.err conftest.$ac_objext \
8553 conftest$ac_exeext conftest.$ac_ext
8554 LIBS=$ac_check_lib_save_LIBS
8556 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
8557 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6
8558 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
8559 cat >>confdefs.h <<_ACEOF
8560 #define HAVE_LIBJPEG 1
8570 echo "$as_me:$LINENO: checking for T1_LoadFont in -lt1" >&5
8571 echo $ECHO_N "checking for T1_LoadFont in -lt1... $ECHO_C" >&6
8572 if test "${ac_cv_lib_t1_T1_LoadFont+set}" = set; then
8573 echo $ECHO_N "(cached) $ECHO_C" >&6
8575 ac_check_lib_save_LIBS=$LIBS
8577 cat >conftest.$ac_ext <<_ACEOF
8580 cat confdefs.h >>conftest.$ac_ext
8581 cat >>conftest.$ac_ext <<_ACEOF
8582 /* end confdefs.h. */
8584 /* Override any gcc2 internal prototype to avoid an error. */
8588 /* We use char because int might match the return type of a gcc2
8589 builtin and then its argument prototype would still apply. */
8590 char T1_LoadFont ();
8599 rm -f conftest.$ac_objext conftest$ac_exeext
8600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8601 (eval $ac_link) 2>conftest.er1
8603 grep -v '^ *+' conftest.er1 >conftest.err
8605 cat conftest.err >&5
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); } &&
8608 { ac_try='test -z "$ac_c_werror_flag"
8609 || test ! -s conftest.err'
8610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); }; } &&
8615 { ac_try='test -s conftest$ac_exeext'
8616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); }; }; then
8621 ac_cv_lib_t1_T1_LoadFont=yes
8623 echo "$as_me: failed program was:" >&5
8624 sed 's/^/| /' conftest.$ac_ext >&5
8626 ac_cv_lib_t1_T1_LoadFont=no
8628 rm -f conftest.err conftest.$ac_objext \
8629 conftest$ac_exeext conftest.$ac_ext
8630 LIBS=$ac_check_lib_save_LIBS
8632 echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_LoadFont" >&5
8633 echo "${ECHO_T}$ac_cv_lib_t1_T1_LoadFont" >&6
8634 if test $ac_cv_lib_t1_T1_LoadFont = yes; then
8635 cat >>confdefs.h <<_ACEOF
8636 #define HAVE_LIBT1 1
8647 echo "$as_me:$LINENO: checking for byte order" >&5
8648 echo $ECHO_N "checking for byte order... $ECHO_C" >&6
8649 if test "$cross_compiling" = yes; then
8652 cat >conftest.$ac_ext <<_ACEOF
8655 cat confdefs.h >>conftest.$ac_ext
8656 cat >>conftest.$ac_ext <<_ACEOF
8657 /* end confdefs.h. */
8659 int main (int argc, char *argv[])
8666 rm -f conftest$ac_exeext
8667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8668 (eval $ac_link) 2>&5
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); }; }; then
8679 echo "$as_me: program exited with status $ac_status" >&5
8680 echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8686 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8690 if test "x${CROSSCOMPILE}" = "x1"; then
8691 echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
8692 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6
8693 echo "$as_me:$LINENO: checking target system type" >&5
8694 echo $ECHO_N "checking target system type... $ECHO_C" >&6
8695 if test "${ac_cv_target+set}" = set; then
8696 echo $ECHO_N "(cached) $ECHO_C" >&6
8698 ac_cv_target_alias=$target_alias
8699 test "x$ac_cv_target_alias" = "x" &&
8700 ac_cv_target_alias=$ac_cv_host_alias
8701 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
8702 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
8703 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
8704 { (exit 1); exit 1; }; }
8707 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
8708 echo "${ECHO_T}$ac_cv_target" >&6
8709 target=$ac_cv_target
8710 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
8711 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
8712 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
8715 # The aliases save the names the user supplied, while $host etc.
8716 # will get canonicalized.
8717 test -n "$target_alias" &&
8718 test "$program_prefix$program_suffix$program_transform_name" = \
8720 program_prefix=${target_alias}-
8721 echo "$as_me:$LINENO: checking for byte order, try 2" >&5
8722 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6
8727 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
8734 if test "x${LITTLEENDIAN}" = "x1"; then
8735 echo "$as_me:$LINENO: result: little endian" >&5
8736 echo "${ECHO_T}little endian" >&6
8740 if test "x${BIGENDIAN}" = "x1"; then
8741 echo "$as_me:$LINENO: result: big endian" >&5
8742 echo "${ECHO_T}big endian" >&6
8745 export WORDS_BIGENDIAN
8746 cat >>confdefs.h <<_ACEOF
8747 #define WORDS_BIGENDIAN 1
8751 if test "x${BYTEORDERCHECKOK}" != "x1"; then
8752 echo "$as_me:$LINENO: result: unknown" >&5
8753 echo "${ECHO_T}unknown" >&6
8754 echo Byte order could not determined.
8760 echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
8761 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6
8762 if test "$cross_compiling" = yes; then
8765 cat >conftest.$ac_ext <<_ACEOF
8768 cat confdefs.h >>conftest.$ac_ext
8769 cat >>conftest.$ac_ext <<_ACEOF
8770 /* end confdefs.h. */
8773 int main (int argc, char*argv[])
8775 return system("test `touch config.tmp2`");
8779 rm -f conftest$ac_exeext
8780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8781 (eval $ac_link) 2>&5
8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); }; }; then
8792 echo "$as_me: program exited with status $ac_status" >&5
8793 echo "$as_me: failed program was:" >&5
8794 sed 's/^/| /' conftest.$ac_ext >&5
8797 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8800 if test "x${OK}" = "xOK";then
8801 test -f config.tmp2 || OK=
8804 if test "x${CROSSCOMPILE}" = "x1";then
8807 if test "x${OK}" = "xOK";then
8809 echo "$as_me:$LINENO: result: yes" >&5
8810 echo "${ECHO_T}yes" >&6
8812 export SYSTEM_BACKTICKS
8813 cat >>confdefs.h <<_ACEOF
8814 #define SYSTEM_BACKTICKS 1
8818 echo "$as_me:$LINENO: result: no" >&5
8819 echo "${ECHO_T}no" >&6
8824 test "$program_prefix" != NONE &&
8825 program_transform_name="s,^,$program_prefix,;$program_transform_name"
8826 # Use a double $ so make ignores it.
8827 test "$program_suffix" != NONE &&
8828 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
8829 # Double any \ or $. echo might interpret backslashes.
8830 # By default was `s,x,x', remove it if useless.
8831 cat <<\_ACEOF >conftest.sed
8832 s/[\\$]/&&/g;s/;s,x,x,$//
8834 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
8838 ac_config_headers="$ac_config_headers config.h"
8846 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8847 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8848 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8849 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8851 echo $ECHO_N "(cached) $ECHO_C" >&6
8853 cat >conftest.$ac_ext <<_ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h. */
8859 #include <sys/types.h>
8871 rm -f conftest.$ac_objext
8872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8873 (eval $ac_compile) 2>conftest.er1
8875 grep -v '^ *+' conftest.er1 >conftest.err
8877 cat conftest.err >&5
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); } &&
8880 { ac_try='test -z "$ac_c_werror_flag"
8881 || test ! -s conftest.err'
8882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); }; } &&
8887 { ac_try='test -s conftest.$ac_objext'
8888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); }; }; then
8893 eval "$as_ac_Header=yes"
8895 echo "$as_me: failed program was:" >&5
8896 sed 's/^/| /' conftest.$ac_ext >&5
8898 eval "$as_ac_Header=no"
8900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8903 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8905 cat >>confdefs.h <<_ACEOF
8906 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8909 ac_header_dirent=$ac_hdr; break
8913 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8914 if test $ac_header_dirent = dirent.h; then
8915 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8916 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8917 if test "${ac_cv_search_opendir+set}" = set; then
8918 echo $ECHO_N "(cached) $ECHO_C" >&6
8920 ac_func_search_save_LIBS=$LIBS
8921 ac_cv_search_opendir=no
8922 cat >conftest.$ac_ext <<_ACEOF
8925 cat confdefs.h >>conftest.$ac_ext
8926 cat >>conftest.$ac_ext <<_ACEOF
8927 /* end confdefs.h. */
8929 /* Override any gcc2 internal prototype to avoid an error. */
8933 /* We use char because int might match the return type of a gcc2
8934 builtin and then its argument prototype would still apply. */
8944 rm -f conftest.$ac_objext conftest$ac_exeext
8945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8946 (eval $ac_link) 2>conftest.er1
8948 grep -v '^ *+' conftest.er1 >conftest.err
8950 cat conftest.err >&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); } &&
8953 { ac_try='test -z "$ac_c_werror_flag"
8954 || test ! -s conftest.err'
8955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); }; } &&
8960 { ac_try='test -s conftest$ac_exeext'
8961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); }; }; then
8966 ac_cv_search_opendir="none required"
8968 echo "$as_me: failed program was:" >&5
8969 sed 's/^/| /' conftest.$ac_ext >&5
8972 rm -f conftest.err conftest.$ac_objext \
8973 conftest$ac_exeext conftest.$ac_ext
8974 if test "$ac_cv_search_opendir" = no; then
8975 for ac_lib in dir; do
8976 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8977 cat >conftest.$ac_ext <<_ACEOF
8980 cat confdefs.h >>conftest.$ac_ext
8981 cat >>conftest.$ac_ext <<_ACEOF
8982 /* end confdefs.h. */
8984 /* Override any gcc2 internal prototype to avoid an error. */
8988 /* We use char because int might match the return type of a gcc2
8989 builtin and then its argument prototype would still apply. */
8999 rm -f conftest.$ac_objext conftest$ac_exeext
9000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9001 (eval $ac_link) 2>conftest.er1
9003 grep -v '^ *+' conftest.er1 >conftest.err
9005 cat conftest.err >&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); } &&
9008 { ac_try='test -z "$ac_c_werror_flag"
9009 || test ! -s conftest.err'
9010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); }; } &&
9015 { ac_try='test -s conftest$ac_exeext'
9016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); }; }; then
9021 ac_cv_search_opendir="-l$ac_lib"
9024 echo "$as_me: failed program was:" >&5
9025 sed 's/^/| /' conftest.$ac_ext >&5
9028 rm -f conftest.err conftest.$ac_objext \
9029 conftest$ac_exeext conftest.$ac_ext
9032 LIBS=$ac_func_search_save_LIBS
9034 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9035 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9036 if test "$ac_cv_search_opendir" != no; then
9037 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9042 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9043 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9044 if test "${ac_cv_search_opendir+set}" = set; then
9045 echo $ECHO_N "(cached) $ECHO_C" >&6
9047 ac_func_search_save_LIBS=$LIBS
9048 ac_cv_search_opendir=no
9049 cat >conftest.$ac_ext <<_ACEOF
9052 cat confdefs.h >>conftest.$ac_ext
9053 cat >>conftest.$ac_ext <<_ACEOF
9054 /* end confdefs.h. */
9056 /* Override any gcc2 internal prototype to avoid an error. */
9060 /* We use char because int might match the return type of a gcc2
9061 builtin and then its argument prototype would still apply. */
9071 rm -f conftest.$ac_objext conftest$ac_exeext
9072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9073 (eval $ac_link) 2>conftest.er1
9075 grep -v '^ *+' conftest.er1 >conftest.err
9077 cat conftest.err >&5
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); } &&
9080 { ac_try='test -z "$ac_c_werror_flag"
9081 || test ! -s conftest.err'
9082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); }; } &&
9087 { ac_try='test -s conftest$ac_exeext'
9088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); }; }; then
9093 ac_cv_search_opendir="none required"
9095 echo "$as_me: failed program was:" >&5
9096 sed 's/^/| /' conftest.$ac_ext >&5
9099 rm -f conftest.err conftest.$ac_objext \
9100 conftest$ac_exeext conftest.$ac_ext
9101 if test "$ac_cv_search_opendir" = no; then
9103 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9104 cat >conftest.$ac_ext <<_ACEOF
9107 cat confdefs.h >>conftest.$ac_ext
9108 cat >>conftest.$ac_ext <<_ACEOF
9109 /* end confdefs.h. */
9111 /* Override any gcc2 internal prototype to avoid an error. */
9115 /* We use char because int might match the return type of a gcc2
9116 builtin and then its argument prototype would still apply. */
9126 rm -f conftest.$ac_objext conftest$ac_exeext
9127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9128 (eval $ac_link) 2>conftest.er1
9130 grep -v '^ *+' conftest.er1 >conftest.err
9132 cat conftest.err >&5
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); } &&
9135 { ac_try='test -z "$ac_c_werror_flag"
9136 || test ! -s conftest.err'
9137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); }; } &&
9142 { ac_try='test -s conftest$ac_exeext'
9143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); }; }; then
9148 ac_cv_search_opendir="-l$ac_lib"
9151 echo "$as_me: failed program was:" >&5
9152 sed 's/^/| /' conftest.$ac_ext >&5
9155 rm -f conftest.err conftest.$ac_objext \
9156 conftest$ac_exeext conftest.$ac_ext
9159 LIBS=$ac_func_search_save_LIBS
9161 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9162 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9163 if test "$ac_cv_search_opendir" != no; then
9164 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9170 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9171 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9172 if test "${ac_cv_header_stdc+set}" = set; then
9173 echo $ECHO_N "(cached) $ECHO_C" >&6
9175 cat >conftest.$ac_ext <<_ACEOF
9178 cat confdefs.h >>conftest.$ac_ext
9179 cat >>conftest.$ac_ext <<_ACEOF
9180 /* end confdefs.h. */
9194 rm -f conftest.$ac_objext
9195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9196 (eval $ac_compile) 2>conftest.er1
9198 grep -v '^ *+' conftest.er1 >conftest.err
9200 cat conftest.err >&5
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); } &&
9203 { ac_try='test -z "$ac_c_werror_flag"
9204 || test ! -s conftest.err'
9205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); }; } &&
9210 { ac_try='test -s conftest.$ac_objext'
9211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); }; }; then
9216 ac_cv_header_stdc=yes
9218 echo "$as_me: failed program was:" >&5
9219 sed 's/^/| /' conftest.$ac_ext >&5
9221 ac_cv_header_stdc=no
9223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9225 if test $ac_cv_header_stdc = yes; then
9226 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9227 cat >conftest.$ac_ext <<_ACEOF
9230 cat confdefs.h >>conftest.$ac_ext
9231 cat >>conftest.$ac_ext <<_ACEOF
9232 /* end confdefs.h. */
9236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9237 $EGREP "memchr" >/dev/null 2>&1; then
9240 ac_cv_header_stdc=no
9246 if test $ac_cv_header_stdc = yes; then
9247 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9248 cat >conftest.$ac_ext <<_ACEOF
9251 cat confdefs.h >>conftest.$ac_ext
9252 cat >>conftest.$ac_ext <<_ACEOF
9253 /* end confdefs.h. */
9257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9258 $EGREP "free" >/dev/null 2>&1; then
9261 ac_cv_header_stdc=no
9267 if test $ac_cv_header_stdc = yes; then
9268 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9269 if test "$cross_compiling" = yes; then
9272 cat >conftest.$ac_ext <<_ACEOF
9275 cat confdefs.h >>conftest.$ac_ext
9276 cat >>conftest.$ac_ext <<_ACEOF
9277 /* end confdefs.h. */
9279 #if ((' ' & 0x0FF) == 0x020)
9280 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9281 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9283 # define ISLOWER(c) \
9284 (('a' <= (c) && (c) <= 'i') \
9285 || ('j' <= (c) && (c) <= 'r') \
9286 || ('s' <= (c) && (c) <= 'z'))
9287 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9290 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9295 for (i = 0; i < 256; i++)
9296 if (XOR (islower (i), ISLOWER (i))
9297 || toupper (i) != TOUPPER (i))
9302 rm -f conftest$ac_exeext
9303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9304 (eval $ac_link) 2>&5
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); }; }; then
9315 echo "$as_me: program exited with status $ac_status" >&5
9316 echo "$as_me: failed program was:" >&5
9317 sed 's/^/| /' conftest.$ac_ext >&5
9320 ac_cv_header_stdc=no
9322 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9326 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9327 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9328 if test $ac_cv_header_stdc = yes; then
9330 cat >>confdefs.h <<\_ACEOF
9331 #define STDC_HEADERS 1
9350 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
9352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9354 echo "$as_me:$LINENO: checking for $ac_header" >&5
9355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9357 echo $ECHO_N "(cached) $ECHO_C" >&6
9359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9360 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9362 # Is the header compilable?
9363 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9364 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9365 cat >conftest.$ac_ext <<_ACEOF
9368 cat confdefs.h >>conftest.$ac_ext
9369 cat >>conftest.$ac_ext <<_ACEOF
9370 /* end confdefs.h. */
9371 $ac_includes_default
9372 #include <$ac_header>
9374 rm -f conftest.$ac_objext
9375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9376 (eval $ac_compile) 2>conftest.er1
9378 grep -v '^ *+' conftest.er1 >conftest.err
9380 cat conftest.err >&5
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); } &&
9383 { ac_try='test -z "$ac_c_werror_flag"
9384 || test ! -s conftest.err'
9385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); }; } &&
9390 { ac_try='test -s conftest.$ac_objext'
9391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); }; }; then
9396 ac_header_compiler=yes
9398 echo "$as_me: failed program was:" >&5
9399 sed 's/^/| /' conftest.$ac_ext >&5
9401 ac_header_compiler=no
9403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9404 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9405 echo "${ECHO_T}$ac_header_compiler" >&6
9407 # Is the header present?
9408 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9409 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9410 cat >conftest.$ac_ext <<_ACEOF
9413 cat confdefs.h >>conftest.$ac_ext
9414 cat >>conftest.$ac_ext <<_ACEOF
9415 /* end confdefs.h. */
9416 #include <$ac_header>
9418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9421 grep -v '^ *+' conftest.er1 >conftest.err
9423 cat conftest.err >&5
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); } >/dev/null; then
9426 if test -s conftest.err; then
9427 ac_cpp_err=$ac_c_preproc_warn_flag
9428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9435 if test -z "$ac_cpp_err"; then
9436 ac_header_preproc=yes
9438 echo "$as_me: failed program was:" >&5
9439 sed 's/^/| /' conftest.$ac_ext >&5
9441 ac_header_preproc=no
9443 rm -f conftest.err conftest.$ac_ext
9444 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9445 echo "${ECHO_T}$ac_header_preproc" >&6
9447 # So? What about this header?
9448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9453 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9454 ac_header_preproc=yes
9457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9460 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9461 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9462 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9463 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9464 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9466 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9467 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9468 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9471 ## ------------------------------------------ ##
9472 ## Report this to the AC_PACKAGE_NAME lists. ##
9473 ## ------------------------------------------ ##
9476 sed "s/^/$as_me: WARNING: /" >&2
9479 echo "$as_me:$LINENO: checking for $ac_header" >&5
9480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9482 echo $ECHO_N "(cached) $ECHO_C" >&6
9484 eval "$as_ac_Header=\$ac_header_preproc"
9486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9491 cat >>confdefs.h <<_ACEOF
9492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9500 cat >>confdefs.h <<_ACEOF
9501 #define PACKAGE "$PACKAGE"
9504 cat >>confdefs.h <<_ACEOF
9505 #define VERSION "$VERSION"
9514 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9515 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9516 if test "${ac_cv_c_const+set}" = set; then
9517 echo $ECHO_N "(cached) $ECHO_C" >&6
9519 cat >conftest.$ac_ext <<_ACEOF
9522 cat confdefs.h >>conftest.$ac_ext
9523 cat >>conftest.$ac_ext <<_ACEOF
9524 /* end confdefs.h. */
9529 /* FIXME: Include the comments suggested by Paul. */
9531 /* Ultrix mips cc rejects this. */
9532 typedef int charset[2];
9534 /* SunOS 4.1.1 cc rejects this. */
9535 char const *const *ccp;
9537 /* NEC SVR4.0.2 mips cc rejects this. */
9538 struct point {int x, y;};
9539 static struct point const zero = {0,0};
9540 /* AIX XL C 1.02.0.0 rejects this.
9541 It does not let you subtract one const X* pointer from another in
9542 an arm of an if-expression whose if-part is not a constant
9544 const char *g = "string";
9545 ccp = &g + (g ? g-g : 0);
9546 /* HPUX 7.0 cc rejects these. */
9549 ccp = (char const *const *) p;
9550 { /* SCO 3.2v4 cc rejects this. */
9552 char const *s = 0 ? (char *) 0 : (char const *) 0;
9556 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9558 const int *foo = &x[0];
9561 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9562 typedef const int *iptr;
9566 { /* AIX XL C 1.02.0.0 rejects this saying
9567 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9568 struct s { int j; const int *ap[3]; };
9569 struct s *b; b->j = 5;
9571 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9580 rm -f conftest.$ac_objext
9581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9582 (eval $ac_compile) 2>conftest.er1
9584 grep -v '^ *+' conftest.er1 >conftest.err
9586 cat conftest.err >&5
9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); } &&
9589 { ac_try='test -z "$ac_c_werror_flag"
9590 || test ! -s conftest.err'
9591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); }; } &&
9596 { ac_try='test -s conftest.$ac_objext'
9597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); }; }; then
9604 echo "$as_me: failed program was:" >&5
9605 sed 's/^/| /' conftest.$ac_ext >&5
9609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9611 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9612 echo "${ECHO_T}$ac_cv_c_const" >&6
9613 if test $ac_cv_c_const = no; then
9615 cat >>confdefs.h <<\_ACEOF
9621 echo "$as_me:$LINENO: checking for inline" >&5
9622 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9623 if test "${ac_cv_c_inline+set}" = set; then
9624 echo $ECHO_N "(cached) $ECHO_C" >&6
9627 for ac_kw in inline __inline__ __inline; do
9628 cat >conftest.$ac_ext <<_ACEOF
9631 cat confdefs.h >>conftest.$ac_ext
9632 cat >>conftest.$ac_ext <<_ACEOF
9633 /* end confdefs.h. */
9636 static $ac_kw foo_t static_foo () {return 0; }
9637 $ac_kw foo_t foo () {return 0; }
9641 rm -f conftest.$ac_objext
9642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9643 (eval $ac_compile) 2>conftest.er1
9645 grep -v '^ *+' conftest.er1 >conftest.err
9647 cat conftest.err >&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); } &&
9650 { ac_try='test -z "$ac_c_werror_flag"
9651 || test ! -s conftest.err'
9652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); }; } &&
9657 { ac_try='test -s conftest.$ac_objext'
9658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); }; }; then
9663 ac_cv_c_inline=$ac_kw; break
9665 echo "$as_me: failed program was:" >&5
9666 sed 's/^/| /' conftest.$ac_ext >&5
9669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9673 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9674 echo "${ECHO_T}$ac_cv_c_inline" >&6
9677 case $ac_cv_c_inline in
9680 case $ac_cv_c_inline in
9682 *) ac_val=$ac_cv_c_inline;;
9684 cat >>confdefs.h <<_ACEOF
9686 #define inline $ac_val
9692 echo "$as_me:$LINENO: checking for off_t" >&5
9693 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
9694 if test "${ac_cv_type_off_t+set}" = set; then
9695 echo $ECHO_N "(cached) $ECHO_C" >&6
9697 cat >conftest.$ac_ext <<_ACEOF
9700 cat confdefs.h >>conftest.$ac_ext
9701 cat >>conftest.$ac_ext <<_ACEOF
9702 /* end confdefs.h. */
9703 $ac_includes_default
9715 rm -f conftest.$ac_objext
9716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9717 (eval $ac_compile) 2>conftest.er1
9719 grep -v '^ *+' conftest.er1 >conftest.err
9721 cat conftest.err >&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); } &&
9724 { ac_try='test -z "$ac_c_werror_flag"
9725 || test ! -s conftest.err'
9726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); }; } &&
9731 { ac_try='test -s conftest.$ac_objext'
9732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); }; }; then
9737 ac_cv_type_off_t=yes
9739 echo "$as_me: failed program was:" >&5
9740 sed 's/^/| /' conftest.$ac_ext >&5
9744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9746 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9747 echo "${ECHO_T}$ac_cv_type_off_t" >&6
9748 if test $ac_cv_type_off_t = yes; then
9752 cat >>confdefs.h <<_ACEOF
9758 echo "$as_me:$LINENO: checking for size_t" >&5
9759 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9760 if test "${ac_cv_type_size_t+set}" = set; then
9761 echo $ECHO_N "(cached) $ECHO_C" >&6
9763 cat >conftest.$ac_ext <<_ACEOF
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h. */
9769 $ac_includes_default
9775 if (sizeof (size_t))
9781 rm -f conftest.$ac_objext
9782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9783 (eval $ac_compile) 2>conftest.er1
9785 grep -v '^ *+' conftest.er1 >conftest.err
9787 cat conftest.err >&5
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); } &&
9790 { ac_try='test -z "$ac_c_werror_flag"
9791 || test ! -s conftest.err'
9792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); }; } &&
9797 { ac_try='test -s conftest.$ac_objext'
9798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; }; then
9803 ac_cv_type_size_t=yes
9805 echo "$as_me: failed program was:" >&5
9806 sed 's/^/| /' conftest.$ac_ext >&5
9808 ac_cv_type_size_t=no
9810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9812 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9813 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9814 if test $ac_cv_type_size_t = yes; then
9818 cat >>confdefs.h <<_ACEOF
9819 #define size_t unsigned
9824 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9825 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9826 if test "${ac_cv_struct_tm+set}" = set; then
9827 echo $ECHO_N "(cached) $ECHO_C" >&6
9829 cat >conftest.$ac_ext <<_ACEOF
9832 cat confdefs.h >>conftest.$ac_ext
9833 cat >>conftest.$ac_ext <<_ACEOF
9834 /* end confdefs.h. */
9835 #include <sys/types.h>
9841 struct tm *tp; tp->tm_sec;
9846 rm -f conftest.$ac_objext
9847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9848 (eval $ac_compile) 2>conftest.er1
9850 grep -v '^ *+' conftest.er1 >conftest.err
9852 cat conftest.err >&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); } &&
9855 { ac_try='test -z "$ac_c_werror_flag"
9856 || test ! -s conftest.err'
9857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); }; } &&
9862 { ac_try='test -s conftest.$ac_objext'
9863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); }; }; then
9868 ac_cv_struct_tm=time.h
9870 echo "$as_me: failed program was:" >&5
9871 sed 's/^/| /' conftest.$ac_ext >&5
9873 ac_cv_struct_tm=sys/time.h
9875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9877 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9878 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9879 if test $ac_cv_struct_tm = sys/time.h; then
9881 cat >>confdefs.h <<\_ACEOF
9882 #define TM_IN_SYS_TIME 1
9887 echo "$as_me:$LINENO: checking for boolean" >&5
9888 echo $ECHO_N "checking for boolean... $ECHO_C" >&6
9889 if test "${ac_cv_type_boolean+set}" = set; then
9890 echo $ECHO_N "(cached) $ECHO_C" >&6
9892 cat >conftest.$ac_ext <<_ACEOF
9895 cat confdefs.h >>conftest.$ac_ext
9896 cat >>conftest.$ac_ext <<_ACEOF
9897 /* end confdefs.h. */
9898 $ac_includes_default
9904 if (sizeof (boolean))
9910 rm -f conftest.$ac_objext
9911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9912 (eval $ac_compile) 2>conftest.er1
9914 grep -v '^ *+' conftest.er1 >conftest.err
9916 cat conftest.err >&5
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); } &&
9919 { ac_try='test -z "$ac_c_werror_flag"
9920 || test ! -s conftest.err'
9921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; } &&
9926 { ac_try='test -s conftest.$ac_objext'
9927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); }; }; then
9932 ac_cv_type_boolean=yes
9934 echo "$as_me: failed program was:" >&5
9935 sed 's/^/| /' conftest.$ac_ext >&5
9937 ac_cv_type_boolean=no
9939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9941 echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
9942 echo "${ECHO_T}$ac_cv_type_boolean" >&6
9943 if test $ac_cv_type_boolean = yes; then
9947 cat >>confdefs.h <<_ACEOF
9964 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
9966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9967 echo "$as_me:$LINENO: checking for $ac_func" >&5
9968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9969 if eval "test \"\${$as_ac_var+set}\" = set"; then
9970 echo $ECHO_N "(cached) $ECHO_C" >&6
9972 cat >conftest.$ac_ext <<_ACEOF
9975 cat confdefs.h >>conftest.$ac_ext
9976 cat >>conftest.$ac_ext <<_ACEOF
9977 /* end confdefs.h. */
9978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9980 #define $ac_func innocuous_$ac_func
9982 /* System header to define __stub macros and hopefully few prototypes,
9983 which can conflict with char $ac_func (); below.
9984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9985 <limits.h> exists even on freestanding compilers. */
9988 # include <limits.h>
9990 # include <assert.h>
9995 /* Override any gcc2 internal prototype to avoid an error. */
10000 /* We use char because int might match the return type of a gcc2
10001 builtin and then its argument prototype would still apply. */
10003 /* The GNU C library defines this for functions which it implements
10004 to always fail with ENOSYS. Some functions are actually named
10005 something starting with __ and the normal name is an alias. */
10006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10009 char (*f) () = $ac_func;
10018 return f != $ac_func;
10023 rm -f conftest.$ac_objext conftest$ac_exeext
10024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10025 (eval $ac_link) 2>conftest.er1
10027 grep -v '^ *+' conftest.er1 >conftest.err
10029 cat conftest.err >&5
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); } &&
10032 { ac_try='test -z "$ac_c_werror_flag"
10033 || test ! -s conftest.err'
10034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035 (eval $ac_try) 2>&5
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); }; } &&
10039 { ac_try='test -s conftest$ac_exeext'
10040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041 (eval $ac_try) 2>&5
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; }; then
10045 eval "$as_ac_var=yes"
10047 echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.$ac_ext >&5
10050 eval "$as_ac_var=no"
10052 rm -f conftest.err conftest.$ac_objext \
10053 conftest$ac_exeext conftest.$ac_ext
10055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10056 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10057 if test `eval echo '${'$as_ac_var'}'` = yes; then
10058 cat >>confdefs.h <<_ACEOF
10059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10066 # ------------------------------------------------------------------
10069 for ac_prog in freetype-config
10071 # Extract the first word of "$ac_prog", so it can be a program name with args.
10072 set dummy $ac_prog; ac_word=$2
10073 echo "$as_me:$LINENO: checking for $ac_word" >&5
10074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10075 if test "${ac_cv_prog_FREETYPE_CONFIG+set}" = set; then
10076 echo $ECHO_N "(cached) $ECHO_C" >&6
10078 if test -n "$FREETYPE_CONFIG"; then
10079 ac_cv_prog_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test.
10081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10082 for as_dir in $PATH
10085 test -z "$as_dir" && as_dir=.
10086 for ac_exec_ext in '' $ac_executable_extensions; do
10087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10088 ac_cv_prog_FREETYPE_CONFIG="$ac_prog"
10089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10097 FREETYPE_CONFIG=$ac_cv_prog_FREETYPE_CONFIG
10098 if test -n "$FREETYPE_CONFIG"; then
10099 echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
10100 echo "${ECHO_T}$FREETYPE_CONFIG" >&6
10102 echo "$as_me:$LINENO: result: no" >&5
10103 echo "${ECHO_T}no" >&6
10106 test -n "$FREETYPE_CONFIG" && break
10109 OLDCPPFLAGS="${CPPFLAGS}"
10111 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
10112 CPPFLAGS="$CPPFLAGS "`freetype-config --cflags`
10113 else if test -d /usr/include/freetype2; then
10114 CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
10115 else if test -d /usr/local/include/freetype2; then
10116 CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
10121 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
10122 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
10123 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
10124 echo $ECHO_N "(cached) $ECHO_C" >&6
10126 ac_check_lib_save_LIBS=$LIBS
10127 LIBS="-lfreetype $LIBS"
10128 cat >conftest.$ac_ext <<_ACEOF
10131 cat confdefs.h >>conftest.$ac_ext
10132 cat >>conftest.$ac_ext <<_ACEOF
10133 /* end confdefs.h. */
10135 /* Override any gcc2 internal prototype to avoid an error. */
10139 /* We use char because int might match the return type of a gcc2
10140 builtin and then its argument prototype would still apply. */
10141 char FT_Init_FreeType ();
10145 FT_Init_FreeType ();
10150 rm -f conftest.$ac_objext conftest$ac_exeext
10151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10152 (eval $ac_link) 2>conftest.er1
10154 grep -v '^ *+' conftest.er1 >conftest.err
10156 cat conftest.err >&5
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); } &&
10159 { ac_try='test -z "$ac_c_werror_flag"
10160 || test ! -s conftest.err'
10161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10162 (eval $ac_try) 2>&5
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); }; } &&
10166 { ac_try='test -s conftest$ac_exeext'
10167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10168 (eval $ac_try) 2>&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); }; }; then
10172 ac_cv_lib_freetype_FT_Init_FreeType=yes
10174 echo "$as_me: failed program was:" >&5
10175 sed 's/^/| /' conftest.$ac_ext >&5
10177 ac_cv_lib_freetype_FT_Init_FreeType=no
10179 rm -f conftest.err conftest.$ac_objext \
10180 conftest$ac_exeext conftest.$ac_ext
10181 LIBS=$ac_check_lib_save_LIBS
10183 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
10184 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10185 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
10186 HAVE_LIB_FREETYPE=1
10190 for ac_header in freetype/freetype.h
10192 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10194 echo "$as_me:$LINENO: checking for $ac_header" >&5
10195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10197 echo $ECHO_N "(cached) $ECHO_C" >&6
10199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10202 # Is the header compilable?
10203 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10204 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10205 cat >conftest.$ac_ext <<_ACEOF
10208 cat confdefs.h >>conftest.$ac_ext
10209 cat >>conftest.$ac_ext <<_ACEOF
10210 /* end confdefs.h. */
10211 $ac_includes_default
10212 #include <$ac_header>
10214 rm -f conftest.$ac_objext
10215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10216 (eval $ac_compile) 2>conftest.er1
10218 grep -v '^ *+' conftest.er1 >conftest.err
10220 cat conftest.err >&5
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); } &&
10223 { ac_try='test -z "$ac_c_werror_flag"
10224 || test ! -s conftest.err'
10225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10226 (eval $ac_try) 2>&5
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); }; } &&
10230 { ac_try='test -s conftest.$ac_objext'
10231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10232 (eval $ac_try) 2>&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); }; }; then
10236 ac_header_compiler=yes
10238 echo "$as_me: failed program was:" >&5
10239 sed 's/^/| /' conftest.$ac_ext >&5
10241 ac_header_compiler=no
10243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10244 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10245 echo "${ECHO_T}$ac_header_compiler" >&6
10247 # Is the header present?
10248 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10249 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10250 cat >conftest.$ac_ext <<_ACEOF
10253 cat confdefs.h >>conftest.$ac_ext
10254 cat >>conftest.$ac_ext <<_ACEOF
10255 /* end confdefs.h. */
10256 #include <$ac_header>
10258 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10261 grep -v '^ *+' conftest.er1 >conftest.err
10263 cat conftest.err >&5
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); } >/dev/null; then
10266 if test -s conftest.err; then
10267 ac_cpp_err=$ac_c_preproc_warn_flag
10268 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10275 if test -z "$ac_cpp_err"; then
10276 ac_header_preproc=yes
10278 echo "$as_me: failed program was:" >&5
10279 sed 's/^/| /' conftest.$ac_ext >&5
10281 ac_header_preproc=no
10283 rm -f conftest.err conftest.$ac_ext
10284 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10285 echo "${ECHO_T}$ac_header_preproc" >&6
10287 # So? What about this header?
10288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10293 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10294 ac_header_preproc=yes
10297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10298 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10300 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10301 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10302 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10303 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10304 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10307 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10308 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10311 ## ------------------------------------------ ##
10312 ## Report this to the AC_PACKAGE_NAME lists. ##
10313 ## ------------------------------------------ ##
10316 sed "s/^/$as_me: WARNING: /" >&2
10319 echo "$as_me:$LINENO: checking for $ac_header" >&5
10320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10322 echo $ECHO_N "(cached) $ECHO_C" >&6
10324 eval "$as_ac_Header=\$ac_header_preproc"
10326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10331 cat >>confdefs.h <<_ACEOF
10332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10334 HAVE_FREETYPE_FREETYPE_H=1
10340 for ac_header in ft2build.h
10342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10344 echo "$as_me:$LINENO: checking for $ac_header" >&5
10345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10347 echo $ECHO_N "(cached) $ECHO_C" >&6
10349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10352 # Is the header compilable?
10353 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10355 cat >conftest.$ac_ext <<_ACEOF
10358 cat confdefs.h >>conftest.$ac_ext
10359 cat >>conftest.$ac_ext <<_ACEOF
10360 /* end confdefs.h. */
10361 $ac_includes_default
10362 #include <$ac_header>
10364 rm -f conftest.$ac_objext
10365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10366 (eval $ac_compile) 2>conftest.er1
10368 grep -v '^ *+' conftest.er1 >conftest.err
10370 cat conftest.err >&5
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); } &&
10373 { ac_try='test -z "$ac_c_werror_flag"
10374 || test ! -s conftest.err'
10375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10376 (eval $ac_try) 2>&5
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); }; } &&
10380 { ac_try='test -s conftest.$ac_objext'
10381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10382 (eval $ac_try) 2>&5
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); }; }; then
10386 ac_header_compiler=yes
10388 echo "$as_me: failed program was:" >&5
10389 sed 's/^/| /' conftest.$ac_ext >&5
10391 ac_header_compiler=no
10393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10394 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10395 echo "${ECHO_T}$ac_header_compiler" >&6
10397 # Is the header present?
10398 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10399 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10400 cat >conftest.$ac_ext <<_ACEOF
10403 cat confdefs.h >>conftest.$ac_ext
10404 cat >>conftest.$ac_ext <<_ACEOF
10405 /* end confdefs.h. */
10406 #include <$ac_header>
10408 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10409 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10411 grep -v '^ *+' conftest.er1 >conftest.err
10413 cat conftest.err >&5
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); } >/dev/null; then
10416 if test -s conftest.err; then
10417 ac_cpp_err=$ac_c_preproc_warn_flag
10418 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10425 if test -z "$ac_cpp_err"; then
10426 ac_header_preproc=yes
10428 echo "$as_me: failed program was:" >&5
10429 sed 's/^/| /' conftest.$ac_ext >&5
10431 ac_header_preproc=no
10433 rm -f conftest.err conftest.$ac_ext
10434 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10435 echo "${ECHO_T}$ac_header_preproc" >&6
10437 # So? What about this header?
10438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10440 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10441 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10443 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10444 ac_header_preproc=yes
10447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10450 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10451 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10452 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10453 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10454 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10457 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10458 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10461 ## ------------------------------------------ ##
10462 ## Report this to the AC_PACKAGE_NAME lists. ##
10463 ## ------------------------------------------ ##
10466 sed "s/^/$as_me: WARNING: /" >&2
10469 echo "$as_me:$LINENO: checking for $ac_header" >&5
10470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10472 echo $ECHO_N "(cached) $ECHO_C" >&6
10474 eval "$as_ac_Header=\$ac_header_preproc"
10476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10481 cat >>confdefs.h <<_ACEOF
10482 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10490 if test "x${HAVE_LIB_FREETYPE}" '!=' "x";then
10491 if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
10494 if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
10499 if test "x${HAVE_FREETYPE}" = "x1"; then
10500 if test "x{$FREETYPE_CONFIG}" '!=' "x"; then
10501 LIBS="$LIBS "`freetype-config --libs`
10503 LIBS="$LIBS -lfreetype"
10506 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
10507 HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
10510 echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
10511 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6
10513 cat > conftest.c << EOF
10514 $HAVE_FT2BUILD_H_DEFINE
10516 #ifdef HAVE_FT2BUILD_H
10517 #include <ft2build.h>
10518 #include FT_FREETYPE_H
10519 #include FT_GLYPH_H
10520 #include FT_SIZES_H
10521 #include FT_SFNT_NAMES_H
10522 #include FT_TRUETYPE_IDS_H
10523 #include FT_OUTLINE_H
10525 #include <freetype/freetype.h>
10526 #include <freetype/ftglyph.h>
10527 #include <freetype/ftsizes.h>
10528 #include <freetype/ftsnames.h>
10529 #include <freetype/ttnameid.h>
10530 #include <freetype/ftoutln.h>
10535 FT_Library ftlibrary;
10547 FT_Init_FreeType(&ftlibrary);
10548 FT_New_Face(ftlibrary, "filename", 0, &face);
10549 i = face->num_glyphs - 1;
10550 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
10551 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
10552 FT_Get_Postscript_Name(face);
10553 FT_Get_Char_Index(face, 33);
10554 FT_Get_First_Char(face, &i);
10555 FT_Get_Next_Char(face, 33, &i);
10556 if(FT_HAS_GLYPH_NAMES(face)) {
10557 FT_Get_Glyph_Name(face, 33, name, 127);
10559 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
10560 FT_Get_Glyph(face->glyph, &glyph);
10561 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
10562 FT_Done_Glyph(glyph);
10563 FT_Done_Face(face);
10564 FT_Done_FreeType(ftlibrary);
10569 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
10570 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10571 echo "$as_me:$LINENO: result: yes" >&5
10572 echo "${ECHO_T}yes" >&6
10573 cat >>confdefs.h <<_ACEOF
10574 #define HAVE_FREETYPE 1
10577 cat >>confdefs.h <<_ACEOF
10578 #define USE_FREETYPE 1
10582 echo "configure: failed program was:" >&5
10585 echo "$as_me:$LINENO: result: no" >&5
10586 echo "${ECHO_T}no" >&6
10591 # if the above didn't work out, reset all changes to the compiler variables.
10592 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
10593 CPPFLAGS=$OLDCPPFLAGS
10599 OLDCPPFLAGS="${CPPFLAGS}"
10602 if test -d /usr/include/fontconfig; then
10603 CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
10606 echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
10607 echo $ECHO_N "checking for FcInit in -lfontconfig... $ECHO_C" >&6
10608 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
10609 echo $ECHO_N "(cached) $ECHO_C" >&6
10611 ac_check_lib_save_LIBS=$LIBS
10612 LIBS="-lfontconfig $LIBS"
10613 cat >conftest.$ac_ext <<_ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h. */
10620 /* Override any gcc2 internal prototype to avoid an error. */
10624 /* We use char because int might match the return type of a gcc2
10625 builtin and then its argument prototype would still apply. */
10635 rm -f conftest.$ac_objext conftest$ac_exeext
10636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10637 (eval $ac_link) 2>conftest.er1
10639 grep -v '^ *+' conftest.er1 >conftest.err
10641 cat conftest.err >&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); } &&
10644 { ac_try='test -z "$ac_c_werror_flag"
10645 || test ! -s conftest.err'
10646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10647 (eval $ac_try) 2>&5
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); }; } &&
10651 { ac_try='test -s conftest$ac_exeext'
10652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10653 (eval $ac_try) 2>&5
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); }; }; then
10657 ac_cv_lib_fontconfig_FcInit=yes
10659 echo "$as_me: failed program was:" >&5
10660 sed 's/^/| /' conftest.$ac_ext >&5
10662 ac_cv_lib_fontconfig_FcInit=no
10664 rm -f conftest.err conftest.$ac_objext \
10665 conftest$ac_exeext conftest.$ac_ext
10666 LIBS=$ac_check_lib_save_LIBS
10668 echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
10669 echo "${ECHO_T}$ac_cv_lib_fontconfig_FcInit" >&6
10670 if test $ac_cv_lib_fontconfig_FcInit = yes; then
10671 HAVE_LIB_FONTCONFIG=1
10675 for ac_header in fontconfig.h
10677 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10679 echo "$as_me:$LINENO: checking for $ac_header" >&5
10680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10682 echo $ECHO_N "(cached) $ECHO_C" >&6
10684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10687 # Is the header compilable?
10688 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10689 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10690 cat >conftest.$ac_ext <<_ACEOF
10693 cat confdefs.h >>conftest.$ac_ext
10694 cat >>conftest.$ac_ext <<_ACEOF
10695 /* end confdefs.h. */
10696 $ac_includes_default
10697 #include <$ac_header>
10699 rm -f conftest.$ac_objext
10700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10701 (eval $ac_compile) 2>conftest.er1
10703 grep -v '^ *+' conftest.er1 >conftest.err
10705 cat conftest.err >&5
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); } &&
10708 { ac_try='test -z "$ac_c_werror_flag"
10709 || test ! -s conftest.err'
10710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711 (eval $ac_try) 2>&5
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); }; } &&
10715 { ac_try='test -s conftest.$ac_objext'
10716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10717 (eval $ac_try) 2>&5
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); }; }; then
10721 ac_header_compiler=yes
10723 echo "$as_me: failed program was:" >&5
10724 sed 's/^/| /' conftest.$ac_ext >&5
10726 ac_header_compiler=no
10728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10729 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10730 echo "${ECHO_T}$ac_header_compiler" >&6
10732 # Is the header present?
10733 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10734 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10735 cat >conftest.$ac_ext <<_ACEOF
10738 cat confdefs.h >>conftest.$ac_ext
10739 cat >>conftest.$ac_ext <<_ACEOF
10740 /* end confdefs.h. */
10741 #include <$ac_header>
10743 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10744 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10746 grep -v '^ *+' conftest.er1 >conftest.err
10748 cat conftest.err >&5
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); } >/dev/null; then
10751 if test -s conftest.err; then
10752 ac_cpp_err=$ac_c_preproc_warn_flag
10753 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10760 if test -z "$ac_cpp_err"; then
10761 ac_header_preproc=yes
10763 echo "$as_me: failed program was:" >&5
10764 sed 's/^/| /' conftest.$ac_ext >&5
10766 ac_header_preproc=no
10768 rm -f conftest.err conftest.$ac_ext
10769 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10770 echo "${ECHO_T}$ac_header_preproc" >&6
10772 # So? What about this header?
10773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10775 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10776 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10778 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10779 ac_header_preproc=yes
10782 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10783 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10784 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10785 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10786 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10787 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10788 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10789 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10792 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10793 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10796 ## ------------------------------------------ ##
10797 ## Report this to the AC_PACKAGE_NAME lists. ##
10798 ## ------------------------------------------ ##
10801 sed "s/^/$as_me: WARNING: /" >&2
10804 echo "$as_me:$LINENO: checking for $ac_header" >&5
10805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10807 echo $ECHO_N "(cached) $ECHO_C" >&6
10809 eval "$as_ac_Header=\$ac_header_preproc"
10811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10812 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10816 cat >>confdefs.h <<_ACEOF
10817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10819 HAVE_FONTCONFIG_H=1
10825 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
10826 if test "x${HAVE_FONTCONFIG_H}" != "x";then
10831 if test "x${HAVE_FONTCONFIG}" = "x1"; then
10832 LIBS="$LIBS -lfontconfig"
10833 echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
10834 echo $ECHO_N "checking whether we can compile the fontconfig test program... $ECHO_C" >&6
10836 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
10837 #move freetype library to the end of libraries, otherwise fontconfig
10839 LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
10842 cat > conftest.c << EOF
10843 #include <fontconfig.h>
10847 FcPattern *pattern, *match;
10851 pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
10852 FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
10853 FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
10854 FcConfigSubstitute(0, pattern, FcMatchPattern);
10855 FcDefaultSubstitute(pattern);
10856 match = FcFontMatch(0, pattern, &result);
10857 FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
10858 FcPatternPrint(pattern);
10859 FcPatternDestroy(pattern);
10860 FcPatternDestroy(match);
10865 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
10866 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10867 echo "$as_me:$LINENO: result: yes" >&5
10868 echo "${ECHO_T}yes" >&6
10869 cat >>confdefs.h <<_ACEOF
10870 #define HAVE_FONTCONFIG 1
10874 echo "configure: failed program was:" >&5
10877 echo "$as_me:$LINENO: result: no" >&5
10878 echo "${ECHO_T}no" >&6
10883 # if the above didn't work out, reset all changes to the compiler variables.
10884 if test "x${HAVE_FREETYPE}" "!=" "x1"; then
10885 CPPFLAGS=$OLDCPPFLAGS
10890 # ------------------------------------------------------------------
10894 if test "x${DISABLE_LAME}" = "xtrue"; then
10895 echo "*" Disabling lame support...
10897 # old lame code at lib/lame
10898 if test -f lib/lame/Makefile.in; then
10899 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"
10900 lame_makefile="lib/lame/Makefile"
10901 CPPFLAGS="$CPPFLAGS -Ilame"
10902 cat >>confdefs.h <<_ACEOF
10903 #define HAVE_LAME 1
10907 if test -d /usr/include/lame; then
10908 CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
10910 if test -d /usr/local/include/lame; then
10911 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
10915 echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
10916 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6
10917 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
10918 echo $ECHO_N "(cached) $ECHO_C" >&6
10920 ac_check_lib_save_LIBS=$LIBS
10921 LIBS="-lmp3lame $LIBS"
10922 cat >conftest.$ac_ext <<_ACEOF
10925 cat confdefs.h >>conftest.$ac_ext
10926 cat >>conftest.$ac_ext <<_ACEOF
10927 /* end confdefs.h. */
10929 /* Override any gcc2 internal prototype to avoid an error. */
10933 /* We use char because int might match the return type of a gcc2
10934 builtin and then its argument prototype would still apply. */
10944 rm -f conftest.$ac_objext conftest$ac_exeext
10945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10946 (eval $ac_link) 2>conftest.er1
10948 grep -v '^ *+' conftest.er1 >conftest.err
10950 cat conftest.err >&5
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); } &&
10953 { ac_try='test -z "$ac_c_werror_flag"
10954 || test ! -s conftest.err'
10955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10956 (eval $ac_try) 2>&5
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); }; } &&
10960 { ac_try='test -s conftest$ac_exeext'
10961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10962 (eval $ac_try) 2>&5
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); }; }; then
10966 ac_cv_lib_mp3lame_lame_init=yes
10968 echo "$as_me: failed program was:" >&5
10969 sed 's/^/| /' conftest.$ac_ext >&5
10971 ac_cv_lib_mp3lame_lame_init=no
10973 rm -f conftest.err conftest.$ac_objext \
10974 conftest$ac_exeext conftest.$ac_ext
10975 LIBS=$ac_check_lib_save_LIBS
10977 echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
10978 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6
10979 if test $ac_cv_lib_mp3lame_lame_init = yes; then
10980 cat >>confdefs.h <<_ACEOF
10981 #define HAVE_LIBMP3LAME 1
10984 LIBS="-lmp3lame $LIBS"
10991 for ac_header in lame.h
10993 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10995 echo "$as_me:$LINENO: checking for $ac_header" >&5
10996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10998 echo $ECHO_N "(cached) $ECHO_C" >&6
11000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11003 # Is the header compilable?
11004 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11005 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11006 cat >conftest.$ac_ext <<_ACEOF
11009 cat confdefs.h >>conftest.$ac_ext
11010 cat >>conftest.$ac_ext <<_ACEOF
11011 /* end confdefs.h. */
11012 $ac_includes_default
11013 #include <$ac_header>
11015 rm -f conftest.$ac_objext
11016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11017 (eval $ac_compile) 2>conftest.er1
11019 grep -v '^ *+' conftest.er1 >conftest.err
11021 cat conftest.err >&5
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); } &&
11024 { ac_try='test -z "$ac_c_werror_flag"
11025 || test ! -s conftest.err'
11026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11027 (eval $ac_try) 2>&5
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }; } &&
11031 { ac_try='test -s conftest.$ac_objext'
11032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11033 (eval $ac_try) 2>&5
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); }; }; then
11037 ac_header_compiler=yes
11039 echo "$as_me: failed program was:" >&5
11040 sed 's/^/| /' conftest.$ac_ext >&5
11042 ac_header_compiler=no
11044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11045 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11046 echo "${ECHO_T}$ac_header_compiler" >&6
11048 # Is the header present?
11049 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11050 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11051 cat >conftest.$ac_ext <<_ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h. */
11057 #include <$ac_header>
11059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11062 grep -v '^ *+' conftest.er1 >conftest.err
11064 cat conftest.err >&5
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); } >/dev/null; then
11067 if test -s conftest.err; then
11068 ac_cpp_err=$ac_c_preproc_warn_flag
11069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11076 if test -z "$ac_cpp_err"; then
11077 ac_header_preproc=yes
11079 echo "$as_me: failed program was:" >&5
11080 sed 's/^/| /' conftest.$ac_ext >&5
11082 ac_header_preproc=no
11084 rm -f conftest.err conftest.$ac_ext
11085 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11086 echo "${ECHO_T}$ac_header_preproc" >&6
11088 # So? What about this header?
11089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11091 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11092 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11094 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11095 ac_header_preproc=yes
11098 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11099 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11100 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11101 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11102 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11103 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11104 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11105 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11107 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11108 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11109 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11112 ## ------------------------------------------ ##
11113 ## Report this to the AC_PACKAGE_NAME lists. ##
11114 ## ------------------------------------------ ##
11117 sed "s/^/$as_me: WARNING: /" >&2
11120 echo "$as_me:$LINENO: checking for $ac_header" >&5
11121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11123 echo $ECHO_N "(cached) $ECHO_C" >&6
11125 eval "$as_ac_Header=\$ac_header_preproc"
11127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11132 cat >>confdefs.h <<_ACEOF
11133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11140 if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$ac_cv_header_lame_h" "!=" "x";then
11141 cat >>confdefs.h <<_ACEOF
11142 #define HAVE_LAME 1
11150 # ------------------------------------------------------------------
11154 for ac_prog in avifile-config
11156 # Extract the first word of "$ac_prog", so it can be a program name with args.
11157 set dummy $ac_prog; ac_word=$2
11158 echo "$as_me:$LINENO: checking for $ac_word" >&5
11159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11160 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
11161 echo $ECHO_N "(cached) $ECHO_C" >&6
11163 if test -n "$AVIFILE_CONFIG"; then
11164 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
11166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11167 for as_dir in $PATH
11170 test -z "$as_dir" && as_dir=.
11171 for ac_exec_ext in '' $ac_executable_extensions; do
11172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11173 ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
11174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11182 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
11183 if test -n "$AVIFILE_CONFIG"; then
11184 echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
11185 echo "${ECHO_T}$AVIFILE_CONFIG" >&6
11187 echo "$as_me:$LINENO: result: no" >&5
11188 echo "${ECHO_T}no" >&6
11191 test -n "$AVIFILE_CONFIG" && break
11195 if test "x$AVIFILE_CONFIG" '!=' "x";then
11196 OLDCPPFLAGS="$CPPFLAGS"
11197 # temporarily add avifile paths to CPPFLAGS...
11198 CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
11201 for ac_header in avifile/version.h version.h
11203 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11205 echo "$as_me:$LINENO: checking for $ac_header" >&5
11206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11208 echo $ECHO_N "(cached) $ECHO_C" >&6
11210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11211 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11213 # Is the header compilable?
11214 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11215 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11216 cat >conftest.$ac_ext <<_ACEOF
11219 cat confdefs.h >>conftest.$ac_ext
11220 cat >>conftest.$ac_ext <<_ACEOF
11221 /* end confdefs.h. */
11222 $ac_includes_default
11223 #include <$ac_header>
11225 rm -f conftest.$ac_objext
11226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11227 (eval $ac_compile) 2>conftest.er1
11229 grep -v '^ *+' conftest.er1 >conftest.err
11231 cat conftest.err >&5
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); } &&
11234 { ac_try='test -z "$ac_c_werror_flag"
11235 || test ! -s conftest.err'
11236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11237 (eval $ac_try) 2>&5
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); }; } &&
11241 { ac_try='test -s conftest.$ac_objext'
11242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11243 (eval $ac_try) 2>&5
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); }; }; then
11247 ac_header_compiler=yes
11249 echo "$as_me: failed program was:" >&5
11250 sed 's/^/| /' conftest.$ac_ext >&5
11252 ac_header_compiler=no
11254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11255 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11256 echo "${ECHO_T}$ac_header_compiler" >&6
11258 # Is the header present?
11259 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11260 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11261 cat >conftest.$ac_ext <<_ACEOF
11264 cat confdefs.h >>conftest.$ac_ext
11265 cat >>conftest.$ac_ext <<_ACEOF
11266 /* end confdefs.h. */
11267 #include <$ac_header>
11269 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11270 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11272 grep -v '^ *+' conftest.er1 >conftest.err
11274 cat conftest.err >&5
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); } >/dev/null; then
11277 if test -s conftest.err; then
11278 ac_cpp_err=$ac_c_preproc_warn_flag
11279 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11286 if test -z "$ac_cpp_err"; then
11287 ac_header_preproc=yes
11289 echo "$as_me: failed program was:" >&5
11290 sed 's/^/| /' conftest.$ac_ext >&5
11292 ac_header_preproc=no
11294 rm -f conftest.err conftest.$ac_ext
11295 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11296 echo "${ECHO_T}$ac_header_preproc" >&6
11298 # So? What about this header?
11299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11301 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11302 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11304 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11305 ac_header_preproc=yes
11308 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11309 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11310 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11311 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11312 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11313 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11314 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11315 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11317 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11318 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11319 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11322 ## ------------------------------------------ ##
11323 ## Report this to the AC_PACKAGE_NAME lists. ##
11324 ## ------------------------------------------ ##
11327 sed "s/^/$as_me: WARNING: /" >&2
11330 echo "$as_me:$LINENO: checking for $ac_header" >&5
11331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11333 echo $ECHO_N "(cached) $ECHO_C" >&6
11335 eval "$as_ac_Header=\$ac_header_preproc"
11337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11338 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11342 cat >>confdefs.h <<_ACEOF
11343 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11351 CPPFLAGS="$OLDCPPFLAGS"
11354 echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
11355 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6
11357 if test "x${ac_cv_header_version_h}" '=' "xyes";then
11358 HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
11360 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
11361 HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
11364 cat > conftest.cpp << EOF
11366 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
11367 // so we have to introduce them this way
11368 $HAVE_VERSION_H_DEFINE
11369 $HAVE_AVIFILE_VERSION_H_DEFINE
11371 #ifdef HAVE_VERSION_H
11372 #include <version.h>
11374 #ifdef HAVE_AVIFILE_VERSION_H
11375 #include <avifile/version.h>
11378 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
11379 #include <avifile.h>
11380 #include <aviplay.h>
11381 #include <fourcc.h>
11382 #include <creators.h>
11383 #include <StreamInfo.h>
11386 #include <avifile.h>
11387 #include <aviplay.h>
11388 #include <aviutil.h>
11389 #define Width width
11390 #define Height height
11397 IAviReadFile* player;
11398 IAviReadStream* astream;
11399 IAviReadStream* vstream;
11400 player = CreateIAviReadFile(0);
11401 astream = player->GetStream(0, AviStream::Audio);
11402 vstream = player->GetStream(0, AviStream::Video);
11403 vstream -> StartStreaming();
11404 astream -> StartStreaming();
11406 MainAVIHeader head;
11407 player->GetFileHeader(&head);
11408 head.dwMicroSecPerFrame;
11409 head.dwTotalFrames;
11413 head.dwMicroSecPerFrame;
11414 astream->GetEndPos(),
11415 astream->GetEndTime());
11416 player->StreamCount();
11418 StreamInfo*audioinfo;
11419 StreamInfo*videoinfo;
11420 audioinfo = astream->GetStreamInfo();
11421 videoinfo = vstream->GetStreamInfo();
11422 videoinfo->GetVideoWidth();
11423 videoinfo->GetVideoHeight();
11424 audioinfo->GetAudioSamplesPerSec();
11425 videoinfo->GetFps();
11427 CImage*img = vstream->GetFrame();
11434 astream->GetAudioFormatInfo(&wave,0);
11436 astream->ReadFrames(0,0,0,a,b);
11438 int main (int argc, char*argv)
11444 if test "x$AVIFILE_CONFIG" '!=' "x";then
11445 AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
11446 AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
11447 avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
11448 if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
11449 echo "$as_me:$LINENO: result: yes" >&5
11450 echo "${ECHO_T}yes" >&6
11453 cat >>confdefs.h <<_ACEOF
11454 #define AVIFILE true
11458 echo "configure: failed program was:" >&5
11459 cat conftest.cpp >&5
11460 echo "$as_me:$LINENO: result: no" >&5
11461 echo "${ECHO_T}no" >&6
11464 echo "$as_me:$LINENO: result: no" >&5
11465 echo "${ECHO_T}no" >&6
11469 if test "x${AVIFILE}" = "xtrue"; then
11470 VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
11471 VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
11472 cat >>confdefs.h <<_ACEOF
11473 #define HAVE_AVIFILE 1
11478 if test "x${WIN32}" != "x"; then
11479 #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
11480 #if test "x${AVIFIL32}" != "x"; then
11481 # VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
11483 VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
11489 # ------------------------------------------------------------------
11491 if test "x${UNCOMPRESS}" = "xgzip"; then
11492 cat >>confdefs.h <<_ACEOF
11499 # ------------------------------------------------------------------
11502 echo "$as_me:$LINENO: checking for Python.h and PIL" >&5
11503 echo $ECHO_N "checking for Python.h and PIL... $ECHO_C" >&6
11505 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
11508 if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
11509 echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
11511 # iterate through version 2.2 to 2.4
11514 if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.$v/Python.h";then
11516 PYTHON_LIB="-lpython$PY_VERSION /usr/lib/python$PY_VERSION/site-packages/PIL/_imaging.so"
11517 PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
11520 if test -f "/Library/Python/2.$v/PIL/_imaging.so" \
11521 -a "/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
11523 #PYTHON_LIB="-lpython$PY_VERSION /Library/Python/2.$v/PIL/_imaging.so"
11524 PYTHON_LIB="-framework Python /Library/Python/2.$v/PIL/_imaging.so"
11525 PYTHON_INCLUDES="-I/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
11530 if test "x$PY_VERSION" "!=" "x"; then
11531 echo "$as_me:$LINENO: result: $PY_VERSION" >&5
11532 echo "${ECHO_T}$PY_VERSION" >&6
11533 export PYTHON_INCLUDES PYTHON_LIB
11536 echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
11537 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6
11539 cat > conftest.c << EOF
11540 #include <Python.h>
11541 #include <Imaging.h>
11546 ret = Py_Main(0, 0);
11547 int x; // check also for gcc 2.95.x incompatibilities
11551 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
11552 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11553 echo "$as_me:$LINENO: result: yes" >&5
11554 echo "${ECHO_T}yes" >&6
11557 echo "configure: failed program was:" >&5
11559 echo "$as_me:$LINENO: result: no" >&5
11560 echo "${ECHO_T}no" >&6
11564 echo "$as_me:$LINENO: result: nope" >&5
11565 echo "${ECHO_T}nope" >&6
11569 if test "x$PYTHON_OK" '!=' "xyes";then
11570 echo all install uninstall clean: > lib/python/Makefile
11571 # fail silently- the most users won't have any need for the
11572 # python interface anyway
11574 pythonrfxswf="lib/python/Makefile"
11577 # ------------------------------------------------------------------
11579 echo "$as_me:$LINENO: checking for missing libraries" >&5
11580 echo $ECHO_N "checking for missing libraries... $ECHO_C" >&6
11582 if test "x$ZLIBMISSING" = "xtrue";then
11583 MISSINGLIBS="${MISSINGLIBS} zlib"
11584 DISABLEPNG2SWF=true
11587 if test "x$JPEGLIBMISSING" = "xtrue";then
11588 MISSINGLIBS="${MISSINGLIBS} jpeglib"
11589 DISABLEPDF2SWF=true
11590 DISABLEJPEG2SWF=true
11593 if test "x$T1LIBMISSING" = "xtrue";then
11594 MISSINGLIBS="${MISSINGLIBS} t1lib"
11597 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
11598 DISABLEPDF2SWF=true;
11599 DISABLEJPEG2SWF=true;
11600 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
11603 if test "x$HAVE_FREETYPE" '!=' "x1"; then
11604 DISABLEPDF2SWF=true;
11605 MISSINGLIBS="${MISSINGLIBS} freetype"
11608 if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
11609 MISSINGLIBS="${MISSINGLIBS} t1lib.h"
11611 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
11612 DISABLEPNG2SWF=true;
11613 MISSINGLIBS="${MISSINGLIBS} zlib.h"
11616 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
11617 MISSINGLIBS="${MISSINGLIBS} avifile"
11621 echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
11622 echo "${ECHO_T}${MISSINGLIBS}" >&6
11624 # ------------------------------------------------------------------
11626 if test "x${MISSINGLIBS}" '!=' "x"; then
11627 echo "***************************************************"
11628 echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
11631 avi2swf="avi2swf/Makefile"
11632 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
11633 echo "* Disabling avi2swf tool..."
11634 echo all install uninstall clean: > avi2swf/Makefile
11638 pdf2swf_makefile="pdf2swf/Makefile pdf2swf/xpdf/Makefile"
11639 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
11640 echo "* Disabling pdf2swf tool..."
11641 rm -f pdf2swf/Makefile
11642 echo all install uninstall clean: > pdf2swf/Makefile
11643 pdf2swf_makefile=""
11646 if test "x${ZLIBMISSING}" = "xtrue"; then
11648 echo "* Warning! Without zlib, you will not be able to read"
11649 echo "* or write compressed Flash MX files!"
11652 JPEG2SWF='jpeg2swf$(E)'
11653 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
11654 echo "* Disabling jpeg2swf tool..."
11660 PNG2SWF='png2swf$(E)'
11661 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
11662 echo "* Disabling png2swf tool..."
11668 if test "x${MISSINGLIBS}" '!=' "x"; then
11669 if test "x${PARTIAL}" '=' "x"; then
11670 echo "* (never mind)"
11672 echo "***************************************************"
11675 # ------------------------------------------------------------------
11677 if test -f "release.in"; then release_in="./release"; fi
11678 FILES="$release_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile ${pythonrfxswf} ${lame_makefile}"
11680 ac_config_files="$ac_config_files ${FILES}"
11682 cat >confcache <<\_ACEOF
11683 # This file is a shell script that caches the results of configure
11684 # tests run on this system so they can be shared between configure
11685 # scripts and configure runs, see configure's option --config-cache.
11686 # It is not useful on other systems. If it contains results you don't
11687 # want to keep, you may remove or edit it.
11689 # config.status only pays attention to the cache file if you give it
11690 # the --recheck option to rerun configure.
11692 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11693 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11694 # following values.
11698 # The following way of writing the cache mishandles newlines in values,
11699 # but we know of no workaround that is simple, portable, and efficient.
11700 # So, don't put newlines in cache variables' values.
11701 # Ultrix sh set writes to stderr and can't be redirected directly,
11702 # and sets the high bit in the cache file unless we assign to the vars.
11705 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11707 # `set' does not quote correctly, so add quotes (double-quote
11708 # substitution turns \\\\ into \\, and sed turns \\ into \).
11711 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11714 # `set' quotes correctly as required by POSIX, so do not add quotes.
11716 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11723 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11725 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11727 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11728 if test -w $cache_file; then
11729 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11730 cat confcache >$cache_file
11732 echo "not updating unwritable cache $cache_file"
11737 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11738 # Let make expand exec_prefix.
11739 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11741 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11742 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11743 # trailing colons and then remove the whole line if VPATH becomes empty
11744 # (actually we leave an empty line to preserve line numbers).
11745 if test "x$srcdir" = x.; then
11746 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11747 s/:*\$(srcdir):*/:/;
11748 s/:*\${srcdir}:*/:/;
11750 s/^\([^=]*=[ ]*\):*/\1/;
11756 DEFS=-DHAVE_CONFIG_H
11760 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11761 # 1. Remove the extension, and $U if already installed.
11762 ac_i=`echo "$ac_i" |
11763 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11765 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11766 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11768 LIBOBJS=$ac_libobjs
11770 LTLIBOBJS=$ac_ltlibobjs
11774 : ${CONFIG_STATUS=./config.status}
11775 ac_clean_files_save=$ac_clean_files
11776 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11777 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11778 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11779 cat >$CONFIG_STATUS <<_ACEOF
11781 # Generated by $as_me.
11782 # Run this file to recreate the current configuration.
11783 # Compiler output produced by configure, useful for debugging
11784 # configure, is in config.log if it exists.
11787 ac_cs_recheck=false
11789 SHELL=\${CONFIG_SHELL-$SHELL}
11792 cat >>$CONFIG_STATUS <<\_ACEOF
11793 ## --------------------- ##
11794 ## M4sh Initialization. ##
11795 ## --------------------- ##
11797 # Be Bourne compatible
11798 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11801 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11802 # is contrary to our usage. Disable this feature.
11803 alias -g '${1+"$@"}'='"$@"'
11804 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11807 DUALCASE=1; export DUALCASE # for MKS sh
11809 # Support unset when possible.
11810 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11817 # Work around bugs in pre-3.0 UWIN ksh.
11818 $as_unset ENV MAIL MAILPATH
11825 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11826 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11827 LC_TELEPHONE LC_TIME
11829 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11830 eval $as_var=C; export $as_var
11836 # Required to use basename.
11837 if expr a : '\(a\)' >/dev/null 2>&1; then
11843 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11844 as_basename=basename
11850 # Name of the executable.
11851 as_me=`$as_basename "$0" ||
11852 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11853 X"$0" : 'X\(//\)$' \| \
11854 X"$0" : 'X\(/\)$' \| \
11855 . : '\(.\)' 2>/dev/null ||
11857 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11858 /^X\/\(\/\/\)$/{ s//\1/; q; }
11859 /^X\/\(\/\).*/{ s//\1/; q; }
11863 # PATH needs CR, and LINENO needs CR and PATH.
11864 # Avoid depending upon Character Ranges.
11865 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11866 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11867 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11868 as_cr_digits='0123456789'
11869 as_cr_alnum=$as_cr_Letters$as_cr_digits
11871 # The user is always right.
11872 if test "${PATH_SEPARATOR+set}" != set; then
11873 echo "#! /bin/sh" >conf$$.sh
11874 echo "exit 0" >>conf$$.sh
11876 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11885 as_lineno_1=$LINENO
11886 as_lineno_2=$LINENO
11887 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11888 test "x$as_lineno_1" != "x$as_lineno_2" &&
11889 test "x$as_lineno_3" = "x$as_lineno_2" || {
11890 # Find who we are. Look in the path if we contain no path at all
11893 *[\\/]* ) as_myself=$0 ;;
11894 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11895 for as_dir in $PATH
11898 test -z "$as_dir" && as_dir=.
11899 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11904 # We did not find ourselves, most probably we were run as `sh COMMAND'
11905 # in which case we are not to be found in the path.
11906 if test "x$as_myself" = x; then
11909 if test ! -f "$as_myself"; then
11910 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11911 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11912 { (exit 1); exit 1; }; }
11914 case $CONFIG_SHELL in
11916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11917 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11920 test -z "$as_dir" && as_dir=.
11921 for as_base in sh bash ksh sh5; do
11924 if ("$as_dir/$as_base" -c '
11925 as_lineno_1=$LINENO
11926 as_lineno_2=$LINENO
11927 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11928 test "x$as_lineno_1" != "x$as_lineno_2" &&
11929 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11930 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11931 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11932 CONFIG_SHELL=$as_dir/$as_base
11933 export CONFIG_SHELL
11934 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11942 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11943 # uniformly replaced by the line number. The first 'sed' inserts a
11944 # line-number line before each line; the second 'sed' does the real
11945 # work. The second script uses 'N' to pair each line-number line
11946 # with the numbered line, and appends trailing '-' during
11947 # substitution so that $LINENO is not a special case at line end.
11948 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11949 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11950 sed '=' <$as_myself |
11955 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11958 s,^['$as_cr_digits']*\n,,
11959 ' >$as_me.lineno &&
11960 chmod +x $as_me.lineno ||
11961 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11962 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11963 { (exit 1); exit 1; }; }
11965 # Don't try to exec as it changes $[0], causing all sort of problems
11966 # (the dirname of $[0] is not the place where we might find the
11967 # original and so on. Autoconf is especially sensible to this).
11969 # Exit status is that of the last command.
11974 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11975 *c*,-n*) ECHO_N= ECHO_C='
11977 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11978 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11981 if expr a : '\(a\)' >/dev/null 2>&1; then
11987 rm -f conf$$ conf$$.exe conf$$.file
11989 if ln -s conf$$.file conf$$ 2>/dev/null; then
11990 # We could just check for DJGPP; but this test a) works b) is more generic
11991 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11992 if test -f conf$$.exe; then
11993 # Don't use ln at all; we don't have any links
11998 elif ln conf$$.file conf$$ 2>/dev/null; then
12003 rm -f conf$$ conf$$.exe conf$$.file
12005 if mkdir -p . 2>/dev/null; then
12008 test -d ./-p && rmdir ./-p
12012 as_executable_p="test -f"
12014 # Sed expression to map a string onto a valid CPP name.
12015 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12017 # Sed expression to map a string onto a valid variable name.
12018 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12022 # We need space, tab and new line, in precisely that order.
12032 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12033 # report actual input values of CONFIG_FILES etc. instead of their
12034 # values after options handling. Logging --version etc. is OK.
12038 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12039 ## Running $as_me. ##
12044 This file was extended by $as_me, which was
12045 generated by GNU Autoconf 2.58. Invocation command line was
12047 CONFIG_FILES = $CONFIG_FILES
12048 CONFIG_HEADERS = $CONFIG_HEADERS
12049 CONFIG_LINKS = $CONFIG_LINKS
12050 CONFIG_COMMANDS = $CONFIG_COMMANDS
12054 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12058 # Files that config.status was made for.
12059 if test -n "$ac_config_files"; then
12060 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12063 if test -n "$ac_config_headers"; then
12064 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12067 if test -n "$ac_config_links"; then
12068 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12071 if test -n "$ac_config_commands"; then
12072 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12075 cat >>$CONFIG_STATUS <<\_ACEOF
12078 \`$as_me' instantiates files from templates according to the
12079 current configuration.
12081 Usage: $0 [OPTIONS] [FILE]...
12083 -h, --help print this help, then exit
12084 -V, --version print version number, then exit
12085 -q, --quiet do not print progress messages
12086 -d, --debug don't remove temporary files
12087 --recheck update $as_me by reconfiguring in the same conditions
12088 --file=FILE[:TEMPLATE]
12089 instantiate the configuration file FILE
12090 --header=FILE[:TEMPLATE]
12091 instantiate the configuration header FILE
12093 Configuration files:
12096 Configuration headers:
12099 Report bugs to <bug-autoconf@gnu.org>."
12102 cat >>$CONFIG_STATUS <<_ACEOF
12105 configured by $0, generated by GNU Autoconf 2.58,
12106 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12108 Copyright (C) 2003 Free Software Foundation, Inc.
12109 This config.status script is free software; the Free Software Foundation
12110 gives unlimited permission to copy, distribute and modify it."
12115 cat >>$CONFIG_STATUS <<\_ACEOF
12116 # If no file are specified by the user, then we need to provide default
12117 # value. By we need to know if files were specified by the user.
12123 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12124 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12132 *) # This is not an option, so the user has probably given explicit
12135 ac_need_defaults=false;;
12139 # Handling of the options.
12141 cat >>$CONFIG_STATUS <<\_ACEOF
12142 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12144 --version | --vers* | -V )
12145 echo "$ac_cs_version"; exit 0 ;;
12147 # Conflict between --help and --header
12148 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12149 Try \`$0 --help' for more information." >&5
12150 echo "$as_me: error: ambiguous option: $1
12151 Try \`$0 --help' for more information." >&2;}
12152 { (exit 1); exit 1; }; };;
12153 --help | --hel | -h )
12154 echo "$ac_cs_usage"; exit 0 ;;
12155 --debug | --d* | -d )
12157 --file | --fil | --fi | --f )
12159 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12160 ac_need_defaults=false;;
12161 --header | --heade | --head | --hea )
12163 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12164 ac_need_defaults=false;;
12165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12166 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12169 # This is an error.
12170 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12171 Try \`$0 --help' for more information." >&5
12172 echo "$as_me: error: unrecognized option: $1
12173 Try \`$0 --help' for more information." >&2;}
12174 { (exit 1); exit 1; }; } ;;
12176 *) ac_config_targets="$ac_config_targets $1" ;;
12182 ac_configure_extra_args=
12184 if $ac_cs_silent; then
12186 ac_configure_extra_args="$ac_configure_extra_args --silent"
12190 cat >>$CONFIG_STATUS <<_ACEOF
12191 if \$ac_cs_recheck; then
12192 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12193 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12202 cat >>$CONFIG_STATUS <<\_ACEOF
12203 for ac_config_target in $ac_config_targets
12205 case "$ac_config_target" in
12206 # Handling of arguments.
12207 "${FILES}" ) CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
12208 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12209 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12210 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12211 { (exit 1); exit 1; }; };;
12215 # If the user did not use the arguments to specify the items to instantiate,
12216 # then the envvar interface is used. Set only those that are not.
12217 # We use the long form for the default assignment because of an extremely
12218 # bizarre bug on SunOS 4.1.3.
12219 if $ac_need_defaults; then
12220 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12221 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12224 # Have a temporary directory for convenience. Make it in the build tree
12225 # simply because there is no reason to put it here, and in addition,
12226 # creating and moving files from /tmp can sometimes cause problems.
12227 # Create a temporary directory, and hook for its removal unless debugging.
12230 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12231 trap '{ (exit 1); exit 1; }' 1 2 13 15
12234 # Create a (secure) tmp directory for tmp files.
12237 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12238 test -n "$tmp" && test -d "$tmp"
12241 tmp=./confstat$$-$RANDOM
12242 (umask 077 && mkdir $tmp)
12245 echo "$me: cannot create a temporary directory in ." >&2
12246 { (exit 1); exit 1; }
12251 cat >>$CONFIG_STATUS <<_ACEOF
12254 # CONFIG_FILES section.
12257 # No need to generate the scripts if there are no CONFIG_FILES.
12258 # This happens for instance when ./config.status config.h
12259 if test -n "\$CONFIG_FILES"; then
12260 # Protect against being on the right side of a sed subst in config.status.
12261 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12262 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12263 s,@SHELL@,$SHELL,;t t
12264 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12265 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12266 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12267 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12268 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12269 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12270 s,@exec_prefix@,$exec_prefix,;t t
12271 s,@prefix@,$prefix,;t t
12272 s,@program_transform_name@,$program_transform_name,;t t
12273 s,@bindir@,$bindir,;t t
12274 s,@sbindir@,$sbindir,;t t
12275 s,@libexecdir@,$libexecdir,;t t
12276 s,@datadir@,$datadir,;t t
12277 s,@sysconfdir@,$sysconfdir,;t t
12278 s,@sharedstatedir@,$sharedstatedir,;t t
12279 s,@localstatedir@,$localstatedir,;t t
12280 s,@libdir@,$libdir,;t t
12281 s,@includedir@,$includedir,;t t
12282 s,@oldincludedir@,$oldincludedir,;t t
12283 s,@infodir@,$infodir,;t t
12284 s,@mandir@,$mandir,;t t
12285 s,@build_alias@,$build_alias,;t t
12286 s,@host_alias@,$host_alias,;t t
12287 s,@target_alias@,$target_alias,;t t
12288 s,@DEFS@,$DEFS,;t t
12289 s,@ECHO_C@,$ECHO_C,;t t
12290 s,@ECHO_N@,$ECHO_N,;t t
12291 s,@ECHO_T@,$ECHO_T,;t t
12292 s,@LIBS@,$LIBS,;t t
12293 s,@build@,$build,;t t
12294 s,@build_cpu@,$build_cpu,;t t
12295 s,@build_vendor@,$build_vendor,;t t
12296 s,@build_os@,$build_os,;t t
12297 s,@host@,$host,;t t
12298 s,@host_cpu@,$host_cpu,;t t
12299 s,@host_vendor@,$host_vendor,;t t
12300 s,@host_os@,$host_os,;t t
12301 s,@SHARED@,$SHARED,;t t
12303 s,@CFLAGS@,$CFLAGS,;t t
12304 s,@LDFLAGS@,$LDFLAGS,;t t
12305 s,@CPPFLAGS@,$CPPFLAGS,;t t
12306 s,@ac_ct_CC@,$ac_ct_CC,;t t
12307 s,@EXEEXT@,$EXEEXT,;t t
12308 s,@OBJEXT@,$OBJEXT,;t t
12310 s,@CXXFLAGS@,$CXXFLAGS,;t t
12311 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12313 s,@RANLIB@,$RANLIB,;t t
12314 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12315 s,@SET_MAKE@,$SET_MAKE,;t t
12316 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12317 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12318 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12319 s,@LN_S@,$LN_S,;t t
12320 s,@ECHO@,$ECHO,;t t
12321 s,@STRIP@,$STRIP,;t t
12322 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12323 s,@EGREP@,$EGREP,;t t
12324 s,@LIBTOOL@,$LIBTOOL,;t t
12325 s,@UNCOMPRESS@,$UNCOMPRESS,;t t
12327 s,@SLEXT@,$SLEXT,;t t
12328 s,@target@,$target,;t t
12329 s,@target_cpu@,$target_cpu,;t t
12330 s,@target_vendor@,$target_vendor,;t t
12331 s,@target_os@,$target_os,;t t
12332 s,@WORDS_BIGENDIAN@,$WORDS_BIGENDIAN,;t t
12333 s,@SYSTEM_BACKTICKS@,$SYSTEM_BACKTICKS,;t t
12334 s,@PACKAGE@,$PACKAGE,;t t
12335 s,@VERSION@,$VERSION,;t t
12336 s,@HAVE_UNISTD_H@,$HAVE_UNISTD_H,;t t
12337 s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t
12338 s,@lame_objects@,$lame_objects,;t t
12339 s,@AVIFILE_CONFIG@,$AVIFILE_CONFIG,;t t
12340 s,@VIDEO_LIBS@,$VIDEO_LIBS,;t t
12341 s,@VIDEO_CFLAGS@,$VIDEO_CFLAGS,;t t
12342 s,@USE_GZIP@,$USE_GZIP,;t t
12343 s,@PYTHON_LIB@,$PYTHON_LIB,;t t
12344 s,@PYTHON_INCLUDES@,$PYTHON_INCLUDES,;t t
12345 s,@JPEG2SWF@,$JPEG2SWF,;t t
12346 s,@PNG2SWF@,$PNG2SWF,;t t
12347 s,@LIBOBJS@,$LIBOBJS,;t t
12348 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12353 cat >>$CONFIG_STATUS <<\_ACEOF
12354 # Split the substitutions into bite-sized pieces for seds with
12355 # small command number limits, like on Digital OSF/1 and HP-UX.
12356 ac_max_sed_lines=48
12357 ac_sed_frag=1 # Number of current file.
12358 ac_beg=1 # First line for current file.
12359 ac_end=$ac_max_sed_lines # Line after last line for current file.
12362 while $ac_more_lines; do
12363 if test $ac_beg -gt 1; then
12364 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12366 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12368 if test ! -s $tmp/subs.frag; then
12369 ac_more_lines=false
12371 # The purpose of the label and of the branching condition is to
12372 # speed up the sed processing (if there are no `@' at all, there
12373 # is no need to browse any of the substitutions).
12374 # These are the two extra sed commands mentioned above.
12376 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12377 if test -z "$ac_sed_cmds"; then
12378 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12380 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12382 ac_sed_frag=`expr $ac_sed_frag + 1`
12384 ac_end=`expr $ac_end + $ac_max_sed_lines`
12387 if test -z "$ac_sed_cmds"; then
12390 fi # test -n "$CONFIG_FILES"
12393 cat >>$CONFIG_STATUS <<\_ACEOF
12394 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12395 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12397 - | *:- | *:-:* ) # input from stdin
12399 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12400 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12401 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12402 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12403 * ) ac_file_in=$ac_file.in ;;
12406 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12407 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12408 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12409 X"$ac_file" : 'X\(//\)[^/]' \| \
12410 X"$ac_file" : 'X\(//\)$' \| \
12411 X"$ac_file" : 'X\(/\)' \| \
12412 . : '\(.\)' 2>/dev/null ||
12414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12415 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12416 /^X\(\/\/\)$/{ s//\1/; q; }
12417 /^X\(\/\).*/{ s//\1/; q; }
12419 { if $as_mkdir_p; then
12424 while test ! -d "$as_dir"; do
12425 as_dirs="$as_dir $as_dirs"
12426 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12427 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12428 X"$as_dir" : 'X\(//\)[^/]' \| \
12429 X"$as_dir" : 'X\(//\)$' \| \
12430 X"$as_dir" : 'X\(/\)' \| \
12431 . : '\(.\)' 2>/dev/null ||
12433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12434 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12435 /^X\(\/\/\)$/{ s//\1/; q; }
12436 /^X\(\/\).*/{ s//\1/; q; }
12439 test ! -n "$as_dirs" || mkdir $as_dirs
12440 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12441 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12442 { (exit 1); exit 1; }; }; }
12446 if test "$ac_dir" != .; then
12447 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12448 # A "../" for each directory in $ac_dir_suffix.
12449 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12451 ac_dir_suffix= ac_top_builddir=
12455 .) # No --srcdir option. We are building in place.
12457 if test -z "$ac_top_builddir"; then
12460 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12462 [\\/]* | ?:[\\/]* ) # Absolute path.
12463 ac_srcdir=$srcdir$ac_dir_suffix;
12464 ac_top_srcdir=$srcdir ;;
12465 *) # Relative path.
12466 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12467 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12470 .) ac_abs_builddir=$ac_builddir;;
12472 case $ac_builddir in
12473 .) ac_abs_builddir="$ac_dir";;
12474 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
12475 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
12479 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12481 case ${ac_top_builddir}. in
12482 .) ac_abs_top_builddir="$ac_dir";;
12483 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12484 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
12488 .) ac_abs_srcdir=$ac_srcdir;;
12491 .) ac_abs_srcdir="$ac_dir";;
12492 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12493 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
12497 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12499 case $ac_top_srcdir in
12500 .) ac_abs_top_srcdir="$ac_dir";;
12501 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12502 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
12508 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12509 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12512 if test x"$ac_file" != x-; then
12513 { echo "$as_me:$LINENO: creating $ac_file" >&5
12514 echo "$as_me: creating $ac_file" >&6;}
12517 # Let's still pretend it is `configure' which instantiates (i.e., don't
12518 # use $as_me), people would be surprised to read:
12519 # /* config.h. Generated by config.status. */
12520 if test x"$ac_file" = x-; then
12523 configure_input="$ac_file. "
12525 configure_input=$configure_input"Generated from `echo $ac_file_in |
12526 sed 's,.*/,,'` by configure."
12528 # First look for the input files in the build tree, otherwise in the
12530 ac_file_inputs=`IFS=:
12531 for f in $ac_file_in; do
12533 -) echo $tmp/stdin ;;
12535 # Absolute (can't be DOS-style, as IFS=:)
12536 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12537 echo "$as_me: error: cannot find input file: $f" >&2;}
12538 { (exit 1); exit 1; }; }
12541 if test -f "$f"; then
12544 elif test -f "$srcdir/$f"; then
12549 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12550 echo "$as_me: error: cannot find input file: $f" >&2;}
12551 { (exit 1); exit 1; }; }
12554 done` || { (exit 1); exit 1; }
12556 cat >>$CONFIG_STATUS <<_ACEOF
12560 cat >>$CONFIG_STATUS <<\_ACEOF
12562 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12563 s,@configure_input@,$configure_input,;t t
12564 s,@srcdir@,$ac_srcdir,;t t
12565 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12566 s,@top_srcdir@,$ac_top_srcdir,;t t
12567 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12568 s,@builddir@,$ac_builddir,;t t
12569 s,@abs_builddir@,$ac_abs_builddir,;t t
12570 s,@top_builddir@,$ac_top_builddir,;t t
12571 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12572 s,@INSTALL@,$ac_INSTALL,;t t
12573 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12575 if test x"$ac_file" != x-; then
12576 mv $tmp/out $ac_file
12584 cat >>$CONFIG_STATUS <<\_ACEOF
12587 # CONFIG_HEADER section.
12590 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12591 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12593 # ac_d sets the value in "#define NAME VALUE" lines.
12594 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12595 ac_dB='[ ].*$,\1#\2'
12598 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12599 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12600 ac_uB='$,\1#\2define\3'
12604 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12605 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12607 - | *:- | *:-:* ) # input from stdin
12609 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12610 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12611 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12612 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12613 * ) ac_file_in=$ac_file.in ;;
12616 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12617 echo "$as_me: creating $ac_file" >&6;}
12619 # First look for the input files in the build tree, otherwise in the
12621 ac_file_inputs=`IFS=:
12622 for f in $ac_file_in; do
12624 -) echo $tmp/stdin ;;
12626 # Absolute (can't be DOS-style, as IFS=:)
12627 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12628 echo "$as_me: error: cannot find input file: $f" >&2;}
12629 { (exit 1); exit 1; }; }
12630 # Do quote $f, to prevent DOS paths from being IFS'd.
12633 if test -f "$f"; then
12636 elif test -f "$srcdir/$f"; then
12641 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12642 echo "$as_me: error: cannot find input file: $f" >&2;}
12643 { (exit 1); exit 1; }; }
12646 done` || { (exit 1); exit 1; }
12647 # Remove the trailing spaces.
12648 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12652 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12653 # `conftest.undefs', that substitutes the proper values into
12654 # config.h.in to produce config.h. The first handles `#define'
12655 # templates, and the second `#undef' templates.
12656 # And first: Protect against being on the right side of a sed subst in
12657 # config.status. Protect against being in an unquoted here document
12658 # in config.status.
12659 rm -f conftest.defines conftest.undefs
12660 # Using a here document instead of a string reduces the quoting nightmare.
12661 # Putting comments in sed scripts is not portable.
12663 # `end' is used to avoid that the second main sed command (meant for
12664 # 0-ary CPP macros) applies to n-ary macro definitions.
12665 # See the Autoconf documentation for `clear'.
12666 cat >confdef2sed.sed <<\_ACEOF
12671 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12673 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12676 # If some macros were called several times there might be several times
12677 # the same #defines, which is useless. Nevertheless, we may not want to
12678 # sort them, since we want the *last* AC-DEFINE to be honored.
12679 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12680 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12681 rm -f confdef2sed.sed
12683 # This sed command replaces #undef with comments. This is necessary, for
12684 # example, in the case of _POSIX_SOURCE, which is predefined and required
12685 # on some systems where configure will not decide to define it.
12686 cat >>conftest.undefs <<\_ACEOF
12687 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12690 # Break up conftest.defines because some shells have a limit on the size
12691 # of here documents, and old seds have small limits too (100 cmds).
12692 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12693 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12694 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12695 echo ' :' >>$CONFIG_STATUS
12696 rm -f conftest.tail
12697 while grep . conftest.defines >/dev/null
12699 # Write a limited-size here document to $tmp/defines.sed.
12700 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12701 # Speed up: don't consider the non `#define' lines.
12702 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12703 # Work around the forget-to-reset-the-flag bug.
12704 echo 't clr' >>$CONFIG_STATUS
12705 echo ': clr' >>$CONFIG_STATUS
12706 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12708 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12710 mv $tmp/out $tmp/in
12712 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12713 rm -f conftest.defines
12714 mv conftest.tail conftest.defines
12716 rm -f conftest.defines
12717 echo ' fi # grep' >>$CONFIG_STATUS
12718 echo >>$CONFIG_STATUS
12720 # Break up conftest.undefs because some shells have a limit on the size
12721 # of here documents, and old seds have small limits too (100 cmds).
12722 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12723 rm -f conftest.tail
12724 while grep . conftest.undefs >/dev/null
12726 # Write a limited-size here document to $tmp/undefs.sed.
12727 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12728 # Speed up: don't consider the non `#undef'
12729 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12730 # Work around the forget-to-reset-the-flag bug.
12731 echo 't clr' >>$CONFIG_STATUS
12732 echo ': clr' >>$CONFIG_STATUS
12733 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12735 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12737 mv $tmp/out $tmp/in
12739 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12740 rm -f conftest.undefs
12741 mv conftest.tail conftest.undefs
12743 rm -f conftest.undefs
12745 cat >>$CONFIG_STATUS <<\_ACEOF
12746 # Let's still pretend it is `configure' which instantiates (i.e., don't
12747 # use $as_me), people would be surprised to read:
12748 # /* config.h. Generated by config.status. */
12749 if test x"$ac_file" = x-; then
12750 echo "/* Generated by configure. */" >$tmp/config.h
12752 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12754 cat $tmp/in >>$tmp/config.h
12756 if test x"$ac_file" != x-; then
12757 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12758 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12759 echo "$as_me: $ac_file is unchanged" >&6;}
12761 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12762 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12763 X"$ac_file" : 'X\(//\)[^/]' \| \
12764 X"$ac_file" : 'X\(//\)$' \| \
12765 X"$ac_file" : 'X\(/\)' \| \
12766 . : '\(.\)' 2>/dev/null ||
12768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12769 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12770 /^X\(\/\/\)$/{ s//\1/; q; }
12771 /^X\(\/\).*/{ s//\1/; q; }
12773 { if $as_mkdir_p; then
12778 while test ! -d "$as_dir"; do
12779 as_dirs="$as_dir $as_dirs"
12780 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12781 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12782 X"$as_dir" : 'X\(//\)[^/]' \| \
12783 X"$as_dir" : 'X\(//\)$' \| \
12784 X"$as_dir" : 'X\(/\)' \| \
12785 . : '\(.\)' 2>/dev/null ||
12787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12788 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12789 /^X\(\/\/\)$/{ s//\1/; q; }
12790 /^X\(\/\).*/{ s//\1/; q; }
12793 test ! -n "$as_dirs" || mkdir $as_dirs
12794 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12795 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12796 { (exit 1); exit 1; }; }; }
12799 mv $tmp/config.h $ac_file
12803 rm -f $tmp/config.h
12808 cat >>$CONFIG_STATUS <<\_ACEOF
12810 { (exit 0); exit 0; }
12812 chmod +x $CONFIG_STATUS
12813 ac_clean_files=$ac_clean_files_save
12816 # configure is writing to config.log, and then calls config.status.
12817 # config.status does its own redirection, appending to config.log.
12818 # Unfortunately, on DOS this fails, as config.log is still kept open
12819 # by configure, so config.status won't be able to write to it; its
12820 # output is simply discarded. So we exec the FD to /dev/null,
12821 # effectively closing config.log, so it can be properly (re)opened and
12822 # appended to by config.status. When coming back to configure, we
12823 # need to make the FD available again.
12824 if test "$no_create" != yes; then
12826 ac_config_status_args=
12827 test "$silent" = yes &&
12828 ac_config_status_args="$ac_config_status_args --quiet"
12830 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12832 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12833 # would make configure fail if this is the last instruction.
12834 $ac_cs_success || { (exit 1); exit 1; }