removed lame.
[swftools.git] / configure
blob677c6031421f4b49543055041979b95b04955b99
1 #! /bin/sh
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
14 emulate sh
15 NULLCMD=:
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
20 set -o posix
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
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
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 \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
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 ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; 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
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
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
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
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
122 as_myself=$0
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
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
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
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
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 |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
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).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >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
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
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'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
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`}
248 case X$UNAME in
249 *-DOS) lt_cv_sys_path_separator=';' ;;
250 *) lt_cv_sys_path_separator=':' ;;
251 esac
252 PATH_SEPARATOR=$lt_cv_sys_path_separator
256 # Check that we are running under the correct shell.
257 SHELL=${CONFIG_SHELL-/bin/sh}
259 case X$ECHO in
260 X*--fallback-echo)
261 # Remove one level of quotation (which was required for Make).
262 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
264 esac
266 echo=${ECHO-echo}
267 if test "X$1" = X--no-reexec; then
268 # Discard the --no-reexec flag, and continue.
269 shift
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!
276 else
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
283 shift
284 cat <<EOF
287 exit 0
290 # The HP-UX ksh and POSIX shell print the target directory to stdout
291 # if CDPATH is set.
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
302 then
303 break
305 done
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
312 else
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
325 echo="$dir/echo"
326 break
328 done
329 IFS="$save_ifs"
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.
337 echo='print -r'
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
344 export CONFIG_SHELL
345 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
346 else
347 # Try using printf.
348 echo='printf %s\n'
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
352 # Cool, printf works
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
359 export CONFIG_SHELL
360 SHELL="$CONFIG_SHELL"
361 export 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"
368 else
369 # maybe with a smaller string...
370 prev=:
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
374 then
375 break
377 prev="$cmd"
378 done
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+"$@"}
384 else
385 # Oops. We lost completely, so just stick with echo.
386 echo=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.
396 ECHO=$echo
397 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
398 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
403 # Name of the host.
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`
408 exec 6>&1
411 # Initializations.
413 ac_default_prefix=/usr/local
414 ac_config_libobj_dir=.
415 cross_compiling=no
416 subdirs=
417 MFLAGS=
418 MAKEFLAGS=
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.
427 PACKAGE_NAME=
428 PACKAGE_TARNAME=
429 PACKAGE_VERSION=
430 PACKAGE_STRING=
431 PACKAGE_BUGREPORT=
433 ac_unique_file="src/"
434 # Factoring default headers for most tests.
435 ac_includes_default="\
436 #include <stdio.h>
437 #if HAVE_SYS_TYPES_H
438 # include <sys/types.h>
439 #endif
440 #if HAVE_SYS_STAT_H
441 # include <sys/stat.h>
442 #endif
443 #if STDC_HEADERS
444 # include <stdlib.h>
445 # include <stddef.h>
446 #else
447 # if HAVE_STDLIB_H
448 # include <stdlib.h>
449 # endif
450 #endif
451 #if HAVE_STRING_H
452 # if !STDC_HEADERS && HAVE_MEMORY_H
453 # include <memory.h>
454 # endif
455 # include <string.h>
456 #endif
457 #if HAVE_STRINGS_H
458 # include <strings.h>
459 #endif
460 #if HAVE_INTTYPES_H
461 # include <inttypes.h>
462 #else
463 # if HAVE_STDINT_H
464 # include <stdint.h>
465 # endif
466 #endif
467 #if HAVE_UNISTD_H
468 # include <unistd.h>
469 #endif"
471 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP RANLIB ac_ct_RANLIB SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S ECHO STRIP ac_ct_STRIP EGREP LIBTOOL UNCOMPRESS AR SLEXT FREETYPE_CONFIG target target_cpu target_vendor target_os WORDS_BIGENDIAN SYSTEM_BACKTICKS PACKAGE VERSION HAVE_UNISTD_H AVIFILE_CONFIG lame_objects USE_GZIP PYTHON_LIB PYTHON_INCLUDES JPEG2SWF PNG2SWF LIBOBJS LTLIBOBJS'
472 ac_subst_files=''
474 # Initialize some variables set by options.
475 ac_init_help=
476 ac_init_version=false
477 # The variables have the same names as the options, with
478 # dashes changed to underlines.
479 cache_file=/dev/null
480 exec_prefix=NONE
481 no_create=
482 no_recursion=
483 prefix=NONE
484 program_prefix=NONE
485 program_suffix=NONE
486 program_transform_name=s,x,x,
487 silent=
488 site=
489 srcdir=
490 verbose=
491 x_includes=NONE
492 x_libraries=NONE
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'
512 ac_prev=
513 for ac_option
515 # If the previous option needs an argument, assign it.
516 if test -n "$ac_prev"; then
517 eval "$ac_prev=\$ac_option"
518 ac_prev=
519 continue
522 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
524 # Accept the important Cygnus configure options, so we can diagnose typos.
526 case $ac_option in
528 -bindir | --bindir | --bindi | --bind | --bin | --bi)
529 ac_prev=bindir ;;
530 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
531 bindir=$ac_optarg ;;
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 ;;
545 --config-cache | -C)
546 cache_file=config.cache ;;
548 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
549 ac_prev=datadir ;;
550 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
551 | --da=*)
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'`
570 case $ac_option in
571 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
572 *) ac_optarg=yes ;;
573 esac
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.
587 with_gas=yes ;;
589 -help | --help | --hel | --he | -h)
590 ac_init_help=long ;;
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)
609 ac_prev=infodir ;;
610 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
611 infodir=$ac_optarg ;;
613 -libdir | --libdir | --libdi | --libd)
614 ac_prev=libdir ;;
615 -libdir=* | --libdir=* | --libdi=* | --libd=*)
616 libdir=$ac_optarg ;;
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)
635 ac_prev=mandir ;;
636 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 mandir=$ac_optarg ;;
639 -nfp | --nfp | --nf)
640 # Obsolete; use --without-fp.
641 with_fp=no ;;
643 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
644 | --no-cr | --no-c | -n)
645 no_create=yes ;;
647 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
648 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
649 no_recursion=yes ;;
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)
661 ac_prev=prefix ;;
662 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
663 prefix=$ac_optarg ;;
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)
698 silent=yes ;;
700 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
701 ac_prev=sbindir ;;
702 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
703 | --sbi=* | --sb=*)
704 sbindir=$ac_optarg ;;
706 -sharedstatedir | --sharedstatedir | --sharedstatedi \
707 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
708 | --sharedst | --shareds | --shared | --share | --shar \
709 | --sha | --sh)
710 ac_prev=sharedstatedir ;;
711 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
712 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
713 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
714 | --sha=* | --sh=*)
715 sharedstatedir=$ac_optarg ;;
717 -site | --site | --sit)
718 ac_prev=site ;;
719 -site=* | --site=* | --sit=*)
720 site=$ac_optarg ;;
722 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
723 ac_prev=srcdir ;;
724 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
725 srcdir=$ac_optarg ;;
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)
740 verbose=yes ;;
742 -version | --version | --versio | --versi | --vers | -V)
743 ac_init_version=: ;;
745 -with-* | --with-*)
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'`
752 case $ac_option in
753 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
754 *) ac_optarg=yes ;;
755 esac
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" ;;
767 --x)
768 # Obsolete; use --with-x.
769 with_x=yes ;;
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; }; }
790 *=*)
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'"
798 export $ac_envvar ;;
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}
808 esac
809 done
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`
821 case $ac_val in
822 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
823 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
824 { (exit 1); exit 1; }; };;
825 esac
826 done
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`
833 case $ac_val in
834 [\\/$]* | ?:[\\/]* ) ;;
835 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
836 { (exit 1); exit 1; }; };;
837 esac
838 done
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.
843 build=$build_alias
844 host=$host_alias
845 target=$target_alias
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
854 cross_compiling=yes
858 ac_tool_prefix=
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 ||
874 echo X"$0" |
875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
876 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
877 /^X\(\/\/\)$/{ s//\1/; q; }
878 /^X\(\/\).*/{ s//\1/; q; }
879 s/.*/./; q'`
880 srcdir=$ac_confdir
881 if test ! -r $srcdir/$ac_unique_file; then
882 srcdir=..
884 else
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; }; }
891 else
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}
913 ac_env_CC_value=$CC
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.
947 cat <<_ACEOF
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.
957 Configuration:
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 \`..']
968 _ACEOF
970 cat <<_ACEOF
971 Installation directories:
972 --prefix=PREFIX install architecture-independent files in PREFIX
973 [$ac_default_prefix]
974 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
975 [PREFIX]
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]
997 _ACEOF
999 cat <<\_ACEOF
1001 Program names:
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
1006 System types:
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]
1010 _ACEOF
1013 if test -n "$ac_init_help"; then
1015 cat <<\_ACEOF
1017 Optional Features:
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)
1030 Optional Packages:
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
1045 CPP C preprocessor
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.
1050 _ACEOF
1053 if test "$ac_init_help" = "recursive"; then
1054 # If there are subdirs, report their specific --help.
1055 ac_popdir=`pwd`
1056 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1057 test -d $ac_dir || continue
1058 ac_builddir=.
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'`
1064 else
1065 ac_dir_suffix= ac_top_builddir=
1068 case $srcdir in
1069 .) # No --srcdir option. We are building in place.
1070 ac_srcdir=.
1071 if test -z "$ac_top_builddir"; then
1072 ac_top_srcdir=.
1073 else
1074 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1075 fi ;;
1076 [\\/]* | ?:[\\/]* ) # Absolute path.
1077 ac_srcdir=$srcdir$ac_dir_suffix;
1078 ac_top_srcdir=$srcdir ;;
1079 *) # Relative path.
1080 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1081 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1082 esac
1084 # Do not use `cd foo && pwd` to compute absolute paths, because
1085 # the directories may not exist.
1086 case `pwd` in
1087 .) ac_abs_builddir="$ac_dir";;
1089 case "$ac_dir" in
1090 .) ac_abs_builddir=`pwd`;;
1091 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1092 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1093 esac;;
1094 esac
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}.;;
1102 esac;;
1103 esac
1104 case $ac_abs_builddir in
1105 .) ac_abs_srcdir=$ac_srcdir;;
1107 case $ac_srcdir in
1108 .) ac_abs_srcdir=$ac_abs_builddir;;
1109 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1110 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1111 esac;;
1112 esac
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;;
1120 esac;;
1121 esac
1123 cd $ac_dir
1124 # Check for guested configure; otherwise get Cygnus style configure.
1125 if test -f $ac_srcdir/configure.gnu; then
1126 echo
1127 $SHELL $ac_srcdir/configure.gnu --help=recursive
1128 elif test -f $ac_srcdir/configure; then
1129 echo
1130 $SHELL $ac_srcdir/configure --help=recursive
1131 elif test -f $ac_srcdir/configure.ac ||
1132 test -f $ac_srcdir/configure.in; then
1133 echo
1134 $ac_configure --help
1135 else
1136 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1138 cd $ac_popdir
1139 done
1142 test -n "$ac_init_help" && exit 0
1143 if $ac_init_version; then
1144 cat <<\_ACEOF
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.
1149 _ACEOF
1150 exit 0
1152 exec 5>config.log
1153 cat >&5 <<_ACEOF
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
1160 $ $0 $@
1162 _ACEOF
1164 cat <<_ASUNAME
1165 ## --------- ##
1166 ## Platform. ##
1167 ## --------- ##
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`
1186 _ASUNAME
1188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1189 for as_dir in $PATH
1191 IFS=$as_save_IFS
1192 test -z "$as_dir" && as_dir=.
1193 echo "PATH: $as_dir"
1194 done
1196 } >&5
1198 cat >&5 <<_ACEOF
1201 ## ----------- ##
1202 ## Core tests. ##
1203 ## ----------- ##
1205 _ACEOF
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.
1213 ac_configure_args=
1214 ac_configure_args0=
1215 ac_configure_args1=
1216 ac_sep=
1217 ac_must_keep_next=false
1218 for ac_pass in 1 2
1220 for ac_arg
1222 case $ac_arg in
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)
1226 continue ;;
1227 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1228 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1229 esac
1230 case $ac_pass in
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.
1236 else
1237 case $ac_arg in
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 ;;
1244 esac
1246 -* ) ac_must_keep_next=true ;;
1247 esac
1249 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1250 # Get rid of the leading space.
1251 ac_sep=" "
1253 esac
1254 done
1255 done
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.
1267 echo
1269 cat <<\_ASBOX
1270 ## ---------------- ##
1271 ## Cache variables. ##
1272 ## ---------------- ##
1273 _ASBOX
1274 echo
1275 # The following way of writing the cache mishandles newlines in values,
1277 (set) 2>&1 |
1278 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1279 *ac_space=\ *)
1280 sed -n \
1281 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1282 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1285 sed -n \
1286 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1288 esac;
1290 echo
1292 cat <<\_ASBOX
1293 ## ----------------- ##
1294 ## Output variables. ##
1295 ## ----------------- ##
1296 _ASBOX
1297 echo
1298 for ac_var in $ac_subst_vars
1300 eval ac_val=$`echo $ac_var`
1301 echo "$ac_var='"'"'$ac_val'"'"'"
1302 done | sort
1303 echo
1305 if test -n "$ac_subst_files"; then
1306 cat <<\_ASBOX
1307 ## ------------- ##
1308 ## Output files. ##
1309 ## ------------- ##
1310 _ASBOX
1311 echo
1312 for ac_var in $ac_subst_files
1314 eval ac_val=$`echo $ac_var`
1315 echo "$ac_var='"'"'$ac_val'"'"'"
1316 done | sort
1317 echo
1320 if test -s confdefs.h; then
1321 cat <<\_ASBOX
1322 ## ----------- ##
1323 ## confdefs.h. ##
1324 ## ----------- ##
1325 _ASBOX
1326 echo
1327 sed "/^$/d" confdefs.h | sort
1328 echo
1330 test "$ac_signal" != 0 &&
1331 echo "$as_me: caught signal $ac_signal"
1332 echo "$as_me: exit $exit_status"
1333 } >&5
1334 rm -f core *.core &&
1335 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1336 exit $exit_status
1338 for ac_signal in 1 2 13 15; do
1339 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1340 done
1341 ac_signal=0
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.
1346 echo >confdefs.h
1348 # Predefined preprocessor variables.
1350 cat >>confdefs.h <<_ACEOF
1351 #define PACKAGE_NAME "$PACKAGE_NAME"
1352 _ACEOF
1355 cat >>confdefs.h <<_ACEOF
1356 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1357 _ACEOF
1360 cat >>confdefs.h <<_ACEOF
1361 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1362 _ACEOF
1365 cat >>confdefs.h <<_ACEOF
1366 #define PACKAGE_STRING "$PACKAGE_STRING"
1367 _ACEOF
1370 cat >>confdefs.h <<_ACEOF
1371 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1372 _ACEOF
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"
1380 else
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
1389 . "$ac_site_file"
1391 done
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;}
1399 case $cache_file in
1400 [\\/]* | ?:[\\/]* ) . $cache_file;;
1401 *) . ./$cache_file;;
1402 esac
1404 else
1405 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1406 echo "$as_me: creating cache $cache_file" >&6;}
1407 >$cache_file
1410 # Check that the precious variables saved in the cache have kept the same
1411 # value.
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
1420 set,)
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=: ;;
1424 ,set)
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=: ;;
1428 ,);;
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=:
1438 fi;;
1439 esac
1440 # Pass precious variables to config.status.
1441 if test "$ac_new_set" = set; then
1442 case $ac_new_val in
1443 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1444 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1445 *) ac_arg=$ac_var=$ac_new_val ;;
1446 esac
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'" ;;
1450 esac
1452 done
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; }; }
1461 ac_ext=c
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"
1490 CHECKMEM=true
1492 # Check whether --enable-debug or --disable-debug was given.
1493 if test "${enable_debug+set}" = set; then
1494 enableval="$enable_debug"
1495 DEBUG=true
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"
1505 OPTIMIZE=true
1507 # Check whether --enable-lame or --disable-lame was given.
1508 if test "${enable_lame+set}" = set; then
1509 enableval="$enable_lame"
1510 DISABLE_LAME=true
1513 PACKAGE=swftools
1514 VERSION=2004-05-18-1254
1518 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1519 if test "x$ENABLE_WARNINGS" '!=' "x";then
1520 WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls"
1523 if test "x$CHECKMEM" '!=' "x";then
1524 DEBUG=yes
1526 if test "x$DEBUG" '!=' "x";then
1527 CFLAGS="$WARNINGS -g $CFLAGS"
1528 CXXFLAGS="$WARNINGS -g $CXXFLAGS"
1529 else if test "x$OPTIMIZE" '!=' "x"; then
1530 CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1531 CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1532 else
1533 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1534 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1537 #OLDGCC=1
1538 #if test "x$OLDGCC" '!=' "x";then
1539 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1540 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1541 # CFLAGS="$CFLAGS -ansi -pendantic"
1542 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1545 export PACKAGE VERSION CFLAGS CXXFLAGS
1547 ac_aux_dir=
1548 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1549 if test -f $ac_dir/install-sh; then
1550 ac_aux_dir=$ac_dir
1551 ac_install_sh="$ac_aux_dir/install-sh -c"
1552 break
1553 elif test -f $ac_dir/install.sh; then
1554 ac_aux_dir=$ac_dir
1555 ac_install_sh="$ac_aux_dir/install.sh -c"
1556 break
1557 elif test -f $ac_dir/shtool; then
1558 ac_aux_dir=$ac_dir
1559 ac_install_sh="$ac_aux_dir/shtool install -c"
1560 break
1562 done
1563 if test -z "$ac_aux_dir"; then
1564 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1565 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1566 { (exit 1); exit 1; }; }
1568 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1569 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1570 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1572 # Make sure we can run config.sub.
1573 $ac_config_sub sun4 >/dev/null 2>&1 ||
1574 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1575 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1576 { (exit 1); exit 1; }; }
1578 echo "$as_me:$LINENO: checking build system type" >&5
1579 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1580 if test "${ac_cv_build+set}" = set; then
1581 echo $ECHO_N "(cached) $ECHO_C" >&6
1582 else
1583 ac_cv_build_alias=$build_alias
1584 test -z "$ac_cv_build_alias" &&
1585 ac_cv_build_alias=`$ac_config_guess`
1586 test -z "$ac_cv_build_alias" &&
1587 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1588 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1589 { (exit 1); exit 1; }; }
1590 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1591 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1592 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1593 { (exit 1); exit 1; }; }
1596 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1597 echo "${ECHO_T}$ac_cv_build" >&6
1598 build=$ac_cv_build
1599 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1600 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1601 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1604 echo "$as_me:$LINENO: checking host system type" >&5
1605 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1606 if test "${ac_cv_host+set}" = set; then
1607 echo $ECHO_N "(cached) $ECHO_C" >&6
1608 else
1609 ac_cv_host_alias=$host_alias
1610 test -z "$ac_cv_host_alias" &&
1611 ac_cv_host_alias=$ac_cv_build_alias
1612 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1613 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1614 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1615 { (exit 1); exit 1; }; }
1618 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1619 echo "${ECHO_T}$ac_cv_host" >&6
1620 host=$ac_cv_host
1621 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1622 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1623 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1626 MACOSX=
1627 case $host_os in
1628 *darwin* )
1629 MACOSX=yes
1630 CFLAGS="$CFLAGS -fno-rtti"
1631 CXXFLAGS="$CXXFLAGS -fno-rtti"
1633 esac
1634 ac_ext=c
1635 ac_cpp='$CPP $CPPFLAGS'
1636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1639 if test -n "$ac_tool_prefix"; then
1640 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1641 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1642 echo "$as_me:$LINENO: checking for $ac_word" >&5
1643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1644 if test "${ac_cv_prog_CC+set}" = set; then
1645 echo $ECHO_N "(cached) $ECHO_C" >&6
1646 else
1647 if test -n "$CC"; then
1648 ac_cv_prog_CC="$CC" # Let the user override the test.
1649 else
1650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1651 for as_dir in $PATH
1653 IFS=$as_save_IFS
1654 test -z "$as_dir" && as_dir=.
1655 for ac_exec_ext in '' $ac_executable_extensions; do
1656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1657 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1659 break 2
1661 done
1662 done
1666 CC=$ac_cv_prog_CC
1667 if test -n "$CC"; then
1668 echo "$as_me:$LINENO: result: $CC" >&5
1669 echo "${ECHO_T}$CC" >&6
1670 else
1671 echo "$as_me:$LINENO: result: no" >&5
1672 echo "${ECHO_T}no" >&6
1676 if test -z "$ac_cv_prog_CC"; then
1677 ac_ct_CC=$CC
1678 # Extract the first word of "gcc", so it can be a program name with args.
1679 set dummy gcc; ac_word=$2
1680 echo "$as_me:$LINENO: checking for $ac_word" >&5
1681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1682 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1683 echo $ECHO_N "(cached) $ECHO_C" >&6
1684 else
1685 if test -n "$ac_ct_CC"; then
1686 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1687 else
1688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689 for as_dir in $PATH
1691 IFS=$as_save_IFS
1692 test -z "$as_dir" && as_dir=.
1693 for ac_exec_ext in '' $ac_executable_extensions; do
1694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1695 ac_cv_prog_ac_ct_CC="gcc"
1696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1697 break 2
1699 done
1700 done
1704 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1705 if test -n "$ac_ct_CC"; then
1706 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1707 echo "${ECHO_T}$ac_ct_CC" >&6
1708 else
1709 echo "$as_me:$LINENO: result: no" >&5
1710 echo "${ECHO_T}no" >&6
1713 CC=$ac_ct_CC
1714 else
1715 CC="$ac_cv_prog_CC"
1718 if test -z "$CC"; then
1719 if test -n "$ac_tool_prefix"; then
1720 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1721 set dummy ${ac_tool_prefix}cc; ac_word=$2
1722 echo "$as_me:$LINENO: checking for $ac_word" >&5
1723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1724 if test "${ac_cv_prog_CC+set}" = set; then
1725 echo $ECHO_N "(cached) $ECHO_C" >&6
1726 else
1727 if test -n "$CC"; then
1728 ac_cv_prog_CC="$CC" # Let the user override the test.
1729 else
1730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731 for as_dir in $PATH
1733 IFS=$as_save_IFS
1734 test -z "$as_dir" && as_dir=.
1735 for ac_exec_ext in '' $ac_executable_extensions; do
1736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1737 ac_cv_prog_CC="${ac_tool_prefix}cc"
1738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1739 break 2
1741 done
1742 done
1746 CC=$ac_cv_prog_CC
1747 if test -n "$CC"; then
1748 echo "$as_me:$LINENO: result: $CC" >&5
1749 echo "${ECHO_T}$CC" >&6
1750 else
1751 echo "$as_me:$LINENO: result: no" >&5
1752 echo "${ECHO_T}no" >&6
1756 if test -z "$ac_cv_prog_CC"; then
1757 ac_ct_CC=$CC
1758 # Extract the first word of "cc", so it can be a program name with args.
1759 set dummy cc; ac_word=$2
1760 echo "$as_me:$LINENO: checking for $ac_word" >&5
1761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1762 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1763 echo $ECHO_N "(cached) $ECHO_C" >&6
1764 else
1765 if test -n "$ac_ct_CC"; then
1766 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1767 else
1768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1769 for as_dir in $PATH
1771 IFS=$as_save_IFS
1772 test -z "$as_dir" && as_dir=.
1773 for ac_exec_ext in '' $ac_executable_extensions; do
1774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1775 ac_cv_prog_ac_ct_CC="cc"
1776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1777 break 2
1779 done
1780 done
1784 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1785 if test -n "$ac_ct_CC"; then
1786 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1787 echo "${ECHO_T}$ac_ct_CC" >&6
1788 else
1789 echo "$as_me:$LINENO: result: no" >&5
1790 echo "${ECHO_T}no" >&6
1793 CC=$ac_ct_CC
1794 else
1795 CC="$ac_cv_prog_CC"
1799 if test -z "$CC"; then
1800 # Extract the first word of "cc", so it can be a program name with args.
1801 set dummy cc; ac_word=$2
1802 echo "$as_me:$LINENO: checking for $ac_word" >&5
1803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1804 if test "${ac_cv_prog_CC+set}" = set; then
1805 echo $ECHO_N "(cached) $ECHO_C" >&6
1806 else
1807 if test -n "$CC"; then
1808 ac_cv_prog_CC="$CC" # Let the user override the test.
1809 else
1810 ac_prog_rejected=no
1811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1812 for as_dir in $PATH
1814 IFS=$as_save_IFS
1815 test -z "$as_dir" && as_dir=.
1816 for ac_exec_ext in '' $ac_executable_extensions; do
1817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1818 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1819 ac_prog_rejected=yes
1820 continue
1822 ac_cv_prog_CC="cc"
1823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1824 break 2
1826 done
1827 done
1829 if test $ac_prog_rejected = yes; then
1830 # We found a bogon in the path, so make sure we never use it.
1831 set dummy $ac_cv_prog_CC
1832 shift
1833 if test $# != 0; then
1834 # We chose a different compiler from the bogus one.
1835 # However, it has the same basename, so the bogon will be chosen
1836 # first if we set CC to just the basename; use the full file name.
1837 shift
1838 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1843 CC=$ac_cv_prog_CC
1844 if test -n "$CC"; then
1845 echo "$as_me:$LINENO: result: $CC" >&5
1846 echo "${ECHO_T}$CC" >&6
1847 else
1848 echo "$as_me:$LINENO: result: no" >&5
1849 echo "${ECHO_T}no" >&6
1853 if test -z "$CC"; then
1854 if test -n "$ac_tool_prefix"; then
1855 for ac_prog in cl
1857 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1858 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1859 echo "$as_me:$LINENO: checking for $ac_word" >&5
1860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1861 if test "${ac_cv_prog_CC+set}" = set; then
1862 echo $ECHO_N "(cached) $ECHO_C" >&6
1863 else
1864 if test -n "$CC"; then
1865 ac_cv_prog_CC="$CC" # Let the user override the test.
1866 else
1867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868 for as_dir in $PATH
1870 IFS=$as_save_IFS
1871 test -z "$as_dir" && as_dir=.
1872 for ac_exec_ext in '' $ac_executable_extensions; do
1873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1874 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876 break 2
1878 done
1879 done
1883 CC=$ac_cv_prog_CC
1884 if test -n "$CC"; then
1885 echo "$as_me:$LINENO: result: $CC" >&5
1886 echo "${ECHO_T}$CC" >&6
1887 else
1888 echo "$as_me:$LINENO: result: no" >&5
1889 echo "${ECHO_T}no" >&6
1892 test -n "$CC" && break
1893 done
1895 if test -z "$CC"; then
1896 ac_ct_CC=$CC
1897 for ac_prog in cl
1899 # Extract the first word of "$ac_prog", so it can be a program name with args.
1900 set dummy $ac_prog; ac_word=$2
1901 echo "$as_me:$LINENO: checking for $ac_word" >&5
1902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1903 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1904 echo $ECHO_N "(cached) $ECHO_C" >&6
1905 else
1906 if test -n "$ac_ct_CC"; then
1907 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1908 else
1909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1910 for as_dir in $PATH
1912 IFS=$as_save_IFS
1913 test -z "$as_dir" && as_dir=.
1914 for ac_exec_ext in '' $ac_executable_extensions; do
1915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1916 ac_cv_prog_ac_ct_CC="$ac_prog"
1917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1918 break 2
1920 done
1921 done
1925 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1926 if test -n "$ac_ct_CC"; then
1927 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1928 echo "${ECHO_T}$ac_ct_CC" >&6
1929 else
1930 echo "$as_me:$LINENO: result: no" >&5
1931 echo "${ECHO_T}no" >&6
1934 test -n "$ac_ct_CC" && break
1935 done
1937 CC=$ac_ct_CC
1943 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1944 See \`config.log' for more details." >&5
1945 echo "$as_me: error: no acceptable C compiler found in \$PATH
1946 See \`config.log' for more details." >&2;}
1947 { (exit 1); exit 1; }; }
1949 # Provide some information about the compiler.
1950 echo "$as_me:$LINENO:" \
1951 "checking for C compiler version" >&5
1952 ac_compiler=`set X $ac_compile; echo $2`
1953 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1954 (eval $ac_compiler --version </dev/null >&5) 2>&5
1955 ac_status=$?
1956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1957 (exit $ac_status); }
1958 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1959 (eval $ac_compiler -v </dev/null >&5) 2>&5
1960 ac_status=$?
1961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962 (exit $ac_status); }
1963 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1964 (eval $ac_compiler -V </dev/null >&5) 2>&5
1965 ac_status=$?
1966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1967 (exit $ac_status); }
1969 cat >conftest.$ac_ext <<_ACEOF
1970 /* confdefs.h. */
1971 _ACEOF
1972 cat confdefs.h >>conftest.$ac_ext
1973 cat >>conftest.$ac_ext <<_ACEOF
1974 /* end confdefs.h. */
1977 main ()
1981 return 0;
1983 _ACEOF
1984 ac_clean_files_save=$ac_clean_files
1985 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1986 # Try to create an executable without -o first, disregard a.out.
1987 # It will help us diagnose broken compilers, and finding out an intuition
1988 # of exeext.
1989 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1990 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1991 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1992 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1993 (eval $ac_link_default) 2>&5
1994 ac_status=$?
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); }; then
1997 # Find the output, starting from the most likely. This scheme is
1998 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1999 # resort.
2001 # Be careful to initialize this variable, since it used to be cached.
2002 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2003 ac_cv_exeext=
2004 # b.out is created by i960 compilers.
2005 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2007 test -f "$ac_file" || continue
2008 case $ac_file in
2009 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2011 conftest.$ac_ext )
2012 # This is the source file.
2014 [ab].out )
2015 # We found the default executable, but exeext='' is most
2016 # certainly right.
2017 break;;
2018 *.* )
2019 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2020 # FIXME: I believe we export ac_cv_exeext for Libtool,
2021 # but it would be cool to find out if it's true. Does anybody
2022 # maintain Libtool? --akim.
2023 export ac_cv_exeext
2024 break;;
2026 break;;
2027 esac
2028 done
2029 else
2030 echo "$as_me: failed program was:" >&5
2031 sed 's/^/| /' conftest.$ac_ext >&5
2033 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2034 See \`config.log' for more details." >&5
2035 echo "$as_me: error: C compiler cannot create executables
2036 See \`config.log' for more details." >&2;}
2037 { (exit 77); exit 77; }; }
2040 ac_exeext=$ac_cv_exeext
2041 echo "$as_me:$LINENO: result: $ac_file" >&5
2042 echo "${ECHO_T}$ac_file" >&6
2044 # Check the compiler produces executables we can run. If not, either
2045 # the compiler is broken, or we cross compile.
2046 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2047 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2048 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2049 # If not cross compiling, check that we can run a simple program.
2050 if test "$cross_compiling" != yes; then
2051 if { ac_try='./$ac_file'
2052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2053 (eval $ac_try) 2>&5
2054 ac_status=$?
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); }; }; then
2057 cross_compiling=no
2058 else
2059 if test "$cross_compiling" = maybe; then
2060 cross_compiling=yes
2061 else
2062 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2063 If you meant to cross compile, use \`--host'.
2064 See \`config.log' for more details." >&5
2065 echo "$as_me: error: cannot run C compiled programs.
2066 If you meant to cross compile, use \`--host'.
2067 See \`config.log' for more details." >&2;}
2068 { (exit 1); exit 1; }; }
2072 echo "$as_me:$LINENO: result: yes" >&5
2073 echo "${ECHO_T}yes" >&6
2075 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2076 ac_clean_files=$ac_clean_files_save
2077 # Check the compiler produces executables we can run. If not, either
2078 # the compiler is broken, or we cross compile.
2079 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2080 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2081 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2082 echo "${ECHO_T}$cross_compiling" >&6
2084 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2085 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2087 (eval $ac_link) 2>&5
2088 ac_status=$?
2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); }; then
2091 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2092 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2093 # work properly (i.e., refer to `conftest.exe'), while it won't with
2094 # `rm'.
2095 for ac_file in conftest.exe conftest conftest.*; do
2096 test -f "$ac_file" || continue
2097 case $ac_file in
2098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2099 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2100 export ac_cv_exeext
2101 break;;
2102 * ) break;;
2103 esac
2104 done
2105 else
2106 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2107 See \`config.log' for more details." >&5
2108 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2109 See \`config.log' for more details." >&2;}
2110 { (exit 1); exit 1; }; }
2113 rm -f conftest$ac_cv_exeext
2114 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2115 echo "${ECHO_T}$ac_cv_exeext" >&6
2117 rm -f conftest.$ac_ext
2118 EXEEXT=$ac_cv_exeext
2119 ac_exeext=$EXEEXT
2120 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2121 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2122 if test "${ac_cv_objext+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2124 else
2125 cat >conftest.$ac_ext <<_ACEOF
2126 /* confdefs.h. */
2127 _ACEOF
2128 cat confdefs.h >>conftest.$ac_ext
2129 cat >>conftest.$ac_ext <<_ACEOF
2130 /* end confdefs.h. */
2133 main ()
2137 return 0;
2139 _ACEOF
2140 rm -f conftest.o conftest.obj
2141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2142 (eval $ac_compile) 2>&5
2143 ac_status=$?
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }; then
2146 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2147 case $ac_file in
2148 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2149 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2150 break;;
2151 esac
2152 done
2153 else
2154 echo "$as_me: failed program was:" >&5
2155 sed 's/^/| /' conftest.$ac_ext >&5
2157 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2158 See \`config.log' for more details." >&5
2159 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2160 See \`config.log' for more details." >&2;}
2161 { (exit 1); exit 1; }; }
2164 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2166 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2167 echo "${ECHO_T}$ac_cv_objext" >&6
2168 OBJEXT=$ac_cv_objext
2169 ac_objext=$OBJEXT
2170 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2171 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2172 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2173 echo $ECHO_N "(cached) $ECHO_C" >&6
2174 else
2175 cat >conftest.$ac_ext <<_ACEOF
2176 /* confdefs.h. */
2177 _ACEOF
2178 cat confdefs.h >>conftest.$ac_ext
2179 cat >>conftest.$ac_ext <<_ACEOF
2180 /* end confdefs.h. */
2183 main ()
2185 #ifndef __GNUC__
2186 choke me
2187 #endif
2190 return 0;
2192 _ACEOF
2193 rm -f conftest.$ac_objext
2194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2195 (eval $ac_compile) 2>conftest.er1
2196 ac_status=$?
2197 grep -v '^ *+' conftest.er1 >conftest.err
2198 rm -f conftest.er1
2199 cat conftest.err >&5
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); } &&
2202 { ac_try='test -z "$ac_c_werror_flag"
2203 || test ! -s conftest.err'
2204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205 (eval $ac_try) 2>&5
2206 ac_status=$?
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; } &&
2209 { ac_try='test -s conftest.$ac_objext'
2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211 (eval $ac_try) 2>&5
2212 ac_status=$?
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; }; then
2215 ac_compiler_gnu=yes
2216 else
2217 echo "$as_me: failed program was:" >&5
2218 sed 's/^/| /' conftest.$ac_ext >&5
2220 ac_compiler_gnu=no
2222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2223 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2226 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2227 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2228 GCC=`test $ac_compiler_gnu = yes && echo yes`
2229 ac_test_CFLAGS=${CFLAGS+set}
2230 ac_save_CFLAGS=$CFLAGS
2231 CFLAGS="-g"
2232 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2233 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2234 if test "${ac_cv_prog_cc_g+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
2236 else
2237 cat >conftest.$ac_ext <<_ACEOF
2238 /* confdefs.h. */
2239 _ACEOF
2240 cat confdefs.h >>conftest.$ac_ext
2241 cat >>conftest.$ac_ext <<_ACEOF
2242 /* end confdefs.h. */
2245 main ()
2249 return 0;
2251 _ACEOF
2252 rm -f conftest.$ac_objext
2253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2254 (eval $ac_compile) 2>conftest.er1
2255 ac_status=$?
2256 grep -v '^ *+' conftest.er1 >conftest.err
2257 rm -f conftest.er1
2258 cat conftest.err >&5
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); } &&
2261 { ac_try='test -z "$ac_c_werror_flag"
2262 || test ! -s conftest.err'
2263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2264 (eval $ac_try) 2>&5
2265 ac_status=$?
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }; } &&
2268 { ac_try='test -s conftest.$ac_objext'
2269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270 (eval $ac_try) 2>&5
2271 ac_status=$?
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; }; then
2274 ac_cv_prog_cc_g=yes
2275 else
2276 echo "$as_me: failed program was:" >&5
2277 sed 's/^/| /' conftest.$ac_ext >&5
2279 ac_cv_prog_cc_g=no
2281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2283 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2284 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2285 if test "$ac_test_CFLAGS" = set; then
2286 CFLAGS=$ac_save_CFLAGS
2287 elif test $ac_cv_prog_cc_g = yes; then
2288 if test "$GCC" = yes; then
2289 CFLAGS="-g -O2"
2290 else
2291 CFLAGS="-g"
2293 else
2294 if test "$GCC" = yes; then
2295 CFLAGS="-O2"
2296 else
2297 CFLAGS=
2300 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2301 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2302 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2304 else
2305 ac_cv_prog_cc_stdc=no
2306 ac_save_CC=$CC
2307 cat >conftest.$ac_ext <<_ACEOF
2308 /* confdefs.h. */
2309 _ACEOF
2310 cat confdefs.h >>conftest.$ac_ext
2311 cat >>conftest.$ac_ext <<_ACEOF
2312 /* end confdefs.h. */
2313 #include <stdarg.h>
2314 #include <stdio.h>
2315 #include <sys/types.h>
2316 #include <sys/stat.h>
2317 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2318 struct buf { int x; };
2319 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2320 static char *e (p, i)
2321 char **p;
2322 int i;
2324 return p[i];
2326 static char *f (char * (*g) (char **, int), char **p, ...)
2328 char *s;
2329 va_list v;
2330 va_start (v,p);
2331 s = g (p, va_arg (v,int));
2332 va_end (v);
2333 return s;
2336 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2337 function prototypes and stuff, but not '\xHH' hex character constants.
2338 These don't provoke an error unfortunately, instead are silently treated
2339 as 'x'. The following induces an error, until -std1 is added to get
2340 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2341 array size at least. It's necessary to write '\x00'==0 to get something
2342 that's true only with -std1. */
2343 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2345 int test (int i, double x);
2346 struct s1 {int (*f) (int a);};
2347 struct s2 {int (*f) (double a);};
2348 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2349 int argc;
2350 char **argv;
2352 main ()
2354 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2356 return 0;
2358 _ACEOF
2359 # Don't try gcc -ansi; that turns off useful extensions and
2360 # breaks some systems' header files.
2361 # AIX -qlanglvl=ansi
2362 # Ultrix and OSF/1 -std1
2363 # HP-UX 10.20 and later -Ae
2364 # HP-UX older versions -Aa -D_HPUX_SOURCE
2365 # SVR4 -Xc -D__EXTENSIONS__
2366 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2368 CC="$ac_save_CC $ac_arg"
2369 rm -f conftest.$ac_objext
2370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2371 (eval $ac_compile) 2>conftest.er1
2372 ac_status=$?
2373 grep -v '^ *+' conftest.er1 >conftest.err
2374 rm -f conftest.er1
2375 cat conftest.err >&5
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); } &&
2378 { ac_try='test -z "$ac_c_werror_flag"
2379 || test ! -s conftest.err'
2380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381 (eval $ac_try) 2>&5
2382 ac_status=$?
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); }; } &&
2385 { ac_try='test -s conftest.$ac_objext'
2386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387 (eval $ac_try) 2>&5
2388 ac_status=$?
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }; }; then
2391 ac_cv_prog_cc_stdc=$ac_arg
2392 break
2393 else
2394 echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.$ac_ext >&5
2398 rm -f conftest.err conftest.$ac_objext
2399 done
2400 rm -f conftest.$ac_ext conftest.$ac_objext
2401 CC=$ac_save_CC
2405 case "x$ac_cv_prog_cc_stdc" in
2406 x|xno)
2407 echo "$as_me:$LINENO: result: none needed" >&5
2408 echo "${ECHO_T}none needed" >&6 ;;
2410 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2411 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2412 CC="$CC $ac_cv_prog_cc_stdc" ;;
2413 esac
2415 # Some people use a C++ compiler to compile C. Since we use `exit',
2416 # in C++ we need to declare it. In case someone uses the same compiler
2417 # for both compiling C and C++ we need to have the C++ compiler decide
2418 # the declaration of exit, since it's the most demanding environment.
2419 cat >conftest.$ac_ext <<_ACEOF
2420 #ifndef __cplusplus
2421 choke me
2422 #endif
2423 _ACEOF
2424 rm -f conftest.$ac_objext
2425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2426 (eval $ac_compile) 2>conftest.er1
2427 ac_status=$?
2428 grep -v '^ *+' conftest.er1 >conftest.err
2429 rm -f conftest.er1
2430 cat conftest.err >&5
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); } &&
2433 { ac_try='test -z "$ac_c_werror_flag"
2434 || test ! -s conftest.err'
2435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436 (eval $ac_try) 2>&5
2437 ac_status=$?
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }; } &&
2440 { ac_try='test -s conftest.$ac_objext'
2441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442 (eval $ac_try) 2>&5
2443 ac_status=$?
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); }; }; then
2446 for ac_declaration in \
2447 '' \
2448 'extern "C" void std::exit (int) throw (); using std::exit;' \
2449 'extern "C" void std::exit (int); using std::exit;' \
2450 'extern "C" void exit (int) throw ();' \
2451 'extern "C" void exit (int);' \
2452 'void exit (int);'
2454 cat >conftest.$ac_ext <<_ACEOF
2455 /* confdefs.h. */
2456 _ACEOF
2457 cat confdefs.h >>conftest.$ac_ext
2458 cat >>conftest.$ac_ext <<_ACEOF
2459 /* end confdefs.h. */
2460 $ac_declaration
2461 #include <stdlib.h>
2463 main ()
2465 exit (42);
2467 return 0;
2469 _ACEOF
2470 rm -f conftest.$ac_objext
2471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2472 (eval $ac_compile) 2>conftest.er1
2473 ac_status=$?
2474 grep -v '^ *+' conftest.er1 >conftest.err
2475 rm -f conftest.er1
2476 cat conftest.err >&5
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); } &&
2479 { ac_try='test -z "$ac_c_werror_flag"
2480 || test ! -s conftest.err'
2481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482 (eval $ac_try) 2>&5
2483 ac_status=$?
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }; } &&
2486 { ac_try='test -s conftest.$ac_objext'
2487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488 (eval $ac_try) 2>&5
2489 ac_status=$?
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }; }; then
2493 else
2494 echo "$as_me: failed program was:" >&5
2495 sed 's/^/| /' conftest.$ac_ext >&5
2497 continue
2499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2500 cat >conftest.$ac_ext <<_ACEOF
2501 /* confdefs.h. */
2502 _ACEOF
2503 cat confdefs.h >>conftest.$ac_ext
2504 cat >>conftest.$ac_ext <<_ACEOF
2505 /* end confdefs.h. */
2506 $ac_declaration
2508 main ()
2510 exit (42);
2512 return 0;
2514 _ACEOF
2515 rm -f conftest.$ac_objext
2516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2517 (eval $ac_compile) 2>conftest.er1
2518 ac_status=$?
2519 grep -v '^ *+' conftest.er1 >conftest.err
2520 rm -f conftest.er1
2521 cat conftest.err >&5
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); } &&
2524 { ac_try='test -z "$ac_c_werror_flag"
2525 || test ! -s conftest.err'
2526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2527 (eval $ac_try) 2>&5
2528 ac_status=$?
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; } &&
2531 { ac_try='test -s conftest.$ac_objext'
2532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533 (eval $ac_try) 2>&5
2534 ac_status=$?
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; }; then
2537 break
2538 else
2539 echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2544 done
2545 rm -f conftest*
2546 if test -n "$ac_declaration"; then
2547 echo '#ifdef __cplusplus' >>confdefs.h
2548 echo $ac_declaration >>confdefs.h
2549 echo '#endif' >>confdefs.h
2552 else
2553 echo "$as_me: failed program was:" >&5
2554 sed 's/^/| /' conftest.$ac_ext >&5
2557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2558 ac_ext=c
2559 ac_cpp='$CPP $CPPFLAGS'
2560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2564 ac_ext=cc
2565 ac_cpp='$CXXCPP $CPPFLAGS'
2566 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2567 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2568 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2569 if test -n "$ac_tool_prefix"; then
2570 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2572 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2573 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2574 echo "$as_me:$LINENO: checking for $ac_word" >&5
2575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2576 if test "${ac_cv_prog_CXX+set}" = set; then
2577 echo $ECHO_N "(cached) $ECHO_C" >&6
2578 else
2579 if test -n "$CXX"; then
2580 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2581 else
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 for as_dir in $PATH
2585 IFS=$as_save_IFS
2586 test -z "$as_dir" && as_dir=.
2587 for ac_exec_ext in '' $ac_executable_extensions; do
2588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2589 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2591 break 2
2593 done
2594 done
2598 CXX=$ac_cv_prog_CXX
2599 if test -n "$CXX"; then
2600 echo "$as_me:$LINENO: result: $CXX" >&5
2601 echo "${ECHO_T}$CXX" >&6
2602 else
2603 echo "$as_me:$LINENO: result: no" >&5
2604 echo "${ECHO_T}no" >&6
2607 test -n "$CXX" && break
2608 done
2610 if test -z "$CXX"; then
2611 ac_ct_CXX=$CXX
2612 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2614 # Extract the first word of "$ac_prog", so it can be a program name with args.
2615 set dummy $ac_prog; ac_word=$2
2616 echo "$as_me:$LINENO: checking for $ac_word" >&5
2617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2618 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
2620 else
2621 if test -n "$ac_ct_CXX"; then
2622 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2623 else
2624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 for as_dir in $PATH
2627 IFS=$as_save_IFS
2628 test -z "$as_dir" && as_dir=.
2629 for ac_exec_ext in '' $ac_executable_extensions; do
2630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2631 ac_cv_prog_ac_ct_CXX="$ac_prog"
2632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2633 break 2
2635 done
2636 done
2640 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2641 if test -n "$ac_ct_CXX"; then
2642 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2643 echo "${ECHO_T}$ac_ct_CXX" >&6
2644 else
2645 echo "$as_me:$LINENO: result: no" >&5
2646 echo "${ECHO_T}no" >&6
2649 test -n "$ac_ct_CXX" && break
2650 done
2651 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2653 CXX=$ac_ct_CXX
2657 # Provide some information about the compiler.
2658 echo "$as_me:$LINENO:" \
2659 "checking for C++ compiler version" >&5
2660 ac_compiler=`set X $ac_compile; echo $2`
2661 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2662 (eval $ac_compiler --version </dev/null >&5) 2>&5
2663 ac_status=$?
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }
2666 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2667 (eval $ac_compiler -v </dev/null >&5) 2>&5
2668 ac_status=$?
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }
2671 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2672 (eval $ac_compiler -V </dev/null >&5) 2>&5
2673 ac_status=$?
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }
2677 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2678 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2679 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2681 else
2682 cat >conftest.$ac_ext <<_ACEOF
2683 /* confdefs.h. */
2684 _ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h. */
2690 main ()
2692 #ifndef __GNUC__
2693 choke me
2694 #endif
2697 return 0;
2699 _ACEOF
2700 rm -f conftest.$ac_objext
2701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2702 (eval $ac_compile) 2>conftest.er1
2703 ac_status=$?
2704 grep -v '^ *+' conftest.er1 >conftest.err
2705 rm -f conftest.er1
2706 cat conftest.err >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); } &&
2709 { ac_try='test -z "$ac_cxx_werror_flag"
2710 || test ! -s conftest.err'
2711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712 (eval $ac_try) 2>&5
2713 ac_status=$?
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }; } &&
2716 { ac_try='test -s conftest.$ac_objext'
2717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718 (eval $ac_try) 2>&5
2719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; }; then
2722 ac_compiler_gnu=yes
2723 else
2724 echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2727 ac_compiler_gnu=no
2729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2730 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2733 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2734 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2735 GXX=`test $ac_compiler_gnu = yes && echo yes`
2736 ac_test_CXXFLAGS=${CXXFLAGS+set}
2737 ac_save_CXXFLAGS=$CXXFLAGS
2738 CXXFLAGS="-g"
2739 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2740 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2741 if test "${ac_cv_prog_cxx_g+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2743 else
2744 cat >conftest.$ac_ext <<_ACEOF
2745 /* confdefs.h. */
2746 _ACEOF
2747 cat confdefs.h >>conftest.$ac_ext
2748 cat >>conftest.$ac_ext <<_ACEOF
2749 /* end confdefs.h. */
2752 main ()
2756 return 0;
2758 _ACEOF
2759 rm -f conftest.$ac_objext
2760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2761 (eval $ac_compile) 2>conftest.er1
2762 ac_status=$?
2763 grep -v '^ *+' conftest.er1 >conftest.err
2764 rm -f conftest.er1
2765 cat conftest.err >&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); } &&
2768 { ac_try='test -z "$ac_cxx_werror_flag"
2769 || test ! -s conftest.err'
2770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771 (eval $ac_try) 2>&5
2772 ac_status=$?
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); }; } &&
2775 { ac_try='test -s conftest.$ac_objext'
2776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777 (eval $ac_try) 2>&5
2778 ac_status=$?
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; }; then
2781 ac_cv_prog_cxx_g=yes
2782 else
2783 echo "$as_me: failed program was:" >&5
2784 sed 's/^/| /' conftest.$ac_ext >&5
2786 ac_cv_prog_cxx_g=no
2788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2790 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2791 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2792 if test "$ac_test_CXXFLAGS" = set; then
2793 CXXFLAGS=$ac_save_CXXFLAGS
2794 elif test $ac_cv_prog_cxx_g = yes; then
2795 if test "$GXX" = yes; then
2796 CXXFLAGS="-g -O2"
2797 else
2798 CXXFLAGS="-g"
2800 else
2801 if test "$GXX" = yes; then
2802 CXXFLAGS="-O2"
2803 else
2804 CXXFLAGS=
2807 for ac_declaration in \
2808 '' \
2809 'extern "C" void std::exit (int) throw (); using std::exit;' \
2810 'extern "C" void std::exit (int); using std::exit;' \
2811 'extern "C" void exit (int) throw ();' \
2812 'extern "C" void exit (int);' \
2813 'void exit (int);'
2815 cat >conftest.$ac_ext <<_ACEOF
2816 /* confdefs.h. */
2817 _ACEOF
2818 cat confdefs.h >>conftest.$ac_ext
2819 cat >>conftest.$ac_ext <<_ACEOF
2820 /* end confdefs.h. */
2821 $ac_declaration
2822 #include <stdlib.h>
2824 main ()
2826 exit (42);
2828 return 0;
2830 _ACEOF
2831 rm -f conftest.$ac_objext
2832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2833 (eval $ac_compile) 2>conftest.er1
2834 ac_status=$?
2835 grep -v '^ *+' conftest.er1 >conftest.err
2836 rm -f conftest.er1
2837 cat conftest.err >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } &&
2840 { ac_try='test -z "$ac_cxx_werror_flag"
2841 || test ! -s conftest.err'
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843 (eval $ac_try) 2>&5
2844 ac_status=$?
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; } &&
2847 { ac_try='test -s conftest.$ac_objext'
2848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849 (eval $ac_try) 2>&5
2850 ac_status=$?
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; }; then
2854 else
2855 echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2858 continue
2860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2861 cat >conftest.$ac_ext <<_ACEOF
2862 /* confdefs.h. */
2863 _ACEOF
2864 cat confdefs.h >>conftest.$ac_ext
2865 cat >>conftest.$ac_ext <<_ACEOF
2866 /* end confdefs.h. */
2867 $ac_declaration
2869 main ()
2871 exit (42);
2873 return 0;
2875 _ACEOF
2876 rm -f conftest.$ac_objext
2877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2878 (eval $ac_compile) 2>conftest.er1
2879 ac_status=$?
2880 grep -v '^ *+' conftest.er1 >conftest.err
2881 rm -f conftest.er1
2882 cat conftest.err >&5
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); } &&
2885 { ac_try='test -z "$ac_cxx_werror_flag"
2886 || test ! -s conftest.err'
2887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888 (eval $ac_try) 2>&5
2889 ac_status=$?
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; } &&
2892 { ac_try='test -s conftest.$ac_objext'
2893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2894 (eval $ac_try) 2>&5
2895 ac_status=$?
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }; }; then
2898 break
2899 else
2900 echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2905 done
2906 rm -f conftest*
2907 if test -n "$ac_declaration"; then
2908 echo '#ifdef __cplusplus' >>confdefs.h
2909 echo $ac_declaration >>confdefs.h
2910 echo '#endif' >>confdefs.h
2913 ac_ext=c
2914 ac_cpp='$CPP $CPPFLAGS'
2915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2920 if test "x$CHECKMEM" '!=' "x";then
2921 CC="ccmalloc $CC"
2922 CXX="ccmalloc $CXX"
2923 #echo running again
2924 #unset ac_cv_prog_CC
2925 #unset ac_cv_prog_CXX
2926 #AC_PROG_CC
2927 #AC_PROG_CXX
2929 ac_ext=c
2930 ac_cpp='$CPP $CPPFLAGS'
2931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2934 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2935 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2936 # On Suns, sometimes $CPP names a directory.
2937 if test -n "$CPP" && test -d "$CPP"; then
2938 CPP=
2940 if test -z "$CPP"; then
2941 if test "${ac_cv_prog_CPP+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 else
2944 # Double quotes because CPP needs to be expanded
2945 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2947 ac_preproc_ok=false
2948 for ac_c_preproc_warn_flag in '' yes
2950 # Use a header file that comes with gcc, so configuring glibc
2951 # with a fresh cross-compiler works.
2952 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2953 # <limits.h> exists even on freestanding compilers.
2954 # On the NeXT, cc -E runs the code through the compiler's parser,
2955 # not just through cpp. "Syntax error" is here to catch this case.
2956 cat >conftest.$ac_ext <<_ACEOF
2957 /* confdefs.h. */
2958 _ACEOF
2959 cat confdefs.h >>conftest.$ac_ext
2960 cat >>conftest.$ac_ext <<_ACEOF
2961 /* end confdefs.h. */
2962 #ifdef __STDC__
2963 # include <limits.h>
2964 #else
2965 # include <assert.h>
2966 #endif
2967 Syntax error
2968 _ACEOF
2969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2971 ac_status=$?
2972 grep -v '^ *+' conftest.er1 >conftest.err
2973 rm -f conftest.er1
2974 cat conftest.err >&5
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); } >/dev/null; then
2977 if test -s conftest.err; then
2978 ac_cpp_err=$ac_c_preproc_warn_flag
2979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2980 else
2981 ac_cpp_err=
2983 else
2984 ac_cpp_err=yes
2986 if test -z "$ac_cpp_err"; then
2988 else
2989 echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2992 # Broken: fails on valid input.
2993 continue
2995 rm -f conftest.err conftest.$ac_ext
2997 # OK, works on sane cases. Now check whether non-existent headers
2998 # can be detected and how.
2999 cat >conftest.$ac_ext <<_ACEOF
3000 /* confdefs.h. */
3001 _ACEOF
3002 cat confdefs.h >>conftest.$ac_ext
3003 cat >>conftest.$ac_ext <<_ACEOF
3004 /* end confdefs.h. */
3005 #include <ac_nonexistent.h>
3006 _ACEOF
3007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3009 ac_status=$?
3010 grep -v '^ *+' conftest.er1 >conftest.err
3011 rm -f conftest.er1
3012 cat conftest.err >&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); } >/dev/null; then
3015 if test -s conftest.err; then
3016 ac_cpp_err=$ac_c_preproc_warn_flag
3017 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3018 else
3019 ac_cpp_err=
3021 else
3022 ac_cpp_err=yes
3024 if test -z "$ac_cpp_err"; then
3025 # Broken: success on invalid input.
3026 continue
3027 else
3028 echo "$as_me: failed program was:" >&5
3029 sed 's/^/| /' conftest.$ac_ext >&5
3031 # Passes both tests.
3032 ac_preproc_ok=:
3033 break
3035 rm -f conftest.err conftest.$ac_ext
3037 done
3038 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3039 rm -f conftest.err conftest.$ac_ext
3040 if $ac_preproc_ok; then
3041 break
3044 done
3045 ac_cv_prog_CPP=$CPP
3048 CPP=$ac_cv_prog_CPP
3049 else
3050 ac_cv_prog_CPP=$CPP
3052 echo "$as_me:$LINENO: result: $CPP" >&5
3053 echo "${ECHO_T}$CPP" >&6
3054 ac_preproc_ok=false
3055 for ac_c_preproc_warn_flag in '' yes
3057 # Use a header file that comes with gcc, so configuring glibc
3058 # with a fresh cross-compiler works.
3059 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3060 # <limits.h> exists even on freestanding compilers.
3061 # On the NeXT, cc -E runs the code through the compiler's parser,
3062 # not just through cpp. "Syntax error" is here to catch this case.
3063 cat >conftest.$ac_ext <<_ACEOF
3064 /* confdefs.h. */
3065 _ACEOF
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h. */
3069 #ifdef __STDC__
3070 # include <limits.h>
3071 #else
3072 # include <assert.h>
3073 #endif
3074 Syntax error
3075 _ACEOF
3076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3078 ac_status=$?
3079 grep -v '^ *+' conftest.er1 >conftest.err
3080 rm -f conftest.er1
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } >/dev/null; then
3084 if test -s conftest.err; then
3085 ac_cpp_err=$ac_c_preproc_warn_flag
3086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3087 else
3088 ac_cpp_err=
3090 else
3091 ac_cpp_err=yes
3093 if test -z "$ac_cpp_err"; then
3095 else
3096 echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3099 # Broken: fails on valid input.
3100 continue
3102 rm -f conftest.err conftest.$ac_ext
3104 # OK, works on sane cases. Now check whether non-existent headers
3105 # can be detected and how.
3106 cat >conftest.$ac_ext <<_ACEOF
3107 /* confdefs.h. */
3108 _ACEOF
3109 cat confdefs.h >>conftest.$ac_ext
3110 cat >>conftest.$ac_ext <<_ACEOF
3111 /* end confdefs.h. */
3112 #include <ac_nonexistent.h>
3113 _ACEOF
3114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3115 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3116 ac_status=$?
3117 grep -v '^ *+' conftest.er1 >conftest.err
3118 rm -f conftest.er1
3119 cat conftest.err >&5
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); } >/dev/null; then
3122 if test -s conftest.err; then
3123 ac_cpp_err=$ac_c_preproc_warn_flag
3124 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3125 else
3126 ac_cpp_err=
3128 else
3129 ac_cpp_err=yes
3131 if test -z "$ac_cpp_err"; then
3132 # Broken: success on invalid input.
3133 continue
3134 else
3135 echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3138 # Passes both tests.
3139 ac_preproc_ok=:
3140 break
3142 rm -f conftest.err conftest.$ac_ext
3144 done
3145 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3146 rm -f conftest.err conftest.$ac_ext
3147 if $ac_preproc_ok; then
3149 else
3150 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3151 See \`config.log' for more details." >&5
3152 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3153 See \`config.log' for more details." >&2;}
3154 { (exit 1); exit 1; }; }
3157 ac_ext=c
3158 ac_cpp='$CPP $CPPFLAGS'
3159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3164 if test -n "$ac_tool_prefix"; then
3165 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3166 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3167 echo "$as_me:$LINENO: checking for $ac_word" >&5
3168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3169 if test "${ac_cv_prog_RANLIB+set}" = set; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
3171 else
3172 if test -n "$RANLIB"; then
3173 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3174 else
3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 for as_dir in $PATH
3178 IFS=$as_save_IFS
3179 test -z "$as_dir" && as_dir=.
3180 for ac_exec_ext in '' $ac_executable_extensions; do
3181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3182 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3184 break 2
3186 done
3187 done
3191 RANLIB=$ac_cv_prog_RANLIB
3192 if test -n "$RANLIB"; then
3193 echo "$as_me:$LINENO: result: $RANLIB" >&5
3194 echo "${ECHO_T}$RANLIB" >&6
3195 else
3196 echo "$as_me:$LINENO: result: no" >&5
3197 echo "${ECHO_T}no" >&6
3201 if test -z "$ac_cv_prog_RANLIB"; then
3202 ac_ct_RANLIB=$RANLIB
3203 # Extract the first word of "ranlib", so it can be a program name with args.
3204 set dummy ranlib; ac_word=$2
3205 echo "$as_me:$LINENO: checking for $ac_word" >&5
3206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3207 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3209 else
3210 if test -n "$ac_ct_RANLIB"; then
3211 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3212 else
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 for as_dir in $PATH
3216 IFS=$as_save_IFS
3217 test -z "$as_dir" && as_dir=.
3218 for ac_exec_ext in '' $ac_executable_extensions; do
3219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3220 ac_cv_prog_ac_ct_RANLIB="ranlib"
3221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3222 break 2
3224 done
3225 done
3227 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3230 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3231 if test -n "$ac_ct_RANLIB"; then
3232 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3233 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3234 else
3235 echo "$as_me:$LINENO: result: no" >&5
3236 echo "${ECHO_T}no" >&6
3239 RANLIB=$ac_ct_RANLIB
3240 else
3241 RANLIB="$ac_cv_prog_RANLIB"
3244 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3245 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3246 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3247 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3249 else
3250 cat >conftest.make <<\_ACEOF
3251 all:
3252 @echo 'ac_maketemp="$(MAKE)"'
3253 _ACEOF
3254 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3255 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3256 if test -n "$ac_maketemp"; then
3257 eval ac_cv_prog_make_${ac_make}_set=yes
3258 else
3259 eval ac_cv_prog_make_${ac_make}_set=no
3261 rm -f conftest.make
3263 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3264 echo "$as_me:$LINENO: result: yes" >&5
3265 echo "${ECHO_T}yes" >&6
3266 SET_MAKE=
3267 else
3268 echo "$as_me:$LINENO: result: no" >&5
3269 echo "${ECHO_T}no" >&6
3270 SET_MAKE="MAKE=${MAKE-make}"
3273 # Find a good install program. We prefer a C program (faster),
3274 # so one script is as good as another. But avoid the broken or
3275 # incompatible versions:
3276 # SysV /etc/install, /usr/sbin/install
3277 # SunOS /usr/etc/install
3278 # IRIX /sbin/install
3279 # AIX /bin/install
3280 # AmigaOS /C/install, which installs bootblocks on floppy discs
3281 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3282 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3283 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3284 # OS/2's system install, which has a completely different semantic
3285 # ./install, which can be erroneously created by make from ./install.sh.
3286 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3287 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3288 if test -z "$INSTALL"; then
3289 if test "${ac_cv_path_install+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 else
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 for as_dir in $PATH
3295 IFS=$as_save_IFS
3296 test -z "$as_dir" && as_dir=.
3297 # Account for people who put trailing slashes in PATH elements.
3298 case $as_dir/ in
3299 ./ | .// | /cC/* | \
3300 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3301 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3302 /usr/ucb/* ) ;;
3304 # OSF1 and SCO ODT 3.0 have their own names for install.
3305 # Don't use installbsd from OSF since it installs stuff as root
3306 # by default.
3307 for ac_prog in ginstall scoinst install; do
3308 for ac_exec_ext in '' $ac_executable_extensions; do
3309 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3310 if test $ac_prog = install &&
3311 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3312 # AIX install. It has an incompatible calling convention.
3314 elif test $ac_prog = install &&
3315 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3316 # program-specific install script used by HP pwplus--don't use.
3318 else
3319 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3320 break 3
3323 done
3324 done
3326 esac
3327 done
3331 if test "${ac_cv_path_install+set}" = set; then
3332 INSTALL=$ac_cv_path_install
3333 else
3334 # As a last resort, use the slow shell script. We don't cache a
3335 # path for INSTALL within a source directory, because that will
3336 # break other packages using the cache if that directory is
3337 # removed, or if the path is relative.
3338 INSTALL=$ac_install_sh
3341 echo "$as_me:$LINENO: result: $INSTALL" >&5
3342 echo "${ECHO_T}$INSTALL" >&6
3344 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3345 # It thinks the first close brace ends the variable substitution.
3346 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3348 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3350 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3352 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3353 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3354 LN_S=$as_ln_s
3355 if test "$LN_S" = "ln -s"; then
3356 echo "$as_me:$LINENO: result: yes" >&5
3357 echo "${ECHO_T}yes" >&6
3358 else
3359 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3360 echo "${ECHO_T}no, using $LN_S" >&6
3363 # Check whether --enable-shared or --disable-shared was given.
3364 if test "${enable_shared+set}" = set; then
3365 enableval="$enable_shared"
3366 p=${PACKAGE-default}
3367 case $enableval in
3368 yes) enable_shared=yes ;;
3369 no) enable_shared=no ;;
3371 enable_shared=no
3372 # Look at the argument we got. We use all the common list separators.
3373 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3374 for pkg in $enableval; do
3375 if test "X$pkg" = "X$p"; then
3376 enable_shared=yes
3378 done
3379 IFS="$ac_save_ifs"
3381 esac
3382 else
3383 enable_shared=yes
3385 # Check whether --enable-static or --disable-static was given.
3386 if test "${enable_static+set}" = set; then
3387 enableval="$enable_static"
3388 p=${PACKAGE-default}
3389 case $enableval in
3390 yes) enable_static=yes ;;
3391 no) enable_static=no ;;
3393 enable_static=no
3394 # Look at the argument we got. We use all the common list separators.
3395 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3396 for pkg in $enableval; do
3397 if test "X$pkg" = "X$p"; then
3398 enable_static=yes
3400 done
3401 IFS="$ac_save_ifs"
3403 esac
3404 else
3405 enable_static=yes
3407 # Check whether --enable-fast-install or --disable-fast-install was given.
3408 if test "${enable_fast_install+set}" = set; then
3409 enableval="$enable_fast_install"
3410 p=${PACKAGE-default}
3411 case $enableval in
3412 yes) enable_fast_install=yes ;;
3413 no) enable_fast_install=no ;;
3415 enable_fast_install=no
3416 # Look at the argument we got. We use all the common list separators.
3417 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3418 for pkg in $enableval; do
3419 if test "X$pkg" = "X$p"; then
3420 enable_fast_install=yes
3422 done
3423 IFS="$ac_save_ifs"
3425 esac
3426 else
3427 enable_fast_install=yes
3429 # Find the correct PATH separator. Usually this is `:', but
3430 # DJGPP uses `;' like DOS.
3431 if test "X${PATH_SEPARATOR+set}" != Xset; then
3432 UNAME=${UNAME-`uname 2>/dev/null`}
3433 case X$UNAME in
3434 *-DOS) lt_cv_sys_path_separator=';' ;;
3435 *) lt_cv_sys_path_separator=':' ;;
3436 esac
3437 PATH_SEPARATOR=$lt_cv_sys_path_separator
3441 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3442 if test "${with_gnu_ld+set}" = set; then
3443 withval="$with_gnu_ld"
3444 test "$withval" = no || with_gnu_ld=yes
3445 else
3446 with_gnu_ld=no
3448 ac_prog=ld
3449 if test "$GCC" = yes; then
3450 # Check if gcc -print-prog-name=ld gives a path.
3451 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3452 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3453 case $host in
3454 *-*-mingw*)
3455 # gcc leaves a trailing carriage return which upsets mingw
3456 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3458 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3459 esac
3460 case $ac_prog in
3461 # Accept absolute paths.
3462 [\\/]* | [A-Za-z]:[\\/]*)
3463 re_direlt='/[^/][^/]*/\.\./'
3464 # Canonicalize the path of ld
3465 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3466 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3467 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3468 done
3469 test -z "$LD" && LD="$ac_prog"
3472 # If it fails, then pretend we aren't using GCC.
3473 ac_prog=ld
3476 # If it is relative, then search for the first ld in PATH.
3477 with_gnu_ld=unknown
3479 esac
3480 elif test "$with_gnu_ld" = yes; then
3481 echo "$as_me:$LINENO: checking for GNU ld" >&5
3482 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3483 else
3484 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3485 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3487 if test "${lt_cv_path_LD+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3489 else
3490 if test -z "$LD"; then
3491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3492 for ac_dir in $PATH; do
3493 test -z "$ac_dir" && ac_dir=.
3494 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3495 lt_cv_path_LD="$ac_dir/$ac_prog"
3496 # Check to see if the program is GNU ld. I'd rather use --version,
3497 # but apparently some GNU ld's only accept -v.
3498 # Break only if it was the GNU/non-GNU ld that we prefer.
3499 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3500 test "$with_gnu_ld" != no && break
3501 else
3502 test "$with_gnu_ld" != yes && break
3505 done
3506 IFS="$ac_save_ifs"
3507 else
3508 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3512 LD="$lt_cv_path_LD"
3513 if test -n "$LD"; then
3514 echo "$as_me:$LINENO: result: $LD" >&5
3515 echo "${ECHO_T}$LD" >&6
3516 else
3517 echo "$as_me:$LINENO: result: no" >&5
3518 echo "${ECHO_T}no" >&6
3520 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3521 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3522 { (exit 1); exit 1; }; }
3523 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3524 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3525 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" >&6
3527 else
3528 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3529 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3530 lt_cv_prog_gnu_ld=yes
3531 else
3532 lt_cv_prog_gnu_ld=no
3535 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3536 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3537 with_gnu_ld=$lt_cv_prog_gnu_ld
3540 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3541 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3542 if test "${lt_cv_ld_reload_flag+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545 lt_cv_ld_reload_flag='-r'
3547 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3548 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3549 reload_flag=$lt_cv_ld_reload_flag
3550 test -n "$reload_flag" && reload_flag=" $reload_flag"
3552 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3553 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3554 if test "${lt_cv_path_NM+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 else
3557 if test -n "$NM"; then
3558 # Let the user override the test.
3559 lt_cv_path_NM="$NM"
3560 else
3561 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3562 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3563 test -z "$ac_dir" && ac_dir=.
3564 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3565 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3566 # Check to see if the nm accepts a BSD-compat flag.
3567 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3568 # nm: unknown option "B" ignored
3569 # Tru64's nm complains that /dev/null is an invalid object file
3570 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3571 lt_cv_path_NM="$tmp_nm -B"
3572 break
3573 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3574 lt_cv_path_NM="$tmp_nm -p"
3575 break
3576 else
3577 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3578 continue # so that we can try to find one that supports BSD flags
3581 done
3582 IFS="$ac_save_ifs"
3583 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3587 NM="$lt_cv_path_NM"
3588 echo "$as_me:$LINENO: result: $NM" >&5
3589 echo "${ECHO_T}$NM" >&6
3591 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3592 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3593 if test "${lt_cv_path_SED+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3595 else
3596 # Loop through the user's path and test for sed and gsed.
3597 # Then use that list of sed's as ones to test for truncation.
3598 as_executable_p="test -f"
3599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600 for as_dir in $PATH
3602 IFS=$as_save_IFS
3603 test -z "$as_dir" && as_dir=.
3604 for ac_prog in sed gsed; do
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3607 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3609 done
3610 done
3611 done
3613 # Create a temporary directory, and hook for its removal unless debugging.
3614 $debug ||
3616 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3617 trap '{ (exit 1); exit 1; }' 1 2 13 15
3620 # Create a (secure) tmp directory for tmp files.
3621 : ${TMPDIR=/tmp}
3623 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3624 test -n "$tmp" && test -d "$tmp"
3625 } ||
3627 tmp=$TMPDIR/sed$$-$RANDOM
3628 (umask 077 && mkdir $tmp)
3629 } ||
3631 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3632 { (exit 1); exit 1; }
3634 _max=0
3635 _count=0
3636 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3637 # along with /bin/sed that truncates output.
3638 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3639 test ! -f ${_sed} && break
3640 cat /dev/null > "$tmp/sed.in"
3641 _count=0
3642 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3643 # Check for GNU sed and select it if it is found.
3644 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3645 lt_cv_path_SED=${_sed}
3646 break
3648 while true; do
3649 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3650 mv "$tmp/sed.tmp" "$tmp/sed.in"
3651 cp "$tmp/sed.in" "$tmp/sed.nl"
3652 echo >>"$tmp/sed.nl"
3653 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3654 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3655 # 40000 chars as input seems more than enough
3656 test $_count -gt 10 && break
3657 _count=`expr $_count + 1`
3658 if test $_count -gt $_max; then
3659 _max=$_count
3660 lt_cv_path_SED=$_sed
3662 done
3663 done
3664 rm -rf "$tmp"
3668 if test "X$SED" != "X"; then
3669 lt_cv_path_SED=$SED
3670 else
3671 SED=$lt_cv_path_SED
3673 echo "$as_me:$LINENO: result: $SED" >&5
3674 echo "${ECHO_T}$SED" >&6
3676 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3677 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3678 if test "${lt_cv_deplibs_check_method+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 else
3681 lt_cv_file_magic_cmd='$MAGIC_CMD'
3682 lt_cv_file_magic_test_file=
3683 lt_cv_deplibs_check_method='unknown'
3684 # Need to set the preceding variable on all platforms that support
3685 # interlibrary dependencies.
3686 # 'none' -- dependencies not supported.
3687 # `unknown' -- same as none, but documents that we really don't know.
3688 # 'pass_all' -- all dependencies passed with no checks.
3689 # 'test_compile' -- check by making test program.
3690 # 'file_magic [[regex]]' -- check by looking for files in library path
3691 # which responds to the $file_magic_cmd with a given egrep regex.
3692 # If you have `file' or equivalent on your system and you're not sure
3693 # whether `pass_all' will *always* work, you probably want this one.
3695 case $host_os in
3696 aix4* | aix5*)
3697 lt_cv_deplibs_check_method=pass_all
3700 beos*)
3701 lt_cv_deplibs_check_method=pass_all
3704 bsdi4*)
3705 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3706 lt_cv_file_magic_cmd='/usr/bin/file -L'
3707 lt_cv_file_magic_test_file=/shlib/libc.so
3710 cygwin* | mingw* | pw32*)
3711 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3712 lt_cv_file_magic_cmd='$OBJDUMP -f'
3715 darwin* | rhapsody*)
3716 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3717 lt_cv_file_magic_cmd='/usr/bin/file -L'
3718 case "$host_os" in
3719 rhapsody* | darwin1.[012])
3720 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3722 *) # Darwin 1.3 on
3723 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3725 esac
3728 freebsd*)
3729 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3730 case $host_cpu in
3731 i*86 )
3732 # Not sure whether the presence of OpenBSD here was a mistake.
3733 # Let's accept both of them until this is cleared up.
3734 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3735 lt_cv_file_magic_cmd=/usr/bin/file
3736 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3738 esac
3739 else
3740 lt_cv_deplibs_check_method=pass_all
3744 gnu*)
3745 lt_cv_deplibs_check_method=pass_all
3748 hpux10.20*|hpux11*)
3749 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3750 lt_cv_file_magic_cmd=/usr/bin/file
3751 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3754 irix5* | irix6* | nonstopux*)
3755 case $host_os in
3756 irix5* | nonstopux*)
3757 # this will be overridden with pass_all, but let us keep it just in case
3758 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3761 case $LD in
3762 *-32|*"-32 ") libmagic=32-bit;;
3763 *-n32|*"-n32 ") libmagic=N32;;
3764 *-64|*"-64 ") libmagic=64-bit;;
3765 *) libmagic=never-match;;
3766 esac
3767 # this will be overridden with pass_all, but let us keep it just in case
3768 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3770 esac
3771 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3772 lt_cv_deplibs_check_method=pass_all
3775 # This must be Linux ELF.
3776 linux-gnu*)
3777 case $host_cpu in
3778 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
3779 lt_cv_deplibs_check_method=pass_all ;;
3781 # glibc up to 2.1.1 does not perform some relocations on ARM
3782 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3783 esac
3784 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3787 netbsd*)
3788 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3789 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3790 else
3791 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3795 newos6*)
3796 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3797 lt_cv_file_magic_cmd=/usr/bin/file
3798 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3801 openbsd*)
3802 lt_cv_file_magic_cmd=/usr/bin/file
3803 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3804 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3805 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3806 else
3807 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3811 osf3* | osf4* | osf5*)
3812 # this will be overridden with pass_all, but let us keep it just in case
3813 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3814 lt_cv_file_magic_test_file=/shlib/libc.so
3815 lt_cv_deplibs_check_method=pass_all
3818 sco3.2v5*)
3819 lt_cv_deplibs_check_method=pass_all
3822 solaris*)
3823 lt_cv_deplibs_check_method=pass_all
3824 lt_cv_file_magic_test_file=/lib/libc.so
3827 sysv5uw[78]* | sysv4*uw2*)
3828 lt_cv_deplibs_check_method=pass_all
3831 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3832 case $host_vendor in
3833 motorola)
3834 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3835 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3837 ncr)
3838 lt_cv_deplibs_check_method=pass_all
3840 sequent)
3841 lt_cv_file_magic_cmd='/bin/file'
3842 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3844 sni)
3845 lt_cv_file_magic_cmd='/bin/file'
3846 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3847 lt_cv_file_magic_test_file=/lib/libc.so
3849 siemens)
3850 lt_cv_deplibs_check_method=pass_all
3852 esac
3854 esac
3857 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3858 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3859 file_magic_cmd=$lt_cv_file_magic_cmd
3860 deplibs_check_method=$lt_cv_deplibs_check_method
3869 # Check for command to grab the raw symbol name followed by C symbol from nm.
3870 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3871 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3872 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3873 echo $ECHO_N "(cached) $ECHO_C" >&6
3874 else
3876 # These are sane defaults that work on at least a few old systems.
3877 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3879 # Character class describing NM global symbol codes.
3880 symcode='[BCDEGRST]'
3882 # Regexp to match symbols that can be accessed directly from C.
3883 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3885 # Transform the above into a raw symbol and a C symbol.
3886 symxfrm='\1 \2\3 \3'
3888 # Transform an extracted symbol line into a proper C declaration
3889 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3891 # Transform an extracted symbol line into symbol name and symbol address
3892 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3894 # Define system-specific variables.
3895 case $host_os in
3896 aix*)
3897 symcode='[BCDT]'
3899 cygwin* | mingw* | pw32*)
3900 symcode='[ABCDGISTW]'
3902 hpux*) # Its linker distinguishes data from code symbols
3903 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3904 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3906 irix* | nonstopux*)
3907 symcode='[BCDEGRST]'
3909 osf*)
3910 symcode='[BCDEGQRST]'
3912 solaris* | sysv5*)
3913 symcode='[BDT]'
3915 sysv4)
3916 symcode='[DFNSTU]'
3918 esac
3920 # Handle CRLF in mingw tool chain
3921 opt_cr=
3922 case $host_os in
3923 mingw*)
3924 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3926 esac
3928 # If we're using GNU nm, then use its standard symbol codes.
3929 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3930 symcode='[ABCDGISTW]'
3933 # Try without a prefix undercore, then with it.
3934 for ac_symprfx in "" "_"; do
3936 # Write the raw and C identifiers.
3937 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3939 # Check to see that the pipe works correctly.
3940 pipe_works=no
3941 rm -f conftest*
3942 cat > conftest.$ac_ext <<EOF
3943 #ifdef __cplusplus
3944 extern "C" {
3945 #endif
3946 char nm_test_var;
3947 void nm_test_func(){}
3948 #ifdef __cplusplus
3950 #endif
3951 int main(){nm_test_var='a';nm_test_func();return(0);}
3954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3955 (eval $ac_compile) 2>&5
3956 ac_status=$?
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); }; then
3959 # Now try to grab the symbols.
3960 nlist=conftest.nm
3961 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3962 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3963 ac_status=$?
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); } && test -s "$nlist"; then
3966 # Try sorting and uniquifying the output.
3967 if sort "$nlist" | uniq > "$nlist"T; then
3968 mv -f "$nlist"T "$nlist"
3969 else
3970 rm -f "$nlist"T
3973 # Make sure that we snagged all the symbols we need.
3974 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3975 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3976 cat <<EOF > conftest.$ac_ext
3977 #ifdef __cplusplus
3978 extern "C" {
3979 #endif
3982 # Now generate the symbol file.
3983 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3985 cat <<EOF >> conftest.$ac_ext
3986 #if defined (__STDC__) && __STDC__
3987 # define lt_ptr void *
3988 #else
3989 # define lt_ptr char *
3990 # define const
3991 #endif
3993 /* The mapping between symbol names and symbols. */
3994 const struct {
3995 const char *name;
3996 lt_ptr address;
3998 lt_preloaded_symbols[] =
4001 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4002 cat <<\EOF >> conftest.$ac_ext
4003 {0, (lt_ptr) 0}
4006 #ifdef __cplusplus
4008 #endif
4010 # Now try linking the two files.
4011 mv conftest.$ac_objext conftstm.$ac_objext
4012 save_LIBS="$LIBS"
4013 save_CFLAGS="$CFLAGS"
4014 LIBS="conftstm.$ac_objext"
4015 CFLAGS="$CFLAGS$no_builtin_flag"
4016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4017 (eval $ac_link) 2>&5
4018 ac_status=$?
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); } && test -s conftest$ac_exeext; then
4021 pipe_works=yes
4023 LIBS="$save_LIBS"
4024 CFLAGS="$save_CFLAGS"
4025 else
4026 echo "cannot find nm_test_func in $nlist" >&5
4028 else
4029 echo "cannot find nm_test_var in $nlist" >&5
4031 else
4032 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4034 else
4035 echo "$progname: failed program was:" >&5
4036 cat conftest.$ac_ext >&5
4038 rm -f conftest* conftst*
4040 # Do not use the global_symbol_pipe unless it works.
4041 if test "$pipe_works" = yes; then
4042 break
4043 else
4044 lt_cv_sys_global_symbol_pipe=
4046 done
4050 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4051 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4052 global_symbol_to_cdecl=
4053 global_symbol_to_c_name_address=
4054 else
4055 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4056 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4058 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4059 then
4060 echo "$as_me:$LINENO: result: failed" >&5
4061 echo "${ECHO_T}failed" >&6
4062 else
4063 echo "$as_me:$LINENO: result: ok" >&5
4064 echo "${ECHO_T}ok" >&6
4068 echo "$as_me:$LINENO: checking for egrep" >&5
4069 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4070 if test "${ac_cv_prog_egrep+set}" = set; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4072 else
4073 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4074 then ac_cv_prog_egrep='grep -E'
4075 else ac_cv_prog_egrep='egrep'
4078 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4079 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4080 EGREP=$ac_cv_prog_egrep
4083 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4084 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4085 if test "${ac_cv_header_stdc+set}" = set; then
4086 echo $ECHO_N "(cached) $ECHO_C" >&6
4087 else
4088 cat >conftest.$ac_ext <<_ACEOF
4089 /* confdefs.h. */
4090 _ACEOF
4091 cat confdefs.h >>conftest.$ac_ext
4092 cat >>conftest.$ac_ext <<_ACEOF
4093 /* end confdefs.h. */
4094 #include <stdlib.h>
4095 #include <stdarg.h>
4096 #include <string.h>
4097 #include <float.h>
4100 main ()
4104 return 0;
4106 _ACEOF
4107 rm -f conftest.$ac_objext
4108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4109 (eval $ac_compile) 2>conftest.er1
4110 ac_status=$?
4111 grep -v '^ *+' conftest.er1 >conftest.err
4112 rm -f conftest.er1
4113 cat conftest.err >&5
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); } &&
4116 { ac_try='test -z "$ac_c_werror_flag"
4117 || test ! -s conftest.err'
4118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119 (eval $ac_try) 2>&5
4120 ac_status=$?
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); }; } &&
4123 { ac_try='test -s conftest.$ac_objext'
4124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4125 (eval $ac_try) 2>&5
4126 ac_status=$?
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); }; }; then
4129 ac_cv_header_stdc=yes
4130 else
4131 echo "$as_me: failed program was:" >&5
4132 sed 's/^/| /' conftest.$ac_ext >&5
4134 ac_cv_header_stdc=no
4136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4138 if test $ac_cv_header_stdc = yes; then
4139 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4140 cat >conftest.$ac_ext <<_ACEOF
4141 /* confdefs.h. */
4142 _ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4146 #include <string.h>
4148 _ACEOF
4149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4150 $EGREP "memchr" >/dev/null 2>&1; then
4152 else
4153 ac_cv_header_stdc=no
4155 rm -f conftest*
4159 if test $ac_cv_header_stdc = yes; then
4160 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4161 cat >conftest.$ac_ext <<_ACEOF
4162 /* confdefs.h. */
4163 _ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h. */
4167 #include <stdlib.h>
4169 _ACEOF
4170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4171 $EGREP "free" >/dev/null 2>&1; then
4173 else
4174 ac_cv_header_stdc=no
4176 rm -f conftest*
4180 if test $ac_cv_header_stdc = yes; then
4181 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4182 if test "$cross_compiling" = yes; then
4184 else
4185 cat >conftest.$ac_ext <<_ACEOF
4186 /* confdefs.h. */
4187 _ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h. */
4191 #include <ctype.h>
4192 #if ((' ' & 0x0FF) == 0x020)
4193 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4194 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4195 #else
4196 # define ISLOWER(c) \
4197 (('a' <= (c) && (c) <= 'i') \
4198 || ('j' <= (c) && (c) <= 'r') \
4199 || ('s' <= (c) && (c) <= 'z'))
4200 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4201 #endif
4203 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4205 main ()
4207 int i;
4208 for (i = 0; i < 256; i++)
4209 if (XOR (islower (i), ISLOWER (i))
4210 || toupper (i) != TOUPPER (i))
4211 exit(2);
4212 exit (0);
4214 _ACEOF
4215 rm -f conftest$ac_exeext
4216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4217 (eval $ac_link) 2>&5
4218 ac_status=$?
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4222 (eval $ac_try) 2>&5
4223 ac_status=$?
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; }; then
4227 else
4228 echo "$as_me: program exited with status $ac_status" >&5
4229 echo "$as_me: failed program was:" >&5
4230 sed 's/^/| /' conftest.$ac_ext >&5
4232 ( exit $ac_status )
4233 ac_cv_header_stdc=no
4235 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4239 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4240 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4241 if test $ac_cv_header_stdc = yes; then
4243 cat >>confdefs.h <<\_ACEOF
4244 #define STDC_HEADERS 1
4245 _ACEOF
4249 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4259 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4260 inttypes.h stdint.h unistd.h
4262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4263 echo "$as_me:$LINENO: checking for $ac_header" >&5
4264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4265 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 else
4268 cat >conftest.$ac_ext <<_ACEOF
4269 /* confdefs.h. */
4270 _ACEOF
4271 cat confdefs.h >>conftest.$ac_ext
4272 cat >>conftest.$ac_ext <<_ACEOF
4273 /* end confdefs.h. */
4274 $ac_includes_default
4276 #include <$ac_header>
4277 _ACEOF
4278 rm -f conftest.$ac_objext
4279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4280 (eval $ac_compile) 2>conftest.er1
4281 ac_status=$?
4282 grep -v '^ *+' conftest.er1 >conftest.err
4283 rm -f conftest.er1
4284 cat conftest.err >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } &&
4287 { ac_try='test -z "$ac_c_werror_flag"
4288 || test ! -s conftest.err'
4289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4290 (eval $ac_try) 2>&5
4291 ac_status=$?
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; } &&
4294 { ac_try='test -s conftest.$ac_objext'
4295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296 (eval $ac_try) 2>&5
4297 ac_status=$?
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; }; then
4300 eval "$as_ac_Header=yes"
4301 else
4302 echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4305 eval "$as_ac_Header=no"
4307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4312 cat >>confdefs.h <<_ACEOF
4313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4314 _ACEOF
4318 done
4322 for ac_header in dlfcn.h
4324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4326 echo "$as_me:$LINENO: checking for $ac_header" >&5
4327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4333 else
4334 # Is the header compilable?
4335 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4336 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4337 cat >conftest.$ac_ext <<_ACEOF
4338 /* confdefs.h. */
4339 _ACEOF
4340 cat confdefs.h >>conftest.$ac_ext
4341 cat >>conftest.$ac_ext <<_ACEOF
4342 /* end confdefs.h. */
4343 $ac_includes_default
4344 #include <$ac_header>
4345 _ACEOF
4346 rm -f conftest.$ac_objext
4347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4348 (eval $ac_compile) 2>conftest.er1
4349 ac_status=$?
4350 grep -v '^ *+' conftest.er1 >conftest.err
4351 rm -f conftest.er1
4352 cat conftest.err >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } &&
4355 { ac_try='test -z "$ac_c_werror_flag"
4356 || test ! -s conftest.err'
4357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4358 (eval $ac_try) 2>&5
4359 ac_status=$?
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); }; } &&
4362 { ac_try='test -s conftest.$ac_objext'
4363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4364 (eval $ac_try) 2>&5
4365 ac_status=$?
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }; }; then
4368 ac_header_compiler=yes
4369 else
4370 echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.$ac_ext >&5
4373 ac_header_compiler=no
4375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4376 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4377 echo "${ECHO_T}$ac_header_compiler" >&6
4379 # Is the header present?
4380 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4381 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4382 cat >conftest.$ac_ext <<_ACEOF
4383 /* confdefs.h. */
4384 _ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h. */
4388 #include <$ac_header>
4389 _ACEOF
4390 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4392 ac_status=$?
4393 grep -v '^ *+' conftest.er1 >conftest.err
4394 rm -f conftest.er1
4395 cat conftest.err >&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); } >/dev/null; then
4398 if test -s conftest.err; then
4399 ac_cpp_err=$ac_c_preproc_warn_flag
4400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4401 else
4402 ac_cpp_err=
4404 else
4405 ac_cpp_err=yes
4407 if test -z "$ac_cpp_err"; then
4408 ac_header_preproc=yes
4409 else
4410 echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4413 ac_header_preproc=no
4415 rm -f conftest.err conftest.$ac_ext
4416 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4417 echo "${ECHO_T}$ac_header_preproc" >&6
4419 # So? What about this header?
4420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4421 yes:no: )
4422 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4423 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4425 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4426 ac_header_preproc=yes
4428 no:yes:* )
4429 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4431 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4432 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4433 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4434 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4435 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4436 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4438 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4439 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4440 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4442 cat <<\_ASBOX
4443 ## ------------------------------------------ ##
4444 ## Report this to the AC_PACKAGE_NAME lists. ##
4445 ## ------------------------------------------ ##
4446 _ASBOX
4448 sed "s/^/$as_me: WARNING: /" >&2
4450 esac
4451 echo "$as_me:$LINENO: checking for $ac_header" >&5
4452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4454 echo $ECHO_N "(cached) $ECHO_C" >&6
4455 else
4456 eval "$as_ac_Header=\$ac_header_preproc"
4458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4463 cat >>confdefs.h <<_ACEOF
4464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4465 _ACEOF
4469 done
4476 # Only perform the check for file, if the check method requires it
4477 case $deplibs_check_method in
4478 file_magic*)
4479 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4480 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4481 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4482 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
4484 else
4485 case $MAGIC_CMD in
4487 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4489 ?:/*)
4490 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4493 ac_save_MAGIC_CMD="$MAGIC_CMD"
4494 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4495 ac_dummy="/usr/bin:$PATH"
4496 for ac_dir in $ac_dummy; do
4497 test -z "$ac_dir" && ac_dir=.
4498 if test -f $ac_dir/${ac_tool_prefix}file; then
4499 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4500 if test -n "$file_magic_test_file"; then
4501 case $deplibs_check_method in
4502 "file_magic "*)
4503 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4504 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4505 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4506 egrep "$file_magic_regex" > /dev/null; then
4508 else
4509 cat <<EOF 1>&2
4511 *** Warning: the command libtool uses to detect shared libraries,
4512 *** $file_magic_cmd, produces output that libtool cannot recognize.
4513 *** The result is that libtool may fail to recognize shared libraries
4514 *** as such. This will affect the creation of libtool libraries that
4515 *** depend on shared libraries, but programs linked with such libtool
4516 *** libraries will work regardless of this problem. Nevertheless, you
4517 *** may want to report the problem to your system manager and/or to
4518 *** bug-libtool@gnu.org
4521 fi ;;
4522 esac
4524 break
4526 done
4527 IFS="$ac_save_ifs"
4528 MAGIC_CMD="$ac_save_MAGIC_CMD"
4530 esac
4533 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4534 if test -n "$MAGIC_CMD"; then
4535 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4536 echo "${ECHO_T}$MAGIC_CMD" >&6
4537 else
4538 echo "$as_me:$LINENO: result: no" >&5
4539 echo "${ECHO_T}no" >&6
4542 if test -z "$lt_cv_path_MAGIC_CMD"; then
4543 if test -n "$ac_tool_prefix"; then
4544 echo "$as_me:$LINENO: checking for file" >&5
4545 echo $ECHO_N "checking for file... $ECHO_C" >&6
4546 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4548 else
4549 case $MAGIC_CMD in
4551 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4553 ?:/*)
4554 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4557 ac_save_MAGIC_CMD="$MAGIC_CMD"
4558 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4559 ac_dummy="/usr/bin:$PATH"
4560 for ac_dir in $ac_dummy; do
4561 test -z "$ac_dir" && ac_dir=.
4562 if test -f $ac_dir/file; then
4563 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4564 if test -n "$file_magic_test_file"; then
4565 case $deplibs_check_method in
4566 "file_magic "*)
4567 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4568 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4569 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4570 egrep "$file_magic_regex" > /dev/null; then
4572 else
4573 cat <<EOF 1>&2
4575 *** Warning: the command libtool uses to detect shared libraries,
4576 *** $file_magic_cmd, produces output that libtool cannot recognize.
4577 *** The result is that libtool may fail to recognize shared libraries
4578 *** as such. This will affect the creation of libtool libraries that
4579 *** depend on shared libraries, but programs linked with such libtool
4580 *** libraries will work regardless of this problem. Nevertheless, you
4581 *** may want to report the problem to your system manager and/or to
4582 *** bug-libtool@gnu.org
4585 fi ;;
4586 esac
4588 break
4590 done
4591 IFS="$ac_save_ifs"
4592 MAGIC_CMD="$ac_save_MAGIC_CMD"
4594 esac
4597 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4598 if test -n "$MAGIC_CMD"; then
4599 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4600 echo "${ECHO_T}$MAGIC_CMD" >&6
4601 else
4602 echo "$as_me:$LINENO: result: no" >&5
4603 echo "${ECHO_T}no" >&6
4606 else
4607 MAGIC_CMD=:
4613 esac
4615 if test -n "$ac_tool_prefix"; then
4616 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4617 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4618 echo "$as_me:$LINENO: checking for $ac_word" >&5
4619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4620 if test "${ac_cv_prog_RANLIB+set}" = set; then
4621 echo $ECHO_N "(cached) $ECHO_C" >&6
4622 else
4623 if test -n "$RANLIB"; then
4624 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4625 else
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH
4629 IFS=$as_save_IFS
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4633 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4635 break 2
4637 done
4638 done
4642 RANLIB=$ac_cv_prog_RANLIB
4643 if test -n "$RANLIB"; then
4644 echo "$as_me:$LINENO: result: $RANLIB" >&5
4645 echo "${ECHO_T}$RANLIB" >&6
4646 else
4647 echo "$as_me:$LINENO: result: no" >&5
4648 echo "${ECHO_T}no" >&6
4652 if test -z "$ac_cv_prog_RANLIB"; then
4653 ac_ct_RANLIB=$RANLIB
4654 # Extract the first word of "ranlib", so it can be a program name with args.
4655 set dummy ranlib; ac_word=$2
4656 echo "$as_me:$LINENO: checking for $ac_word" >&5
4657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4658 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4660 else
4661 if test -n "$ac_ct_RANLIB"; then
4662 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4663 else
4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 for as_dir in $PATH
4667 IFS=$as_save_IFS
4668 test -z "$as_dir" && as_dir=.
4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4671 ac_cv_prog_ac_ct_RANLIB="ranlib"
4672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4673 break 2
4675 done
4676 done
4678 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4681 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4682 if test -n "$ac_ct_RANLIB"; then
4683 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4684 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4685 else
4686 echo "$as_me:$LINENO: result: no" >&5
4687 echo "${ECHO_T}no" >&6
4690 RANLIB=$ac_ct_RANLIB
4691 else
4692 RANLIB="$ac_cv_prog_RANLIB"
4695 if test -n "$ac_tool_prefix"; then
4696 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4697 set dummy ${ac_tool_prefix}strip; ac_word=$2
4698 echo "$as_me:$LINENO: checking for $ac_word" >&5
4699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4700 if test "${ac_cv_prog_STRIP+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
4702 else
4703 if test -n "$STRIP"; then
4704 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4705 else
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 for as_dir in $PATH
4709 IFS=$as_save_IFS
4710 test -z "$as_dir" && as_dir=.
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4713 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4715 break 2
4717 done
4718 done
4722 STRIP=$ac_cv_prog_STRIP
4723 if test -n "$STRIP"; then
4724 echo "$as_me:$LINENO: result: $STRIP" >&5
4725 echo "${ECHO_T}$STRIP" >&6
4726 else
4727 echo "$as_me:$LINENO: result: no" >&5
4728 echo "${ECHO_T}no" >&6
4732 if test -z "$ac_cv_prog_STRIP"; then
4733 ac_ct_STRIP=$STRIP
4734 # Extract the first word of "strip", so it can be a program name with args.
4735 set dummy strip; ac_word=$2
4736 echo "$as_me:$LINENO: checking for $ac_word" >&5
4737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4738 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4741 if test -n "$ac_ct_STRIP"; then
4742 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4743 else
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH
4747 IFS=$as_save_IFS
4748 test -z "$as_dir" && as_dir=.
4749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4751 ac_cv_prog_ac_ct_STRIP="strip"
4752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4753 break 2
4755 done
4756 done
4758 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4761 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4762 if test -n "$ac_ct_STRIP"; then
4763 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4764 echo "${ECHO_T}$ac_ct_STRIP" >&6
4765 else
4766 echo "$as_me:$LINENO: result: no" >&5
4767 echo "${ECHO_T}no" >&6
4770 STRIP=$ac_ct_STRIP
4771 else
4772 STRIP="$ac_cv_prog_STRIP"
4776 enable_dlopen=no
4777 enable_win32_dll=no
4779 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4780 if test "${enable_libtool_lock+set}" = set; then
4781 enableval="$enable_libtool_lock"
4784 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4786 # Some flags need to be propagated to the compiler or linker for good
4787 # libtool support.
4788 case $host in
4789 *-*-irix6*)
4790 # Find out which ABI we are using.
4791 echo '#line 4791 "configure"' > conftest.$ac_ext
4792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4793 (eval $ac_compile) 2>&5
4794 ac_status=$?
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; then
4797 case `/usr/bin/file conftest.$ac_objext` in
4798 *32-bit*)
4799 LD="${LD-ld} -32"
4801 *N32*)
4802 LD="${LD-ld} -n32"
4804 *64-bit*)
4805 LD="${LD-ld} -64"
4807 esac
4809 rm -rf conftest*
4812 *-*-linux*)
4813 # Test if the compiler is 64bit
4814 echo 'int i;' > conftest.$ac_ext
4815 lt_cv_cc_64bit_output=no
4816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4817 (eval $ac_compile) 2>&5
4818 ac_status=$?
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; then
4821 case `/usr/bin/file conftest.$ac_objext` in
4822 *"ELF 64"*)
4823 lt_cv_cc_64bit_output=yes
4825 esac
4827 rm -rf conftest*
4830 *-*-sco3.2v5*)
4831 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4832 SAVE_CFLAGS="$CFLAGS"
4833 CFLAGS="$CFLAGS -belf"
4834 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4835 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4836 if test "${lt_cv_cc_needs_belf+set}" = set; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4838 else
4841 ac_ext=c
4842 ac_cpp='$CPP $CPPFLAGS'
4843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4847 cat >conftest.$ac_ext <<_ACEOF
4848 /* confdefs.h. */
4849 _ACEOF
4850 cat confdefs.h >>conftest.$ac_ext
4851 cat >>conftest.$ac_ext <<_ACEOF
4852 /* end confdefs.h. */
4855 main ()
4859 return 0;
4861 _ACEOF
4862 rm -f conftest.$ac_objext conftest$ac_exeext
4863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4864 (eval $ac_link) 2>conftest.er1
4865 ac_status=$?
4866 grep -v '^ *+' conftest.er1 >conftest.err
4867 rm -f conftest.er1
4868 cat conftest.err >&5
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); } &&
4871 { ac_try='test -z "$ac_c_werror_flag"
4872 || test ! -s conftest.err'
4873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874 (eval $ac_try) 2>&5
4875 ac_status=$?
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); }; } &&
4878 { ac_try='test -s conftest$ac_exeext'
4879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4880 (eval $ac_try) 2>&5
4881 ac_status=$?
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); }; }; then
4884 lt_cv_cc_needs_belf=yes
4885 else
4886 echo "$as_me: failed program was:" >&5
4887 sed 's/^/| /' conftest.$ac_ext >&5
4889 lt_cv_cc_needs_belf=no
4891 rm -f conftest.err conftest.$ac_objext \
4892 conftest$ac_exeext conftest.$ac_ext
4893 ac_ext=c
4894 ac_cpp='$CPP $CPPFLAGS'
4895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4900 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4901 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4902 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4903 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4904 CFLAGS="$SAVE_CFLAGS"
4909 esac
4911 # Sed substitution that helps us do robust quoting. It backslashifies
4912 # metacharacters that are still active within double-quoted strings.
4913 Xsed='sed -e s/^X//'
4914 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4916 # Same as above, but do not quote variable references.
4917 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4919 # Sed substitution to delay expansion of an escaped shell variable in a
4920 # double_quote_subst'ed string.
4921 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4923 # Constants:
4924 rm="rm -f"
4926 # Global variables:
4927 default_ofile=libtool
4928 can_build_shared=yes
4930 # All known linkers require a `.a' archive for static linking (except M$VC,
4931 # which needs '.lib').
4932 libext=a
4933 ltmain="$ac_aux_dir/ltmain.sh"
4934 ofile="$default_ofile"
4935 with_gnu_ld="$lt_cv_prog_gnu_ld"
4936 need_locks="$enable_libtool_lock"
4938 old_CC="$CC"
4939 old_CFLAGS="$CFLAGS"
4941 # Set sane defaults for various variables
4942 test -z "$AR" && AR=ar
4943 test -z "$AR_FLAGS" && AR_FLAGS=cru
4944 test -z "$AS" && AS=as
4945 test -z "$CC" && CC=cc
4946 test -z "$DLLTOOL" && DLLTOOL=dlltool
4947 test -z "$LD" && LD=ld
4948 test -z "$LN_S" && LN_S="ln -s"
4949 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4950 test -z "$NM" && NM=nm
4951 test -z "$OBJDUMP" && OBJDUMP=objdump
4952 test -z "$RANLIB" && RANLIB=:
4953 test -z "$STRIP" && STRIP=:
4954 test -z "$ac_objext" && ac_objext=o
4956 if test x"$host" != x"$build"; then
4957 ac_tool_prefix=${host_alias}-
4958 else
4959 ac_tool_prefix=
4962 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4963 case $host_os in
4964 linux-gnu*) ;;
4965 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4966 esac
4968 case $host_os in
4969 aix3*)
4970 # AIX sometimes has problems with the GCC collect2 program. For some
4971 # reason, if we set the COLLECT_NAMES environment variable, the problems
4972 # vanish in a puff of smoke.
4973 if test "X${COLLECT_NAMES+set}" != Xset; then
4974 COLLECT_NAMES=
4975 export COLLECT_NAMES
4978 esac
4980 # Determine commands to create old-style static archives.
4981 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4982 old_postinstall_cmds='chmod 644 $oldlib'
4983 old_postuninstall_cmds=
4985 if test -n "$RANLIB"; then
4986 case $host_os in
4987 openbsd*)
4988 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4991 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4993 esac
4994 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4997 # Allow CC to be a program name with arguments.
4998 set dummy $CC
4999 compiler="$2"
5001 echo "$as_me:$LINENO: checking for objdir" >&5
5002 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5003 rm -f .libs 2>/dev/null
5004 mkdir .libs 2>/dev/null
5005 if test -d .libs; then
5006 objdir=.libs
5007 else
5008 # MS-DOS does not allow filenames that begin with a dot.
5009 objdir=_libs
5011 rmdir .libs 2>/dev/null
5012 echo "$as_me:$LINENO: result: $objdir" >&5
5013 echo "${ECHO_T}$objdir" >&6
5017 # Check whether --with-pic or --without-pic was given.
5018 if test "${with_pic+set}" = set; then
5019 withval="$with_pic"
5020 pic_mode="$withval"
5021 else
5022 pic_mode=default
5024 test -z "$pic_mode" && pic_mode=default
5026 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5027 # in isolation, and that seeing it set (from the cache) indicates that
5028 # the associated values are set (in the cache) correctly too.
5029 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5030 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5031 if test "${lt_cv_prog_cc_pic+set}" = set; then
5032 echo $ECHO_N "(cached) $ECHO_C" >&6
5033 else
5034 lt_cv_prog_cc_pic=
5035 lt_cv_prog_cc_shlib=
5036 lt_cv_prog_cc_wl=
5037 lt_cv_prog_cc_static=
5038 lt_cv_prog_cc_no_builtin=
5039 lt_cv_prog_cc_can_build_shared=$can_build_shared
5041 if test "$GCC" = yes; then
5042 lt_cv_prog_cc_wl='-Wl,'
5043 lt_cv_prog_cc_static='-static'
5045 case $host_os in
5046 aix*)
5047 # Below there is a dirty hack to force normal static linking with -ldl
5048 # The problem is because libdl dynamically linked with both libc and
5049 # libC (AIX C++ library), which obviously doesn't included in libraries
5050 # list by gcc. This cause undefined symbols with -static flags.
5051 # This hack allows C programs to be linked with "-static -ldl", but
5052 # not sure about C++ programs.
5053 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5055 amigaos*)
5056 # FIXME: we need at least 68020 code to build shared libraries, but
5057 # adding the `-m68020' flag to GCC prevents building anything better,
5058 # like `-m68040'.
5059 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5061 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5062 # PIC is the default for these OSes.
5064 darwin* | rhapsody*)
5065 # PIC is the default on this platform
5066 # Common symbols not allowed in MH_DYLIB files
5067 lt_cv_prog_cc_pic='-fno-common'
5069 cygwin* | mingw* | pw32* | os2*)
5070 # This hack is so that the source file can tell whether it is being
5071 # built for inclusion in a dll (and should export symbols for example).
5072 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5074 sysv4*MP*)
5075 if test -d /usr/nec; then
5076 lt_cv_prog_cc_pic=-Kconform_pic
5080 lt_cv_prog_cc_pic='-fPIC'
5082 esac
5083 else
5084 # PORTME Check for PIC flags for the system compiler.
5085 case $host_os in
5086 aix3* | aix4* | aix5*)
5087 lt_cv_prog_cc_wl='-Wl,'
5088 # All AIX code is PIC.
5089 if test "$host_cpu" = ia64; then
5090 # AIX 5 now supports IA64 processor
5091 lt_cv_prog_cc_static='-Bstatic'
5092 else
5093 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5097 hpux9* | hpux10* | hpux11*)
5098 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5099 lt_cv_prog_cc_wl='-Wl,'
5100 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5101 lt_cv_prog_cc_pic='+Z'
5104 irix5* | irix6* | nonstopux*)
5105 lt_cv_prog_cc_wl='-Wl,'
5106 lt_cv_prog_cc_static='-non_shared'
5107 # PIC (with -KPIC) is the default.
5110 cygwin* | mingw* | pw32* | os2*)
5111 # This hack is so that the source file can tell whether it is being
5112 # built for inclusion in a dll (and should export symbols for example).
5113 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5116 newsos6)
5117 lt_cv_prog_cc_pic='-KPIC'
5118 lt_cv_prog_cc_static='-Bstatic'
5121 osf3* | osf4* | osf5*)
5122 # All OSF/1 code is PIC.
5123 lt_cv_prog_cc_wl='-Wl,'
5124 lt_cv_prog_cc_static='-non_shared'
5127 sco3.2v5*)
5128 lt_cv_prog_cc_pic='-Kpic'
5129 lt_cv_prog_cc_static='-dn'
5130 lt_cv_prog_cc_shlib='-belf'
5133 solaris*)
5134 lt_cv_prog_cc_pic='-KPIC'
5135 lt_cv_prog_cc_static='-Bstatic'
5136 lt_cv_prog_cc_wl='-Wl,'
5139 sunos4*)
5140 lt_cv_prog_cc_pic='-PIC'
5141 lt_cv_prog_cc_static='-Bstatic'
5142 lt_cv_prog_cc_wl='-Qoption ld '
5145 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5146 lt_cv_prog_cc_pic='-KPIC'
5147 lt_cv_prog_cc_static='-Bstatic'
5148 lt_cv_prog_cc_wl='-Wl,'
5151 uts4*)
5152 lt_cv_prog_cc_pic='-pic'
5153 lt_cv_prog_cc_static='-Bstatic'
5156 sysv4*MP*)
5157 if test -d /usr/nec ;then
5158 lt_cv_prog_cc_pic='-Kconform_pic'
5159 lt_cv_prog_cc_static='-Bstatic'
5164 lt_cv_prog_cc_can_build_shared=no
5166 esac
5171 if test -z "$lt_cv_prog_cc_pic"; then
5172 echo "$as_me:$LINENO: result: none" >&5
5173 echo "${ECHO_T}none" >&6
5174 else
5175 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5176 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5178 # Check to make sure the pic_flag actually works.
5179 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5180 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5181 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5182 echo $ECHO_N "(cached) $ECHO_C" >&6
5183 else
5184 save_CFLAGS="$CFLAGS"
5185 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5186 cat >conftest.$ac_ext <<_ACEOF
5187 /* confdefs.h. */
5188 _ACEOF
5189 cat confdefs.h >>conftest.$ac_ext
5190 cat >>conftest.$ac_ext <<_ACEOF
5191 /* end confdefs.h. */
5194 main ()
5198 return 0;
5200 _ACEOF
5201 rm -f conftest.$ac_objext
5202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5203 (eval $ac_compile) 2>conftest.er1
5204 ac_status=$?
5205 grep -v '^ *+' conftest.er1 >conftest.err
5206 rm -f conftest.er1
5207 cat conftest.err >&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); } &&
5210 { ac_try='test -z "$ac_c_werror_flag"
5211 || test ! -s conftest.err'
5212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213 (eval $ac_try) 2>&5
5214 ac_status=$?
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); }; } &&
5217 { ac_try='test -s conftest.$ac_objext'
5218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219 (eval $ac_try) 2>&5
5220 ac_status=$?
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); }; }; then
5223 case $host_os in
5224 hpux9* | hpux10* | hpux11*)
5225 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5226 # they create non-PIC objects. So, if there were any warnings, we
5227 # assume that PIC is not supported.
5228 if test -s conftest.err; then
5229 lt_cv_prog_cc_pic_works=no
5230 else
5231 lt_cv_prog_cc_pic_works=yes
5235 lt_cv_prog_cc_pic_works=yes
5237 esac
5239 else
5240 echo "$as_me: failed program was:" >&5
5241 sed 's/^/| /' conftest.$ac_ext >&5
5243 lt_cv_prog_cc_pic_works=no
5246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5247 CFLAGS="$save_CFLAGS"
5252 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5253 lt_cv_prog_cc_pic=
5254 lt_cv_prog_cc_can_build_shared=no
5255 else
5256 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5259 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5260 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5263 # Check for any special shared library compilation flags.
5264 if test -n "$lt_cv_prog_cc_shlib"; then
5265 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5266 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5267 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5268 else
5269 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5270 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5271 lt_cv_prog_cc_can_build_shared=no
5275 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5276 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5277 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5278 echo $ECHO_N "(cached) $ECHO_C" >&6
5279 else
5280 lt_cv_prog_cc_static_works=no
5281 save_LDFLAGS="$LDFLAGS"
5282 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5283 cat >conftest.$ac_ext <<_ACEOF
5284 /* confdefs.h. */
5285 _ACEOF
5286 cat confdefs.h >>conftest.$ac_ext
5287 cat >>conftest.$ac_ext <<_ACEOF
5288 /* end confdefs.h. */
5291 main ()
5295 return 0;
5297 _ACEOF
5298 rm -f conftest.$ac_objext conftest$ac_exeext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5300 (eval $ac_link) 2>conftest.er1
5301 ac_status=$?
5302 grep -v '^ *+' conftest.er1 >conftest.err
5303 rm -f conftest.er1
5304 cat conftest.err >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); } &&
5307 { ac_try='test -z "$ac_c_werror_flag"
5308 || test ! -s conftest.err'
5309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5310 (eval $ac_try) 2>&5
5311 ac_status=$?
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); }; } &&
5314 { ac_try='test -s conftest$ac_exeext'
5315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5316 (eval $ac_try) 2>&5
5317 ac_status=$?
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }; }; then
5320 lt_cv_prog_cc_static_works=yes
5321 else
5322 echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.$ac_ext >&5
5326 rm -f conftest.err conftest.$ac_objext \
5327 conftest$ac_exeext conftest.$ac_ext
5328 LDFLAGS="$save_LDFLAGS"
5333 # Belt *and* braces to stop my trousers falling down:
5334 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5335 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5336 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5338 pic_flag="$lt_cv_prog_cc_pic"
5339 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5340 wl="$lt_cv_prog_cc_wl"
5341 link_static_flag="$lt_cv_prog_cc_static"
5342 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5343 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5346 # Check to see if options -o and -c are simultaneously supported by compiler
5347 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5348 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5349 if test "${lt_cv_compiler_c_o+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5351 else
5353 $rm -r conftest 2>/dev/null
5354 mkdir conftest
5355 cd conftest
5356 echo "int some_variable = 0;" > conftest.$ac_ext
5357 mkdir out
5358 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5359 # that will create temporary files in the current directory regardless of
5360 # the output directory. Thus, making CWD read-only will cause this test
5361 # to fail, enabling locking or at least warning the user not to do parallel
5362 # builds.
5363 chmod -w .
5364 save_CFLAGS="$CFLAGS"
5365 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5366 compiler_c_o=no
5367 if { (eval echo configure:5367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5368 # The compiler can only warn and ignore the option if not recognized
5369 # So say no if there are warnings
5370 if test -s out/conftest.err; then
5371 lt_cv_compiler_c_o=no
5372 else
5373 lt_cv_compiler_c_o=yes
5375 else
5376 # Append any errors to the config.log.
5377 cat out/conftest.err 1>&5
5378 lt_cv_compiler_c_o=no
5380 CFLAGS="$save_CFLAGS"
5381 chmod u+w .
5382 $rm conftest* out/*
5383 rmdir out
5384 cd ..
5385 rmdir conftest
5386 $rm -r conftest 2>/dev/null
5390 compiler_c_o=$lt_cv_compiler_c_o
5391 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5392 echo "${ECHO_T}$compiler_c_o" >&6
5394 if test x"$compiler_c_o" = x"yes"; then
5395 # Check to see if we can write to a .lo
5396 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5397 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5398 if test "${lt_cv_compiler_o_lo+set}" = set; then
5399 echo $ECHO_N "(cached) $ECHO_C" >&6
5400 else
5402 lt_cv_compiler_o_lo=no
5403 save_CFLAGS="$CFLAGS"
5404 CFLAGS="$CFLAGS -c -o conftest.lo"
5405 save_objext="$ac_objext"
5406 ac_objext=lo
5407 cat >conftest.$ac_ext <<_ACEOF
5408 /* confdefs.h. */
5409 _ACEOF
5410 cat confdefs.h >>conftest.$ac_ext
5411 cat >>conftest.$ac_ext <<_ACEOF
5412 /* end confdefs.h. */
5415 main ()
5417 int some_variable = 0;
5419 return 0;
5421 _ACEOF
5422 rm -f conftest.$ac_objext
5423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5424 (eval $ac_compile) 2>conftest.er1
5425 ac_status=$?
5426 grep -v '^ *+' conftest.er1 >conftest.err
5427 rm -f conftest.er1
5428 cat conftest.err >&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); } &&
5431 { ac_try='test -z "$ac_c_werror_flag"
5432 || test ! -s conftest.err'
5433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5434 (eval $ac_try) 2>&5
5435 ac_status=$?
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); }; } &&
5438 { ac_try='test -s conftest.$ac_objext'
5439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5440 (eval $ac_try) 2>&5
5441 ac_status=$?
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; }; then
5444 # The compiler can only warn and ignore the option if not recognized
5445 # So say no if there are warnings
5446 if test -s conftest.err; then
5447 lt_cv_compiler_o_lo=no
5448 else
5449 lt_cv_compiler_o_lo=yes
5452 else
5453 echo "$as_me: failed program was:" >&5
5454 sed 's/^/| /' conftest.$ac_ext >&5
5457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5458 ac_objext="$save_objext"
5459 CFLAGS="$save_CFLAGS"
5463 compiler_o_lo=$lt_cv_compiler_o_lo
5464 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5465 echo "${ECHO_T}$compiler_o_lo" >&6
5466 else
5467 compiler_o_lo=no
5470 # Check to see if we can do hard links to lock some files if needed
5471 hard_links="nottested"
5472 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5473 # do not overwrite the value of need_locks provided by the user
5474 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5475 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5476 hard_links=yes
5477 $rm conftest*
5478 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5479 touch conftest.a
5480 ln conftest.a conftest.b 2>&5 || hard_links=no
5481 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5482 echo "$as_me:$LINENO: result: $hard_links" >&5
5483 echo "${ECHO_T}$hard_links" >&6
5484 if test "$hard_links" = no; then
5485 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5486 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5487 need_locks=warn
5489 else
5490 need_locks=no
5493 if test "$GCC" = yes; then
5494 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5495 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5496 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5497 echo "int some_variable = 0;" > conftest.$ac_ext
5498 save_CFLAGS="$CFLAGS"
5499 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5500 compiler_rtti_exceptions=no
5501 cat >conftest.$ac_ext <<_ACEOF
5502 /* confdefs.h. */
5503 _ACEOF
5504 cat confdefs.h >>conftest.$ac_ext
5505 cat >>conftest.$ac_ext <<_ACEOF
5506 /* end confdefs.h. */
5509 main ()
5511 int some_variable = 0;
5513 return 0;
5515 _ACEOF
5516 rm -f conftest.$ac_objext
5517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5518 (eval $ac_compile) 2>conftest.er1
5519 ac_status=$?
5520 grep -v '^ *+' conftest.er1 >conftest.err
5521 rm -f conftest.er1
5522 cat conftest.err >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } &&
5525 { ac_try='test -z "$ac_c_werror_flag"
5526 || test ! -s conftest.err'
5527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5528 (eval $ac_try) 2>&5
5529 ac_status=$?
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); }; } &&
5532 { ac_try='test -s conftest.$ac_objext'
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534 (eval $ac_try) 2>&5
5535 ac_status=$?
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; }; then
5538 # The compiler can only warn and ignore the option if not recognized
5539 # So say no if there are warnings
5540 if test -s conftest.err; then
5541 compiler_rtti_exceptions=no
5542 else
5543 compiler_rtti_exceptions=yes
5546 else
5547 echo "$as_me: failed program was:" >&5
5548 sed 's/^/| /' conftest.$ac_ext >&5
5551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5552 CFLAGS="$save_CFLAGS"
5553 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5554 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5556 if test "$compiler_rtti_exceptions" = "yes"; then
5557 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5558 else
5559 no_builtin_flag=' -fno-builtin'
5563 # See if the linker supports building shared libraries.
5564 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5565 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5567 allow_undefined_flag=
5568 no_undefined_flag=
5569 need_lib_prefix=unknown
5570 need_version=unknown
5571 # when you set need_version to no, make sure it does not cause -set_version
5572 # flags to be left without arguments
5573 archive_cmds=
5574 archive_expsym_cmds=
5575 old_archive_from_new_cmds=
5576 old_archive_from_expsyms_cmds=
5577 export_dynamic_flag_spec=
5578 whole_archive_flag_spec=
5579 thread_safe_flag_spec=
5580 hardcode_into_libs=no
5581 hardcode_libdir_flag_spec=
5582 hardcode_libdir_separator=
5583 hardcode_direct=no
5584 hardcode_minus_L=no
5585 hardcode_shlibpath_var=unsupported
5586 runpath_var=
5587 link_all_deplibs=unknown
5588 always_export_symbols=no
5589 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5590 # include_expsyms should be a list of space-separated symbols to be *always*
5591 # included in the symbol list
5592 include_expsyms=
5593 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5594 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5595 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5596 # as well as any symbol that contains `d'.
5597 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5598 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5599 # platforms (ab)use it in PIC code, but their linkers get confused if
5600 # the symbol is explicitly referenced. Since portable code cannot
5601 # rely on this symbol name, it's probably fine to never include it in
5602 # preloaded symbol tables.
5603 extract_expsyms_cmds=
5605 case $host_os in
5606 cygwin* | mingw* | pw32*)
5607 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5608 # When not using gcc, we currently assume that we are using
5609 # Microsoft Visual C++.
5610 if test "$GCC" != yes; then
5611 with_gnu_ld=no
5614 openbsd*)
5615 with_gnu_ld=no
5617 esac
5619 ld_shlibs=yes
5620 if test "$with_gnu_ld" = yes; then
5621 # If archive_cmds runs LD, not CC, wlarc should be empty
5622 wlarc='${wl}'
5624 # See if GNU ld supports shared libraries.
5625 case $host_os in
5626 aix3* | aix4* | aix5*)
5627 # On AIX, the GNU linker is very broken
5628 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5629 ld_shlibs=no
5630 cat <<EOF 1>&2
5632 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5633 *** to be unable to reliably create shared libraries on AIX.
5634 *** Therefore, libtool is disabling shared libraries support. If you
5635 *** really care for shared libraries, you may want to modify your PATH
5636 *** so that a non-GNU linker is found, and then restart.
5641 amigaos*)
5642 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5643 hardcode_libdir_flag_spec='-L$libdir'
5644 hardcode_minus_L=yes
5646 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5647 # that the semantics of dynamic libraries on AmigaOS, at least up
5648 # to version 4, is to share data among multiple programs linked
5649 # with the same dynamic library. Since this doesn't match the
5650 # behavior of shared libraries on other platforms, we can use
5651 # them.
5652 ld_shlibs=no
5655 beos*)
5656 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5657 allow_undefined_flag=unsupported
5658 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5659 # support --undefined. This deserves some investigation. FIXME
5660 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5661 else
5662 ld_shlibs=no
5666 cygwin* | mingw* | pw32*)
5667 # hardcode_libdir_flag_spec is actually meaningless, as there is
5668 # no search path for DLLs.
5669 hardcode_libdir_flag_spec='-L$libdir'
5670 allow_undefined_flag=unsupported
5671 always_export_symbols=yes
5673 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5674 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5675 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5676 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5677 else $CC -o impgen impgen.c ; fi)~
5678 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5680 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5682 # cygwin and mingw dlls have different entry points and sets of symbols
5683 # to exclude.
5684 # FIXME: what about values for MSVC?
5685 dll_entry=__cygwin_dll_entry@12
5686 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5687 case $host_os in
5688 mingw*)
5689 # mingw values
5690 dll_entry=_DllMainCRTStartup@12
5691 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5693 esac
5695 # mingw and cygwin differ, and it's simplest to just exclude the union
5696 # of the two symbol sets.
5697 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5699 # recent cygwin and mingw systems supply a stub DllMain which the user
5700 # can override, but on older systems we have to supply one (in ltdll.c)
5701 if test "x$lt_cv_need_dllmain" = "xyes"; then
5702 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5703 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
5704 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5705 else
5706 ltdll_obj=
5707 ltdll_cmds=
5710 # Extract the symbol export list from an `--export-all' def file,
5711 # then regenerate the def file from the symbol export list, so that
5712 # the compiled dll only exports the symbol export list.
5713 # Be careful not to strip the DATA tag left be newer dlltools.
5714 export_symbols_cmds="$ltdll_cmds"'
5715 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5716 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5718 # If the export-symbols file already is a .def file (1st line
5719 # is EXPORTS), use it as is.
5720 # If DATA tags from a recent dlltool are present, honour them!
5721 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5722 cp $export_symbols $output_objdir/$soname-def;
5723 else
5724 echo EXPORTS > $output_objdir/$soname-def;
5725 _lt_hint=1;
5726 cat $export_symbols | while read symbol; do
5727 set dummy \$symbol;
5728 case \$# in
5729 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5730 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5731 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5732 esac;
5733 _lt_hint=`expr 1 + \$_lt_hint`;
5734 done;
5736 '"$ltdll_cmds"'
5737 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5738 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5739 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5740 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
5741 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5744 netbsd*)
5745 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5746 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5747 wlarc=
5748 else
5749 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5750 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5754 solaris* | sysv5*)
5755 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5756 ld_shlibs=no
5757 cat <<EOF 1>&2
5759 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5760 *** create shared libraries on Solaris systems. Therefore, libtool
5761 *** is disabling shared libraries support. We urge you to upgrade GNU
5762 *** binutils to release 2.9.1 or newer. Another option is to modify
5763 *** your PATH or compiler configuration so that the native linker is
5764 *** used, and then restart.
5767 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5768 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5769 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5770 else
5771 ld_shlibs=no
5775 sunos4*)
5776 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5777 wlarc=
5778 hardcode_direct=yes
5779 hardcode_shlibpath_var=no
5783 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5784 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5785 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5786 else
5787 ld_shlibs=no
5790 esac
5792 if test "$ld_shlibs" = yes; then
5793 runpath_var=LD_RUN_PATH
5794 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5795 export_dynamic_flag_spec='${wl}--export-dynamic'
5796 case $host_os in
5797 cygwin* | mingw* | pw32*)
5798 # dlltool doesn't understand --whole-archive et. al.
5799 whole_archive_flag_spec=
5802 # ancient GNU ld didn't support --whole-archive et. al.
5803 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5804 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5805 else
5806 whole_archive_flag_spec=
5809 esac
5811 else
5812 # PORTME fill in a description of your system's linker (not GNU ld)
5813 case $host_os in
5814 aix3*)
5815 allow_undefined_flag=unsupported
5816 always_export_symbols=yes
5817 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
5818 # Note: this linker hardcodes the directories in LIBPATH if there
5819 # are no directories specified by -L.
5820 hardcode_minus_L=yes
5821 if test "$GCC" = yes && test -z "$link_static_flag"; then
5822 # Neither direct hardcoding nor static linking is supported with a
5823 # broken collect2.
5824 hardcode_direct=unsupported
5828 aix4* | aix5*)
5829 if test "$host_cpu" = ia64; then
5830 # On IA64, the linker does run time linking by default, so we don't
5831 # have to do anything special.
5832 aix_use_runtimelinking=no
5833 exp_sym_flag='-Bexport'
5834 no_entry_flag=""
5835 else
5836 aix_use_runtimelinking=no
5838 # Test if we are trying to use run time linking or normal
5839 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5840 # need to do runtime linking.
5841 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5842 for ld_flag in $LDFLAGS; do
5843 case $ld_flag in
5844 *-brtl*)
5845 aix_use_runtimelinking=yes
5846 break
5848 esac
5849 done
5850 esac
5852 exp_sym_flag='-bexport'
5853 no_entry_flag='-bnoentry'
5856 # When large executables or shared objects are built, AIX ld can
5857 # have problems creating the table of contents. If linking a library
5858 # or program results in "error TOC overflow" add -mminimal-toc to
5859 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5860 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5862 hardcode_direct=yes
5863 archive_cmds=''
5864 hardcode_libdir_separator=':'
5865 if test "$GCC" = yes; then
5866 case $host_os in aix4.[012]|aix4.[012].*)
5867 collect2name=`${CC} -print-prog-name=collect2`
5868 if test -f "$collect2name" && \
5869 strings "$collect2name" | grep resolve_lib_name >/dev/null
5870 then
5871 # We have reworked collect2
5872 hardcode_direct=yes
5873 else
5874 # We have old collect2
5875 hardcode_direct=unsupported
5876 # It fails to find uninstalled libraries when the uninstalled
5877 # path is not listed in the libpath. Setting hardcode_minus_L
5878 # to unsupported forces relinking
5879 hardcode_minus_L=yes
5880 hardcode_libdir_flag_spec='-L$libdir'
5881 hardcode_libdir_separator=
5883 esac
5885 shared_flag='-shared'
5886 else
5887 # not using gcc
5888 if test "$host_cpu" = ia64; then
5889 shared_flag='${wl}-G'
5890 else
5891 if test "$aix_use_runtimelinking" = yes; then
5892 shared_flag='${wl}-G'
5893 else
5894 shared_flag='${wl}-bM:SRE'
5899 # It seems that -bexpall can do strange things, so it is better to
5900 # generate a list of symbols to export.
5901 always_export_symbols=yes
5902 if test "$aix_use_runtimelinking" = yes; then
5903 # Warning - without using the other runtime loading flags (-brtl),
5904 # -berok will link without error, but may produce a broken library.
5905 allow_undefined_flag='-berok'
5906 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5907 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5908 else
5909 if test "$host_cpu" = ia64; then
5910 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5911 allow_undefined_flag="-z nodefs"
5912 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5913 else
5914 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5915 # Warning - without using the other run time loading flags,
5916 # -berok will link without error, but may produce a broken library.
5917 allow_undefined_flag='${wl}-berok'
5918 # This is a bit strange, but is similar to how AIX traditionally builds
5919 # it's shared libraries.
5920 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5925 amigaos*)
5926 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5927 hardcode_libdir_flag_spec='-L$libdir'
5928 hardcode_minus_L=yes
5929 # see comment about different semantics on the GNU ld section
5930 ld_shlibs=no
5933 cygwin* | mingw* | pw32*)
5934 # When not using gcc, we currently assume that we are using
5935 # Microsoft Visual C++.
5936 # hardcode_libdir_flag_spec is actually meaningless, as there is
5937 # no search path for DLLs.
5938 hardcode_libdir_flag_spec=' '
5939 allow_undefined_flag=unsupported
5940 # Tell ltmain to make .lib files, not .a files.
5941 libext=lib
5942 # FIXME: Setting linknames here is a bad hack.
5943 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5944 # The linker will automatically build a .lib file if we build a DLL.
5945 old_archive_from_new_cmds='true'
5946 # FIXME: Should let the user specify the lib program.
5947 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5948 fix_srcfile_path='`cygpath -w "$srcfile"`'
5951 darwin* | rhapsody*)
5952 case "$host_os" in
5953 rhapsody* | darwin1.[012])
5954 allow_undefined_flag='-undefined suppress'
5956 *) # Darwin 1.3 on
5957 allow_undefined_flag='-flat_namespace -undefined suppress'
5959 esac
5960 # FIXME: Relying on posixy $() will cause problems for
5961 # cross-compilation, but unfortunately the echo tests do not
5962 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5963 # `"' quotes if we put them in here... so don't!
5964 archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
5965 # We need to add '_' to the symbols in $export_symbols first
5966 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5967 hardcode_direct=yes
5968 hardcode_shlibpath_var=no
5969 whole_archive_flag_spec='-all_load $convenience'
5972 freebsd1*)
5973 ld_shlibs=no
5976 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5977 # support. Future versions do this automatically, but an explicit c++rt0.o
5978 # does not break anything, and helps significantly (at the cost of a little
5979 # extra space).
5980 freebsd2.2*)
5981 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5982 hardcode_libdir_flag_spec='-R$libdir'
5983 hardcode_direct=yes
5984 hardcode_shlibpath_var=no
5987 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5988 freebsd2*)
5989 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5990 hardcode_direct=yes
5991 hardcode_minus_L=yes
5992 hardcode_shlibpath_var=no
5995 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5996 freebsd*)
5997 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5998 hardcode_libdir_flag_spec='-R$libdir'
5999 hardcode_direct=yes
6000 hardcode_shlibpath_var=no
6003 hpux9* | hpux10* | hpux11*)
6004 case $host_os in
6005 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
6006 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6007 esac
6008 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6009 hardcode_libdir_separator=:
6010 hardcode_direct=yes
6011 hardcode_minus_L=yes # Not in the search PATH, but as the default
6012 # location of the library.
6013 export_dynamic_flag_spec='${wl}-E'
6016 irix5* | irix6* | nonstopux*)
6017 if test "$GCC" = yes; then
6018 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6019 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6020 else
6021 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6022 hardcode_libdir_flag_spec='-rpath $libdir'
6024 hardcode_libdir_separator=:
6025 link_all_deplibs=yes
6028 netbsd*)
6029 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6030 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6031 else
6032 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6034 hardcode_libdir_flag_spec='-R$libdir'
6035 hardcode_direct=yes
6036 hardcode_shlibpath_var=no
6039 newsos6)
6040 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6041 hardcode_direct=yes
6042 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6043 hardcode_libdir_separator=:
6044 hardcode_shlibpath_var=no
6047 openbsd*)
6048 hardcode_direct=yes
6049 hardcode_shlibpath_var=no
6050 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6051 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6052 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6053 export_dynamic_flag_spec='${wl}-E'
6054 else
6055 case "$host_os" in
6056 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6057 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6058 hardcode_libdir_flag_spec='-R$libdir'
6061 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6062 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6064 esac
6068 os2*)
6069 hardcode_libdir_flag_spec='-L$libdir'
6070 hardcode_minus_L=yes
6071 allow_undefined_flag=unsupported
6072 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6073 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6076 osf3*)
6077 if test "$GCC" = yes; then
6078 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6079 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6080 else
6081 allow_undefined_flag=' -expect_unresolved \*'
6082 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6084 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6085 hardcode_libdir_separator=:
6088 osf4* | osf5*) # as osf3* with the addition of -msym flag
6089 if test "$GCC" = yes; then
6090 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6091 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6092 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6093 else
6094 allow_undefined_flag=' -expect_unresolved \*'
6095 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6096 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6097 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6099 #Both c and cxx compiler support -rpath directly
6100 hardcode_libdir_flag_spec='-rpath $libdir'
6102 hardcode_libdir_separator=:
6105 sco3.2v5*)
6106 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6107 hardcode_shlibpath_var=no
6108 runpath_var=LD_RUN_PATH
6109 hardcode_runpath_var=yes
6110 export_dynamic_flag_spec='${wl}-Bexport'
6113 solaris*)
6114 # gcc --version < 3.0 without binutils cannot create self contained
6115 # shared libraries reliably, requiring libgcc.a to resolve some of
6116 # the object symbols generated in some cases. Libraries that use
6117 # assert need libgcc.a to resolve __eprintf, for example. Linking
6118 # a copy of libgcc.a into every shared library to guarantee resolving
6119 # such symbols causes other problems: According to Tim Van Holder
6120 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6121 # (to the application) exception stack for one thing.
6122 no_undefined_flag=' -z defs'
6123 if test "$GCC" = yes; then
6124 case `$CC --version 2>/dev/null` in
6125 [12].*)
6126 cat <<EOF 1>&2
6128 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6129 *** create self contained shared libraries on Solaris systems, without
6130 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6131 *** -no-undefined support, which will at least allow you to build shared
6132 *** libraries. However, you may find that when you link such libraries
6133 *** into an application without using GCC, you have to manually add
6134 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6135 *** upgrade to a newer version of GCC. Another option is to rebuild your
6136 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6139 no_undefined_flag=
6141 esac
6143 # $CC -shared without GNU ld will not create a library from C++
6144 # object files and a static libstdc++, better avoid it by now
6145 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6146 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6147 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6148 hardcode_libdir_flag_spec='-R$libdir'
6149 hardcode_shlibpath_var=no
6150 case $host_os in
6151 solaris2.[0-5] | solaris2.[0-5].*) ;;
6152 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6153 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6154 esac
6155 link_all_deplibs=yes
6158 sunos4*)
6159 if test "x$host_vendor" = xsequent; then
6160 # Use $CC to link under sequent, because it throws in some extra .o
6161 # files that make .init and .fini sections work.
6162 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6163 else
6164 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6166 hardcode_libdir_flag_spec='-L$libdir'
6167 hardcode_direct=yes
6168 hardcode_minus_L=yes
6169 hardcode_shlibpath_var=no
6172 sysv4)
6173 case $host_vendor in
6174 sni)
6175 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6176 hardcode_direct=yes # is this really true???
6178 siemens)
6179 ## LD is ld it makes a PLAMLIB
6180 ## CC just makes a GrossModule.
6181 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6182 reload_cmds='$CC -r -o $output$reload_objs'
6183 hardcode_direct=no
6185 motorola)
6186 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6187 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6189 esac
6190 runpath_var='LD_RUN_PATH'
6191 hardcode_shlibpath_var=no
6194 sysv4.3*)
6195 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6196 hardcode_shlibpath_var=no
6197 export_dynamic_flag_spec='-Bexport'
6200 sysv5*)
6201 no_undefined_flag=' -z text'
6202 # $CC -shared without GNU ld will not create a library from C++
6203 # object files and a static libstdc++, better avoid it by now
6204 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6205 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6206 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6207 hardcode_libdir_flag_spec=
6208 hardcode_shlibpath_var=no
6209 runpath_var='LD_RUN_PATH'
6212 uts4*)
6213 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6214 hardcode_libdir_flag_spec='-L$libdir'
6215 hardcode_shlibpath_var=no
6218 dgux*)
6219 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6220 hardcode_libdir_flag_spec='-L$libdir'
6221 hardcode_shlibpath_var=no
6224 sysv4*MP*)
6225 if test -d /usr/nec; then
6226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6227 hardcode_shlibpath_var=no
6228 runpath_var=LD_RUN_PATH
6229 hardcode_runpath_var=yes
6230 ld_shlibs=yes
6234 sysv4.2uw2*)
6235 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6236 hardcode_direct=yes
6237 hardcode_minus_L=no
6238 hardcode_shlibpath_var=no
6239 hardcode_runpath_var=yes
6240 runpath_var=LD_RUN_PATH
6243 sysv5uw7* | unixware7*)
6244 no_undefined_flag='${wl}-z ${wl}text'
6245 if test "$GCC" = yes; then
6246 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6247 else
6248 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6250 runpath_var='LD_RUN_PATH'
6251 hardcode_shlibpath_var=no
6255 ld_shlibs=no
6257 esac
6259 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6260 echo "${ECHO_T}$ld_shlibs" >&6
6261 test "$ld_shlibs" = no && can_build_shared=no
6263 # Check hardcoding attributes.
6264 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6265 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6266 hardcode_action=
6267 if test -n "$hardcode_libdir_flag_spec" || \
6268 test -n "$runpath_var"; then
6270 # We can hardcode non-existant directories.
6271 if test "$hardcode_direct" != no &&
6272 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6273 # have to relink, otherwise we might link with an installed library
6274 # when we should be linking with a yet-to-be-installed one
6275 ## test "$hardcode_shlibpath_var" != no &&
6276 test "$hardcode_minus_L" != no; then
6277 # Linking always hardcodes the temporary library directory.
6278 hardcode_action=relink
6279 else
6280 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6281 hardcode_action=immediate
6283 else
6284 # We cannot hardcode anything, or else we can only hardcode existing
6285 # directories.
6286 hardcode_action=unsupported
6288 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6289 echo "${ECHO_T}$hardcode_action" >&6
6291 striplib=
6292 old_striplib=
6293 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6294 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6295 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6296 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6297 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6298 echo "$as_me:$LINENO: result: yes" >&5
6299 echo "${ECHO_T}yes" >&6
6300 else
6301 echo "$as_me:$LINENO: result: no" >&5
6302 echo "${ECHO_T}no" >&6
6305 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6306 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6308 # PORTME Fill in your ld.so characteristics
6309 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6310 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6311 library_names_spec=
6312 libname_spec='lib$name'
6313 soname_spec=
6314 postinstall_cmds=
6315 postuninstall_cmds=
6316 finish_cmds=
6317 finish_eval=
6318 shlibpath_var=
6319 shlibpath_overrides_runpath=unknown
6320 version_type=none
6321 dynamic_linker="$host_os ld.so"
6322 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib"
6323 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib"
6325 case $host_os in
6326 aix3*)
6327 version_type=linux
6328 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6329 shlibpath_var=LIBPATH
6331 # AIX has no versioning support, so we append a major version to the name.
6332 soname_spec='${libname}${release}.so$major'
6335 aix4* | aix5*)
6336 version_type=linux
6337 need_lib_prefix=no
6338 need_version=no
6339 hardcode_into_libs=yes
6340 if test "$host_cpu" = ia64; then
6341 # AIX 5 supports IA64
6342 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6343 shlibpath_var=LD_LIBRARY_PATH
6344 else
6345 # With GCC up to 2.95.x, collect2 would create an import file
6346 # for dependence libraries. The import file would start with
6347 # the line `#! .'. This would cause the generated library to
6348 # depend on `.', always an invalid library. This was fixed in
6349 # development snapshots of GCC prior to 3.0.
6350 case $host_os in
6351 aix4 | aix4.[01] | aix4.[01].*)
6352 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6353 echo ' yes '
6354 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6356 else
6357 can_build_shared=no
6360 esac
6361 # AIX (on Power*) has no versioning support, so currently we can
6362 # not hardcode correct soname into executable. Probably we can
6363 # add versioning support to collect2, so additional links can
6364 # be useful in future.
6365 if test "$aix_use_runtimelinking" = yes; then
6366 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6367 # instead of lib<name>.a to let people know that these are not
6368 # typical AIX shared libraries.
6369 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6370 else
6371 # We preserve .a as extension for shared libraries through AIX4.2
6372 # and later when we are not doing run time linking.
6373 library_names_spec='${libname}${release}.a $libname.a'
6374 soname_spec='${libname}${release}.so$major'
6376 shlibpath_var=LIBPATH
6378 hardcode_into_libs=yes
6381 amigaos*)
6382 library_names_spec='$libname.ixlibrary $libname.a'
6383 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6384 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
6387 beos*)
6388 library_names_spec='${libname}.so'
6389 dynamic_linker="$host_os ld.so"
6390 shlibpath_var=LIBRARY_PATH
6393 bsdi4*)
6394 version_type=linux
6395 need_version=no
6396 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6397 soname_spec='${libname}${release}.so$major'
6398 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6399 shlibpath_var=LD_LIBRARY_PATH
6400 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6401 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6402 export_dynamic_flag_spec=-rdynamic
6403 # the default ld.so.conf also contains /usr/contrib/lib and
6404 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6405 # libtool to hard-code these into programs
6408 cygwin* | mingw* | pw32*)
6409 version_type=windows
6410 need_version=no
6411 need_lib_prefix=no
6412 case $GCC,$host_os in
6413 yes,cygwin*)
6414 library_names_spec='$libname.dll.a'
6415 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6416 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6417 dldir=$destdir/`dirname \$dlpath`~
6418 test -d \$dldir || mkdir -p \$dldir~
6419 $install_prog .libs/$dlname \$dldir/$dlname'
6420 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6421 dlpath=$dir/\$dldll~
6422 $rm \$dlpath'
6424 yes,mingw*)
6425 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6426 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6428 yes,pw32*)
6429 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6432 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6434 esac
6435 dynamic_linker='Win32 ld.exe'
6436 # FIXME: first we should search . and the directory the executable is in
6437 shlibpath_var=PATH
6440 darwin* | rhapsody*)
6441 dynamic_linker="$host_os dyld"
6442 version_type=darwin
6443 need_lib_prefix=no
6444 need_version=no
6445 # FIXME: Relying on posixy $() will cause problems for
6446 # cross-compilation, but unfortunately the echo tests do not
6447 # yet detect zsh echo's removal of \ escapes.
6448 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
6449 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6450 shlibpath_overrides_runpath=yes
6451 shlibpath_var=DYLD_LIBRARY_PATH
6454 freebsd1*)
6455 dynamic_linker=no
6458 freebsd*)
6459 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6460 version_type=freebsd-$objformat
6461 case $version_type in
6462 freebsd-elf*)
6463 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6464 need_version=no
6465 need_lib_prefix=no
6467 freebsd-*)
6468 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6469 need_version=yes
6471 esac
6472 shlibpath_var=LD_LIBRARY_PATH
6473 case $host_os in
6474 freebsd2*)
6475 shlibpath_overrides_runpath=yes
6478 shlibpath_overrides_runpath=no
6479 hardcode_into_libs=yes
6481 esac
6484 gnu*)
6485 version_type=linux
6486 need_lib_prefix=no
6487 need_version=no
6488 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6489 soname_spec='${libname}${release}.so$major'
6490 shlibpath_var=LD_LIBRARY_PATH
6491 hardcode_into_libs=yes
6494 hpux9* | hpux10* | hpux11*)
6495 # Give a soname corresponding to the major version so that dld.sl refuses to
6496 # link against other versions.
6497 dynamic_linker="$host_os dld.sl"
6498 version_type=sunos
6499 need_lib_prefix=no
6500 need_version=no
6501 shlibpath_var=SHLIB_PATH
6502 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6503 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6504 soname_spec='${libname}${release}.sl$major'
6505 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6506 postinstall_cmds='chmod 555 $lib'
6509 irix5* | irix6* | nonstopux*)
6510 case $host_os in
6511 nonstopux*) version_type=nonstopux ;;
6512 *) version_type=irix ;;
6513 esac
6514 need_lib_prefix=no
6515 need_version=no
6516 soname_spec='${libname}${release}.so$major'
6517 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6518 case $host_os in
6519 irix5* | nonstopux*)
6520 libsuff= shlibsuff=
6523 case $LD in # libtool.m4 will add one of these switches to LD
6524 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6525 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6526 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6527 *) libsuff= shlibsuff= libmagic=never-match;;
6528 esac
6530 esac
6531 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6532 shlibpath_overrides_runpath=no
6533 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6534 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6537 # No shared lib support for Linux oldld, aout, or coff.
6538 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6539 dynamic_linker=no
6542 # This must be Linux ELF.
6543 linux-gnu*)
6544 version_type=linux
6545 need_lib_prefix=no
6546 need_version=no
6547 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6548 soname_spec='${libname}${release}.so$major'
6549 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6550 shlibpath_var=LD_LIBRARY_PATH
6551 shlibpath_overrides_runpath=no
6552 # This implies no fast_install, which is unacceptable.
6553 # Some rework will be needed to allow for fast_install
6554 # before this can be enabled.
6555 hardcode_into_libs=yes
6557 case $host_cpu:$lt_cv_cc_64bit_output in
6558 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
6559 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
6560 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
6562 esac
6564 # We used to test for /lib/ld.so.1 and disable shared libraries on
6565 # powerpc, because MkLinux only supported shared libraries with the
6566 # GNU dynamic linker. Since this was broken with cross compilers,
6567 # most powerpc-linux boxes support dynamic linking these days and
6568 # people can always --disable-shared, the test was removed, and we
6569 # assume the GNU/Linux dynamic linker is in use.
6570 dynamic_linker='GNU/Linux ld.so'
6572 # Find out which ABI we are using (multilib Linux x86_64 hack).
6573 libsuff=
6574 case "$host_cpu" in
6575 x86_64*)
6576 echo '#line 6576 "configure"' > conftest.$ac_ext
6577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6578 (eval $ac_compile) 2>&5
6579 ac_status=$?
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); }; then
6582 case `/usr/bin/file conftest.$ac_objext` in
6583 *64-bit*)
6584 libsuff=64
6586 esac
6588 rm -rf conftest*
6592 esac
6593 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
6594 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
6597 netbsd*)
6598 version_type=sunos
6599 need_lib_prefix=no
6600 need_version=no
6601 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6602 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6603 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6604 dynamic_linker='NetBSD (a.out) ld.so'
6605 else
6606 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6607 soname_spec='${libname}${release}.so$major'
6608 dynamic_linker='NetBSD ld.elf_so'
6610 shlibpath_var=LD_LIBRARY_PATH
6611 shlibpath_overrides_runpath=yes
6612 hardcode_into_libs=yes
6615 newsos6)
6616 version_type=linux
6617 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6618 shlibpath_var=LD_LIBRARY_PATH
6619 shlibpath_overrides_runpath=yes
6622 openbsd*)
6623 version_type=sunos
6624 need_lib_prefix=no
6625 need_version=no
6626 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6627 case "$host_os" in
6628 openbsd2.[89] | openbsd2.[89].*)
6629 shlibpath_overrides_runpath=no
6632 shlibpath_overrides_runpath=yes
6634 esac
6635 else
6636 shlibpath_overrides_runpath=yes
6638 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6639 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6640 shlibpath_var=LD_LIBRARY_PATH
6643 os2*)
6644 libname_spec='$name'
6645 need_lib_prefix=no
6646 library_names_spec='$libname.dll $libname.a'
6647 dynamic_linker='OS/2 ld.exe'
6648 shlibpath_var=LIBPATH
6651 osf3* | osf4* | osf5*)
6652 version_type=osf
6653 need_version=no
6654 soname_spec='${libname}${release}.so$major'
6655 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6656 shlibpath_var=LD_LIBRARY_PATH
6657 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6658 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6659 hardcode_into_libs=yes
6662 sco3.2v5*)
6663 version_type=osf
6664 soname_spec='${libname}${release}.so$major'
6665 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6666 shlibpath_var=LD_LIBRARY_PATH
6669 solaris*)
6670 version_type=linux
6671 need_lib_prefix=no
6672 need_version=no
6673 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6674 soname_spec='${libname}${release}.so$major'
6675 shlibpath_var=LD_LIBRARY_PATH
6676 shlibpath_overrides_runpath=yes
6677 hardcode_into_libs=yes
6678 # ldd complains unless libraries are executable
6679 postinstall_cmds='chmod +x $lib'
6682 sunos4*)
6683 version_type=sunos
6684 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6685 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6686 shlibpath_var=LD_LIBRARY_PATH
6687 shlibpath_overrides_runpath=yes
6688 if test "$with_gnu_ld" = yes; then
6689 need_lib_prefix=no
6691 need_version=yes
6694 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6695 version_type=linux
6696 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6697 soname_spec='${libname}${release}.so$major'
6698 shlibpath_var=LD_LIBRARY_PATH
6699 case $host_vendor in
6700 sni)
6701 shlibpath_overrides_runpath=no
6702 need_lib_prefix=no
6703 export_dynamic_flag_spec='${wl}-Blargedynsym'
6704 runpath_var=LD_RUN_PATH
6706 siemens)
6707 need_lib_prefix=no
6709 motorola)
6710 need_lib_prefix=no
6711 need_version=no
6712 shlibpath_overrides_runpath=no
6713 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6715 esac
6718 uts4*)
6719 version_type=linux
6720 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6721 soname_spec='${libname}${release}.so$major'
6722 shlibpath_var=LD_LIBRARY_PATH
6725 dgux*)
6726 version_type=linux
6727 need_lib_prefix=no
6728 need_version=no
6729 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6730 soname_spec='${libname}${release}.so$major'
6731 shlibpath_var=LD_LIBRARY_PATH
6734 sysv4*MP*)
6735 if test -d /usr/nec ;then
6736 version_type=linux
6737 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6738 soname_spec='$libname.so.$major'
6739 shlibpath_var=LD_LIBRARY_PATH
6744 dynamic_linker=no
6746 esac
6747 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6748 echo "${ECHO_T}$dynamic_linker" >&6
6749 test "$dynamic_linker" = no && can_build_shared=no
6751 # Report the final consequences.
6752 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6753 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6754 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6755 echo "${ECHO_T}$can_build_shared" >&6
6757 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6758 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6759 test "$can_build_shared" = "no" && enable_shared=no
6761 # On AIX, shared libraries and static libraries use the same namespace, and
6762 # are all built from PIC.
6763 case "$host_os" in
6764 aix3*)
6765 test "$enable_shared" = yes && enable_static=no
6766 if test -n "$RANLIB"; then
6767 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6768 postinstall_cmds='$RANLIB $lib'
6772 aix4*)
6773 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6774 test "$enable_shared" = yes && enable_static=no
6777 esac
6778 echo "$as_me:$LINENO: result: $enable_shared" >&5
6779 echo "${ECHO_T}$enable_shared" >&6
6781 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6782 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6783 # Make sure either enable_shared or enable_static is yes.
6784 test "$enable_shared" = yes || enable_static=yes
6785 echo "$as_me:$LINENO: result: $enable_static" >&5
6786 echo "${ECHO_T}$enable_static" >&6
6788 if test "$hardcode_action" = relink; then
6789 # Fast installation is not supported
6790 enable_fast_install=no
6791 elif test "$shlibpath_overrides_runpath" = yes ||
6792 test "$enable_shared" = no; then
6793 # Fast installation is not necessary
6794 enable_fast_install=needless
6797 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6798 if test "$GCC" = yes; then
6799 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6802 if test "x$enable_dlopen" != xyes; then
6803 enable_dlopen=unknown
6804 enable_dlopen_self=unknown
6805 enable_dlopen_self_static=unknown
6806 else
6807 lt_cv_dlopen=no
6808 lt_cv_dlopen_libs=
6810 case $host_os in
6811 beos*)
6812 lt_cv_dlopen="load_add_on"
6813 lt_cv_dlopen_libs=
6814 lt_cv_dlopen_self=yes
6817 cygwin* | mingw* | pw32*)
6818 lt_cv_dlopen="LoadLibrary"
6819 lt_cv_dlopen_libs=
6823 echo "$as_me:$LINENO: checking for shl_load" >&5
6824 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6825 if test "${ac_cv_func_shl_load+set}" = set; then
6826 echo $ECHO_N "(cached) $ECHO_C" >&6
6827 else
6828 cat >conftest.$ac_ext <<_ACEOF
6829 /* confdefs.h. */
6830 _ACEOF
6831 cat confdefs.h >>conftest.$ac_ext
6832 cat >>conftest.$ac_ext <<_ACEOF
6833 /* end confdefs.h. */
6834 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
6835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6836 #define shl_load innocuous_shl_load
6838 /* System header to define __stub macros and hopefully few prototypes,
6839 which can conflict with char shl_load (); below.
6840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6841 <limits.h> exists even on freestanding compilers. */
6843 #ifdef __STDC__
6844 # include <limits.h>
6845 #else
6846 # include <assert.h>
6847 #endif
6849 #undef shl_load
6851 /* Override any gcc2 internal prototype to avoid an error. */
6852 #ifdef __cplusplus
6853 extern "C"
6855 #endif
6856 /* We use char because int might match the return type of a gcc2
6857 builtin and then its argument prototype would still apply. */
6858 char shl_load ();
6859 /* The GNU C library defines this for functions which it implements
6860 to always fail with ENOSYS. Some functions are actually named
6861 something starting with __ and the normal name is an alias. */
6862 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6863 choke me
6864 #else
6865 char (*f) () = shl_load;
6866 #endif
6867 #ifdef __cplusplus
6869 #endif
6872 main ()
6874 return f != shl_load;
6876 return 0;
6878 _ACEOF
6879 rm -f conftest.$ac_objext conftest$ac_exeext
6880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6881 (eval $ac_link) 2>conftest.er1
6882 ac_status=$?
6883 grep -v '^ *+' conftest.er1 >conftest.err
6884 rm -f conftest.er1
6885 cat conftest.err >&5
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); } &&
6888 { ac_try='test -z "$ac_c_werror_flag"
6889 || test ! -s conftest.err'
6890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891 (eval $ac_try) 2>&5
6892 ac_status=$?
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); }; } &&
6895 { ac_try='test -s conftest$ac_exeext'
6896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6897 (eval $ac_try) 2>&5
6898 ac_status=$?
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); }; }; then
6901 ac_cv_func_shl_load=yes
6902 else
6903 echo "$as_me: failed program was:" >&5
6904 sed 's/^/| /' conftest.$ac_ext >&5
6906 ac_cv_func_shl_load=no
6908 rm -f conftest.err conftest.$ac_objext \
6909 conftest$ac_exeext conftest.$ac_ext
6911 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6912 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6913 if test $ac_cv_func_shl_load = yes; then
6914 lt_cv_dlopen="shl_load"
6915 else
6916 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6917 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6918 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6919 echo $ECHO_N "(cached) $ECHO_C" >&6
6920 else
6921 ac_check_lib_save_LIBS=$LIBS
6922 LIBS="-ldld $LIBS"
6923 cat >conftest.$ac_ext <<_ACEOF
6924 /* confdefs.h. */
6925 _ACEOF
6926 cat confdefs.h >>conftest.$ac_ext
6927 cat >>conftest.$ac_ext <<_ACEOF
6928 /* end confdefs.h. */
6930 /* Override any gcc2 internal prototype to avoid an error. */
6931 #ifdef __cplusplus
6932 extern "C"
6933 #endif
6934 /* We use char because int might match the return type of a gcc2
6935 builtin and then its argument prototype would still apply. */
6936 char shl_load ();
6938 main ()
6940 shl_load ();
6942 return 0;
6944 _ACEOF
6945 rm -f conftest.$ac_objext conftest$ac_exeext
6946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6947 (eval $ac_link) 2>conftest.er1
6948 ac_status=$?
6949 grep -v '^ *+' conftest.er1 >conftest.err
6950 rm -f conftest.er1
6951 cat conftest.err >&5
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); } &&
6954 { ac_try='test -z "$ac_c_werror_flag"
6955 || test ! -s conftest.err'
6956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957 (eval $ac_try) 2>&5
6958 ac_status=$?
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); }; } &&
6961 { ac_try='test -s conftest$ac_exeext'
6962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6963 (eval $ac_try) 2>&5
6964 ac_status=$?
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); }; }; then
6967 ac_cv_lib_dld_shl_load=yes
6968 else
6969 echo "$as_me: failed program was:" >&5
6970 sed 's/^/| /' conftest.$ac_ext >&5
6972 ac_cv_lib_dld_shl_load=no
6974 rm -f conftest.err conftest.$ac_objext \
6975 conftest$ac_exeext conftest.$ac_ext
6976 LIBS=$ac_check_lib_save_LIBS
6978 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6979 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6980 if test $ac_cv_lib_dld_shl_load = yes; then
6981 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6982 else
6983 echo "$as_me:$LINENO: checking for dlopen" >&5
6984 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6985 if test "${ac_cv_func_dlopen+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6987 else
6988 cat >conftest.$ac_ext <<_ACEOF
6989 /* confdefs.h. */
6990 _ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>conftest.$ac_ext <<_ACEOF
6993 /* end confdefs.h. */
6994 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
6995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6996 #define dlopen innocuous_dlopen
6998 /* System header to define __stub macros and hopefully few prototypes,
6999 which can conflict with char dlopen (); below.
7000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7001 <limits.h> exists even on freestanding compilers. */
7003 #ifdef __STDC__
7004 # include <limits.h>
7005 #else
7006 # include <assert.h>
7007 #endif
7009 #undef dlopen
7011 /* Override any gcc2 internal prototype to avoid an error. */
7012 #ifdef __cplusplus
7013 extern "C"
7015 #endif
7016 /* We use char because int might match the return type of a gcc2
7017 builtin and then its argument prototype would still apply. */
7018 char dlopen ();
7019 /* The GNU C library defines this for functions which it implements
7020 to always fail with ENOSYS. Some functions are actually named
7021 something starting with __ and the normal name is an alias. */
7022 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7023 choke me
7024 #else
7025 char (*f) () = dlopen;
7026 #endif
7027 #ifdef __cplusplus
7029 #endif
7032 main ()
7034 return f != dlopen;
7036 return 0;
7038 _ACEOF
7039 rm -f conftest.$ac_objext conftest$ac_exeext
7040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7041 (eval $ac_link) 2>conftest.er1
7042 ac_status=$?
7043 grep -v '^ *+' conftest.er1 >conftest.err
7044 rm -f conftest.er1
7045 cat conftest.err >&5
7046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047 (exit $ac_status); } &&
7048 { ac_try='test -z "$ac_c_werror_flag"
7049 || test ! -s conftest.err'
7050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7051 (eval $ac_try) 2>&5
7052 ac_status=$?
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); }; } &&
7055 { ac_try='test -s conftest$ac_exeext'
7056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7057 (eval $ac_try) 2>&5
7058 ac_status=$?
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); }; }; then
7061 ac_cv_func_dlopen=yes
7062 else
7063 echo "$as_me: failed program was:" >&5
7064 sed 's/^/| /' conftest.$ac_ext >&5
7066 ac_cv_func_dlopen=no
7068 rm -f conftest.err conftest.$ac_objext \
7069 conftest$ac_exeext conftest.$ac_ext
7071 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7072 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7073 if test $ac_cv_func_dlopen = yes; then
7074 lt_cv_dlopen="dlopen"
7075 else
7076 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7077 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7078 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7080 else
7081 ac_check_lib_save_LIBS=$LIBS
7082 LIBS="-ldl $LIBS"
7083 cat >conftest.$ac_ext <<_ACEOF
7084 /* confdefs.h. */
7085 _ACEOF
7086 cat confdefs.h >>conftest.$ac_ext
7087 cat >>conftest.$ac_ext <<_ACEOF
7088 /* end confdefs.h. */
7090 /* Override any gcc2 internal prototype to avoid an error. */
7091 #ifdef __cplusplus
7092 extern "C"
7093 #endif
7094 /* We use char because int might match the return type of a gcc2
7095 builtin and then its argument prototype would still apply. */
7096 char dlopen ();
7098 main ()
7100 dlopen ();
7102 return 0;
7104 _ACEOF
7105 rm -f conftest.$ac_objext conftest$ac_exeext
7106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7107 (eval $ac_link) 2>conftest.er1
7108 ac_status=$?
7109 grep -v '^ *+' conftest.er1 >conftest.err
7110 rm -f conftest.er1
7111 cat conftest.err >&5
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); } &&
7114 { ac_try='test -z "$ac_c_werror_flag"
7115 || test ! -s conftest.err'
7116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117 (eval $ac_try) 2>&5
7118 ac_status=$?
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); }; } &&
7121 { ac_try='test -s conftest$ac_exeext'
7122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123 (eval $ac_try) 2>&5
7124 ac_status=$?
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); }; }; then
7127 ac_cv_lib_dl_dlopen=yes
7128 else
7129 echo "$as_me: failed program was:" >&5
7130 sed 's/^/| /' conftest.$ac_ext >&5
7132 ac_cv_lib_dl_dlopen=no
7134 rm -f conftest.err conftest.$ac_objext \
7135 conftest$ac_exeext conftest.$ac_ext
7136 LIBS=$ac_check_lib_save_LIBS
7138 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7139 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7140 if test $ac_cv_lib_dl_dlopen = yes; then
7141 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7142 else
7143 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7144 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7145 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7147 else
7148 ac_check_lib_save_LIBS=$LIBS
7149 LIBS="-lsvld $LIBS"
7150 cat >conftest.$ac_ext <<_ACEOF
7151 /* confdefs.h. */
7152 _ACEOF
7153 cat confdefs.h >>conftest.$ac_ext
7154 cat >>conftest.$ac_ext <<_ACEOF
7155 /* end confdefs.h. */
7157 /* Override any gcc2 internal prototype to avoid an error. */
7158 #ifdef __cplusplus
7159 extern "C"
7160 #endif
7161 /* We use char because int might match the return type of a gcc2
7162 builtin and then its argument prototype would still apply. */
7163 char dlopen ();
7165 main ()
7167 dlopen ();
7169 return 0;
7171 _ACEOF
7172 rm -f conftest.$ac_objext conftest$ac_exeext
7173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7174 (eval $ac_link) 2>conftest.er1
7175 ac_status=$?
7176 grep -v '^ *+' conftest.er1 >conftest.err
7177 rm -f conftest.er1
7178 cat conftest.err >&5
7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); } &&
7181 { ac_try='test -z "$ac_c_werror_flag"
7182 || test ! -s conftest.err'
7183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7184 (eval $ac_try) 2>&5
7185 ac_status=$?
7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); }; } &&
7188 { ac_try='test -s conftest$ac_exeext'
7189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7190 (eval $ac_try) 2>&5
7191 ac_status=$?
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); }; }; then
7194 ac_cv_lib_svld_dlopen=yes
7195 else
7196 echo "$as_me: failed program was:" >&5
7197 sed 's/^/| /' conftest.$ac_ext >&5
7199 ac_cv_lib_svld_dlopen=no
7201 rm -f conftest.err conftest.$ac_objext \
7202 conftest$ac_exeext conftest.$ac_ext
7203 LIBS=$ac_check_lib_save_LIBS
7205 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7206 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7207 if test $ac_cv_lib_svld_dlopen = yes; then
7208 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7209 else
7210 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7211 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7212 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7213 echo $ECHO_N "(cached) $ECHO_C" >&6
7214 else
7215 ac_check_lib_save_LIBS=$LIBS
7216 LIBS="-ldld $LIBS"
7217 cat >conftest.$ac_ext <<_ACEOF
7218 /* confdefs.h. */
7219 _ACEOF
7220 cat confdefs.h >>conftest.$ac_ext
7221 cat >>conftest.$ac_ext <<_ACEOF
7222 /* end confdefs.h. */
7224 /* Override any gcc2 internal prototype to avoid an error. */
7225 #ifdef __cplusplus
7226 extern "C"
7227 #endif
7228 /* We use char because int might match the return type of a gcc2
7229 builtin and then its argument prototype would still apply. */
7230 char dld_link ();
7232 main ()
7234 dld_link ();
7236 return 0;
7238 _ACEOF
7239 rm -f conftest.$ac_objext conftest$ac_exeext
7240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7241 (eval $ac_link) 2>conftest.er1
7242 ac_status=$?
7243 grep -v '^ *+' conftest.er1 >conftest.err
7244 rm -f conftest.er1
7245 cat conftest.err >&5
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); } &&
7248 { ac_try='test -z "$ac_c_werror_flag"
7249 || test ! -s conftest.err'
7250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7251 (eval $ac_try) 2>&5
7252 ac_status=$?
7253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254 (exit $ac_status); }; } &&
7255 { ac_try='test -s conftest$ac_exeext'
7256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7257 (eval $ac_try) 2>&5
7258 ac_status=$?
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); }; }; then
7261 ac_cv_lib_dld_dld_link=yes
7262 else
7263 echo "$as_me: failed program was:" >&5
7264 sed 's/^/| /' conftest.$ac_ext >&5
7266 ac_cv_lib_dld_dld_link=no
7268 rm -f conftest.err conftest.$ac_objext \
7269 conftest$ac_exeext conftest.$ac_ext
7270 LIBS=$ac_check_lib_save_LIBS
7272 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7273 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7274 if test $ac_cv_lib_dld_dld_link = yes; then
7275 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7294 esac
7296 if test "x$lt_cv_dlopen" != xno; then
7297 enable_dlopen=yes
7298 else
7299 enable_dlopen=no
7302 case $lt_cv_dlopen in
7303 dlopen)
7304 save_CPPFLAGS="$CPPFLAGS"
7305 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7307 save_LDFLAGS="$LDFLAGS"
7308 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7310 save_LIBS="$LIBS"
7311 LIBS="$lt_cv_dlopen_libs $LIBS"
7313 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7314 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7315 if test "${lt_cv_dlopen_self+set}" = set; then
7316 echo $ECHO_N "(cached) $ECHO_C" >&6
7317 else
7318 if test "$cross_compiling" = yes; then :
7319 lt_cv_dlopen_self=cross
7320 else
7321 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7322 lt_status=$lt_dlunknown
7323 cat > conftest.$ac_ext <<EOF
7324 #line 7324 "configure"
7325 #include "confdefs.h"
7327 #if HAVE_DLFCN_H
7328 #include <dlfcn.h>
7329 #endif
7331 #include <stdio.h>
7333 #ifdef RTLD_GLOBAL
7334 # define LT_DLGLOBAL RTLD_GLOBAL
7335 #else
7336 # ifdef DL_GLOBAL
7337 # define LT_DLGLOBAL DL_GLOBAL
7338 # else
7339 # define LT_DLGLOBAL 0
7340 # endif
7341 #endif
7343 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7344 find out it does not work in some platform. */
7345 #ifndef LT_DLLAZY_OR_NOW
7346 # ifdef RTLD_LAZY
7347 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7348 # else
7349 # ifdef DL_LAZY
7350 # define LT_DLLAZY_OR_NOW DL_LAZY
7351 # else
7352 # ifdef RTLD_NOW
7353 # define LT_DLLAZY_OR_NOW RTLD_NOW
7354 # else
7355 # ifdef DL_NOW
7356 # define LT_DLLAZY_OR_NOW DL_NOW
7357 # else
7358 # define LT_DLLAZY_OR_NOW 0
7359 # endif
7360 # endif
7361 # endif
7362 # endif
7363 #endif
7365 #ifdef __cplusplus
7366 extern "C" void exit (int);
7367 #endif
7369 void fnord() { int i=42;}
7370 int main ()
7372 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7373 int status = $lt_dlunknown;
7375 if (self)
7377 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7378 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7379 /* dlclose (self); */
7382 exit (status);
7385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7386 (eval $ac_link) 2>&5
7387 ac_status=$?
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7390 (./conftest; exit; ) 2>/dev/null
7391 lt_status=$?
7392 case x$lt_status in
7393 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7394 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7395 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7396 esac
7397 else :
7398 # compilation failed
7399 lt_cv_dlopen_self=no
7402 rm -fr conftest*
7406 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7407 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7409 if test "x$lt_cv_dlopen_self" = xyes; then
7410 LDFLAGS="$LDFLAGS $link_static_flag"
7411 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7412 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7413 if test "${lt_cv_dlopen_self_static+set}" = set; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
7415 else
7416 if test "$cross_compiling" = yes; then :
7417 lt_cv_dlopen_self_static=cross
7418 else
7419 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7420 lt_status=$lt_dlunknown
7421 cat > conftest.$ac_ext <<EOF
7422 #line 7422 "configure"
7423 #include "confdefs.h"
7425 #if HAVE_DLFCN_H
7426 #include <dlfcn.h>
7427 #endif
7429 #include <stdio.h>
7431 #ifdef RTLD_GLOBAL
7432 # define LT_DLGLOBAL RTLD_GLOBAL
7433 #else
7434 # ifdef DL_GLOBAL
7435 # define LT_DLGLOBAL DL_GLOBAL
7436 # else
7437 # define LT_DLGLOBAL 0
7438 # endif
7439 #endif
7441 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7442 find out it does not work in some platform. */
7443 #ifndef LT_DLLAZY_OR_NOW
7444 # ifdef RTLD_LAZY
7445 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7446 # else
7447 # ifdef DL_LAZY
7448 # define LT_DLLAZY_OR_NOW DL_LAZY
7449 # else
7450 # ifdef RTLD_NOW
7451 # define LT_DLLAZY_OR_NOW RTLD_NOW
7452 # else
7453 # ifdef DL_NOW
7454 # define LT_DLLAZY_OR_NOW DL_NOW
7455 # else
7456 # define LT_DLLAZY_OR_NOW 0
7457 # endif
7458 # endif
7459 # endif
7460 # endif
7461 #endif
7463 #ifdef __cplusplus
7464 extern "C" void exit (int);
7465 #endif
7467 void fnord() { int i=42;}
7468 int main ()
7470 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7471 int status = $lt_dlunknown;
7473 if (self)
7475 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7476 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7477 /* dlclose (self); */
7480 exit (status);
7483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7484 (eval $ac_link) 2>&5
7485 ac_status=$?
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7488 (./conftest; exit; ) 2>/dev/null
7489 lt_status=$?
7490 case x$lt_status in
7491 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7492 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7493 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7494 esac
7495 else :
7496 # compilation failed
7497 lt_cv_dlopen_self_static=no
7500 rm -fr conftest*
7504 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7505 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7508 CPPFLAGS="$save_CPPFLAGS"
7509 LDFLAGS="$save_LDFLAGS"
7510 LIBS="$save_LIBS"
7512 esac
7514 case $lt_cv_dlopen_self in
7515 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7516 *) enable_dlopen_self=unknown ;;
7517 esac
7519 case $lt_cv_dlopen_self_static in
7520 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7521 *) enable_dlopen_self_static=unknown ;;
7522 esac
7526 if test "$enable_shared" = yes && test "$GCC" = yes; then
7527 case $archive_cmds in
7528 *'~'*)
7529 # FIXME: we may have to deal with multi-command sequences.
7531 '$CC '*)
7532 # Test whether the compiler implicitly links with -lc since on some
7533 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7534 # to ld, don't add -lc before -lgcc.
7535 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7536 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7537 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7538 echo $ECHO_N "(cached) $ECHO_C" >&6
7539 else
7540 $rm conftest*
7541 echo 'static int dummy;' > conftest.$ac_ext
7543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7544 (eval $ac_compile) 2>&5
7545 ac_status=$?
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); }; then
7548 soname=conftest
7549 lib=conftest
7550 libobjs=conftest.$ac_objext
7551 deplibs=
7552 wl=$lt_cv_prog_cc_wl
7553 compiler_flags=-v
7554 linker_flags=-v
7555 verstring=
7556 output_objdir=.
7557 libname=conftest
7558 save_allow_undefined_flag=$allow_undefined_flag
7559 allow_undefined_flag=
7560 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7561 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7562 ac_status=$?
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); }
7565 then
7566 lt_cv_archive_cmds_need_lc=no
7567 else
7568 lt_cv_archive_cmds_need_lc=yes
7570 allow_undefined_flag=$save_allow_undefined_flag
7571 else
7572 cat conftest.err 1>&5
7576 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7577 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7579 esac
7581 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7583 # The second clause should only fire when bootstrapping the
7584 # libtool distribution, otherwise you forgot to ship ltmain.sh
7585 # with your package, and you will get complaints that there are
7586 # no rules to generate ltmain.sh.
7587 if test -f "$ltmain"; then
7589 else
7590 # If there is no Makefile yet, we rely on a make rule to execute
7591 # `config.status --recheck' to rerun these tests and create the
7592 # libtool script then.
7593 test -f Makefile && make "$ltmain"
7596 if test -f "$ltmain"; then
7597 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7598 $rm -f "${ofile}T"
7600 echo creating $ofile
7602 # Now quote all the things that may contain metacharacters while being
7603 # careful not to overquote the AC_SUBSTed values. We take copies of the
7604 # variables and quote the copies for generation of the libtool script.
7605 for var in echo old_CC old_CFLAGS SED \
7606 AR AR_FLAGS CC LD LN_S NM SHELL \
7607 reload_flag reload_cmds wl \
7608 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7609 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7610 library_names_spec soname_spec \
7611 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7612 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7613 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7614 old_striplib striplib file_magic_cmd export_symbols_cmds \
7615 deplibs_check_method allow_undefined_flag no_undefined_flag \
7616 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7617 global_symbol_to_c_name_address \
7618 hardcode_libdir_flag_spec hardcode_libdir_separator \
7619 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7620 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7622 case $var in
7623 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7624 old_postinstall_cmds | old_postuninstall_cmds | \
7625 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7626 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7627 postinstall_cmds | postuninstall_cmds | \
7628 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7629 # Double-quote double-evaled strings.
7630 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7633 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7635 esac
7636 done
7638 cat <<__EOF__ > "${ofile}T"
7639 #! $SHELL
7641 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7642 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7643 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7645 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7646 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7648 # This program is free software; you can redistribute it and/or modify
7649 # it under the terms of the GNU General Public License as published by
7650 # the Free Software Foundation; either version 2 of the License, or
7651 # (at your option) any later version.
7653 # This program is distributed in the hope that it will be useful, but
7654 # WITHOUT ANY WARRANTY; without even the implied warranty of
7655 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7656 # General Public License for more details.
7658 # You should have received a copy of the GNU General Public License
7659 # along with this program; if not, write to the Free Software
7660 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7662 # As a special exception to the GNU General Public License, if you
7663 # distribute this file as part of a program that contains a
7664 # configuration script generated by Autoconf, you may include it under
7665 # the same distribution terms that you use for the rest of that program.
7667 # A sed that does not truncate output.
7668 SED=$lt_SED
7670 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7671 Xsed="${SED} -e s/^X//"
7673 # The HP-UX ksh and POSIX shell print the target directory to stdout
7674 # if CDPATH is set.
7675 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7677 # ### BEGIN LIBTOOL CONFIG
7679 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7681 # Shell to use when invoking shell scripts.
7682 SHELL=$lt_SHELL
7684 # Whether or not to build shared libraries.
7685 build_libtool_libs=$enable_shared
7687 # Whether or not to build static libraries.
7688 build_old_libs=$enable_static
7690 # Whether or not to add -lc for building shared libraries.
7691 build_libtool_need_lc=$need_lc
7693 # Whether or not to optimize for fast installation.
7694 fast_install=$enable_fast_install
7696 # The host system.
7697 host_alias=$host_alias
7698 host=$host
7700 # An echo program that does not interpret backslashes.
7701 echo=$lt_echo
7703 # The archiver.
7704 AR=$lt_AR
7705 AR_FLAGS=$lt_AR_FLAGS
7707 # The default C compiler.
7708 CC=$lt_CC
7710 # Is the compiler the GNU C compiler?
7711 with_gcc=$GCC
7713 # The linker used to build libraries.
7714 LD=$lt_LD
7716 # Whether we need hard or soft links.
7717 LN_S=$lt_LN_S
7719 # A BSD-compatible nm program.
7720 NM=$lt_NM
7722 # A symbol stripping program
7723 STRIP=$STRIP
7725 # Used to examine libraries when file_magic_cmd begins "file"
7726 MAGIC_CMD=$MAGIC_CMD
7728 # Used on cygwin: DLL creation program.
7729 DLLTOOL="$DLLTOOL"
7731 # Used on cygwin: object dumper.
7732 OBJDUMP="$OBJDUMP"
7734 # Used on cygwin: assembler.
7735 AS="$AS"
7737 # The name of the directory that contains temporary libtool files.
7738 objdir=$objdir
7740 # How to create reloadable object files.
7741 reload_flag=$lt_reload_flag
7742 reload_cmds=$lt_reload_cmds
7744 # How to pass a linker flag through the compiler.
7745 wl=$lt_wl
7747 # Object file suffix (normally "o").
7748 objext="$ac_objext"
7750 # Old archive suffix (normally "a").
7751 libext="$libext"
7753 # Executable file suffix (normally "").
7754 exeext="$exeext"
7756 # Additional compiler flags for building library objects.
7757 pic_flag=$lt_pic_flag
7758 pic_mode=$pic_mode
7760 # Does compiler simultaneously support -c and -o options?
7761 compiler_c_o=$lt_compiler_c_o
7763 # Can we write directly to a .lo ?
7764 compiler_o_lo=$lt_compiler_o_lo
7766 # Must we lock files when doing compilation ?
7767 need_locks=$lt_need_locks
7769 # Do we need the lib prefix for modules?
7770 need_lib_prefix=$need_lib_prefix
7772 # Do we need a version for libraries?
7773 need_version=$need_version
7775 # Whether dlopen is supported.
7776 dlopen_support=$enable_dlopen
7778 # Whether dlopen of programs is supported.
7779 dlopen_self=$enable_dlopen_self
7781 # Whether dlopen of statically linked programs is supported.
7782 dlopen_self_static=$enable_dlopen_self_static
7784 # Compiler flag to prevent dynamic linking.
7785 link_static_flag=$lt_link_static_flag
7787 # Compiler flag to turn off builtin functions.
7788 no_builtin_flag=$lt_no_builtin_flag
7790 # Compiler flag to allow reflexive dlopens.
7791 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7793 # Compiler flag to generate shared objects directly from archives.
7794 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7796 # Compiler flag to generate thread-safe objects.
7797 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7799 # Library versioning type.
7800 version_type=$version_type
7802 # Format of library name prefix.
7803 libname_spec=$lt_libname_spec
7805 # List of archive names. First name is the real one, the rest are links.
7806 # The last name is the one that the linker finds with -lNAME.
7807 library_names_spec=$lt_library_names_spec
7809 # The coded name of the library, if different from the real name.
7810 soname_spec=$lt_soname_spec
7812 # Commands used to build and install an old-style archive.
7813 RANLIB=$lt_RANLIB
7814 old_archive_cmds=$lt_old_archive_cmds
7815 old_postinstall_cmds=$lt_old_postinstall_cmds
7816 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7818 # Create an old-style archive from a shared archive.
7819 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7821 # Create a temporary old-style archive to link instead of a shared archive.
7822 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7824 # Commands used to build and install a shared archive.
7825 archive_cmds=$lt_archive_cmds
7826 archive_expsym_cmds=$lt_archive_expsym_cmds
7827 postinstall_cmds=$lt_postinstall_cmds
7828 postuninstall_cmds=$lt_postuninstall_cmds
7830 # Commands to strip libraries.
7831 old_striplib=$lt_old_striplib
7832 striplib=$lt_striplib
7834 # Method to check whether dependent libraries are shared objects.
7835 deplibs_check_method=$lt_deplibs_check_method
7837 # Command to use when deplibs_check_method == file_magic.
7838 file_magic_cmd=$lt_file_magic_cmd
7840 # Flag that allows shared libraries with undefined symbols to be built.
7841 allow_undefined_flag=$lt_allow_undefined_flag
7843 # Flag that forces no undefined symbols.
7844 no_undefined_flag=$lt_no_undefined_flag
7846 # Commands used to finish a libtool library installation in a directory.
7847 finish_cmds=$lt_finish_cmds
7849 # Same as above, but a single script fragment to be evaled but not shown.
7850 finish_eval=$lt_finish_eval
7852 # Take the output of nm and produce a listing of raw symbols and C names.
7853 global_symbol_pipe=$lt_global_symbol_pipe
7855 # Transform the output of nm in a proper C declaration
7856 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7858 # Transform the output of nm in a C name address pair
7859 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7861 # This is the shared library runtime path variable.
7862 runpath_var=$runpath_var
7864 # This is the shared library path variable.
7865 shlibpath_var=$shlibpath_var
7867 # Is shlibpath searched before the hard-coded library search path?
7868 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7870 # How to hardcode a shared library path into an executable.
7871 hardcode_action=$hardcode_action
7873 # Whether we should hardcode library paths into libraries.
7874 hardcode_into_libs=$hardcode_into_libs
7876 # Flag to hardcode \$libdir into a binary during linking.
7877 # This must work even if \$libdir does not exist.
7878 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7880 # Whether we need a single -rpath flag with a separated argument.
7881 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7883 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7884 # resulting binary.
7885 hardcode_direct=$hardcode_direct
7887 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7888 # resulting binary.
7889 hardcode_minus_L=$hardcode_minus_L
7891 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7892 # the resulting binary.
7893 hardcode_shlibpath_var=$hardcode_shlibpath_var
7895 # Variables whose values should be saved in libtool wrapper scripts and
7896 # restored at relink time.
7897 variables_saved_for_relink="$variables_saved_for_relink"
7899 # Whether libtool must link a program against all its dependency libraries.
7900 link_all_deplibs=$link_all_deplibs
7902 # Compile-time system search path for libraries
7903 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7905 # Run-time system search path for libraries
7906 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7908 # Fix the shell variable \$srcfile for the compiler.
7909 fix_srcfile_path="$fix_srcfile_path"
7911 # Set to yes if exported symbols are required.
7912 always_export_symbols=$always_export_symbols
7914 # The commands to list exported symbols.
7915 export_symbols_cmds=$lt_export_symbols_cmds
7917 # The commands to extract the exported symbol list from a shared archive.
7918 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7920 # Symbols that should not be listed in the preloaded symbols.
7921 exclude_expsyms=$lt_exclude_expsyms
7923 # Symbols that must always be exported.
7924 include_expsyms=$lt_include_expsyms
7926 # ### END LIBTOOL CONFIG
7928 __EOF__
7930 case $host_os in
7931 aix3*)
7932 cat <<\EOF >> "${ofile}T"
7934 # AIX sometimes has problems with the GCC collect2 program. For some
7935 # reason, if we set the COLLECT_NAMES environment variable, the problems
7936 # vanish in a puff of smoke.
7937 if test "X${COLLECT_NAMES+set}" != Xset; then
7938 COLLECT_NAMES=
7939 export COLLECT_NAMES
7943 esac
7945 case $host_os in
7946 cygwin* | mingw* | pw32* | os2*)
7947 cat <<'EOF' >> "${ofile}T"
7948 # This is a source program that is used to create dlls on Windows
7949 # Don't remove nor modify the starting and closing comments
7950 # /* ltdll.c starts here */
7951 # #define WIN32_LEAN_AND_MEAN
7952 # #include <windows.h>
7953 # #undef WIN32_LEAN_AND_MEAN
7954 # #include <stdio.h>
7956 # #ifndef __CYGWIN__
7957 # # ifdef __CYGWIN32__
7958 # # define __CYGWIN__ __CYGWIN32__
7959 # # endif
7960 # #endif
7962 # #ifdef __cplusplus
7963 # extern "C" {
7964 # #endif
7965 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7966 # #ifdef __cplusplus
7968 # #endif
7970 # #ifdef __CYGWIN__
7971 # #include <cygwin/cygwin_dll.h>
7972 # DECLARE_CYGWIN_DLL( DllMain );
7973 # #endif
7974 # HINSTANCE __hDllInstance_base;
7976 # BOOL APIENTRY
7977 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7979 # __hDllInstance_base = hInst;
7980 # return TRUE;
7982 # /* ltdll.c ends here */
7983 # This is a source program that is used to create import libraries
7984 # on Windows for dlls which lack them. Don't remove nor modify the
7985 # starting and closing comments
7986 # /* impgen.c starts here */
7987 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7989 # This file is part of GNU libtool.
7991 # This program is free software; you can redistribute it and/or modify
7992 # it under the terms of the GNU General Public License as published by
7993 # the Free Software Foundation; either version 2 of the License, or
7994 # (at your option) any later version.
7996 # This program is distributed in the hope that it will be useful,
7997 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7998 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7999 # GNU General Public License for more details.
8001 # You should have received a copy of the GNU General Public License
8002 # along with this program; if not, write to the Free Software
8003 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8004 # */
8006 # #include <stdio.h> /* for printf() */
8007 # #include <unistd.h> /* for open(), lseek(), read() */
8008 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8009 # #include <string.h> /* for strdup() */
8011 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8012 # #ifndef O_BINARY
8013 # #define O_BINARY 0
8014 # #endif
8016 # static unsigned int
8017 # pe_get16 (fd, offset)
8018 # int fd;
8019 # int offset;
8021 # unsigned char b[2];
8022 # lseek (fd, offset, SEEK_SET);
8023 # read (fd, b, 2);
8024 # return b[0] + (b[1]<<8);
8027 # static unsigned int
8028 # pe_get32 (fd, offset)
8029 # int fd;
8030 # int offset;
8032 # unsigned char b[4];
8033 # lseek (fd, offset, SEEK_SET);
8034 # read (fd, b, 4);
8035 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8038 # static unsigned int
8039 # pe_as32 (ptr)
8040 # void *ptr;
8042 # unsigned char *b = ptr;
8043 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8046 # int
8047 # main (argc, argv)
8048 # int argc;
8049 # char *argv[];
8051 # int dll;
8052 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8053 # unsigned long export_rva, export_size, nsections, secptr, expptr;
8054 # unsigned long name_rvas, nexp;
8055 # unsigned char *expdata, *erva;
8056 # char *filename, *dll_name;
8058 # filename = argv[1];
8060 # dll = open(filename, O_RDONLY|O_BINARY);
8061 # if (dll < 1)
8062 # return 1;
8064 # dll_name = filename;
8066 # for (i=0; filename[i]; i++)
8067 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8068 # dll_name = filename + i +1;
8070 # pe_header_offset = pe_get32 (dll, 0x3c);
8071 # opthdr_ofs = pe_header_offset + 4 + 20;
8072 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
8074 # if (num_entries < 1) /* no exports */
8075 # return 1;
8077 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
8078 # export_size = pe_get32 (dll, opthdr_ofs + 100);
8079 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8080 # secptr = (pe_header_offset + 4 + 20 +
8081 # pe_get16 (dll, pe_header_offset + 4 + 16));
8083 # expptr = 0;
8084 # for (i = 0; i < nsections; i++)
8086 # char sname[8];
8087 # unsigned long secptr1 = secptr + 40 * i;
8088 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8089 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8090 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8091 # lseek(dll, secptr1, SEEK_SET);
8092 # read(dll, sname, 8);
8093 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8095 # expptr = fptr + (export_rva - vaddr);
8096 # if (export_rva + export_size > vaddr + vsize)
8097 # export_size = vsize - (export_rva - vaddr);
8098 # break;
8102 # expdata = (unsigned char*)malloc(export_size);
8103 # lseek (dll, expptr, SEEK_SET);
8104 # read (dll, expdata, export_size);
8105 # erva = expdata - export_rva;
8107 # nexp = pe_as32 (expdata+24);
8108 # name_rvas = pe_as32 (expdata+32);
8110 # printf ("EXPORTS\n");
8111 # for (i = 0; i<nexp; i++)
8113 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8114 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8117 # return 0;
8119 # /* impgen.c ends here */
8123 esac
8125 # We use sed instead of cat because bash on DJGPP gets confused if
8126 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8127 # text mode, it properly converts lines to CR/LF. This bash problem
8128 # is reportedly fixed, but why not run on old versions too?
8129 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8131 mv -f "${ofile}T" "$ofile" || \
8132 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8133 chmod +x "$ofile"
8140 # This can be used to rebuild libtool when needed
8141 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8143 # Always use our own libtool.
8144 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8146 # Prevent multiple expansion
8149 for ac_prog in gzip uncompress compress
8151 # Extract the first word of "$ac_prog", so it can be a program name with args.
8152 set dummy $ac_prog; ac_word=$2
8153 echo "$as_me:$LINENO: checking for $ac_word" >&5
8154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8155 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
8156 echo $ECHO_N "(cached) $ECHO_C" >&6
8157 else
8158 if test -n "$UNCOMPRESS"; then
8159 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
8160 else
8161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8162 for as_dir in $PATH
8164 IFS=$as_save_IFS
8165 test -z "$as_dir" && as_dir=.
8166 for ac_exec_ext in '' $ac_executable_extensions; do
8167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8168 ac_cv_prog_UNCOMPRESS="$ac_prog"
8169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8170 break 2
8172 done
8173 done
8177 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
8178 if test -n "$UNCOMPRESS"; then
8179 echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
8180 echo "${ECHO_T}$UNCOMPRESS" >&6
8181 else
8182 echo "$as_me:$LINENO: result: no" >&5
8183 echo "${ECHO_T}no" >&6
8186 test -n "$UNCOMPRESS" && break
8187 done
8196 echo "$as_me:$LINENO: checking for target system" >&5
8197 echo $ECHO_N "checking for target system... $ECHO_C" >&6
8198 CYGWIN=
8199 MINGW=
8200 case $host_os in
8201 *cygwin* ) CYGWIN=yes;;
8202 *mingw* ) MINGW=yes;;
8203 esac
8205 AR=ar
8206 if test "x$MINGW" = "xyes"; then
8207 #fix for the debian distribution of mingw
8208 if test -x "/usr/i586-mingw32msvc/bin/ar";then
8209 AR="/usr/i586-mingw32msvc/bin/ar"
8211 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
8212 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
8214 #fix for the gentoo distribution of mingw
8215 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
8216 AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
8218 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
8219 RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
8221 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
8222 STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
8228 if test "x${CYGWIN}" = "xyes"; then
8229 cat >>confdefs.h <<_ACEOF
8230 #define CYGWIN 1
8231 _ACEOF
8233 echo "$as_me:$LINENO: result: cygwin" >&5
8234 echo "${ECHO_T}cygwin" >&6
8235 else
8236 if test "x${MINGW}" = "xyes"; then
8237 cat >>confdefs.h <<_ACEOF
8238 #define MINGW 1
8239 _ACEOF
8241 WIN32=1
8242 cat >>confdefs.h <<_ACEOF
8243 #define WIN32 1
8244 _ACEOF
8246 LIBS="$LIBS -lws2_32"
8247 echo "$as_me:$LINENO: result: mingw" >&5
8248 echo "${ECHO_T}mingw" >&6
8249 else
8250 LINUX=1
8251 export LINUX
8252 cat >>confdefs.h <<_ACEOF
8253 #define LINUX 1
8254 _ACEOF
8256 echo "$as_me:$LINENO: result: " >&5
8257 echo "${ECHO_T}" >&6
8262 SLEXT="so"
8263 if test "x${MINGW}" != "xyes"; then
8264 # no mingW
8265 cat >>confdefs.h <<_ACEOF
8266 #define O_BINARY 0
8267 _ACEOF
8269 else
8270 # mingW
8271 SLEXT="dll"
8273 export SLEXT
8276 # The following tries to make use of includes and libraries in
8277 # /usr/local, too. Notice: A -I/usr/local/include might break
8278 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
8279 # especially on systems which link /usr/local to /usr, so it has yet
8280 # to be seen how useful this is.
8281 if test -d /usr/local/lib; then
8282 LDFLAGS="$LDFLAGS -L/usr/local/lib"
8284 if test -d /usr/local/include; then
8285 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
8286 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
8287 echo > /dev/null
8289 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
8290 # if the user has a special prefix (like /opt), there might also be $prefix/lib
8291 # and $prefix/include, which should be included in our search paths for libraries
8292 # and includes.
8293 LDFLAGS="$LDFLAGS -L${libdir}"
8294 CPPFLAGS="$CPPFLAGS -I${includedir}"
8295 # TODO- test whether gcc still works after this
8298 # this must be done after (I believe) AC_PROG_MAKE_SET
8299 if test "x$DEBUG" '!=' "x";then
8300 STRIP="@echo debug enabled, not stripping "
8301 export STRIP
8306 echo "$as_me:$LINENO: checking for sin in -lm" >&5
8307 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8308 if test "${ac_cv_lib_m_sin+set}" = set; then
8309 echo $ECHO_N "(cached) $ECHO_C" >&6
8310 else
8311 ac_check_lib_save_LIBS=$LIBS
8312 LIBS="-lm $LIBS"
8313 cat >conftest.$ac_ext <<_ACEOF
8314 /* confdefs.h. */
8315 _ACEOF
8316 cat confdefs.h >>conftest.$ac_ext
8317 cat >>conftest.$ac_ext <<_ACEOF
8318 /* end confdefs.h. */
8320 /* Override any gcc2 internal prototype to avoid an error. */
8321 #ifdef __cplusplus
8322 extern "C"
8323 #endif
8324 /* We use char because int might match the return type of a gcc2
8325 builtin and then its argument prototype would still apply. */
8326 char sin ();
8328 main ()
8330 sin ();
8332 return 0;
8334 _ACEOF
8335 rm -f conftest.$ac_objext conftest$ac_exeext
8336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8337 (eval $ac_link) 2>conftest.er1
8338 ac_status=$?
8339 grep -v '^ *+' conftest.er1 >conftest.err
8340 rm -f conftest.er1
8341 cat conftest.err >&5
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); } &&
8344 { ac_try='test -z "$ac_c_werror_flag"
8345 || test ! -s conftest.err'
8346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8347 (eval $ac_try) 2>&5
8348 ac_status=$?
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); }; } &&
8351 { ac_try='test -s conftest$ac_exeext'
8352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8353 (eval $ac_try) 2>&5
8354 ac_status=$?
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); }; }; then
8357 ac_cv_lib_m_sin=yes
8358 else
8359 echo "$as_me: failed program was:" >&5
8360 sed 's/^/| /' conftest.$ac_ext >&5
8362 ac_cv_lib_m_sin=no
8364 rm -f conftest.err conftest.$ac_objext \
8365 conftest$ac_exeext conftest.$ac_ext
8366 LIBS=$ac_check_lib_save_LIBS
8368 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8369 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8370 if test $ac_cv_lib_m_sin = yes; then
8371 cat >>confdefs.h <<_ACEOF
8372 #define HAVE_LIBM 1
8373 _ACEOF
8375 LIBS="-lm $LIBS"
8377 else
8378 echo "Error: Math library not found.";
8379 exit;
8384 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
8385 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
8386 if test "${ac_cv_lib_z_deflate+set}" = set; then
8387 echo $ECHO_N "(cached) $ECHO_C" >&6
8388 else
8389 ac_check_lib_save_LIBS=$LIBS
8390 LIBS="-lz $LIBS"
8391 cat >conftest.$ac_ext <<_ACEOF
8392 /* confdefs.h. */
8393 _ACEOF
8394 cat confdefs.h >>conftest.$ac_ext
8395 cat >>conftest.$ac_ext <<_ACEOF
8396 /* end confdefs.h. */
8398 /* Override any gcc2 internal prototype to avoid an error. */
8399 #ifdef __cplusplus
8400 extern "C"
8401 #endif
8402 /* We use char because int might match the return type of a gcc2
8403 builtin and then its argument prototype would still apply. */
8404 char deflate ();
8406 main ()
8408 deflate ();
8410 return 0;
8412 _ACEOF
8413 rm -f conftest.$ac_objext conftest$ac_exeext
8414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8415 (eval $ac_link) 2>conftest.er1
8416 ac_status=$?
8417 grep -v '^ *+' conftest.er1 >conftest.err
8418 rm -f conftest.er1
8419 cat conftest.err >&5
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); } &&
8422 { ac_try='test -z "$ac_c_werror_flag"
8423 || test ! -s conftest.err'
8424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8425 (eval $ac_try) 2>&5
8426 ac_status=$?
8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428 (exit $ac_status); }; } &&
8429 { ac_try='test -s conftest$ac_exeext'
8430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8431 (eval $ac_try) 2>&5
8432 ac_status=$?
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); }; }; then
8435 ac_cv_lib_z_deflate=yes
8436 else
8437 echo "$as_me: failed program was:" >&5
8438 sed 's/^/| /' conftest.$ac_ext >&5
8440 ac_cv_lib_z_deflate=no
8442 rm -f conftest.err conftest.$ac_objext \
8443 conftest$ac_exeext conftest.$ac_ext
8444 LIBS=$ac_check_lib_save_LIBS
8446 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
8447 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
8448 if test $ac_cv_lib_z_deflate = yes; then
8449 cat >>confdefs.h <<_ACEOF
8450 #define HAVE_LIBZ 1
8451 _ACEOF
8453 LIBS="-lz $LIBS"
8455 else
8456 DISABLEPNG2SWF=true;
8457 MISSINGLIBS="${MISSINGLIBS} zlib"
8458 ZLIBMISSING=true;
8463 echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
8464 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6
8465 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
8466 echo $ECHO_N "(cached) $ECHO_C" >&6
8467 else
8468 ac_check_lib_save_LIBS=$LIBS
8469 LIBS="-ljpeg $LIBS"
8470 cat >conftest.$ac_ext <<_ACEOF
8471 /* confdefs.h. */
8472 _ACEOF
8473 cat confdefs.h >>conftest.$ac_ext
8474 cat >>conftest.$ac_ext <<_ACEOF
8475 /* end confdefs.h. */
8477 /* Override any gcc2 internal prototype to avoid an error. */
8478 #ifdef __cplusplus
8479 extern "C"
8480 #endif
8481 /* We use char because int might match the return type of a gcc2
8482 builtin and then its argument prototype would still apply. */
8483 char jpeg_write_raw_data ();
8485 main ()
8487 jpeg_write_raw_data ();
8489 return 0;
8491 _ACEOF
8492 rm -f conftest.$ac_objext conftest$ac_exeext
8493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8494 (eval $ac_link) 2>conftest.er1
8495 ac_status=$?
8496 grep -v '^ *+' conftest.er1 >conftest.err
8497 rm -f conftest.er1
8498 cat conftest.err >&5
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); } &&
8501 { ac_try='test -z "$ac_c_werror_flag"
8502 || test ! -s conftest.err'
8503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504 (eval $ac_try) 2>&5
8505 ac_status=$?
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); }; } &&
8508 { ac_try='test -s conftest$ac_exeext'
8509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8510 (eval $ac_try) 2>&5
8511 ac_status=$?
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); }; }; then
8514 ac_cv_lib_jpeg_jpeg_write_raw_data=yes
8515 else
8516 echo "$as_me: failed program was:" >&5
8517 sed 's/^/| /' conftest.$ac_ext >&5
8519 ac_cv_lib_jpeg_jpeg_write_raw_data=no
8521 rm -f conftest.err conftest.$ac_objext \
8522 conftest$ac_exeext conftest.$ac_ext
8523 LIBS=$ac_check_lib_save_LIBS
8525 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
8526 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6
8527 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
8528 cat >>confdefs.h <<_ACEOF
8529 #define HAVE_LIBJPEG 1
8530 _ACEOF
8532 LIBS="-ljpeg $LIBS"
8534 else
8535 DISABLEPDF2SWF=true;
8536 DISABLEJPEG2SWF=true;
8537 MISSINGLIBS="${MISSINGLIBS} jpeglib"
8542 echo "$as_me:$LINENO: checking for T1_LoadFont in -lt1" >&5
8543 echo $ECHO_N "checking for T1_LoadFont in -lt1... $ECHO_C" >&6
8544 if test "${ac_cv_lib_t1_T1_LoadFont+set}" = set; then
8545 echo $ECHO_N "(cached) $ECHO_C" >&6
8546 else
8547 ac_check_lib_save_LIBS=$LIBS
8548 LIBS="-lt1 $LIBS"
8549 cat >conftest.$ac_ext <<_ACEOF
8550 /* confdefs.h. */
8551 _ACEOF
8552 cat confdefs.h >>conftest.$ac_ext
8553 cat >>conftest.$ac_ext <<_ACEOF
8554 /* end confdefs.h. */
8556 /* Override any gcc2 internal prototype to avoid an error. */
8557 #ifdef __cplusplus
8558 extern "C"
8559 #endif
8560 /* We use char because int might match the return type of a gcc2
8561 builtin and then its argument prototype would still apply. */
8562 char T1_LoadFont ();
8564 main ()
8566 T1_LoadFont ();
8568 return 0;
8570 _ACEOF
8571 rm -f conftest.$ac_objext conftest$ac_exeext
8572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8573 (eval $ac_link) 2>conftest.er1
8574 ac_status=$?
8575 grep -v '^ *+' conftest.er1 >conftest.err
8576 rm -f conftest.er1
8577 cat conftest.err >&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); } &&
8580 { ac_try='test -z "$ac_c_werror_flag"
8581 || test ! -s conftest.err'
8582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8583 (eval $ac_try) 2>&5
8584 ac_status=$?
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); }; } &&
8587 { ac_try='test -s conftest$ac_exeext'
8588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8589 (eval $ac_try) 2>&5
8590 ac_status=$?
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }; }; then
8593 ac_cv_lib_t1_T1_LoadFont=yes
8594 else
8595 echo "$as_me: failed program was:" >&5
8596 sed 's/^/| /' conftest.$ac_ext >&5
8598 ac_cv_lib_t1_T1_LoadFont=no
8600 rm -f conftest.err conftest.$ac_objext \
8601 conftest$ac_exeext conftest.$ac_ext
8602 LIBS=$ac_check_lib_save_LIBS
8604 echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_LoadFont" >&5
8605 echo "${ECHO_T}$ac_cv_lib_t1_T1_LoadFont" >&6
8606 if test $ac_cv_lib_t1_T1_LoadFont = yes; then
8607 cat >>confdefs.h <<_ACEOF
8608 #define HAVE_LIBT1 1
8609 _ACEOF
8611 LIBS="-lt1 $LIBS"
8613 else
8614 DISABLEPDF2SWF=true;
8615 MISSINGLIBS="${MISSINGLIBS} t1lib"
8621 for ac_prog in freetype-config
8623 # Extract the first word of "$ac_prog", so it can be a program name with args.
8624 set dummy $ac_prog; ac_word=$2
8625 echo "$as_me:$LINENO: checking for $ac_word" >&5
8626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8627 if test "${ac_cv_prog_FREETYPE_CONFIG+set}" = set; then
8628 echo $ECHO_N "(cached) $ECHO_C" >&6
8629 else
8630 if test -n "$FREETYPE_CONFIG"; then
8631 ac_cv_prog_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test.
8632 else
8633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8634 for as_dir in $PATH
8636 IFS=$as_save_IFS
8637 test -z "$as_dir" && as_dir=.
8638 for ac_exec_ext in '' $ac_executable_extensions; do
8639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8640 ac_cv_prog_FREETYPE_CONFIG="$ac_prog"
8641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8642 break 2
8644 done
8645 done
8649 FREETYPE_CONFIG=$ac_cv_prog_FREETYPE_CONFIG
8650 if test -n "$FREETYPE_CONFIG"; then
8651 echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8652 echo "${ECHO_T}$FREETYPE_CONFIG" >&6
8653 else
8654 echo "$as_me:$LINENO: result: no" >&5
8655 echo "${ECHO_T}no" >&6
8658 test -n "$FREETYPE_CONFIG" && break
8659 done
8661 OLDCPPFLAGS="${CPPFLAGS}"
8662 OLDLIBS="${LIBS}"
8663 if test "x${FREETYPE_CONFIG}" != "x"; then
8664 CPPFLAGS="$CPPFLAGS "`freetype-config --cflags`
8665 else if test -d /usr/include/freetype2; then
8666 CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
8667 else if test -d /usr/local/include/freetype2; then
8668 CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
8672 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8673 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
8674 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8675 echo $ECHO_N "(cached) $ECHO_C" >&6
8676 else
8677 ac_check_lib_save_LIBS=$LIBS
8678 LIBS="-lfreetype $LIBS"
8679 cat >conftest.$ac_ext <<_ACEOF
8680 /* confdefs.h. */
8681 _ACEOF
8682 cat confdefs.h >>conftest.$ac_ext
8683 cat >>conftest.$ac_ext <<_ACEOF
8684 /* end confdefs.h. */
8686 /* Override any gcc2 internal prototype to avoid an error. */
8687 #ifdef __cplusplus
8688 extern "C"
8689 #endif
8690 /* We use char because int might match the return type of a gcc2
8691 builtin and then its argument prototype would still apply. */
8692 char FT_Init_FreeType ();
8694 main ()
8696 FT_Init_FreeType ();
8698 return 0;
8700 _ACEOF
8701 rm -f conftest.$ac_objext conftest$ac_exeext
8702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8703 (eval $ac_link) 2>conftest.er1
8704 ac_status=$?
8705 grep -v '^ *+' conftest.er1 >conftest.err
8706 rm -f conftest.er1
8707 cat conftest.err >&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); } &&
8710 { ac_try='test -z "$ac_c_werror_flag"
8711 || test ! -s conftest.err'
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713 (eval $ac_try) 2>&5
8714 ac_status=$?
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; } &&
8717 { ac_try='test -s conftest$ac_exeext'
8718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719 (eval $ac_try) 2>&5
8720 ac_status=$?
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; }; then
8723 ac_cv_lib_freetype_FT_Init_FreeType=yes
8724 else
8725 echo "$as_me: failed program was:" >&5
8726 sed 's/^/| /' conftest.$ac_ext >&5
8728 ac_cv_lib_freetype_FT_Init_FreeType=no
8730 rm -f conftest.err conftest.$ac_objext \
8731 conftest$ac_exeext conftest.$ac_ext
8732 LIBS=$ac_check_lib_save_LIBS
8734 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8735 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
8736 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8737 HAVE_LIB_FREETYPE=1
8741 for ac_header in freetype/freetype.h
8743 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8745 echo "$as_me:$LINENO: checking for $ac_header" >&5
8746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8748 echo $ECHO_N "(cached) $ECHO_C" >&6
8750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8751 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8752 else
8753 # Is the header compilable?
8754 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8755 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8756 cat >conftest.$ac_ext <<_ACEOF
8757 /* confdefs.h. */
8758 _ACEOF
8759 cat confdefs.h >>conftest.$ac_ext
8760 cat >>conftest.$ac_ext <<_ACEOF
8761 /* end confdefs.h. */
8762 $ac_includes_default
8763 #include <$ac_header>
8764 _ACEOF
8765 rm -f conftest.$ac_objext
8766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8767 (eval $ac_compile) 2>conftest.er1
8768 ac_status=$?
8769 grep -v '^ *+' conftest.er1 >conftest.err
8770 rm -f conftest.er1
8771 cat conftest.err >&5
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); } &&
8774 { ac_try='test -z "$ac_c_werror_flag"
8775 || test ! -s conftest.err'
8776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8777 (eval $ac_try) 2>&5
8778 ac_status=$?
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); }; } &&
8781 { ac_try='test -s conftest.$ac_objext'
8782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8783 (eval $ac_try) 2>&5
8784 ac_status=$?
8785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786 (exit $ac_status); }; }; then
8787 ac_header_compiler=yes
8788 else
8789 echo "$as_me: failed program was:" >&5
8790 sed 's/^/| /' conftest.$ac_ext >&5
8792 ac_header_compiler=no
8794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8795 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8796 echo "${ECHO_T}$ac_header_compiler" >&6
8798 # Is the header present?
8799 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8800 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8801 cat >conftest.$ac_ext <<_ACEOF
8802 /* confdefs.h. */
8803 _ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h. */
8807 #include <$ac_header>
8808 _ACEOF
8809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8810 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8811 ac_status=$?
8812 grep -v '^ *+' conftest.er1 >conftest.err
8813 rm -f conftest.er1
8814 cat conftest.err >&5
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); } >/dev/null; then
8817 if test -s conftest.err; then
8818 ac_cpp_err=$ac_c_preproc_warn_flag
8819 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8820 else
8821 ac_cpp_err=
8823 else
8824 ac_cpp_err=yes
8826 if test -z "$ac_cpp_err"; then
8827 ac_header_preproc=yes
8828 else
8829 echo "$as_me: failed program was:" >&5
8830 sed 's/^/| /' conftest.$ac_ext >&5
8832 ac_header_preproc=no
8834 rm -f conftest.err conftest.$ac_ext
8835 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8836 echo "${ECHO_T}$ac_header_preproc" >&6
8838 # So? What about this header?
8839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8840 yes:no: )
8841 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8842 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8844 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8845 ac_header_preproc=yes
8847 no:yes:* )
8848 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8849 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8850 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8851 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8852 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8853 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8854 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8855 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8857 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8858 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8859 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8861 cat <<\_ASBOX
8862 ## ------------------------------------------ ##
8863 ## Report this to the AC_PACKAGE_NAME lists. ##
8864 ## ------------------------------------------ ##
8865 _ASBOX
8867 sed "s/^/$as_me: WARNING: /" >&2
8869 esac
8870 echo "$as_me:$LINENO: checking for $ac_header" >&5
8871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8873 echo $ECHO_N "(cached) $ECHO_C" >&6
8874 else
8875 eval "$as_ac_Header=\$ac_header_preproc"
8877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8878 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8881 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8882 cat >>confdefs.h <<_ACEOF
8883 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8884 _ACEOF
8885 HAVE_FREETYPE_FREETYPE_H=1
8888 done
8890 if test "x${HAVE_LIB_FREETYPE}" != "x";then
8891 if test "x${HAVE_FREETYPE_FREETYPE_H}" != "x";then
8892 HAVE_FREETYPE=1
8896 if test "x${HAVE_FREETYPE}" = "x1"; then
8897 if test "x{$FREETYPE_CONFIG}" != "x"; then
8898 LIBS="$LIBS "`freetype-config --libs`
8899 else
8900 LIBS="$LIBS -lfreetype"
8903 echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8904 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6
8906 cat > conftest.c << EOF
8907 #include <freetype/freetype.h>
8908 #include <freetype/ftglyph.h>
8909 #include <freetype/ftsnames.h>
8910 #include <freetype/ttnameid.h>
8911 #include <freetype/ftoutln.h>
8913 int main()
8915 FT_Library ftlibrary;
8916 FT_Face face;
8917 FT_Error error;
8918 FT_ULong charcode;
8919 FT_UInt gindex;
8920 FT_Glyph glyph;
8921 FT_BBox bbox;
8922 FT_Matrix matrix;
8923 FT_UInt i;
8924 char* name = 0;
8925 char italic, bold;
8927 FT_Init_FreeType(&ftlibrary);
8928 FT_New_Face(ftlibrary, "filename", 0, &face);
8929 i = face->num_glyphs - 1;
8930 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
8931 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
8932 FT_Get_Postscript_Name(face);
8933 FT_Get_Char_Index(face, 33);
8934 FT_Get_First_Char(face, &i);
8935 FT_Get_Next_Char(face, 33, &i);
8936 if(FT_HAS_GLYPH_NAMES(face)) {
8937 FT_Get_Glyph_Name(face, 33, name, 127);
8939 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
8940 FT_Get_Glyph(face->glyph, &glyph);
8941 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
8942 FT_Done_Glyph(glyph);
8943 FT_Done_Face(face);
8944 FT_Done_FreeType(ftlibrary);
8945 return 0;
8949 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8950 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8951 echo "$as_me:$LINENO: result: yes" >&5
8952 echo "${ECHO_T}yes" >&6
8953 cat >>confdefs.h <<_ACEOF
8954 #define HAVE_FREETYPE 1
8955 _ACEOF
8957 cat >>confdefs.h <<_ACEOF
8958 #define USE_FREETYPE 1
8959 _ACEOF
8960 # for ttf2tp1
8961 else
8962 echo "configure: failed program was:" >&5
8963 cat conftest.c >&5
8964 HAVE_FREETYPE=0
8965 echo "$as_me:$LINENO: result: no" >&5
8966 echo "${ECHO_T}no" >&6
8968 rm -f conftest*
8971 # if the above didn't work out, reset all changes to the compiler variables.
8972 if test "x${HAVE_FREETYPE}" "!=" "x1"; then
8973 CPPFLAGS=$OLDCPPFLAGS
8974 LIBS=$OLDLIBS
8979 echo "$as_me:$LINENO: checking for byte order" >&5
8980 echo $ECHO_N "checking for byte order... $ECHO_C" >&6
8981 if test "$cross_compiling" = yes; then
8982 CROSSCOMPILE=1
8983 else
8984 cat >conftest.$ac_ext <<_ACEOF
8985 /* confdefs.h. */
8986 _ACEOF
8987 cat confdefs.h >>conftest.$ac_ext
8988 cat >>conftest.$ac_ext <<_ACEOF
8989 /* end confdefs.h. */
8991 int main (int argc, char *argv[])
8993 int i = 1;
8994 return *(char*)&i;
8997 _ACEOF
8998 rm -f conftest$ac_exeext
8999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9000 (eval $ac_link) 2>&5
9001 ac_status=$?
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9005 (eval $ac_try) 2>&5
9006 ac_status=$?
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); }; }; then
9009 BIGENDIAN=1
9010 else
9011 echo "$as_me: program exited with status $ac_status" >&5
9012 echo "$as_me: failed program was:" >&5
9013 sed 's/^/| /' conftest.$ac_ext >&5
9015 ( exit $ac_status )
9016 LITTLEENDIAN=1
9018 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9020 export CROSSCOMPILE
9022 if test "x${CROSSCOMPILE}" = "x1"; then
9023 echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
9024 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6
9025 echo "$as_me:$LINENO: checking target system type" >&5
9026 echo $ECHO_N "checking target system type... $ECHO_C" >&6
9027 if test "${ac_cv_target+set}" = set; then
9028 echo $ECHO_N "(cached) $ECHO_C" >&6
9029 else
9030 ac_cv_target_alias=$target_alias
9031 test "x$ac_cv_target_alias" = "x" &&
9032 ac_cv_target_alias=$ac_cv_host_alias
9033 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
9034 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
9035 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
9036 { (exit 1); exit 1; }; }
9039 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
9040 echo "${ECHO_T}$ac_cv_target" >&6
9041 target=$ac_cv_target
9042 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
9043 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
9044 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
9047 # The aliases save the names the user supplied, while $host etc.
9048 # will get canonicalized.
9049 test -n "$target_alias" &&
9050 test "$program_prefix$program_suffix$program_transform_name" = \
9051 NONENONEs,x,x, &&
9052 program_prefix=${target_alias}-
9053 echo "$as_me:$LINENO: checking for byte order, try 2" >&5
9054 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6
9055 case "${target}" in
9056 *86* | *-pc-* )
9057 LITTLEENDIAN=1
9059 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
9060 BIGENDIAN=1
9062 esac
9065 export LITTLEENDIAN
9066 if test "x${LITTLEENDIAN}" = "x1"; then
9067 echo "$as_me:$LINENO: result: little endian" >&5
9068 echo "${ECHO_T}little endian" >&6
9069 BYTEORDERCHECKOK=1
9071 export BIGENDIAN
9072 if test "x${BIGENDIAN}" = "x1"; then
9073 echo "$as_me:$LINENO: result: big endian" >&5
9074 echo "${ECHO_T}big endian" >&6
9075 BYTEORDERCHECKOK=1
9076 WORDS_BIGENDIAN=1
9077 export WORDS_BIGENDIAN
9078 cat >>confdefs.h <<_ACEOF
9079 #define WORDS_BIGENDIAN 1
9080 _ACEOF
9083 if test "x${BYTEORDERCHECKOK}" != "x1"; then
9084 echo "$as_me:$LINENO: result: unknown" >&5
9085 echo "${ECHO_T}unknown" >&6
9086 echo Byte order could not determined.
9087 exit 1
9092 echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
9093 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6
9094 if test "$cross_compiling" = yes; then
9095 CROSSCOMPILE=1
9096 else
9097 cat >conftest.$ac_ext <<_ACEOF
9098 /* confdefs.h. */
9099 _ACEOF
9100 cat confdefs.h >>conftest.$ac_ext
9101 cat >>conftest.$ac_ext <<_ACEOF
9102 /* end confdefs.h. */
9104 #include "stdlib.h"
9105 int main (int argc, char*argv[])
9107 return system("test `touch config.tmp2`");
9110 _ACEOF
9111 rm -f conftest$ac_exeext
9112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9113 (eval $ac_link) 2>&5
9114 ac_status=$?
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9118 (eval $ac_try) 2>&5
9119 ac_status=$?
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); }; }; then
9122 OK=OK
9123 else
9124 echo "$as_me: program exited with status $ac_status" >&5
9125 echo "$as_me: failed program was:" >&5
9126 sed 's/^/| /' conftest.$ac_ext >&5
9129 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9132 if test "x${OK}" = "xOK";then
9133 test -f config.tmp2 || OK=
9136 if test "x${CROSSCOMPILE}" = "x1";then
9137 OK=OK;
9139 if test "x${OK}" = "xOK";then
9140 rm -f config.tmp2
9141 echo "$as_me:$LINENO: result: yes" >&5
9142 echo "${ECHO_T}yes" >&6
9143 SYSTEM_BACKTICKS=1
9144 export SYSTEM_BACKTICKS
9145 cat >>confdefs.h <<_ACEOF
9146 #define SYSTEM_BACKTICKS 1
9147 _ACEOF
9149 else
9150 echo "$as_me:$LINENO: result: no" >&5
9151 echo "${ECHO_T}no" >&6
9156 test "$program_prefix" != NONE &&
9157 program_transform_name="s,^,$program_prefix,;$program_transform_name"
9158 # Use a double $ so make ignores it.
9159 test "$program_suffix" != NONE &&
9160 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
9161 # Double any \ or $. echo might interpret backslashes.
9162 # By default was `s,x,x', remove it if useless.
9163 cat <<\_ACEOF >conftest.sed
9164 s/[\\$]/&&/g;s/;s,x,x,$//
9165 _ACEOF
9166 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
9167 rm conftest.sed
9170 ac_config_headers="$ac_config_headers config.h"
9177 ac_header_dirent=no
9178 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9179 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9180 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9181 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9183 echo $ECHO_N "(cached) $ECHO_C" >&6
9184 else
9185 cat >conftest.$ac_ext <<_ACEOF
9186 /* confdefs.h. */
9187 _ACEOF
9188 cat confdefs.h >>conftest.$ac_ext
9189 cat >>conftest.$ac_ext <<_ACEOF
9190 /* end confdefs.h. */
9191 #include <sys/types.h>
9192 #include <$ac_hdr>
9195 main ()
9197 if ((DIR *) 0)
9198 return 0;
9200 return 0;
9202 _ACEOF
9203 rm -f conftest.$ac_objext
9204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9205 (eval $ac_compile) 2>conftest.er1
9206 ac_status=$?
9207 grep -v '^ *+' conftest.er1 >conftest.err
9208 rm -f conftest.er1
9209 cat conftest.err >&5
9210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 (exit $ac_status); } &&
9212 { ac_try='test -z "$ac_c_werror_flag"
9213 || test ! -s conftest.err'
9214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9215 (eval $ac_try) 2>&5
9216 ac_status=$?
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); }; } &&
9219 { ac_try='test -s conftest.$ac_objext'
9220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9221 (eval $ac_try) 2>&5
9222 ac_status=$?
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); }; }; then
9225 eval "$as_ac_Header=yes"
9226 else
9227 echo "$as_me: failed program was:" >&5
9228 sed 's/^/| /' conftest.$ac_ext >&5
9230 eval "$as_ac_Header=no"
9232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9237 cat >>confdefs.h <<_ACEOF
9238 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9239 _ACEOF
9241 ac_header_dirent=$ac_hdr; break
9244 done
9245 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9246 if test $ac_header_dirent = dirent.h; then
9247 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9248 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9249 if test "${ac_cv_search_opendir+set}" = set; then
9250 echo $ECHO_N "(cached) $ECHO_C" >&6
9251 else
9252 ac_func_search_save_LIBS=$LIBS
9253 ac_cv_search_opendir=no
9254 cat >conftest.$ac_ext <<_ACEOF
9255 /* confdefs.h. */
9256 _ACEOF
9257 cat confdefs.h >>conftest.$ac_ext
9258 cat >>conftest.$ac_ext <<_ACEOF
9259 /* end confdefs.h. */
9261 /* Override any gcc2 internal prototype to avoid an error. */
9262 #ifdef __cplusplus
9263 extern "C"
9264 #endif
9265 /* We use char because int might match the return type of a gcc2
9266 builtin and then its argument prototype would still apply. */
9267 char opendir ();
9269 main ()
9271 opendir ();
9273 return 0;
9275 _ACEOF
9276 rm -f conftest.$ac_objext conftest$ac_exeext
9277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9278 (eval $ac_link) 2>conftest.er1
9279 ac_status=$?
9280 grep -v '^ *+' conftest.er1 >conftest.err
9281 rm -f conftest.er1
9282 cat conftest.err >&5
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); } &&
9285 { ac_try='test -z "$ac_c_werror_flag"
9286 || test ! -s conftest.err'
9287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9288 (eval $ac_try) 2>&5
9289 ac_status=$?
9290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291 (exit $ac_status); }; } &&
9292 { ac_try='test -s conftest$ac_exeext'
9293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9294 (eval $ac_try) 2>&5
9295 ac_status=$?
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); }; }; then
9298 ac_cv_search_opendir="none required"
9299 else
9300 echo "$as_me: failed program was:" >&5
9301 sed 's/^/| /' conftest.$ac_ext >&5
9304 rm -f conftest.err conftest.$ac_objext \
9305 conftest$ac_exeext conftest.$ac_ext
9306 if test "$ac_cv_search_opendir" = no; then
9307 for ac_lib in dir; do
9308 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9309 cat >conftest.$ac_ext <<_ACEOF
9310 /* confdefs.h. */
9311 _ACEOF
9312 cat confdefs.h >>conftest.$ac_ext
9313 cat >>conftest.$ac_ext <<_ACEOF
9314 /* end confdefs.h. */
9316 /* Override any gcc2 internal prototype to avoid an error. */
9317 #ifdef __cplusplus
9318 extern "C"
9319 #endif
9320 /* We use char because int might match the return type of a gcc2
9321 builtin and then its argument prototype would still apply. */
9322 char opendir ();
9324 main ()
9326 opendir ();
9328 return 0;
9330 _ACEOF
9331 rm -f conftest.$ac_objext conftest$ac_exeext
9332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9333 (eval $ac_link) 2>conftest.er1
9334 ac_status=$?
9335 grep -v '^ *+' conftest.er1 >conftest.err
9336 rm -f conftest.er1
9337 cat conftest.err >&5
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); } &&
9340 { ac_try='test -z "$ac_c_werror_flag"
9341 || test ! -s conftest.err'
9342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9343 (eval $ac_try) 2>&5
9344 ac_status=$?
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); }; } &&
9347 { ac_try='test -s conftest$ac_exeext'
9348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9349 (eval $ac_try) 2>&5
9350 ac_status=$?
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); }; }; then
9353 ac_cv_search_opendir="-l$ac_lib"
9354 break
9355 else
9356 echo "$as_me: failed program was:" >&5
9357 sed 's/^/| /' conftest.$ac_ext >&5
9360 rm -f conftest.err conftest.$ac_objext \
9361 conftest$ac_exeext conftest.$ac_ext
9362 done
9364 LIBS=$ac_func_search_save_LIBS
9366 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9367 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9368 if test "$ac_cv_search_opendir" != no; then
9369 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9373 else
9374 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9375 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9376 if test "${ac_cv_search_opendir+set}" = set; then
9377 echo $ECHO_N "(cached) $ECHO_C" >&6
9378 else
9379 ac_func_search_save_LIBS=$LIBS
9380 ac_cv_search_opendir=no
9381 cat >conftest.$ac_ext <<_ACEOF
9382 /* confdefs.h. */
9383 _ACEOF
9384 cat confdefs.h >>conftest.$ac_ext
9385 cat >>conftest.$ac_ext <<_ACEOF
9386 /* end confdefs.h. */
9388 /* Override any gcc2 internal prototype to avoid an error. */
9389 #ifdef __cplusplus
9390 extern "C"
9391 #endif
9392 /* We use char because int might match the return type of a gcc2
9393 builtin and then its argument prototype would still apply. */
9394 char opendir ();
9396 main ()
9398 opendir ();
9400 return 0;
9402 _ACEOF
9403 rm -f conftest.$ac_objext conftest$ac_exeext
9404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9405 (eval $ac_link) 2>conftest.er1
9406 ac_status=$?
9407 grep -v '^ *+' conftest.er1 >conftest.err
9408 rm -f conftest.er1
9409 cat conftest.err >&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); } &&
9412 { ac_try='test -z "$ac_c_werror_flag"
9413 || test ! -s conftest.err'
9414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9415 (eval $ac_try) 2>&5
9416 ac_status=$?
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); }; } &&
9419 { ac_try='test -s conftest$ac_exeext'
9420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9421 (eval $ac_try) 2>&5
9422 ac_status=$?
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); }; }; then
9425 ac_cv_search_opendir="none required"
9426 else
9427 echo "$as_me: failed program was:" >&5
9428 sed 's/^/| /' conftest.$ac_ext >&5
9431 rm -f conftest.err conftest.$ac_objext \
9432 conftest$ac_exeext conftest.$ac_ext
9433 if test "$ac_cv_search_opendir" = no; then
9434 for ac_lib in x; do
9435 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9436 cat >conftest.$ac_ext <<_ACEOF
9437 /* confdefs.h. */
9438 _ACEOF
9439 cat confdefs.h >>conftest.$ac_ext
9440 cat >>conftest.$ac_ext <<_ACEOF
9441 /* end confdefs.h. */
9443 /* Override any gcc2 internal prototype to avoid an error. */
9444 #ifdef __cplusplus
9445 extern "C"
9446 #endif
9447 /* We use char because int might match the return type of a gcc2
9448 builtin and then its argument prototype would still apply. */
9449 char opendir ();
9451 main ()
9453 opendir ();
9455 return 0;
9457 _ACEOF
9458 rm -f conftest.$ac_objext conftest$ac_exeext
9459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9460 (eval $ac_link) 2>conftest.er1
9461 ac_status=$?
9462 grep -v '^ *+' conftest.er1 >conftest.err
9463 rm -f conftest.er1
9464 cat conftest.err >&5
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); } &&
9467 { ac_try='test -z "$ac_c_werror_flag"
9468 || test ! -s conftest.err'
9469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9470 (eval $ac_try) 2>&5
9471 ac_status=$?
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); }; } &&
9474 { ac_try='test -s conftest$ac_exeext'
9475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9476 (eval $ac_try) 2>&5
9477 ac_status=$?
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); }; }; then
9480 ac_cv_search_opendir="-l$ac_lib"
9481 break
9482 else
9483 echo "$as_me: failed program was:" >&5
9484 sed 's/^/| /' conftest.$ac_ext >&5
9487 rm -f conftest.err conftest.$ac_objext \
9488 conftest$ac_exeext conftest.$ac_ext
9489 done
9491 LIBS=$ac_func_search_save_LIBS
9493 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9494 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9495 if test "$ac_cv_search_opendir" != no; then
9496 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9502 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9503 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9504 if test "${ac_cv_header_stdc+set}" = set; then
9505 echo $ECHO_N "(cached) $ECHO_C" >&6
9506 else
9507 cat >conftest.$ac_ext <<_ACEOF
9508 /* confdefs.h. */
9509 _ACEOF
9510 cat confdefs.h >>conftest.$ac_ext
9511 cat >>conftest.$ac_ext <<_ACEOF
9512 /* end confdefs.h. */
9513 #include <stdlib.h>
9514 #include <stdarg.h>
9515 #include <string.h>
9516 #include <float.h>
9519 main ()
9523 return 0;
9525 _ACEOF
9526 rm -f conftest.$ac_objext
9527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9528 (eval $ac_compile) 2>conftest.er1
9529 ac_status=$?
9530 grep -v '^ *+' conftest.er1 >conftest.err
9531 rm -f conftest.er1
9532 cat conftest.err >&5
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); } &&
9535 { ac_try='test -z "$ac_c_werror_flag"
9536 || test ! -s conftest.err'
9537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9538 (eval $ac_try) 2>&5
9539 ac_status=$?
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); }; } &&
9542 { ac_try='test -s conftest.$ac_objext'
9543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9544 (eval $ac_try) 2>&5
9545 ac_status=$?
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); }; }; then
9548 ac_cv_header_stdc=yes
9549 else
9550 echo "$as_me: failed program was:" >&5
9551 sed 's/^/| /' conftest.$ac_ext >&5
9553 ac_cv_header_stdc=no
9555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9557 if test $ac_cv_header_stdc = yes; then
9558 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9559 cat >conftest.$ac_ext <<_ACEOF
9560 /* confdefs.h. */
9561 _ACEOF
9562 cat confdefs.h >>conftest.$ac_ext
9563 cat >>conftest.$ac_ext <<_ACEOF
9564 /* end confdefs.h. */
9565 #include <string.h>
9567 _ACEOF
9568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9569 $EGREP "memchr" >/dev/null 2>&1; then
9571 else
9572 ac_cv_header_stdc=no
9574 rm -f conftest*
9578 if test $ac_cv_header_stdc = yes; then
9579 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9580 cat >conftest.$ac_ext <<_ACEOF
9581 /* confdefs.h. */
9582 _ACEOF
9583 cat confdefs.h >>conftest.$ac_ext
9584 cat >>conftest.$ac_ext <<_ACEOF
9585 /* end confdefs.h. */
9586 #include <stdlib.h>
9588 _ACEOF
9589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9590 $EGREP "free" >/dev/null 2>&1; then
9592 else
9593 ac_cv_header_stdc=no
9595 rm -f conftest*
9599 if test $ac_cv_header_stdc = yes; then
9600 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9601 if test "$cross_compiling" = yes; then
9603 else
9604 cat >conftest.$ac_ext <<_ACEOF
9605 /* confdefs.h. */
9606 _ACEOF
9607 cat confdefs.h >>conftest.$ac_ext
9608 cat >>conftest.$ac_ext <<_ACEOF
9609 /* end confdefs.h. */
9610 #include <ctype.h>
9611 #if ((' ' & 0x0FF) == 0x020)
9612 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9613 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9614 #else
9615 # define ISLOWER(c) \
9616 (('a' <= (c) && (c) <= 'i') \
9617 || ('j' <= (c) && (c) <= 'r') \
9618 || ('s' <= (c) && (c) <= 'z'))
9619 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9620 #endif
9622 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9624 main ()
9626 int i;
9627 for (i = 0; i < 256; i++)
9628 if (XOR (islower (i), ISLOWER (i))
9629 || toupper (i) != TOUPPER (i))
9630 exit(2);
9631 exit (0);
9633 _ACEOF
9634 rm -f conftest$ac_exeext
9635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9636 (eval $ac_link) 2>&5
9637 ac_status=$?
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9641 (eval $ac_try) 2>&5
9642 ac_status=$?
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); }; }; then
9646 else
9647 echo "$as_me: program exited with status $ac_status" >&5
9648 echo "$as_me: failed program was:" >&5
9649 sed 's/^/| /' conftest.$ac_ext >&5
9651 ( exit $ac_status )
9652 ac_cv_header_stdc=no
9654 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9658 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9659 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9660 if test $ac_cv_header_stdc = yes; then
9662 cat >>confdefs.h <<\_ACEOF
9663 #define STDC_HEADERS 1
9664 _ACEOF
9682 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
9684 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9686 echo "$as_me:$LINENO: checking for $ac_header" >&5
9687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9689 echo $ECHO_N "(cached) $ECHO_C" >&6
9691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9693 else
9694 # Is the header compilable?
9695 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9696 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9697 cat >conftest.$ac_ext <<_ACEOF
9698 /* confdefs.h. */
9699 _ACEOF
9700 cat confdefs.h >>conftest.$ac_ext
9701 cat >>conftest.$ac_ext <<_ACEOF
9702 /* end confdefs.h. */
9703 $ac_includes_default
9704 #include <$ac_header>
9705 _ACEOF
9706 rm -f conftest.$ac_objext
9707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9708 (eval $ac_compile) 2>conftest.er1
9709 ac_status=$?
9710 grep -v '^ *+' conftest.er1 >conftest.err
9711 rm -f conftest.er1
9712 cat conftest.err >&5
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); } &&
9715 { ac_try='test -z "$ac_c_werror_flag"
9716 || test ! -s conftest.err'
9717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9718 (eval $ac_try) 2>&5
9719 ac_status=$?
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); }; } &&
9722 { ac_try='test -s conftest.$ac_objext'
9723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9724 (eval $ac_try) 2>&5
9725 ac_status=$?
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); }; }; then
9728 ac_header_compiler=yes
9729 else
9730 echo "$as_me: failed program was:" >&5
9731 sed 's/^/| /' conftest.$ac_ext >&5
9733 ac_header_compiler=no
9735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9736 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9737 echo "${ECHO_T}$ac_header_compiler" >&6
9739 # Is the header present?
9740 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9741 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9742 cat >conftest.$ac_ext <<_ACEOF
9743 /* confdefs.h. */
9744 _ACEOF
9745 cat confdefs.h >>conftest.$ac_ext
9746 cat >>conftest.$ac_ext <<_ACEOF
9747 /* end confdefs.h. */
9748 #include <$ac_header>
9749 _ACEOF
9750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9752 ac_status=$?
9753 grep -v '^ *+' conftest.er1 >conftest.err
9754 rm -f conftest.er1
9755 cat conftest.err >&5
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); } >/dev/null; then
9758 if test -s conftest.err; then
9759 ac_cpp_err=$ac_c_preproc_warn_flag
9760 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9761 else
9762 ac_cpp_err=
9764 else
9765 ac_cpp_err=yes
9767 if test -z "$ac_cpp_err"; then
9768 ac_header_preproc=yes
9769 else
9770 echo "$as_me: failed program was:" >&5
9771 sed 's/^/| /' conftest.$ac_ext >&5
9773 ac_header_preproc=no
9775 rm -f conftest.err conftest.$ac_ext
9776 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9777 echo "${ECHO_T}$ac_header_preproc" >&6
9779 # So? What about this header?
9780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9781 yes:no: )
9782 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9783 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9785 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9786 ac_header_preproc=yes
9788 no:yes:* )
9789 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9790 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9791 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9792 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9793 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9794 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9795 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9796 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9799 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9800 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9802 cat <<\_ASBOX
9803 ## ------------------------------------------ ##
9804 ## Report this to the AC_PACKAGE_NAME lists. ##
9805 ## ------------------------------------------ ##
9806 _ASBOX
9808 sed "s/^/$as_me: WARNING: /" >&2
9810 esac
9811 echo "$as_me:$LINENO: checking for $ac_header" >&5
9812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9814 echo $ECHO_N "(cached) $ECHO_C" >&6
9815 else
9816 eval "$as_ac_Header=\$ac_header_preproc"
9818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9823 cat >>confdefs.h <<_ACEOF
9824 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9825 _ACEOF
9829 done
9832 if test "x${ac_cv_header_jpeglib_h}" != "xyes"; then
9833 DISABLEPDF2SWF=true;
9834 DISABLEJPEG2SWF=true;
9835 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
9837 if test "x${ac_cv_header_t1lib_h}" != "xyes"; then
9838 DISABLEPDF2SWF=true;
9839 MISSINGLIBS="${MISSINGLIBS} t1lib.h"
9841 if test "x${ac_cv_header_zlib_h}" != "xyes"; then
9842 DISABLEPNG2SWF=true;
9843 MISSINGLIBS="${MISSINGLIBS} zlib.h"
9844 ZLIBMISSING=true;
9847 cat >>confdefs.h <<_ACEOF
9848 #define PACKAGE "$PACKAGE"
9849 _ACEOF
9851 cat >>confdefs.h <<_ACEOF
9852 #define VERSION "$VERSION"
9853 _ACEOF
9861 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9862 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9863 if test "${ac_cv_c_const+set}" = set; then
9864 echo $ECHO_N "(cached) $ECHO_C" >&6
9865 else
9866 cat >conftest.$ac_ext <<_ACEOF
9867 /* confdefs.h. */
9868 _ACEOF
9869 cat confdefs.h >>conftest.$ac_ext
9870 cat >>conftest.$ac_ext <<_ACEOF
9871 /* end confdefs.h. */
9874 main ()
9876 /* FIXME: Include the comments suggested by Paul. */
9877 #ifndef __cplusplus
9878 /* Ultrix mips cc rejects this. */
9879 typedef int charset[2];
9880 const charset x;
9881 /* SunOS 4.1.1 cc rejects this. */
9882 char const *const *ccp;
9883 char **p;
9884 /* NEC SVR4.0.2 mips cc rejects this. */
9885 struct point {int x, y;};
9886 static struct point const zero = {0,0};
9887 /* AIX XL C 1.02.0.0 rejects this.
9888 It does not let you subtract one const X* pointer from another in
9889 an arm of an if-expression whose if-part is not a constant
9890 expression */
9891 const char *g = "string";
9892 ccp = &g + (g ? g-g : 0);
9893 /* HPUX 7.0 cc rejects these. */
9894 ++ccp;
9895 p = (char**) ccp;
9896 ccp = (char const *const *) p;
9897 { /* SCO 3.2v4 cc rejects this. */
9898 char *t;
9899 char const *s = 0 ? (char *) 0 : (char const *) 0;
9901 *t++ = 0;
9903 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9904 int x[] = {25, 17};
9905 const int *foo = &x[0];
9906 ++foo;
9908 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9909 typedef const int *iptr;
9910 iptr p = 0;
9911 ++p;
9913 { /* AIX XL C 1.02.0.0 rejects this saying
9914 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9915 struct s { int j; const int *ap[3]; };
9916 struct s *b; b->j = 5;
9918 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9919 const int foo = 10;
9921 #endif
9924 return 0;
9926 _ACEOF
9927 rm -f conftest.$ac_objext
9928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9929 (eval $ac_compile) 2>conftest.er1
9930 ac_status=$?
9931 grep -v '^ *+' conftest.er1 >conftest.err
9932 rm -f conftest.er1
9933 cat conftest.err >&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); } &&
9936 { ac_try='test -z "$ac_c_werror_flag"
9937 || test ! -s conftest.err'
9938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9939 (eval $ac_try) 2>&5
9940 ac_status=$?
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); }; } &&
9943 { ac_try='test -s conftest.$ac_objext'
9944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9945 (eval $ac_try) 2>&5
9946 ac_status=$?
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); }; }; then
9949 ac_cv_c_const=yes
9950 else
9951 echo "$as_me: failed program was:" >&5
9952 sed 's/^/| /' conftest.$ac_ext >&5
9954 ac_cv_c_const=no
9956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9958 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9959 echo "${ECHO_T}$ac_cv_c_const" >&6
9960 if test $ac_cv_c_const = no; then
9962 cat >>confdefs.h <<\_ACEOF
9963 #define const
9964 _ACEOF
9968 echo "$as_me:$LINENO: checking for inline" >&5
9969 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9970 if test "${ac_cv_c_inline+set}" = set; then
9971 echo $ECHO_N "(cached) $ECHO_C" >&6
9972 else
9973 ac_cv_c_inline=no
9974 for ac_kw in inline __inline__ __inline; do
9975 cat >conftest.$ac_ext <<_ACEOF
9976 /* confdefs.h. */
9977 _ACEOF
9978 cat confdefs.h >>conftest.$ac_ext
9979 cat >>conftest.$ac_ext <<_ACEOF
9980 /* end confdefs.h. */
9981 #ifndef __cplusplus
9982 typedef int foo_t;
9983 static $ac_kw foo_t static_foo () {return 0; }
9984 $ac_kw foo_t foo () {return 0; }
9985 #endif
9987 _ACEOF
9988 rm -f conftest.$ac_objext
9989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9990 (eval $ac_compile) 2>conftest.er1
9991 ac_status=$?
9992 grep -v '^ *+' conftest.er1 >conftest.err
9993 rm -f conftest.er1
9994 cat conftest.err >&5
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); } &&
9997 { ac_try='test -z "$ac_c_werror_flag"
9998 || test ! -s conftest.err'
9999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10000 (eval $ac_try) 2>&5
10001 ac_status=$?
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); }; } &&
10004 { ac_try='test -s conftest.$ac_objext'
10005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10006 (eval $ac_try) 2>&5
10007 ac_status=$?
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); }; }; then
10010 ac_cv_c_inline=$ac_kw; break
10011 else
10012 echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.$ac_ext >&5
10016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10017 done
10020 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10021 echo "${ECHO_T}$ac_cv_c_inline" >&6
10024 case $ac_cv_c_inline in
10025 inline | yes) ;;
10027 case $ac_cv_c_inline in
10028 no) ac_val=;;
10029 *) ac_val=$ac_cv_c_inline;;
10030 esac
10031 cat >>confdefs.h <<_ACEOF
10032 #ifndef __cplusplus
10033 #define inline $ac_val
10034 #endif
10035 _ACEOF
10037 esac
10039 echo "$as_me:$LINENO: checking for off_t" >&5
10040 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10041 if test "${ac_cv_type_off_t+set}" = set; then
10042 echo $ECHO_N "(cached) $ECHO_C" >&6
10043 else
10044 cat >conftest.$ac_ext <<_ACEOF
10045 /* confdefs.h. */
10046 _ACEOF
10047 cat confdefs.h >>conftest.$ac_ext
10048 cat >>conftest.$ac_ext <<_ACEOF
10049 /* end confdefs.h. */
10050 $ac_includes_default
10052 main ()
10054 if ((off_t *) 0)
10055 return 0;
10056 if (sizeof (off_t))
10057 return 0;
10059 return 0;
10061 _ACEOF
10062 rm -f conftest.$ac_objext
10063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10064 (eval $ac_compile) 2>conftest.er1
10065 ac_status=$?
10066 grep -v '^ *+' conftest.er1 >conftest.err
10067 rm -f conftest.er1
10068 cat conftest.err >&5
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); } &&
10071 { ac_try='test -z "$ac_c_werror_flag"
10072 || test ! -s conftest.err'
10073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10074 (eval $ac_try) 2>&5
10075 ac_status=$?
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); }; } &&
10078 { ac_try='test -s conftest.$ac_objext'
10079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10080 (eval $ac_try) 2>&5
10081 ac_status=$?
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); }; }; then
10084 ac_cv_type_off_t=yes
10085 else
10086 echo "$as_me: failed program was:" >&5
10087 sed 's/^/| /' conftest.$ac_ext >&5
10089 ac_cv_type_off_t=no
10091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10093 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10094 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10095 if test $ac_cv_type_off_t = yes; then
10097 else
10099 cat >>confdefs.h <<_ACEOF
10100 #define off_t long
10101 _ACEOF
10105 echo "$as_me:$LINENO: checking for size_t" >&5
10106 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10107 if test "${ac_cv_type_size_t+set}" = set; then
10108 echo $ECHO_N "(cached) $ECHO_C" >&6
10109 else
10110 cat >conftest.$ac_ext <<_ACEOF
10111 /* confdefs.h. */
10112 _ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h. */
10116 $ac_includes_default
10118 main ()
10120 if ((size_t *) 0)
10121 return 0;
10122 if (sizeof (size_t))
10123 return 0;
10125 return 0;
10127 _ACEOF
10128 rm -f conftest.$ac_objext
10129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10130 (eval $ac_compile) 2>conftest.er1
10131 ac_status=$?
10132 grep -v '^ *+' conftest.er1 >conftest.err
10133 rm -f conftest.er1
10134 cat conftest.err >&5
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); } &&
10137 { ac_try='test -z "$ac_c_werror_flag"
10138 || test ! -s conftest.err'
10139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10140 (eval $ac_try) 2>&5
10141 ac_status=$?
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); }; } &&
10144 { ac_try='test -s conftest.$ac_objext'
10145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10146 (eval $ac_try) 2>&5
10147 ac_status=$?
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); }; }; then
10150 ac_cv_type_size_t=yes
10151 else
10152 echo "$as_me: failed program was:" >&5
10153 sed 's/^/| /' conftest.$ac_ext >&5
10155 ac_cv_type_size_t=no
10157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10159 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10160 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10161 if test $ac_cv_type_size_t = yes; then
10163 else
10165 cat >>confdefs.h <<_ACEOF
10166 #define size_t unsigned
10167 _ACEOF
10171 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10172 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10173 if test "${ac_cv_struct_tm+set}" = set; then
10174 echo $ECHO_N "(cached) $ECHO_C" >&6
10175 else
10176 cat >conftest.$ac_ext <<_ACEOF
10177 /* confdefs.h. */
10178 _ACEOF
10179 cat confdefs.h >>conftest.$ac_ext
10180 cat >>conftest.$ac_ext <<_ACEOF
10181 /* end confdefs.h. */
10182 #include <sys/types.h>
10183 #include <time.h>
10186 main ()
10188 struct tm *tp; tp->tm_sec;
10190 return 0;
10192 _ACEOF
10193 rm -f conftest.$ac_objext
10194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10195 (eval $ac_compile) 2>conftest.er1
10196 ac_status=$?
10197 grep -v '^ *+' conftest.er1 >conftest.err
10198 rm -f conftest.er1
10199 cat conftest.err >&5
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); } &&
10202 { ac_try='test -z "$ac_c_werror_flag"
10203 || test ! -s conftest.err'
10204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10205 (eval $ac_try) 2>&5
10206 ac_status=$?
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); }; } &&
10209 { ac_try='test -s conftest.$ac_objext'
10210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211 (eval $ac_try) 2>&5
10212 ac_status=$?
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); }; }; then
10215 ac_cv_struct_tm=time.h
10216 else
10217 echo "$as_me: failed program was:" >&5
10218 sed 's/^/| /' conftest.$ac_ext >&5
10220 ac_cv_struct_tm=sys/time.h
10222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10224 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10225 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10226 if test $ac_cv_struct_tm = sys/time.h; then
10228 cat >>confdefs.h <<\_ACEOF
10229 #define TM_IN_SYS_TIME 1
10230 _ACEOF
10234 echo "$as_me:$LINENO: checking for boolean" >&5
10235 echo $ECHO_N "checking for boolean... $ECHO_C" >&6
10236 if test "${ac_cv_type_boolean+set}" = set; then
10237 echo $ECHO_N "(cached) $ECHO_C" >&6
10238 else
10239 cat >conftest.$ac_ext <<_ACEOF
10240 /* confdefs.h. */
10241 _ACEOF
10242 cat confdefs.h >>conftest.$ac_ext
10243 cat >>conftest.$ac_ext <<_ACEOF
10244 /* end confdefs.h. */
10245 $ac_includes_default
10247 main ()
10249 if ((boolean *) 0)
10250 return 0;
10251 if (sizeof (boolean))
10252 return 0;
10254 return 0;
10256 _ACEOF
10257 rm -f conftest.$ac_objext
10258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10259 (eval $ac_compile) 2>conftest.er1
10260 ac_status=$?
10261 grep -v '^ *+' conftest.er1 >conftest.err
10262 rm -f conftest.er1
10263 cat conftest.err >&5
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); } &&
10266 { ac_try='test -z "$ac_c_werror_flag"
10267 || test ! -s conftest.err'
10268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10269 (eval $ac_try) 2>&5
10270 ac_status=$?
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); }; } &&
10273 { ac_try='test -s conftest.$ac_objext'
10274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10275 (eval $ac_try) 2>&5
10276 ac_status=$?
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); }; }; then
10279 ac_cv_type_boolean=yes
10280 else
10281 echo "$as_me: failed program was:" >&5
10282 sed 's/^/| /' conftest.$ac_ext >&5
10284 ac_cv_type_boolean=no
10286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10288 echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
10289 echo "${ECHO_T}$ac_cv_type_boolean" >&6
10290 if test $ac_cv_type_boolean = yes; then
10292 else
10294 cat >>confdefs.h <<_ACEOF
10295 #define boolean int
10296 _ACEOF
10300 echo "$as_me:$LINENO: checking for bool" >&5
10301 echo $ECHO_N "checking for bool... $ECHO_C" >&6
10302 if test "${ac_cv_type_bool+set}" = set; then
10303 echo $ECHO_N "(cached) $ECHO_C" >&6
10304 else
10305 cat >conftest.$ac_ext <<_ACEOF
10306 /* confdefs.h. */
10307 _ACEOF
10308 cat confdefs.h >>conftest.$ac_ext
10309 cat >>conftest.$ac_ext <<_ACEOF
10310 /* end confdefs.h. */
10311 $ac_includes_default
10313 main ()
10315 if ((bool *) 0)
10316 return 0;
10317 if (sizeof (bool))
10318 return 0;
10320 return 0;
10322 _ACEOF
10323 rm -f conftest.$ac_objext
10324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10325 (eval $ac_compile) 2>conftest.er1
10326 ac_status=$?
10327 grep -v '^ *+' conftest.er1 >conftest.err
10328 rm -f conftest.er1
10329 cat conftest.err >&5
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); } &&
10332 { ac_try='test -z "$ac_c_werror_flag"
10333 || test ! -s conftest.err'
10334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10335 (eval $ac_try) 2>&5
10336 ac_status=$?
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); }; } &&
10339 { ac_try='test -s conftest.$ac_objext'
10340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10341 (eval $ac_try) 2>&5
10342 ac_status=$?
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); }; }; then
10345 ac_cv_type_bool=yes
10346 else
10347 echo "$as_me: failed program was:" >&5
10348 sed 's/^/| /' conftest.$ac_ext >&5
10350 ac_cv_type_bool=no
10352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10354 echo "$as_me:$LINENO: result: $ac_cv_type_bool" >&5
10355 echo "${ECHO_T}$ac_cv_type_bool" >&6
10356 if test $ac_cv_type_bool = yes; then
10358 else
10360 cat >>confdefs.h <<_ACEOF
10361 #define bool char
10362 _ACEOF
10377 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
10379 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10380 echo "$as_me:$LINENO: checking for $ac_func" >&5
10381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10382 if eval "test \"\${$as_ac_var+set}\" = set"; then
10383 echo $ECHO_N "(cached) $ECHO_C" >&6
10384 else
10385 cat >conftest.$ac_ext <<_ACEOF
10386 /* confdefs.h. */
10387 _ACEOF
10388 cat confdefs.h >>conftest.$ac_ext
10389 cat >>conftest.$ac_ext <<_ACEOF
10390 /* end confdefs.h. */
10391 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10393 #define $ac_func innocuous_$ac_func
10395 /* System header to define __stub macros and hopefully few prototypes,
10396 which can conflict with char $ac_func (); below.
10397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10398 <limits.h> exists even on freestanding compilers. */
10400 #ifdef __STDC__
10401 # include <limits.h>
10402 #else
10403 # include <assert.h>
10404 #endif
10406 #undef $ac_func
10408 /* Override any gcc2 internal prototype to avoid an error. */
10409 #ifdef __cplusplus
10410 extern "C"
10412 #endif
10413 /* We use char because int might match the return type of a gcc2
10414 builtin and then its argument prototype would still apply. */
10415 char $ac_func ();
10416 /* The GNU C library defines this for functions which it implements
10417 to always fail with ENOSYS. Some functions are actually named
10418 something starting with __ and the normal name is an alias. */
10419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10420 choke me
10421 #else
10422 char (*f) () = $ac_func;
10423 #endif
10424 #ifdef __cplusplus
10426 #endif
10429 main ()
10431 return f != $ac_func;
10433 return 0;
10435 _ACEOF
10436 rm -f conftest.$ac_objext conftest$ac_exeext
10437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10438 (eval $ac_link) 2>conftest.er1
10439 ac_status=$?
10440 grep -v '^ *+' conftest.er1 >conftest.err
10441 rm -f conftest.er1
10442 cat conftest.err >&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); } &&
10445 { ac_try='test -z "$ac_c_werror_flag"
10446 || test ! -s conftest.err'
10447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10448 (eval $ac_try) 2>&5
10449 ac_status=$?
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); }; } &&
10452 { ac_try='test -s conftest$ac_exeext'
10453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10454 (eval $ac_try) 2>&5
10455 ac_status=$?
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); }; }; then
10458 eval "$as_ac_var=yes"
10459 else
10460 echo "$as_me: failed program was:" >&5
10461 sed 's/^/| /' conftest.$ac_ext >&5
10463 eval "$as_ac_var=no"
10465 rm -f conftest.err conftest.$ac_objext \
10466 conftest$ac_exeext conftest.$ac_ext
10468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10469 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10470 if test `eval echo '${'$as_ac_var'}'` = yes; then
10471 cat >>confdefs.h <<_ACEOF
10472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10473 _ACEOF
10476 done
10480 for ac_prog in avifile-config
10482 # Extract the first word of "$ac_prog", so it can be a program name with args.
10483 set dummy $ac_prog; ac_word=$2
10484 echo "$as_me:$LINENO: checking for $ac_word" >&5
10485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10486 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
10487 echo $ECHO_N "(cached) $ECHO_C" >&6
10488 else
10489 if test -n "$AVIFILE_CONFIG"; then
10490 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
10491 else
10492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10493 for as_dir in $PATH
10495 IFS=$as_save_IFS
10496 test -z "$as_dir" && as_dir=.
10497 for ac_exec_ext in '' $ac_executable_extensions; do
10498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10499 ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
10500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10501 break 2
10503 done
10504 done
10508 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
10509 if test -n "$AVIFILE_CONFIG"; then
10510 echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
10511 echo "${ECHO_T}$AVIFILE_CONFIG" >&6
10512 else
10513 echo "$as_me:$LINENO: result: no" >&5
10514 echo "${ECHO_T}no" >&6
10517 test -n "$AVIFILE_CONFIG" && break
10518 done
10521 if test "x$AVIFILE_CONFIG" '!=' "x";then
10522 OLDCPPFLAGS="$CPPFLAGS"
10523 #OLDLDFLAGS="$LDFLAGS"
10524 CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
10525 #LDFLAGS="$LDFLAGS `$AVIFILE_CONFIG --libs`"
10528 for ac_header in avifile/version.h version.h
10530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10532 echo "$as_me:$LINENO: checking for $ac_header" >&5
10533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10535 echo $ECHO_N "(cached) $ECHO_C" >&6
10537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10539 else
10540 # Is the header compilable?
10541 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10542 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10543 cat >conftest.$ac_ext <<_ACEOF
10544 /* confdefs.h. */
10545 _ACEOF
10546 cat confdefs.h >>conftest.$ac_ext
10547 cat >>conftest.$ac_ext <<_ACEOF
10548 /* end confdefs.h. */
10549 $ac_includes_default
10550 #include <$ac_header>
10551 _ACEOF
10552 rm -f conftest.$ac_objext
10553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10554 (eval $ac_compile) 2>conftest.er1
10555 ac_status=$?
10556 grep -v '^ *+' conftest.er1 >conftest.err
10557 rm -f conftest.er1
10558 cat conftest.err >&5
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); } &&
10561 { ac_try='test -z "$ac_c_werror_flag"
10562 || test ! -s conftest.err'
10563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10564 (eval $ac_try) 2>&5
10565 ac_status=$?
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); }; } &&
10568 { ac_try='test -s conftest.$ac_objext'
10569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10570 (eval $ac_try) 2>&5
10571 ac_status=$?
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); }; }; then
10574 ac_header_compiler=yes
10575 else
10576 echo "$as_me: failed program was:" >&5
10577 sed 's/^/| /' conftest.$ac_ext >&5
10579 ac_header_compiler=no
10581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10582 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10583 echo "${ECHO_T}$ac_header_compiler" >&6
10585 # Is the header present?
10586 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10587 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10588 cat >conftest.$ac_ext <<_ACEOF
10589 /* confdefs.h. */
10590 _ACEOF
10591 cat confdefs.h >>conftest.$ac_ext
10592 cat >>conftest.$ac_ext <<_ACEOF
10593 /* end confdefs.h. */
10594 #include <$ac_header>
10595 _ACEOF
10596 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10597 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10598 ac_status=$?
10599 grep -v '^ *+' conftest.er1 >conftest.err
10600 rm -f conftest.er1
10601 cat conftest.err >&5
10602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603 (exit $ac_status); } >/dev/null; then
10604 if test -s conftest.err; then
10605 ac_cpp_err=$ac_c_preproc_warn_flag
10606 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10607 else
10608 ac_cpp_err=
10610 else
10611 ac_cpp_err=yes
10613 if test -z "$ac_cpp_err"; then
10614 ac_header_preproc=yes
10615 else
10616 echo "$as_me: failed program was:" >&5
10617 sed 's/^/| /' conftest.$ac_ext >&5
10619 ac_header_preproc=no
10621 rm -f conftest.err conftest.$ac_ext
10622 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10623 echo "${ECHO_T}$ac_header_preproc" >&6
10625 # So? What about this header?
10626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10627 yes:no: )
10628 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10629 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10631 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10632 ac_header_preproc=yes
10634 no:yes:* )
10635 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10636 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10637 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10638 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10639 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10640 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10641 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10642 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10644 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10645 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10646 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10648 cat <<\_ASBOX
10649 ## ------------------------------------------ ##
10650 ## Report this to the AC_PACKAGE_NAME lists. ##
10651 ## ------------------------------------------ ##
10652 _ASBOX
10654 sed "s/^/$as_me: WARNING: /" >&2
10656 esac
10657 echo "$as_me:$LINENO: checking for $ac_header" >&5
10658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10660 echo $ECHO_N "(cached) $ECHO_C" >&6
10661 else
10662 eval "$as_ac_Header=\$ac_header_preproc"
10664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10669 cat >>confdefs.h <<_ACEOF
10670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10671 _ACEOF
10675 done
10677 #LDFLAGS="$OLDLDFLAGS"
10678 CPPFLAGS="$OLDCPPFLAGS"
10681 echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
10682 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6
10684 if test "x${ac_cv_header_version_h}" '=' "xyes";then
10685 HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
10687 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
10688 HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
10691 cat > conftest.cpp << EOF
10693 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
10694 // so we have to introduce them this way
10695 $HAVE_VERSION_H_DEFINE
10696 $HAVE_AVIFILE_VERSION_H_DEFINE
10698 #ifdef HAVE_VERSION_H
10699 #include <version.h>
10700 #endif
10701 #ifdef HAVE_AVIFILE_VERSION_H
10702 #include <avifile/version.h>
10703 #endif
10705 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
10706 #include <avifile.h>
10707 #include <aviplay.h>
10708 #include <fourcc.h>
10709 #include <creators.h>
10710 #include <StreamInfo.h>
10711 #define VERSION6
10712 #else
10713 #include <avifile.h>
10714 #include <aviplay.h>
10715 #include <aviutil.h>
10716 #define Width width
10717 #define Height height
10718 #define Data data
10719 #define Bpp bpp
10720 #endif
10722 void test()
10724 IAviReadFile* player;
10725 IAviReadStream* astream;
10726 IAviReadStream* vstream;
10727 player = CreateIAviReadFile(0);
10728 astream = player->GetStream(0, AviStream::Audio);
10729 vstream = player->GetStream(0, AviStream::Video);
10730 vstream -> StartStreaming();
10731 astream -> StartStreaming();
10732 #ifndef VERSION6
10733 MainAVIHeader head;
10734 player->GetFileHeader(&head);
10735 head.dwMicroSecPerFrame;
10736 head.dwTotalFrames;
10737 head.dwStreams;
10738 head.dwWidth;
10739 head.dwHeight;
10740 head.dwMicroSecPerFrame;
10741 astream->GetEndPos(),
10742 astream->GetEndTime());
10743 player->StreamCount();
10744 #else
10745 StreamInfo*audioinfo;
10746 StreamInfo*videoinfo;
10747 audioinfo = astream->GetStreamInfo();
10748 videoinfo = vstream->GetStreamInfo();
10749 videoinfo->GetVideoWidth();
10750 videoinfo->GetVideoHeight();
10751 audioinfo->GetAudioSamplesPerSec();
10752 videoinfo->GetFps();
10753 #endif
10754 CImage*img = vstream->GetFrame();
10755 img->ToRGB();
10756 img->Data();
10757 img->Bpp();
10758 img->Width();
10759 img->Height();
10760 WAVEFORMATEX wave;
10761 astream->GetAudioFormatInfo(&wave,0);
10762 uint_t a,b;
10763 astream->ReadFrames(0,0,0,a,b);
10765 int main (int argc, char*argv)
10767 return 0;
10771 if test "x$AVIFILE_CONFIG" '!=' "x";then
10772 ac_link='$CXX $CPPFLAGS $CXXFLAGS `$AVIFILE_CONFIG --cflags` conftest.cpp `$AVIFILE_CONFIG --libs` -o conftest${ac_exeext}'
10773 if { (eval echo avi2swf.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
10774 echo "$as_me:$LINENO: result: yes" >&5
10775 echo "${ECHO_T}yes" >&6
10776 AVIFILE=true
10777 export AVIFILE
10778 cat >>confdefs.h <<_ACEOF
10779 #define AVIFILE true
10780 _ACEOF
10782 else
10783 echo "configure: failed program was:" >&5
10784 cat conftest.cpp >&5
10785 echo "$as_me:$LINENO: result: no" >&5
10786 echo "${ECHO_T}no" >&6
10788 else
10789 echo "$as_me:$LINENO: result: no" >&5
10790 echo "${ECHO_T}no" >&6
10792 rm -f conftest*
10795 avi2swf="avi2swf/Makefile"
10796 if test "x${AVIFILE}" != "xtrue"; then
10797 echo "* Couldn't compile the avifile test program."
10798 echo "* Disabling avi2swf tool..."
10799 echo all install uninstall clean: > avi2swf/Makefile
10800 avi2swf=
10803 if test "x${DISABLE_LAME}" = "xtrue"; then
10804 echo "*" Disabling lame support...
10805 lame_objects=
10806 else
10807 cat >>confdefs.h <<_ACEOF
10808 #define HAVE_LAME 1
10809 _ACEOF
10811 lame_objects='$(lame_objects_2)'
10815 if test "x${UNCOMPRESS}" = "xgzip"; then
10816 cat >>confdefs.h <<_ACEOF
10817 #define USE_GZIP 1
10818 _ACEOF
10823 JPEG2SWF='jpeg2swf$(E)'
10824 export JPEG2SWF
10825 PNG2SWF='png2swf$(E)'
10826 export PNG2SWF
10828 # ------------------------------------------------------------------
10830 echo "$as_me:$LINENO: checking for Python.h and PIL" >&5
10831 echo $ECHO_N "checking for Python.h and PIL... $ECHO_C" >&6
10832 # should we support python versions below 2.2?
10833 if test -f "/usr/lib/python2.2/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.2/Python.h";then
10834 PY_VERSION=2.2
10836 if test -f "/usr/lib/python2.3/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.3/Python.h";then
10837 PY_VERSION=2.3
10839 if test -f "/usr/lib/python2.4/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.4/Python.h";then
10840 PY_VERSION=2.4
10843 if test "x$PY_VERSION" "!=" "x"; then
10844 pythonrfxswf="lib/python/Makefile"
10845 if test "x$PYTHON_LIB" = "x";then
10846 PYTHON_LIB="-lpython$PY_VERSION /usr/lib/python$PY_VERSION/site-packages/PIL/_imaging.so"
10848 if test "x$PYTHON_INCLUDES" = "x";then
10849 PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
10851 export PYTHON_INCLUDES PYTHON_LIB
10854 echo "$as_me:$LINENO: result: yes" >&5
10855 echo "${ECHO_T}yes" >&6
10856 else
10857 echo all install uninstall clean: > lib/python/Makefile
10858 echo "* No usable python installation found"
10859 echo "* Not compiling the python interface"
10860 echo "$as_me:$LINENO: result: nope" >&5
10861 echo "${ECHO_T}nope" >&6
10864 # ------------------------------------------------------------------
10866 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
10867 echo "***************************************************"
10868 echo "The following headers/libraries are missing: " ${MISSINGLIBS}
10869 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
10870 echo "Disabling pdf2swf tool..."
10871 rm -f pdf2swf/Makefile
10872 echo all install uninstall clean: > pdf2swf/Makefile
10874 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
10875 echo "Disabling jpeg2swf tool..."
10876 JPEG2SWF=
10877 export JPEG2SWF
10879 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
10880 echo "Disabling png2swf tool..."
10881 PNG2SWF=
10882 export PNG2SWF
10884 if test "x${ZLIBMISSING}" = "xtrue"; then
10885 echo
10886 echo "Warning! Without zlib, you will not be able to read"
10887 echo "or write compressed Flash MX files!"
10889 echo "***************************************************"
10890 FILES="./release Makefile.common ${avi2swf} Makefile lib/lame/Makefile lib/Makefile lib/action/Makefile src/Makefile swfs/Makefile ${pythonrfxswf}"
10891 else
10892 FILES="./release Makefile.common ${avi2swf} Makefile lib/lame/Makefile lib/Makefile lib/action/Makefile src/Makefile pdf2swf/Makefile pdf2swf/xpdf/Makefile pdf2swf/ttf2pt1/Makefile swfs/Makefile ${pythonrfxswf}"
10897 ac_config_files="$ac_config_files ${FILES}"
10899 cat >confcache <<\_ACEOF
10900 # This file is a shell script that caches the results of configure
10901 # tests run on this system so they can be shared between configure
10902 # scripts and configure runs, see configure's option --config-cache.
10903 # It is not useful on other systems. If it contains results you don't
10904 # want to keep, you may remove or edit it.
10906 # config.status only pays attention to the cache file if you give it
10907 # the --recheck option to rerun configure.
10909 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10910 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10911 # following values.
10913 _ACEOF
10915 # The following way of writing the cache mishandles newlines in values,
10916 # but we know of no workaround that is simple, portable, and efficient.
10917 # So, don't put newlines in cache variables' values.
10918 # Ultrix sh set writes to stderr and can't be redirected directly,
10919 # and sets the high bit in the cache file unless we assign to the vars.
10921 (set) 2>&1 |
10922 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10923 *ac_space=\ *)
10924 # `set' does not quote correctly, so add quotes (double-quote
10925 # substitution turns \\\\ into \\, and sed turns \\ into \).
10926 sed -n \
10927 "s/'/'\\\\''/g;
10928 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10931 # `set' quotes correctly as required by POSIX, so do not add quotes.
10932 sed -n \
10933 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10935 esac;
10937 sed '
10938 t clear
10939 : clear
10940 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10941 t end
10942 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10943 : end' >>confcache
10944 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10945 if test -w $cache_file; then
10946 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10947 cat confcache >$cache_file
10948 else
10949 echo "not updating unwritable cache $cache_file"
10952 rm -f confcache
10954 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10955 # Let make expand exec_prefix.
10956 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10958 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10959 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10960 # trailing colons and then remove the whole line if VPATH becomes empty
10961 # (actually we leave an empty line to preserve line numbers).
10962 if test "x$srcdir" = x.; then
10963 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10964 s/:*\$(srcdir):*/:/;
10965 s/:*\${srcdir}:*/:/;
10966 s/:*@srcdir@:*/:/;
10967 s/^\([^=]*=[ ]*\):*/\1/;
10968 s/:*$//;
10969 s/^[^=]*=[ ]*$//;
10973 DEFS=-DHAVE_CONFIG_H
10975 ac_libobjs=
10976 ac_ltlibobjs=
10977 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10978 # 1. Remove the extension, and $U if already installed.
10979 ac_i=`echo "$ac_i" |
10980 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10981 # 2. Add them.
10982 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10983 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10984 done
10985 LIBOBJS=$ac_libobjs
10987 LTLIBOBJS=$ac_ltlibobjs
10991 : ${CONFIG_STATUS=./config.status}
10992 ac_clean_files_save=$ac_clean_files
10993 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10994 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10995 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10996 cat >$CONFIG_STATUS <<_ACEOF
10997 #! $SHELL
10998 # Generated by $as_me.
10999 # Run this file to recreate the current configuration.
11000 # Compiler output produced by configure, useful for debugging
11001 # configure, is in config.log if it exists.
11003 debug=false
11004 ac_cs_recheck=false
11005 ac_cs_silent=false
11006 SHELL=\${CONFIG_SHELL-$SHELL}
11007 _ACEOF
11009 cat >>$CONFIG_STATUS <<\_ACEOF
11010 ## --------------------- ##
11011 ## M4sh Initialization. ##
11012 ## --------------------- ##
11014 # Be Bourne compatible
11015 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11016 emulate sh
11017 NULLCMD=:
11018 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11019 # is contrary to our usage. Disable this feature.
11020 alias -g '${1+"$@"}'='"$@"'
11021 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11022 set -o posix
11024 DUALCASE=1; export DUALCASE # for MKS sh
11026 # Support unset when possible.
11027 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11028 as_unset=unset
11029 else
11030 as_unset=false
11034 # Work around bugs in pre-3.0 UWIN ksh.
11035 $as_unset ENV MAIL MAILPATH
11036 PS1='$ '
11037 PS2='> '
11038 PS4='+ '
11040 # NLS nuisances.
11041 for as_var in \
11042 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11043 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11044 LC_TELEPHONE LC_TIME
11046 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11047 eval $as_var=C; export $as_var
11048 else
11049 $as_unset $as_var
11051 done
11053 # Required to use basename.
11054 if expr a : '\(a\)' >/dev/null 2>&1; then
11055 as_expr=expr
11056 else
11057 as_expr=false
11060 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11061 as_basename=basename
11062 else
11063 as_basename=false
11067 # Name of the executable.
11068 as_me=`$as_basename "$0" ||
11069 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11070 X"$0" : 'X\(//\)$' \| \
11071 X"$0" : 'X\(/\)$' \| \
11072 . : '\(.\)' 2>/dev/null ||
11073 echo X/"$0" |
11074 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11075 /^X\/\(\/\/\)$/{ s//\1/; q; }
11076 /^X\/\(\/\).*/{ s//\1/; q; }
11077 s/.*/./; q'`
11080 # PATH needs CR, and LINENO needs CR and PATH.
11081 # Avoid depending upon Character Ranges.
11082 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11083 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11084 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11085 as_cr_digits='0123456789'
11086 as_cr_alnum=$as_cr_Letters$as_cr_digits
11088 # The user is always right.
11089 if test "${PATH_SEPARATOR+set}" != set; then
11090 echo "#! /bin/sh" >conf$$.sh
11091 echo "exit 0" >>conf$$.sh
11092 chmod +x conf$$.sh
11093 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11094 PATH_SEPARATOR=';'
11095 else
11096 PATH_SEPARATOR=:
11098 rm -f conf$$.sh
11102 as_lineno_1=$LINENO
11103 as_lineno_2=$LINENO
11104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11105 test "x$as_lineno_1" != "x$as_lineno_2" &&
11106 test "x$as_lineno_3" = "x$as_lineno_2" || {
11107 # Find who we are. Look in the path if we contain no path at all
11108 # relative or not.
11109 case $0 in
11110 *[\\/]* ) as_myself=$0 ;;
11111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11112 for as_dir in $PATH
11114 IFS=$as_save_IFS
11115 test -z "$as_dir" && as_dir=.
11116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11117 done
11120 esac
11121 # We did not find ourselves, most probably we were run as `sh COMMAND'
11122 # in which case we are not to be found in the path.
11123 if test "x$as_myself" = x; then
11124 as_myself=$0
11126 if test ! -f "$as_myself"; then
11127 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11128 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11129 { (exit 1); exit 1; }; }
11131 case $CONFIG_SHELL in
11133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11136 IFS=$as_save_IFS
11137 test -z "$as_dir" && as_dir=.
11138 for as_base in sh bash ksh sh5; do
11139 case $as_dir in
11141 if ("$as_dir/$as_base" -c '
11142 as_lineno_1=$LINENO
11143 as_lineno_2=$LINENO
11144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11145 test "x$as_lineno_1" != "x$as_lineno_2" &&
11146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11149 CONFIG_SHELL=$as_dir/$as_base
11150 export CONFIG_SHELL
11151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11152 fi;;
11153 esac
11154 done
11155 done
11157 esac
11159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11160 # uniformly replaced by the line number. The first 'sed' inserts a
11161 # line-number line before each line; the second 'sed' does the real
11162 # work. The second script uses 'N' to pair each line-number line
11163 # with the numbered line, and appends trailing '-' during
11164 # substitution so that $LINENO is not a special case at line end.
11165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11167 sed '=' <$as_myself |
11168 sed '
11170 s,$,-,
11171 : loop
11172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11173 t loop
11174 s,-$,,
11175 s,^['$as_cr_digits']*\n,,
11176 ' >$as_me.lineno &&
11177 chmod +x $as_me.lineno ||
11178 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11179 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11180 { (exit 1); exit 1; }; }
11182 # Don't try to exec as it changes $[0], causing all sort of problems
11183 # (the dirname of $[0] is not the place where we might find the
11184 # original and so on. Autoconf is especially sensible to this).
11185 . ./$as_me.lineno
11186 # Exit status is that of the last command.
11187 exit
11191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11192 *c*,-n*) ECHO_N= ECHO_C='
11193 ' ECHO_T=' ' ;;
11194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11196 esac
11198 if expr a : '\(a\)' >/dev/null 2>&1; then
11199 as_expr=expr
11200 else
11201 as_expr=false
11204 rm -f conf$$ conf$$.exe conf$$.file
11205 echo >conf$$.file
11206 if ln -s conf$$.file conf$$ 2>/dev/null; then
11207 # We could just check for DJGPP; but this test a) works b) is more generic
11208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11209 if test -f conf$$.exe; then
11210 # Don't use ln at all; we don't have any links
11211 as_ln_s='cp -p'
11212 else
11213 as_ln_s='ln -s'
11215 elif ln conf$$.file conf$$ 2>/dev/null; then
11216 as_ln_s=ln
11217 else
11218 as_ln_s='cp -p'
11220 rm -f conf$$ conf$$.exe conf$$.file
11222 if mkdir -p . 2>/dev/null; then
11223 as_mkdir_p=:
11224 else
11225 test -d ./-p && rmdir ./-p
11226 as_mkdir_p=false
11229 as_executable_p="test -f"
11231 # Sed expression to map a string onto a valid CPP name.
11232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11234 # Sed expression to map a string onto a valid variable name.
11235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11238 # IFS
11239 # We need space, tab and new line, in precisely that order.
11240 as_nl='
11242 IFS=" $as_nl"
11244 # CDPATH.
11245 $as_unset CDPATH
11247 exec 6>&1
11249 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11250 # report actual input values of CONFIG_FILES etc. instead of their
11251 # values after options handling. Logging --version etc. is OK.
11252 exec 5>>config.log
11254 echo
11255 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11256 ## Running $as_me. ##
11257 _ASBOX
11258 } >&5
11259 cat >&5 <<_CSEOF
11261 This file was extended by $as_me, which was
11262 generated by GNU Autoconf 2.59. Invocation command line was
11264 CONFIG_FILES = $CONFIG_FILES
11265 CONFIG_HEADERS = $CONFIG_HEADERS
11266 CONFIG_LINKS = $CONFIG_LINKS
11267 CONFIG_COMMANDS = $CONFIG_COMMANDS
11268 $ $0 $@
11270 _CSEOF
11271 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11272 echo >&5
11273 _ACEOF
11275 # Files that config.status was made for.
11276 if test -n "$ac_config_files"; then
11277 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11280 if test -n "$ac_config_headers"; then
11281 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11284 if test -n "$ac_config_links"; then
11285 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11288 if test -n "$ac_config_commands"; then
11289 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11292 cat >>$CONFIG_STATUS <<\_ACEOF
11294 ac_cs_usage="\
11295 \`$as_me' instantiates files from templates according to the
11296 current configuration.
11298 Usage: $0 [OPTIONS] [FILE]...
11300 -h, --help print this help, then exit
11301 -V, --version print version number, then exit
11302 -q, --quiet do not print progress messages
11303 -d, --debug don't remove temporary files
11304 --recheck update $as_me by reconfiguring in the same conditions
11305 --file=FILE[:TEMPLATE]
11306 instantiate the configuration file FILE
11307 --header=FILE[:TEMPLATE]
11308 instantiate the configuration header FILE
11310 Configuration files:
11311 $config_files
11313 Configuration headers:
11314 $config_headers
11316 Report bugs to <bug-autoconf@gnu.org>."
11317 _ACEOF
11319 cat >>$CONFIG_STATUS <<_ACEOF
11320 ac_cs_version="\\
11321 config.status
11322 configured by $0, generated by GNU Autoconf 2.59,
11323 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11325 Copyright (C) 2003 Free Software Foundation, Inc.
11326 This config.status script is free software; the Free Software Foundation
11327 gives unlimited permission to copy, distribute and modify it."
11328 srcdir=$srcdir
11329 INSTALL="$INSTALL"
11330 _ACEOF
11332 cat >>$CONFIG_STATUS <<\_ACEOF
11333 # If no file are specified by the user, then we need to provide default
11334 # value. By we need to know if files were specified by the user.
11335 ac_need_defaults=:
11336 while test $# != 0
11338 case $1 in
11339 --*=*)
11340 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11341 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11342 ac_shift=:
11345 ac_option=$1
11346 ac_optarg=$2
11347 ac_shift=shift
11349 *) # This is not an option, so the user has probably given explicit
11350 # arguments.
11351 ac_option=$1
11352 ac_need_defaults=false;;
11353 esac
11355 case $ac_option in
11356 # Handling of the options.
11357 _ACEOF
11358 cat >>$CONFIG_STATUS <<\_ACEOF
11359 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11360 ac_cs_recheck=: ;;
11361 --version | --vers* | -V )
11362 echo "$ac_cs_version"; exit 0 ;;
11363 --he | --h)
11364 # Conflict between --help and --header
11365 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11366 Try \`$0 --help' for more information." >&5
11367 echo "$as_me: error: ambiguous option: $1
11368 Try \`$0 --help' for more information." >&2;}
11369 { (exit 1); exit 1; }; };;
11370 --help | --hel | -h )
11371 echo "$ac_cs_usage"; exit 0 ;;
11372 --debug | --d* | -d )
11373 debug=: ;;
11374 --file | --fil | --fi | --f )
11375 $ac_shift
11376 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11377 ac_need_defaults=false;;
11378 --header | --heade | --head | --hea )
11379 $ac_shift
11380 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11381 ac_need_defaults=false;;
11382 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11383 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11384 ac_cs_silent=: ;;
11386 # This is an error.
11387 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11388 Try \`$0 --help' for more information." >&5
11389 echo "$as_me: error: unrecognized option: $1
11390 Try \`$0 --help' for more information." >&2;}
11391 { (exit 1); exit 1; }; } ;;
11393 *) ac_config_targets="$ac_config_targets $1" ;;
11395 esac
11396 shift
11397 done
11399 ac_configure_extra_args=
11401 if $ac_cs_silent; then
11402 exec 6>/dev/null
11403 ac_configure_extra_args="$ac_configure_extra_args --silent"
11406 _ACEOF
11407 cat >>$CONFIG_STATUS <<_ACEOF
11408 if \$ac_cs_recheck; then
11409 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11410 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11413 _ACEOF
11419 cat >>$CONFIG_STATUS <<\_ACEOF
11420 for ac_config_target in $ac_config_targets
11422 case "$ac_config_target" in
11423 # Handling of arguments.
11424 "${FILES}" ) CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
11425 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11426 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11427 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11428 { (exit 1); exit 1; }; };;
11429 esac
11430 done
11432 # If the user did not use the arguments to specify the items to instantiate,
11433 # then the envvar interface is used. Set only those that are not.
11434 # We use the long form for the default assignment because of an extremely
11435 # bizarre bug on SunOS 4.1.3.
11436 if $ac_need_defaults; then
11437 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11438 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11441 # Have a temporary directory for convenience. Make it in the build tree
11442 # simply because there is no reason to put it here, and in addition,
11443 # creating and moving files from /tmp can sometimes cause problems.
11444 # Create a temporary directory, and hook for its removal unless debugging.
11445 $debug ||
11447 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11448 trap '{ (exit 1); exit 1; }' 1 2 13 15
11451 # Create a (secure) tmp directory for tmp files.
11454 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11455 test -n "$tmp" && test -d "$tmp"
11456 } ||
11458 tmp=./confstat$$-$RANDOM
11459 (umask 077 && mkdir $tmp)
11460 } ||
11462 echo "$me: cannot create a temporary directory in ." >&2
11463 { (exit 1); exit 1; }
11466 _ACEOF
11468 cat >>$CONFIG_STATUS <<_ACEOF
11471 # CONFIG_FILES section.
11474 # No need to generate the scripts if there are no CONFIG_FILES.
11475 # This happens for instance when ./config.status config.h
11476 if test -n "\$CONFIG_FILES"; then
11477 # Protect against being on the right side of a sed subst in config.status.
11478 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11479 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11480 s,@SHELL@,$SHELL,;t t
11481 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11482 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11483 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11484 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11485 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11486 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11487 s,@exec_prefix@,$exec_prefix,;t t
11488 s,@prefix@,$prefix,;t t
11489 s,@program_transform_name@,$program_transform_name,;t t
11490 s,@bindir@,$bindir,;t t
11491 s,@sbindir@,$sbindir,;t t
11492 s,@libexecdir@,$libexecdir,;t t
11493 s,@datadir@,$datadir,;t t
11494 s,@sysconfdir@,$sysconfdir,;t t
11495 s,@sharedstatedir@,$sharedstatedir,;t t
11496 s,@localstatedir@,$localstatedir,;t t
11497 s,@libdir@,$libdir,;t t
11498 s,@includedir@,$includedir,;t t
11499 s,@oldincludedir@,$oldincludedir,;t t
11500 s,@infodir@,$infodir,;t t
11501 s,@mandir@,$mandir,;t t
11502 s,@build_alias@,$build_alias,;t t
11503 s,@host_alias@,$host_alias,;t t
11504 s,@target_alias@,$target_alias,;t t
11505 s,@DEFS@,$DEFS,;t t
11506 s,@ECHO_C@,$ECHO_C,;t t
11507 s,@ECHO_N@,$ECHO_N,;t t
11508 s,@ECHO_T@,$ECHO_T,;t t
11509 s,@LIBS@,$LIBS,;t t
11510 s,@build@,$build,;t t
11511 s,@build_cpu@,$build_cpu,;t t
11512 s,@build_vendor@,$build_vendor,;t t
11513 s,@build_os@,$build_os,;t t
11514 s,@host@,$host,;t t
11515 s,@host_cpu@,$host_cpu,;t t
11516 s,@host_vendor@,$host_vendor,;t t
11517 s,@host_os@,$host_os,;t t
11518 s,@CC@,$CC,;t t
11519 s,@CFLAGS@,$CFLAGS,;t t
11520 s,@LDFLAGS@,$LDFLAGS,;t t
11521 s,@CPPFLAGS@,$CPPFLAGS,;t t
11522 s,@ac_ct_CC@,$ac_ct_CC,;t t
11523 s,@EXEEXT@,$EXEEXT,;t t
11524 s,@OBJEXT@,$OBJEXT,;t t
11525 s,@CXX@,$CXX,;t t
11526 s,@CXXFLAGS@,$CXXFLAGS,;t t
11527 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
11528 s,@CPP@,$CPP,;t t
11529 s,@RANLIB@,$RANLIB,;t t
11530 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11531 s,@SET_MAKE@,$SET_MAKE,;t t
11532 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11533 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11534 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11535 s,@LN_S@,$LN_S,;t t
11536 s,@ECHO@,$ECHO,;t t
11537 s,@STRIP@,$STRIP,;t t
11538 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11539 s,@EGREP@,$EGREP,;t t
11540 s,@LIBTOOL@,$LIBTOOL,;t t
11541 s,@UNCOMPRESS@,$UNCOMPRESS,;t t
11542 s,@AR@,$AR,;t t
11543 s,@SLEXT@,$SLEXT,;t t
11544 s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t
11545 s,@target@,$target,;t t
11546 s,@target_cpu@,$target_cpu,;t t
11547 s,@target_vendor@,$target_vendor,;t t
11548 s,@target_os@,$target_os,;t t
11549 s,@WORDS_BIGENDIAN@,$WORDS_BIGENDIAN,;t t
11550 s,@SYSTEM_BACKTICKS@,$SYSTEM_BACKTICKS,;t t
11551 s,@PACKAGE@,$PACKAGE,;t t
11552 s,@VERSION@,$VERSION,;t t
11553 s,@HAVE_UNISTD_H@,$HAVE_UNISTD_H,;t t
11554 s,@AVIFILE_CONFIG@,$AVIFILE_CONFIG,;t t
11555 s,@lame_objects@,$lame_objects,;t t
11556 s,@USE_GZIP@,$USE_GZIP,;t t
11557 s,@PYTHON_LIB@,$PYTHON_LIB,;t t
11558 s,@PYTHON_INCLUDES@,$PYTHON_INCLUDES,;t t
11559 s,@JPEG2SWF@,$JPEG2SWF,;t t
11560 s,@PNG2SWF@,$PNG2SWF,;t t
11561 s,@LIBOBJS@,$LIBOBJS,;t t
11562 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11563 CEOF
11565 _ACEOF
11567 cat >>$CONFIG_STATUS <<\_ACEOF
11568 # Split the substitutions into bite-sized pieces for seds with
11569 # small command number limits, like on Digital OSF/1 and HP-UX.
11570 ac_max_sed_lines=48
11571 ac_sed_frag=1 # Number of current file.
11572 ac_beg=1 # First line for current file.
11573 ac_end=$ac_max_sed_lines # Line after last line for current file.
11574 ac_more_lines=:
11575 ac_sed_cmds=
11576 while $ac_more_lines; do
11577 if test $ac_beg -gt 1; then
11578 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11579 else
11580 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11582 if test ! -s $tmp/subs.frag; then
11583 ac_more_lines=false
11584 else
11585 # The purpose of the label and of the branching condition is to
11586 # speed up the sed processing (if there are no `@' at all, there
11587 # is no need to browse any of the substitutions).
11588 # These are the two extra sed commands mentioned above.
11589 (echo ':t
11590 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11591 if test -z "$ac_sed_cmds"; then
11592 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11593 else
11594 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11596 ac_sed_frag=`expr $ac_sed_frag + 1`
11597 ac_beg=$ac_end
11598 ac_end=`expr $ac_end + $ac_max_sed_lines`
11600 done
11601 if test -z "$ac_sed_cmds"; then
11602 ac_sed_cmds=cat
11604 fi # test -n "$CONFIG_FILES"
11606 _ACEOF
11607 cat >>$CONFIG_STATUS <<\_ACEOF
11608 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11609 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11610 case $ac_file in
11611 - | *:- | *:-:* ) # input from stdin
11612 cat >$tmp/stdin
11613 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11614 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11615 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11616 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11617 * ) ac_file_in=$ac_file.in ;;
11618 esac
11620 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11621 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11622 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11623 X"$ac_file" : 'X\(//\)[^/]' \| \
11624 X"$ac_file" : 'X\(//\)$' \| \
11625 X"$ac_file" : 'X\(/\)' \| \
11626 . : '\(.\)' 2>/dev/null ||
11627 echo X"$ac_file" |
11628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11629 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11630 /^X\(\/\/\)$/{ s//\1/; q; }
11631 /^X\(\/\).*/{ s//\1/; q; }
11632 s/.*/./; q'`
11633 { if $as_mkdir_p; then
11634 mkdir -p "$ac_dir"
11635 else
11636 as_dir="$ac_dir"
11637 as_dirs=
11638 while test ! -d "$as_dir"; do
11639 as_dirs="$as_dir $as_dirs"
11640 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11641 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11642 X"$as_dir" : 'X\(//\)[^/]' \| \
11643 X"$as_dir" : 'X\(//\)$' \| \
11644 X"$as_dir" : 'X\(/\)' \| \
11645 . : '\(.\)' 2>/dev/null ||
11646 echo X"$as_dir" |
11647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11648 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11649 /^X\(\/\/\)$/{ s//\1/; q; }
11650 /^X\(\/\).*/{ s//\1/; q; }
11651 s/.*/./; q'`
11652 done
11653 test ! -n "$as_dirs" || mkdir $as_dirs
11654 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11655 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11656 { (exit 1); exit 1; }; }; }
11658 ac_builddir=.
11660 if test "$ac_dir" != .; then
11661 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11662 # A "../" for each directory in $ac_dir_suffix.
11663 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11664 else
11665 ac_dir_suffix= ac_top_builddir=
11668 case $srcdir in
11669 .) # No --srcdir option. We are building in place.
11670 ac_srcdir=.
11671 if test -z "$ac_top_builddir"; then
11672 ac_top_srcdir=.
11673 else
11674 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11675 fi ;;
11676 [\\/]* | ?:[\\/]* ) # Absolute path.
11677 ac_srcdir=$srcdir$ac_dir_suffix;
11678 ac_top_srcdir=$srcdir ;;
11679 *) # Relative path.
11680 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11681 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11682 esac
11684 # Do not use `cd foo && pwd` to compute absolute paths, because
11685 # the directories may not exist.
11686 case `pwd` in
11687 .) ac_abs_builddir="$ac_dir";;
11689 case "$ac_dir" in
11690 .) ac_abs_builddir=`pwd`;;
11691 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11692 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11693 esac;;
11694 esac
11695 case $ac_abs_builddir in
11696 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11698 case ${ac_top_builddir}. in
11699 .) ac_abs_top_builddir=$ac_abs_builddir;;
11700 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11701 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11702 esac;;
11703 esac
11704 case $ac_abs_builddir in
11705 .) ac_abs_srcdir=$ac_srcdir;;
11707 case $ac_srcdir in
11708 .) ac_abs_srcdir=$ac_abs_builddir;;
11709 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11710 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11711 esac;;
11712 esac
11713 case $ac_abs_builddir in
11714 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11716 case $ac_top_srcdir in
11717 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11718 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11719 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11720 esac;;
11721 esac
11724 case $INSTALL in
11725 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11726 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11727 esac
11729 if test x"$ac_file" != x-; then
11730 { echo "$as_me:$LINENO: creating $ac_file" >&5
11731 echo "$as_me: creating $ac_file" >&6;}
11732 rm -f "$ac_file"
11734 # Let's still pretend it is `configure' which instantiates (i.e., don't
11735 # use $as_me), people would be surprised to read:
11736 # /* config.h. Generated by config.status. */
11737 if test x"$ac_file" = x-; then
11738 configure_input=
11739 else
11740 configure_input="$ac_file. "
11742 configure_input=$configure_input"Generated from `echo $ac_file_in |
11743 sed 's,.*/,,'` by configure."
11745 # First look for the input files in the build tree, otherwise in the
11746 # src tree.
11747 ac_file_inputs=`IFS=:
11748 for f in $ac_file_in; do
11749 case $f in
11750 -) echo $tmp/stdin ;;
11751 [\\/$]*)
11752 # Absolute (can't be DOS-style, as IFS=:)
11753 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11754 echo "$as_me: error: cannot find input file: $f" >&2;}
11755 { (exit 1); exit 1; }; }
11756 echo "$f";;
11757 *) # Relative
11758 if test -f "$f"; then
11759 # Build tree
11760 echo "$f"
11761 elif test -f "$srcdir/$f"; then
11762 # Source tree
11763 echo "$srcdir/$f"
11764 else
11765 # /dev/null tree
11766 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11767 echo "$as_me: error: cannot find input file: $f" >&2;}
11768 { (exit 1); exit 1; }; }
11769 fi;;
11770 esac
11771 done` || { (exit 1); exit 1; }
11772 _ACEOF
11773 cat >>$CONFIG_STATUS <<_ACEOF
11774 sed "$ac_vpsub
11775 $extrasub
11776 _ACEOF
11777 cat >>$CONFIG_STATUS <<\_ACEOF
11779 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11780 s,@configure_input@,$configure_input,;t t
11781 s,@srcdir@,$ac_srcdir,;t t
11782 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11783 s,@top_srcdir@,$ac_top_srcdir,;t t
11784 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11785 s,@builddir@,$ac_builddir,;t t
11786 s,@abs_builddir@,$ac_abs_builddir,;t t
11787 s,@top_builddir@,$ac_top_builddir,;t t
11788 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11789 s,@INSTALL@,$ac_INSTALL,;t t
11790 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11791 rm -f $tmp/stdin
11792 if test x"$ac_file" != x-; then
11793 mv $tmp/out $ac_file
11794 else
11795 cat $tmp/out
11796 rm -f $tmp/out
11799 done
11800 _ACEOF
11801 cat >>$CONFIG_STATUS <<\_ACEOF
11804 # CONFIG_HEADER section.
11807 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11808 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11810 # ac_d sets the value in "#define NAME VALUE" lines.
11811 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11812 ac_dB='[ ].*$,\1#\2'
11813 ac_dC=' '
11814 ac_dD=',;t'
11815 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11816 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11817 ac_uB='$,\1#\2define\3'
11818 ac_uC=' '
11819 ac_uD=',;t'
11821 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11822 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11823 case $ac_file in
11824 - | *:- | *:-:* ) # input from stdin
11825 cat >$tmp/stdin
11826 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11827 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11828 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11829 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11830 * ) ac_file_in=$ac_file.in ;;
11831 esac
11833 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11834 echo "$as_me: creating $ac_file" >&6;}
11836 # First look for the input files in the build tree, otherwise in the
11837 # src tree.
11838 ac_file_inputs=`IFS=:
11839 for f in $ac_file_in; do
11840 case $f in
11841 -) echo $tmp/stdin ;;
11842 [\\/$]*)
11843 # Absolute (can't be DOS-style, as IFS=:)
11844 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11845 echo "$as_me: error: cannot find input file: $f" >&2;}
11846 { (exit 1); exit 1; }; }
11847 # Do quote $f, to prevent DOS paths from being IFS'd.
11848 echo "$f";;
11849 *) # Relative
11850 if test -f "$f"; then
11851 # Build tree
11852 echo "$f"
11853 elif test -f "$srcdir/$f"; then
11854 # Source tree
11855 echo "$srcdir/$f"
11856 else
11857 # /dev/null tree
11858 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11859 echo "$as_me: error: cannot find input file: $f" >&2;}
11860 { (exit 1); exit 1; }; }
11861 fi;;
11862 esac
11863 done` || { (exit 1); exit 1; }
11864 # Remove the trailing spaces.
11865 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11867 _ACEOF
11869 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11870 # `conftest.undefs', that substitutes the proper values into
11871 # config.h.in to produce config.h. The first handles `#define'
11872 # templates, and the second `#undef' templates.
11873 # And first: Protect against being on the right side of a sed subst in
11874 # config.status. Protect against being in an unquoted here document
11875 # in config.status.
11876 rm -f conftest.defines conftest.undefs
11877 # Using a here document instead of a string reduces the quoting nightmare.
11878 # Putting comments in sed scripts is not portable.
11880 # `end' is used to avoid that the second main sed command (meant for
11881 # 0-ary CPP macros) applies to n-ary macro definitions.
11882 # See the Autoconf documentation for `clear'.
11883 cat >confdef2sed.sed <<\_ACEOF
11884 s/[\\&,]/\\&/g
11885 s,[\\$`],\\&,g
11886 t clear
11887 : clear
11888 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11889 t end
11890 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11891 : end
11892 _ACEOF
11893 # If some macros were called several times there might be several times
11894 # the same #defines, which is useless. Nevertheless, we may not want to
11895 # sort them, since we want the *last* AC-DEFINE to be honored.
11896 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11897 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11898 rm -f confdef2sed.sed
11900 # This sed command replaces #undef with comments. This is necessary, for
11901 # example, in the case of _POSIX_SOURCE, which is predefined and required
11902 # on some systems where configure will not decide to define it.
11903 cat >>conftest.undefs <<\_ACEOF
11904 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11905 _ACEOF
11907 # Break up conftest.defines because some shells have a limit on the size
11908 # of here documents, and old seds have small limits too (100 cmds).
11909 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11910 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11911 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11912 echo ' :' >>$CONFIG_STATUS
11913 rm -f conftest.tail
11914 while grep . conftest.defines >/dev/null
11916 # Write a limited-size here document to $tmp/defines.sed.
11917 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11918 # Speed up: don't consider the non `#define' lines.
11919 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11920 # Work around the forget-to-reset-the-flag bug.
11921 echo 't clr' >>$CONFIG_STATUS
11922 echo ': clr' >>$CONFIG_STATUS
11923 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11924 echo 'CEOF
11925 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11926 rm -f $tmp/in
11927 mv $tmp/out $tmp/in
11928 ' >>$CONFIG_STATUS
11929 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11930 rm -f conftest.defines
11931 mv conftest.tail conftest.defines
11932 done
11933 rm -f conftest.defines
11934 echo ' fi # grep' >>$CONFIG_STATUS
11935 echo >>$CONFIG_STATUS
11937 # Break up conftest.undefs because some shells have a limit on the size
11938 # of here documents, and old seds have small limits too (100 cmds).
11939 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11940 rm -f conftest.tail
11941 while grep . conftest.undefs >/dev/null
11943 # Write a limited-size here document to $tmp/undefs.sed.
11944 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11945 # Speed up: don't consider the non `#undef'
11946 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11947 # Work around the forget-to-reset-the-flag bug.
11948 echo 't clr' >>$CONFIG_STATUS
11949 echo ': clr' >>$CONFIG_STATUS
11950 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11951 echo 'CEOF
11952 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11953 rm -f $tmp/in
11954 mv $tmp/out $tmp/in
11955 ' >>$CONFIG_STATUS
11956 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11957 rm -f conftest.undefs
11958 mv conftest.tail conftest.undefs
11959 done
11960 rm -f conftest.undefs
11962 cat >>$CONFIG_STATUS <<\_ACEOF
11963 # Let's still pretend it is `configure' which instantiates (i.e., don't
11964 # use $as_me), people would be surprised to read:
11965 # /* config.h. Generated by config.status. */
11966 if test x"$ac_file" = x-; then
11967 echo "/* Generated by configure. */" >$tmp/config.h
11968 else
11969 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11971 cat $tmp/in >>$tmp/config.h
11972 rm -f $tmp/in
11973 if test x"$ac_file" != x-; then
11974 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11975 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11976 echo "$as_me: $ac_file is unchanged" >&6;}
11977 else
11978 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11979 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11980 X"$ac_file" : 'X\(//\)[^/]' \| \
11981 X"$ac_file" : 'X\(//\)$' \| \
11982 X"$ac_file" : 'X\(/\)' \| \
11983 . : '\(.\)' 2>/dev/null ||
11984 echo X"$ac_file" |
11985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11986 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11987 /^X\(\/\/\)$/{ s//\1/; q; }
11988 /^X\(\/\).*/{ s//\1/; q; }
11989 s/.*/./; q'`
11990 { if $as_mkdir_p; then
11991 mkdir -p "$ac_dir"
11992 else
11993 as_dir="$ac_dir"
11994 as_dirs=
11995 while test ! -d "$as_dir"; do
11996 as_dirs="$as_dir $as_dirs"
11997 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11998 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11999 X"$as_dir" : 'X\(//\)[^/]' \| \
12000 X"$as_dir" : 'X\(//\)$' \| \
12001 X"$as_dir" : 'X\(/\)' \| \
12002 . : '\(.\)' 2>/dev/null ||
12003 echo X"$as_dir" |
12004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12005 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12006 /^X\(\/\/\)$/{ s//\1/; q; }
12007 /^X\(\/\).*/{ s//\1/; q; }
12008 s/.*/./; q'`
12009 done
12010 test ! -n "$as_dirs" || mkdir $as_dirs
12011 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12012 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12013 { (exit 1); exit 1; }; }; }
12015 rm -f $ac_file
12016 mv $tmp/config.h $ac_file
12018 else
12019 cat $tmp/config.h
12020 rm -f $tmp/config.h
12022 done
12023 _ACEOF
12025 cat >>$CONFIG_STATUS <<\_ACEOF
12027 { (exit 0); exit 0; }
12028 _ACEOF
12029 chmod +x $CONFIG_STATUS
12030 ac_clean_files=$ac_clean_files_save
12033 # configure is writing to config.log, and then calls config.status.
12034 # config.status does its own redirection, appending to config.log.
12035 # Unfortunately, on DOS this fails, as config.log is still kept open
12036 # by configure, so config.status won't be able to write to it; its
12037 # output is simply discarded. So we exec the FD to /dev/null,
12038 # effectively closing config.log, so it can be properly (re)opened and
12039 # appended to by config.status. When coming back to configure, we
12040 # need to make the FD available again.
12041 if test "$no_create" != yes; then
12042 ac_cs_success=:
12043 ac_config_status_args=
12044 test "$silent" = yes &&
12045 ac_config_status_args="$ac_config_status_args --quiet"
12046 exec 5>/dev/null
12047 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12048 exec 5>>config.log
12049 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12050 # would make configure fail if this is the last instruction.
12051 $ac_cs_success || { (exit 1); exit 1; }
12055 if test "x${srcdir}" != "x."; then
12056 echo "Warning: --srcdir is not supported"