2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
244 # Find the correct PATH separator. Usually this is `:', but
245 # DJGPP uses `;' like DOS.
246 if test "X${PATH_SEPARATOR+set}" != Xset; then
247 UNAME=${UNAME-`uname 2>/dev/null`}
249 *-DOS) lt_cv_sys_path_separator=';' ;;
250 *) lt_cv_sys_path_separator=':' ;;
252 PATH_SEPARATOR=$lt_cv_sys_path_separator
256 # Check that we are running under the correct shell.
257 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Remove one level of quotation (which was required for Make).
262 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
267 if test "X$1" = X--no-reexec; then
268 # Discard the --no-reexec flag, and continue.
270 elif test "X$1" = X--fallback-echo; then
271 # Avoid inline document here, it may be left over
273 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
274 # Yippee, $echo works!
277 # Restart under the correct shell.
278 exec $SHELL "$0" --no-reexec ${1+"$@"}
281 if test "X$1" = X--fallback-echo; then
282 # used as fallback echo
290 # The HP-UX ksh and POSIX shell print the target directory to stdout
292 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
294 if test -z "$ECHO"; then
295 if test "X${echo_test_string+set}" != Xset; then
296 # find a string as large as possible, as long as the shell can cope with it
297 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
298 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
299 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
300 echo_test_string="`eval $cmd`" &&
301 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
308 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
309 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
310 test "X$echo_testing_string" = "X$echo_test_string"; then
313 # The Solaris, AIX, and Digital Unix default echo programs unquote
314 # backslashes. This makes it impossible to quote backslashes using
315 # echo "$something" | sed 's/\\/\\\\/g'
317 # So, first we look for a working echo in the user's PATH.
319 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
320 for dir in $PATH /usr/ucb; do
321 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
322 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
331 if test "X$echo" = Xecho; then
332 # We didn't find a better echo, so look for alternatives.
333 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
334 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
335 test "X$echo_testing_string" = "X$echo_test_string"; then
336 # This shell has a builtin print -r that does the trick.
338 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
339 test "X$CONFIG_SHELL" != X/bin/ksh; then
340 # If we have ksh, try running configure again with it.
341 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
342 export ORIGINAL_CONFIG_SHELL
343 CONFIG_SHELL=/bin/ksh
345 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
349 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
350 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
354 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
360 SHELL="$CONFIG_SHELL"
362 echo="$CONFIG_SHELL $0 --fallback-echo"
363 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
364 test "X$echo_testing_string" = 'X\t' &&
365 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
366 test "X$echo_testing_string" = "X$echo_test_string"; then
367 echo="$CONFIG_SHELL $0 --fallback-echo"
369 # maybe with a smaller string...
372 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
373 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
380 if test "$prev" != 'sed 50q "$0"'; then
381 echo_test_string=`eval $prev`
382 export echo_test_string
383 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
385 # Oops. We lost completely, so just stick with echo.
394 # Copy echo and quote the copy suitably for passing to libtool from
395 # the Makefile, instead of quoting the original, which is used later.
397 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
398 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
404 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
405 # so uname gets run too.
406 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
413 ac_default_prefix=/usr/local
414 ac_config_libobj_dir=.
419 SHELL=${CONFIG_SHELL-/bin/sh}
421 # Maximum number of lines to put in a shell here document.
422 # This variable seems obsolete. It should probably be removed, and
423 # only ac_max_sed_lines should be used.
424 : ${ac_max_here_lines=38}
426 # Identity of this package.
433 ac_unique_file="src/"
434 # Factoring default headers for most tests.
435 ac_includes_default="\
438 # include <sys/types.h>
441 # include <sys/stat.h>
452 # if !STDC_HEADERS && HAVE_MEMORY_H
458 # include <strings.h>
461 # include <inttypes.h>
471 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP RANLIB ac_ct_RANLIB SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S ECHO STRIP ac_ct_STRIP EGREP LIBTOOL UNCOMPRESS AR SLEXT 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 # Do not use `cd foo && pwd` to compute absolute paths, because
1085 # the directories may not exist.
1087 .) ac_abs_builddir="$ac_dir";;
1090 .) ac_abs_builddir=`pwd`;;
1091 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1092 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1095 case $ac_abs_builddir in
1096 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1098 case ${ac_top_builddir}. in
1099 .) ac_abs_top_builddir=$ac_abs_builddir;;
1100 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1101 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1104 case $ac_abs_builddir in
1105 .) ac_abs_srcdir=$ac_srcdir;;
1108 .) ac_abs_srcdir=$ac_abs_builddir;;
1109 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1110 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1113 case $ac_abs_builddir in
1114 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1116 case $ac_top_srcdir in
1117 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1118 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1119 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1124 # Check for guested configure; otherwise get Cygnus style configure.
1125 if test -f $ac_srcdir/configure.gnu; then
1127 $SHELL $ac_srcdir/configure.gnu --help=recursive
1128 elif test -f $ac_srcdir/configure; then
1130 $SHELL $ac_srcdir/configure --help=recursive
1131 elif test -f $ac_srcdir/configure.ac ||
1132 test -f $ac_srcdir/configure.in; then
1134 $ac_configure --help
1136 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1142 test -n "$ac_init_help" && exit 0
1143 if $ac_init_version; then
1146 Copyright (C) 2003 Free Software Foundation, Inc.
1147 This configure script is free software; the Free Software Foundation
1148 gives unlimited permission to copy, distribute and modify it.
1154 This file contains any messages produced by compilers while
1155 running configure, to aid debugging if configure makes a mistake.
1157 It was created by $as_me, which was
1158 generated by GNU Autoconf 2.59. Invocation command line was
1169 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1170 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1171 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1172 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1173 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1175 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1176 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1178 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1179 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1180 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1181 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1182 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1183 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1184 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1192 test -z "$as_dir" && as_dir=.
1193 echo "PATH: $as_dir"
1208 # Keep a trace of the command line.
1209 # Strip out --no-create and --no-recursion so they do not pile up.
1210 # Strip out --silent because we don't want to record it for future runs.
1211 # Also quote any args containing shell meta-characters.
1212 # Make two passes to allow for proper duplicate-argument suppression.
1217 ac_must_keep_next=false
1223 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225 | -silent | --silent | --silen | --sile | --sil)
1227 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1228 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1231 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1233 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1234 if test $ac_must_keep_next = true; then
1235 ac_must_keep_next=false # Got value, back to normal.
1238 *=* | --config-cache | -C | -disable-* | --disable-* \
1239 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1240 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1241 | -with-* | --with-* | -without-* | --without-* | --x)
1242 case "$ac_configure_args0 " in
1243 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1246 -* ) ac_must_keep_next=true ;;
1249 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1250 # Get rid of the leading space.
1256 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1257 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1259 # When interrupted or exit'd, cleanup temporary files, and complete
1260 # config.log. We remove comments because anyway the quotes in there
1261 # would cause problems or look ugly.
1262 # WARNING: Be sure not to use single quotes in there, as some shells,
1263 # such as our DU 5.0 friend, will then `close' the trap.
1264 trap 'exit_status=$?
1265 # Save into config.log some information that might help in debugging.
1270 ## ---------------- ##
1271 ## Cache variables. ##
1272 ## ---------------- ##
1275 # The following way of writing the cache mishandles newlines in values,
1278 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1281 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1282 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1286 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1293 ## ----------------- ##
1294 ## Output variables. ##
1295 ## ----------------- ##
1298 for ac_var in $ac_subst_vars
1300 eval ac_val=$`echo $ac_var`
1301 echo "$ac_var='"'"'$ac_val'"'"'"
1305 if test -n "$ac_subst_files"; then
1312 for ac_var in $ac_subst_files
1314 eval ac_val=$`echo $ac_var`
1315 echo "$ac_var='"'"'$ac_val'"'"'"
1320 if test -s confdefs.h; then
1327 sed "/^$/d" confdefs.h | sort
1330 test "$ac_signal" != 0 &&
1331 echo "$as_me: caught signal $ac_signal"
1332 echo "$as_me: exit $exit_status"
1334 rm -f core *.core &&
1335 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1338 for ac_signal in 1 2 13 15; do
1339 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1343 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1344 rm -rf conftest* confdefs.h
1345 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1348 # Predefined preprocessor variables.
1350 cat >>confdefs.h <<_ACEOF
1351 #define PACKAGE_NAME "$PACKAGE_NAME"
1355 cat >>confdefs.h <<_ACEOF
1356 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1360 cat >>confdefs.h <<_ACEOF
1361 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1365 cat >>confdefs.h <<_ACEOF
1366 #define PACKAGE_STRING "$PACKAGE_STRING"
1370 cat >>confdefs.h <<_ACEOF
1371 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1375 # Let the site file select an alternate cache file if it wants to.
1376 # Prefer explicitly selected file to automatically selected ones.
1377 if test -z "$CONFIG_SITE"; then
1378 if test "x$prefix" != xNONE; then
1379 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1381 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1384 for ac_site_file in $CONFIG_SITE; do
1385 if test -r "$ac_site_file"; then
1386 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1387 echo "$as_me: loading site script $ac_site_file" >&6;}
1388 sed 's/^/| /' "$ac_site_file" >&5
1393 if test -r "$cache_file"; then
1394 # Some versions of bash will fail to source /dev/null (special
1395 # files actually), so we avoid doing that.
1396 if test -f "$cache_file"; then
1397 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1398 echo "$as_me: loading cache $cache_file" >&6;}
1400 [\\/]* | ?:[\\/]* ) . $cache_file;;
1401 *) . ./$cache_file;;
1405 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1406 echo "$as_me: creating cache $cache_file" >&6;}
1410 # Check that the precious variables saved in the cache have kept the same
1412 ac_cache_corrupted=false
1413 for ac_var in `(set) 2>&1 |
1414 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1415 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1416 eval ac_new_set=\$ac_env_${ac_var}_set
1417 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1418 eval ac_new_val="\$ac_env_${ac_var}_value"
1419 case $ac_old_set,$ac_new_set in
1421 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1422 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1423 ac_cache_corrupted=: ;;
1425 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1426 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1427 ac_cache_corrupted=: ;;
1430 if test "x$ac_old_val" != "x$ac_new_val"; then
1431 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1432 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1433 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1434 echo "$as_me: former value: $ac_old_val" >&2;}
1435 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1436 echo "$as_me: current value: $ac_new_val" >&2;}
1437 ac_cache_corrupted=:
1440 # Pass precious variables to config.status.
1441 if test "$ac_new_set" = set; then
1443 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1444 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1445 *) ac_arg=$ac_var=$ac_new_val ;;
1447 case " $ac_configure_args " in
1448 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1449 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1453 if $ac_cache_corrupted; then
1454 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1455 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1456 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1457 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1458 { (exit 1); exit 1; }; }
1462 ac_cpp='$CPP $CPPFLAGS'
1463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1487 # Check whether --enable-checkmem or --disable-checkmem was given.
1488 if test "${enable_checkmem+set}" = set; then
1489 enableval="$enable_checkmem"
1492 # Check whether --enable-debug or --disable-debug was given.
1493 if test "${enable_debug+set}" = set; then
1494 enableval="$enable_debug"
1497 # Check whether --enable-warnings or --disable-warnings was given.
1498 if test "${enable_warnings+set}" = set; then
1499 enableval="$enable_warnings"
1500 ENABLE_WARNINGS=true
1502 # Check whether --enable-optimizations or --disable-optimizations was given.
1503 if test "${enable_optimizations+set}" = set; then
1504 enableval="$enable_optimizations"
1507 # Check whether --enable-lame or --disable-lame was given.
1508 if test "${enable_lame+set}" = set; then
1509 enableval="$enable_lame"
1514 VERSION=2004-10-07-1814
1517 # ------------------------------------------------------------------
1519 if test "x${srcdir}" != "x."; then
1520 echo "--srcdir is not supported"
1524 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1525 if test "x$ENABLE_WARNINGS" '!=' "x";then
1526 WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls"
1529 if test "x$CHECKMEM" '!=' "x";then
1532 if test "x$DEBUG" '!=' "x";then
1533 CFLAGS="$WARNINGS -g $CFLAGS"
1534 CXXFLAGS="$WARNINGS -g $CXXFLAGS"
1535 else if test "x$OPTIMIZE" '!=' "x"; then
1536 CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1537 CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1539 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1540 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1544 #if test "x$OLDGCC" '!=' "x";then
1545 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1546 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1547 # CFLAGS="$CFLAGS -ansi -pendantic"
1548 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1551 export PACKAGE VERSION CFLAGS CXXFLAGS
1554 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1555 if test -f $ac_dir/install-sh; then
1557 ac_install_sh="$ac_aux_dir/install-sh -c"
1559 elif test -f $ac_dir/install.sh; then
1561 ac_install_sh="$ac_aux_dir/install.sh -c"
1563 elif test -f $ac_dir/shtool; then
1565 ac_install_sh="$ac_aux_dir/shtool install -c"
1569 if test -z "$ac_aux_dir"; then
1570 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1571 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1572 { (exit 1); exit 1; }; }
1574 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1575 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1576 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1578 # Make sure we can run config.sub.
1579 $ac_config_sub sun4 >/dev/null 2>&1 ||
1580 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1581 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1582 { (exit 1); exit 1; }; }
1584 echo "$as_me:$LINENO: checking build system type" >&5
1585 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1586 if test "${ac_cv_build+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1589 ac_cv_build_alias=$build_alias
1590 test -z "$ac_cv_build_alias" &&
1591 ac_cv_build_alias=`$ac_config_guess`
1592 test -z "$ac_cv_build_alias" &&
1593 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1594 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1595 { (exit 1); exit 1; }; }
1596 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1597 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1598 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1599 { (exit 1); exit 1; }; }
1602 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1603 echo "${ECHO_T}$ac_cv_build" >&6
1605 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1606 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1607 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1610 echo "$as_me:$LINENO: checking host system type" >&5
1611 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1612 if test "${ac_cv_host+set}" = set; then
1613 echo $ECHO_N "(cached) $ECHO_C" >&6
1615 ac_cv_host_alias=$host_alias
1616 test -z "$ac_cv_host_alias" &&
1617 ac_cv_host_alias=$ac_cv_build_alias
1618 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1619 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1620 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1621 { (exit 1); exit 1; }; }
1624 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1625 echo "${ECHO_T}$ac_cv_host" >&6
1627 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1628 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1629 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1636 CFLAGS="$CFLAGS -fno-rtti"
1637 CXXFLAGS="$CXXFLAGS -fno-rtti"
1641 ac_cpp='$CPP $CPPFLAGS'
1642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1645 if test -n "$ac_tool_prefix"; then
1646 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1647 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1648 echo "$as_me:$LINENO: checking for $ac_word" >&5
1649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1650 if test "${ac_cv_prog_CC+set}" = set; then
1651 echo $ECHO_N "(cached) $ECHO_C" >&6
1653 if test -n "$CC"; then
1654 ac_cv_prog_CC="$CC" # Let the user override the test.
1656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1660 test -z "$as_dir" && as_dir=.
1661 for ac_exec_ext in '' $ac_executable_extensions; do
1662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1663 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1673 if test -n "$CC"; then
1674 echo "$as_me:$LINENO: result: $CC" >&5
1675 echo "${ECHO_T}$CC" >&6
1677 echo "$as_me:$LINENO: result: no" >&5
1678 echo "${ECHO_T}no" >&6
1682 if test -z "$ac_cv_prog_CC"; then
1684 # Extract the first word of "gcc", so it can be a program name with args.
1685 set dummy gcc; ac_word=$2
1686 echo "$as_me:$LINENO: checking for $ac_word" >&5
1687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1688 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1689 echo $ECHO_N "(cached) $ECHO_C" >&6
1691 if test -n "$ac_ct_CC"; then
1692 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1698 test -z "$as_dir" && as_dir=.
1699 for ac_exec_ext in '' $ac_executable_extensions; do
1700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1701 ac_cv_prog_ac_ct_CC="gcc"
1702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1710 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1711 if test -n "$ac_ct_CC"; then
1712 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1713 echo "${ECHO_T}$ac_ct_CC" >&6
1715 echo "$as_me:$LINENO: result: no" >&5
1716 echo "${ECHO_T}no" >&6
1724 if test -z "$CC"; then
1725 if test -n "$ac_tool_prefix"; then
1726 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1727 set dummy ${ac_tool_prefix}cc; ac_word=$2
1728 echo "$as_me:$LINENO: checking for $ac_word" >&5
1729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1730 if test "${ac_cv_prog_CC+set}" = set; then
1731 echo $ECHO_N "(cached) $ECHO_C" >&6
1733 if test -n "$CC"; then
1734 ac_cv_prog_CC="$CC" # Let the user override the test.
1736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1740 test -z "$as_dir" && as_dir=.
1741 for ac_exec_ext in '' $ac_executable_extensions; do
1742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1743 ac_cv_prog_CC="${ac_tool_prefix}cc"
1744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1753 if test -n "$CC"; then
1754 echo "$as_me:$LINENO: result: $CC" >&5
1755 echo "${ECHO_T}$CC" >&6
1757 echo "$as_me:$LINENO: result: no" >&5
1758 echo "${ECHO_T}no" >&6
1762 if test -z "$ac_cv_prog_CC"; then
1764 # Extract the first word of "cc", so it can be a program name with args.
1765 set dummy cc; ac_word=$2
1766 echo "$as_me:$LINENO: checking for $ac_word" >&5
1767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1768 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1769 echo $ECHO_N "(cached) $ECHO_C" >&6
1771 if test -n "$ac_ct_CC"; then
1772 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1778 test -z "$as_dir" && as_dir=.
1779 for ac_exec_ext in '' $ac_executable_extensions; do
1780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1781 ac_cv_prog_ac_ct_CC="cc"
1782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1790 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1791 if test -n "$ac_ct_CC"; then
1792 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1793 echo "${ECHO_T}$ac_ct_CC" >&6
1795 echo "$as_me:$LINENO: result: no" >&5
1796 echo "${ECHO_T}no" >&6
1805 if test -z "$CC"; then
1806 # Extract the first word of "cc", so it can be a program name with args.
1807 set dummy cc; ac_word=$2
1808 echo "$as_me:$LINENO: checking for $ac_word" >&5
1809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810 if test "${ac_cv_prog_CC+set}" = set; then
1811 echo $ECHO_N "(cached) $ECHO_C" >&6
1813 if test -n "$CC"; then
1814 ac_cv_prog_CC="$CC" # Let the user override the test.
1817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1821 test -z "$as_dir" && as_dir=.
1822 for ac_exec_ext in '' $ac_executable_extensions; do
1823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1824 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1825 ac_prog_rejected=yes
1829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1835 if test $ac_prog_rejected = yes; then
1836 # We found a bogon in the path, so make sure we never use it.
1837 set dummy $ac_cv_prog_CC
1839 if test $# != 0; then
1840 # We chose a different compiler from the bogus one.
1841 # However, it has the same basename, so the bogon will be chosen
1842 # first if we set CC to just the basename; use the full file name.
1844 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1850 if test -n "$CC"; then
1851 echo "$as_me:$LINENO: result: $CC" >&5
1852 echo "${ECHO_T}$CC" >&6
1854 echo "$as_me:$LINENO: result: no" >&5
1855 echo "${ECHO_T}no" >&6
1859 if test -z "$CC"; then
1860 if test -n "$ac_tool_prefix"; then
1863 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1864 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1865 echo "$as_me:$LINENO: checking for $ac_word" >&5
1866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1867 if test "${ac_cv_prog_CC+set}" = set; then
1868 echo $ECHO_N "(cached) $ECHO_C" >&6
1870 if test -n "$CC"; then
1871 ac_cv_prog_CC="$CC" # Let the user override the test.
1873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877 test -z "$as_dir" && as_dir=.
1878 for ac_exec_ext in '' $ac_executable_extensions; do
1879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1880 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1890 if test -n "$CC"; then
1891 echo "$as_me:$LINENO: result: $CC" >&5
1892 echo "${ECHO_T}$CC" >&6
1894 echo "$as_me:$LINENO: result: no" >&5
1895 echo "${ECHO_T}no" >&6
1898 test -n "$CC" && break
1901 if test -z "$CC"; then
1905 # Extract the first word of "$ac_prog", so it can be a program name with args.
1906 set dummy $ac_prog; ac_word=$2
1907 echo "$as_me:$LINENO: checking for $ac_word" >&5
1908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1909 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1910 echo $ECHO_N "(cached) $ECHO_C" >&6
1912 if test -n "$ac_ct_CC"; then
1913 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919 test -z "$as_dir" && as_dir=.
1920 for ac_exec_ext in '' $ac_executable_extensions; do
1921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1922 ac_cv_prog_ac_ct_CC="$ac_prog"
1923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1931 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1932 if test -n "$ac_ct_CC"; then
1933 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1934 echo "${ECHO_T}$ac_ct_CC" >&6
1936 echo "$as_me:$LINENO: result: no" >&5
1937 echo "${ECHO_T}no" >&6
1940 test -n "$ac_ct_CC" && break
1949 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1950 See \`config.log' for more details." >&5
1951 echo "$as_me: error: no acceptable C compiler found in \$PATH
1952 See \`config.log' for more details." >&2;}
1953 { (exit 1); exit 1; }; }
1955 # Provide some information about the compiler.
1956 echo "$as_me:$LINENO:" \
1957 "checking for C compiler version" >&5
1958 ac_compiler=`set X $ac_compile; echo $2`
1959 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1960 (eval $ac_compiler --version </dev/null >&5) 2>&5
1962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963 (exit $ac_status); }
1964 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1965 (eval $ac_compiler -v </dev/null >&5) 2>&5
1967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1968 (exit $ac_status); }
1969 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1970 (eval $ac_compiler -V </dev/null >&5) 2>&5
1972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973 (exit $ac_status); }
1975 cat >conftest.$ac_ext <<_ACEOF
1978 cat confdefs.h >>conftest.$ac_ext
1979 cat >>conftest.$ac_ext <<_ACEOF
1980 /* end confdefs.h. */
1990 ac_clean_files_save=$ac_clean_files
1991 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1992 # Try to create an executable without -o first, disregard a.out.
1993 # It will help us diagnose broken compilers, and finding out an intuition
1995 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1996 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1997 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1998 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1999 (eval $ac_link_default) 2>&5
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }; then
2003 # Find the output, starting from the most likely. This scheme is
2004 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2007 # Be careful to initialize this variable, since it used to be cached.
2008 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2010 # b.out is created by i960 compilers.
2011 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2013 test -f "$ac_file" || continue
2015 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2018 # This is the source file.
2021 # We found the default executable, but exeext='' is most
2025 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2026 # FIXME: I believe we export ac_cv_exeext for Libtool,
2027 # but it would be cool to find out if it's true. Does anybody
2028 # maintain Libtool? --akim.
2036 echo "$as_me: failed program was:" >&5
2037 sed 's/^/| /' conftest.$ac_ext >&5
2039 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2040 See \`config.log' for more details." >&5
2041 echo "$as_me: error: C compiler cannot create executables
2042 See \`config.log' for more details." >&2;}
2043 { (exit 77); exit 77; }; }
2046 ac_exeext=$ac_cv_exeext
2047 echo "$as_me:$LINENO: result: $ac_file" >&5
2048 echo "${ECHO_T}$ac_file" >&6
2050 # Check the compiler produces executables we can run. If not, either
2051 # the compiler is broken, or we cross compile.
2052 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2053 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2054 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2055 # If not cross compiling, check that we can run a simple program.
2056 if test "$cross_compiling" != yes; then
2057 if { ac_try='./$ac_file'
2058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }; }; then
2065 if test "$cross_compiling" = maybe; then
2068 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2069 If you meant to cross compile, use \`--host'.
2070 See \`config.log' for more details." >&5
2071 echo "$as_me: error: cannot run C compiled programs.
2072 If you meant to cross compile, use \`--host'.
2073 See \`config.log' for more details." >&2;}
2074 { (exit 1); exit 1; }; }
2078 echo "$as_me:$LINENO: result: yes" >&5
2079 echo "${ECHO_T}yes" >&6
2081 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2082 ac_clean_files=$ac_clean_files_save
2083 # Check the compiler produces executables we can run. If not, either
2084 # the compiler is broken, or we cross compile.
2085 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2086 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2087 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2088 echo "${ECHO_T}$cross_compiling" >&6
2090 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2091 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2093 (eval $ac_link) 2>&5
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); }; then
2097 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2098 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2099 # work properly (i.e., refer to `conftest.exe'), while it won't with
2101 for ac_file in conftest.exe conftest conftest.*; do
2102 test -f "$ac_file" || continue
2104 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2105 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2112 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2113 See \`config.log' for more details." >&5
2114 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2115 See \`config.log' for more details." >&2;}
2116 { (exit 1); exit 1; }; }
2119 rm -f conftest$ac_cv_exeext
2120 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2121 echo "${ECHO_T}$ac_cv_exeext" >&6
2123 rm -f conftest.$ac_ext
2124 EXEEXT=$ac_cv_exeext
2126 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2127 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2128 if test "${ac_cv_objext+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2131 cat >conftest.$ac_ext <<_ACEOF
2134 cat confdefs.h >>conftest.$ac_ext
2135 cat >>conftest.$ac_ext <<_ACEOF
2136 /* end confdefs.h. */
2146 rm -f conftest.o conftest.obj
2147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2148 (eval $ac_compile) 2>&5
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); }; then
2152 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2154 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2155 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2160 echo "$as_me: failed program was:" >&5
2161 sed 's/^/| /' conftest.$ac_ext >&5
2163 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2164 See \`config.log' for more details." >&5
2165 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2166 See \`config.log' for more details." >&2;}
2167 { (exit 1); exit 1; }; }
2170 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2172 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2173 echo "${ECHO_T}$ac_cv_objext" >&6
2174 OBJEXT=$ac_cv_objext
2176 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2177 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2178 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2179 echo $ECHO_N "(cached) $ECHO_C" >&6
2181 cat >conftest.$ac_ext <<_ACEOF
2184 cat confdefs.h >>conftest.$ac_ext
2185 cat >>conftest.$ac_ext <<_ACEOF
2186 /* end confdefs.h. */
2199 rm -f conftest.$ac_objext
2200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2201 (eval $ac_compile) 2>conftest.er1
2203 grep -v '^ *+' conftest.er1 >conftest.err
2205 cat conftest.err >&5
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); } &&
2208 { ac_try='test -z "$ac_c_werror_flag"
2209 || test ! -s conftest.err'
2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; } &&
2215 { ac_try='test -s conftest.$ac_objext'
2216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; }; then
2223 echo "$as_me: failed program was:" >&5
2224 sed 's/^/| /' conftest.$ac_ext >&5
2228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2229 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2232 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2233 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2234 GCC=`test $ac_compiler_gnu = yes && echo yes`
2235 ac_test_CFLAGS=${CFLAGS+set}
2236 ac_save_CFLAGS=$CFLAGS
2238 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2239 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2240 if test "${ac_cv_prog_cc_g+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2243 cat >conftest.$ac_ext <<_ACEOF
2246 cat confdefs.h >>conftest.$ac_ext
2247 cat >>conftest.$ac_ext <<_ACEOF
2248 /* end confdefs.h. */
2258 rm -f conftest.$ac_objext
2259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2260 (eval $ac_compile) 2>conftest.er1
2262 grep -v '^ *+' conftest.er1 >conftest.err
2264 cat conftest.err >&5
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); } &&
2267 { ac_try='test -z "$ac_c_werror_flag"
2268 || test ! -s conftest.err'
2269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; } &&
2274 { ac_try='test -s conftest.$ac_objext'
2275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); }; }; then
2282 echo "$as_me: failed program was:" >&5
2283 sed 's/^/| /' conftest.$ac_ext >&5
2287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2289 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2290 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2291 if test "$ac_test_CFLAGS" = set; then
2292 CFLAGS=$ac_save_CFLAGS
2293 elif test $ac_cv_prog_cc_g = yes; then
2294 if test "$GCC" = yes; then
2300 if test "$GCC" = yes; then
2306 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2307 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2308 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
2311 ac_cv_prog_cc_stdc=no
2313 cat >conftest.$ac_ext <<_ACEOF
2316 cat confdefs.h >>conftest.$ac_ext
2317 cat >>conftest.$ac_ext <<_ACEOF
2318 /* end confdefs.h. */
2321 #include <sys/types.h>
2322 #include <sys/stat.h>
2323 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2324 struct buf { int x; };
2325 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2326 static char *e (p, i)
2332 static char *f (char * (*g) (char **, int), char **p, ...)
2337 s = g (p, va_arg (v,int));
2342 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2343 function prototypes and stuff, but not '\xHH' hex character constants.
2344 These don't provoke an error unfortunately, instead are silently treated
2345 as 'x'. The following induces an error, until -std1 is added to get
2346 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2347 array size at least. It's necessary to write '\x00'==0 to get something
2348 that's true only with -std1. */
2349 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2351 int test (int i, double x);
2352 struct s1 {int (*f) (int a);};
2353 struct s2 {int (*f) (double a);};
2354 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2360 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2365 # Don't try gcc -ansi; that turns off useful extensions and
2366 # breaks some systems' header files.
2367 # AIX -qlanglvl=ansi
2368 # Ultrix and OSF/1 -std1
2369 # HP-UX 10.20 and later -Ae
2370 # HP-UX older versions -Aa -D_HPUX_SOURCE
2371 # SVR4 -Xc -D__EXTENSIONS__
2372 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2374 CC="$ac_save_CC $ac_arg"
2375 rm -f conftest.$ac_objext
2376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2377 (eval $ac_compile) 2>conftest.er1
2379 grep -v '^ *+' conftest.er1 >conftest.err
2381 cat conftest.err >&5
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); } &&
2384 { ac_try='test -z "$ac_c_werror_flag"
2385 || test ! -s conftest.err'
2386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }; } &&
2391 { ac_try='test -s conftest.$ac_objext'
2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; }; then
2397 ac_cv_prog_cc_stdc=$ac_arg
2400 echo "$as_me: failed program was:" >&5
2401 sed 's/^/| /' conftest.$ac_ext >&5
2404 rm -f conftest.err conftest.$ac_objext
2406 rm -f conftest.$ac_ext conftest.$ac_objext
2411 case "x$ac_cv_prog_cc_stdc" in
2413 echo "$as_me:$LINENO: result: none needed" >&5
2414 echo "${ECHO_T}none needed" >&6 ;;
2416 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2417 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2418 CC="$CC $ac_cv_prog_cc_stdc" ;;
2421 # Some people use a C++ compiler to compile C. Since we use `exit',
2422 # in C++ we need to declare it. In case someone uses the same compiler
2423 # for both compiling C and C++ we need to have the C++ compiler decide
2424 # the declaration of exit, since it's the most demanding environment.
2425 cat >conftest.$ac_ext <<_ACEOF
2430 rm -f conftest.$ac_objext
2431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2432 (eval $ac_compile) 2>conftest.er1
2434 grep -v '^ *+' conftest.er1 >conftest.err
2436 cat conftest.err >&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); } &&
2439 { ac_try='test -z "$ac_c_werror_flag"
2440 || test ! -s conftest.err'
2441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); }; } &&
2446 { ac_try='test -s conftest.$ac_objext'
2447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); }; }; then
2452 for ac_declaration in \
2454 'extern "C" void std::exit (int) throw (); using std::exit;' \
2455 'extern "C" void std::exit (int); using std::exit;' \
2456 'extern "C" void exit (int) throw ();' \
2457 'extern "C" void exit (int);' \
2460 cat >conftest.$ac_ext <<_ACEOF
2463 cat confdefs.h >>conftest.$ac_ext
2464 cat >>conftest.$ac_ext <<_ACEOF
2465 /* end confdefs.h. */
2476 rm -f conftest.$ac_objext
2477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2478 (eval $ac_compile) 2>conftest.er1
2480 grep -v '^ *+' conftest.er1 >conftest.err
2482 cat conftest.err >&5
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); } &&
2485 { ac_try='test -z "$ac_c_werror_flag"
2486 || test ! -s conftest.err'
2487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }; } &&
2492 { ac_try='test -s conftest.$ac_objext'
2493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); }; }; then
2500 echo "$as_me: failed program was:" >&5
2501 sed 's/^/| /' conftest.$ac_ext >&5
2505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2506 cat >conftest.$ac_ext <<_ACEOF
2509 cat confdefs.h >>conftest.$ac_ext
2510 cat >>conftest.$ac_ext <<_ACEOF
2511 /* end confdefs.h. */
2521 rm -f conftest.$ac_objext
2522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2523 (eval $ac_compile) 2>conftest.er1
2525 grep -v '^ *+' conftest.er1 >conftest.err
2527 cat conftest.err >&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); } &&
2530 { ac_try='test -z "$ac_c_werror_flag"
2531 || test ! -s conftest.err'
2532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; } &&
2537 { ac_try='test -s conftest.$ac_objext'
2538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); }; }; then
2545 echo "$as_me: failed program was:" >&5
2546 sed 's/^/| /' conftest.$ac_ext >&5
2549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2552 if test -n "$ac_declaration"; then
2553 echo '#ifdef __cplusplus' >>confdefs.h
2554 echo $ac_declaration >>confdefs.h
2555 echo '#endif' >>confdefs.h
2559 echo "$as_me: failed program was:" >&5
2560 sed 's/^/| /' conftest.$ac_ext >&5
2563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2565 ac_cpp='$CPP $CPPFLAGS'
2566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2571 ac_cpp='$CXXCPP $CPPFLAGS'
2572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2575 if test -n "$ac_tool_prefix"; then
2576 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2578 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2579 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2580 echo "$as_me:$LINENO: checking for $ac_word" >&5
2581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2582 if test "${ac_cv_prog_CXX+set}" = set; then
2583 echo $ECHO_N "(cached) $ECHO_C" >&6
2585 if test -n "$CXX"; then
2586 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592 test -z "$as_dir" && as_dir=.
2593 for ac_exec_ext in '' $ac_executable_extensions; do
2594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2595 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2605 if test -n "$CXX"; then
2606 echo "$as_me:$LINENO: result: $CXX" >&5
2607 echo "${ECHO_T}$CXX" >&6
2609 echo "$as_me:$LINENO: result: no" >&5
2610 echo "${ECHO_T}no" >&6
2613 test -n "$CXX" && break
2616 if test -z "$CXX"; then
2618 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2620 # Extract the first word of "$ac_prog", so it can be a program name with args.
2621 set dummy $ac_prog; ac_word=$2
2622 echo "$as_me:$LINENO: checking for $ac_word" >&5
2623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2624 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2625 echo $ECHO_N "(cached) $ECHO_C" >&6
2627 if test -n "$ac_ct_CXX"; then
2628 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 test -z "$as_dir" && as_dir=.
2635 for ac_exec_ext in '' $ac_executable_extensions; do
2636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2637 ac_cv_prog_ac_ct_CXX="$ac_prog"
2638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2646 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2647 if test -n "$ac_ct_CXX"; then
2648 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2649 echo "${ECHO_T}$ac_ct_CXX" >&6
2651 echo "$as_me:$LINENO: result: no" >&5
2652 echo "${ECHO_T}no" >&6
2655 test -n "$ac_ct_CXX" && break
2657 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2663 # Provide some information about the compiler.
2664 echo "$as_me:$LINENO:" \
2665 "checking for C++ compiler version" >&5
2666 ac_compiler=`set X $ac_compile; echo $2`
2667 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2668 (eval $ac_compiler --version </dev/null >&5) 2>&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }
2672 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2673 (eval $ac_compiler -v </dev/null >&5) 2>&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }
2677 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2678 (eval $ac_compiler -V </dev/null >&5) 2>&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }
2683 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2684 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2685 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2686 echo $ECHO_N "(cached) $ECHO_C" >&6
2688 cat >conftest.$ac_ext <<_ACEOF
2691 cat confdefs.h >>conftest.$ac_ext
2692 cat >>conftest.$ac_ext <<_ACEOF
2693 /* end confdefs.h. */
2706 rm -f conftest.$ac_objext
2707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2708 (eval $ac_compile) 2>conftest.er1
2710 grep -v '^ *+' conftest.er1 >conftest.err
2712 cat conftest.err >&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); } &&
2715 { ac_try='test -z "$ac_cxx_werror_flag"
2716 || test ! -s conftest.err'
2717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; } &&
2722 { ac_try='test -s conftest.$ac_objext'
2723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; }; then
2730 echo "$as_me: failed program was:" >&5
2731 sed 's/^/| /' conftest.$ac_ext >&5
2735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2736 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2739 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2740 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2741 GXX=`test $ac_compiler_gnu = yes && echo yes`
2742 ac_test_CXXFLAGS=${CXXFLAGS+set}
2743 ac_save_CXXFLAGS=$CXXFLAGS
2745 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2746 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2747 if test "${ac_cv_prog_cxx_g+set}" = set; then
2748 echo $ECHO_N "(cached) $ECHO_C" >&6
2750 cat >conftest.$ac_ext <<_ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h. */
2765 rm -f conftest.$ac_objext
2766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767 (eval $ac_compile) 2>conftest.er1
2769 grep -v '^ *+' conftest.er1 >conftest.err
2771 cat conftest.err >&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); } &&
2774 { ac_try='test -z "$ac_cxx_werror_flag"
2775 || test ! -s conftest.err'
2776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; } &&
2781 { ac_try='test -s conftest.$ac_objext'
2782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; }; then
2787 ac_cv_prog_cxx_g=yes
2789 echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.$ac_ext >&5
2794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2796 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2797 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2798 if test "$ac_test_CXXFLAGS" = set; then
2799 CXXFLAGS=$ac_save_CXXFLAGS
2800 elif test $ac_cv_prog_cxx_g = yes; then
2801 if test "$GXX" = yes; then
2807 if test "$GXX" = yes; then
2813 for ac_declaration in \
2815 'extern "C" void std::exit (int) throw (); using std::exit;' \
2816 'extern "C" void std::exit (int); using std::exit;' \
2817 'extern "C" void exit (int) throw ();' \
2818 'extern "C" void exit (int);' \
2821 cat >conftest.$ac_ext <<_ACEOF
2824 cat confdefs.h >>conftest.$ac_ext
2825 cat >>conftest.$ac_ext <<_ACEOF
2826 /* end confdefs.h. */
2837 rm -f conftest.$ac_objext
2838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2839 (eval $ac_compile) 2>conftest.er1
2841 grep -v '^ *+' conftest.er1 >conftest.err
2843 cat conftest.err >&5
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); } &&
2846 { ac_try='test -z "$ac_cxx_werror_flag"
2847 || test ! -s conftest.err'
2848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; } &&
2853 { ac_try='test -s conftest.$ac_objext'
2854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; }; then
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2867 cat >conftest.$ac_ext <<_ACEOF
2870 cat confdefs.h >>conftest.$ac_ext
2871 cat >>conftest.$ac_ext <<_ACEOF
2872 /* end confdefs.h. */
2882 rm -f conftest.$ac_objext
2883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2884 (eval $ac_compile) 2>conftest.er1
2886 grep -v '^ *+' conftest.er1 >conftest.err
2888 cat conftest.err >&5
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); } &&
2891 { ac_try='test -z "$ac_cxx_werror_flag"
2892 || test ! -s conftest.err'
2893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }; } &&
2898 { ac_try='test -s conftest.$ac_objext'
2899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }; }; then
2906 echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2913 if test -n "$ac_declaration"; then
2914 echo '#ifdef __cplusplus' >>confdefs.h
2915 echo $ac_declaration >>confdefs.h
2916 echo '#endif' >>confdefs.h
2920 ac_cpp='$CPP $CPPFLAGS'
2921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2926 if test "x$CHECKMEM" '!=' "x";then
2930 #unset ac_cv_prog_CC
2931 #unset ac_cv_prog_CXX
2936 ac_cpp='$CPP $CPPFLAGS'
2937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2940 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2941 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2942 # On Suns, sometimes $CPP names a directory.
2943 if test -n "$CPP" && test -d "$CPP"; then
2946 if test -z "$CPP"; then
2947 if test "${ac_cv_prog_CPP+set}" = set; then
2948 echo $ECHO_N "(cached) $ECHO_C" >&6
2950 # Double quotes because CPP needs to be expanded
2951 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2954 for ac_c_preproc_warn_flag in '' yes
2956 # Use a header file that comes with gcc, so configuring glibc
2957 # with a fresh cross-compiler works.
2958 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2959 # <limits.h> exists even on freestanding compilers.
2960 # On the NeXT, cc -E runs the code through the compiler's parser,
2961 # not just through cpp. "Syntax error" is here to catch this case.
2962 cat >conftest.$ac_ext <<_ACEOF
2965 cat confdefs.h >>conftest.$ac_ext
2966 cat >>conftest.$ac_ext <<_ACEOF
2967 /* end confdefs.h. */
2969 # include <limits.h>
2971 # include <assert.h>
2975 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2978 grep -v '^ *+' conftest.er1 >conftest.err
2980 cat conftest.err >&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); } >/dev/null; then
2983 if test -s conftest.err; then
2984 ac_cpp_err=$ac_c_preproc_warn_flag
2985 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2992 if test -z "$ac_cpp_err"; then
2995 echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2998 # Broken: fails on valid input.
3001 rm -f conftest.err conftest.$ac_ext
3003 # OK, works on sane cases. Now check whether non-existent headers
3004 # can be detected and how.
3005 cat >conftest.$ac_ext <<_ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h. */
3011 #include <ac_nonexistent.h>
3013 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3014 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3016 grep -v '^ *+' conftest.er1 >conftest.err
3018 cat conftest.err >&5
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); } >/dev/null; then
3021 if test -s conftest.err; then
3022 ac_cpp_err=$ac_c_preproc_warn_flag
3023 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3030 if test -z "$ac_cpp_err"; then
3031 # Broken: success on invalid input.
3034 echo "$as_me: failed program was:" >&5
3035 sed 's/^/| /' conftest.$ac_ext >&5
3037 # Passes both tests.
3041 rm -f conftest.err conftest.$ac_ext
3044 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3045 rm -f conftest.err conftest.$ac_ext
3046 if $ac_preproc_ok; then
3058 echo "$as_me:$LINENO: result: $CPP" >&5
3059 echo "${ECHO_T}$CPP" >&6
3061 for ac_c_preproc_warn_flag in '' yes
3063 # Use a header file that comes with gcc, so configuring glibc
3064 # with a fresh cross-compiler works.
3065 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3066 # <limits.h> exists even on freestanding compilers.
3067 # On the NeXT, cc -E runs the code through the compiler's parser,
3068 # not just through cpp. "Syntax error" is here to catch this case.
3069 cat >conftest.$ac_ext <<_ACEOF
3072 cat confdefs.h >>conftest.$ac_ext
3073 cat >>conftest.$ac_ext <<_ACEOF
3074 /* end confdefs.h. */
3076 # include <limits.h>
3078 # include <assert.h>
3082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3085 grep -v '^ *+' conftest.er1 >conftest.err
3087 cat conftest.err >&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); } >/dev/null; then
3090 if test -s conftest.err; then
3091 ac_cpp_err=$ac_c_preproc_warn_flag
3092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3099 if test -z "$ac_cpp_err"; then
3102 echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3105 # Broken: fails on valid input.
3108 rm -f conftest.err conftest.$ac_ext
3110 # OK, works on sane cases. Now check whether non-existent headers
3111 # can be detected and how.
3112 cat >conftest.$ac_ext <<_ACEOF
3115 cat confdefs.h >>conftest.$ac_ext
3116 cat >>conftest.$ac_ext <<_ACEOF
3117 /* end confdefs.h. */
3118 #include <ac_nonexistent.h>
3120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3123 grep -v '^ *+' conftest.er1 >conftest.err
3125 cat conftest.err >&5
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); } >/dev/null; then
3128 if test -s conftest.err; then
3129 ac_cpp_err=$ac_c_preproc_warn_flag
3130 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3137 if test -z "$ac_cpp_err"; then
3138 # Broken: success on invalid input.
3141 echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3144 # Passes both tests.
3148 rm -f conftest.err conftest.$ac_ext
3151 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3152 rm -f conftest.err conftest.$ac_ext
3153 if $ac_preproc_ok; then
3156 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3157 See \`config.log' for more details." >&5
3158 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3159 See \`config.log' for more details." >&2;}
3160 { (exit 1); exit 1; }; }
3164 ac_cpp='$CPP $CPPFLAGS'
3165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3170 if test -n "$ac_tool_prefix"; then
3171 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3172 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3173 echo "$as_me:$LINENO: checking for $ac_word" >&5
3174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3175 if test "${ac_cv_prog_RANLIB+set}" = set; then
3176 echo $ECHO_N "(cached) $ECHO_C" >&6
3178 if test -n "$RANLIB"; then
3179 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 test -z "$as_dir" && as_dir=.
3186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3188 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3197 RANLIB=$ac_cv_prog_RANLIB
3198 if test -n "$RANLIB"; then
3199 echo "$as_me:$LINENO: result: $RANLIB" >&5
3200 echo "${ECHO_T}$RANLIB" >&6
3202 echo "$as_me:$LINENO: result: no" >&5
3203 echo "${ECHO_T}no" >&6
3207 if test -z "$ac_cv_prog_RANLIB"; then
3208 ac_ct_RANLIB=$RANLIB
3209 # Extract the first word of "ranlib", so it can be a program name with args.
3210 set dummy ranlib; ac_word=$2
3211 echo "$as_me:$LINENO: checking for $ac_word" >&5
3212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3213 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&6
3216 if test -n "$ac_ct_RANLIB"; then
3217 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223 test -z "$as_dir" && as_dir=.
3224 for ac_exec_ext in '' $ac_executable_extensions; do
3225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3226 ac_cv_prog_ac_ct_RANLIB="ranlib"
3227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3233 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3236 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3237 if test -n "$ac_ct_RANLIB"; then
3238 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3239 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3241 echo "$as_me:$LINENO: result: no" >&5
3242 echo "${ECHO_T}no" >&6
3245 RANLIB=$ac_ct_RANLIB
3247 RANLIB="$ac_cv_prog_RANLIB"
3250 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3251 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3252 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3253 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3256 cat >conftest.make <<\_ACEOF
3258 @echo 'ac_maketemp="$(MAKE)"'
3260 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3261 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3262 if test -n "$ac_maketemp"; then
3263 eval ac_cv_prog_make_${ac_make}_set=yes
3265 eval ac_cv_prog_make_${ac_make}_set=no
3269 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3270 echo "$as_me:$LINENO: result: yes" >&5
3271 echo "${ECHO_T}yes" >&6
3274 echo "$as_me:$LINENO: result: no" >&5
3275 echo "${ECHO_T}no" >&6
3276 SET_MAKE="MAKE=${MAKE-make}"
3279 # Find a good install program. We prefer a C program (faster),
3280 # so one script is as good as another. But avoid the broken or
3281 # incompatible versions:
3282 # SysV /etc/install, /usr/sbin/install
3283 # SunOS /usr/etc/install
3284 # IRIX /sbin/install
3286 # AmigaOS /C/install, which installs bootblocks on floppy discs
3287 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3288 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3289 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3290 # OS/2's system install, which has a completely different semantic
3291 # ./install, which can be erroneously created by make from ./install.sh.
3292 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3293 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3294 if test -z "$INSTALL"; then
3295 if test "${ac_cv_path_install+set}" = set; then
3296 echo $ECHO_N "(cached) $ECHO_C" >&6
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302 test -z "$as_dir" && as_dir=.
3303 # Account for people who put trailing slashes in PATH elements.
3305 ./ | .// | /cC/* | \
3306 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3307 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3310 # OSF1 and SCO ODT 3.0 have their own names for install.
3311 # Don't use installbsd from OSF since it installs stuff as root
3313 for ac_prog in ginstall scoinst install; do
3314 for ac_exec_ext in '' $ac_executable_extensions; do
3315 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3316 if test $ac_prog = install &&
3317 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3318 # AIX install. It has an incompatible calling convention.
3320 elif test $ac_prog = install &&
3321 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3322 # program-specific install script used by HP pwplus--don't use.
3325 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3337 if test "${ac_cv_path_install+set}" = set; then
3338 INSTALL=$ac_cv_path_install
3340 # As a last resort, use the slow shell script. We don't cache a
3341 # path for INSTALL within a source directory, because that will
3342 # break other packages using the cache if that directory is
3343 # removed, or if the path is relative.
3344 INSTALL=$ac_install_sh
3347 echo "$as_me:$LINENO: result: $INSTALL" >&5
3348 echo "${ECHO_T}$INSTALL" >&6
3350 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3351 # It thinks the first close brace ends the variable substitution.
3352 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3354 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3356 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3358 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3359 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3361 if test "$LN_S" = "ln -s"; then
3362 echo "$as_me:$LINENO: result: yes" >&5
3363 echo "${ECHO_T}yes" >&6
3365 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3366 echo "${ECHO_T}no, using $LN_S" >&6
3369 # Check whether --enable-shared or --disable-shared was given.
3370 if test "${enable_shared+set}" = set; then
3371 enableval="$enable_shared"
3372 p=${PACKAGE-default}
3374 yes) enable_shared=yes ;;
3375 no) enable_shared=no ;;
3378 # Look at the argument we got. We use all the common list separators.
3379 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3380 for pkg in $enableval; do
3381 if test "X$pkg" = "X$p"; then
3391 # Check whether --enable-static or --disable-static was given.
3392 if test "${enable_static+set}" = set; then
3393 enableval="$enable_static"
3394 p=${PACKAGE-default}
3396 yes) enable_static=yes ;;
3397 no) enable_static=no ;;
3400 # Look at the argument we got. We use all the common list separators.
3401 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3402 for pkg in $enableval; do
3403 if test "X$pkg" = "X$p"; then
3413 # Check whether --enable-fast-install or --disable-fast-install was given.
3414 if test "${enable_fast_install+set}" = set; then
3415 enableval="$enable_fast_install"
3416 p=${PACKAGE-default}
3418 yes) enable_fast_install=yes ;;
3419 no) enable_fast_install=no ;;
3421 enable_fast_install=no
3422 # Look at the argument we got. We use all the common list separators.
3423 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3424 for pkg in $enableval; do
3425 if test "X$pkg" = "X$p"; then
3426 enable_fast_install=yes
3433 enable_fast_install=yes
3435 # Find the correct PATH separator. Usually this is `:', but
3436 # DJGPP uses `;' like DOS.
3437 if test "X${PATH_SEPARATOR+set}" != Xset; then
3438 UNAME=${UNAME-`uname 2>/dev/null`}
3440 *-DOS) lt_cv_sys_path_separator=';' ;;
3441 *) lt_cv_sys_path_separator=':' ;;
3443 PATH_SEPARATOR=$lt_cv_sys_path_separator
3447 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3448 if test "${with_gnu_ld+set}" = set; then
3449 withval="$with_gnu_ld"
3450 test "$withval" = no || with_gnu_ld=yes
3455 if test "$GCC" = yes; then
3456 # Check if gcc -print-prog-name=ld gives a path.
3457 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3458 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3461 # gcc leaves a trailing carriage return which upsets mingw
3462 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3464 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3467 # Accept absolute paths.
3468 [\\/]* | [A-Za-z]:[\\/]*)
3469 re_direlt='/[^/][^/]*/\.\./'
3470 # Canonicalize the path of ld
3471 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3472 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3473 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3475 test -z "$LD" && LD="$ac_prog"
3478 # If it fails, then pretend we aren't using GCC.
3482 # If it is relative, then search for the first ld in PATH.
3486 elif test "$with_gnu_ld" = yes; then
3487 echo "$as_me:$LINENO: checking for GNU ld" >&5
3488 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3490 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3491 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3493 if test "${lt_cv_path_LD+set}" = set; then
3494 echo $ECHO_N "(cached) $ECHO_C" >&6
3496 if test -z "$LD"; then
3497 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3498 for ac_dir in $PATH; do
3499 test -z "$ac_dir" && ac_dir=.
3500 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3501 lt_cv_path_LD="$ac_dir/$ac_prog"
3502 # Check to see if the program is GNU ld. I'd rather use --version,
3503 # but apparently some GNU ld's only accept -v.
3504 # Break only if it was the GNU/non-GNU ld that we prefer.
3505 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3506 test "$with_gnu_ld" != no && break
3508 test "$with_gnu_ld" != yes && break
3514 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3519 if test -n "$LD"; then
3520 echo "$as_me:$LINENO: result: $LD" >&5
3521 echo "${ECHO_T}$LD" >&6
3523 echo "$as_me:$LINENO: result: no" >&5
3524 echo "${ECHO_T}no" >&6
3526 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3527 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3528 { (exit 1); exit 1; }; }
3529 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3530 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3531 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3532 echo $ECHO_N "(cached) $ECHO_C" >&6
3534 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3535 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3536 lt_cv_prog_gnu_ld=yes
3538 lt_cv_prog_gnu_ld=no
3541 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3542 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3543 with_gnu_ld=$lt_cv_prog_gnu_ld
3546 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3547 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3548 if test "${lt_cv_ld_reload_flag+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3551 lt_cv_ld_reload_flag='-r'
3553 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3554 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3555 reload_flag=$lt_cv_ld_reload_flag
3556 test -n "$reload_flag" && reload_flag=" $reload_flag"
3558 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3559 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3560 if test "${lt_cv_path_NM+set}" = set; then
3561 echo $ECHO_N "(cached) $ECHO_C" >&6
3563 if test -n "$NM"; then
3564 # Let the user override the test.
3567 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3568 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3569 test -z "$ac_dir" && ac_dir=.
3570 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3571 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3572 # Check to see if the nm accepts a BSD-compat flag.
3573 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3574 # nm: unknown option "B" ignored
3575 # Tru64's nm complains that /dev/null is an invalid object file
3576 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3577 lt_cv_path_NM="$tmp_nm -B"
3579 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3580 lt_cv_path_NM="$tmp_nm -p"
3583 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3584 continue # so that we can try to find one that supports BSD flags
3589 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3594 echo "$as_me:$LINENO: result: $NM" >&5
3595 echo "${ECHO_T}$NM" >&6
3597 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3598 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3599 if test "${lt_cv_path_SED+set}" = set; then
3600 echo $ECHO_N "(cached) $ECHO_C" >&6
3602 # Loop through the user's path and test for sed and gsed.
3603 # Then use that list of sed's as ones to test for truncation.
3604 as_executable_p="test -f"
3605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609 test -z "$as_dir" && as_dir=.
3610 for ac_prog in sed gsed; do
3611 for ac_exec_ext in '' $ac_executable_extensions; do
3612 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3613 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3619 # Create a temporary directory, and hook for its removal unless debugging.
3622 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3623 trap '{ (exit 1); exit 1; }' 1 2 13 15
3626 # Create a (secure) tmp directory for tmp files.
3629 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3630 test -n "$tmp" && test -d "$tmp"
3633 tmp=$TMPDIR/sed$$-$RANDOM
3634 (umask 077 && mkdir $tmp)
3637 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3638 { (exit 1); exit 1; }
3642 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3643 # along with /bin/sed that truncates output.
3644 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3645 test ! -f ${_sed} && break
3646 cat /dev/null > "$tmp/sed.in"
3648 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3649 # Check for GNU sed and select it if it is found.
3650 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3651 lt_cv_path_SED=${_sed}
3655 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3656 mv "$tmp/sed.tmp" "$tmp/sed.in"
3657 cp "$tmp/sed.in" "$tmp/sed.nl"
3658 echo >>"$tmp/sed.nl"
3659 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3660 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3661 # 40000 chars as input seems more than enough
3662 test $_count -gt 10 && break
3663 _count=`expr $_count + 1`
3664 if test $_count -gt $_max; then
3666 lt_cv_path_SED=$_sed
3674 if test "X$SED" != "X"; then
3679 echo "$as_me:$LINENO: result: $SED" >&5
3680 echo "${ECHO_T}$SED" >&6
3682 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3683 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3684 if test "${lt_cv_deplibs_check_method+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3687 lt_cv_file_magic_cmd='$MAGIC_CMD'
3688 lt_cv_file_magic_test_file=
3689 lt_cv_deplibs_check_method='unknown'
3690 # Need to set the preceding variable on all platforms that support
3691 # interlibrary dependencies.
3692 # 'none' -- dependencies not supported.
3693 # `unknown' -- same as none, but documents that we really don't know.
3694 # 'pass_all' -- all dependencies passed with no checks.
3695 # 'test_compile' -- check by making test program.
3696 # 'file_magic [[regex]]' -- check by looking for files in library path
3697 # which responds to the $file_magic_cmd with a given egrep regex.
3698 # If you have `file' or equivalent on your system and you're not sure
3699 # whether `pass_all' will *always* work, you probably want this one.
3703 lt_cv_deplibs_check_method=pass_all
3707 lt_cv_deplibs_check_method=pass_all
3711 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3712 lt_cv_file_magic_cmd='/usr/bin/file -L'
3713 lt_cv_file_magic_test_file=/shlib/libc.so
3716 cygwin* | mingw* | pw32*)
3717 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3718 lt_cv_file_magic_cmd='$OBJDUMP -f'
3721 darwin* | rhapsody*)
3722 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3723 lt_cv_file_magic_cmd='/usr/bin/file -L'
3725 rhapsody* | darwin1.[012])
3726 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3729 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3735 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3738 # Not sure whether the presence of OpenBSD here was a mistake.
3739 # Let's accept both of them until this is cleared up.
3740 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3741 lt_cv_file_magic_cmd=/usr/bin/file
3742 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3746 lt_cv_deplibs_check_method=pass_all
3751 lt_cv_deplibs_check_method=pass_all
3755 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3756 lt_cv_file_magic_cmd=/usr/bin/file
3757 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3760 irix5* | irix6* | nonstopux*)
3762 irix5* | nonstopux*)
3763 # this will be overridden with pass_all, but let us keep it just in case
3764 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3768 *-32|*"-32 ") libmagic=32-bit;;
3769 *-n32|*"-n32 ") libmagic=N32;;
3770 *-64|*"-64 ") libmagic=64-bit;;
3771 *) libmagic=never-match;;
3773 # this will be overridden with pass_all, but let us keep it just in case
3774 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3777 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3778 lt_cv_deplibs_check_method=pass_all
3781 # This must be Linux ELF.
3784 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
3785 lt_cv_deplibs_check_method=pass_all ;;
3787 # glibc up to 2.1.1 does not perform some relocations on ARM
3788 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3790 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3794 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3795 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3797 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3802 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3803 lt_cv_file_magic_cmd=/usr/bin/file
3804 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3808 lt_cv_file_magic_cmd=/usr/bin/file
3809 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3810 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3811 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3813 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3817 osf3* | osf4* | osf5*)
3818 # this will be overridden with pass_all, but let us keep it just in case
3819 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3820 lt_cv_file_magic_test_file=/shlib/libc.so
3821 lt_cv_deplibs_check_method=pass_all
3825 lt_cv_deplibs_check_method=pass_all
3829 lt_cv_deplibs_check_method=pass_all
3830 lt_cv_file_magic_test_file=/lib/libc.so
3833 sysv5uw[78]* | sysv4*uw2*)
3834 lt_cv_deplibs_check_method=pass_all
3837 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3838 case $host_vendor in
3840 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]'
3841 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3844 lt_cv_deplibs_check_method=pass_all
3847 lt_cv_file_magic_cmd='/bin/file'
3848 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3851 lt_cv_file_magic_cmd='/bin/file'
3852 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3853 lt_cv_file_magic_test_file=/lib/libc.so
3856 lt_cv_deplibs_check_method=pass_all
3863 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3864 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3865 file_magic_cmd=$lt_cv_file_magic_cmd
3866 deplibs_check_method=$lt_cv_deplibs_check_method
3875 # Check for command to grab the raw symbol name followed by C symbol from nm.
3876 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3877 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3878 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3882 # These are sane defaults that work on at least a few old systems.
3883 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3885 # Character class describing NM global symbol codes.
3886 symcode='[BCDEGRST]'
3888 # Regexp to match symbols that can be accessed directly from C.
3889 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3891 # Transform the above into a raw symbol and a C symbol.
3892 symxfrm='\1 \2\3 \3'
3894 # Transform an extracted symbol line into a proper C declaration
3895 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3897 # Transform an extracted symbol line into symbol name and symbol address
3898 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'"
3900 # Define system-specific variables.
3905 cygwin* | mingw* | pw32*)
3906 symcode='[ABCDGISTW]'
3908 hpux*) # Its linker distinguishes data from code symbols
3909 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3910 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'"
3913 symcode='[BCDEGRST]'
3916 symcode='[BCDEGQRST]'
3926 # Handle CRLF in mingw tool chain
3930 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3934 # If we're using GNU nm, then use its standard symbol codes.
3935 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3936 symcode='[ABCDGISTW]'
3939 # Try without a prefix undercore, then with it.
3940 for ac_symprfx in "" "_"; do
3942 # Write the raw and C identifiers.
3943 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3945 # Check to see that the pipe works correctly.
3948 cat > conftest.$ac_ext <<EOF
3953 void nm_test_func(){}
3957 int main(){nm_test_var='a';nm_test_func();return(0);}
3960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3961 (eval $ac_compile) 2>&5
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); }; then
3965 # Now try to grab the symbols.
3967 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3968 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } && test -s "$nlist"; then
3972 # Try sorting and uniquifying the output.
3973 if sort "$nlist" | uniq > "$nlist"T; then
3974 mv -f "$nlist"T "$nlist"
3979 # Make sure that we snagged all the symbols we need.
3980 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3981 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3982 cat <<EOF > conftest.$ac_ext
3988 # Now generate the symbol file.
3989 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3991 cat <<EOF >> conftest.$ac_ext
3992 #if defined (__STDC__) && __STDC__
3993 # define lt_ptr void *
3995 # define lt_ptr char *
3999 /* The mapping between symbol names and symbols. */
4004 lt_preloaded_symbols[] =
4007 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4008 cat <<\EOF >> conftest.$ac_ext
4016 # Now try linking the two files.
4017 mv conftest.$ac_objext conftstm.$ac_objext
4019 save_CFLAGS="$CFLAGS"
4020 LIBS="conftstm.$ac_objext"
4021 CFLAGS="$CFLAGS$no_builtin_flag"
4022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4023 (eval $ac_link) 2>&5
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); } && test -s conftest$ac_exeext; then
4030 CFLAGS="$save_CFLAGS"
4032 echo "cannot find nm_test_func in $nlist" >&5
4035 echo "cannot find nm_test_var in $nlist" >&5
4038 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4041 echo "$progname: failed program was:" >&5
4042 cat conftest.$ac_ext >&5
4044 rm -f conftest* conftst*
4046 # Do not use the global_symbol_pipe unless it works.
4047 if test "$pipe_works" = yes; then
4050 lt_cv_sys_global_symbol_pipe=
4056 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4057 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4058 global_symbol_to_cdecl=
4059 global_symbol_to_c_name_address=
4061 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4062 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4064 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4066 echo "$as_me:$LINENO: result: failed" >&5
4067 echo "${ECHO_T}failed" >&6
4069 echo "$as_me:$LINENO: result: ok" >&5
4070 echo "${ECHO_T}ok" >&6
4074 echo "$as_me:$LINENO: checking for egrep" >&5
4075 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4076 if test "${ac_cv_prog_egrep+set}" = set; then
4077 echo $ECHO_N "(cached) $ECHO_C" >&6
4079 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4080 then ac_cv_prog_egrep='grep -E'
4081 else ac_cv_prog_egrep='egrep'
4084 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4085 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4086 EGREP=$ac_cv_prog_egrep
4089 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4090 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4091 if test "${ac_cv_header_stdc+set}" = set; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4094 cat >conftest.$ac_ext <<_ACEOF
4097 cat confdefs.h >>conftest.$ac_ext
4098 cat >>conftest.$ac_ext <<_ACEOF
4099 /* end confdefs.h. */
4113 rm -f conftest.$ac_objext
4114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4115 (eval $ac_compile) 2>conftest.er1
4117 grep -v '^ *+' conftest.er1 >conftest.err
4119 cat conftest.err >&5
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); } &&
4122 { ac_try='test -z "$ac_c_werror_flag"
4123 || test ! -s conftest.err'
4124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); }; } &&
4129 { ac_try='test -s conftest.$ac_objext'
4130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); }; }; then
4135 ac_cv_header_stdc=yes
4137 echo "$as_me: failed program was:" >&5
4138 sed 's/^/| /' conftest.$ac_ext >&5
4140 ac_cv_header_stdc=no
4142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4144 if test $ac_cv_header_stdc = yes; then
4145 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4146 cat >conftest.$ac_ext <<_ACEOF
4149 cat confdefs.h >>conftest.$ac_ext
4150 cat >>conftest.$ac_ext <<_ACEOF
4151 /* end confdefs.h. */
4155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4156 $EGREP "memchr" >/dev/null 2>&1; then
4159 ac_cv_header_stdc=no
4165 if test $ac_cv_header_stdc = yes; then
4166 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4167 cat >conftest.$ac_ext <<_ACEOF
4170 cat confdefs.h >>conftest.$ac_ext
4171 cat >>conftest.$ac_ext <<_ACEOF
4172 /* end confdefs.h. */
4176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4177 $EGREP "free" >/dev/null 2>&1; then
4180 ac_cv_header_stdc=no
4186 if test $ac_cv_header_stdc = yes; then
4187 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4188 if test "$cross_compiling" = yes; then
4191 cat >conftest.$ac_ext <<_ACEOF
4194 cat confdefs.h >>conftest.$ac_ext
4195 cat >>conftest.$ac_ext <<_ACEOF
4196 /* end confdefs.h. */
4198 #if ((' ' & 0x0FF) == 0x020)
4199 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4200 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4202 # define ISLOWER(c) \
4203 (('a' <= (c) && (c) <= 'i') \
4204 || ('j' <= (c) && (c) <= 'r') \
4205 || ('s' <= (c) && (c) <= 'z'))
4206 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4209 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4214 for (i = 0; i < 256; i++)
4215 if (XOR (islower (i), ISLOWER (i))
4216 || toupper (i) != TOUPPER (i))
4221 rm -f conftest$ac_exeext
4222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4223 (eval $ac_link) 2>&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); }; }; then
4234 echo "$as_me: program exited with status $ac_status" >&5
4235 echo "$as_me: failed program was:" >&5
4236 sed 's/^/| /' conftest.$ac_ext >&5
4239 ac_cv_header_stdc=no
4241 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4245 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4246 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4247 if test $ac_cv_header_stdc = yes; then
4249 cat >>confdefs.h <<\_ACEOF
4250 #define STDC_HEADERS 1
4255 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4265 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4266 inttypes.h stdint.h unistd.h
4268 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4269 echo "$as_me:$LINENO: checking for $ac_header" >&5
4270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 cat >conftest.$ac_ext <<_ACEOF
4277 cat confdefs.h >>conftest.$ac_ext
4278 cat >>conftest.$ac_ext <<_ACEOF
4279 /* end confdefs.h. */
4280 $ac_includes_default
4282 #include <$ac_header>
4284 rm -f conftest.$ac_objext
4285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4286 (eval $ac_compile) 2>conftest.er1
4288 grep -v '^ *+' conftest.er1 >conftest.err
4290 cat conftest.err >&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); } &&
4293 { ac_try='test -z "$ac_c_werror_flag"
4294 || test ! -s conftest.err'
4295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; } &&
4300 { ac_try='test -s conftest.$ac_objext'
4301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; }; then
4306 eval "$as_ac_Header=yes"
4308 echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4311 eval "$as_ac_Header=no"
4313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4318 cat >>confdefs.h <<_ACEOF
4319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4328 for ac_header in dlfcn.h
4330 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4332 echo "$as_me:$LINENO: checking for $ac_header" >&5
4333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4335 echo $ECHO_N "(cached) $ECHO_C" >&6
4337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4338 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4340 # Is the header compilable?
4341 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4343 cat >conftest.$ac_ext <<_ACEOF
4346 cat confdefs.h >>conftest.$ac_ext
4347 cat >>conftest.$ac_ext <<_ACEOF
4348 /* end confdefs.h. */
4349 $ac_includes_default
4350 #include <$ac_header>
4352 rm -f conftest.$ac_objext
4353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4354 (eval $ac_compile) 2>conftest.er1
4356 grep -v '^ *+' conftest.er1 >conftest.err
4358 cat conftest.err >&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); } &&
4361 { ac_try='test -z "$ac_c_werror_flag"
4362 || test ! -s conftest.err'
4363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }; } &&
4368 { ac_try='test -s conftest.$ac_objext'
4369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; }; then
4374 ac_header_compiler=yes
4376 echo "$as_me: failed program was:" >&5
4377 sed 's/^/| /' conftest.$ac_ext >&5
4379 ac_header_compiler=no
4381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4382 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4383 echo "${ECHO_T}$ac_header_compiler" >&6
4385 # Is the header present?
4386 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4387 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4388 cat >conftest.$ac_ext <<_ACEOF
4391 cat confdefs.h >>conftest.$ac_ext
4392 cat >>conftest.$ac_ext <<_ACEOF
4393 /* end confdefs.h. */
4394 #include <$ac_header>
4396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4399 grep -v '^ *+' conftest.er1 >conftest.err
4401 cat conftest.err >&5
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); } >/dev/null; then
4404 if test -s conftest.err; then
4405 ac_cpp_err=$ac_c_preproc_warn_flag
4406 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4413 if test -z "$ac_cpp_err"; then
4414 ac_header_preproc=yes
4416 echo "$as_me: failed program was:" >&5
4417 sed 's/^/| /' conftest.$ac_ext >&5
4419 ac_header_preproc=no
4421 rm -f conftest.err conftest.$ac_ext
4422 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4423 echo "${ECHO_T}$ac_header_preproc" >&6
4425 # So? What about this header?
4426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4431 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4432 ac_header_preproc=yes
4435 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4436 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4437 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4438 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4439 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4440 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4441 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4442 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4445 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4446 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4449 ## ------------------------------------------ ##
4450 ## Report this to the AC_PACKAGE_NAME lists. ##
4451 ## ------------------------------------------ ##
4454 sed "s/^/$as_me: WARNING: /" >&2
4457 echo "$as_me:$LINENO: checking for $ac_header" >&5
4458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4462 eval "$as_ac_Header=\$ac_header_preproc"
4464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4469 cat >>confdefs.h <<_ACEOF
4470 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4482 # Only perform the check for file, if the check method requires it
4483 case $deplibs_check_method in
4485 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4486 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4487 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4488 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
4493 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4496 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4499 ac_save_MAGIC_CMD="$MAGIC_CMD"
4500 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4501 ac_dummy="/usr/bin:$PATH"
4502 for ac_dir in $ac_dummy; do
4503 test -z "$ac_dir" && ac_dir=.
4504 if test -f $ac_dir/${ac_tool_prefix}file; then
4505 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4506 if test -n "$file_magic_test_file"; then
4507 case $deplibs_check_method in
4509 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4510 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4511 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4512 egrep "$file_magic_regex" > /dev/null; then
4517 *** Warning: the command libtool uses to detect shared libraries,
4518 *** $file_magic_cmd, produces output that libtool cannot recognize.
4519 *** The result is that libtool may fail to recognize shared libraries
4520 *** as such. This will affect the creation of libtool libraries that
4521 *** depend on shared libraries, but programs linked with such libtool
4522 *** libraries will work regardless of this problem. Nevertheless, you
4523 *** may want to report the problem to your system manager and/or to
4524 *** bug-libtool@gnu.org
4534 MAGIC_CMD="$ac_save_MAGIC_CMD"
4539 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4540 if test -n "$MAGIC_CMD"; then
4541 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4542 echo "${ECHO_T}$MAGIC_CMD" >&6
4544 echo "$as_me:$LINENO: result: no" >&5
4545 echo "${ECHO_T}no" >&6
4548 if test -z "$lt_cv_path_MAGIC_CMD"; then
4549 if test -n "$ac_tool_prefix"; then
4550 echo "$as_me:$LINENO: checking for file" >&5
4551 echo $ECHO_N "checking for file... $ECHO_C" >&6
4552 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4557 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4560 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4563 ac_save_MAGIC_CMD="$MAGIC_CMD"
4564 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4565 ac_dummy="/usr/bin:$PATH"
4566 for ac_dir in $ac_dummy; do
4567 test -z "$ac_dir" && ac_dir=.
4568 if test -f $ac_dir/file; then
4569 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4570 if test -n "$file_magic_test_file"; then
4571 case $deplibs_check_method in
4573 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4574 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4575 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4576 egrep "$file_magic_regex" > /dev/null; then
4581 *** Warning: the command libtool uses to detect shared libraries,
4582 *** $file_magic_cmd, produces output that libtool cannot recognize.
4583 *** The result is that libtool may fail to recognize shared libraries
4584 *** as such. This will affect the creation of libtool libraries that
4585 *** depend on shared libraries, but programs linked with such libtool
4586 *** libraries will work regardless of this problem. Nevertheless, you
4587 *** may want to report the problem to your system manager and/or to
4588 *** bug-libtool@gnu.org
4598 MAGIC_CMD="$ac_save_MAGIC_CMD"
4603 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4604 if test -n "$MAGIC_CMD"; then
4605 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4606 echo "${ECHO_T}$MAGIC_CMD" >&6
4608 echo "$as_me:$LINENO: result: no" >&5
4609 echo "${ECHO_T}no" >&6
4621 if test -n "$ac_tool_prefix"; then
4622 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4623 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4624 echo "$as_me:$LINENO: checking for $ac_word" >&5
4625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4626 if test "${ac_cv_prog_RANLIB+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4629 if test -n "$RANLIB"; then
4630 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 test -z "$as_dir" && as_dir=.
4637 for ac_exec_ext in '' $ac_executable_extensions; do
4638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4639 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4648 RANLIB=$ac_cv_prog_RANLIB
4649 if test -n "$RANLIB"; then
4650 echo "$as_me:$LINENO: result: $RANLIB" >&5
4651 echo "${ECHO_T}$RANLIB" >&6
4653 echo "$as_me:$LINENO: result: no" >&5
4654 echo "${ECHO_T}no" >&6
4658 if test -z "$ac_cv_prog_RANLIB"; then
4659 ac_ct_RANLIB=$RANLIB
4660 # Extract the first word of "ranlib", so it can be a program name with args.
4661 set dummy ranlib; ac_word=$2
4662 echo "$as_me:$LINENO: checking for $ac_word" >&5
4663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4664 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
4667 if test -n "$ac_ct_RANLIB"; then
4668 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4677 ac_cv_prog_ac_ct_RANLIB="ranlib"
4678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4684 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4687 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4688 if test -n "$ac_ct_RANLIB"; then
4689 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4690 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4692 echo "$as_me:$LINENO: result: no" >&5
4693 echo "${ECHO_T}no" >&6
4696 RANLIB=$ac_ct_RANLIB
4698 RANLIB="$ac_cv_prog_RANLIB"
4701 if test -n "$ac_tool_prefix"; then
4702 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4703 set dummy ${ac_tool_prefix}strip; ac_word=$2
4704 echo "$as_me:$LINENO: checking for $ac_word" >&5
4705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4706 if test "${ac_cv_prog_STRIP+set}" = set; then
4707 echo $ECHO_N "(cached) $ECHO_C" >&6
4709 if test -n "$STRIP"; then
4710 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716 test -z "$as_dir" && as_dir=.
4717 for ac_exec_ext in '' $ac_executable_extensions; do
4718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4719 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4728 STRIP=$ac_cv_prog_STRIP
4729 if test -n "$STRIP"; then
4730 echo "$as_me:$LINENO: result: $STRIP" >&5
4731 echo "${ECHO_T}$STRIP" >&6
4733 echo "$as_me:$LINENO: result: no" >&5
4734 echo "${ECHO_T}no" >&6
4738 if test -z "$ac_cv_prog_STRIP"; then
4740 # Extract the first word of "strip", so it can be a program name with args.
4741 set dummy strip; ac_word=$2
4742 echo "$as_me:$LINENO: checking for $ac_word" >&5
4743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4744 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 if test -n "$ac_ct_STRIP"; then
4748 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 test -z "$as_dir" && as_dir=.
4755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4757 ac_cv_prog_ac_ct_STRIP="strip"
4758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4764 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4767 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4768 if test -n "$ac_ct_STRIP"; then
4769 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4770 echo "${ECHO_T}$ac_ct_STRIP" >&6
4772 echo "$as_me:$LINENO: result: no" >&5
4773 echo "${ECHO_T}no" >&6
4778 STRIP="$ac_cv_prog_STRIP"
4785 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4786 if test "${enable_libtool_lock+set}" = set; then
4787 enableval="$enable_libtool_lock"
4790 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4792 # Some flags need to be propagated to the compiler or linker for good
4796 # Find out which ABI we are using.
4797 echo '#line 4797 "configure"' > conftest.$ac_ext
4798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4799 (eval $ac_compile) 2>&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; then
4803 case `/usr/bin/file conftest.$ac_objext` in
4819 # Test if the compiler is 64bit
4820 echo 'int i;' > conftest.$ac_ext
4821 lt_cv_cc_64bit_output=no
4822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4823 (eval $ac_compile) 2>&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }; then
4827 case `/usr/bin/file conftest.$ac_objext` in
4829 lt_cv_cc_64bit_output=yes
4837 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4838 SAVE_CFLAGS="$CFLAGS"
4839 CFLAGS="$CFLAGS -belf"
4840 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4841 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4842 if test "${lt_cv_cc_needs_belf+set}" = set; then
4843 echo $ECHO_N "(cached) $ECHO_C" >&6
4848 ac_cpp='$CPP $CPPFLAGS'
4849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4853 cat >conftest.$ac_ext <<_ACEOF
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h. */
4868 rm -f conftest.$ac_objext conftest$ac_exeext
4869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4870 (eval $ac_link) 2>conftest.er1
4872 grep -v '^ *+' conftest.er1 >conftest.err
4874 cat conftest.err >&5
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); } &&
4877 { ac_try='test -z "$ac_c_werror_flag"
4878 || test ! -s conftest.err'
4879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); }; } &&
4884 { ac_try='test -s conftest$ac_exeext'
4885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); }; }; then
4890 lt_cv_cc_needs_belf=yes
4892 echo "$as_me: failed program was:" >&5
4893 sed 's/^/| /' conftest.$ac_ext >&5
4895 lt_cv_cc_needs_belf=no
4897 rm -f conftest.err conftest.$ac_objext \
4898 conftest$ac_exeext conftest.$ac_ext
4900 ac_cpp='$CPP $CPPFLAGS'
4901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4906 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4907 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4908 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4909 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4910 CFLAGS="$SAVE_CFLAGS"
4917 # Sed substitution that helps us do robust quoting. It backslashifies
4918 # metacharacters that are still active within double-quoted strings.
4919 Xsed='sed -e s/^X//'
4920 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4922 # Same as above, but do not quote variable references.
4923 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4925 # Sed substitution to delay expansion of an escaped shell variable in a
4926 # double_quote_subst'ed string.
4927 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4933 default_ofile=libtool
4934 can_build_shared=yes
4936 # All known linkers require a `.a' archive for static linking (except M$VC,
4937 # which needs '.lib').
4939 ltmain="$ac_aux_dir/ltmain.sh"
4940 ofile="$default_ofile"
4941 with_gnu_ld="$lt_cv_prog_gnu_ld"
4942 need_locks="$enable_libtool_lock"
4945 old_CFLAGS="$CFLAGS"
4947 # Set sane defaults for various variables
4948 test -z "$AR" && AR=ar
4949 test -z "$AR_FLAGS" && AR_FLAGS=cru
4950 test -z "$AS" && AS=as
4951 test -z "$CC" && CC=cc
4952 test -z "$DLLTOOL" && DLLTOOL=dlltool
4953 test -z "$LD" && LD=ld
4954 test -z "$LN_S" && LN_S="ln -s"
4955 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4956 test -z "$NM" && NM=nm
4957 test -z "$OBJDUMP" && OBJDUMP=objdump
4958 test -z "$RANLIB" && RANLIB=:
4959 test -z "$STRIP" && STRIP=:
4960 test -z "$ac_objext" && ac_objext=o
4962 if test x"$host" != x"$build"; then
4963 ac_tool_prefix=${host_alias}-
4968 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4971 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4976 # AIX sometimes has problems with the GCC collect2 program. For some
4977 # reason, if we set the COLLECT_NAMES environment variable, the problems
4978 # vanish in a puff of smoke.
4979 if test "X${COLLECT_NAMES+set}" != Xset; then
4981 export COLLECT_NAMES
4986 # Determine commands to create old-style static archives.
4987 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4988 old_postinstall_cmds='chmod 644 $oldlib'
4989 old_postuninstall_cmds=
4991 if test -n "$RANLIB"; then
4994 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4997 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5000 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5003 # Allow CC to be a program name with arguments.
5007 echo "$as_me:$LINENO: checking for objdir" >&5
5008 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5009 rm -f .libs 2>/dev/null
5010 mkdir .libs 2>/dev/null
5011 if test -d .libs; then
5014 # MS-DOS does not allow filenames that begin with a dot.
5017 rmdir .libs 2>/dev/null
5018 echo "$as_me:$LINENO: result: $objdir" >&5
5019 echo "${ECHO_T}$objdir" >&6
5023 # Check whether --with-pic or --without-pic was given.
5024 if test "${with_pic+set}" = set; then
5030 test -z "$pic_mode" && pic_mode=default
5032 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5033 # in isolation, and that seeing it set (from the cache) indicates that
5034 # the associated values are set (in the cache) correctly too.
5035 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5036 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5037 if test "${lt_cv_prog_cc_pic+set}" = set; then
5038 echo $ECHO_N "(cached) $ECHO_C" >&6
5041 lt_cv_prog_cc_shlib=
5043 lt_cv_prog_cc_static=
5044 lt_cv_prog_cc_no_builtin=
5045 lt_cv_prog_cc_can_build_shared=$can_build_shared
5047 if test "$GCC" = yes; then
5048 lt_cv_prog_cc_wl='-Wl,'
5049 lt_cv_prog_cc_static='-static'
5053 # Below there is a dirty hack to force normal static linking with -ldl
5054 # The problem is because libdl dynamically linked with both libc and
5055 # libC (AIX C++ library), which obviously doesn't included in libraries
5056 # list by gcc. This cause undefined symbols with -static flags.
5057 # This hack allows C programs to be linked with "-static -ldl", but
5058 # not sure about C++ programs.
5059 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5062 # FIXME: we need at least 68020 code to build shared libraries, but
5063 # adding the `-m68020' flag to GCC prevents building anything better,
5065 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5067 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5068 # PIC is the default for these OSes.
5070 darwin* | rhapsody*)
5071 # PIC is the default on this platform
5072 # Common symbols not allowed in MH_DYLIB files
5073 lt_cv_prog_cc_pic='-fno-common'
5075 cygwin* | mingw* | pw32* | os2*)
5076 # This hack is so that the source file can tell whether it is being
5077 # built for inclusion in a dll (and should export symbols for example).
5078 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5081 if test -d /usr/nec; then
5082 lt_cv_prog_cc_pic=-Kconform_pic
5086 lt_cv_prog_cc_pic='-fPIC'
5090 # PORTME Check for PIC flags for the system compiler.
5092 aix3* | aix4* | aix5*)
5093 lt_cv_prog_cc_wl='-Wl,'
5094 # All AIX code is PIC.
5095 if test "$host_cpu" = ia64; then
5096 # AIX 5 now supports IA64 processor
5097 lt_cv_prog_cc_static='-Bstatic'
5099 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5103 hpux9* | hpux10* | hpux11*)
5104 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5105 lt_cv_prog_cc_wl='-Wl,'
5106 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5107 lt_cv_prog_cc_pic='+Z'
5110 irix5* | irix6* | nonstopux*)
5111 lt_cv_prog_cc_wl='-Wl,'
5112 lt_cv_prog_cc_static='-non_shared'
5113 # PIC (with -KPIC) is the default.
5116 cygwin* | mingw* | pw32* | os2*)
5117 # This hack is so that the source file can tell whether it is being
5118 # built for inclusion in a dll (and should export symbols for example).
5119 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5123 lt_cv_prog_cc_pic='-KPIC'
5124 lt_cv_prog_cc_static='-Bstatic'
5127 osf3* | osf4* | osf5*)
5128 # All OSF/1 code is PIC.
5129 lt_cv_prog_cc_wl='-Wl,'
5130 lt_cv_prog_cc_static='-non_shared'
5134 lt_cv_prog_cc_pic='-Kpic'
5135 lt_cv_prog_cc_static='-dn'
5136 lt_cv_prog_cc_shlib='-belf'
5140 lt_cv_prog_cc_pic='-KPIC'
5141 lt_cv_prog_cc_static='-Bstatic'
5142 lt_cv_prog_cc_wl='-Wl,'
5146 lt_cv_prog_cc_pic='-PIC'
5147 lt_cv_prog_cc_static='-Bstatic'
5148 lt_cv_prog_cc_wl='-Qoption ld '
5151 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5152 lt_cv_prog_cc_pic='-KPIC'
5153 lt_cv_prog_cc_static='-Bstatic'
5154 lt_cv_prog_cc_wl='-Wl,'
5158 lt_cv_prog_cc_pic='-pic'
5159 lt_cv_prog_cc_static='-Bstatic'
5163 if test -d /usr/nec ;then
5164 lt_cv_prog_cc_pic='-Kconform_pic'
5165 lt_cv_prog_cc_static='-Bstatic'
5170 lt_cv_prog_cc_can_build_shared=no
5177 if test -z "$lt_cv_prog_cc_pic"; then
5178 echo "$as_me:$LINENO: result: none" >&5
5179 echo "${ECHO_T}none" >&6
5181 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5182 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5184 # Check to make sure the pic_flag actually works.
5185 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5186 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5187 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5188 echo $ECHO_N "(cached) $ECHO_C" >&6
5190 save_CFLAGS="$CFLAGS"
5191 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5192 cat >conftest.$ac_ext <<_ACEOF
5195 cat confdefs.h >>conftest.$ac_ext
5196 cat >>conftest.$ac_ext <<_ACEOF
5197 /* end confdefs.h. */
5207 rm -f conftest.$ac_objext
5208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5209 (eval $ac_compile) 2>conftest.er1
5211 grep -v '^ *+' conftest.er1 >conftest.err
5213 cat conftest.err >&5
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); } &&
5216 { ac_try='test -z "$ac_c_werror_flag"
5217 || test ! -s conftest.err'
5218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); }; } &&
5223 { ac_try='test -s conftest.$ac_objext'
5224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); }; }; then
5230 hpux9* | hpux10* | hpux11*)
5231 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5232 # they create non-PIC objects. So, if there were any warnings, we
5233 # assume that PIC is not supported.
5234 if test -s conftest.err; then
5235 lt_cv_prog_cc_pic_works=no
5237 lt_cv_prog_cc_pic_works=yes
5241 lt_cv_prog_cc_pic_works=yes
5246 echo "$as_me: failed program was:" >&5
5247 sed 's/^/| /' conftest.$ac_ext >&5
5249 lt_cv_prog_cc_pic_works=no
5252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5253 CFLAGS="$save_CFLAGS"
5258 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5260 lt_cv_prog_cc_can_build_shared=no
5262 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5265 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5266 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5269 # Check for any special shared library compilation flags.
5270 if test -n "$lt_cv_prog_cc_shlib"; then
5271 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5272 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5273 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5275 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5276 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5277 lt_cv_prog_cc_can_build_shared=no
5281 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5282 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5283 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5284 echo $ECHO_N "(cached) $ECHO_C" >&6
5286 lt_cv_prog_cc_static_works=no
5287 save_LDFLAGS="$LDFLAGS"
5288 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5289 cat >conftest.$ac_ext <<_ACEOF
5292 cat confdefs.h >>conftest.$ac_ext
5293 cat >>conftest.$ac_ext <<_ACEOF
5294 /* end confdefs.h. */
5304 rm -f conftest.$ac_objext conftest$ac_exeext
5305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5306 (eval $ac_link) 2>conftest.er1
5308 grep -v '^ *+' conftest.er1 >conftest.err
5310 cat conftest.err >&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); } &&
5313 { ac_try='test -z "$ac_c_werror_flag"
5314 || test ! -s conftest.err'
5315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }; } &&
5320 { ac_try='test -s conftest$ac_exeext'
5321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); }; }; then
5326 lt_cv_prog_cc_static_works=yes
5328 echo "$as_me: failed program was:" >&5
5329 sed 's/^/| /' conftest.$ac_ext >&5
5332 rm -f conftest.err conftest.$ac_objext \
5333 conftest$ac_exeext conftest.$ac_ext
5334 LDFLAGS="$save_LDFLAGS"
5339 # Belt *and* braces to stop my trousers falling down:
5340 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5341 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5342 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5344 pic_flag="$lt_cv_prog_cc_pic"
5345 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5346 wl="$lt_cv_prog_cc_wl"
5347 link_static_flag="$lt_cv_prog_cc_static"
5348 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5349 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5352 # Check to see if options -o and -c are simultaneously supported by compiler
5353 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5354 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5355 if test "${lt_cv_compiler_c_o+set}" = set; then
5356 echo $ECHO_N "(cached) $ECHO_C" >&6
5359 $rm -r conftest 2>/dev/null
5362 echo "int some_variable = 0;" > conftest.$ac_ext
5364 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5365 # that will create temporary files in the current directory regardless of
5366 # the output directory. Thus, making CWD read-only will cause this test
5367 # to fail, enabling locking or at least warning the user not to do parallel
5370 save_CFLAGS="$CFLAGS"
5371 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5373 if { (eval echo configure:5373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5374 # The compiler can only warn and ignore the option if not recognized
5375 # So say no if there are warnings
5376 if test -s out/conftest.err; then
5377 lt_cv_compiler_c_o=no
5379 lt_cv_compiler_c_o=yes
5382 # Append any errors to the config.log.
5383 cat out/conftest.err 1>&5
5384 lt_cv_compiler_c_o=no
5386 CFLAGS="$save_CFLAGS"
5392 $rm -r conftest 2>/dev/null
5396 compiler_c_o=$lt_cv_compiler_c_o
5397 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5398 echo "${ECHO_T}$compiler_c_o" >&6
5400 if test x"$compiler_c_o" = x"yes"; then
5401 # Check to see if we can write to a .lo
5402 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5403 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5404 if test "${lt_cv_compiler_o_lo+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5408 lt_cv_compiler_o_lo=no
5409 save_CFLAGS="$CFLAGS"
5410 CFLAGS="$CFLAGS -c -o conftest.lo"
5411 save_objext="$ac_objext"
5413 cat >conftest.$ac_ext <<_ACEOF
5416 cat confdefs.h >>conftest.$ac_ext
5417 cat >>conftest.$ac_ext <<_ACEOF
5418 /* end confdefs.h. */
5423 int some_variable = 0;
5428 rm -f conftest.$ac_objext
5429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5430 (eval $ac_compile) 2>conftest.er1
5432 grep -v '^ *+' conftest.er1 >conftest.err
5434 cat conftest.err >&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); } &&
5437 { ac_try='test -z "$ac_c_werror_flag"
5438 || test ! -s conftest.err'
5439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; } &&
5444 { ac_try='test -s conftest.$ac_objext'
5445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); }; }; then
5450 # The compiler can only warn and ignore the option if not recognized
5451 # So say no if there are warnings
5452 if test -s conftest.err; then
5453 lt_cv_compiler_o_lo=no
5455 lt_cv_compiler_o_lo=yes
5459 echo "$as_me: failed program was:" >&5
5460 sed 's/^/| /' conftest.$ac_ext >&5
5463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5464 ac_objext="$save_objext"
5465 CFLAGS="$save_CFLAGS"
5469 compiler_o_lo=$lt_cv_compiler_o_lo
5470 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5471 echo "${ECHO_T}$compiler_o_lo" >&6
5476 # Check to see if we can do hard links to lock some files if needed
5477 hard_links="nottested"
5478 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5479 # do not overwrite the value of need_locks provided by the user
5480 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5481 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5484 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5486 ln conftest.a conftest.b 2>&5 || hard_links=no
5487 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5488 echo "$as_me:$LINENO: result: $hard_links" >&5
5489 echo "${ECHO_T}$hard_links" >&6
5490 if test "$hard_links" = no; then
5491 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5492 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5499 if test "$GCC" = yes; then
5500 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5501 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5502 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5503 echo "int some_variable = 0;" > conftest.$ac_ext
5504 save_CFLAGS="$CFLAGS"
5505 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5506 compiler_rtti_exceptions=no
5507 cat >conftest.$ac_ext <<_ACEOF
5510 cat confdefs.h >>conftest.$ac_ext
5511 cat >>conftest.$ac_ext <<_ACEOF
5512 /* end confdefs.h. */
5517 int some_variable = 0;
5522 rm -f conftest.$ac_objext
5523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5524 (eval $ac_compile) 2>conftest.er1
5526 grep -v '^ *+' conftest.er1 >conftest.err
5528 cat conftest.err >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); } &&
5531 { ac_try='test -z "$ac_c_werror_flag"
5532 || test ! -s conftest.err'
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; } &&
5538 { ac_try='test -s conftest.$ac_objext'
5539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); }; }; then
5544 # The compiler can only warn and ignore the option if not recognized
5545 # So say no if there are warnings
5546 if test -s conftest.err; then
5547 compiler_rtti_exceptions=no
5549 compiler_rtti_exceptions=yes
5553 echo "$as_me: failed program was:" >&5
5554 sed 's/^/| /' conftest.$ac_ext >&5
5557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5558 CFLAGS="$save_CFLAGS"
5559 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5560 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5562 if test "$compiler_rtti_exceptions" = "yes"; then
5563 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5565 no_builtin_flag=' -fno-builtin'
5569 # See if the linker supports building shared libraries.
5570 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5571 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5573 allow_undefined_flag=
5575 need_lib_prefix=unknown
5576 need_version=unknown
5577 # when you set need_version to no, make sure it does not cause -set_version
5578 # flags to be left without arguments
5580 archive_expsym_cmds=
5581 old_archive_from_new_cmds=
5582 old_archive_from_expsyms_cmds=
5583 export_dynamic_flag_spec=
5584 whole_archive_flag_spec=
5585 thread_safe_flag_spec=
5586 hardcode_into_libs=no
5587 hardcode_libdir_flag_spec=
5588 hardcode_libdir_separator=
5591 hardcode_shlibpath_var=unsupported
5593 link_all_deplibs=unknown
5594 always_export_symbols=no
5595 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5596 # include_expsyms should be a list of space-separated symbols to be *always*
5597 # included in the symbol list
5599 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5600 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5601 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5602 # as well as any symbol that contains `d'.
5603 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5604 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5605 # platforms (ab)use it in PIC code, but their linkers get confused if
5606 # the symbol is explicitly referenced. Since portable code cannot
5607 # rely on this symbol name, it's probably fine to never include it in
5608 # preloaded symbol tables.
5609 extract_expsyms_cmds=
5612 cygwin* | mingw* | pw32*)
5613 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5614 # When not using gcc, we currently assume that we are using
5615 # Microsoft Visual C++.
5616 if test "$GCC" != yes; then
5626 if test "$with_gnu_ld" = yes; then
5627 # If archive_cmds runs LD, not CC, wlarc should be empty
5630 # See if GNU ld supports shared libraries.
5632 aix3* | aix4* | aix5*)
5633 # On AIX, the GNU linker is very broken
5634 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5638 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5639 *** to be unable to reliably create shared libraries on AIX.
5640 *** Therefore, libtool is disabling shared libraries support. If you
5641 *** really care for shared libraries, you may want to modify your PATH
5642 *** so that a non-GNU linker is found, and then restart.
5648 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)'
5649 hardcode_libdir_flag_spec='-L$libdir'
5650 hardcode_minus_L=yes
5652 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5653 # that the semantics of dynamic libraries on AmigaOS, at least up
5654 # to version 4, is to share data among multiple programs linked
5655 # with the same dynamic library. Since this doesn't match the
5656 # behavior of shared libraries on other platforms, we can use
5662 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5663 allow_undefined_flag=unsupported
5664 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5665 # support --undefined. This deserves some investigation. FIXME
5666 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5672 cygwin* | mingw* | pw32*)
5673 # hardcode_libdir_flag_spec is actually meaningless, as there is
5674 # no search path for DLLs.
5675 hardcode_libdir_flag_spec='-L$libdir'
5676 allow_undefined_flag=unsupported
5677 always_export_symbols=yes
5679 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5680 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5681 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5682 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5683 else $CC -o impgen impgen.c ; fi)~
5684 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5686 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5688 # cygwin and mingw dlls have different entry points and sets of symbols
5690 # FIXME: what about values for MSVC?
5691 dll_entry=__cygwin_dll_entry@12
5692 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5696 dll_entry=_DllMainCRTStartup@12
5697 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5701 # mingw and cygwin differ, and it's simplest to just exclude the union
5702 # of the two symbol sets.
5703 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5705 # recent cygwin and mingw systems supply a stub DllMain which the user
5706 # can override, but on older systems we have to supply one (in ltdll.c)
5707 if test "x$lt_cv_need_dllmain" = "xyes"; then
5708 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5709 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~
5710 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5716 # Extract the symbol export list from an `--export-all' def file,
5717 # then regenerate the def file from the symbol export list, so that
5718 # the compiled dll only exports the symbol export list.
5719 # Be careful not to strip the DATA tag left be newer dlltools.
5720 export_symbols_cmds="$ltdll_cmds"'
5721 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5722 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5724 # If the export-symbols file already is a .def file (1st line
5725 # is EXPORTS), use it as is.
5726 # If DATA tags from a recent dlltool are present, honour them!
5727 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5728 cp $export_symbols $output_objdir/$soname-def;
5730 echo EXPORTS > $output_objdir/$soname-def;
5732 cat $export_symbols | while read symbol; do
5735 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5736 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5737 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5739 _lt_hint=`expr 1 + \$_lt_hint`;
5743 $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~
5744 $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~
5745 $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~
5746 $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~
5747 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5751 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5752 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5755 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5756 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5761 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5765 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5766 *** create shared libraries on Solaris systems. Therefore, libtool
5767 *** is disabling shared libraries support. We urge you to upgrade GNU
5768 *** binutils to release 2.9.1 or newer. Another option is to modify
5769 *** your PATH or compiler configuration so that the native linker is
5770 *** used, and then restart.
5773 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5774 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5775 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5782 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5785 hardcode_shlibpath_var=no
5789 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5790 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5791 supports_anon_versioning=no
5792 case `$LD -v 2>/dev/null` in
5793 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
5794 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5795 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5796 *\ 2.11.*) ;; # other 2.11 versions
5797 *) supports_anon_versioning=yes ;;
5799 if test $supports_anon_versioning = yes; then
5800 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
5801 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5802 $echo "local: *; };" >> $output_objdir/$libname.ver~
5803 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5805 $archive_expsym_cmds="$archive_cmds"
5813 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5814 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5815 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5822 if test "$ld_shlibs" = yes; then
5823 runpath_var=LD_RUN_PATH
5824 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5825 export_dynamic_flag_spec='${wl}--export-dynamic'
5827 cygwin* | mingw* | pw32*)
5828 # dlltool doesn't understand --whole-archive et. al.
5829 whole_archive_flag_spec=
5832 # ancient GNU ld didn't support --whole-archive et. al.
5833 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5834 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5836 whole_archive_flag_spec=
5842 # PORTME fill in a description of your system's linker (not GNU ld)
5845 allow_undefined_flag=unsupported
5846 always_export_symbols=yes
5847 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'
5848 # Note: this linker hardcodes the directories in LIBPATH if there
5849 # are no directories specified by -L.
5850 hardcode_minus_L=yes
5851 if test "$GCC" = yes && test -z "$link_static_flag"; then
5852 # Neither direct hardcoding nor static linking is supported with a
5854 hardcode_direct=unsupported
5859 if test "$host_cpu" = ia64; then
5860 # On IA64, the linker does run time linking by default, so we don't
5861 # have to do anything special.
5862 aix_use_runtimelinking=no
5863 exp_sym_flag='-Bexport'
5866 aix_use_runtimelinking=no
5868 # Test if we are trying to use run time linking or normal
5869 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5870 # need to do runtime linking.
5871 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5872 for ld_flag in $LDFLAGS; do
5875 aix_use_runtimelinking=yes
5882 exp_sym_flag='-bexport'
5883 no_entry_flag='-bnoentry'
5886 # When large executables or shared objects are built, AIX ld can
5887 # have problems creating the table of contents. If linking a library
5888 # or program results in "error TOC overflow" add -mminimal-toc to
5889 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5890 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5894 hardcode_libdir_separator=':'
5895 if test "$GCC" = yes; then
5896 case $host_os in aix4.[012]|aix4.[012].*)
5897 collect2name=`${CC} -print-prog-name=collect2`
5898 if test -f "$collect2name" && \
5899 strings "$collect2name" | grep resolve_lib_name >/dev/null
5901 # We have reworked collect2
5904 # We have old collect2
5905 hardcode_direct=unsupported
5906 # It fails to find uninstalled libraries when the uninstalled
5907 # path is not listed in the libpath. Setting hardcode_minus_L
5908 # to unsupported forces relinking
5909 hardcode_minus_L=yes
5910 hardcode_libdir_flag_spec='-L$libdir'
5911 hardcode_libdir_separator=
5915 shared_flag='-shared'
5918 if test "$host_cpu" = ia64; then
5919 shared_flag='${wl}-G'
5921 if test "$aix_use_runtimelinking" = yes; then
5922 shared_flag='${wl}-G'
5924 shared_flag='${wl}-bM:SRE'
5929 # It seems that -bexpall can do strange things, so it is better to
5930 # generate a list of symbols to export.
5931 always_export_symbols=yes
5932 if test "$aix_use_runtimelinking" = yes; then
5933 # Warning - without using the other runtime loading flags (-brtl),
5934 # -berok will link without error, but may produce a broken library.
5935 allow_undefined_flag='-berok'
5936 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5937 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"
5939 if test "$host_cpu" = ia64; then
5940 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5941 allow_undefined_flag="-z nodefs"
5942 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"
5944 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5945 # Warning - without using the other run time loading flags,
5946 # -berok will link without error, but may produce a broken library.
5947 allow_undefined_flag='${wl}-berok'
5948 # This is a bit strange, but is similar to how AIX traditionally builds
5949 # it's shared libraries.
5950 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'
5956 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)'
5957 hardcode_libdir_flag_spec='-L$libdir'
5958 hardcode_minus_L=yes
5959 # see comment about different semantics on the GNU ld section
5963 cygwin* | mingw* | pw32*)
5964 # When not using gcc, we currently assume that we are using
5965 # Microsoft Visual C++.
5966 # hardcode_libdir_flag_spec is actually meaningless, as there is
5967 # no search path for DLLs.
5968 hardcode_libdir_flag_spec=' '
5969 allow_undefined_flag=unsupported
5970 # Tell ltmain to make .lib files, not .a files.
5972 # FIXME: Setting linknames here is a bad hack.
5973 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5974 # The linker will automatically build a .lib file if we build a DLL.
5975 old_archive_from_new_cmds='true'
5976 # FIXME: Should let the user specify the lib program.
5977 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5978 fix_srcfile_path='`cygpath -w "$srcfile"`'
5981 darwin* | rhapsody*)
5983 rhapsody* | darwin1.[012])
5984 allow_undefined_flag='-undefined suppress'
5987 allow_undefined_flag='-flat_namespace -undefined suppress'
5990 # FIXME: Relying on posixy $() will cause problems for
5991 # cross-compilation, but unfortunately the echo tests do not
5992 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5993 # `"' quotes if we put them in here... so don't!
5994 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)'
5995 # We need to add '_' to the symbols in $export_symbols first
5996 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5998 hardcode_shlibpath_var=no
5999 whole_archive_flag_spec='-all_load $convenience'
6006 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6007 # support. Future versions do this automatically, but an explicit c++rt0.o
6008 # does not break anything, and helps significantly (at the cost of a little
6011 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6012 hardcode_libdir_flag_spec='-R$libdir'
6014 hardcode_shlibpath_var=no
6017 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6019 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6021 hardcode_minus_L=yes
6022 hardcode_shlibpath_var=no
6025 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6027 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6028 hardcode_libdir_flag_spec='-R$libdir'
6030 hardcode_shlibpath_var=no
6033 hpux9* | hpux10* | hpux11*)
6035 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' ;;
6036 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6038 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6039 hardcode_libdir_separator=:
6041 hardcode_minus_L=yes # Not in the search PATH, but as the default
6042 # location of the library.
6043 export_dynamic_flag_spec='${wl}-E'
6046 irix5* | irix6* | nonstopux*)
6047 if test "$GCC" = yes; then
6048 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'
6049 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6051 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'
6052 hardcode_libdir_flag_spec='-rpath $libdir'
6054 hardcode_libdir_separator=:
6055 link_all_deplibs=yes
6059 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6060 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6062 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6064 hardcode_libdir_flag_spec='-R$libdir'
6066 hardcode_shlibpath_var=no
6070 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6072 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6073 hardcode_libdir_separator=:
6074 hardcode_shlibpath_var=no
6079 hardcode_shlibpath_var=no
6080 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6081 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6082 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6083 export_dynamic_flag_spec='${wl}-E'
6086 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6087 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6088 hardcode_libdir_flag_spec='-R$libdir'
6091 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6092 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6099 hardcode_libdir_flag_spec='-L$libdir'
6100 hardcode_minus_L=yes
6101 allow_undefined_flag=unsupported
6102 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'
6103 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6107 if test "$GCC" = yes; then
6108 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6109 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'
6111 allow_undefined_flag=' -expect_unresolved \*'
6112 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'
6114 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6115 hardcode_libdir_separator=:
6118 osf4* | osf5*) # as osf3* with the addition of -msym flag
6119 if test "$GCC" = yes; then
6120 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6121 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'
6122 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6124 allow_undefined_flag=' -expect_unresolved \*'
6125 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'
6126 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6127 $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'
6129 #Both c and cxx compiler support -rpath directly
6130 hardcode_libdir_flag_spec='-rpath $libdir'
6132 hardcode_libdir_separator=:
6136 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6137 hardcode_shlibpath_var=no
6138 runpath_var=LD_RUN_PATH
6139 hardcode_runpath_var=yes
6140 export_dynamic_flag_spec='${wl}-Bexport'
6144 # gcc --version < 3.0 without binutils cannot create self contained
6145 # shared libraries reliably, requiring libgcc.a to resolve some of
6146 # the object symbols generated in some cases. Libraries that use
6147 # assert need libgcc.a to resolve __eprintf, for example. Linking
6148 # a copy of libgcc.a into every shared library to guarantee resolving
6149 # such symbols causes other problems: According to Tim Van Holder
6150 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6151 # (to the application) exception stack for one thing.
6152 no_undefined_flag=' -z defs'
6153 if test "$GCC" = yes; then
6154 case `$CC --version 2>/dev/null` in
6158 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6159 *** create self contained shared libraries on Solaris systems, without
6160 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6161 *** -no-undefined support, which will at least allow you to build shared
6162 *** libraries. However, you may find that when you link such libraries
6163 *** into an application without using GCC, you have to manually add
6164 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6165 *** upgrade to a newer version of GCC. Another option is to rebuild your
6166 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6173 # $CC -shared without GNU ld will not create a library from C++
6174 # object files and a static libstdc++, better avoid it by now
6175 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6176 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6177 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6178 hardcode_libdir_flag_spec='-R$libdir'
6179 hardcode_shlibpath_var=no
6181 solaris2.[0-5] | solaris2.[0-5].*) ;;
6182 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6183 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6185 link_all_deplibs=yes
6189 if test "x$host_vendor" = xsequent; then
6190 # Use $CC to link under sequent, because it throws in some extra .o
6191 # files that make .init and .fini sections work.
6192 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6194 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6196 hardcode_libdir_flag_spec='-L$libdir'
6198 hardcode_minus_L=yes
6199 hardcode_shlibpath_var=no
6203 case $host_vendor in
6205 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6206 hardcode_direct=yes # is this really true???
6209 ## LD is ld it makes a PLAMLIB
6210 ## CC just makes a GrossModule.
6211 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6212 reload_cmds='$CC -r -o $output$reload_objs'
6216 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6217 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6220 runpath_var='LD_RUN_PATH'
6221 hardcode_shlibpath_var=no
6225 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6226 hardcode_shlibpath_var=no
6227 export_dynamic_flag_spec='-Bexport'
6231 no_undefined_flag=' -z text'
6232 # $CC -shared without GNU ld will not create a library from C++
6233 # object files and a static libstdc++, better avoid it by now
6234 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6235 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6236 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6237 hardcode_libdir_flag_spec=
6238 hardcode_shlibpath_var=no
6239 runpath_var='LD_RUN_PATH'
6243 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6244 hardcode_libdir_flag_spec='-L$libdir'
6245 hardcode_shlibpath_var=no
6249 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6250 hardcode_libdir_flag_spec='-L$libdir'
6251 hardcode_shlibpath_var=no
6255 if test -d /usr/nec; then
6256 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6257 hardcode_shlibpath_var=no
6258 runpath_var=LD_RUN_PATH
6259 hardcode_runpath_var=yes
6265 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6268 hardcode_shlibpath_var=no
6269 hardcode_runpath_var=yes
6270 runpath_var=LD_RUN_PATH
6273 sysv5uw7* | unixware7*)
6274 no_undefined_flag='${wl}-z ${wl}text'
6275 if test "$GCC" = yes; then
6276 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6278 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6280 runpath_var='LD_RUN_PATH'
6281 hardcode_shlibpath_var=no
6289 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6290 echo "${ECHO_T}$ld_shlibs" >&6
6291 test "$ld_shlibs" = no && can_build_shared=no
6293 # Check hardcoding attributes.
6294 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6295 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6297 if test -n "$hardcode_libdir_flag_spec" || \
6298 test -n "$runpath_var"; then
6300 # We can hardcode non-existant directories.
6301 if test "$hardcode_direct" != no &&
6302 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6303 # have to relink, otherwise we might link with an installed library
6304 # when we should be linking with a yet-to-be-installed one
6305 ## test "$hardcode_shlibpath_var" != no &&
6306 test "$hardcode_minus_L" != no; then
6307 # Linking always hardcodes the temporary library directory.
6308 hardcode_action=relink
6310 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6311 hardcode_action=immediate
6314 # We cannot hardcode anything, or else we can only hardcode existing
6316 hardcode_action=unsupported
6318 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6319 echo "${ECHO_T}$hardcode_action" >&6
6323 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6324 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6325 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6326 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6327 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6328 echo "$as_me:$LINENO: result: yes" >&5
6329 echo "${ECHO_T}yes" >&6
6331 echo "$as_me:$LINENO: result: no" >&5
6332 echo "${ECHO_T}no" >&6
6335 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6336 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6338 # PORTME Fill in your ld.so characteristics
6339 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6340 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6342 libname_spec='lib$name'
6349 shlibpath_overrides_runpath=unknown
6351 dynamic_linker="$host_os ld.so"
6352 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib"
6353 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib"
6358 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6359 shlibpath_var=LIBPATH
6361 # AIX has no versioning support, so we append a major version to the name.
6362 soname_spec='${libname}${release}.so$major'
6369 hardcode_into_libs=yes
6370 if test "$host_cpu" = ia64; then
6371 # AIX 5 supports IA64
6372 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6373 shlibpath_var=LD_LIBRARY_PATH
6375 # With GCC up to 2.95.x, collect2 would create an import file
6376 # for dependence libraries. The import file would start with
6377 # the line `#! .'. This would cause the generated library to
6378 # depend on `.', always an invalid library. This was fixed in
6379 # development snapshots of GCC prior to 3.0.
6381 aix4 | aix4.[01] | aix4.[01].*)
6382 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6384 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6391 # AIX (on Power*) has no versioning support, so currently we can
6392 # not hardcode correct soname into executable. Probably we can
6393 # add versioning support to collect2, so additional links can
6394 # be useful in future.
6395 if test "$aix_use_runtimelinking" = yes; then
6396 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6397 # instead of lib<name>.a to let people know that these are not
6398 # typical AIX shared libraries.
6399 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6401 # We preserve .a as extension for shared libraries through AIX4.2
6402 # and later when we are not doing run time linking.
6403 library_names_spec='${libname}${release}.a $libname.a'
6404 soname_spec='${libname}${release}.so$major'
6406 shlibpath_var=LIBPATH
6408 hardcode_into_libs=yes
6412 library_names_spec='$libname.ixlibrary $libname.a'
6413 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6414 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'
6418 library_names_spec='${libname}.so'
6419 dynamic_linker="$host_os ld.so"
6420 shlibpath_var=LIBRARY_PATH
6426 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6427 soname_spec='${libname}${release}.so$major'
6428 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6429 shlibpath_var=LD_LIBRARY_PATH
6430 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6431 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6432 export_dynamic_flag_spec=-rdynamic
6433 # the default ld.so.conf also contains /usr/contrib/lib and
6434 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6435 # libtool to hard-code these into programs
6438 cygwin* | mingw* | pw32*)
6439 version_type=windows
6442 case $GCC,$host_os in
6444 library_names_spec='$libname.dll.a'
6445 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6446 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6447 dldir=$destdir/`dirname \$dlpath`~
6448 test -d \$dldir || mkdir -p \$dldir~
6449 $install_prog .libs/$dlname \$dldir/$dlname'
6450 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6451 dlpath=$dir/\$dldll~
6455 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6456 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6459 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6462 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6465 dynamic_linker='Win32 ld.exe'
6466 # FIXME: first we should search . and the directory the executable is in
6470 darwin* | rhapsody*)
6471 dynamic_linker="$host_os dyld"
6475 # FIXME: Relying on posixy $() will cause problems for
6476 # cross-compilation, but unfortunately the echo tests do not
6477 # yet detect zsh echo's removal of \ escapes.
6478 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)'
6479 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6480 shlibpath_overrides_runpath=yes
6481 shlibpath_var=DYLD_LIBRARY_PATH
6489 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6490 version_type=freebsd-$objformat
6491 case $version_type in
6493 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6498 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6502 shlibpath_var=LD_LIBRARY_PATH
6505 shlibpath_overrides_runpath=yes
6508 shlibpath_overrides_runpath=no
6509 hardcode_into_libs=yes
6518 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6519 soname_spec='${libname}${release}.so$major'
6520 shlibpath_var=LD_LIBRARY_PATH
6521 hardcode_into_libs=yes
6524 hpux9* | hpux10* | hpux11*)
6525 # Give a soname corresponding to the major version so that dld.sl refuses to
6526 # link against other versions.
6527 dynamic_linker="$host_os dld.sl"
6531 shlibpath_var=SHLIB_PATH
6532 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6533 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6534 soname_spec='${libname}${release}.sl$major'
6535 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6536 postinstall_cmds='chmod 555 $lib'
6539 irix5* | irix6* | nonstopux*)
6541 nonstopux*) version_type=nonstopux ;;
6542 *) version_type=irix ;;
6546 soname_spec='${libname}${release}.so$major'
6547 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6549 irix5* | nonstopux*)
6553 case $LD in # libtool.m4 will add one of these switches to LD
6554 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6555 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6556 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6557 *) libsuff= shlibsuff= libmagic=never-match;;
6561 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6562 shlibpath_overrides_runpath=no
6563 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6564 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6567 # No shared lib support for Linux oldld, aout, or coff.
6568 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6572 # This must be Linux ELF.
6577 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6578 soname_spec='${libname}${release}.so$major'
6579 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6580 shlibpath_var=LD_LIBRARY_PATH
6581 shlibpath_overrides_runpath=no
6582 # This implies no fast_install, which is unacceptable.
6583 # Some rework will be needed to allow for fast_install
6584 # before this can be enabled.
6585 hardcode_into_libs=yes
6587 case $host_cpu:$lt_cv_cc_64bit_output in
6588 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
6589 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
6590 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
6594 # We used to test for /lib/ld.so.1 and disable shared libraries on
6595 # powerpc, because MkLinux only supported shared libraries with the
6596 # GNU dynamic linker. Since this was broken with cross compilers,
6597 # most powerpc-linux boxes support dynamic linking these days and
6598 # people can always --disable-shared, the test was removed, and we
6599 # assume the GNU/Linux dynamic linker is in use.
6600 dynamic_linker='GNU/Linux ld.so'
6602 # Find out which ABI we are using (multilib Linux x86_64 hack).
6606 echo '#line 6606 "configure"' > conftest.$ac_ext
6607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6608 (eval $ac_compile) 2>&5
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); }; then
6612 case `/usr/bin/file conftest.$ac_objext` in
6623 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
6624 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
6631 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6632 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6633 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6634 dynamic_linker='NetBSD (a.out) ld.so'
6636 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6637 soname_spec='${libname}${release}.so$major'
6638 dynamic_linker='NetBSD ld.elf_so'
6640 shlibpath_var=LD_LIBRARY_PATH
6641 shlibpath_overrides_runpath=yes
6642 hardcode_into_libs=yes
6647 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6648 shlibpath_var=LD_LIBRARY_PATH
6649 shlibpath_overrides_runpath=yes
6656 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6658 openbsd2.[89] | openbsd2.[89].*)
6659 shlibpath_overrides_runpath=no
6662 shlibpath_overrides_runpath=yes
6666 shlibpath_overrides_runpath=yes
6668 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6669 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6670 shlibpath_var=LD_LIBRARY_PATH
6674 libname_spec='$name'
6676 library_names_spec='$libname.dll $libname.a'
6677 dynamic_linker='OS/2 ld.exe'
6678 shlibpath_var=LIBPATH
6681 osf3* | osf4* | osf5*)
6684 soname_spec='${libname}${release}.so$major'
6685 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6686 shlibpath_var=LD_LIBRARY_PATH
6687 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6688 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6689 hardcode_into_libs=yes
6694 soname_spec='${libname}${release}.so$major'
6695 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6696 shlibpath_var=LD_LIBRARY_PATH
6703 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6704 soname_spec='${libname}${release}.so$major'
6705 shlibpath_var=LD_LIBRARY_PATH
6706 shlibpath_overrides_runpath=yes
6707 hardcode_into_libs=yes
6708 # ldd complains unless libraries are executable
6709 postinstall_cmds='chmod +x $lib'
6714 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6715 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6716 shlibpath_var=LD_LIBRARY_PATH
6717 shlibpath_overrides_runpath=yes
6718 if test "$with_gnu_ld" = yes; then
6724 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6726 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6727 soname_spec='${libname}${release}.so$major'
6728 shlibpath_var=LD_LIBRARY_PATH
6729 case $host_vendor in
6731 shlibpath_overrides_runpath=no
6733 export_dynamic_flag_spec='${wl}-Blargedynsym'
6734 runpath_var=LD_RUN_PATH
6742 shlibpath_overrides_runpath=no
6743 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6750 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6751 soname_spec='${libname}${release}.so$major'
6752 shlibpath_var=LD_LIBRARY_PATH
6759 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6760 soname_spec='${libname}${release}.so$major'
6761 shlibpath_var=LD_LIBRARY_PATH
6765 if test -d /usr/nec ;then
6767 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6768 soname_spec='$libname.so.$major'
6769 shlibpath_var=LD_LIBRARY_PATH
6777 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6778 echo "${ECHO_T}$dynamic_linker" >&6
6779 test "$dynamic_linker" = no && can_build_shared=no
6781 # Report the final consequences.
6782 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6783 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6784 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6785 echo "${ECHO_T}$can_build_shared" >&6
6787 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6788 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6789 test "$can_build_shared" = "no" && enable_shared=no
6791 # On AIX, shared libraries and static libraries use the same namespace, and
6792 # are all built from PIC.
6795 test "$enable_shared" = yes && enable_static=no
6796 if test -n "$RANLIB"; then
6797 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6798 postinstall_cmds='$RANLIB $lib'
6803 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6804 test "$enable_shared" = yes && enable_static=no
6808 echo "$as_me:$LINENO: result: $enable_shared" >&5
6809 echo "${ECHO_T}$enable_shared" >&6
6811 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6812 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6813 # Make sure either enable_shared or enable_static is yes.
6814 test "$enable_shared" = yes || enable_static=yes
6815 echo "$as_me:$LINENO: result: $enable_static" >&5
6816 echo "${ECHO_T}$enable_static" >&6
6818 if test "$hardcode_action" = relink; then
6819 # Fast installation is not supported
6820 enable_fast_install=no
6821 elif test "$shlibpath_overrides_runpath" = yes ||
6822 test "$enable_shared" = no; then
6823 # Fast installation is not necessary
6824 enable_fast_install=needless
6827 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6828 if test "$GCC" = yes; then
6829 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6832 if test "x$enable_dlopen" != xyes; then
6833 enable_dlopen=unknown
6834 enable_dlopen_self=unknown
6835 enable_dlopen_self_static=unknown
6842 lt_cv_dlopen="load_add_on"
6844 lt_cv_dlopen_self=yes
6847 cygwin* | mingw* | pw32*)
6848 lt_cv_dlopen="LoadLibrary"
6853 echo "$as_me:$LINENO: checking for shl_load" >&5
6854 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6855 if test "${ac_cv_func_shl_load+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6858 cat >conftest.$ac_ext <<_ACEOF
6861 cat confdefs.h >>conftest.$ac_ext
6862 cat >>conftest.$ac_ext <<_ACEOF
6863 /* end confdefs.h. */
6864 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
6865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6866 #define shl_load innocuous_shl_load
6868 /* System header to define __stub macros and hopefully few prototypes,
6869 which can conflict with char shl_load (); below.
6870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6871 <limits.h> exists even on freestanding compilers. */
6874 # include <limits.h>
6876 # include <assert.h>
6881 /* Override any gcc2 internal prototype to avoid an error. */
6886 /* We use char because int might match the return type of a gcc2
6887 builtin and then its argument prototype would still apply. */
6889 /* The GNU C library defines this for functions which it implements
6890 to always fail with ENOSYS. Some functions are actually named
6891 something starting with __ and the normal name is an alias. */
6892 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6895 char (*f) () = shl_load;
6904 return f != shl_load;
6909 rm -f conftest.$ac_objext conftest$ac_exeext
6910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6911 (eval $ac_link) 2>conftest.er1
6913 grep -v '^ *+' conftest.er1 >conftest.err
6915 cat conftest.err >&5
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); } &&
6918 { ac_try='test -z "$ac_c_werror_flag"
6919 || test ! -s conftest.err'
6920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); }; } &&
6925 { ac_try='test -s conftest$ac_exeext'
6926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); }; }; then
6931 ac_cv_func_shl_load=yes
6933 echo "$as_me: failed program was:" >&5
6934 sed 's/^/| /' conftest.$ac_ext >&5
6936 ac_cv_func_shl_load=no
6938 rm -f conftest.err conftest.$ac_objext \
6939 conftest$ac_exeext conftest.$ac_ext
6941 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6942 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6943 if test $ac_cv_func_shl_load = yes; then
6944 lt_cv_dlopen="shl_load"
6946 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6947 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6948 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6949 echo $ECHO_N "(cached) $ECHO_C" >&6
6951 ac_check_lib_save_LIBS=$LIBS
6953 cat >conftest.$ac_ext <<_ACEOF
6956 cat confdefs.h >>conftest.$ac_ext
6957 cat >>conftest.$ac_ext <<_ACEOF
6958 /* end confdefs.h. */
6960 /* Override any gcc2 internal prototype to avoid an error. */
6964 /* We use char because int might match the return type of a gcc2
6965 builtin and then its argument prototype would still apply. */
6975 rm -f conftest.$ac_objext conftest$ac_exeext
6976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6977 (eval $ac_link) 2>conftest.er1
6979 grep -v '^ *+' conftest.er1 >conftest.err
6981 cat conftest.err >&5
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); } &&
6984 { ac_try='test -z "$ac_c_werror_flag"
6985 || test ! -s conftest.err'
6986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); }; } &&
6991 { ac_try='test -s conftest$ac_exeext'
6992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); }; }; then
6997 ac_cv_lib_dld_shl_load=yes
6999 echo "$as_me: failed program was:" >&5
7000 sed 's/^/| /' conftest.$ac_ext >&5
7002 ac_cv_lib_dld_shl_load=no
7004 rm -f conftest.err conftest.$ac_objext \
7005 conftest$ac_exeext conftest.$ac_ext
7006 LIBS=$ac_check_lib_save_LIBS
7008 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7009 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7010 if test $ac_cv_lib_dld_shl_load = yes; then
7011 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7013 echo "$as_me:$LINENO: checking for dlopen" >&5
7014 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7015 if test "${ac_cv_func_dlopen+set}" = set; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
7018 cat >conftest.$ac_ext <<_ACEOF
7021 cat confdefs.h >>conftest.$ac_ext
7022 cat >>conftest.$ac_ext <<_ACEOF
7023 /* end confdefs.h. */
7024 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7026 #define dlopen innocuous_dlopen
7028 /* System header to define __stub macros and hopefully few prototypes,
7029 which can conflict with char dlopen (); below.
7030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7031 <limits.h> exists even on freestanding compilers. */
7034 # include <limits.h>
7036 # include <assert.h>
7041 /* Override any gcc2 internal prototype to avoid an error. */
7046 /* We use char because int might match the return type of a gcc2
7047 builtin and then its argument prototype would still apply. */
7049 /* The GNU C library defines this for functions which it implements
7050 to always fail with ENOSYS. Some functions are actually named
7051 something starting with __ and the normal name is an alias. */
7052 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7055 char (*f) () = dlopen;
7069 rm -f conftest.$ac_objext conftest$ac_exeext
7070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7071 (eval $ac_link) 2>conftest.er1
7073 grep -v '^ *+' conftest.er1 >conftest.err
7075 cat conftest.err >&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); } &&
7078 { ac_try='test -z "$ac_c_werror_flag"
7079 || test ! -s conftest.err'
7080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); }; } &&
7085 { ac_try='test -s conftest$ac_exeext'
7086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); }; }; then
7091 ac_cv_func_dlopen=yes
7093 echo "$as_me: failed program was:" >&5
7094 sed 's/^/| /' conftest.$ac_ext >&5
7096 ac_cv_func_dlopen=no
7098 rm -f conftest.err conftest.$ac_objext \
7099 conftest$ac_exeext conftest.$ac_ext
7101 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7102 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7103 if test $ac_cv_func_dlopen = yes; then
7104 lt_cv_dlopen="dlopen"
7106 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7107 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7108 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7109 echo $ECHO_N "(cached) $ECHO_C" >&6
7111 ac_check_lib_save_LIBS=$LIBS
7113 cat >conftest.$ac_ext <<_ACEOF
7116 cat confdefs.h >>conftest.$ac_ext
7117 cat >>conftest.$ac_ext <<_ACEOF
7118 /* end confdefs.h. */
7120 /* Override any gcc2 internal prototype to avoid an error. */
7124 /* We use char because int might match the return type of a gcc2
7125 builtin and then its argument prototype would still apply. */
7135 rm -f conftest.$ac_objext conftest$ac_exeext
7136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7137 (eval $ac_link) 2>conftest.er1
7139 grep -v '^ *+' conftest.er1 >conftest.err
7141 cat conftest.err >&5
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); } &&
7144 { ac_try='test -z "$ac_c_werror_flag"
7145 || test ! -s conftest.err'
7146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); }; } &&
7151 { ac_try='test -s conftest$ac_exeext'
7152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); }; }; then
7157 ac_cv_lib_dl_dlopen=yes
7159 echo "$as_me: failed program was:" >&5
7160 sed 's/^/| /' conftest.$ac_ext >&5
7162 ac_cv_lib_dl_dlopen=no
7164 rm -f conftest.err conftest.$ac_objext \
7165 conftest$ac_exeext conftest.$ac_ext
7166 LIBS=$ac_check_lib_save_LIBS
7168 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7169 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7170 if test $ac_cv_lib_dl_dlopen = yes; then
7171 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7173 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7174 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7175 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7178 ac_check_lib_save_LIBS=$LIBS
7180 cat >conftest.$ac_ext <<_ACEOF
7183 cat confdefs.h >>conftest.$ac_ext
7184 cat >>conftest.$ac_ext <<_ACEOF
7185 /* end confdefs.h. */
7187 /* Override any gcc2 internal prototype to avoid an error. */
7191 /* We use char because int might match the return type of a gcc2
7192 builtin and then its argument prototype would still apply. */
7202 rm -f conftest.$ac_objext conftest$ac_exeext
7203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7204 (eval $ac_link) 2>conftest.er1
7206 grep -v '^ *+' conftest.er1 >conftest.err
7208 cat conftest.err >&5
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); } &&
7211 { ac_try='test -z "$ac_c_werror_flag"
7212 || test ! -s conftest.err'
7213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); }; } &&
7218 { ac_try='test -s conftest$ac_exeext'
7219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); }; }; then
7224 ac_cv_lib_svld_dlopen=yes
7226 echo "$as_me: failed program was:" >&5
7227 sed 's/^/| /' conftest.$ac_ext >&5
7229 ac_cv_lib_svld_dlopen=no
7231 rm -f conftest.err conftest.$ac_objext \
7232 conftest$ac_exeext conftest.$ac_ext
7233 LIBS=$ac_check_lib_save_LIBS
7235 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7236 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7237 if test $ac_cv_lib_svld_dlopen = yes; then
7238 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7240 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7241 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7242 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7243 echo $ECHO_N "(cached) $ECHO_C" >&6
7245 ac_check_lib_save_LIBS=$LIBS
7247 cat >conftest.$ac_ext <<_ACEOF
7250 cat confdefs.h >>conftest.$ac_ext
7251 cat >>conftest.$ac_ext <<_ACEOF
7252 /* end confdefs.h. */
7254 /* Override any gcc2 internal prototype to avoid an error. */
7258 /* We use char because int might match the return type of a gcc2
7259 builtin and then its argument prototype would still apply. */
7269 rm -f conftest.$ac_objext conftest$ac_exeext
7270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7271 (eval $ac_link) 2>conftest.er1
7273 grep -v '^ *+' conftest.er1 >conftest.err
7275 cat conftest.err >&5
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); } &&
7278 { ac_try='test -z "$ac_c_werror_flag"
7279 || test ! -s conftest.err'
7280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); }; } &&
7285 { ac_try='test -s conftest$ac_exeext'
7286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); }; }; then
7291 ac_cv_lib_dld_dld_link=yes
7293 echo "$as_me: failed program was:" >&5
7294 sed 's/^/| /' conftest.$ac_ext >&5
7296 ac_cv_lib_dld_dld_link=no
7298 rm -f conftest.err conftest.$ac_objext \
7299 conftest$ac_exeext conftest.$ac_ext
7300 LIBS=$ac_check_lib_save_LIBS
7302 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7303 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7304 if test $ac_cv_lib_dld_dld_link = yes; then
7305 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7326 if test "x$lt_cv_dlopen" != xno; then
7332 case $lt_cv_dlopen in
7334 save_CPPFLAGS="$CPPFLAGS"
7335 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7337 save_LDFLAGS="$LDFLAGS"
7338 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7341 LIBS="$lt_cv_dlopen_libs $LIBS"
7343 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7344 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7345 if test "${lt_cv_dlopen_self+set}" = set; then
7346 echo $ECHO_N "(cached) $ECHO_C" >&6
7348 if test "$cross_compiling" = yes; then :
7349 lt_cv_dlopen_self=cross
7351 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7352 lt_status=$lt_dlunknown
7353 cat > conftest.$ac_ext <<EOF
7354 #line 7354 "configure"
7355 #include "confdefs.h"
7364 # define LT_DLGLOBAL RTLD_GLOBAL
7367 # define LT_DLGLOBAL DL_GLOBAL
7369 # define LT_DLGLOBAL 0
7373 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7374 find out it does not work in some platform. */
7375 #ifndef LT_DLLAZY_OR_NOW
7377 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7380 # define LT_DLLAZY_OR_NOW DL_LAZY
7383 # define LT_DLLAZY_OR_NOW RTLD_NOW
7386 # define LT_DLLAZY_OR_NOW DL_NOW
7388 # define LT_DLLAZY_OR_NOW 0
7396 extern "C" void exit (int);
7399 void fnord() { int i=42;}
7402 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7403 int status = $lt_dlunknown;
7407 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7408 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7409 /* dlclose (self); */
7415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7416 (eval $ac_link) 2>&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7420 (./conftest; exit; ) 2>/dev/null
7423 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7424 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7425 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7428 # compilation failed
7429 lt_cv_dlopen_self=no
7436 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7437 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7439 if test "x$lt_cv_dlopen_self" = xyes; then
7440 LDFLAGS="$LDFLAGS $link_static_flag"
7441 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7442 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7443 if test "${lt_cv_dlopen_self_static+set}" = set; then
7444 echo $ECHO_N "(cached) $ECHO_C" >&6
7446 if test "$cross_compiling" = yes; then :
7447 lt_cv_dlopen_self_static=cross
7449 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7450 lt_status=$lt_dlunknown
7451 cat > conftest.$ac_ext <<EOF
7452 #line 7452 "configure"
7453 #include "confdefs.h"
7462 # define LT_DLGLOBAL RTLD_GLOBAL
7465 # define LT_DLGLOBAL DL_GLOBAL
7467 # define LT_DLGLOBAL 0
7471 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7472 find out it does not work in some platform. */
7473 #ifndef LT_DLLAZY_OR_NOW
7475 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7478 # define LT_DLLAZY_OR_NOW DL_LAZY
7481 # define LT_DLLAZY_OR_NOW RTLD_NOW
7484 # define LT_DLLAZY_OR_NOW DL_NOW
7486 # define LT_DLLAZY_OR_NOW 0
7494 extern "C" void exit (int);
7497 void fnord() { int i=42;}
7500 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7501 int status = $lt_dlunknown;
7505 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7506 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7507 /* dlclose (self); */
7513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7514 (eval $ac_link) 2>&5
7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7518 (./conftest; exit; ) 2>/dev/null
7521 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7522 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7523 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7526 # compilation failed
7527 lt_cv_dlopen_self_static=no
7534 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7535 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7538 CPPFLAGS="$save_CPPFLAGS"
7539 LDFLAGS="$save_LDFLAGS"
7544 case $lt_cv_dlopen_self in
7545 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7546 *) enable_dlopen_self=unknown ;;
7549 case $lt_cv_dlopen_self_static in
7550 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7551 *) enable_dlopen_self_static=unknown ;;
7556 if test "$enable_shared" = yes && test "$GCC" = yes; then
7557 case $archive_cmds in
7559 # FIXME: we may have to deal with multi-command sequences.
7562 # Test whether the compiler implicitly links with -lc since on some
7563 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7564 # to ld, don't add -lc before -lgcc.
7565 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7566 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7567 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6
7571 echo 'static int dummy;' > conftest.$ac_ext
7573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7574 (eval $ac_compile) 2>&5
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); }; then
7580 libobjs=conftest.$ac_objext
7582 wl=$lt_cv_prog_cc_wl
7588 save_allow_undefined_flag=$allow_undefined_flag
7589 allow_undefined_flag=
7590 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7591 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); }
7596 lt_cv_archive_cmds_need_lc=no
7598 lt_cv_archive_cmds_need_lc=yes
7600 allow_undefined_flag=$save_allow_undefined_flag
7602 cat conftest.err 1>&5
7606 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7607 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7611 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7613 # The second clause should only fire when bootstrapping the
7614 # libtool distribution, otherwise you forgot to ship ltmain.sh
7615 # with your package, and you will get complaints that there are
7616 # no rules to generate ltmain.sh.
7617 if test -f "$ltmain"; then
7620 # If there is no Makefile yet, we rely on a make rule to execute
7621 # `config.status --recheck' to rerun these tests and create the
7622 # libtool script then.
7623 test -f Makefile && make "$ltmain"
7626 if test -f "$ltmain"; then
7627 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7630 echo creating $ofile
7632 # Now quote all the things that may contain metacharacters while being
7633 # careful not to overquote the AC_SUBSTed values. We take copies of the
7634 # variables and quote the copies for generation of the libtool script.
7635 for var in echo old_CC old_CFLAGS SED \
7636 AR AR_FLAGS CC LD LN_S NM SHELL \
7637 reload_flag reload_cmds wl \
7638 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7639 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7640 library_names_spec soname_spec \
7641 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7642 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7643 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7644 old_striplib striplib file_magic_cmd export_symbols_cmds \
7645 deplibs_check_method allow_undefined_flag no_undefined_flag \
7646 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7647 global_symbol_to_c_name_address \
7648 hardcode_libdir_flag_spec hardcode_libdir_separator \
7649 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7650 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7653 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7654 old_postinstall_cmds | old_postuninstall_cmds | \
7655 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7656 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7657 postinstall_cmds | postuninstall_cmds | \
7658 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7659 # Double-quote double-evaled strings.
7660 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7663 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7668 cat <<__EOF__ > "${ofile}T"
7671 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7672 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7673 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7675 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7676 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7678 # This program is free software; you can redistribute it and/or modify
7679 # it under the terms of the GNU General Public License as published by
7680 # the Free Software Foundation; either version 2 of the License, or
7681 # (at your option) any later version.
7683 # This program is distributed in the hope that it will be useful, but
7684 # WITHOUT ANY WARRANTY; without even the implied warranty of
7685 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7686 # General Public License for more details.
7688 # You should have received a copy of the GNU General Public License
7689 # along with this program; if not, write to the Free Software
7690 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7692 # As a special exception to the GNU General Public License, if you
7693 # distribute this file as part of a program that contains a
7694 # configuration script generated by Autoconf, you may include it under
7695 # the same distribution terms that you use for the rest of that program.
7697 # A sed that does not truncate output.
7700 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7701 Xsed="${SED} -e s/^X//"
7703 # The HP-UX ksh and POSIX shell print the target directory to stdout
7705 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7707 # ### BEGIN LIBTOOL CONFIG
7709 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7711 # Shell to use when invoking shell scripts.
7714 # Whether or not to build shared libraries.
7715 build_libtool_libs=$enable_shared
7717 # Whether or not to build static libraries.
7718 build_old_libs=$enable_static
7720 # Whether or not to add -lc for building shared libraries.
7721 build_libtool_need_lc=$need_lc
7723 # Whether or not to optimize for fast installation.
7724 fast_install=$enable_fast_install
7727 host_alias=$host_alias
7730 # An echo program that does not interpret backslashes.
7735 AR_FLAGS=$lt_AR_FLAGS
7737 # The default C compiler.
7740 # Is the compiler the GNU C compiler?
7743 # The linker used to build libraries.
7746 # Whether we need hard or soft links.
7749 # A BSD-compatible nm program.
7752 # A symbol stripping program
7755 # Used to examine libraries when file_magic_cmd begins "file"
7756 MAGIC_CMD=$MAGIC_CMD
7758 # Used on cygwin: DLL creation program.
7761 # Used on cygwin: object dumper.
7764 # Used on cygwin: assembler.
7767 # The name of the directory that contains temporary libtool files.
7770 # How to create reloadable object files.
7771 reload_flag=$lt_reload_flag
7772 reload_cmds=$lt_reload_cmds
7774 # How to pass a linker flag through the compiler.
7777 # Object file suffix (normally "o").
7780 # Old archive suffix (normally "a").
7783 # Executable file suffix (normally "").
7786 # Additional compiler flags for building library objects.
7787 pic_flag=$lt_pic_flag
7790 # Does compiler simultaneously support -c and -o options?
7791 compiler_c_o=$lt_compiler_c_o
7793 # Can we write directly to a .lo ?
7794 compiler_o_lo=$lt_compiler_o_lo
7796 # Must we lock files when doing compilation ?
7797 need_locks=$lt_need_locks
7799 # Do we need the lib prefix for modules?
7800 need_lib_prefix=$need_lib_prefix
7802 # Do we need a version for libraries?
7803 need_version=$need_version
7805 # Whether dlopen is supported.
7806 dlopen_support=$enable_dlopen
7808 # Whether dlopen of programs is supported.
7809 dlopen_self=$enable_dlopen_self
7811 # Whether dlopen of statically linked programs is supported.
7812 dlopen_self_static=$enable_dlopen_self_static
7814 # Compiler flag to prevent dynamic linking.
7815 link_static_flag=$lt_link_static_flag
7817 # Compiler flag to turn off builtin functions.
7818 no_builtin_flag=$lt_no_builtin_flag
7820 # Compiler flag to allow reflexive dlopens.
7821 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7823 # Compiler flag to generate shared objects directly from archives.
7824 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7826 # Compiler flag to generate thread-safe objects.
7827 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7829 # Library versioning type.
7830 version_type=$version_type
7832 # Format of library name prefix.
7833 libname_spec=$lt_libname_spec
7835 # List of archive names. First name is the real one, the rest are links.
7836 # The last name is the one that the linker finds with -lNAME.
7837 library_names_spec=$lt_library_names_spec
7839 # The coded name of the library, if different from the real name.
7840 soname_spec=$lt_soname_spec
7842 # Commands used to build and install an old-style archive.
7844 old_archive_cmds=$lt_old_archive_cmds
7845 old_postinstall_cmds=$lt_old_postinstall_cmds
7846 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7848 # Create an old-style archive from a shared archive.
7849 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7851 # Create a temporary old-style archive to link instead of a shared archive.
7852 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7854 # Commands used to build and install a shared archive.
7855 archive_cmds=$lt_archive_cmds
7856 archive_expsym_cmds=$lt_archive_expsym_cmds
7857 postinstall_cmds=$lt_postinstall_cmds
7858 postuninstall_cmds=$lt_postuninstall_cmds
7860 # Commands to strip libraries.
7861 old_striplib=$lt_old_striplib
7862 striplib=$lt_striplib
7864 # Method to check whether dependent libraries are shared objects.
7865 deplibs_check_method=$lt_deplibs_check_method
7867 # Command to use when deplibs_check_method == file_magic.
7868 file_magic_cmd=$lt_file_magic_cmd
7870 # Flag that allows shared libraries with undefined symbols to be built.
7871 allow_undefined_flag=$lt_allow_undefined_flag
7873 # Flag that forces no undefined symbols.
7874 no_undefined_flag=$lt_no_undefined_flag
7876 # Commands used to finish a libtool library installation in a directory.
7877 finish_cmds=$lt_finish_cmds
7879 # Same as above, but a single script fragment to be evaled but not shown.
7880 finish_eval=$lt_finish_eval
7882 # Take the output of nm and produce a listing of raw symbols and C names.
7883 global_symbol_pipe=$lt_global_symbol_pipe
7885 # Transform the output of nm in a proper C declaration
7886 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7888 # Transform the output of nm in a C name address pair
7889 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7891 # This is the shared library runtime path variable.
7892 runpath_var=$runpath_var
7894 # This is the shared library path variable.
7895 shlibpath_var=$shlibpath_var
7897 # Is shlibpath searched before the hard-coded library search path?
7898 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7900 # How to hardcode a shared library path into an executable.
7901 hardcode_action=$hardcode_action
7903 # Whether we should hardcode library paths into libraries.
7904 hardcode_into_libs=$hardcode_into_libs
7906 # Flag to hardcode \$libdir into a binary during linking.
7907 # This must work even if \$libdir does not exist.
7908 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7910 # Whether we need a single -rpath flag with a separated argument.
7911 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7913 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7915 hardcode_direct=$hardcode_direct
7917 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7919 hardcode_minus_L=$hardcode_minus_L
7921 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7922 # the resulting binary.
7923 hardcode_shlibpath_var=$hardcode_shlibpath_var
7925 # Variables whose values should be saved in libtool wrapper scripts and
7926 # restored at relink time.
7927 variables_saved_for_relink="$variables_saved_for_relink"
7929 # Whether libtool must link a program against all its dependency libraries.
7930 link_all_deplibs=$link_all_deplibs
7932 # Compile-time system search path for libraries
7933 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7935 # Run-time system search path for libraries
7936 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7938 # Fix the shell variable \$srcfile for the compiler.
7939 fix_srcfile_path="$fix_srcfile_path"
7941 # Set to yes if exported symbols are required.
7942 always_export_symbols=$always_export_symbols
7944 # The commands to list exported symbols.
7945 export_symbols_cmds=$lt_export_symbols_cmds
7947 # The commands to extract the exported symbol list from a shared archive.
7948 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7950 # Symbols that should not be listed in the preloaded symbols.
7951 exclude_expsyms=$lt_exclude_expsyms
7953 # Symbols that must always be exported.
7954 include_expsyms=$lt_include_expsyms
7956 # ### END LIBTOOL CONFIG
7962 cat <<\EOF >> "${ofile}T"
7964 # AIX sometimes has problems with the GCC collect2 program. For some
7965 # reason, if we set the COLLECT_NAMES environment variable, the problems
7966 # vanish in a puff of smoke.
7967 if test "X${COLLECT_NAMES+set}" != Xset; then
7969 export COLLECT_NAMES
7976 cygwin* | mingw* | pw32* | os2*)
7977 cat <<'EOF' >> "${ofile}T"
7978 # This is a source program that is used to create dlls on Windows
7979 # Don't remove nor modify the starting and closing comments
7980 # /* ltdll.c starts here */
7981 # #define WIN32_LEAN_AND_MEAN
7982 # #include <windows.h>
7983 # #undef WIN32_LEAN_AND_MEAN
7984 # #include <stdio.h>
7986 # #ifndef __CYGWIN__
7987 # # ifdef __CYGWIN32__
7988 # # define __CYGWIN__ __CYGWIN32__
7992 # #ifdef __cplusplus
7995 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7996 # #ifdef __cplusplus
8001 # #include <cygwin/cygwin_dll.h>
8002 # DECLARE_CYGWIN_DLL( DllMain );
8004 # HINSTANCE __hDllInstance_base;
8007 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8009 # __hDllInstance_base = hInst;
8012 # /* ltdll.c ends here */
8013 # This is a source program that is used to create import libraries
8014 # on Windows for dlls which lack them. Don't remove nor modify the
8015 # starting and closing comments
8016 # /* impgen.c starts here */
8017 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8019 # This file is part of GNU libtool.
8021 # This program is free software; you can redistribute it and/or modify
8022 # it under the terms of the GNU General Public License as published by
8023 # the Free Software Foundation; either version 2 of the License, or
8024 # (at your option) any later version.
8026 # This program is distributed in the hope that it will be useful,
8027 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8028 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8029 # GNU General Public License for more details.
8031 # You should have received a copy of the GNU General Public License
8032 # along with this program; if not, write to the Free Software
8033 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8036 # #include <stdio.h> /* for printf() */
8037 # #include <unistd.h> /* for open(), lseek(), read() */
8038 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8039 # #include <string.h> /* for strdup() */
8041 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8043 # #define O_BINARY 0
8046 # static unsigned int
8047 # pe_get16 (fd, offset)
8051 # unsigned char b[2];
8052 # lseek (fd, offset, SEEK_SET);
8054 # return b[0] + (b[1]<<8);
8057 # static unsigned int
8058 # pe_get32 (fd, offset)
8062 # unsigned char b[4];
8063 # lseek (fd, offset, SEEK_SET);
8065 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8068 # static unsigned int
8072 # unsigned char *b = ptr;
8073 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8082 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8083 # unsigned long export_rva, export_size, nsections, secptr, expptr;
8084 # unsigned long name_rvas, nexp;
8085 # unsigned char *expdata, *erva;
8086 # char *filename, *dll_name;
8088 # filename = argv[1];
8090 # dll = open(filename, O_RDONLY|O_BINARY);
8094 # dll_name = filename;
8096 # for (i=0; filename[i]; i++)
8097 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8098 # dll_name = filename + i +1;
8100 # pe_header_offset = pe_get32 (dll, 0x3c);
8101 # opthdr_ofs = pe_header_offset + 4 + 20;
8102 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
8104 # if (num_entries < 1) /* no exports */
8107 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
8108 # export_size = pe_get32 (dll, opthdr_ofs + 100);
8109 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8110 # secptr = (pe_header_offset + 4 + 20 +
8111 # pe_get16 (dll, pe_header_offset + 4 + 16));
8114 # for (i = 0; i < nsections; i++)
8117 # unsigned long secptr1 = secptr + 40 * i;
8118 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8119 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8120 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8121 # lseek(dll, secptr1, SEEK_SET);
8122 # read(dll, sname, 8);
8123 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8125 # expptr = fptr + (export_rva - vaddr);
8126 # if (export_rva + export_size > vaddr + vsize)
8127 # export_size = vsize - (export_rva - vaddr);
8132 # expdata = (unsigned char*)malloc(export_size);
8133 # lseek (dll, expptr, SEEK_SET);
8134 # read (dll, expdata, export_size);
8135 # erva = expdata - export_rva;
8137 # nexp = pe_as32 (expdata+24);
8138 # name_rvas = pe_as32 (expdata+32);
8140 # printf ("EXPORTS\n");
8141 # for (i = 0; i<nexp; i++)
8143 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8144 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8149 # /* impgen.c ends here */
8155 # We use sed instead of cat because bash on DJGPP gets confused if
8156 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8157 # text mode, it properly converts lines to CR/LF. This bash problem
8158 # is reportedly fixed, but why not run on old versions too?
8159 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8161 mv -f "${ofile}T" "$ofile" || \
8162 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8170 # This can be used to rebuild libtool when needed
8171 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8173 # Always use our own libtool.
8174 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8176 # Prevent multiple expansion
8179 for ac_prog in gzip uncompress compress
8181 # Extract the first word of "$ac_prog", so it can be a program name with args.
8182 set dummy $ac_prog; ac_word=$2
8183 echo "$as_me:$LINENO: checking for $ac_word" >&5
8184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8185 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
8186 echo $ECHO_N "(cached) $ECHO_C" >&6
8188 if test -n "$UNCOMPRESS"; then
8189 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
8191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8195 test -z "$as_dir" && as_dir=.
8196 for ac_exec_ext in '' $ac_executable_extensions; do
8197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8198 ac_cv_prog_UNCOMPRESS="$ac_prog"
8199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8207 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
8208 if test -n "$UNCOMPRESS"; then
8209 echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
8210 echo "${ECHO_T}$UNCOMPRESS" >&6
8212 echo "$as_me:$LINENO: result: no" >&5
8213 echo "${ECHO_T}no" >&6
8216 test -n "$UNCOMPRESS" && break
8226 echo "$as_me:$LINENO: checking for target system" >&5
8227 echo $ECHO_N "checking for target system... $ECHO_C" >&6
8231 *cygwin* ) CYGWIN=yes;;
8232 *mingw* ) MINGW=yes;;
8236 if test "x$MINGW" = "xyes"; then
8237 #fix for the debian distribution of mingw
8238 if test -x "/usr/i586-mingw32msvc/bin/ar";then
8239 AR="/usr/i586-mingw32msvc/bin/ar"
8241 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
8242 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
8244 #fix for the gentoo distribution of mingw
8245 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
8246 AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
8248 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
8249 RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
8251 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
8252 STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
8258 if test "x${CYGWIN}" = "xyes"; then
8259 cat >>confdefs.h <<_ACEOF
8263 echo "$as_me:$LINENO: result: cygwin" >&5
8264 echo "${ECHO_T}cygwin" >&6
8266 if test "x${MINGW}" = "xyes"; then
8267 cat >>confdefs.h <<_ACEOF
8272 cat >>confdefs.h <<_ACEOF
8276 LIBS="$LIBS -lws2_32"
8277 echo "$as_me:$LINENO: result: mingw" >&5
8278 echo "${ECHO_T}mingw" >&6
8282 cat >>confdefs.h <<_ACEOF
8286 echo "$as_me:$LINENO: result: " >&5
8287 echo "${ECHO_T}" >&6
8293 if test "x${MINGW}" != "xyes"; then
8295 cat >>confdefs.h <<_ACEOF
8306 # The following tries to make use of includes and libraries in
8307 # /usr/local, too. Notice: A -I/usr/local/include might break
8308 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
8309 # especially on systems which link /usr/local to /usr, so it has yet
8310 # to be seen how useful this is.
8311 if test -d /usr/local/lib; then
8312 LDFLAGS="$LDFLAGS -L/usr/local/lib"
8314 if test -d /usr/local/include; then
8315 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
8316 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
8319 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
8320 # if the user has a special prefix (like /opt), there might also be $prefix/lib
8321 # and $prefix/include, which should be included in our search paths for libraries
8323 LDFLAGS="$LDFLAGS -L${libdir}"
8324 CPPFLAGS="$CPPFLAGS -I${includedir}"
8325 # TODO- test whether gcc still works after this
8328 # this must be done after (I believe) AC_PROG_MAKE_SET
8329 if test "x$DEBUG" '!=' "x";then
8330 STRIP="@echo debug enabled, not stripping "
8336 echo "$as_me:$LINENO: checking for sin in -lm" >&5
8337 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8338 if test "${ac_cv_lib_m_sin+set}" = set; then
8339 echo $ECHO_N "(cached) $ECHO_C" >&6
8341 ac_check_lib_save_LIBS=$LIBS
8343 cat >conftest.$ac_ext <<_ACEOF
8346 cat confdefs.h >>conftest.$ac_ext
8347 cat >>conftest.$ac_ext <<_ACEOF
8348 /* end confdefs.h. */
8350 /* Override any gcc2 internal prototype to avoid an error. */
8354 /* We use char because int might match the return type of a gcc2
8355 builtin and then its argument prototype would still apply. */
8365 rm -f conftest.$ac_objext conftest$ac_exeext
8366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8367 (eval $ac_link) 2>conftest.er1
8369 grep -v '^ *+' conftest.er1 >conftest.err
8371 cat conftest.err >&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); } &&
8374 { ac_try='test -z "$ac_c_werror_flag"
8375 || test ! -s conftest.err'
8376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); }; } &&
8381 { ac_try='test -s conftest$ac_exeext'
8382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }; }; then
8389 echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8394 rm -f conftest.err conftest.$ac_objext \
8395 conftest$ac_exeext conftest.$ac_ext
8396 LIBS=$ac_check_lib_save_LIBS
8398 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8399 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8400 if test $ac_cv_lib_m_sin = yes; then
8401 cat >>confdefs.h <<_ACEOF
8408 echo "Error: Math library not found.";
8414 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
8415 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
8416 if test "${ac_cv_lib_z_deflate+set}" = set; then
8417 echo $ECHO_N "(cached) $ECHO_C" >&6
8419 ac_check_lib_save_LIBS=$LIBS
8421 cat >conftest.$ac_ext <<_ACEOF
8424 cat confdefs.h >>conftest.$ac_ext
8425 cat >>conftest.$ac_ext <<_ACEOF
8426 /* end confdefs.h. */
8428 /* Override any gcc2 internal prototype to avoid an error. */
8432 /* We use char because int might match the return type of a gcc2
8433 builtin and then its argument prototype would still apply. */
8443 rm -f conftest.$ac_objext conftest$ac_exeext
8444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8445 (eval $ac_link) 2>conftest.er1
8447 grep -v '^ *+' conftest.er1 >conftest.err
8449 cat conftest.err >&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); } &&
8452 { ac_try='test -z "$ac_c_werror_flag"
8453 || test ! -s conftest.err'
8454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); }; } &&
8459 { ac_try='test -s conftest$ac_exeext'
8460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); }; }; then
8465 ac_cv_lib_z_deflate=yes
8467 echo "$as_me: failed program was:" >&5
8468 sed 's/^/| /' conftest.$ac_ext >&5
8470 ac_cv_lib_z_deflate=no
8472 rm -f conftest.err conftest.$ac_objext \
8473 conftest$ac_exeext conftest.$ac_ext
8474 LIBS=$ac_check_lib_save_LIBS
8476 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
8477 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
8478 if test $ac_cv_lib_z_deflate = yes; then
8479 cat >>confdefs.h <<_ACEOF
8490 echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
8491 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6
8492 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8495 ac_check_lib_save_LIBS=$LIBS
8497 cat >conftest.$ac_ext <<_ACEOF
8500 cat confdefs.h >>conftest.$ac_ext
8501 cat >>conftest.$ac_ext <<_ACEOF
8502 /* end confdefs.h. */
8504 /* Override any gcc2 internal prototype to avoid an error. */
8508 /* We use char because int might match the return type of a gcc2
8509 builtin and then its argument prototype would still apply. */
8510 char jpeg_write_raw_data ();
8514 jpeg_write_raw_data ();
8519 rm -f conftest.$ac_objext conftest$ac_exeext
8520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8521 (eval $ac_link) 2>conftest.er1
8523 grep -v '^ *+' conftest.er1 >conftest.err
8525 cat conftest.err >&5
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); } &&
8528 { ac_try='test -z "$ac_c_werror_flag"
8529 || test ! -s conftest.err'
8530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); }; } &&
8535 { ac_try='test -s conftest$ac_exeext'
8536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); }; }; then
8541 ac_cv_lib_jpeg_jpeg_write_raw_data=yes
8543 echo "$as_me: failed program was:" >&5
8544 sed 's/^/| /' conftest.$ac_ext >&5
8546 ac_cv_lib_jpeg_jpeg_write_raw_data=no
8548 rm -f conftest.err conftest.$ac_objext \
8549 conftest$ac_exeext conftest.$ac_ext
8550 LIBS=$ac_check_lib_save_LIBS
8552 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
8553 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6
8554 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
8555 cat >>confdefs.h <<_ACEOF
8556 #define HAVE_LIBJPEG 1
8566 echo "$as_me:$LINENO: checking for T1_LoadFont in -lt1" >&5
8567 echo $ECHO_N "checking for T1_LoadFont in -lt1... $ECHO_C" >&6
8568 if test "${ac_cv_lib_t1_T1_LoadFont+set}" = set; then
8569 echo $ECHO_N "(cached) $ECHO_C" >&6
8571 ac_check_lib_save_LIBS=$LIBS
8573 cat >conftest.$ac_ext <<_ACEOF
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h. */
8580 /* Override any gcc2 internal prototype to avoid an error. */
8584 /* We use char because int might match the return type of a gcc2
8585 builtin and then its argument prototype would still apply. */
8586 char T1_LoadFont ();
8595 rm -f conftest.$ac_objext conftest$ac_exeext
8596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8597 (eval $ac_link) 2>conftest.er1
8599 grep -v '^ *+' conftest.er1 >conftest.err
8601 cat conftest.err >&5
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); } &&
8604 { ac_try='test -z "$ac_c_werror_flag"
8605 || test ! -s conftest.err'
8606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); }; } &&
8611 { ac_try='test -s conftest$ac_exeext'
8612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); }; }; then
8617 ac_cv_lib_t1_T1_LoadFont=yes
8619 echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.$ac_ext >&5
8622 ac_cv_lib_t1_T1_LoadFont=no
8624 rm -f conftest.err conftest.$ac_objext \
8625 conftest$ac_exeext conftest.$ac_ext
8626 LIBS=$ac_check_lib_save_LIBS
8628 echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_LoadFont" >&5
8629 echo "${ECHO_T}$ac_cv_lib_t1_T1_LoadFont" >&6
8630 if test $ac_cv_lib_t1_T1_LoadFont = yes; then
8631 cat >>confdefs.h <<_ACEOF
8632 #define HAVE_LIBT1 1
8643 echo "$as_me:$LINENO: checking for byte order" >&5
8644 echo $ECHO_N "checking for byte order... $ECHO_C" >&6
8645 if test "$cross_compiling" = yes; then
8648 cat >conftest.$ac_ext <<_ACEOF
8651 cat confdefs.h >>conftest.$ac_ext
8652 cat >>conftest.$ac_ext <<_ACEOF
8653 /* end confdefs.h. */
8655 int main (int argc, char *argv[])
8662 rm -f conftest$ac_exeext
8663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8664 (eval $ac_link) 2>&5
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); }; }; then
8675 echo "$as_me: program exited with status $ac_status" >&5
8676 echo "$as_me: failed program was:" >&5
8677 sed 's/^/| /' conftest.$ac_ext >&5
8682 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8686 if test "x${CROSSCOMPILE}" = "x1"; then
8687 echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
8688 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6
8689 echo "$as_me:$LINENO: checking target system type" >&5
8690 echo $ECHO_N "checking target system type... $ECHO_C" >&6
8691 if test "${ac_cv_target+set}" = set; then
8692 echo $ECHO_N "(cached) $ECHO_C" >&6
8694 ac_cv_target_alias=$target_alias
8695 test "x$ac_cv_target_alias" = "x" &&
8696 ac_cv_target_alias=$ac_cv_host_alias
8697 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
8698 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
8699 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
8700 { (exit 1); exit 1; }; }
8703 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
8704 echo "${ECHO_T}$ac_cv_target" >&6
8705 target=$ac_cv_target
8706 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
8707 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
8708 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
8711 # The aliases save the names the user supplied, while $host etc.
8712 # will get canonicalized.
8713 test -n "$target_alias" &&
8714 test "$program_prefix$program_suffix$program_transform_name" = \
8716 program_prefix=${target_alias}-
8717 echo "$as_me:$LINENO: checking for byte order, try 2" >&5
8718 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6
8723 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
8730 if test "x${LITTLEENDIAN}" = "x1"; then
8731 echo "$as_me:$LINENO: result: little endian" >&5
8732 echo "${ECHO_T}little endian" >&6
8736 if test "x${BIGENDIAN}" = "x1"; then
8737 echo "$as_me:$LINENO: result: big endian" >&5
8738 echo "${ECHO_T}big endian" >&6
8741 export WORDS_BIGENDIAN
8742 cat >>confdefs.h <<_ACEOF
8743 #define WORDS_BIGENDIAN 1
8747 if test "x${BYTEORDERCHECKOK}" != "x1"; then
8748 echo "$as_me:$LINENO: result: unknown" >&5
8749 echo "${ECHO_T}unknown" >&6
8750 echo Byte order could not determined.
8756 echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
8757 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6
8758 if test "$cross_compiling" = yes; then
8761 cat >conftest.$ac_ext <<_ACEOF
8764 cat confdefs.h >>conftest.$ac_ext
8765 cat >>conftest.$ac_ext <<_ACEOF
8766 /* end confdefs.h. */
8769 int main (int argc, char*argv[])
8771 return system("test `touch config.tmp2`");
8775 rm -f conftest$ac_exeext
8776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8777 (eval $ac_link) 2>&5
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); }; }; then
8788 echo "$as_me: program exited with status $ac_status" >&5
8789 echo "$as_me: failed program was:" >&5
8790 sed 's/^/| /' conftest.$ac_ext >&5
8793 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8796 if test "x${OK}" = "xOK";then
8797 test -f config.tmp2 || OK=
8800 if test "x${CROSSCOMPILE}" = "x1";then
8803 if test "x${OK}" = "xOK";then
8805 echo "$as_me:$LINENO: result: yes" >&5
8806 echo "${ECHO_T}yes" >&6
8808 export SYSTEM_BACKTICKS
8809 cat >>confdefs.h <<_ACEOF
8810 #define SYSTEM_BACKTICKS 1
8814 echo "$as_me:$LINENO: result: no" >&5
8815 echo "${ECHO_T}no" >&6
8820 test "$program_prefix" != NONE &&
8821 program_transform_name="s,^,$program_prefix,;$program_transform_name"
8822 # Use a double $ so make ignores it.
8823 test "$program_suffix" != NONE &&
8824 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
8825 # Double any \ or $. echo might interpret backslashes.
8826 # By default was `s,x,x', remove it if useless.
8827 cat <<\_ACEOF >conftest.sed
8828 s/[\\$]/&&/g;s/;s,x,x,$//
8830 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
8834 ac_config_headers="$ac_config_headers config.h"
8842 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8843 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8844 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8845 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8846 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8847 echo $ECHO_N "(cached) $ECHO_C" >&6
8849 cat >conftest.$ac_ext <<_ACEOF
8852 cat confdefs.h >>conftest.$ac_ext
8853 cat >>conftest.$ac_ext <<_ACEOF
8854 /* end confdefs.h. */
8855 #include <sys/types.h>
8867 rm -f conftest.$ac_objext
8868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8869 (eval $ac_compile) 2>conftest.er1
8871 grep -v '^ *+' conftest.er1 >conftest.err
8873 cat conftest.err >&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); } &&
8876 { ac_try='test -z "$ac_c_werror_flag"
8877 || test ! -s conftest.err'
8878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); }; } &&
8883 { ac_try='test -s conftest.$ac_objext'
8884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); }; }; then
8889 eval "$as_ac_Header=yes"
8891 echo "$as_me: failed program was:" >&5
8892 sed 's/^/| /' conftest.$ac_ext >&5
8894 eval "$as_ac_Header=no"
8896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8901 cat >>confdefs.h <<_ACEOF
8902 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8905 ac_header_dirent=$ac_hdr; break
8909 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8910 if test $ac_header_dirent = dirent.h; then
8911 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8912 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8913 if test "${ac_cv_search_opendir+set}" = set; then
8914 echo $ECHO_N "(cached) $ECHO_C" >&6
8916 ac_func_search_save_LIBS=$LIBS
8917 ac_cv_search_opendir=no
8918 cat >conftest.$ac_ext <<_ACEOF
8921 cat confdefs.h >>conftest.$ac_ext
8922 cat >>conftest.$ac_ext <<_ACEOF
8923 /* end confdefs.h. */
8925 /* Override any gcc2 internal prototype to avoid an error. */
8929 /* We use char because int might match the return type of a gcc2
8930 builtin and then its argument prototype would still apply. */
8940 rm -f conftest.$ac_objext conftest$ac_exeext
8941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8942 (eval $ac_link) 2>conftest.er1
8944 grep -v '^ *+' conftest.er1 >conftest.err
8946 cat conftest.err >&5
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); } &&
8949 { ac_try='test -z "$ac_c_werror_flag"
8950 || test ! -s conftest.err'
8951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); }; } &&
8956 { ac_try='test -s conftest$ac_exeext'
8957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); }; }; then
8962 ac_cv_search_opendir="none required"
8964 echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.$ac_ext >&5
8968 rm -f conftest.err conftest.$ac_objext \
8969 conftest$ac_exeext conftest.$ac_ext
8970 if test "$ac_cv_search_opendir" = no; then
8971 for ac_lib in dir; do
8972 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8973 cat >conftest.$ac_ext <<_ACEOF
8976 cat confdefs.h >>conftest.$ac_ext
8977 cat >>conftest.$ac_ext <<_ACEOF
8978 /* end confdefs.h. */
8980 /* Override any gcc2 internal prototype to avoid an error. */
8984 /* We use char because int might match the return type of a gcc2
8985 builtin and then its argument prototype would still apply. */
8995 rm -f conftest.$ac_objext conftest$ac_exeext
8996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8997 (eval $ac_link) 2>conftest.er1
8999 grep -v '^ *+' conftest.er1 >conftest.err
9001 cat conftest.err >&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); } &&
9004 { ac_try='test -z "$ac_c_werror_flag"
9005 || test ! -s conftest.err'
9006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); }; } &&
9011 { ac_try='test -s conftest$ac_exeext'
9012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); }; }; then
9017 ac_cv_search_opendir="-l$ac_lib"
9020 echo "$as_me: failed program was:" >&5
9021 sed 's/^/| /' conftest.$ac_ext >&5
9024 rm -f conftest.err conftest.$ac_objext \
9025 conftest$ac_exeext conftest.$ac_ext
9028 LIBS=$ac_func_search_save_LIBS
9030 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9031 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9032 if test "$ac_cv_search_opendir" != no; then
9033 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9038 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9039 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9040 if test "${ac_cv_search_opendir+set}" = set; then
9041 echo $ECHO_N "(cached) $ECHO_C" >&6
9043 ac_func_search_save_LIBS=$LIBS
9044 ac_cv_search_opendir=no
9045 cat >conftest.$ac_ext <<_ACEOF
9048 cat confdefs.h >>conftest.$ac_ext
9049 cat >>conftest.$ac_ext <<_ACEOF
9050 /* end confdefs.h. */
9052 /* Override any gcc2 internal prototype to avoid an error. */
9056 /* We use char because int might match the return type of a gcc2
9057 builtin and then its argument prototype would still apply. */
9067 rm -f conftest.$ac_objext conftest$ac_exeext
9068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9069 (eval $ac_link) 2>conftest.er1
9071 grep -v '^ *+' conftest.er1 >conftest.err
9073 cat conftest.err >&5
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); } &&
9076 { ac_try='test -z "$ac_c_werror_flag"
9077 || test ! -s conftest.err'
9078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082 (exit $ac_status); }; } &&
9083 { ac_try='test -s conftest$ac_exeext'
9084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); }; }; then
9089 ac_cv_search_opendir="none required"
9091 echo "$as_me: failed program was:" >&5
9092 sed 's/^/| /' conftest.$ac_ext >&5
9095 rm -f conftest.err conftest.$ac_objext \
9096 conftest$ac_exeext conftest.$ac_ext
9097 if test "$ac_cv_search_opendir" = no; then
9099 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9100 cat >conftest.$ac_ext <<_ACEOF
9103 cat confdefs.h >>conftest.$ac_ext
9104 cat >>conftest.$ac_ext <<_ACEOF
9105 /* end confdefs.h. */
9107 /* Override any gcc2 internal prototype to avoid an error. */
9111 /* We use char because int might match the return type of a gcc2
9112 builtin and then its argument prototype would still apply. */
9122 rm -f conftest.$ac_objext conftest$ac_exeext
9123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9124 (eval $ac_link) 2>conftest.er1
9126 grep -v '^ *+' conftest.er1 >conftest.err
9128 cat conftest.err >&5
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); } &&
9131 { ac_try='test -z "$ac_c_werror_flag"
9132 || test ! -s conftest.err'
9133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); }; } &&
9138 { ac_try='test -s conftest$ac_exeext'
9139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); }; }; then
9144 ac_cv_search_opendir="-l$ac_lib"
9147 echo "$as_me: failed program was:" >&5
9148 sed 's/^/| /' conftest.$ac_ext >&5
9151 rm -f conftest.err conftest.$ac_objext \
9152 conftest$ac_exeext conftest.$ac_ext
9155 LIBS=$ac_func_search_save_LIBS
9157 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9158 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9159 if test "$ac_cv_search_opendir" != no; then
9160 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9166 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9167 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9168 if test "${ac_cv_header_stdc+set}" = set; then
9169 echo $ECHO_N "(cached) $ECHO_C" >&6
9171 cat >conftest.$ac_ext <<_ACEOF
9174 cat confdefs.h >>conftest.$ac_ext
9175 cat >>conftest.$ac_ext <<_ACEOF
9176 /* end confdefs.h. */
9190 rm -f conftest.$ac_objext
9191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9192 (eval $ac_compile) 2>conftest.er1
9194 grep -v '^ *+' conftest.er1 >conftest.err
9196 cat conftest.err >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); } &&
9199 { ac_try='test -z "$ac_c_werror_flag"
9200 || test ! -s conftest.err'
9201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); }; } &&
9206 { ac_try='test -s conftest.$ac_objext'
9207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 (exit $ac_status); }; }; then
9212 ac_cv_header_stdc=yes
9214 echo "$as_me: failed program was:" >&5
9215 sed 's/^/| /' conftest.$ac_ext >&5
9217 ac_cv_header_stdc=no
9219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9221 if test $ac_cv_header_stdc = yes; then
9222 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9223 cat >conftest.$ac_ext <<_ACEOF
9226 cat confdefs.h >>conftest.$ac_ext
9227 cat >>conftest.$ac_ext <<_ACEOF
9228 /* end confdefs.h. */
9232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9233 $EGREP "memchr" >/dev/null 2>&1; then
9236 ac_cv_header_stdc=no
9242 if test $ac_cv_header_stdc = yes; then
9243 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9244 cat >conftest.$ac_ext <<_ACEOF
9247 cat confdefs.h >>conftest.$ac_ext
9248 cat >>conftest.$ac_ext <<_ACEOF
9249 /* end confdefs.h. */
9253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9254 $EGREP "free" >/dev/null 2>&1; then
9257 ac_cv_header_stdc=no
9263 if test $ac_cv_header_stdc = yes; then
9264 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9265 if test "$cross_compiling" = yes; then
9268 cat >conftest.$ac_ext <<_ACEOF
9271 cat confdefs.h >>conftest.$ac_ext
9272 cat >>conftest.$ac_ext <<_ACEOF
9273 /* end confdefs.h. */
9275 #if ((' ' & 0x0FF) == 0x020)
9276 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9277 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9279 # define ISLOWER(c) \
9280 (('a' <= (c) && (c) <= 'i') \
9281 || ('j' <= (c) && (c) <= 'r') \
9282 || ('s' <= (c) && (c) <= 'z'))
9283 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9286 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9291 for (i = 0; i < 256; i++)
9292 if (XOR (islower (i), ISLOWER (i))
9293 || toupper (i) != TOUPPER (i))
9298 rm -f conftest$ac_exeext
9299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9300 (eval $ac_link) 2>&5
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); }; }; then
9311 echo "$as_me: program exited with status $ac_status" >&5
9312 echo "$as_me: failed program was:" >&5
9313 sed 's/^/| /' conftest.$ac_ext >&5
9316 ac_cv_header_stdc=no
9318 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9322 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9323 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9324 if test $ac_cv_header_stdc = yes; then
9326 cat >>confdefs.h <<\_ACEOF
9327 #define STDC_HEADERS 1
9346 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
9348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9350 echo "$as_me:$LINENO: checking for $ac_header" >&5
9351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9353 echo $ECHO_N "(cached) $ECHO_C" >&6
9355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9358 # Is the header compilable?
9359 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9361 cat >conftest.$ac_ext <<_ACEOF
9364 cat confdefs.h >>conftest.$ac_ext
9365 cat >>conftest.$ac_ext <<_ACEOF
9366 /* end confdefs.h. */
9367 $ac_includes_default
9368 #include <$ac_header>
9370 rm -f conftest.$ac_objext
9371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9372 (eval $ac_compile) 2>conftest.er1
9374 grep -v '^ *+' conftest.er1 >conftest.err
9376 cat conftest.err >&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); } &&
9379 { ac_try='test -z "$ac_c_werror_flag"
9380 || test ! -s conftest.err'
9381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385 (exit $ac_status); }; } &&
9386 { ac_try='test -s conftest.$ac_objext'
9387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); }; }; then
9392 ac_header_compiler=yes
9394 echo "$as_me: failed program was:" >&5
9395 sed 's/^/| /' conftest.$ac_ext >&5
9397 ac_header_compiler=no
9399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9400 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9401 echo "${ECHO_T}$ac_header_compiler" >&6
9403 # Is the header present?
9404 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9406 cat >conftest.$ac_ext <<_ACEOF
9409 cat confdefs.h >>conftest.$ac_ext
9410 cat >>conftest.$ac_ext <<_ACEOF
9411 /* end confdefs.h. */
9412 #include <$ac_header>
9414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9415 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9417 grep -v '^ *+' conftest.er1 >conftest.err
9419 cat conftest.err >&5
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); } >/dev/null; then
9422 if test -s conftest.err; then
9423 ac_cpp_err=$ac_c_preproc_warn_flag
9424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9431 if test -z "$ac_cpp_err"; then
9432 ac_header_preproc=yes
9434 echo "$as_me: failed program was:" >&5
9435 sed 's/^/| /' conftest.$ac_ext >&5
9437 ac_header_preproc=no
9439 rm -f conftest.err conftest.$ac_ext
9440 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9441 echo "${ECHO_T}$ac_header_preproc" >&6
9443 # So? What about this header?
9444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9450 ac_header_preproc=yes
9453 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9455 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9456 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9457 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9459 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9460 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9463 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9467 ## ------------------------------------------ ##
9468 ## Report this to the AC_PACKAGE_NAME lists. ##
9469 ## ------------------------------------------ ##
9472 sed "s/^/$as_me: WARNING: /" >&2
9475 echo "$as_me:$LINENO: checking for $ac_header" >&5
9476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9478 echo $ECHO_N "(cached) $ECHO_C" >&6
9480 eval "$as_ac_Header=\$ac_header_preproc"
9482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9487 cat >>confdefs.h <<_ACEOF
9488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9496 cat >>confdefs.h <<_ACEOF
9497 #define PACKAGE "$PACKAGE"
9500 cat >>confdefs.h <<_ACEOF
9501 #define VERSION "$VERSION"
9510 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9511 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9512 if test "${ac_cv_c_const+set}" = set; then
9513 echo $ECHO_N "(cached) $ECHO_C" >&6
9515 cat >conftest.$ac_ext <<_ACEOF
9518 cat confdefs.h >>conftest.$ac_ext
9519 cat >>conftest.$ac_ext <<_ACEOF
9520 /* end confdefs.h. */
9525 /* FIXME: Include the comments suggested by Paul. */
9527 /* Ultrix mips cc rejects this. */
9528 typedef int charset[2];
9530 /* SunOS 4.1.1 cc rejects this. */
9531 char const *const *ccp;
9533 /* NEC SVR4.0.2 mips cc rejects this. */
9534 struct point {int x, y;};
9535 static struct point const zero = {0,0};
9536 /* AIX XL C 1.02.0.0 rejects this.
9537 It does not let you subtract one const X* pointer from another in
9538 an arm of an if-expression whose if-part is not a constant
9540 const char *g = "string";
9541 ccp = &g + (g ? g-g : 0);
9542 /* HPUX 7.0 cc rejects these. */
9545 ccp = (char const *const *) p;
9546 { /* SCO 3.2v4 cc rejects this. */
9548 char const *s = 0 ? (char *) 0 : (char const *) 0;
9552 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9554 const int *foo = &x[0];
9557 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9558 typedef const int *iptr;
9562 { /* AIX XL C 1.02.0.0 rejects this saying
9563 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9564 struct s { int j; const int *ap[3]; };
9565 struct s *b; b->j = 5;
9567 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9576 rm -f conftest.$ac_objext
9577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9578 (eval $ac_compile) 2>conftest.er1
9580 grep -v '^ *+' conftest.er1 >conftest.err
9582 cat conftest.err >&5
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); } &&
9585 { ac_try='test -z "$ac_c_werror_flag"
9586 || test ! -s conftest.err'
9587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); }; } &&
9592 { ac_try='test -s conftest.$ac_objext'
9593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); }; }; then
9600 echo "$as_me: failed program was:" >&5
9601 sed 's/^/| /' conftest.$ac_ext >&5
9605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9607 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9608 echo "${ECHO_T}$ac_cv_c_const" >&6
9609 if test $ac_cv_c_const = no; then
9611 cat >>confdefs.h <<\_ACEOF
9617 echo "$as_me:$LINENO: checking for inline" >&5
9618 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9619 if test "${ac_cv_c_inline+set}" = set; then
9620 echo $ECHO_N "(cached) $ECHO_C" >&6
9623 for ac_kw in inline __inline__ __inline; do
9624 cat >conftest.$ac_ext <<_ACEOF
9627 cat confdefs.h >>conftest.$ac_ext
9628 cat >>conftest.$ac_ext <<_ACEOF
9629 /* end confdefs.h. */
9632 static $ac_kw foo_t static_foo () {return 0; }
9633 $ac_kw foo_t foo () {return 0; }
9637 rm -f conftest.$ac_objext
9638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9639 (eval $ac_compile) 2>conftest.er1
9641 grep -v '^ *+' conftest.er1 >conftest.err
9643 cat conftest.err >&5
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); } &&
9646 { ac_try='test -z "$ac_c_werror_flag"
9647 || test ! -s conftest.err'
9648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); }; } &&
9653 { ac_try='test -s conftest.$ac_objext'
9654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); }; }; then
9659 ac_cv_c_inline=$ac_kw; break
9661 echo "$as_me: failed program was:" >&5
9662 sed 's/^/| /' conftest.$ac_ext >&5
9665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9669 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9670 echo "${ECHO_T}$ac_cv_c_inline" >&6
9673 case $ac_cv_c_inline in
9676 case $ac_cv_c_inline in
9678 *) ac_val=$ac_cv_c_inline;;
9680 cat >>confdefs.h <<_ACEOF
9682 #define inline $ac_val
9688 echo "$as_me:$LINENO: checking for off_t" >&5
9689 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
9690 if test "${ac_cv_type_off_t+set}" = set; then
9691 echo $ECHO_N "(cached) $ECHO_C" >&6
9693 cat >conftest.$ac_ext <<_ACEOF
9696 cat confdefs.h >>conftest.$ac_ext
9697 cat >>conftest.$ac_ext <<_ACEOF
9698 /* end confdefs.h. */
9699 $ac_includes_default
9711 rm -f conftest.$ac_objext
9712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9713 (eval $ac_compile) 2>conftest.er1
9715 grep -v '^ *+' conftest.er1 >conftest.err
9717 cat conftest.err >&5
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); } &&
9720 { ac_try='test -z "$ac_c_werror_flag"
9721 || test ! -s conftest.err'
9722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); }; } &&
9727 { ac_try='test -s conftest.$ac_objext'
9728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); }; }; then
9733 ac_cv_type_off_t=yes
9735 echo "$as_me: failed program was:" >&5
9736 sed 's/^/| /' conftest.$ac_ext >&5
9740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9742 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9743 echo "${ECHO_T}$ac_cv_type_off_t" >&6
9744 if test $ac_cv_type_off_t = yes; then
9748 cat >>confdefs.h <<_ACEOF
9754 echo "$as_me:$LINENO: checking for size_t" >&5
9755 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9756 if test "${ac_cv_type_size_t+set}" = set; then
9757 echo $ECHO_N "(cached) $ECHO_C" >&6
9759 cat >conftest.$ac_ext <<_ACEOF
9762 cat confdefs.h >>conftest.$ac_ext
9763 cat >>conftest.$ac_ext <<_ACEOF
9764 /* end confdefs.h. */
9765 $ac_includes_default
9771 if (sizeof (size_t))
9777 rm -f conftest.$ac_objext
9778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9779 (eval $ac_compile) 2>conftest.er1
9781 grep -v '^ *+' conftest.er1 >conftest.err
9783 cat conftest.err >&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); } &&
9786 { ac_try='test -z "$ac_c_werror_flag"
9787 || test ! -s conftest.err'
9788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); }; } &&
9793 { ac_try='test -s conftest.$ac_objext'
9794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); }; }; then
9799 ac_cv_type_size_t=yes
9801 echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.$ac_ext >&5
9804 ac_cv_type_size_t=no
9806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9808 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9809 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9810 if test $ac_cv_type_size_t = yes; then
9814 cat >>confdefs.h <<_ACEOF
9815 #define size_t unsigned
9820 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9821 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9822 if test "${ac_cv_struct_tm+set}" = set; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
9825 cat >conftest.$ac_ext <<_ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h. */
9831 #include <sys/types.h>
9837 struct tm *tp; tp->tm_sec;
9842 rm -f conftest.$ac_objext
9843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9844 (eval $ac_compile) 2>conftest.er1
9846 grep -v '^ *+' conftest.er1 >conftest.err
9848 cat conftest.err >&5
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); } &&
9851 { ac_try='test -z "$ac_c_werror_flag"
9852 || test ! -s conftest.err'
9853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); }; } &&
9858 { ac_try='test -s conftest.$ac_objext'
9859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); }; }; then
9864 ac_cv_struct_tm=time.h
9866 echo "$as_me: failed program was:" >&5
9867 sed 's/^/| /' conftest.$ac_ext >&5
9869 ac_cv_struct_tm=sys/time.h
9871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9873 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9874 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9875 if test $ac_cv_struct_tm = sys/time.h; then
9877 cat >>confdefs.h <<\_ACEOF
9878 #define TM_IN_SYS_TIME 1
9883 echo "$as_me:$LINENO: checking for boolean" >&5
9884 echo $ECHO_N "checking for boolean... $ECHO_C" >&6
9885 if test "${ac_cv_type_boolean+set}" = set; then
9886 echo $ECHO_N "(cached) $ECHO_C" >&6
9888 cat >conftest.$ac_ext <<_ACEOF
9891 cat confdefs.h >>conftest.$ac_ext
9892 cat >>conftest.$ac_ext <<_ACEOF
9893 /* end confdefs.h. */
9894 $ac_includes_default
9900 if (sizeof (boolean))
9906 rm -f conftest.$ac_objext
9907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9908 (eval $ac_compile) 2>conftest.er1
9910 grep -v '^ *+' conftest.er1 >conftest.err
9912 cat conftest.err >&5
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); } &&
9915 { ac_try='test -z "$ac_c_werror_flag"
9916 || test ! -s conftest.err'
9917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); }; } &&
9922 { ac_try='test -s conftest.$ac_objext'
9923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); }; }; then
9928 ac_cv_type_boolean=yes
9930 echo "$as_me: failed program was:" >&5
9931 sed 's/^/| /' conftest.$ac_ext >&5
9933 ac_cv_type_boolean=no
9935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9937 echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
9938 echo "${ECHO_T}$ac_cv_type_boolean" >&6
9939 if test $ac_cv_type_boolean = yes; then
9943 cat >>confdefs.h <<_ACEOF
9960 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
9962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9963 echo "$as_me:$LINENO: checking for $ac_func" >&5
9964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9965 if eval "test \"\${$as_ac_var+set}\" = set"; then
9966 echo $ECHO_N "(cached) $ECHO_C" >&6
9968 cat >conftest.$ac_ext <<_ACEOF
9971 cat confdefs.h >>conftest.$ac_ext
9972 cat >>conftest.$ac_ext <<_ACEOF
9973 /* end confdefs.h. */
9974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9976 #define $ac_func innocuous_$ac_func
9978 /* System header to define __stub macros and hopefully few prototypes,
9979 which can conflict with char $ac_func (); below.
9980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9981 <limits.h> exists even on freestanding compilers. */
9984 # include <limits.h>
9986 # include <assert.h>
9991 /* Override any gcc2 internal prototype to avoid an error. */
9996 /* We use char because int might match the return type of a gcc2
9997 builtin and then its argument prototype would still apply. */
9999 /* The GNU C library defines this for functions which it implements
10000 to always fail with ENOSYS. Some functions are actually named
10001 something starting with __ and the normal name is an alias. */
10002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10005 char (*f) () = $ac_func;
10014 return f != $ac_func;
10019 rm -f conftest.$ac_objext conftest$ac_exeext
10020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10021 (eval $ac_link) 2>conftest.er1
10023 grep -v '^ *+' conftest.er1 >conftest.err
10025 cat conftest.err >&5
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); } &&
10028 { ac_try='test -z "$ac_c_werror_flag"
10029 || test ! -s conftest.err'
10030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10031 (eval $ac_try) 2>&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); }; } &&
10035 { ac_try='test -s conftest$ac_exeext'
10036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10037 (eval $ac_try) 2>&5
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); }; }; then
10041 eval "$as_ac_var=yes"
10043 echo "$as_me: failed program was:" >&5
10044 sed 's/^/| /' conftest.$ac_ext >&5
10046 eval "$as_ac_var=no"
10048 rm -f conftest.err conftest.$ac_objext \
10049 conftest$ac_exeext conftest.$ac_ext
10051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10052 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10053 if test `eval echo '${'$as_ac_var'}'` = yes; then
10054 cat >>confdefs.h <<_ACEOF
10055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10062 # ------------------------------------------------------------------
10065 for ac_prog in freetype-config
10067 # Extract the first word of "$ac_prog", so it can be a program name with args.
10068 set dummy $ac_prog; ac_word=$2
10069 echo "$as_me:$LINENO: checking for $ac_word" >&5
10070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10071 if test "${ac_cv_prog_FREETYPE_CONFIG+set}" = set; then
10072 echo $ECHO_N "(cached) $ECHO_C" >&6
10074 if test -n "$FREETYPE_CONFIG"; then
10075 ac_cv_prog_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test.
10077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10078 for as_dir in $PATH
10081 test -z "$as_dir" && as_dir=.
10082 for ac_exec_ext in '' $ac_executable_extensions; do
10083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10084 ac_cv_prog_FREETYPE_CONFIG="$ac_prog"
10085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10093 FREETYPE_CONFIG=$ac_cv_prog_FREETYPE_CONFIG
10094 if test -n "$FREETYPE_CONFIG"; then
10095 echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
10096 echo "${ECHO_T}$FREETYPE_CONFIG" >&6
10098 echo "$as_me:$LINENO: result: no" >&5
10099 echo "${ECHO_T}no" >&6
10102 test -n "$FREETYPE_CONFIG" && break
10105 OLDCPPFLAGS="${CPPFLAGS}"
10107 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
10108 CPPFLAGS="$CPPFLAGS "`freetype-config --cflags`
10109 else if test -d /usr/include/freetype2; then
10110 CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
10111 else if test -d /usr/local/include/freetype2; then
10112 CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
10117 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
10118 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
10119 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
10120 echo $ECHO_N "(cached) $ECHO_C" >&6
10122 ac_check_lib_save_LIBS=$LIBS
10123 LIBS="-lfreetype $LIBS"
10124 cat >conftest.$ac_ext <<_ACEOF
10127 cat confdefs.h >>conftest.$ac_ext
10128 cat >>conftest.$ac_ext <<_ACEOF
10129 /* end confdefs.h. */
10131 /* Override any gcc2 internal prototype to avoid an error. */
10135 /* We use char because int might match the return type of a gcc2
10136 builtin and then its argument prototype would still apply. */
10137 char FT_Init_FreeType ();
10141 FT_Init_FreeType ();
10146 rm -f conftest.$ac_objext conftest$ac_exeext
10147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10148 (eval $ac_link) 2>conftest.er1
10150 grep -v '^ *+' conftest.er1 >conftest.err
10152 cat conftest.err >&5
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); } &&
10155 { ac_try='test -z "$ac_c_werror_flag"
10156 || test ! -s conftest.err'
10157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10158 (eval $ac_try) 2>&5
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); }; } &&
10162 { ac_try='test -s conftest$ac_exeext'
10163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10164 (eval $ac_try) 2>&5
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); }; }; then
10168 ac_cv_lib_freetype_FT_Init_FreeType=yes
10170 echo "$as_me: failed program was:" >&5
10171 sed 's/^/| /' conftest.$ac_ext >&5
10173 ac_cv_lib_freetype_FT_Init_FreeType=no
10175 rm -f conftest.err conftest.$ac_objext \
10176 conftest$ac_exeext conftest.$ac_ext
10177 LIBS=$ac_check_lib_save_LIBS
10179 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
10180 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10181 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
10182 HAVE_LIB_FREETYPE=1
10186 for ac_header in freetype/freetype.h
10188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10190 echo "$as_me:$LINENO: checking for $ac_header" >&5
10191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10193 echo $ECHO_N "(cached) $ECHO_C" >&6
10195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10198 # Is the header compilable?
10199 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10200 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10201 cat >conftest.$ac_ext <<_ACEOF
10204 cat confdefs.h >>conftest.$ac_ext
10205 cat >>conftest.$ac_ext <<_ACEOF
10206 /* end confdefs.h. */
10207 $ac_includes_default
10208 #include <$ac_header>
10210 rm -f conftest.$ac_objext
10211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10212 (eval $ac_compile) 2>conftest.er1
10214 grep -v '^ *+' conftest.er1 >conftest.err
10216 cat conftest.err >&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); } &&
10219 { ac_try='test -z "$ac_c_werror_flag"
10220 || test ! -s conftest.err'
10221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10222 (eval $ac_try) 2>&5
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); }; } &&
10226 { ac_try='test -s conftest.$ac_objext'
10227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10228 (eval $ac_try) 2>&5
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); }; }; then
10232 ac_header_compiler=yes
10234 echo "$as_me: failed program was:" >&5
10235 sed 's/^/| /' conftest.$ac_ext >&5
10237 ac_header_compiler=no
10239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10240 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10241 echo "${ECHO_T}$ac_header_compiler" >&6
10243 # Is the header present?
10244 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10246 cat >conftest.$ac_ext <<_ACEOF
10249 cat confdefs.h >>conftest.$ac_ext
10250 cat >>conftest.$ac_ext <<_ACEOF
10251 /* end confdefs.h. */
10252 #include <$ac_header>
10254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10257 grep -v '^ *+' conftest.er1 >conftest.err
10259 cat conftest.err >&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); } >/dev/null; then
10262 if test -s conftest.err; then
10263 ac_cpp_err=$ac_c_preproc_warn_flag
10264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10271 if test -z "$ac_cpp_err"; then
10272 ac_header_preproc=yes
10274 echo "$as_me: failed program was:" >&5
10275 sed 's/^/| /' conftest.$ac_ext >&5
10277 ac_header_preproc=no
10279 rm -f conftest.err conftest.$ac_ext
10280 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10281 echo "${ECHO_T}$ac_header_preproc" >&6
10283 # So? What about this header?
10284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10286 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10287 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10289 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10290 ac_header_preproc=yes
10293 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10294 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10295 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10296 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10297 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10298 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10299 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10300 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10303 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10304 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10307 ## ------------------------------------------ ##
10308 ## Report this to the AC_PACKAGE_NAME lists. ##
10309 ## ------------------------------------------ ##
10312 sed "s/^/$as_me: WARNING: /" >&2
10315 echo "$as_me:$LINENO: checking for $ac_header" >&5
10316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10318 echo $ECHO_N "(cached) $ECHO_C" >&6
10320 eval "$as_ac_Header=\$ac_header_preproc"
10322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10327 cat >>confdefs.h <<_ACEOF
10328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10330 HAVE_FREETYPE_FREETYPE_H=1
10336 for ac_header in ft2build.h
10338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10340 echo "$as_me:$LINENO: checking for $ac_header" >&5
10341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10343 echo $ECHO_N "(cached) $ECHO_C" >&6
10345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10348 # Is the header compilable?
10349 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10350 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10351 cat >conftest.$ac_ext <<_ACEOF
10354 cat confdefs.h >>conftest.$ac_ext
10355 cat >>conftest.$ac_ext <<_ACEOF
10356 /* end confdefs.h. */
10357 $ac_includes_default
10358 #include <$ac_header>
10360 rm -f conftest.$ac_objext
10361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10362 (eval $ac_compile) 2>conftest.er1
10364 grep -v '^ *+' conftest.er1 >conftest.err
10366 cat conftest.err >&5
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); } &&
10369 { ac_try='test -z "$ac_c_werror_flag"
10370 || test ! -s conftest.err'
10371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10372 (eval $ac_try) 2>&5
10374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375 (exit $ac_status); }; } &&
10376 { ac_try='test -s conftest.$ac_objext'
10377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10378 (eval $ac_try) 2>&5
10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 (exit $ac_status); }; }; then
10382 ac_header_compiler=yes
10384 echo "$as_me: failed program was:" >&5
10385 sed 's/^/| /' conftest.$ac_ext >&5
10387 ac_header_compiler=no
10389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10390 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10391 echo "${ECHO_T}$ac_header_compiler" >&6
10393 # Is the header present?
10394 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10396 cat >conftest.$ac_ext <<_ACEOF
10399 cat confdefs.h >>conftest.$ac_ext
10400 cat >>conftest.$ac_ext <<_ACEOF
10401 /* end confdefs.h. */
10402 #include <$ac_header>
10404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10407 grep -v '^ *+' conftest.er1 >conftest.err
10409 cat conftest.err >&5
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); } >/dev/null; then
10412 if test -s conftest.err; then
10413 ac_cpp_err=$ac_c_preproc_warn_flag
10414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10421 if test -z "$ac_cpp_err"; then
10422 ac_header_preproc=yes
10424 echo "$as_me: failed program was:" >&5
10425 sed 's/^/| /' conftest.$ac_ext >&5
10427 ac_header_preproc=no
10429 rm -f conftest.err conftest.$ac_ext
10430 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10431 echo "${ECHO_T}$ac_header_preproc" >&6
10433 # So? What about this header?
10434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10436 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10437 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10439 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10440 ac_header_preproc=yes
10443 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10444 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10445 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10446 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10447 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10448 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10449 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10450 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10453 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10454 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10457 ## ------------------------------------------ ##
10458 ## Report this to the AC_PACKAGE_NAME lists. ##
10459 ## ------------------------------------------ ##
10462 sed "s/^/$as_me: WARNING: /" >&2
10465 echo "$as_me:$LINENO: checking for $ac_header" >&5
10466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10468 echo $ECHO_N "(cached) $ECHO_C" >&6
10470 eval "$as_ac_Header=\$ac_header_preproc"
10472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10477 cat >>confdefs.h <<_ACEOF
10478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10486 if test "x${HAVE_LIB_FREETYPE}" '!=' "x";then
10487 if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
10490 if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
10495 if test "x${HAVE_FREETYPE}" = "x1"; then
10496 if test "x{$FREETYPE_CONFIG}" '!=' "x"; then
10497 LIBS="$LIBS "`freetype-config --libs`
10499 LIBS="$LIBS -lfreetype"
10502 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
10503 HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
10506 echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
10507 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6
10509 cat > conftest.c << EOF
10510 $HAVE_FT2BUILD_H_DEFINE
10512 #ifdef HAVE_FT2BUILD_H
10513 #include <ft2build.h>
10514 #include FT_FREETYPE_H
10515 #include FT_GLYPH_H
10516 #include FT_SIZES_H
10517 #include FT_SFNT_NAMES_H
10518 #include FT_TRUETYPE_IDS_H
10519 #include FT_OUTLINE_H
10521 #include <freetype/freetype.h>
10522 #include <freetype/ftglyph.h>
10523 #include <freetype/ftsizes.h>
10524 #include <freetype/ftsnames.h>
10525 #include <freetype/ttnameid.h>
10526 #include <freetype/ftoutln.h>
10531 FT_Library ftlibrary;
10543 FT_Init_FreeType(&ftlibrary);
10544 FT_New_Face(ftlibrary, "filename", 0, &face);
10545 i = face->num_glyphs - 1;
10546 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
10547 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
10548 FT_Get_Postscript_Name(face);
10549 FT_Get_Char_Index(face, 33);
10550 FT_Get_First_Char(face, &i);
10551 FT_Get_Next_Char(face, 33, &i);
10552 if(FT_HAS_GLYPH_NAMES(face)) {
10553 FT_Get_Glyph_Name(face, 33, name, 127);
10555 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
10556 FT_Get_Glyph(face->glyph, &glyph);
10557 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
10558 FT_Done_Glyph(glyph);
10559 FT_Done_Face(face);
10560 FT_Done_FreeType(ftlibrary);
10565 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
10566 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10567 echo "$as_me:$LINENO: result: yes" >&5
10568 echo "${ECHO_T}yes" >&6
10569 cat >>confdefs.h <<_ACEOF
10570 #define HAVE_FREETYPE 1
10573 cat >>confdefs.h <<_ACEOF
10574 #define USE_FREETYPE 1
10578 echo "configure: failed program was:" >&5
10581 echo "$as_me:$LINENO: result: no" >&5
10582 echo "${ECHO_T}no" >&6
10587 # if the above didn't work out, reset all changes to the compiler variables.
10588 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
10589 CPPFLAGS=$OLDCPPFLAGS
10595 OLDCPPFLAGS="${CPPFLAGS}"
10598 if test -d /usr/include/fontconfig; then
10599 CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
10602 echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
10603 echo $ECHO_N "checking for FcInit in -lfontconfig... $ECHO_C" >&6
10604 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
10605 echo $ECHO_N "(cached) $ECHO_C" >&6
10607 ac_check_lib_save_LIBS=$LIBS
10608 LIBS="-lfontconfig $LIBS"
10609 cat >conftest.$ac_ext <<_ACEOF
10612 cat confdefs.h >>conftest.$ac_ext
10613 cat >>conftest.$ac_ext <<_ACEOF
10614 /* end confdefs.h. */
10616 /* Override any gcc2 internal prototype to avoid an error. */
10620 /* We use char because int might match the return type of a gcc2
10621 builtin and then its argument prototype would still apply. */
10631 rm -f conftest.$ac_objext conftest$ac_exeext
10632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10633 (eval $ac_link) 2>conftest.er1
10635 grep -v '^ *+' conftest.er1 >conftest.err
10637 cat conftest.err >&5
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); } &&
10640 { ac_try='test -z "$ac_c_werror_flag"
10641 || test ! -s conftest.err'
10642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10643 (eval $ac_try) 2>&5
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); }; } &&
10647 { ac_try='test -s conftest$ac_exeext'
10648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10649 (eval $ac_try) 2>&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); }; }; then
10653 ac_cv_lib_fontconfig_FcInit=yes
10655 echo "$as_me: failed program was:" >&5
10656 sed 's/^/| /' conftest.$ac_ext >&5
10658 ac_cv_lib_fontconfig_FcInit=no
10660 rm -f conftest.err conftest.$ac_objext \
10661 conftest$ac_exeext conftest.$ac_ext
10662 LIBS=$ac_check_lib_save_LIBS
10664 echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
10665 echo "${ECHO_T}$ac_cv_lib_fontconfig_FcInit" >&6
10666 if test $ac_cv_lib_fontconfig_FcInit = yes; then
10667 HAVE_LIB_FONTCONFIG=1
10671 for ac_header in fontconfig.h
10673 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10675 echo "$as_me:$LINENO: checking for $ac_header" >&5
10676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10678 echo $ECHO_N "(cached) $ECHO_C" >&6
10680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10683 # Is the header compilable?
10684 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10685 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10686 cat >conftest.$ac_ext <<_ACEOF
10689 cat confdefs.h >>conftest.$ac_ext
10690 cat >>conftest.$ac_ext <<_ACEOF
10691 /* end confdefs.h. */
10692 $ac_includes_default
10693 #include <$ac_header>
10695 rm -f conftest.$ac_objext
10696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10697 (eval $ac_compile) 2>conftest.er1
10699 grep -v '^ *+' conftest.er1 >conftest.err
10701 cat conftest.err >&5
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); } &&
10704 { ac_try='test -z "$ac_c_werror_flag"
10705 || test ! -s conftest.err'
10706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10707 (eval $ac_try) 2>&5
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); }; } &&
10711 { ac_try='test -s conftest.$ac_objext'
10712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10713 (eval $ac_try) 2>&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); }; }; then
10717 ac_header_compiler=yes
10719 echo "$as_me: failed program was:" >&5
10720 sed 's/^/| /' conftest.$ac_ext >&5
10722 ac_header_compiler=no
10724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10725 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10726 echo "${ECHO_T}$ac_header_compiler" >&6
10728 # Is the header present?
10729 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10730 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10731 cat >conftest.$ac_ext <<_ACEOF
10734 cat confdefs.h >>conftest.$ac_ext
10735 cat >>conftest.$ac_ext <<_ACEOF
10736 /* end confdefs.h. */
10737 #include <$ac_header>
10739 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10740 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10742 grep -v '^ *+' conftest.er1 >conftest.err
10744 cat conftest.err >&5
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); } >/dev/null; then
10747 if test -s conftest.err; then
10748 ac_cpp_err=$ac_c_preproc_warn_flag
10749 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10756 if test -z "$ac_cpp_err"; then
10757 ac_header_preproc=yes
10759 echo "$as_me: failed program was:" >&5
10760 sed 's/^/| /' conftest.$ac_ext >&5
10762 ac_header_preproc=no
10764 rm -f conftest.err conftest.$ac_ext
10765 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10766 echo "${ECHO_T}$ac_header_preproc" >&6
10768 # So? What about this header?
10769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10771 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10772 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10774 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10775 ac_header_preproc=yes
10778 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10779 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10780 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10781 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10782 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10783 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10784 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10785 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10787 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10788 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10789 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10792 ## ------------------------------------------ ##
10793 ## Report this to the AC_PACKAGE_NAME lists. ##
10794 ## ------------------------------------------ ##
10797 sed "s/^/$as_me: WARNING: /" >&2
10800 echo "$as_me:$LINENO: checking for $ac_header" >&5
10801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10803 echo $ECHO_N "(cached) $ECHO_C" >&6
10805 eval "$as_ac_Header=\$ac_header_preproc"
10807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10808 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10811 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10812 cat >>confdefs.h <<_ACEOF
10813 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10815 HAVE_FONTCONFIG_H=1
10821 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
10822 if test "x${HAVE_FONTCONFIG_H}" != "x";then
10827 if test "x${HAVE_FONTCONFIG}" = "x1"; then
10828 LIBS="$LIBS -lfontconfig"
10829 echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
10830 echo $ECHO_N "checking whether we can compile the fontconfig test program... $ECHO_C" >&6
10832 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
10833 #move freetype library to the end of libraries, otherwise fontconfig
10835 LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
10838 cat > conftest.c << EOF
10839 #include <fontconfig.h>
10843 FcPattern *pattern, *match;
10847 pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
10848 FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
10849 FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
10850 FcConfigSubstitute(0, pattern, FcMatchPattern);
10851 FcDefaultSubstitute(pattern);
10852 match = FcFontMatch(0, pattern, &result);
10853 FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
10854 FcPatternPrint(pattern);
10855 FcPatternDestroy(pattern);
10856 FcPatternDestroy(match);
10861 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
10862 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10863 echo "$as_me:$LINENO: result: yes" >&5
10864 echo "${ECHO_T}yes" >&6
10865 cat >>confdefs.h <<_ACEOF
10866 #define HAVE_FONTCONFIG 1
10870 echo "configure: failed program was:" >&5
10873 echo "$as_me:$LINENO: result: no" >&5
10874 echo "${ECHO_T}no" >&6
10879 # if the above didn't work out, reset all changes to the compiler variables.
10880 if test "x${HAVE_FREETYPE}" "!=" "x1"; then
10881 CPPFLAGS=$OLDCPPFLAGS
10886 # ------------------------------------------------------------------
10890 if test "x${DISABLE_LAME}" = "xtrue"; then
10891 echo "*" Disabling lame support...
10893 # old lame code at lib/lame
10894 if test -f lib/lame/Makefile.in; then
10895 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"
10896 lame_makefile="lib/lame/Makefile"
10897 CPPFLAGS="$CPPFLAGS -Ilame"
10898 cat >>confdefs.h <<_ACEOF
10899 #define HAVE_LAME 1
10903 if test -d /usr/include/lame; then
10904 CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
10906 if test -d /usr/local/include/lame; then
10907 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
10911 echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
10912 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6
10913 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
10914 echo $ECHO_N "(cached) $ECHO_C" >&6
10916 ac_check_lib_save_LIBS=$LIBS
10917 LIBS="-lmp3lame $LIBS"
10918 cat >conftest.$ac_ext <<_ACEOF
10921 cat confdefs.h >>conftest.$ac_ext
10922 cat >>conftest.$ac_ext <<_ACEOF
10923 /* end confdefs.h. */
10925 /* Override any gcc2 internal prototype to avoid an error. */
10929 /* We use char because int might match the return type of a gcc2
10930 builtin and then its argument prototype would still apply. */
10940 rm -f conftest.$ac_objext conftest$ac_exeext
10941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10942 (eval $ac_link) 2>conftest.er1
10944 grep -v '^ *+' conftest.er1 >conftest.err
10946 cat conftest.err >&5
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); } &&
10949 { ac_try='test -z "$ac_c_werror_flag"
10950 || test ! -s conftest.err'
10951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10952 (eval $ac_try) 2>&5
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); }; } &&
10956 { ac_try='test -s conftest$ac_exeext'
10957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10958 (eval $ac_try) 2>&5
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); }; }; then
10962 ac_cv_lib_mp3lame_lame_init=yes
10964 echo "$as_me: failed program was:" >&5
10965 sed 's/^/| /' conftest.$ac_ext >&5
10967 ac_cv_lib_mp3lame_lame_init=no
10969 rm -f conftest.err conftest.$ac_objext \
10970 conftest$ac_exeext conftest.$ac_ext
10971 LIBS=$ac_check_lib_save_LIBS
10973 echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
10974 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6
10975 if test $ac_cv_lib_mp3lame_lame_init = yes; then
10976 cat >>confdefs.h <<_ACEOF
10977 #define HAVE_LIBMP3LAME 1
10980 LIBS="-lmp3lame $LIBS"
10987 for ac_header in lame.h
10989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10991 echo "$as_me:$LINENO: checking for $ac_header" >&5
10992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10994 echo $ECHO_N "(cached) $ECHO_C" >&6
10996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10999 # Is the header compilable?
11000 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11002 cat >conftest.$ac_ext <<_ACEOF
11005 cat confdefs.h >>conftest.$ac_ext
11006 cat >>conftest.$ac_ext <<_ACEOF
11007 /* end confdefs.h. */
11008 $ac_includes_default
11009 #include <$ac_header>
11011 rm -f conftest.$ac_objext
11012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11013 (eval $ac_compile) 2>conftest.er1
11015 grep -v '^ *+' conftest.er1 >conftest.err
11017 cat conftest.err >&5
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); } &&
11020 { ac_try='test -z "$ac_c_werror_flag"
11021 || test ! -s conftest.err'
11022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11023 (eval $ac_try) 2>&5
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }; } &&
11027 { ac_try='test -s conftest.$ac_objext'
11028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11029 (eval $ac_try) 2>&5
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; }; then
11033 ac_header_compiler=yes
11035 echo "$as_me: failed program was:" >&5
11036 sed 's/^/| /' conftest.$ac_ext >&5
11038 ac_header_compiler=no
11040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11041 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11042 echo "${ECHO_T}$ac_header_compiler" >&6
11044 # Is the header present?
11045 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11047 cat >conftest.$ac_ext <<_ACEOF
11050 cat confdefs.h >>conftest.$ac_ext
11051 cat >>conftest.$ac_ext <<_ACEOF
11052 /* end confdefs.h. */
11053 #include <$ac_header>
11055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11058 grep -v '^ *+' conftest.er1 >conftest.err
11060 cat conftest.err >&5
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); } >/dev/null; then
11063 if test -s conftest.err; then
11064 ac_cpp_err=$ac_c_preproc_warn_flag
11065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11072 if test -z "$ac_cpp_err"; then
11073 ac_header_preproc=yes
11075 echo "$as_me: failed program was:" >&5
11076 sed 's/^/| /' conftest.$ac_ext >&5
11078 ac_header_preproc=no
11080 rm -f conftest.err conftest.$ac_ext
11081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11082 echo "${ECHO_T}$ac_header_preproc" >&6
11084 # So? What about this header?
11085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11087 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11088 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11090 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11091 ac_header_preproc=yes
11094 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11095 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11096 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11097 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11098 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11099 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11100 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11101 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11104 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11105 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11108 ## ------------------------------------------ ##
11109 ## Report this to the AC_PACKAGE_NAME lists. ##
11110 ## ------------------------------------------ ##
11113 sed "s/^/$as_me: WARNING: /" >&2
11116 echo "$as_me:$LINENO: checking for $ac_header" >&5
11117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11119 echo $ECHO_N "(cached) $ECHO_C" >&6
11121 eval "$as_ac_Header=\$ac_header_preproc"
11123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11128 cat >>confdefs.h <<_ACEOF
11129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11136 if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$ac_cv_header_lame_h" "!=" "x";then
11137 cat >>confdefs.h <<_ACEOF
11138 #define HAVE_LAME 1
11146 # ------------------------------------------------------------------
11150 for ac_prog in avifile-config
11152 # Extract the first word of "$ac_prog", so it can be a program name with args.
11153 set dummy $ac_prog; ac_word=$2
11154 echo "$as_me:$LINENO: checking for $ac_word" >&5
11155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11156 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
11157 echo $ECHO_N "(cached) $ECHO_C" >&6
11159 if test -n "$AVIFILE_CONFIG"; then
11160 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
11162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11163 for as_dir in $PATH
11166 test -z "$as_dir" && as_dir=.
11167 for ac_exec_ext in '' $ac_executable_extensions; do
11168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11169 ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
11170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11178 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
11179 if test -n "$AVIFILE_CONFIG"; then
11180 echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
11181 echo "${ECHO_T}$AVIFILE_CONFIG" >&6
11183 echo "$as_me:$LINENO: result: no" >&5
11184 echo "${ECHO_T}no" >&6
11187 test -n "$AVIFILE_CONFIG" && break
11191 if test "x$AVIFILE_CONFIG" '!=' "x";then
11192 OLDCPPFLAGS="$CPPFLAGS"
11193 # temporarily add avifile paths to CPPFLAGS...
11194 CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
11197 for ac_header in avifile/version.h version.h
11199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11201 echo "$as_me:$LINENO: checking for $ac_header" >&5
11202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11204 echo $ECHO_N "(cached) $ECHO_C" >&6
11206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11209 # Is the header compilable?
11210 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11212 cat >conftest.$ac_ext <<_ACEOF
11215 cat confdefs.h >>conftest.$ac_ext
11216 cat >>conftest.$ac_ext <<_ACEOF
11217 /* end confdefs.h. */
11218 $ac_includes_default
11219 #include <$ac_header>
11221 rm -f conftest.$ac_objext
11222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11223 (eval $ac_compile) 2>conftest.er1
11225 grep -v '^ *+' conftest.er1 >conftest.err
11227 cat conftest.err >&5
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); } &&
11230 { ac_try='test -z "$ac_c_werror_flag"
11231 || test ! -s conftest.err'
11232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233 (eval $ac_try) 2>&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); }; } &&
11237 { ac_try='test -s conftest.$ac_objext'
11238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11239 (eval $ac_try) 2>&5
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); }; }; then
11243 ac_header_compiler=yes
11245 echo "$as_me: failed program was:" >&5
11246 sed 's/^/| /' conftest.$ac_ext >&5
11248 ac_header_compiler=no
11250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11251 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11252 echo "${ECHO_T}$ac_header_compiler" >&6
11254 # Is the header present?
11255 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11256 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11257 cat >conftest.$ac_ext <<_ACEOF
11260 cat confdefs.h >>conftest.$ac_ext
11261 cat >>conftest.$ac_ext <<_ACEOF
11262 /* end confdefs.h. */
11263 #include <$ac_header>
11265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11268 grep -v '^ *+' conftest.er1 >conftest.err
11270 cat conftest.err >&5
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); } >/dev/null; then
11273 if test -s conftest.err; then
11274 ac_cpp_err=$ac_c_preproc_warn_flag
11275 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11282 if test -z "$ac_cpp_err"; then
11283 ac_header_preproc=yes
11285 echo "$as_me: failed program was:" >&5
11286 sed 's/^/| /' conftest.$ac_ext >&5
11288 ac_header_preproc=no
11290 rm -f conftest.err conftest.$ac_ext
11291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11292 echo "${ECHO_T}$ac_header_preproc" >&6
11294 # So? What about this header?
11295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11297 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11298 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11300 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11301 ac_header_preproc=yes
11304 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11305 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11306 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11307 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11308 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11309 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11310 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11311 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11313 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11314 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11315 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11318 ## ------------------------------------------ ##
11319 ## Report this to the AC_PACKAGE_NAME lists. ##
11320 ## ------------------------------------------ ##
11323 sed "s/^/$as_me: WARNING: /" >&2
11326 echo "$as_me:$LINENO: checking for $ac_header" >&5
11327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11329 echo $ECHO_N "(cached) $ECHO_C" >&6
11331 eval "$as_ac_Header=\$ac_header_preproc"
11333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11338 cat >>confdefs.h <<_ACEOF
11339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11347 CPPFLAGS="$OLDCPPFLAGS"
11350 echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
11351 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6
11353 if test "x${ac_cv_header_version_h}" '=' "xyes";then
11354 HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
11356 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
11357 HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
11360 cat > conftest.cpp << EOF
11362 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
11363 // so we have to introduce them this way
11364 $HAVE_VERSION_H_DEFINE
11365 $HAVE_AVIFILE_VERSION_H_DEFINE
11367 #ifdef HAVE_VERSION_H
11368 #include <version.h>
11370 #ifdef HAVE_AVIFILE_VERSION_H
11371 #include <avifile/version.h>
11374 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
11375 #include <avifile.h>
11376 #include <aviplay.h>
11377 #include <fourcc.h>
11378 #include <creators.h>
11379 #include <StreamInfo.h>
11382 #include <avifile.h>
11383 #include <aviplay.h>
11384 #include <aviutil.h>
11385 #define Width width
11386 #define Height height
11393 IAviReadFile* player;
11394 IAviReadStream* astream;
11395 IAviReadStream* vstream;
11396 player = CreateIAviReadFile(0);
11397 astream = player->GetStream(0, AviStream::Audio);
11398 vstream = player->GetStream(0, AviStream::Video);
11399 vstream -> StartStreaming();
11400 astream -> StartStreaming();
11402 MainAVIHeader head;
11403 player->GetFileHeader(&head);
11404 head.dwMicroSecPerFrame;
11405 head.dwTotalFrames;
11409 head.dwMicroSecPerFrame;
11410 astream->GetEndPos(),
11411 astream->GetEndTime());
11412 player->StreamCount();
11414 StreamInfo*audioinfo;
11415 StreamInfo*videoinfo;
11416 audioinfo = astream->GetStreamInfo();
11417 videoinfo = vstream->GetStreamInfo();
11418 videoinfo->GetVideoWidth();
11419 videoinfo->GetVideoHeight();
11420 audioinfo->GetAudioSamplesPerSec();
11421 videoinfo->GetFps();
11423 CImage*img = vstream->GetFrame();
11430 astream->GetAudioFormatInfo(&wave,0);
11432 astream->ReadFrames(0,0,0,a,b);
11434 int main (int argc, char*argv)
11440 if test "x$AVIFILE_CONFIG" '!=' "x";then
11441 AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
11442 AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
11443 avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
11444 if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
11445 echo "$as_me:$LINENO: result: yes" >&5
11446 echo "${ECHO_T}yes" >&6
11449 cat >>confdefs.h <<_ACEOF
11450 #define AVIFILE true
11454 echo "configure: failed program was:" >&5
11455 cat conftest.cpp >&5
11456 echo "$as_me:$LINENO: result: no" >&5
11457 echo "${ECHO_T}no" >&6
11460 echo "$as_me:$LINENO: result: no" >&5
11461 echo "${ECHO_T}no" >&6
11465 if test "x${AVIFILE}" = "xtrue"; then
11466 VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
11467 VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
11468 cat >>confdefs.h <<_ACEOF
11469 #define HAVE_AVIFILE 1
11474 if test "x${WIN32}" != "x"; then
11475 #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
11476 #if test "x${AVIFIL32}" != "x"; then
11477 # VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
11479 VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
11485 # ------------------------------------------------------------------
11487 if test "x${UNCOMPRESS}" = "xgzip"; then
11488 cat >>confdefs.h <<_ACEOF
11495 # ------------------------------------------------------------------
11498 echo "$as_me:$LINENO: checking for Python.h and PIL" >&5
11499 echo $ECHO_N "checking for Python.h and PIL... $ECHO_C" >&6
11501 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
11504 # should we support python versions below 2.2?
11505 if test -f "/usr/lib/python2.2/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.2/Python.h";then
11508 if test -f "/usr/lib/python2.3/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.3/Python.h";then
11511 if test -f "/usr/lib/python2.4/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.4/Python.h";then
11515 # /System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3/Python.h
11516 # /Library/Python/2.3/_imaging.so
11519 if test "x$PY_VERSION" "!=" "x"; then
11520 echo "$as_me:$LINENO: result: $PY_VERSION" >&5
11521 echo "${ECHO_T}$PY_VERSION" >&6
11522 if test "x$PYTHON_LIB" = "x";then
11523 PYTHON_LIB="-l$PY_VERSION /usr/lib/$PY_VERSION/site-packages/PIL/_imaging.so"
11525 if test "x$PYTHON_INCLUDES" = "x";then
11526 PYTHON_INCLUDES="-I/usr/include/$PY_VERSION"
11528 export PYTHON_INCLUDES PYTHON_LIB
11531 echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
11532 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6
11534 cat > conftest.c << EOF
11535 #include <Python.h>
11536 #include <Imaging.h>
11538 int main(int argn, char*argv)
11541 ret = Py_Main(argn, argv);
11542 int x; // check also for gcc 2.95.x incompatibilities
11546 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
11547 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11548 echo "$as_me:$LINENO: result: yes" >&5
11549 echo "${ECHO_T}yes" >&6
11552 echo "configure: failed program was:" >&5
11554 echo "$as_me:$LINENO: result: no" >&5
11555 echo "${ECHO_T}no" >&6
11559 echo "$as_me:$LINENO: result: nope" >&5
11560 echo "${ECHO_T}nope" >&6
11564 if test "x$PYTHON_OK" '!=' "xyes";then
11565 echo all install uninstall clean: > lib/python/Makefile
11566 # fail silently- the most users won't have any need for the
11567 # python interface anyway
11569 pythonrfxswf="lib/python/Makefile"
11572 # ------------------------------------------------------------------
11574 echo "$as_me:$LINENO: checking for missing libraries" >&5
11575 echo $ECHO_N "checking for missing libraries... $ECHO_C" >&6
11577 if test "x$ZLIBMISSING" = "xtrue";then
11578 MISSINGLIBS="${MISSINGLIBS} zlib"
11579 DISABLEPNG2SWF=true;
11581 if test "x$JPEGLIBMISSING" = "xtrue";then
11582 MISSINGLIBS="${MISSINGLIBS} jpeglib"
11583 DISABLEPDF2SWF=true;
11584 DISABLEJPEG2SWF=true;
11586 if test "x$T1LIBMISSING" = "xtrue";then
11587 MISSINGLIBS="${MISSINGLIBS} t1lib"
11590 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
11591 DISABLEPDF2SWF=true;
11592 DISABLEJPEG2SWF=true;
11593 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
11595 if test "x$HAVE_FREETYPE" '!=' "x1"; then
11596 DISABLEPDF2SWF=true;
11597 MISSINGLIBS="${MISSINGLIBS} freetype"
11599 if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
11600 DISABLEPDF2SWF=true;
11601 MISSINGLIBS="${MISSINGLIBS} t1lib.h"
11603 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
11604 DISABLEPNG2SWF=true;
11605 MISSINGLIBS="${MISSINGLIBS} zlib.h"
11607 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
11608 MISSINGLIBS="${MISSINGLIBS} avifile"
11611 echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
11612 echo "${ECHO_T}${MISSINGLIBS}" >&6
11614 # ------------------------------------------------------------------
11616 if test "x${MISSINGLIBS}" '!=' "x"; then
11617 echo "***************************************************"
11618 echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
11621 avi2swf="avi2swf/Makefile"
11622 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
11623 echo "* Disabling avi2swf tool..."
11624 echo all install uninstall clean: > avi2swf/Makefile
11628 pdf2swf_makefile="pdf2swf/Makefile pdf2swf/xpdf/Makefile"
11629 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
11630 echo "* Disabling pdf2swf tool..."
11631 rm -f pdf2swf/Makefile
11632 echo all install uninstall clean: > pdf2swf/Makefile
11633 pdf2swf_makefile=""
11636 if test "x${ZLIBMISSING}" = "xtrue"; then
11638 echo "* Warning! Without zlib, you will not be able to read"
11639 echo "* or write compressed Flash MX files!"
11642 JPEG2SWF='jpeg2swf$(E)'
11643 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
11644 echo "* Disabling jpeg2swf tool..."
11650 PNG2SWF='png2swf$(E)'
11651 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
11652 echo "* Disabling png2swf tool..."
11658 if test "x${MISSINGLIBS}" '!=' "x"; then
11659 echo "***************************************************"
11662 # ------------------------------------------------------------------
11664 if test -f "release.in"; then release_in="./release"; fi
11665 FILES="$release_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile ${pythonrfxswf} ${lame_makefile}"
11667 ac_config_files="$ac_config_files ${FILES}"
11669 cat >confcache <<\_ACEOF
11670 # This file is a shell script that caches the results of configure
11671 # tests run on this system so they can be shared between configure
11672 # scripts and configure runs, see configure's option --config-cache.
11673 # It is not useful on other systems. If it contains results you don't
11674 # want to keep, you may remove or edit it.
11676 # config.status only pays attention to the cache file if you give it
11677 # the --recheck option to rerun configure.
11679 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11680 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11681 # following values.
11685 # The following way of writing the cache mishandles newlines in values,
11686 # but we know of no workaround that is simple, portable, and efficient.
11687 # So, don't put newlines in cache variables' values.
11688 # Ultrix sh set writes to stderr and can't be redirected directly,
11689 # and sets the high bit in the cache file unless we assign to the vars.
11692 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11694 # `set' does not quote correctly, so add quotes (double-quote
11695 # substitution turns \\\\ into \\, and sed turns \\ into \).
11698 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11701 # `set' quotes correctly as required by POSIX, so do not add quotes.
11703 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11710 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11712 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11714 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11715 if test -w $cache_file; then
11716 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11717 cat confcache >$cache_file
11719 echo "not updating unwritable cache $cache_file"
11724 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11725 # Let make expand exec_prefix.
11726 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11728 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11729 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11730 # trailing colons and then remove the whole line if VPATH becomes empty
11731 # (actually we leave an empty line to preserve line numbers).
11732 if test "x$srcdir" = x.; then
11733 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11734 s/:*\$(srcdir):*/:/;
11735 s/:*\${srcdir}:*/:/;
11737 s/^\([^=]*=[ ]*\):*/\1/;
11743 DEFS=-DHAVE_CONFIG_H
11747 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11748 # 1. Remove the extension, and $U if already installed.
11749 ac_i=`echo "$ac_i" |
11750 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11752 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11753 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11755 LIBOBJS=$ac_libobjs
11757 LTLIBOBJS=$ac_ltlibobjs
11761 : ${CONFIG_STATUS=./config.status}
11762 ac_clean_files_save=$ac_clean_files
11763 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11764 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11765 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11766 cat >$CONFIG_STATUS <<_ACEOF
11768 # Generated by $as_me.
11769 # Run this file to recreate the current configuration.
11770 # Compiler output produced by configure, useful for debugging
11771 # configure, is in config.log if it exists.
11774 ac_cs_recheck=false
11776 SHELL=\${CONFIG_SHELL-$SHELL}
11779 cat >>$CONFIG_STATUS <<\_ACEOF
11780 ## --------------------- ##
11781 ## M4sh Initialization. ##
11782 ## --------------------- ##
11784 # Be Bourne compatible
11785 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11788 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11789 # is contrary to our usage. Disable this feature.
11790 alias -g '${1+"$@"}'='"$@"'
11791 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11794 DUALCASE=1; export DUALCASE # for MKS sh
11796 # Support unset when possible.
11797 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11804 # Work around bugs in pre-3.0 UWIN ksh.
11805 $as_unset ENV MAIL MAILPATH
11812 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11813 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11814 LC_TELEPHONE LC_TIME
11816 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11817 eval $as_var=C; export $as_var
11823 # Required to use basename.
11824 if expr a : '\(a\)' >/dev/null 2>&1; then
11830 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11831 as_basename=basename
11837 # Name of the executable.
11838 as_me=`$as_basename "$0" ||
11839 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11840 X"$0" : 'X\(//\)$' \| \
11841 X"$0" : 'X\(/\)$' \| \
11842 . : '\(.\)' 2>/dev/null ||
11844 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11845 /^X\/\(\/\/\)$/{ s//\1/; q; }
11846 /^X\/\(\/\).*/{ s//\1/; q; }
11850 # PATH needs CR, and LINENO needs CR and PATH.
11851 # Avoid depending upon Character Ranges.
11852 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11853 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11854 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11855 as_cr_digits='0123456789'
11856 as_cr_alnum=$as_cr_Letters$as_cr_digits
11858 # The user is always right.
11859 if test "${PATH_SEPARATOR+set}" != set; then
11860 echo "#! /bin/sh" >conf$$.sh
11861 echo "exit 0" >>conf$$.sh
11863 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11872 as_lineno_1=$LINENO
11873 as_lineno_2=$LINENO
11874 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11875 test "x$as_lineno_1" != "x$as_lineno_2" &&
11876 test "x$as_lineno_3" = "x$as_lineno_2" || {
11877 # Find who we are. Look in the path if we contain no path at all
11880 *[\\/]* ) as_myself=$0 ;;
11881 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11882 for as_dir in $PATH
11885 test -z "$as_dir" && as_dir=.
11886 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11891 # We did not find ourselves, most probably we were run as `sh COMMAND'
11892 # in which case we are not to be found in the path.
11893 if test "x$as_myself" = x; then
11896 if test ! -f "$as_myself"; then
11897 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11898 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11899 { (exit 1); exit 1; }; }
11901 case $CONFIG_SHELL in
11903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11904 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11907 test -z "$as_dir" && as_dir=.
11908 for as_base in sh bash ksh sh5; do
11911 if ("$as_dir/$as_base" -c '
11912 as_lineno_1=$LINENO
11913 as_lineno_2=$LINENO
11914 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11915 test "x$as_lineno_1" != "x$as_lineno_2" &&
11916 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11917 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11918 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11919 CONFIG_SHELL=$as_dir/$as_base
11920 export CONFIG_SHELL
11921 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11929 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11930 # uniformly replaced by the line number. The first 'sed' inserts a
11931 # line-number line before each line; the second 'sed' does the real
11932 # work. The second script uses 'N' to pair each line-number line
11933 # with the numbered line, and appends trailing '-' during
11934 # substitution so that $LINENO is not a special case at line end.
11935 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11936 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11937 sed '=' <$as_myself |
11942 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11945 s,^['$as_cr_digits']*\n,,
11946 ' >$as_me.lineno &&
11947 chmod +x $as_me.lineno ||
11948 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11949 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11950 { (exit 1); exit 1; }; }
11952 # Don't try to exec as it changes $[0], causing all sort of problems
11953 # (the dirname of $[0] is not the place where we might find the
11954 # original and so on. Autoconf is especially sensible to this).
11956 # Exit status is that of the last command.
11961 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11962 *c*,-n*) ECHO_N= ECHO_C='
11964 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11965 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11968 if expr a : '\(a\)' >/dev/null 2>&1; then
11974 rm -f conf$$ conf$$.exe conf$$.file
11976 if ln -s conf$$.file conf$$ 2>/dev/null; then
11977 # We could just check for DJGPP; but this test a) works b) is more generic
11978 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11979 if test -f conf$$.exe; then
11980 # Don't use ln at all; we don't have any links
11985 elif ln conf$$.file conf$$ 2>/dev/null; then
11990 rm -f conf$$ conf$$.exe conf$$.file
11992 if mkdir -p . 2>/dev/null; then
11995 test -d ./-p && rmdir ./-p
11999 as_executable_p="test -f"
12001 # Sed expression to map a string onto a valid CPP name.
12002 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12004 # Sed expression to map a string onto a valid variable name.
12005 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12009 # We need space, tab and new line, in precisely that order.
12019 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12020 # report actual input values of CONFIG_FILES etc. instead of their
12021 # values after options handling. Logging --version etc. is OK.
12025 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12026 ## Running $as_me. ##
12031 This file was extended by $as_me, which was
12032 generated by GNU Autoconf 2.59. Invocation command line was
12034 CONFIG_FILES = $CONFIG_FILES
12035 CONFIG_HEADERS = $CONFIG_HEADERS
12036 CONFIG_LINKS = $CONFIG_LINKS
12037 CONFIG_COMMANDS = $CONFIG_COMMANDS
12041 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12045 # Files that config.status was made for.
12046 if test -n "$ac_config_files"; then
12047 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12050 if test -n "$ac_config_headers"; then
12051 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12054 if test -n "$ac_config_links"; then
12055 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12058 if test -n "$ac_config_commands"; then
12059 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12062 cat >>$CONFIG_STATUS <<\_ACEOF
12065 \`$as_me' instantiates files from templates according to the
12066 current configuration.
12068 Usage: $0 [OPTIONS] [FILE]...
12070 -h, --help print this help, then exit
12071 -V, --version print version number, then exit
12072 -q, --quiet do not print progress messages
12073 -d, --debug don't remove temporary files
12074 --recheck update $as_me by reconfiguring in the same conditions
12075 --file=FILE[:TEMPLATE]
12076 instantiate the configuration file FILE
12077 --header=FILE[:TEMPLATE]
12078 instantiate the configuration header FILE
12080 Configuration files:
12083 Configuration headers:
12086 Report bugs to <bug-autoconf@gnu.org>."
12089 cat >>$CONFIG_STATUS <<_ACEOF
12092 configured by $0, generated by GNU Autoconf 2.59,
12093 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12095 Copyright (C) 2003 Free Software Foundation, Inc.
12096 This config.status script is free software; the Free Software Foundation
12097 gives unlimited permission to copy, distribute and modify it."
12102 cat >>$CONFIG_STATUS <<\_ACEOF
12103 # If no file are specified by the user, then we need to provide default
12104 # value. By we need to know if files were specified by the user.
12110 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12111 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12119 *) # This is not an option, so the user has probably given explicit
12122 ac_need_defaults=false;;
12126 # Handling of the options.
12128 cat >>$CONFIG_STATUS <<\_ACEOF
12129 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12131 --version | --vers* | -V )
12132 echo "$ac_cs_version"; exit 0 ;;
12134 # Conflict between --help and --header
12135 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12136 Try \`$0 --help' for more information." >&5
12137 echo "$as_me: error: ambiguous option: $1
12138 Try \`$0 --help' for more information." >&2;}
12139 { (exit 1); exit 1; }; };;
12140 --help | --hel | -h )
12141 echo "$ac_cs_usage"; exit 0 ;;
12142 --debug | --d* | -d )
12144 --file | --fil | --fi | --f )
12146 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12147 ac_need_defaults=false;;
12148 --header | --heade | --head | --hea )
12150 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12151 ac_need_defaults=false;;
12152 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12153 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12156 # This is an error.
12157 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12158 Try \`$0 --help' for more information." >&5
12159 echo "$as_me: error: unrecognized option: $1
12160 Try \`$0 --help' for more information." >&2;}
12161 { (exit 1); exit 1; }; } ;;
12163 *) ac_config_targets="$ac_config_targets $1" ;;
12169 ac_configure_extra_args=
12171 if $ac_cs_silent; then
12173 ac_configure_extra_args="$ac_configure_extra_args --silent"
12177 cat >>$CONFIG_STATUS <<_ACEOF
12178 if \$ac_cs_recheck; then
12179 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12180 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12189 cat >>$CONFIG_STATUS <<\_ACEOF
12190 for ac_config_target in $ac_config_targets
12192 case "$ac_config_target" in
12193 # Handling of arguments.
12194 "${FILES}" ) CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
12195 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12196 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12197 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12198 { (exit 1); exit 1; }; };;
12202 # If the user did not use the arguments to specify the items to instantiate,
12203 # then the envvar interface is used. Set only those that are not.
12204 # We use the long form for the default assignment because of an extremely
12205 # bizarre bug on SunOS 4.1.3.
12206 if $ac_need_defaults; then
12207 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12208 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12211 # Have a temporary directory for convenience. Make it in the build tree
12212 # simply because there is no reason to put it here, and in addition,
12213 # creating and moving files from /tmp can sometimes cause problems.
12214 # Create a temporary directory, and hook for its removal unless debugging.
12217 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12218 trap '{ (exit 1); exit 1; }' 1 2 13 15
12221 # Create a (secure) tmp directory for tmp files.
12224 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12225 test -n "$tmp" && test -d "$tmp"
12228 tmp=./confstat$$-$RANDOM
12229 (umask 077 && mkdir $tmp)
12232 echo "$me: cannot create a temporary directory in ." >&2
12233 { (exit 1); exit 1; }
12238 cat >>$CONFIG_STATUS <<_ACEOF
12241 # CONFIG_FILES section.
12244 # No need to generate the scripts if there are no CONFIG_FILES.
12245 # This happens for instance when ./config.status config.h
12246 if test -n "\$CONFIG_FILES"; then
12247 # Protect against being on the right side of a sed subst in config.status.
12248 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12249 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12250 s,@SHELL@,$SHELL,;t t
12251 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12252 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12253 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12254 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12255 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12256 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12257 s,@exec_prefix@,$exec_prefix,;t t
12258 s,@prefix@,$prefix,;t t
12259 s,@program_transform_name@,$program_transform_name,;t t
12260 s,@bindir@,$bindir,;t t
12261 s,@sbindir@,$sbindir,;t t
12262 s,@libexecdir@,$libexecdir,;t t
12263 s,@datadir@,$datadir,;t t
12264 s,@sysconfdir@,$sysconfdir,;t t
12265 s,@sharedstatedir@,$sharedstatedir,;t t
12266 s,@localstatedir@,$localstatedir,;t t
12267 s,@libdir@,$libdir,;t t
12268 s,@includedir@,$includedir,;t t
12269 s,@oldincludedir@,$oldincludedir,;t t
12270 s,@infodir@,$infodir,;t t
12271 s,@mandir@,$mandir,;t t
12272 s,@build_alias@,$build_alias,;t t
12273 s,@host_alias@,$host_alias,;t t
12274 s,@target_alias@,$target_alias,;t t
12275 s,@DEFS@,$DEFS,;t t
12276 s,@ECHO_C@,$ECHO_C,;t t
12277 s,@ECHO_N@,$ECHO_N,;t t
12278 s,@ECHO_T@,$ECHO_T,;t t
12279 s,@LIBS@,$LIBS,;t t
12280 s,@build@,$build,;t t
12281 s,@build_cpu@,$build_cpu,;t t
12282 s,@build_vendor@,$build_vendor,;t t
12283 s,@build_os@,$build_os,;t t
12284 s,@host@,$host,;t t
12285 s,@host_cpu@,$host_cpu,;t t
12286 s,@host_vendor@,$host_vendor,;t t
12287 s,@host_os@,$host_os,;t t
12289 s,@CFLAGS@,$CFLAGS,;t t
12290 s,@LDFLAGS@,$LDFLAGS,;t t
12291 s,@CPPFLAGS@,$CPPFLAGS,;t t
12292 s,@ac_ct_CC@,$ac_ct_CC,;t t
12293 s,@EXEEXT@,$EXEEXT,;t t
12294 s,@OBJEXT@,$OBJEXT,;t t
12296 s,@CXXFLAGS@,$CXXFLAGS,;t t
12297 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12299 s,@RANLIB@,$RANLIB,;t t
12300 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12301 s,@SET_MAKE@,$SET_MAKE,;t t
12302 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12303 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12304 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12305 s,@LN_S@,$LN_S,;t t
12306 s,@ECHO@,$ECHO,;t t
12307 s,@STRIP@,$STRIP,;t t
12308 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12309 s,@EGREP@,$EGREP,;t t
12310 s,@LIBTOOL@,$LIBTOOL,;t t
12311 s,@UNCOMPRESS@,$UNCOMPRESS,;t t
12313 s,@SLEXT@,$SLEXT,;t t
12314 s,@target@,$target,;t t
12315 s,@target_cpu@,$target_cpu,;t t
12316 s,@target_vendor@,$target_vendor,;t t
12317 s,@target_os@,$target_os,;t t
12318 s,@WORDS_BIGENDIAN@,$WORDS_BIGENDIAN,;t t
12319 s,@SYSTEM_BACKTICKS@,$SYSTEM_BACKTICKS,;t t
12320 s,@PACKAGE@,$PACKAGE,;t t
12321 s,@VERSION@,$VERSION,;t t
12322 s,@HAVE_UNISTD_H@,$HAVE_UNISTD_H,;t t
12323 s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t
12324 s,@lame_objects@,$lame_objects,;t t
12325 s,@AVIFILE_CONFIG@,$AVIFILE_CONFIG,;t t
12326 s,@VIDEO_LIBS@,$VIDEO_LIBS,;t t
12327 s,@VIDEO_CFLAGS@,$VIDEO_CFLAGS,;t t
12328 s,@USE_GZIP@,$USE_GZIP,;t t
12329 s,@PYTHON_LIB@,$PYTHON_LIB,;t t
12330 s,@PYTHON_INCLUDES@,$PYTHON_INCLUDES,;t t
12331 s,@JPEG2SWF@,$JPEG2SWF,;t t
12332 s,@PNG2SWF@,$PNG2SWF,;t t
12333 s,@LIBOBJS@,$LIBOBJS,;t t
12334 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12339 cat >>$CONFIG_STATUS <<\_ACEOF
12340 # Split the substitutions into bite-sized pieces for seds with
12341 # small command number limits, like on Digital OSF/1 and HP-UX.
12342 ac_max_sed_lines=48
12343 ac_sed_frag=1 # Number of current file.
12344 ac_beg=1 # First line for current file.
12345 ac_end=$ac_max_sed_lines # Line after last line for current file.
12348 while $ac_more_lines; do
12349 if test $ac_beg -gt 1; then
12350 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12352 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12354 if test ! -s $tmp/subs.frag; then
12355 ac_more_lines=false
12357 # The purpose of the label and of the branching condition is to
12358 # speed up the sed processing (if there are no `@' at all, there
12359 # is no need to browse any of the substitutions).
12360 # These are the two extra sed commands mentioned above.
12362 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12363 if test -z "$ac_sed_cmds"; then
12364 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12366 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12368 ac_sed_frag=`expr $ac_sed_frag + 1`
12370 ac_end=`expr $ac_end + $ac_max_sed_lines`
12373 if test -z "$ac_sed_cmds"; then
12376 fi # test -n "$CONFIG_FILES"
12379 cat >>$CONFIG_STATUS <<\_ACEOF
12380 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12381 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12383 - | *:- | *:-:* ) # input from stdin
12385 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12386 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12387 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12388 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12389 * ) ac_file_in=$ac_file.in ;;
12392 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12393 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12394 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12395 X"$ac_file" : 'X\(//\)[^/]' \| \
12396 X"$ac_file" : 'X\(//\)$' \| \
12397 X"$ac_file" : 'X\(/\)' \| \
12398 . : '\(.\)' 2>/dev/null ||
12400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12401 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12402 /^X\(\/\/\)$/{ s//\1/; q; }
12403 /^X\(\/\).*/{ s//\1/; q; }
12405 { if $as_mkdir_p; then
12410 while test ! -d "$as_dir"; do
12411 as_dirs="$as_dir $as_dirs"
12412 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12413 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12414 X"$as_dir" : 'X\(//\)[^/]' \| \
12415 X"$as_dir" : 'X\(//\)$' \| \
12416 X"$as_dir" : 'X\(/\)' \| \
12417 . : '\(.\)' 2>/dev/null ||
12419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12420 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12421 /^X\(\/\/\)$/{ s//\1/; q; }
12422 /^X\(\/\).*/{ s//\1/; q; }
12425 test ! -n "$as_dirs" || mkdir $as_dirs
12426 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12427 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12428 { (exit 1); exit 1; }; }; }
12432 if test "$ac_dir" != .; then
12433 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12434 # A "../" for each directory in $ac_dir_suffix.
12435 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12437 ac_dir_suffix= ac_top_builddir=
12441 .) # No --srcdir option. We are building in place.
12443 if test -z "$ac_top_builddir"; then
12446 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12448 [\\/]* | ?:[\\/]* ) # Absolute path.
12449 ac_srcdir=$srcdir$ac_dir_suffix;
12450 ac_top_srcdir=$srcdir ;;
12451 *) # Relative path.
12452 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12453 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12456 # Do not use `cd foo && pwd` to compute absolute paths, because
12457 # the directories may not exist.
12459 .) ac_abs_builddir="$ac_dir";;
12462 .) ac_abs_builddir=`pwd`;;
12463 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12464 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12467 case $ac_abs_builddir in
12468 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12470 case ${ac_top_builddir}. in
12471 .) ac_abs_top_builddir=$ac_abs_builddir;;
12472 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12473 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12476 case $ac_abs_builddir in
12477 .) ac_abs_srcdir=$ac_srcdir;;
12480 .) ac_abs_srcdir=$ac_abs_builddir;;
12481 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12482 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12485 case $ac_abs_builddir in
12486 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12488 case $ac_top_srcdir in
12489 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12490 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12491 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12497 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12498 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12501 if test x"$ac_file" != x-; then
12502 { echo "$as_me:$LINENO: creating $ac_file" >&5
12503 echo "$as_me: creating $ac_file" >&6;}
12506 # Let's still pretend it is `configure' which instantiates (i.e., don't
12507 # use $as_me), people would be surprised to read:
12508 # /* config.h. Generated by config.status. */
12509 if test x"$ac_file" = x-; then
12512 configure_input="$ac_file. "
12514 configure_input=$configure_input"Generated from `echo $ac_file_in |
12515 sed 's,.*/,,'` by configure."
12517 # First look for the input files in the build tree, otherwise in the
12519 ac_file_inputs=`IFS=:
12520 for f in $ac_file_in; do
12522 -) echo $tmp/stdin ;;
12524 # Absolute (can't be DOS-style, as IFS=:)
12525 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12526 echo "$as_me: error: cannot find input file: $f" >&2;}
12527 { (exit 1); exit 1; }; }
12530 if test -f "$f"; then
12533 elif test -f "$srcdir/$f"; then
12538 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12539 echo "$as_me: error: cannot find input file: $f" >&2;}
12540 { (exit 1); exit 1; }; }
12543 done` || { (exit 1); exit 1; }
12545 cat >>$CONFIG_STATUS <<_ACEOF
12549 cat >>$CONFIG_STATUS <<\_ACEOF
12551 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12552 s,@configure_input@,$configure_input,;t t
12553 s,@srcdir@,$ac_srcdir,;t t
12554 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12555 s,@top_srcdir@,$ac_top_srcdir,;t t
12556 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12557 s,@builddir@,$ac_builddir,;t t
12558 s,@abs_builddir@,$ac_abs_builddir,;t t
12559 s,@top_builddir@,$ac_top_builddir,;t t
12560 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12561 s,@INSTALL@,$ac_INSTALL,;t t
12562 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12564 if test x"$ac_file" != x-; then
12565 mv $tmp/out $ac_file
12573 cat >>$CONFIG_STATUS <<\_ACEOF
12576 # CONFIG_HEADER section.
12579 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12580 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12582 # ac_d sets the value in "#define NAME VALUE" lines.
12583 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12584 ac_dB='[ ].*$,\1#\2'
12587 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12588 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12589 ac_uB='$,\1#\2define\3'
12593 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12594 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12596 - | *:- | *:-:* ) # input from stdin
12598 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12599 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12600 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12601 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12602 * ) ac_file_in=$ac_file.in ;;
12605 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12606 echo "$as_me: creating $ac_file" >&6;}
12608 # First look for the input files in the build tree, otherwise in the
12610 ac_file_inputs=`IFS=:
12611 for f in $ac_file_in; do
12613 -) echo $tmp/stdin ;;
12615 # Absolute (can't be DOS-style, as IFS=:)
12616 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12617 echo "$as_me: error: cannot find input file: $f" >&2;}
12618 { (exit 1); exit 1; }; }
12619 # Do quote $f, to prevent DOS paths from being IFS'd.
12622 if test -f "$f"; then
12625 elif test -f "$srcdir/$f"; then
12630 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12631 echo "$as_me: error: cannot find input file: $f" >&2;}
12632 { (exit 1); exit 1; }; }
12635 done` || { (exit 1); exit 1; }
12636 # Remove the trailing spaces.
12637 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12641 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12642 # `conftest.undefs', that substitutes the proper values into
12643 # config.h.in to produce config.h. The first handles `#define'
12644 # templates, and the second `#undef' templates.
12645 # And first: Protect against being on the right side of a sed subst in
12646 # config.status. Protect against being in an unquoted here document
12647 # in config.status.
12648 rm -f conftest.defines conftest.undefs
12649 # Using a here document instead of a string reduces the quoting nightmare.
12650 # Putting comments in sed scripts is not portable.
12652 # `end' is used to avoid that the second main sed command (meant for
12653 # 0-ary CPP macros) applies to n-ary macro definitions.
12654 # See the Autoconf documentation for `clear'.
12655 cat >confdef2sed.sed <<\_ACEOF
12660 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12662 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12665 # If some macros were called several times there might be several times
12666 # the same #defines, which is useless. Nevertheless, we may not want to
12667 # sort them, since we want the *last* AC-DEFINE to be honored.
12668 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12669 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12670 rm -f confdef2sed.sed
12672 # This sed command replaces #undef with comments. This is necessary, for
12673 # example, in the case of _POSIX_SOURCE, which is predefined and required
12674 # on some systems where configure will not decide to define it.
12675 cat >>conftest.undefs <<\_ACEOF
12676 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12679 # Break up conftest.defines because some shells have a limit on the size
12680 # of here documents, and old seds have small limits too (100 cmds).
12681 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12682 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12683 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12684 echo ' :' >>$CONFIG_STATUS
12685 rm -f conftest.tail
12686 while grep . conftest.defines >/dev/null
12688 # Write a limited-size here document to $tmp/defines.sed.
12689 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12690 # Speed up: don't consider the non `#define' lines.
12691 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12692 # Work around the forget-to-reset-the-flag bug.
12693 echo 't clr' >>$CONFIG_STATUS
12694 echo ': clr' >>$CONFIG_STATUS
12695 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12697 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12699 mv $tmp/out $tmp/in
12701 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12702 rm -f conftest.defines
12703 mv conftest.tail conftest.defines
12705 rm -f conftest.defines
12706 echo ' fi # grep' >>$CONFIG_STATUS
12707 echo >>$CONFIG_STATUS
12709 # Break up conftest.undefs because some shells have a limit on the size
12710 # of here documents, and old seds have small limits too (100 cmds).
12711 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12712 rm -f conftest.tail
12713 while grep . conftest.undefs >/dev/null
12715 # Write a limited-size here document to $tmp/undefs.sed.
12716 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12717 # Speed up: don't consider the non `#undef'
12718 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12719 # Work around the forget-to-reset-the-flag bug.
12720 echo 't clr' >>$CONFIG_STATUS
12721 echo ': clr' >>$CONFIG_STATUS
12722 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12724 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12726 mv $tmp/out $tmp/in
12728 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12729 rm -f conftest.undefs
12730 mv conftest.tail conftest.undefs
12732 rm -f conftest.undefs
12734 cat >>$CONFIG_STATUS <<\_ACEOF
12735 # Let's still pretend it is `configure' which instantiates (i.e., don't
12736 # use $as_me), people would be surprised to read:
12737 # /* config.h. Generated by config.status. */
12738 if test x"$ac_file" = x-; then
12739 echo "/* Generated by configure. */" >$tmp/config.h
12741 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12743 cat $tmp/in >>$tmp/config.h
12745 if test x"$ac_file" != x-; then
12746 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12747 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12748 echo "$as_me: $ac_file is unchanged" >&6;}
12750 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12751 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12752 X"$ac_file" : 'X\(//\)[^/]' \| \
12753 X"$ac_file" : 'X\(//\)$' \| \
12754 X"$ac_file" : 'X\(/\)' \| \
12755 . : '\(.\)' 2>/dev/null ||
12757 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12758 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12759 /^X\(\/\/\)$/{ s//\1/; q; }
12760 /^X\(\/\).*/{ s//\1/; q; }
12762 { if $as_mkdir_p; then
12767 while test ! -d "$as_dir"; do
12768 as_dirs="$as_dir $as_dirs"
12769 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12770 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12771 X"$as_dir" : 'X\(//\)[^/]' \| \
12772 X"$as_dir" : 'X\(//\)$' \| \
12773 X"$as_dir" : 'X\(/\)' \| \
12774 . : '\(.\)' 2>/dev/null ||
12776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12777 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12778 /^X\(\/\/\)$/{ s//\1/; q; }
12779 /^X\(\/\).*/{ s//\1/; q; }
12782 test ! -n "$as_dirs" || mkdir $as_dirs
12783 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12784 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12785 { (exit 1); exit 1; }; }; }
12788 mv $tmp/config.h $ac_file
12792 rm -f $tmp/config.h
12797 cat >>$CONFIG_STATUS <<\_ACEOF
12799 { (exit 0); exit 0; }
12801 chmod +x $CONFIG_STATUS
12802 ac_clean_files=$ac_clean_files_save
12805 # configure is writing to config.log, and then calls config.status.
12806 # config.status does its own redirection, appending to config.log.
12807 # Unfortunately, on DOS this fails, as config.log is still kept open
12808 # by configure, so config.status won't be able to write to it; its
12809 # output is simply discarded. So we exec the FD to /dev/null,
12810 # effectively closing config.log, so it can be properly (re)opened and
12811 # appended to by config.status. When coming back to configure, we
12812 # need to make the FD available again.
12813 if test "$no_create" != yes; then
12815 ac_config_status_args=
12816 test "$silent" = yes &&
12817 ac_config_status_args="$ac_config_status_args --quiet"
12819 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12821 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12822 # would make configure fail if this is the last instruction.
12823 $ac_cs_success || { (exit 1); exit 1; }