blob: a49ca6ffa989ac32e0bea6a8b6128e7b453a9a21 [file] [log] [blame]
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Glenn Randers-Pehrson7b34df32006-02-24 06:30:16 -06003# Generated by GNU Autoconf 2.57 for libpng 1.2.9beta3
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004#
Glenn Randers-Pehrson7b34df32006-02-24 06:30:16 -06005# Report bugs to <png-mng-implement@lists.sourceforge.net>.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006#
7# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8# Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
Glenn Randers-Pehrson5b5dcf82004-07-17 22:45:44 -050014
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060015# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
Glenn Randers-Pehrson5b5dcf82004-07-17 22:45:44 -050025
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060026# Support unset when possible.
27if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45do
46 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154done
155;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
223 as_mkdir_p=false
224fi
225
226as_executable_p="test -f"
227
228# Sed expression to map a string onto a valid CPP name.
229as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231# Sed expression to map a string onto a valid variable name.
232as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235# IFS
236# We need space, tab and new line, in precisely that order.
237as_nl='
238'
239IFS=" $as_nl"
240
241# CDPATH.
242$as_unset CDPATH
243
244
245# Find the correct PATH separator. Usually this is `:', but
246# DJGPP uses `;' like DOS.
247if test "X${PATH_SEPARATOR+set}" != Xset; then
248 UNAME=${UNAME-`uname 2>/dev/null`}
249 case X$UNAME in
250 *-DOS) lt_cv_sys_path_separator=';' ;;
251 *) lt_cv_sys_path_separator=':' ;;
252 esac
253 PATH_SEPARATOR=$lt_cv_sys_path_separator
254fi
255
256
257# Check that we are running under the correct shell.
258SHELL=${CONFIG_SHELL-/bin/sh}
259
260case X$ECHO in
261X*--fallback-echo)
262 # Remove one level of quotation (which was required for Make).
263 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
264 ;;
265esac
266
267echo=${ECHO-echo}
268if test "X$1" = X--no-reexec; then
269 # Discard the --no-reexec flag, and continue.
270 shift
271elif test "X$1" = X--fallback-echo; then
272 # Avoid inline document here, it may be left over
273 :
274elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
275 # Yippee, $echo works!
276 :
277else
278 # Restart under the correct shell.
279 exec $SHELL "$0" --no-reexec ${1+"$@"}
280fi
281
282if test "X$1" = X--fallback-echo; then
283 # used as fallback echo
284 shift
285 cat <<EOF
286
287EOF
288 exit 0
289fi
290
291# The HP-UX ksh and POSIX shell print the target directory to stdout
292# if CDPATH is set.
293if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
294
295if test -z "$ECHO"; then
296if test "X${echo_test_string+set}" != Xset; then
297# find a string as large as possible, as long as the shell can cope with it
298 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
299 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
300 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
301 echo_test_string="`eval $cmd`" &&
302 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
303 then
304 break
305 fi
306 done
307fi
308
309if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
310 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
311 test "X$echo_testing_string" = "X$echo_test_string"; then
312 :
313else
314 # The Solaris, AIX, and Digital Unix default echo programs unquote
315 # backslashes. This makes it impossible to quote backslashes using
316 # echo "$something" | sed 's/\\/\\\\/g'
317 #
318 # So, first we look for a working echo in the user's PATH.
319
320 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
321 for dir in $PATH /usr/ucb; do
322 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
323 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 echo="$dir/echo"
327 break
328 fi
329 done
330 IFS="$save_ifs"
331
332 if test "X$echo" = Xecho; then
333 # We didn't find a better echo, so look for alternatives.
334 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
335 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
336 test "X$echo_testing_string" = "X$echo_test_string"; then
337 # This shell has a builtin print -r that does the trick.
338 echo='print -r'
339 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
340 test "X$CONFIG_SHELL" != X/bin/ksh; then
341 # If we have ksh, try running configure again with it.
342 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
343 export ORIGINAL_CONFIG_SHELL
344 CONFIG_SHELL=/bin/ksh
345 export CONFIG_SHELL
346 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
347 else
348 # Try using printf.
349 echo='printf %s\n'
350 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
351 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
352 test "X$echo_testing_string" = "X$echo_test_string"; then
353 # Cool, printf works
354 :
355 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
360 export CONFIG_SHELL
361 SHELL="$CONFIG_SHELL"
362 export SHELL
363 echo="$CONFIG_SHELL $0 --fallback-echo"
364 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
365 test "X$echo_testing_string" = 'X\t' &&
366 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
367 test "X$echo_testing_string" = "X$echo_test_string"; then
368 echo="$CONFIG_SHELL $0 --fallback-echo"
369 else
370 # maybe with a smaller string...
371 prev=:
372
373 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
374 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
375 then
376 break
377 fi
378 prev="$cmd"
379 done
380
381 if test "$prev" != 'sed 50q "$0"'; then
382 echo_test_string=`eval $prev`
383 export echo_test_string
384 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
385 else
386 # Oops. We lost completely, so just stick with echo.
387 echo=echo
388 fi
389 fi
390 fi
391 fi
392fi
393fi
394
395# Copy echo and quote the copy suitably for passing to libtool from
396# the Makefile, instead of quoting the original, which is used later.
397ECHO=$echo
398if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
399 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
400fi
401
402
403
404# Name of the host.
405# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
406# so uname gets run too.
407ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408
409exec 6>&1
410
411#
412# Initializations.
413#
414ac_default_prefix=/usr/local
415ac_config_libobj_dir=.
416cross_compiling=no
417subdirs=
418MFLAGS=
419MAKEFLAGS=
420SHELL=${CONFIG_SHELL-/bin/sh}
421
422# Maximum number of lines to put in a shell here document.
423# This variable seems obsolete. It should probably be removed, and
424# only ac_max_sed_lines should be used.
425: ${ac_max_here_lines=38}
426
427# Identity of this package.
428PACKAGE_NAME='libpng'
429PACKAGE_TARNAME='libpng'
Glenn Randers-Pehrson7b34df32006-02-24 06:30:16 -0600430PACKAGE_VERSION='1.2.9beta3'
431PACKAGE_STRING='libpng 1.2.9beta3'
432PACKAGE_BUGREPORT='png-mng-implement@lists.sourceforge.net'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600433
434ac_unique_file="pngget.c"
435# Factoring default headers for most tests.
436ac_includes_default="\
437#include <stdio.h>
438#if HAVE_SYS_TYPES_H
439# include <sys/types.h>
440#endif
441#if HAVE_SYS_STAT_H
442# include <sys/stat.h>
443#endif
444#if STDC_HEADERS
445# include <stdlib.h>
446# include <stddef.h>
447#else
448# if HAVE_STDLIB_H
449# include <stdlib.h>
450# endif
451#endif
452#if HAVE_STRING_H
453# if !STDC_HEADERS && HAVE_MEMORY_H
454# include <memory.h>
455# endif
456# include <string.h>
457#endif
458#if HAVE_STRINGS_H
459# include <strings.h>
460#endif
461#if HAVE_INTTYPES_H
462# include <inttypes.h>
463#else
464# if HAVE_STDINT_H
465# include <stdint.h>
466# endif
467#endif
468#if HAVE_UNISTD_H
469# include <unistd.h>
470#endif"
471
472ac_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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL LIBOBJS POW_LIB PKGCONFIGDIR LIBPNG12_VERSION_INFO LIBPNG3_VERSION_INFO LTLIBOBJS'
473ac_subst_files=''
474
475# Initialize some variables set by options.
476ac_init_help=
477ac_init_version=false
478# The variables have the same names as the options, with
479# dashes changed to underlines.
480cache_file=/dev/null
481exec_prefix=NONE
482no_create=
483no_recursion=
484prefix=NONE
485program_prefix=NONE
486program_suffix=NONE
487program_transform_name=s,x,x,
488silent=
489site=
490srcdir=
491verbose=
492x_includes=NONE
493x_libraries=NONE
494
495# Installation directory options.
496# These are left unexpanded so users can "make install exec_prefix=/foo"
497# and all the variables that are supposed to be based on exec_prefix
498# by default will actually change.
499# Use braces instead of parens because sh, perl, etc. also accept them.
500bindir='${exec_prefix}/bin'
501sbindir='${exec_prefix}/sbin'
502libexecdir='${exec_prefix}/libexec'
503datadir='${prefix}/share'
504sysconfdir='${prefix}/etc'
505sharedstatedir='${prefix}/com'
506localstatedir='${prefix}/var'
507libdir='${exec_prefix}/lib'
508includedir='${prefix}/include'
509oldincludedir='/usr/include'
510infodir='${prefix}/info'
511mandir='${prefix}/man'
512
513ac_prev=
514for ac_option
515do
516 # If the previous option needs an argument, assign it.
517 if test -n "$ac_prev"; then
518 eval "$ac_prev=\$ac_option"
519 ac_prev=
520 continue
521 fi
522
523 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
524
525 # Accept the important Cygnus configure options, so we can diagnose typos.
526
527 case $ac_option in
528
529 -bindir | --bindir | --bindi | --bind | --bin | --bi)
530 ac_prev=bindir ;;
531 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
532 bindir=$ac_optarg ;;
533
534 -build | --build | --buil | --bui | --bu)
535 ac_prev=build_alias ;;
536 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
537 build_alias=$ac_optarg ;;
538
539 -cache-file | --cache-file | --cache-fil | --cache-fi \
540 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
541 ac_prev=cache_file ;;
542 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
543 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
544 cache_file=$ac_optarg ;;
545
546 --config-cache | -C)
547 cache_file=config.cache ;;
548
549 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
550 ac_prev=datadir ;;
551 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
552 | --da=*)
553 datadir=$ac_optarg ;;
554
555 -disable-* | --disable-*)
556 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
557 # Reject names that are not valid shell variable names.
558 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
559 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
560 { (exit 1); exit 1; }; }
561 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
562 eval "enable_$ac_feature=no" ;;
563
564 -enable-* | --enable-*)
565 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
566 # Reject names that are not valid shell variable names.
567 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
568 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
569 { (exit 1); exit 1; }; }
570 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
571 case $ac_option in
572 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
573 *) ac_optarg=yes ;;
574 esac
575 eval "enable_$ac_feature='$ac_optarg'" ;;
576
577 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
578 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
579 | --exec | --exe | --ex)
580 ac_prev=exec_prefix ;;
581 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
582 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
583 | --exec=* | --exe=* | --ex=*)
584 exec_prefix=$ac_optarg ;;
585
586 -gas | --gas | --ga | --g)
587 # Obsolete; use --with-gas.
588 with_gas=yes ;;
589
590 -help | --help | --hel | --he | -h)
591 ac_init_help=long ;;
592 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
593 ac_init_help=recursive ;;
594 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
595 ac_init_help=short ;;
596
597 -host | --host | --hos | --ho)
598 ac_prev=host_alias ;;
599 -host=* | --host=* | --hos=* | --ho=*)
600 host_alias=$ac_optarg ;;
601
602 -includedir | --includedir | --includedi | --included | --include \
603 | --includ | --inclu | --incl | --inc)
604 ac_prev=includedir ;;
605 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
606 | --includ=* | --inclu=* | --incl=* | --inc=*)
607 includedir=$ac_optarg ;;
608
609 -infodir | --infodir | --infodi | --infod | --info | --inf)
610 ac_prev=infodir ;;
611 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
612 infodir=$ac_optarg ;;
613
614 -libdir | --libdir | --libdi | --libd)
615 ac_prev=libdir ;;
616 -libdir=* | --libdir=* | --libdi=* | --libd=*)
617 libdir=$ac_optarg ;;
618
619 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
620 | --libexe | --libex | --libe)
621 ac_prev=libexecdir ;;
622 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
623 | --libexe=* | --libex=* | --libe=*)
624 libexecdir=$ac_optarg ;;
625
626 -localstatedir | --localstatedir | --localstatedi | --localstated \
627 | --localstate | --localstat | --localsta | --localst \
628 | --locals | --local | --loca | --loc | --lo)
629 ac_prev=localstatedir ;;
630 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
631 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
632 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
633 localstatedir=$ac_optarg ;;
634
635 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
636 ac_prev=mandir ;;
637 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
638 mandir=$ac_optarg ;;
639
640 -nfp | --nfp | --nf)
641 # Obsolete; use --without-fp.
642 with_fp=no ;;
643
644 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
645 | --no-cr | --no-c | -n)
646 no_create=yes ;;
647
648 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
649 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
650 no_recursion=yes ;;
651
652 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
653 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
654 | --oldin | --oldi | --old | --ol | --o)
655 ac_prev=oldincludedir ;;
656 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
657 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
658 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
659 oldincludedir=$ac_optarg ;;
660
661 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
662 ac_prev=prefix ;;
663 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
664 prefix=$ac_optarg ;;
665
666 -program-prefix | --program-prefix | --program-prefi | --program-pref \
667 | --program-pre | --program-pr | --program-p)
668 ac_prev=program_prefix ;;
669 -program-prefix=* | --program-prefix=* | --program-prefi=* \
670 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
671 program_prefix=$ac_optarg ;;
672
673 -program-suffix | --program-suffix | --program-suffi | --program-suff \
674 | --program-suf | --program-su | --program-s)
675 ac_prev=program_suffix ;;
676 -program-suffix=* | --program-suffix=* | --program-suffi=* \
677 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
678 program_suffix=$ac_optarg ;;
679
680 -program-transform-name | --program-transform-name \
681 | --program-transform-nam | --program-transform-na \
682 | --program-transform-n | --program-transform- \
683 | --program-transform | --program-transfor \
684 | --program-transfo | --program-transf \
685 | --program-trans | --program-tran \
686 | --progr-tra | --program-tr | --program-t)
687 ac_prev=program_transform_name ;;
688 -program-transform-name=* | --program-transform-name=* \
689 | --program-transform-nam=* | --program-transform-na=* \
690 | --program-transform-n=* | --program-transform-=* \
691 | --program-transform=* | --program-transfor=* \
692 | --program-transfo=* | --program-transf=* \
693 | --program-trans=* | --program-tran=* \
694 | --progr-tra=* | --program-tr=* | --program-t=*)
695 program_transform_name=$ac_optarg ;;
696
697 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
698 | -silent | --silent | --silen | --sile | --sil)
699 silent=yes ;;
700
701 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
702 ac_prev=sbindir ;;
703 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
704 | --sbi=* | --sb=*)
705 sbindir=$ac_optarg ;;
706
707 -sharedstatedir | --sharedstatedir | --sharedstatedi \
708 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
709 | --sharedst | --shareds | --shared | --share | --shar \
710 | --sha | --sh)
711 ac_prev=sharedstatedir ;;
712 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
713 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
714 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
715 | --sha=* | --sh=*)
716 sharedstatedir=$ac_optarg ;;
717
718 -site | --site | --sit)
719 ac_prev=site ;;
720 -site=* | --site=* | --sit=*)
721 site=$ac_optarg ;;
722
723 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
724 ac_prev=srcdir ;;
725 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
726 srcdir=$ac_optarg ;;
727
728 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
729 | --syscon | --sysco | --sysc | --sys | --sy)
730 ac_prev=sysconfdir ;;
731 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
732 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
733 sysconfdir=$ac_optarg ;;
734
735 -target | --target | --targe | --targ | --tar | --ta | --t)
736 ac_prev=target_alias ;;
737 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
738 target_alias=$ac_optarg ;;
739
740 -v | -verbose | --verbose | --verbos | --verbo | --verb)
741 verbose=yes ;;
742
743 -version | --version | --versio | --versi | --vers | -V)
744 ac_init_version=: ;;
745
746 -with-* | --with-*)
747 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
748 # Reject names that are not valid shell variable names.
749 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
750 { echo "$as_me: error: invalid package name: $ac_package" >&2
751 { (exit 1); exit 1; }; }
752 ac_package=`echo $ac_package| sed 's/-/_/g'`
753 case $ac_option in
754 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
755 *) ac_optarg=yes ;;
756 esac
757 eval "with_$ac_package='$ac_optarg'" ;;
758
759 -without-* | --without-*)
760 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
761 # Reject names that are not valid shell variable names.
762 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
763 { echo "$as_me: error: invalid package name: $ac_package" >&2
764 { (exit 1); exit 1; }; }
765 ac_package=`echo $ac_package | sed 's/-/_/g'`
766 eval "with_$ac_package=no" ;;
767
768 --x)
769 # Obsolete; use --with-x.
770 with_x=yes ;;
771
772 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
773 | --x-incl | --x-inc | --x-in | --x-i)
774 ac_prev=x_includes ;;
775 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
776 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
777 x_includes=$ac_optarg ;;
778
779 -x-libraries | --x-libraries | --x-librarie | --x-librari \
780 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
781 ac_prev=x_libraries ;;
782 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
783 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
784 x_libraries=$ac_optarg ;;
785
786 -*) { echo "$as_me: error: unrecognized option: $ac_option
787Try \`$0 --help' for more information." >&2
788 { (exit 1); exit 1; }; }
789 ;;
790
791 *=*)
792 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
793 # Reject names that are not valid shell variable names.
794 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
795 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
796 { (exit 1); exit 1; }; }
797 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
798 eval "$ac_envvar='$ac_optarg'"
799 export $ac_envvar ;;
800
801 *)
802 # FIXME: should be removed in autoconf 3.0.
803 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
804 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
805 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
806 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
807 ;;
808
809 esac
810done
811
812if test -n "$ac_prev"; then
813 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
814 { echo "$as_me: error: missing argument to $ac_option" >&2
815 { (exit 1); exit 1; }; }
816fi
817
818# Be sure to have absolute paths.
819for ac_var in exec_prefix prefix
820do
821 eval ac_val=$`echo $ac_var`
822 case $ac_val in
823 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
824 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
825 { (exit 1); exit 1; }; };;
826 esac
827done
828
829# Be sure to have absolute paths.
830for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
831 localstatedir libdir includedir oldincludedir infodir mandir
832do
833 eval ac_val=$`echo $ac_var`
834 case $ac_val in
835 [\\/$]* | ?:[\\/]* ) ;;
836 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
837 { (exit 1); exit 1; }; };;
838 esac
839done
840
841# There might be people who depend on the old broken behavior: `$host'
842# used to hold the argument of --host etc.
843# FIXME: To remove some day.
844build=$build_alias
845host=$host_alias
846target=$target_alias
847
848# FIXME: To remove some day.
849if test "x$host_alias" != x; then
850 if test "x$build_alias" = x; then
851 cross_compiling=maybe
852 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
853 If a cross compiler is detected then cross compile mode will be used." >&2
854 elif test "x$build_alias" != "x$host_alias"; then
855 cross_compiling=yes
856 fi
857fi
858
859ac_tool_prefix=
860test -n "$host_alias" && ac_tool_prefix=$host_alias-
861
862test "$silent" = yes && exec 6>/dev/null
863
864
865# Find the source files, if location was not specified.
866if test -z "$srcdir"; then
867 ac_srcdir_defaulted=yes
868 # Try the directory containing this script, then its parent.
869 ac_confdir=`(dirname "$0") 2>/dev/null ||
870$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
871 X"$0" : 'X\(//\)[^/]' \| \
872 X"$0" : 'X\(//\)$' \| \
873 X"$0" : 'X\(/\)' \| \
874 . : '\(.\)' 2>/dev/null ||
875echo X"$0" |
876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
877 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
878 /^X\(\/\/\)$/{ s//\1/; q; }
879 /^X\(\/\).*/{ s//\1/; q; }
880 s/.*/./; q'`
881 srcdir=$ac_confdir
882 if test ! -r $srcdir/$ac_unique_file; then
883 srcdir=..
884 fi
885else
886 ac_srcdir_defaulted=no
887fi
888if test ! -r $srcdir/$ac_unique_file; then
889 if test "$ac_srcdir_defaulted" = yes; then
890 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
891 { (exit 1); exit 1; }; }
892 else
893 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
894 { (exit 1); exit 1; }; }
895 fi
896fi
897(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
898 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
899 { (exit 1); exit 1; }; }
900srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
901ac_env_build_alias_set=${build_alias+set}
902ac_env_build_alias_value=$build_alias
903ac_cv_env_build_alias_set=${build_alias+set}
904ac_cv_env_build_alias_value=$build_alias
905ac_env_host_alias_set=${host_alias+set}
906ac_env_host_alias_value=$host_alias
907ac_cv_env_host_alias_set=${host_alias+set}
908ac_cv_env_host_alias_value=$host_alias
909ac_env_target_alias_set=${target_alias+set}
910ac_env_target_alias_value=$target_alias
911ac_cv_env_target_alias_set=${target_alias+set}
912ac_cv_env_target_alias_value=$target_alias
913ac_env_CC_set=${CC+set}
914ac_env_CC_value=$CC
915ac_cv_env_CC_set=${CC+set}
916ac_cv_env_CC_value=$CC
917ac_env_CFLAGS_set=${CFLAGS+set}
918ac_env_CFLAGS_value=$CFLAGS
919ac_cv_env_CFLAGS_set=${CFLAGS+set}
920ac_cv_env_CFLAGS_value=$CFLAGS
921ac_env_LDFLAGS_set=${LDFLAGS+set}
922ac_env_LDFLAGS_value=$LDFLAGS
923ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
924ac_cv_env_LDFLAGS_value=$LDFLAGS
925ac_env_CPPFLAGS_set=${CPPFLAGS+set}
926ac_env_CPPFLAGS_value=$CPPFLAGS
927ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
928ac_cv_env_CPPFLAGS_value=$CPPFLAGS
929ac_env_CPP_set=${CPP+set}
930ac_env_CPP_value=$CPP
931ac_cv_env_CPP_set=${CPP+set}
932ac_cv_env_CPP_value=$CPP
933
934#
935# Report the --help message.
936#
937if test "$ac_init_help" = "long"; then
938 # Omit some internal or obsolete options to make the list less imposing.
939 # This message is too long to be a string in the A/UX 3.1 sh.
940 cat <<_ACEOF
Glenn Randers-Pehrson7b34df32006-02-24 06:30:16 -0600941\`configure' configures libpng 1.2.9beta3 to adapt to many kinds of systems.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600942
943Usage: $0 [OPTION]... [VAR=VALUE]...
944
945To assign environment variables (e.g., CC, CFLAGS...), specify them as
946VAR=VALUE. See below for descriptions of some of the useful variables.
947
948Defaults for the options are specified in brackets.
949
950Configuration:
951 -h, --help display this help and exit
952 --help=short display options specific to this package
953 --help=recursive display the short help of all the included packages
954 -V, --version display version information and exit
955 -q, --quiet, --silent do not print \`checking...' messages
956 --cache-file=FILE cache test results in FILE [disabled]
957 -C, --config-cache alias for \`--cache-file=config.cache'
958 -n, --no-create do not create output files
959 --srcdir=DIR find the sources in DIR [configure dir or \`..']
960
961_ACEOF
962
963 cat <<_ACEOF
964Installation directories:
965 --prefix=PREFIX install architecture-independent files in PREFIX
966 [$ac_default_prefix]
967 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
968 [PREFIX]
969
970By default, \`make install' will install all the files in
971\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
972an installation prefix other than \`$ac_default_prefix' using \`--prefix',
973for instance \`--prefix=\$HOME'.
974
975For better control, use the options below.
976
977Fine tuning of the installation directories:
978 --bindir=DIR user executables [EPREFIX/bin]
979 --sbindir=DIR system admin executables [EPREFIX/sbin]
980 --libexecdir=DIR program executables [EPREFIX/libexec]
981 --datadir=DIR read-only architecture-independent data [PREFIX/share]
982 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
983 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
984 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
985 --libdir=DIR object code libraries [EPREFIX/lib]
986 --includedir=DIR C header files [PREFIX/include]
987 --oldincludedir=DIR C header files for non-gcc [/usr/include]
988 --infodir=DIR info documentation [PREFIX/info]
989 --mandir=DIR man documentation [PREFIX/man]
990_ACEOF
991
992 cat <<\_ACEOF
993
994Program names:
995 --program-prefix=PREFIX prepend PREFIX to installed program names
996 --program-suffix=SUFFIX append SUFFIX to installed program names
997 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
998
999X features:
1000 --x-includes=DIR X include files are in DIR
1001 --x-libraries=DIR X library files are in DIR
1002
1003System types:
1004 --build=BUILD configure for building on BUILD [guessed]
1005 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1006_ACEOF
1007fi
1008
1009if test -n "$ac_init_help"; then
1010 case $ac_init_help in
Glenn Randers-Pehrson7b34df32006-02-24 06:30:16 -06001011 short | recursive ) echo "Configuration of libpng 1.2.9beta3:";;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001012 esac
1013 cat <<\_ACEOF
1014
1015Optional Features:
1016 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1017 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1018 --disable-dependency-tracking Speeds up one-time builds
1019 --enable-dependency-tracking Do not reject slow dependency extractors
1020 --enable-shared=PKGS build shared libraries default=yes
1021 --enable-static=PKGS build static libraries default=yes
1022 --enable-fast-install=PKGS optimize for fast installation default=yes
1023 --disable-libtool-lock avoid locking (might break parallel builds)
1024
1025Optional Packages:
1026 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1027 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1028 --with-gnu-ld assume the C compiler uses GNU ld default=no
1029 --with-pic try to use only PIC/non-PIC objects default=use both
1030 --with-x use the X Window System
1031 --with-pkgconfigdir Use the specified pkgconfig dir (default is
1032 prefix/lib/pkgconfig)
1033
1034Some influential environment variables:
1035 CC C compiler command
1036 CFLAGS C compiler flags
1037 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1038 nonstandard directory <lib dir>
1039 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1040 headers in a nonstandard directory <include dir>
1041 CPP C preprocessor
1042
1043Use these variables to override the choices made by `configure' or to help
1044it to find libraries and programs with nonstandard names/locations.
1045
Glenn Randers-Pehrson7b34df32006-02-24 06:30:16 -06001046Report bugs to <png-mng-implement@lists.sourceforge.net>.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001047_ACEOF
1048fi
1049
1050if test "$ac_init_help" = "recursive"; then
1051 # If there are subdirs, report their specific --help.
1052 ac_popdir=`pwd`
1053 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1054 test -d $ac_dir || continue
1055 ac_builddir=.
1056
1057if test "$ac_dir" != .; then
1058 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1059 # A "../" for each directory in $ac_dir_suffix.
1060 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1061else
1062 ac_dir_suffix= ac_top_builddir=
1063fi
1064
1065case $srcdir in
1066 .) # No --srcdir option. We are building in place.
1067 ac_srcdir=.
1068 if test -z "$ac_top_builddir"; then
1069 ac_top_srcdir=.
1070 else
1071 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1072 fi ;;
1073 [\\/]* | ?:[\\/]* ) # Absolute path.
1074 ac_srcdir=$srcdir$ac_dir_suffix;
1075 ac_top_srcdir=$srcdir ;;
1076 *) # Relative path.
1077 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1078 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1079esac
1080# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1081# absolute.
1082ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1083ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1084ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1085ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1086
1087 cd $ac_dir
1088 # Check for guested configure; otherwise get Cygnus style configure.
1089 if test -f $ac_srcdir/configure.gnu; then
1090 echo
1091 $SHELL $ac_srcdir/configure.gnu --help=recursive
1092 elif test -f $ac_srcdir/configure; then
1093 echo
1094 $SHELL $ac_srcdir/configure --help=recursive
1095 elif test -f $ac_srcdir/configure.ac ||
1096 test -f $ac_srcdir/configure.in; then
1097 echo
1098 $ac_configure --help
1099 else
1100 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1101 fi
1102 cd $ac_popdir
1103 done
1104fi
1105
1106test -n "$ac_init_help" && exit 0
1107if $ac_init_version; then
1108 cat <<\_ACEOF
Glenn Randers-Pehrson7b34df32006-02-24 06:30:16 -06001109libpng configure 1.2.9beta3
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001110generated by GNU Autoconf 2.57
1111
1112Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1113Free Software Foundation, Inc.
1114This configure script is free software; the Free Software Foundation
1115gives unlimited permission to copy, distribute and modify it.
1116_ACEOF
1117 exit 0
1118fi
1119exec 5>config.log
1120cat >&5 <<_ACEOF
1121This file contains any messages produced by compilers while
1122running configure, to aid debugging if configure makes a mistake.
1123
Glenn Randers-Pehrson7b34df32006-02-24 06:30:16 -06001124It was created by libpng $as_me 1.2.9beta3, which was
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001125generated by GNU Autoconf 2.57. Invocation command line was
1126
1127 $ $0 $@
1128
1129_ACEOF
1130{
1131cat <<_ASUNAME
1132## --------- ##
1133## Platform. ##
1134## --------- ##
1135
1136hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1137uname -m = `(uname -m) 2>/dev/null || echo unknown`
1138uname -r = `(uname -r) 2>/dev/null || echo unknown`
1139uname -s = `(uname -s) 2>/dev/null || echo unknown`
1140uname -v = `(uname -v) 2>/dev/null || echo unknown`
1141
1142/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1143/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1144
1145/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1146/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1147/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1148hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1149/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1150/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1151/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1152
1153_ASUNAME
1154
1155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1156for as_dir in $PATH
1157do
1158 IFS=$as_save_IFS
1159 test -z "$as_dir" && as_dir=.
1160 echo "PATH: $as_dir"
1161done
1162
1163} >&5
1164
1165cat >&5 <<_ACEOF
1166
1167
1168## ----------- ##
1169## Core tests. ##
1170## ----------- ##
1171
1172_ACEOF
1173
1174
1175# Keep a trace of the command line.
1176# Strip out --no-create and --no-recursion so they do not pile up.
1177# Strip out --silent because we don't want to record it for future runs.
1178# Also quote any args containing shell meta-characters.
1179# Make two passes to allow for proper duplicate-argument suppression.
1180ac_configure_args=
1181ac_configure_args0=
1182ac_configure_args1=
1183ac_sep=
1184ac_must_keep_next=false
1185for ac_pass in 1 2
1186do
1187 for ac_arg
1188 do
1189 case $ac_arg in
1190 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1191 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1192 | -silent | --silent | --silen | --sile | --sil)
1193 continue ;;
1194 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1195 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1196 esac
1197 case $ac_pass in
1198 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1199 2)
1200 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1201 if test $ac_must_keep_next = true; then
1202 ac_must_keep_next=false # Got value, back to normal.
1203 else
1204 case $ac_arg in
1205 *=* | --config-cache | -C | -disable-* | --disable-* \
1206 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1207 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1208 | -with-* | --with-* | -without-* | --without-* | --x)
1209 case "$ac_configure_args0 " in
1210 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1211 esac
1212 ;;
1213 -* ) ac_must_keep_next=true ;;
1214 esac
1215 fi
1216 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1217 # Get rid of the leading space.
1218 ac_sep=" "
1219 ;;
1220 esac
1221 done
1222done
1223$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1224$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1225
1226# When interrupted or exit'd, cleanup temporary files, and complete
1227# config.log. We remove comments because anyway the quotes in there
1228# would cause problems or look ugly.
1229# WARNING: Be sure not to use single quotes in there, as some shells,
1230# such as our DU 5.0 friend, will then `close' the trap.
1231trap 'exit_status=$?
1232 # Save into config.log some information that might help in debugging.
1233 {
1234 echo
1235
1236 cat <<\_ASBOX
1237## ---------------- ##
1238## Cache variables. ##
1239## ---------------- ##
1240_ASBOX
1241 echo
1242 # The following way of writing the cache mishandles newlines in values,
1243{
1244 (set) 2>&1 |
1245 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1246 *ac_space=\ *)
1247 sed -n \
1248 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1249 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1250 ;;
1251 *)
1252 sed -n \
1253 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1254 ;;
1255 esac;
1256}
1257 echo
1258
1259 cat <<\_ASBOX
1260## ----------------- ##
1261## Output variables. ##
1262## ----------------- ##
1263_ASBOX
1264 echo
1265 for ac_var in $ac_subst_vars
1266 do
1267 eval ac_val=$`echo $ac_var`
1268 echo "$ac_var='"'"'$ac_val'"'"'"
1269 done | sort
1270 echo
1271
1272 if test -n "$ac_subst_files"; then
1273 cat <<\_ASBOX
1274## ------------- ##
1275## Output files. ##
1276## ------------- ##
1277_ASBOX
1278 echo
1279 for ac_var in $ac_subst_files
1280 do
1281 eval ac_val=$`echo $ac_var`
1282 echo "$ac_var='"'"'$ac_val'"'"'"
1283 done | sort
1284 echo
1285 fi
1286
1287 if test -s confdefs.h; then
1288 cat <<\_ASBOX
1289## ----------- ##
1290## confdefs.h. ##
1291## ----------- ##
1292_ASBOX
1293 echo
1294 sed "/^$/d" confdefs.h | sort
1295 echo
1296 fi
1297 test "$ac_signal" != 0 &&
1298 echo "$as_me: caught signal $ac_signal"
1299 echo "$as_me: exit $exit_status"
1300 } >&5
1301 rm -f core core.* *.core &&
1302 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1303 exit $exit_status
1304 ' 0
1305for ac_signal in 1 2 13 15; do
1306 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1307done
1308ac_signal=0
1309
1310# confdefs.h avoids OS command line length limits that DEFS can exceed.
1311rm -rf conftest* confdefs.h
1312# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1313echo >confdefs.h
1314
1315# Predefined preprocessor variables.
1316
1317cat >>confdefs.h <<_ACEOF
1318#define PACKAGE_NAME "$PACKAGE_NAME"
1319_ACEOF
1320
1321
1322cat >>confdefs.h <<_ACEOF
1323#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1324_ACEOF
1325
1326
1327cat >>confdefs.h <<_ACEOF
1328#define PACKAGE_VERSION "$PACKAGE_VERSION"
1329_ACEOF
1330
1331
1332cat >>confdefs.h <<_ACEOF
1333#define PACKAGE_STRING "$PACKAGE_STRING"
1334_ACEOF
1335
1336
1337cat >>confdefs.h <<_ACEOF
1338#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1339_ACEOF
1340
1341
1342# Let the site file select an alternate cache file if it wants to.
1343# Prefer explicitly selected file to automatically selected ones.
1344if test -z "$CONFIG_SITE"; then
1345 if test "x$prefix" != xNONE; then
1346 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1347 else
1348 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1349 fi
1350fi
1351for ac_site_file in $CONFIG_SITE; do
1352 if test -r "$ac_site_file"; then
1353 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1354echo "$as_me: loading site script $ac_site_file" >&6;}
1355 sed 's/^/| /' "$ac_site_file" >&5
1356 . "$ac_site_file"
1357 fi
1358done
1359
1360if test -r "$cache_file"; then
1361 # Some versions of bash will fail to source /dev/null (special
1362 # files actually), so we avoid doing that.
1363 if test -f "$cache_file"; then
1364 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1365echo "$as_me: loading cache $cache_file" >&6;}
1366 case $cache_file in
1367 [\\/]* | ?:[\\/]* ) . $cache_file;;
1368 *) . ./$cache_file;;
1369 esac
1370 fi
1371else
1372 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1373echo "$as_me: creating cache $cache_file" >&6;}
1374 >$cache_file
1375fi
1376
1377# Check that the precious variables saved in the cache have kept the same
1378# value.
1379ac_cache_corrupted=false
1380for ac_var in `(set) 2>&1 |
1381 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1382 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1383 eval ac_new_set=\$ac_env_${ac_var}_set
1384 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1385 eval ac_new_val="\$ac_env_${ac_var}_value"
1386 case $ac_old_set,$ac_new_set in
1387 set,)
1388 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1389echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1390 ac_cache_corrupted=: ;;
1391 ,set)
1392 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1393echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1394 ac_cache_corrupted=: ;;
1395 ,);;
1396 *)
1397 if test "x$ac_old_val" != "x$ac_new_val"; then
1398 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1399echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1400 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1401echo "$as_me: former value: $ac_old_val" >&2;}
1402 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1403echo "$as_me: current value: $ac_new_val" >&2;}
1404 ac_cache_corrupted=:
1405 fi;;
1406 esac
1407 # Pass precious variables to config.status.
1408 if test "$ac_new_set" = set; then
1409 case $ac_new_val in
1410 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1411 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1412 *) ac_arg=$ac_var=$ac_new_val ;;
1413 esac
1414 case " $ac_configure_args " in
1415 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1416 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1417 esac
1418 fi
1419done
1420if $ac_cache_corrupted; then
1421 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1422echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1423 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1424echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1425 { (exit 1); exit 1; }; }
1426fi
1427
1428ac_ext=c
1429ac_cpp='$CPP $CPPFLAGS'
1430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1432ac_compiler_gnu=$ac_cv_c_compiler_gnu
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460am__api_version="1.7"
1461ac_aux_dir=
1462for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1463 if test -f $ac_dir/install-sh; then
1464 ac_aux_dir=$ac_dir
1465 ac_install_sh="$ac_aux_dir/install-sh -c"
1466 break
1467 elif test -f $ac_dir/install.sh; then
1468 ac_aux_dir=$ac_dir
1469 ac_install_sh="$ac_aux_dir/install.sh -c"
1470 break
1471 elif test -f $ac_dir/shtool; then
1472 ac_aux_dir=$ac_dir
1473 ac_install_sh="$ac_aux_dir/shtool install -c"
1474 break
1475 fi
1476done
1477if test -z "$ac_aux_dir"; then
1478 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1479echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1480 { (exit 1); exit 1; }; }
1481fi
1482ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1483ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1484ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1485
1486# Find a good install program. We prefer a C program (faster),
1487# so one script is as good as another. But avoid the broken or
1488# incompatible versions:
1489# SysV /etc/install, /usr/sbin/install
1490# SunOS /usr/etc/install
1491# IRIX /sbin/install
1492# AIX /bin/install
1493# AmigaOS /C/install, which installs bootblocks on floppy discs
1494# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1495# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1496# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1497# ./install, which can be erroneously created by make from ./install.sh.
1498echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1499echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1500if test -z "$INSTALL"; then
1501if test "${ac_cv_path_install+set}" = set; then
1502 echo $ECHO_N "(cached) $ECHO_C" >&6
1503else
1504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1505for as_dir in $PATH
1506do
1507 IFS=$as_save_IFS
1508 test -z "$as_dir" && as_dir=.
1509 # Account for people who put trailing slashes in PATH elements.
1510case $as_dir/ in
1511 ./ | .// | /cC/* | \
1512 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1513 /usr/ucb/* ) ;;
1514 *)
1515 # OSF1 and SCO ODT 3.0 have their own names for install.
1516 # Don't use installbsd from OSF since it installs stuff as root
1517 # by default.
1518 for ac_prog in ginstall scoinst install; do
1519 for ac_exec_ext in '' $ac_executable_extensions; do
1520 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1521 if test $ac_prog = install &&
1522 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1523 # AIX install. It has an incompatible calling convention.
1524 :
1525 elif test $ac_prog = install &&
1526 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1527 # program-specific install script used by HP pwplus--don't use.
1528 :
1529 else
1530 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1531 break 3
1532 fi
1533 fi
1534 done
1535 done
1536 ;;
1537esac
1538done
1539
1540
1541fi
1542 if test "${ac_cv_path_install+set}" = set; then
1543 INSTALL=$ac_cv_path_install
1544 else
1545 # As a last resort, use the slow shell script. We don't cache a
1546 # path for INSTALL within a source directory, because that will
1547 # break other packages using the cache if that directory is
1548 # removed, or if the path is relative.
1549 INSTALL=$ac_install_sh
1550 fi
1551fi
1552echo "$as_me:$LINENO: result: $INSTALL" >&5
1553echo "${ECHO_T}$INSTALL" >&6
1554
1555# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1556# It thinks the first close brace ends the variable substitution.
1557test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1558
1559test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1560
1561test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1562
1563echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1564echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1565# Just in case
1566sleep 1
1567echo timestamp > conftest.file
1568# Do `set' in a subshell so we don't clobber the current shell's
1569# arguments. Must try -L first in case configure is actually a
1570# symlink; some systems play weird games with the mod time of symlinks
1571# (eg FreeBSD returns the mod time of the symlink's containing
1572# directory).
1573if (
1574 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1575 if test "$*" = "X"; then
1576 # -L didn't work.
1577 set X `ls -t $srcdir/configure conftest.file`
1578 fi
1579 rm -f conftest.file
1580 if test "$*" != "X $srcdir/configure conftest.file" \
1581 && test "$*" != "X conftest.file $srcdir/configure"; then
1582
1583 # If neither matched, then we have a broken ls. This can happen
1584 # if, for instance, CONFIG_SHELL is bash and it inherits a
1585 # broken ls alias from the environment. This has actually
1586 # happened. Such a system could not be considered "sane".
1587 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1588alias in your environment" >&5
1589echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1590alias in your environment" >&2;}
1591 { (exit 1); exit 1; }; }
1592 fi
1593
1594 test "$2" = conftest.file
1595 )
1596then
1597 # Ok.
1598 :
1599else
1600 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1601Check your system clock" >&5
1602echo "$as_me: error: newly created file is older than distributed files!
1603Check your system clock" >&2;}
1604 { (exit 1); exit 1; }; }
1605fi
1606echo "$as_me:$LINENO: result: yes" >&5
1607echo "${ECHO_T}yes" >&6
1608test "$program_prefix" != NONE &&
1609 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1610# Use a double $ so make ignores it.
1611test "$program_suffix" != NONE &&
1612 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1613# Double any \ or $. echo might interpret backslashes.
1614# By default was `s,x,x', remove it if useless.
1615cat <<\_ACEOF >conftest.sed
1616s/[\\$]/&&/g;s/;s,x,x,$//
1617_ACEOF
1618program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1619rm conftest.sed
1620
1621
1622# expand $ac_aux_dir to an absolute path
1623am_aux_dir=`cd $ac_aux_dir && pwd`
1624
1625test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1626# Use eval to expand $SHELL
1627if eval "$MISSING --run true"; then
1628 am_missing_run="$MISSING --run "
1629else
1630 am_missing_run=
1631 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1632echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1633fi
1634
1635for ac_prog in gawk mawk nawk awk
1636do
1637 # Extract the first word of "$ac_prog", so it can be a program name with args.
1638set dummy $ac_prog; ac_word=$2
1639echo "$as_me:$LINENO: checking for $ac_word" >&5
1640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1641if test "${ac_cv_prog_AWK+set}" = set; then
1642 echo $ECHO_N "(cached) $ECHO_C" >&6
1643else
1644 if test -n "$AWK"; then
1645 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1646else
1647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648for as_dir in $PATH
1649do
1650 IFS=$as_save_IFS
1651 test -z "$as_dir" && as_dir=.
1652 for ac_exec_ext in '' $ac_executable_extensions; do
1653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1654 ac_cv_prog_AWK="$ac_prog"
1655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1656 break 2
1657 fi
1658done
1659done
1660
1661fi
1662fi
1663AWK=$ac_cv_prog_AWK
1664if test -n "$AWK"; then
1665 echo "$as_me:$LINENO: result: $AWK" >&5
1666echo "${ECHO_T}$AWK" >&6
1667else
1668 echo "$as_me:$LINENO: result: no" >&5
1669echo "${ECHO_T}no" >&6
1670fi
1671
1672 test -n "$AWK" && break
1673done
1674
1675echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1676echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1677set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1678if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1679 echo $ECHO_N "(cached) $ECHO_C" >&6
1680else
1681 cat >conftest.make <<\_ACEOF
1682all:
1683 @echo 'ac_maketemp="$(MAKE)"'
1684_ACEOF
1685# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1686eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1687if test -n "$ac_maketemp"; then
1688 eval ac_cv_prog_make_${ac_make}_set=yes
1689else
1690 eval ac_cv_prog_make_${ac_make}_set=no
1691fi
1692rm -f conftest.make
1693fi
1694if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1695 echo "$as_me:$LINENO: result: yes" >&5
1696echo "${ECHO_T}yes" >&6
1697 SET_MAKE=
1698else
1699 echo "$as_me:$LINENO: result: no" >&5
1700echo "${ECHO_T}no" >&6
1701 SET_MAKE="MAKE=${MAKE-make}"
1702fi
1703
1704 # test to see if srcdir already configured
1705if test "`cd $srcdir && pwd`" != "`pwd`" &&
1706 test -f $srcdir/config.status; then
1707 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1708echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1709 { (exit 1); exit 1; }; }
1710fi
1711
1712# test whether we have cygpath
1713if test -z "$CYGPATH_W"; then
1714 if (cygpath --version) >/dev/null 2>/dev/null; then
1715 CYGPATH_W='cygpath -w'
1716 else
1717 CYGPATH_W=echo
1718 fi
1719fi
1720
1721
1722# Define the identity of the package.
1723 PACKAGE=libpng
Glenn Randers-Pehrson7b34df32006-02-24 06:30:16 -06001724 VERSION=1.2.9beta3
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001725
1726
1727cat >>confdefs.h <<_ACEOF
1728#define PACKAGE "$PACKAGE"
1729_ACEOF
1730
1731
1732cat >>confdefs.h <<_ACEOF
1733#define VERSION "$VERSION"
1734_ACEOF
1735
1736# Some tools Automake needs.
1737
1738ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1739
1740
1741AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1742
1743
1744AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1745
1746
1747AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1748
1749
1750MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1751
1752
1753AMTAR=${AMTAR-"${am_missing_run}tar"}
1754
1755install_sh=${install_sh-"$am_aux_dir/install-sh"}
1756
1757# Installed binaries are usually stripped using `strip' when the user
1758# run `make install-strip'. However `strip' might not be the right
1759# tool to use in cross-compilation environments, therefore Automake
1760# will honor the `STRIP' environment variable to overrule this program.
1761if test "$cross_compiling" != no; then
1762 if test -n "$ac_tool_prefix"; then
1763 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1764set dummy ${ac_tool_prefix}strip; ac_word=$2
1765echo "$as_me:$LINENO: checking for $ac_word" >&5
1766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1767if test "${ac_cv_prog_STRIP+set}" = set; then
1768 echo $ECHO_N "(cached) $ECHO_C" >&6
1769else
1770 if test -n "$STRIP"; then
1771 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1772else
1773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1774for as_dir in $PATH
1775do
1776 IFS=$as_save_IFS
1777 test -z "$as_dir" && as_dir=.
1778 for ac_exec_ext in '' $ac_executable_extensions; do
1779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1780 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1782 break 2
1783 fi
1784done
1785done
1786
1787fi
1788fi
1789STRIP=$ac_cv_prog_STRIP
1790if test -n "$STRIP"; then
1791 echo "$as_me:$LINENO: result: $STRIP" >&5
1792echo "${ECHO_T}$STRIP" >&6
1793else
1794 echo "$as_me:$LINENO: result: no" >&5
1795echo "${ECHO_T}no" >&6
1796fi
1797
1798fi
1799if test -z "$ac_cv_prog_STRIP"; then
1800 ac_ct_STRIP=$STRIP
1801 # Extract the first word of "strip", so it can be a program name with args.
1802set dummy strip; ac_word=$2
1803echo "$as_me:$LINENO: checking for $ac_word" >&5
1804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1805if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1806 echo $ECHO_N "(cached) $ECHO_C" >&6
1807else
1808 if test -n "$ac_ct_STRIP"; then
1809 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1810else
1811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1812for as_dir in $PATH
1813do
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 ac_cv_prog_ac_ct_STRIP="strip"
1819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1820 break 2
1821 fi
1822done
1823done
1824
1825 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1826fi
1827fi
1828ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1829if test -n "$ac_ct_STRIP"; then
1830 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1831echo "${ECHO_T}$ac_ct_STRIP" >&6
1832else
1833 echo "$as_me:$LINENO: result: no" >&5
1834echo "${ECHO_T}no" >&6
1835fi
1836
1837 STRIP=$ac_ct_STRIP
1838else
1839 STRIP="$ac_cv_prog_STRIP"
1840fi
1841
1842fi
1843INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1844
1845# We need awk for the "check" target. The system "awk" is bad on
1846# some platforms.
1847
1848
1849
1850
1851 ac_config_headers="$ac_config_headers config.h"
1852
1853
1854# Checks for programs.
1855ac_ext=c
1856ac_cpp='$CPP $CPPFLAGS'
1857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1859ac_compiler_gnu=$ac_cv_c_compiler_gnu
1860if test -n "$ac_tool_prefix"; then
1861 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1862set dummy ${ac_tool_prefix}gcc; ac_word=$2
1863echo "$as_me:$LINENO: checking for $ac_word" >&5
1864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1865if test "${ac_cv_prog_CC+set}" = set; then
1866 echo $ECHO_N "(cached) $ECHO_C" >&6
1867else
1868 if test -n "$CC"; then
1869 ac_cv_prog_CC="$CC" # Let the user override the test.
1870else
1871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1872for as_dir in $PATH
1873do
1874 IFS=$as_save_IFS
1875 test -z "$as_dir" && as_dir=.
1876 for ac_exec_ext in '' $ac_executable_extensions; do
1877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1878 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1880 break 2
1881 fi
1882done
1883done
1884
1885fi
1886fi
1887CC=$ac_cv_prog_CC
1888if test -n "$CC"; then
1889 echo "$as_me:$LINENO: result: $CC" >&5
1890echo "${ECHO_T}$CC" >&6
1891else
1892 echo "$as_me:$LINENO: result: no" >&5
1893echo "${ECHO_T}no" >&6
1894fi
1895
1896fi
1897if test -z "$ac_cv_prog_CC"; then
1898 ac_ct_CC=$CC
1899 # Extract the first word of "gcc", so it can be a program name with args.
1900set dummy gcc; ac_word=$2
1901echo "$as_me:$LINENO: checking for $ac_word" >&5
1902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1903if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1904 echo $ECHO_N "(cached) $ECHO_C" >&6
1905else
1906 if test -n "$ac_ct_CC"; then
1907 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1908else
1909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1910for as_dir in $PATH
1911do
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="gcc"
1917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1918 break 2
1919 fi
1920done
1921done
1922
1923fi
1924fi
1925ac_ct_CC=$ac_cv_prog_ac_ct_CC
1926if test -n "$ac_ct_CC"; then
1927 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1928echo "${ECHO_T}$ac_ct_CC" >&6
1929else
1930 echo "$as_me:$LINENO: result: no" >&5
1931echo "${ECHO_T}no" >&6
1932fi
1933
1934 CC=$ac_ct_CC
1935else
1936 CC="$ac_cv_prog_CC"
1937fi
1938
1939if test -z "$CC"; then
1940 if test -n "$ac_tool_prefix"; then
1941 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1942set dummy ${ac_tool_prefix}cc; ac_word=$2
1943echo "$as_me:$LINENO: checking for $ac_word" >&5
1944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1945if test "${ac_cv_prog_CC+set}" = set; then
1946 echo $ECHO_N "(cached) $ECHO_C" >&6
1947else
1948 if test -n "$CC"; then
1949 ac_cv_prog_CC="$CC" # Let the user override the test.
1950else
1951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1952for as_dir in $PATH
1953do
1954 IFS=$as_save_IFS
1955 test -z "$as_dir" && as_dir=.
1956 for ac_exec_ext in '' $ac_executable_extensions; do
1957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1958 ac_cv_prog_CC="${ac_tool_prefix}cc"
1959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1960 break 2
1961 fi
1962done
1963done
1964
1965fi
1966fi
1967CC=$ac_cv_prog_CC
1968if test -n "$CC"; then
1969 echo "$as_me:$LINENO: result: $CC" >&5
1970echo "${ECHO_T}$CC" >&6
1971else
1972 echo "$as_me:$LINENO: result: no" >&5
1973echo "${ECHO_T}no" >&6
1974fi
1975
1976fi
1977if test -z "$ac_cv_prog_CC"; then
1978 ac_ct_CC=$CC
1979 # Extract the first word of "cc", so it can be a program name with args.
1980set dummy cc; ac_word=$2
1981echo "$as_me:$LINENO: checking for $ac_word" >&5
1982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1983if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1984 echo $ECHO_N "(cached) $ECHO_C" >&6
1985else
1986 if test -n "$ac_ct_CC"; then
1987 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1988else
1989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990for as_dir in $PATH
1991do
1992 IFS=$as_save_IFS
1993 test -z "$as_dir" && as_dir=.
1994 for ac_exec_ext in '' $ac_executable_extensions; do
1995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1996 ac_cv_prog_ac_ct_CC="cc"
1997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1998 break 2
1999 fi
2000done
2001done
2002
2003fi
2004fi
2005ac_ct_CC=$ac_cv_prog_ac_ct_CC
2006if test -n "$ac_ct_CC"; then
2007 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2008echo "${ECHO_T}$ac_ct_CC" >&6
2009else
2010 echo "$as_me:$LINENO: result: no" >&5
2011echo "${ECHO_T}no" >&6
2012fi
2013
2014 CC=$ac_ct_CC
2015else
2016 CC="$ac_cv_prog_CC"
2017fi
2018
2019fi
2020if test -z "$CC"; then
2021 # Extract the first word of "cc", so it can be a program name with args.
2022set dummy cc; ac_word=$2
2023echo "$as_me:$LINENO: checking for $ac_word" >&5
2024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2025if test "${ac_cv_prog_CC+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2027else
2028 if test -n "$CC"; then
2029 ac_cv_prog_CC="$CC" # Let the user override the test.
2030else
2031 ac_prog_rejected=no
2032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033for as_dir in $PATH
2034do
2035 IFS=$as_save_IFS
2036 test -z "$as_dir" && as_dir=.
2037 for ac_exec_ext in '' $ac_executable_extensions; do
2038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2039 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2040 ac_prog_rejected=yes
2041 continue
2042 fi
2043 ac_cv_prog_CC="cc"
2044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2045 break 2
2046 fi
2047done
2048done
2049
2050if test $ac_prog_rejected = yes; then
2051 # We found a bogon in the path, so make sure we never use it.
2052 set dummy $ac_cv_prog_CC
2053 shift
2054 if test $# != 0; then
2055 # We chose a different compiler from the bogus one.
2056 # However, it has the same basename, so the bogon will be chosen
2057 # first if we set CC to just the basename; use the full file name.
2058 shift
2059 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2060 fi
2061fi
2062fi
2063fi
2064CC=$ac_cv_prog_CC
2065if test -n "$CC"; then
2066 echo "$as_me:$LINENO: result: $CC" >&5
2067echo "${ECHO_T}$CC" >&6
2068else
2069 echo "$as_me:$LINENO: result: no" >&5
2070echo "${ECHO_T}no" >&6
2071fi
2072
2073fi
2074if test -z "$CC"; then
2075 if test -n "$ac_tool_prefix"; then
2076 for ac_prog in cl
2077 do
2078 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2079set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2080echo "$as_me:$LINENO: checking for $ac_word" >&5
2081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2082if test "${ac_cv_prog_CC+set}" = set; then
2083 echo $ECHO_N "(cached) $ECHO_C" >&6
2084else
2085 if test -n "$CC"; then
2086 ac_cv_prog_CC="$CC" # Let the user override the test.
2087else
2088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089for as_dir in $PATH
2090do
2091 IFS=$as_save_IFS
2092 test -z "$as_dir" && as_dir=.
2093 for ac_exec_ext in '' $ac_executable_extensions; do
2094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2095 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2097 break 2
2098 fi
2099done
2100done
2101
2102fi
2103fi
2104CC=$ac_cv_prog_CC
2105if test -n "$CC"; then
2106 echo "$as_me:$LINENO: result: $CC" >&5
2107echo "${ECHO_T}$CC" >&6
2108else
2109 echo "$as_me:$LINENO: result: no" >&5
2110echo "${ECHO_T}no" >&6
2111fi
2112
2113 test -n "$CC" && break
2114 done
2115fi
2116if test -z "$CC"; then
2117 ac_ct_CC=$CC
2118 for ac_prog in cl
2119do
2120 # Extract the first word of "$ac_prog", so it can be a program name with args.
2121set dummy $ac_prog; ac_word=$2
2122echo "$as_me:$LINENO: checking for $ac_word" >&5
2123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2124if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
2126else
2127 if test -n "$ac_ct_CC"; then
2128 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2129else
2130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2131for as_dir in $PATH
2132do
2133 IFS=$as_save_IFS
2134 test -z "$as_dir" && as_dir=.
2135 for ac_exec_ext in '' $ac_executable_extensions; do
2136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2137 ac_cv_prog_ac_ct_CC="$ac_prog"
2138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2139 break 2
2140 fi
2141done
2142done
2143
2144fi
2145fi
2146ac_ct_CC=$ac_cv_prog_ac_ct_CC
2147if test -n "$ac_ct_CC"; then
2148 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2149echo "${ECHO_T}$ac_ct_CC" >&6
2150else
2151 echo "$as_me:$LINENO: result: no" >&5
2152echo "${ECHO_T}no" >&6
2153fi
2154
2155 test -n "$ac_ct_CC" && break
2156done
2157
2158 CC=$ac_ct_CC
2159fi
2160
2161fi
2162
2163
2164test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2165See \`config.log' for more details." >&5
2166echo "$as_me: error: no acceptable C compiler found in \$PATH
2167See \`config.log' for more details." >&2;}
2168 { (exit 1); exit 1; }; }
2169
2170# Provide some information about the compiler.
2171echo "$as_me:$LINENO:" \
2172 "checking for C compiler version" >&5
2173ac_compiler=`set X $ac_compile; echo $2`
2174{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2175 (eval $ac_compiler --version </dev/null >&5) 2>&5
2176 ac_status=$?
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }
2179{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2180 (eval $ac_compiler -v </dev/null >&5) 2>&5
2181 ac_status=$?
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }
2184{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2185 (eval $ac_compiler -V </dev/null >&5) 2>&5
2186 ac_status=$?
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }
2189
2190cat >conftest.$ac_ext <<_ACEOF
2191#line $LINENO "configure"
2192/* confdefs.h. */
2193_ACEOF
2194cat confdefs.h >>conftest.$ac_ext
2195cat >>conftest.$ac_ext <<_ACEOF
2196/* end confdefs.h. */
2197
2198int
2199main ()
2200{
2201
2202 ;
2203 return 0;
2204}
2205_ACEOF
2206ac_clean_files_save=$ac_clean_files
2207ac_clean_files="$ac_clean_files a.out a.exe b.out"
2208# Try to create an executable without -o first, disregard a.out.
2209# It will help us diagnose broken compilers, and finding out an intuition
2210# of exeext.
2211echo "$as_me:$LINENO: checking for C compiler default output" >&5
2212echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2213ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2214if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2215 (eval $ac_link_default) 2>&5
2216 ac_status=$?
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; then
2219 # Find the output, starting from the most likely. This scheme is
2220# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2221# resort.
2222
2223# Be careful to initialize this variable, since it used to be cached.
2224# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2225ac_cv_exeext=
2226# b.out is created by i960 compilers.
2227for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2228do
2229 test -f "$ac_file" || continue
2230 case $ac_file in
2231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2232 ;;
2233 conftest.$ac_ext )
2234 # This is the source file.
2235 ;;
2236 [ab].out )
2237 # We found the default executable, but exeext='' is most
2238 # certainly right.
2239 break;;
2240 *.* )
2241 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2242 # FIXME: I believe we export ac_cv_exeext for Libtool,
2243 # but it would be cool to find out if it's true. Does anybody
2244 # maintain Libtool? --akim.
2245 export ac_cv_exeext
2246 break;;
2247 * )
2248 break;;
2249 esac
2250done
2251else
2252 echo "$as_me: failed program was:" >&5
2253sed 's/^/| /' conftest.$ac_ext >&5
2254
2255{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2256See \`config.log' for more details." >&5
2257echo "$as_me: error: C compiler cannot create executables
2258See \`config.log' for more details." >&2;}
2259 { (exit 77); exit 77; }; }
2260fi
2261
2262ac_exeext=$ac_cv_exeext
2263echo "$as_me:$LINENO: result: $ac_file" >&5
2264echo "${ECHO_T}$ac_file" >&6
2265
2266# Check the compiler produces executables we can run. If not, either
2267# the compiler is broken, or we cross compile.
2268echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2269echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2270# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2271# If not cross compiling, check that we can run a simple program.
2272if test "$cross_compiling" != yes; then
2273 if { ac_try='./$ac_file'
2274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275 (eval $ac_try) 2>&5
2276 ac_status=$?
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; }; then
2279 cross_compiling=no
2280 else
2281 if test "$cross_compiling" = maybe; then
2282 cross_compiling=yes
2283 else
2284 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2285If you meant to cross compile, use \`--host'.
2286See \`config.log' for more details." >&5
2287echo "$as_me: error: cannot run C compiled programs.
2288If you meant to cross compile, use \`--host'.
2289See \`config.log' for more details." >&2;}
2290 { (exit 1); exit 1; }; }
2291 fi
2292 fi
2293fi
2294echo "$as_me:$LINENO: result: yes" >&5
2295echo "${ECHO_T}yes" >&6
2296
2297rm -f a.out a.exe conftest$ac_cv_exeext b.out
2298ac_clean_files=$ac_clean_files_save
2299# Check the compiler produces executables we can run. If not, either
2300# the compiler is broken, or we cross compile.
2301echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2302echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2303echo "$as_me:$LINENO: result: $cross_compiling" >&5
2304echo "${ECHO_T}$cross_compiling" >&6
2305
2306echo "$as_me:$LINENO: checking for suffix of executables" >&5
2307echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2309 (eval $ac_link) 2>&5
2310 ac_status=$?
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); }; then
2313 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2314# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2315# work properly (i.e., refer to `conftest.exe'), while it won't with
2316# `rm'.
2317for ac_file in conftest.exe conftest conftest.*; do
2318 test -f "$ac_file" || continue
2319 case $ac_file in
2320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2321 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2322 export ac_cv_exeext
2323 break;;
2324 * ) break;;
2325 esac
2326done
2327else
2328 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2329See \`config.log' for more details." >&5
2330echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2331See \`config.log' for more details." >&2;}
2332 { (exit 1); exit 1; }; }
2333fi
2334
2335rm -f conftest$ac_cv_exeext
2336echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2337echo "${ECHO_T}$ac_cv_exeext" >&6
2338
2339rm -f conftest.$ac_ext
2340EXEEXT=$ac_cv_exeext
2341ac_exeext=$EXEEXT
2342echo "$as_me:$LINENO: checking for suffix of object files" >&5
2343echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2344if test "${ac_cv_objext+set}" = set; then
2345 echo $ECHO_N "(cached) $ECHO_C" >&6
2346else
2347 cat >conftest.$ac_ext <<_ACEOF
2348#line $LINENO "configure"
2349/* confdefs.h. */
2350_ACEOF
2351cat confdefs.h >>conftest.$ac_ext
2352cat >>conftest.$ac_ext <<_ACEOF
2353/* end confdefs.h. */
2354
2355int
2356main ()
2357{
2358
2359 ;
2360 return 0;
2361}
2362_ACEOF
2363rm -f conftest.o conftest.obj
2364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2365 (eval $ac_compile) 2>&5
2366 ac_status=$?
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; then
2369 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2370 case $ac_file in
2371 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2372 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2373 break;;
2374 esac
2375done
2376else
2377 echo "$as_me: failed program was:" >&5
2378sed 's/^/| /' conftest.$ac_ext >&5
2379
2380{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2381See \`config.log' for more details." >&5
2382echo "$as_me: error: cannot compute suffix of object files: cannot compile
2383See \`config.log' for more details." >&2;}
2384 { (exit 1); exit 1; }; }
2385fi
2386
2387rm -f conftest.$ac_cv_objext conftest.$ac_ext
2388fi
2389echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2390echo "${ECHO_T}$ac_cv_objext" >&6
2391OBJEXT=$ac_cv_objext
2392ac_objext=$OBJEXT
2393echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2394echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2395if test "${ac_cv_c_compiler_gnu+set}" = set; then
2396 echo $ECHO_N "(cached) $ECHO_C" >&6
2397else
2398 cat >conftest.$ac_ext <<_ACEOF
2399#line $LINENO "configure"
2400/* confdefs.h. */
2401_ACEOF
2402cat confdefs.h >>conftest.$ac_ext
2403cat >>conftest.$ac_ext <<_ACEOF
2404/* end confdefs.h. */
2405
2406int
2407main ()
2408{
2409#ifndef __GNUC__
2410 choke me
2411#endif
2412
2413 ;
2414 return 0;
2415}
2416_ACEOF
2417rm -f conftest.$ac_objext
2418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2419 (eval $ac_compile) 2>&5
2420 ac_status=$?
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); } &&
2423 { ac_try='test -s conftest.$ac_objext'
2424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425 (eval $ac_try) 2>&5
2426 ac_status=$?
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; }; then
2429 ac_compiler_gnu=yes
2430else
2431 echo "$as_me: failed program was:" >&5
2432sed 's/^/| /' conftest.$ac_ext >&5
2433
2434ac_compiler_gnu=no
2435fi
2436rm -f conftest.$ac_objext conftest.$ac_ext
2437ac_cv_c_compiler_gnu=$ac_compiler_gnu
2438
2439fi
2440echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2441echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2442GCC=`test $ac_compiler_gnu = yes && echo yes`
2443ac_test_CFLAGS=${CFLAGS+set}
2444ac_save_CFLAGS=$CFLAGS
2445CFLAGS="-g"
2446echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2447echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2448if test "${ac_cv_prog_cc_g+set}" = set; then
2449 echo $ECHO_N "(cached) $ECHO_C" >&6
2450else
2451 cat >conftest.$ac_ext <<_ACEOF
2452#line $LINENO "configure"
2453/* confdefs.h. */
2454_ACEOF
2455cat confdefs.h >>conftest.$ac_ext
2456cat >>conftest.$ac_ext <<_ACEOF
2457/* end confdefs.h. */
2458
2459int
2460main ()
2461{
2462
2463 ;
2464 return 0;
2465}
2466_ACEOF
2467rm -f conftest.$ac_objext
2468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2469 (eval $ac_compile) 2>&5
2470 ac_status=$?
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); } &&
2473 { ac_try='test -s conftest.$ac_objext'
2474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475 (eval $ac_try) 2>&5
2476 ac_status=$?
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); }; }; then
2479 ac_cv_prog_cc_g=yes
2480else
2481 echo "$as_me: failed program was:" >&5
2482sed 's/^/| /' conftest.$ac_ext >&5
2483
2484ac_cv_prog_cc_g=no
2485fi
2486rm -f conftest.$ac_objext conftest.$ac_ext
2487fi
2488echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2489echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2490if test "$ac_test_CFLAGS" = set; then
2491 CFLAGS=$ac_save_CFLAGS
2492elif test $ac_cv_prog_cc_g = yes; then
2493 if test "$GCC" = yes; then
2494 CFLAGS="-g -O2"
2495 else
2496 CFLAGS="-g"
2497 fi
2498else
2499 if test "$GCC" = yes; then
2500 CFLAGS="-O2"
2501 else
2502 CFLAGS=
2503 fi
2504fi
2505echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2506echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2507if test "${ac_cv_prog_cc_stdc+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2509else
2510 ac_cv_prog_cc_stdc=no
2511ac_save_CC=$CC
2512cat >conftest.$ac_ext <<_ACEOF
2513#line $LINENO "configure"
2514/* confdefs.h. */
2515_ACEOF
2516cat confdefs.h >>conftest.$ac_ext
2517cat >>conftest.$ac_ext <<_ACEOF
2518/* end confdefs.h. */
2519#include <stdarg.h>
2520#include <stdio.h>
2521#include <sys/types.h>
2522#include <sys/stat.h>
2523/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2524struct buf { int x; };
2525FILE * (*rcsopen) (struct buf *, struct stat *, int);
2526static char *e (p, i)
2527 char **p;
2528 int i;
2529{
2530 return p[i];
2531}
2532static char *f (char * (*g) (char **, int), char **p, ...)
2533{
2534 char *s;
2535 va_list v;
2536 va_start (v,p);
2537 s = g (p, va_arg (v,int));
2538 va_end (v);
2539 return s;
2540}
2541int test (int i, double x);
2542struct s1 {int (*f) (int a);};
2543struct s2 {int (*f) (double a);};
2544int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2545int argc;
2546char **argv;
2547int
2548main ()
2549{
2550return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2551 ;
2552 return 0;
2553}
2554_ACEOF
2555# Don't try gcc -ansi; that turns off useful extensions and
2556# breaks some systems' header files.
2557# AIX -qlanglvl=ansi
2558# Ultrix and OSF/1 -std1
2559# HP-UX 10.20 and later -Ae
2560# HP-UX older versions -Aa -D_HPUX_SOURCE
2561# SVR4 -Xc -D__EXTENSIONS__
2562for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2563do
2564 CC="$ac_save_CC $ac_arg"
2565 rm -f conftest.$ac_objext
2566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2567 (eval $ac_compile) 2>&5
2568 ac_status=$?
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); } &&
2571 { ac_try='test -s conftest.$ac_objext'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573 (eval $ac_try) 2>&5
2574 ac_status=$?
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; }; then
2577 ac_cv_prog_cc_stdc=$ac_arg
2578break
2579else
2580 echo "$as_me: failed program was:" >&5
2581sed 's/^/| /' conftest.$ac_ext >&5
2582
2583fi
2584rm -f conftest.$ac_objext
2585done
2586rm -f conftest.$ac_ext conftest.$ac_objext
2587CC=$ac_save_CC
2588
2589fi
2590
2591case "x$ac_cv_prog_cc_stdc" in
2592 x|xno)
2593 echo "$as_me:$LINENO: result: none needed" >&5
2594echo "${ECHO_T}none needed" >&6 ;;
2595 *)
2596 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2597echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2598 CC="$CC $ac_cv_prog_cc_stdc" ;;
2599esac
2600
2601# Some people use a C++ compiler to compile C. Since we use `exit',
2602# in C++ we need to declare it. In case someone uses the same compiler
2603# for both compiling C and C++ we need to have the C++ compiler decide
2604# the declaration of exit, since it's the most demanding environment.
2605cat >conftest.$ac_ext <<_ACEOF
2606#ifndef __cplusplus
2607 choke me
2608#endif
2609_ACEOF
2610rm -f conftest.$ac_objext
2611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2612 (eval $ac_compile) 2>&5
2613 ac_status=$?
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } &&
2616 { ac_try='test -s conftest.$ac_objext'
2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 (eval $ac_try) 2>&5
2619 ac_status=$?
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; }; then
2622 for ac_declaration in \
2623 ''\
2624 '#include <stdlib.h>' \
2625 'extern "C" void std::exit (int) throw (); using std::exit;' \
2626 'extern "C" void std::exit (int); using std::exit;' \
2627 'extern "C" void exit (int) throw ();' \
2628 'extern "C" void exit (int);' \
2629 'void exit (int);'
2630do
2631 cat >conftest.$ac_ext <<_ACEOF
2632#line $LINENO "configure"
2633/* confdefs.h. */
2634_ACEOF
2635cat confdefs.h >>conftest.$ac_ext
2636cat >>conftest.$ac_ext <<_ACEOF
2637/* end confdefs.h. */
2638#include <stdlib.h>
2639$ac_declaration
2640int
2641main ()
2642{
2643exit (42);
2644 ;
2645 return 0;
2646}
2647_ACEOF
2648rm -f conftest.$ac_objext
2649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2650 (eval $ac_compile) 2>&5
2651 ac_status=$?
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); } &&
2654 { ac_try='test -s conftest.$ac_objext'
2655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656 (eval $ac_try) 2>&5
2657 ac_status=$?
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); }; }; then
2660 :
2661else
2662 echo "$as_me: failed program was:" >&5
2663sed 's/^/| /' conftest.$ac_ext >&5
2664
2665continue
2666fi
2667rm -f conftest.$ac_objext conftest.$ac_ext
2668 cat >conftest.$ac_ext <<_ACEOF
2669#line $LINENO "configure"
2670/* confdefs.h. */
2671_ACEOF
2672cat confdefs.h >>conftest.$ac_ext
2673cat >>conftest.$ac_ext <<_ACEOF
2674/* end confdefs.h. */
2675$ac_declaration
2676int
2677main ()
2678{
2679exit (42);
2680 ;
2681 return 0;
2682}
2683_ACEOF
2684rm -f conftest.$ac_objext
2685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2686 (eval $ac_compile) 2>&5
2687 ac_status=$?
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); } &&
2690 { ac_try='test -s conftest.$ac_objext'
2691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692 (eval $ac_try) 2>&5
2693 ac_status=$?
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }; }; then
2696 break
2697else
2698 echo "$as_me: failed program was:" >&5
2699sed 's/^/| /' conftest.$ac_ext >&5
2700
2701fi
2702rm -f conftest.$ac_objext conftest.$ac_ext
2703done
2704rm -f conftest*
2705if test -n "$ac_declaration"; then
2706 echo '#ifdef __cplusplus' >>confdefs.h
2707 echo $ac_declaration >>confdefs.h
2708 echo '#endif' >>confdefs.h
2709fi
2710
2711else
2712 echo "$as_me: failed program was:" >&5
2713sed 's/^/| /' conftest.$ac_ext >&5
2714
2715fi
2716rm -f conftest.$ac_objext conftest.$ac_ext
2717ac_ext=c
2718ac_cpp='$CPP $CPPFLAGS'
2719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2721ac_compiler_gnu=$ac_cv_c_compiler_gnu
2722rm -f .deps 2>/dev/null
2723mkdir .deps 2>/dev/null
2724if test -d .deps; then
2725 DEPDIR=.deps
2726else
2727 # MS-DOS does not allow filenames that begin with a dot.
2728 DEPDIR=_deps
2729fi
2730rmdir .deps 2>/dev/null
2731
2732
2733 ac_config_commands="$ac_config_commands depfiles"
2734
2735
2736am_make=${MAKE-make}
2737cat > confinc << 'END'
2738doit:
2739 @echo done
2740END
2741# If we don't find an include directive, just comment out the code.
2742echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2743echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2744am__include="#"
2745am__quote=
2746_am_result=none
2747# First try GNU make style include.
2748echo "include confinc" > confmf
2749# We grep out `Entering directory' and `Leaving directory'
2750# messages which can occur if `w' ends up in MAKEFLAGS.
2751# In particular we don't look at `^make:' because GNU make might
2752# be invoked under some other name (usually "gmake"), in which
2753# case it prints its new name instead of `make'.
2754if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2755 am__include=include
2756 am__quote=
2757 _am_result=GNU
2758fi
2759# Now try BSD make style include.
2760if test "$am__include" = "#"; then
2761 echo '.include "confinc"' > confmf
2762 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2763 am__include=.include
2764 am__quote="\""
2765 _am_result=BSD
2766 fi
2767fi
2768
2769
2770echo "$as_me:$LINENO: result: $_am_result" >&5
2771echo "${ECHO_T}$_am_result" >&6
2772rm -f confinc confmf
2773
2774# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2775if test "${enable_dependency_tracking+set}" = set; then
2776 enableval="$enable_dependency_tracking"
2777
2778fi;
2779if test "x$enable_dependency_tracking" != xno; then
2780 am_depcomp="$ac_aux_dir/depcomp"
2781 AMDEPBACKSLASH='\'
2782fi
2783
2784
2785if test "x$enable_dependency_tracking" != xno; then
2786 AMDEP_TRUE=
2787 AMDEP_FALSE='#'
2788else
2789 AMDEP_TRUE='#'
2790 AMDEP_FALSE=
2791fi
2792
2793
2794
2795
2796depcc="$CC" am_compiler_list=
2797
2798echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2799echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2800if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2801 echo $ECHO_N "(cached) $ECHO_C" >&6
2802else
2803 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2804 # We make a subdir and do the tests there. Otherwise we can end up
2805 # making bogus files that we don't know about and never remove. For
2806 # instance it was reported that on HP-UX the gcc test will end up
2807 # making a dummy file named `D' -- because `-MD' means `put the output
2808 # in D'.
2809 mkdir conftest.dir
2810 # Copy depcomp to subdir because otherwise we won't find it if we're
2811 # using a relative directory.
2812 cp "$am_depcomp" conftest.dir
2813 cd conftest.dir
2814
2815 am_cv_CC_dependencies_compiler_type=none
2816 if test "$am_compiler_list" = ""; then
2817 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2818 fi
2819 for depmode in $am_compiler_list; do
2820 # We need to recreate these files for each test, as the compiler may
2821 # overwrite some of them when testing with obscure command lines.
2822 # This happens at least with the AIX C compiler.
2823 echo '#include "conftest.h"' > conftest.c
2824 echo 'int i;' > conftest.h
2825 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2826
2827 case $depmode in
2828 nosideeffect)
2829 # after this tag, mechanisms are not by side-effect, so they'll
2830 # only be used when explicitly requested
2831 if test "x$enable_dependency_tracking" = xyes; then
2832 continue
2833 else
2834 break
2835 fi
2836 ;;
2837 none) break ;;
2838 esac
2839 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2840 # mode. It turns out that the SunPro C++ compiler does not properly
2841 # handle `-M -o', and we need to detect this.
2842 if depmode=$depmode \
2843 source=conftest.c object=conftest.o \
2844 depfile=conftest.Po tmpdepfile=conftest.TPo \
2845 $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
2846 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2847 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2848 am_cv_CC_dependencies_compiler_type=$depmode
2849 break
2850 fi
2851 done
2852
2853 cd ..
2854 rm -rf conftest.dir
2855else
2856 am_cv_CC_dependencies_compiler_type=none
2857fi
2858
2859fi
2860echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2861echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2862CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2863
2864
2865
2866if
2867 test "x$enable_dependency_tracking" != xno \
2868 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2869 am__fastdepCC_TRUE=
2870 am__fastdepCC_FALSE='#'
2871else
2872 am__fastdepCC_TRUE='#'
2873 am__fastdepCC_FALSE=
2874fi
2875
2876
2877echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2878echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2879set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2880if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2881 echo $ECHO_N "(cached) $ECHO_C" >&6
2882else
2883 cat >conftest.make <<\_ACEOF
2884all:
2885 @echo 'ac_maketemp="$(MAKE)"'
2886_ACEOF
2887# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2888eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2889if test -n "$ac_maketemp"; then
2890 eval ac_cv_prog_make_${ac_make}_set=yes
2891else
2892 eval ac_cv_prog_make_${ac_make}_set=no
2893fi
2894rm -f conftest.make
2895fi
2896if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2897 echo "$as_me:$LINENO: result: yes" >&5
2898echo "${ECHO_T}yes" >&6
2899 SET_MAKE=
2900else
2901 echo "$as_me:$LINENO: result: no" >&5
2902echo "${ECHO_T}no" >&6
2903 SET_MAKE="MAKE=${MAKE-make}"
2904fi
2905
2906# Check whether --enable-shared or --disable-shared was given.
2907if test "${enable_shared+set}" = set; then
2908 enableval="$enable_shared"
2909 p=${PACKAGE-default}
2910case $enableval in
2911yes) enable_shared=yes ;;
2912no) enable_shared=no ;;
2913*)
2914 enable_shared=no
2915 # Look at the argument we got. We use all the common list separators.
2916 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2917 for pkg in $enableval; do
2918 if test "X$pkg" = "X$p"; then
2919 enable_shared=yes
2920 fi
2921 done
2922 IFS="$ac_save_ifs"
2923 ;;
2924esac
2925else
2926 enable_shared=yes
2927fi;
2928# Check whether --enable-static or --disable-static was given.
2929if test "${enable_static+set}" = set; then
2930 enableval="$enable_static"
2931 p=${PACKAGE-default}
2932case $enableval in
2933yes) enable_static=yes ;;
2934no) enable_static=no ;;
2935*)
2936 enable_static=no
2937 # Look at the argument we got. We use all the common list separators.
2938 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2939 for pkg in $enableval; do
2940 if test "X$pkg" = "X$p"; then
2941 enable_static=yes
2942 fi
2943 done
2944 IFS="$ac_save_ifs"
2945 ;;
2946esac
2947else
2948 enable_static=yes
2949fi;
2950# Check whether --enable-fast-install or --disable-fast-install was given.
2951if test "${enable_fast_install+set}" = set; then
2952 enableval="$enable_fast_install"
2953 p=${PACKAGE-default}
2954case $enableval in
2955yes) enable_fast_install=yes ;;
2956no) enable_fast_install=no ;;
2957*)
2958 enable_fast_install=no
2959 # Look at the argument we got. We use all the common list separators.
2960 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2961 for pkg in $enableval; do
2962 if test "X$pkg" = "X$p"; then
2963 enable_fast_install=yes
2964 fi
2965 done
2966 IFS="$ac_save_ifs"
2967 ;;
2968esac
2969else
2970 enable_fast_install=yes
2971fi;
2972# Make sure we can run config.sub.
2973$ac_config_sub sun4 >/dev/null 2>&1 ||
2974 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2975echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2976 { (exit 1); exit 1; }; }
2977
2978echo "$as_me:$LINENO: checking build system type" >&5
2979echo $ECHO_N "checking build system type... $ECHO_C" >&6
2980if test "${ac_cv_build+set}" = set; then
2981 echo $ECHO_N "(cached) $ECHO_C" >&6
2982else
2983 ac_cv_build_alias=$build_alias
2984test -z "$ac_cv_build_alias" &&
2985 ac_cv_build_alias=`$ac_config_guess`
2986test -z "$ac_cv_build_alias" &&
2987 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2988echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2989 { (exit 1); exit 1; }; }
2990ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2991 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2992echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2993 { (exit 1); exit 1; }; }
2994
2995fi
2996echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2997echo "${ECHO_T}$ac_cv_build" >&6
2998build=$ac_cv_build
2999build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3000build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3001build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3002
3003
3004echo "$as_me:$LINENO: checking host system type" >&5
3005echo $ECHO_N "checking host system type... $ECHO_C" >&6
3006if test "${ac_cv_host+set}" = set; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
3008else
3009 ac_cv_host_alias=$host_alias
3010test -z "$ac_cv_host_alias" &&
3011 ac_cv_host_alias=$ac_cv_build_alias
3012ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3013 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3014echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3015 { (exit 1); exit 1; }; }
3016
3017fi
3018echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3019echo "${ECHO_T}$ac_cv_host" >&6
3020host=$ac_cv_host
3021host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3022host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3023host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3024
3025
3026# Find the correct PATH separator. Usually this is `:', but
3027# DJGPP uses `;' like DOS.
3028if test "X${PATH_SEPARATOR+set}" != Xset; then
3029 UNAME=${UNAME-`uname 2>/dev/null`}
3030 case X$UNAME in
3031 *-DOS) lt_cv_sys_path_separator=';' ;;
3032 *) lt_cv_sys_path_separator=':' ;;
3033 esac
3034 PATH_SEPARATOR=$lt_cv_sys_path_separator
3035fi
3036
3037
3038# Check whether --with-gnu-ld or --without-gnu-ld was given.
3039if test "${with_gnu_ld+set}" = set; then
3040 withval="$with_gnu_ld"
3041 test "$withval" = no || with_gnu_ld=yes
3042else
3043 with_gnu_ld=no
3044fi;
3045ac_prog=ld
3046if test "$GCC" = yes; then
3047 # Check if gcc -print-prog-name=ld gives a path.
3048 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3049echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3050 case $host in
3051 *-*-mingw*)
3052 # gcc leaves a trailing carriage return which upsets mingw
3053 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3054 *)
3055 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3056 esac
3057 case $ac_prog in
3058 # Accept absolute paths.
3059 [\\/]* | [A-Za-z]:[\\/]*)
3060 re_direlt='/[^/][^/]*/\.\./'
3061 # Canonicalize the path of ld
3062 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3063 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3064 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3065 done
3066 test -z "$LD" && LD="$ac_prog"
3067 ;;
3068 "")
3069 # If it fails, then pretend we aren't using GCC.
3070 ac_prog=ld
3071 ;;
3072 *)
3073 # If it is relative, then search for the first ld in PATH.
3074 with_gnu_ld=unknown
3075 ;;
3076 esac
3077elif test "$with_gnu_ld" = yes; then
3078 echo "$as_me:$LINENO: checking for GNU ld" >&5
3079echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3080else
3081 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3082echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3083fi
3084if test "${lt_cv_path_LD+set}" = set; then
3085 echo $ECHO_N "(cached) $ECHO_C" >&6
3086else
3087 if test -z "$LD"; then
3088 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3089 for ac_dir in $PATH; do
3090 test -z "$ac_dir" && ac_dir=.
3091 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3092 lt_cv_path_LD="$ac_dir/$ac_prog"
3093 # Check to see if the program is GNU ld. I'd rather use --version,
3094 # but apparently some GNU ld's only accept -v.
3095 # Break only if it was the GNU/non-GNU ld that we prefer.
3096 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3097 test "$with_gnu_ld" != no && break
3098 else
3099 test "$with_gnu_ld" != yes && break
3100 fi
3101 fi
3102 done
3103 IFS="$ac_save_ifs"
3104else
3105 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3106fi
3107fi
3108
3109LD="$lt_cv_path_LD"
3110if test -n "$LD"; then
3111 echo "$as_me:$LINENO: result: $LD" >&5
3112echo "${ECHO_T}$LD" >&6
3113else
3114 echo "$as_me:$LINENO: result: no" >&5
3115echo "${ECHO_T}no" >&6
3116fi
3117test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3118echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3119 { (exit 1); exit 1; }; }
3120echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3121echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3122if test "${lt_cv_prog_gnu_ld+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3124else
3125 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3126if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3127 lt_cv_prog_gnu_ld=yes
3128else
3129 lt_cv_prog_gnu_ld=no
3130fi
3131fi
3132echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3133echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3134with_gnu_ld=$lt_cv_prog_gnu_ld
3135
3136
3137echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3138echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3139if test "${lt_cv_ld_reload_flag+set}" = set; then
3140 echo $ECHO_N "(cached) $ECHO_C" >&6
3141else
3142 lt_cv_ld_reload_flag='-r'
3143fi
3144echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3145echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3146reload_flag=$lt_cv_ld_reload_flag
3147test -n "$reload_flag" && reload_flag=" $reload_flag"
3148
3149echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3150echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3151if test "${lt_cv_path_NM+set}" = set; then
3152 echo $ECHO_N "(cached) $ECHO_C" >&6
3153else
3154 if test -n "$NM"; then
3155 # Let the user override the test.
3156 lt_cv_path_NM="$NM"
3157else
3158 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3159 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3160 test -z "$ac_dir" && ac_dir=.
3161 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3162 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3163 # Check to see if the nm accepts a BSD-compat flag.
3164 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3165 # nm: unknown option "B" ignored
3166 # Tru64's nm complains that /dev/null is an invalid object file
3167 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3168 lt_cv_path_NM="$tmp_nm -B"
3169 break
3170 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3171 lt_cv_path_NM="$tmp_nm -p"
3172 break
3173 else
3174 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3175 continue # so that we can try to find one that supports BSD flags
3176 fi
3177 fi
3178 done
3179 IFS="$ac_save_ifs"
3180 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3181fi
3182fi
3183
3184NM="$lt_cv_path_NM"
3185echo "$as_me:$LINENO: result: $NM" >&5
3186echo "${ECHO_T}$NM" >&6
3187
3188echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3189echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3190if test "${lt_cv_path_SED+set}" = set; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3192else
3193 # Loop through the user's path and test for sed and gsed.
3194# Then use that list of sed's as ones to test for truncation.
3195as_executable_p="test -f"
3196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197for as_dir in $PATH
3198do
3199 IFS=$as_save_IFS
3200 test -z "$as_dir" && as_dir=.
3201 for ac_prog in sed gsed; do
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3204 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3205 fi
3206 done
3207 done
3208done
3209
3210 # Create a temporary directory, and hook for its removal unless debugging.
3211$debug ||
3212{
3213 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3214 trap '{ (exit 1); exit 1; }' 1 2 13 15
3215}
3216
3217# Create a (secure) tmp directory for tmp files.
3218: ${TMPDIR=/tmp}
3219{
3220 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3221 test -n "$tmp" && test -d "$tmp"
3222} ||
3223{
3224 tmp=$TMPDIR/sed$$-$RANDOM
3225 (umask 077 && mkdir $tmp)
3226} ||
3227{
3228 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3229 { (exit 1); exit 1; }
3230}
3231 _max=0
3232 _count=0
3233 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3234 # along with /bin/sed that truncates output.
3235 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3236 test ! -f ${_sed} && break
3237 cat /dev/null > "$tmp/sed.in"
3238 _count=0
3239 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3240 # Check for GNU sed and select it if it is found.
3241 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3242 lt_cv_path_SED=${_sed}
3243 break
3244 fi
3245 while true; do
3246 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3247 mv "$tmp/sed.tmp" "$tmp/sed.in"
3248 cp "$tmp/sed.in" "$tmp/sed.nl"
3249 echo >>"$tmp/sed.nl"
3250 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3251 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3252 # 40000 chars as input seems more than enough
3253 test $_count -gt 10 && break
3254 _count=`expr $_count + 1`
3255 if test $_count -gt $_max; then
3256 _max=$_count
3257 lt_cv_path_SED=$_sed
3258 fi
3259 done
3260 done
3261 rm -rf "$tmp"
3262
3263fi
3264
3265if test "X$SED" != "X"; then
3266 lt_cv_path_SED=$SED
3267else
3268 SED=$lt_cv_path_SED
3269fi
3270echo "$as_me:$LINENO: result: $SED" >&5
3271echo "${ECHO_T}$SED" >&6
3272
3273echo "$as_me:$LINENO: checking whether ln -s works" >&5
3274echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3275LN_S=$as_ln_s
3276if test "$LN_S" = "ln -s"; then
3277 echo "$as_me:$LINENO: result: yes" >&5
3278echo "${ECHO_T}yes" >&6
3279else
3280 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3281echo "${ECHO_T}no, using $LN_S" >&6
3282fi
3283
3284echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3285echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3286if test "${lt_cv_deplibs_check_method+set}" = set; then
3287 echo $ECHO_N "(cached) $ECHO_C" >&6
3288else
3289 lt_cv_file_magic_cmd='$MAGIC_CMD'
3290lt_cv_file_magic_test_file=
3291lt_cv_deplibs_check_method='unknown'
3292# Need to set the preceding variable on all platforms that support
3293# interlibrary dependencies.
3294# 'none' -- dependencies not supported.
3295# `unknown' -- same as none, but documents that we really don't know.
3296# 'pass_all' -- all dependencies passed with no checks.
3297# 'test_compile' -- check by making test program.
3298# 'file_magic [[regex]]' -- check by looking for files in library path
3299# which responds to the $file_magic_cmd with a given egrep regex.
3300# If you have `file' or equivalent on your system and you're not sure
3301# whether `pass_all' will *always* work, you probably want this one.
3302
3303case $host_os in
3304aix4* | aix5*)
3305 lt_cv_deplibs_check_method=pass_all
3306 ;;
3307
3308beos*)
3309 lt_cv_deplibs_check_method=pass_all
3310 ;;
3311
3312bsdi4*)
3313 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3314 lt_cv_file_magic_cmd='/usr/bin/file -L'
3315 lt_cv_file_magic_test_file=/shlib/libc.so
3316 ;;
3317
3318cygwin* | mingw* | pw32*)
3319 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3320 lt_cv_file_magic_cmd='$OBJDUMP -f'
3321 ;;
3322
3323darwin* | rhapsody*)
3324 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3325 lt_cv_file_magic_cmd='/usr/bin/file -L'
3326 case "$host_os" in
3327 rhapsody* | darwin1.[012])
3328 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3329 ;;
3330 *) # Darwin 1.3 on
3331 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3332 ;;
3333 esac
3334 ;;
3335
3336freebsd*)
3337 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3338 case $host_cpu in
3339 i*86 )
3340 # Not sure whether the presence of OpenBSD here was a mistake.
3341 # Let's accept both of them until this is cleared up.
3342 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3343 lt_cv_file_magic_cmd=/usr/bin/file
3344 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3345 ;;
3346 esac
3347 else
3348 lt_cv_deplibs_check_method=pass_all
3349 fi
3350 ;;
3351
3352gnu*)
3353 lt_cv_deplibs_check_method=pass_all
3354 ;;
3355
3356hpux10.20*|hpux11*)
3357 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3358 lt_cv_file_magic_cmd=/usr/bin/file
3359 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3360 ;;
3361
3362irix5* | irix6* | nonstopux*)
3363 case $host_os in
3364 irix5* | nonstopux*)
3365 # this will be overridden with pass_all, but let us keep it just in case
3366 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3367 ;;
3368 *)
3369 case $LD in
3370 *-32|*"-32 ") libmagic=32-bit;;
3371 *-n32|*"-n32 ") libmagic=N32;;
3372 *-64|*"-64 ") libmagic=64-bit;;
3373 *) libmagic=never-match;;
3374 esac
3375 # this will be overridden with pass_all, but let us keep it just in case
3376 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3377 ;;
3378 esac
3379 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3380 lt_cv_deplibs_check_method=pass_all
3381 ;;
3382
3383# This must be Linux ELF.
3384linux-gnu*)
3385 case $host_cpu in
3386 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3387 lt_cv_deplibs_check_method=pass_all ;;
3388 *)
3389 # glibc up to 2.1.1 does not perform some relocations on ARM
3390 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3391 esac
3392 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3393 ;;
3394
3395netbsd*)
3396 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3397 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3398 else
3399 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3400 fi
3401 ;;
3402
3403newos6*)
3404 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3405 lt_cv_file_magic_cmd=/usr/bin/file
3406 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3407 ;;
3408
3409openbsd*)
3410 lt_cv_file_magic_cmd=/usr/bin/file
3411 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3412 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3413 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3414 else
3415 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3416 fi
3417 ;;
3418
3419osf3* | osf4* | osf5*)
3420 # this will be overridden with pass_all, but let us keep it just in case
3421 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3422 lt_cv_file_magic_test_file=/shlib/libc.so
3423 lt_cv_deplibs_check_method=pass_all
3424 ;;
3425
3426sco3.2v5*)
3427 lt_cv_deplibs_check_method=pass_all
3428 ;;
3429
3430solaris*)
3431 lt_cv_deplibs_check_method=pass_all
3432 lt_cv_file_magic_test_file=/lib/libc.so
3433 ;;
3434
3435sysv5uw[78]* | sysv4*uw2*)
3436 lt_cv_deplibs_check_method=pass_all
3437 ;;
3438
3439sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3440 case $host_vendor in
3441 motorola)
3442 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]'
3443 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3444 ;;
3445 ncr)
3446 lt_cv_deplibs_check_method=pass_all
3447 ;;
3448 sequent)
3449 lt_cv_file_magic_cmd='/bin/file'
3450 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3451 ;;
3452 sni)
3453 lt_cv_file_magic_cmd='/bin/file'
3454 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3455 lt_cv_file_magic_test_file=/lib/libc.so
3456 ;;
3457 siemens)
3458 lt_cv_deplibs_check_method=pass_all
3459 ;;
3460 esac
3461 ;;
3462esac
3463
3464fi
3465echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3466echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3467file_magic_cmd=$lt_cv_file_magic_cmd
3468deplibs_check_method=$lt_cv_deplibs_check_method
3469
3470
3471
3472
3473
3474
3475
3476
3477# Check for command to grab the raw symbol name followed by C symbol from nm.
3478echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3479echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3480if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3481 echo $ECHO_N "(cached) $ECHO_C" >&6
3482else
3483
3484# These are sane defaults that work on at least a few old systems.
3485# [They come from Ultrix. What could be older than Ultrix?!! ;)]
3486
3487# Character class describing NM global symbol codes.
3488symcode='[BCDEGRST]'
3489
3490# Regexp to match symbols that can be accessed directly from C.
3491sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3492
3493# Transform the above into a raw symbol and a C symbol.
3494symxfrm='\1 \2\3 \3'
3495
3496# Transform an extracted symbol line into a proper C declaration
3497lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3498
3499# Transform an extracted symbol line into symbol name and symbol address
3500lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3501
3502# Define system-specific variables.
3503case $host_os in
3504aix*)
3505 symcode='[BCDT]'
3506 ;;
3507cygwin* | mingw* | pw32*)
3508 symcode='[ABCDGISTW]'
3509 ;;
3510hpux*) # Its linker distinguishes data from code symbols
3511 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3512 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'"
3513 ;;
3514irix* | nonstopux*)
3515 symcode='[BCDEGRST]'
3516 ;;
3517osf*)
3518 symcode='[BCDEGQRST]'
3519 ;;
3520solaris* | sysv5*)
3521 symcode='[BDT]'
3522 ;;
3523sysv4)
3524 symcode='[DFNSTU]'
3525 ;;
3526esac
3527
3528# Handle CRLF in mingw tool chain
3529opt_cr=
3530case $host_os in
3531mingw*)
3532 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3533 ;;
3534esac
3535
3536# If we're using GNU nm, then use its standard symbol codes.
3537if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3538 symcode='[ABCDGISTW]'
3539fi
3540
3541# Try without a prefix undercore, then with it.
3542for ac_symprfx in "" "_"; do
3543
3544 # Write the raw and C identifiers.
3545lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3546
3547 # Check to see that the pipe works correctly.
3548 pipe_works=no
3549 rm -f conftest*
3550 cat > conftest.$ac_ext <<EOF
3551#ifdef __cplusplus
3552extern "C" {
3553#endif
3554char nm_test_var;
3555void nm_test_func(){}
3556#ifdef __cplusplus
3557}
3558#endif
3559int main(){nm_test_var='a';nm_test_func();return(0);}
3560EOF
3561
3562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3563 (eval $ac_compile) 2>&5
3564 ac_status=$?
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); }; then
3567 # Now try to grab the symbols.
3568 nlist=conftest.nm
3569 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3570 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3571 ac_status=$?
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); } && test -s "$nlist"; then
3574 # Try sorting and uniquifying the output.
3575 if sort "$nlist" | uniq > "$nlist"T; then
3576 mv -f "$nlist"T "$nlist"
3577 else
3578 rm -f "$nlist"T
3579 fi
3580
3581 # Make sure that we snagged all the symbols we need.
3582 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3583 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3584 cat <<EOF > conftest.$ac_ext
3585#ifdef __cplusplus
3586extern "C" {
3587#endif
3588
3589EOF
3590 # Now generate the symbol file.
3591 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3592
3593 cat <<EOF >> conftest.$ac_ext
3594#if defined (__STDC__) && __STDC__
3595# define lt_ptr void *
3596#else
3597# define lt_ptr char *
3598# define const
3599#endif
3600
3601/* The mapping between symbol names and symbols. */
3602const struct {
3603 const char *name;
3604 lt_ptr address;
3605}
3606lt_preloaded_symbols[] =
3607{
3608EOF
3609 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3610 cat <<\EOF >> conftest.$ac_ext
3611 {0, (lt_ptr) 0}
3612};
3613
3614#ifdef __cplusplus
3615}
3616#endif
3617EOF
3618 # Now try linking the two files.
3619 mv conftest.$ac_objext conftstm.$ac_objext
3620 save_LIBS="$LIBS"
3621 save_CFLAGS="$CFLAGS"
3622 LIBS="conftstm.$ac_objext"
3623 CFLAGS="$CFLAGS$no_builtin_flag"
3624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3625 (eval $ac_link) 2>&5
3626 ac_status=$?
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); } && test -s conftest$ac_exeext; then
3629 pipe_works=yes
3630 fi
3631 LIBS="$save_LIBS"
3632 CFLAGS="$save_CFLAGS"
3633 else
3634 echo "cannot find nm_test_func in $nlist" >&5
3635 fi
3636 else
3637 echo "cannot find nm_test_var in $nlist" >&5
3638 fi
3639 else
3640 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3641 fi
3642 else
3643 echo "$progname: failed program was:" >&5
3644 cat conftest.$ac_ext >&5
3645 fi
3646 rm -f conftest* conftst*
3647
3648 # Do not use the global_symbol_pipe unless it works.
3649 if test "$pipe_works" = yes; then
3650 break
3651 else
3652 lt_cv_sys_global_symbol_pipe=
3653 fi
3654done
3655
3656fi
3657
3658global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3659if test -z "$lt_cv_sys_global_symbol_pipe"; then
3660 global_symbol_to_cdecl=
3661 global_symbol_to_c_name_address=
3662else
3663 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3664 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3665fi
3666if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3667then
3668 echo "$as_me:$LINENO: result: failed" >&5
3669echo "${ECHO_T}failed" >&6
3670else
3671 echo "$as_me:$LINENO: result: ok" >&5
3672echo "${ECHO_T}ok" >&6
3673fi
3674
3675ac_ext=c
3676ac_cpp='$CPP $CPPFLAGS'
3677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3679ac_compiler_gnu=$ac_cv_c_compiler_gnu
3680echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3681echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3682# On Suns, sometimes $CPP names a directory.
3683if test -n "$CPP" && test -d "$CPP"; then
3684 CPP=
3685fi
3686if test -z "$CPP"; then
3687 if test "${ac_cv_prog_CPP+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3689else
3690 # Double quotes because CPP needs to be expanded
3691 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3692 do
3693 ac_preproc_ok=false
3694for ac_c_preproc_warn_flag in '' yes
3695do
3696 # Use a header file that comes with gcc, so configuring glibc
3697 # with a fresh cross-compiler works.
3698 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3699 # <limits.h> exists even on freestanding compilers.
3700 # On the NeXT, cc -E runs the code through the compiler's parser,
3701 # not just through cpp. "Syntax error" is here to catch this case.
3702 cat >conftest.$ac_ext <<_ACEOF
3703#line $LINENO "configure"
3704/* confdefs.h. */
3705_ACEOF
3706cat confdefs.h >>conftest.$ac_ext
3707cat >>conftest.$ac_ext <<_ACEOF
3708/* end confdefs.h. */
3709#ifdef __STDC__
3710# include <limits.h>
3711#else
3712# include <assert.h>
3713#endif
3714 Syntax error
3715_ACEOF
3716if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3717 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3718 ac_status=$?
3719 grep -v '^ *+' conftest.er1 >conftest.err
3720 rm -f conftest.er1
3721 cat conftest.err >&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); } >/dev/null; then
3724 if test -s conftest.err; then
3725 ac_cpp_err=$ac_c_preproc_warn_flag
3726 else
3727 ac_cpp_err=
3728 fi
3729else
3730 ac_cpp_err=yes
3731fi
3732if test -z "$ac_cpp_err"; then
3733 :
3734else
3735 echo "$as_me: failed program was:" >&5
3736sed 's/^/| /' conftest.$ac_ext >&5
3737
3738 # Broken: fails on valid input.
3739continue
3740fi
3741rm -f conftest.err conftest.$ac_ext
3742
3743 # OK, works on sane cases. Now check whether non-existent headers
3744 # can be detected and how.
3745 cat >conftest.$ac_ext <<_ACEOF
3746#line $LINENO "configure"
3747/* confdefs.h. */
3748_ACEOF
3749cat confdefs.h >>conftest.$ac_ext
3750cat >>conftest.$ac_ext <<_ACEOF
3751/* end confdefs.h. */
3752#include <ac_nonexistent.h>
3753_ACEOF
3754if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3756 ac_status=$?
3757 grep -v '^ *+' conftest.er1 >conftest.err
3758 rm -f conftest.er1
3759 cat conftest.err >&5
3760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); } >/dev/null; then
3762 if test -s conftest.err; then
3763 ac_cpp_err=$ac_c_preproc_warn_flag
3764 else
3765 ac_cpp_err=
3766 fi
3767else
3768 ac_cpp_err=yes
3769fi
3770if test -z "$ac_cpp_err"; then
3771 # Broken: success on invalid input.
3772continue
3773else
3774 echo "$as_me: failed program was:" >&5
3775sed 's/^/| /' conftest.$ac_ext >&5
3776
3777 # Passes both tests.
3778ac_preproc_ok=:
3779break
3780fi
3781rm -f conftest.err conftest.$ac_ext
3782
3783done
3784# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3785rm -f conftest.err conftest.$ac_ext
3786if $ac_preproc_ok; then
3787 break
3788fi
3789
3790 done
3791 ac_cv_prog_CPP=$CPP
3792
3793fi
3794 CPP=$ac_cv_prog_CPP
3795else
3796 ac_cv_prog_CPP=$CPP
3797fi
3798echo "$as_me:$LINENO: result: $CPP" >&5
3799echo "${ECHO_T}$CPP" >&6
3800ac_preproc_ok=false
3801for ac_c_preproc_warn_flag in '' yes
3802do
3803 # Use a header file that comes with gcc, so configuring glibc
3804 # with a fresh cross-compiler works.
3805 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3806 # <limits.h> exists even on freestanding compilers.
3807 # On the NeXT, cc -E runs the code through the compiler's parser,
3808 # not just through cpp. "Syntax error" is here to catch this case.
3809 cat >conftest.$ac_ext <<_ACEOF
3810#line $LINENO "configure"
3811/* confdefs.h. */
3812_ACEOF
3813cat confdefs.h >>conftest.$ac_ext
3814cat >>conftest.$ac_ext <<_ACEOF
3815/* end confdefs.h. */
3816#ifdef __STDC__
3817# include <limits.h>
3818#else
3819# include <assert.h>
3820#endif
3821 Syntax error
3822_ACEOF
3823if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3824 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3825 ac_status=$?
3826 grep -v '^ *+' conftest.er1 >conftest.err
3827 rm -f conftest.er1
3828 cat conftest.err >&5
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); } >/dev/null; then
3831 if test -s conftest.err; then
3832 ac_cpp_err=$ac_c_preproc_warn_flag
3833 else
3834 ac_cpp_err=
3835 fi
3836else
3837 ac_cpp_err=yes
3838fi
3839if test -z "$ac_cpp_err"; then
3840 :
3841else
3842 echo "$as_me: failed program was:" >&5
3843sed 's/^/| /' conftest.$ac_ext >&5
3844
3845 # Broken: fails on valid input.
3846continue
3847fi
3848rm -f conftest.err conftest.$ac_ext
3849
3850 # OK, works on sane cases. Now check whether non-existent headers
3851 # can be detected and how.
3852 cat >conftest.$ac_ext <<_ACEOF
3853#line $LINENO "configure"
3854/* confdefs.h. */
3855_ACEOF
3856cat confdefs.h >>conftest.$ac_ext
3857cat >>conftest.$ac_ext <<_ACEOF
3858/* end confdefs.h. */
3859#include <ac_nonexistent.h>
3860_ACEOF
3861if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3863 ac_status=$?
3864 grep -v '^ *+' conftest.er1 >conftest.err
3865 rm -f conftest.er1
3866 cat conftest.err >&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } >/dev/null; then
3869 if test -s conftest.err; then
3870 ac_cpp_err=$ac_c_preproc_warn_flag
3871 else
3872 ac_cpp_err=
3873 fi
3874else
3875 ac_cpp_err=yes
3876fi
3877if test -z "$ac_cpp_err"; then
3878 # Broken: success on invalid input.
3879continue
3880else
3881 echo "$as_me: failed program was:" >&5
3882sed 's/^/| /' conftest.$ac_ext >&5
3883
3884 # Passes both tests.
3885ac_preproc_ok=:
3886break
3887fi
3888rm -f conftest.err conftest.$ac_ext
3889
3890done
3891# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3892rm -f conftest.err conftest.$ac_ext
3893if $ac_preproc_ok; then
3894 :
3895else
3896 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3897See \`config.log' for more details." >&5
3898echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3899See \`config.log' for more details." >&2;}
3900 { (exit 1); exit 1; }; }
3901fi
3902
3903ac_ext=c
3904ac_cpp='$CPP $CPPFLAGS'
3905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3907ac_compiler_gnu=$ac_cv_c_compiler_gnu
3908
3909
3910echo "$as_me:$LINENO: checking for egrep" >&5
3911echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3912if test "${ac_cv_prog_egrep+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3914else
3915 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3916 then ac_cv_prog_egrep='grep -E'
3917 else ac_cv_prog_egrep='egrep'
3918 fi
3919fi
3920echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3921echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3922 EGREP=$ac_cv_prog_egrep
3923
3924
3925echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3926echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3927if test "${ac_cv_header_stdc+set}" = set; then
3928 echo $ECHO_N "(cached) $ECHO_C" >&6
3929else
3930 cat >conftest.$ac_ext <<_ACEOF
3931#line $LINENO "configure"
3932/* confdefs.h. */
3933_ACEOF
3934cat confdefs.h >>conftest.$ac_ext
3935cat >>conftest.$ac_ext <<_ACEOF
3936/* end confdefs.h. */
3937#include <stdlib.h>
3938#include <stdarg.h>
3939#include <string.h>
3940#include <float.h>
3941
3942int
3943main ()
3944{
3945
3946 ;
3947 return 0;
3948}
3949_ACEOF
3950rm -f conftest.$ac_objext
3951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3952 (eval $ac_compile) 2>&5
3953 ac_status=$?
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); } &&
3956 { ac_try='test -s conftest.$ac_objext'
3957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958 (eval $ac_try) 2>&5
3959 ac_status=$?
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); }; }; then
3962 ac_cv_header_stdc=yes
3963else
3964 echo "$as_me: failed program was:" >&5
3965sed 's/^/| /' conftest.$ac_ext >&5
3966
3967ac_cv_header_stdc=no
3968fi
3969rm -f conftest.$ac_objext conftest.$ac_ext
3970
3971if test $ac_cv_header_stdc = yes; then
3972 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3973 cat >conftest.$ac_ext <<_ACEOF
3974#line $LINENO "configure"
3975/* confdefs.h. */
3976_ACEOF
3977cat confdefs.h >>conftest.$ac_ext
3978cat >>conftest.$ac_ext <<_ACEOF
3979/* end confdefs.h. */
3980#include <string.h>
3981
3982_ACEOF
3983if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3984 $EGREP "memchr" >/dev/null 2>&1; then
3985 :
3986else
3987 ac_cv_header_stdc=no
3988fi
3989rm -f conftest*
3990
3991fi
3992
3993if test $ac_cv_header_stdc = yes; then
3994 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3995 cat >conftest.$ac_ext <<_ACEOF
3996#line $LINENO "configure"
3997/* confdefs.h. */
3998_ACEOF
3999cat confdefs.h >>conftest.$ac_ext
4000cat >>conftest.$ac_ext <<_ACEOF
4001/* end confdefs.h. */
4002#include <stdlib.h>
4003
4004_ACEOF
4005if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4006 $EGREP "free" >/dev/null 2>&1; then
4007 :
4008else
4009 ac_cv_header_stdc=no
4010fi
4011rm -f conftest*
4012
4013fi
4014
4015if test $ac_cv_header_stdc = yes; then
4016 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4017 if test "$cross_compiling" = yes; then
4018 :
4019else
4020 cat >conftest.$ac_ext <<_ACEOF
4021#line $LINENO "configure"
4022/* confdefs.h. */
4023_ACEOF
4024cat confdefs.h >>conftest.$ac_ext
4025cat >>conftest.$ac_ext <<_ACEOF
4026/* end confdefs.h. */
4027#include <ctype.h>
4028#if ((' ' & 0x0FF) == 0x020)
4029# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4030# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4031#else
4032# define ISLOWER(c) \
4033 (('a' <= (c) && (c) <= 'i') \
4034 || ('j' <= (c) && (c) <= 'r') \
4035 || ('s' <= (c) && (c) <= 'z'))
4036# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4037#endif
4038
4039#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4040int
4041main ()
4042{
4043 int i;
4044 for (i = 0; i < 256; i++)
4045 if (XOR (islower (i), ISLOWER (i))
4046 || toupper (i) != TOUPPER (i))
4047 exit(2);
4048 exit (0);
4049}
4050_ACEOF
4051rm -f conftest$ac_exeext
4052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4053 (eval $ac_link) 2>&5
4054 ac_status=$?
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4058 (eval $ac_try) 2>&5
4059 ac_status=$?
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }; }; then
4062 :
4063else
4064 echo "$as_me: program exited with status $ac_status" >&5
4065echo "$as_me: failed program was:" >&5
4066sed 's/^/| /' conftest.$ac_ext >&5
4067
4068( exit $ac_status )
4069ac_cv_header_stdc=no
4070fi
4071rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4072fi
4073fi
4074fi
4075echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4076echo "${ECHO_T}$ac_cv_header_stdc" >&6
4077if test $ac_cv_header_stdc = yes; then
4078
4079cat >>confdefs.h <<\_ACEOF
4080#define STDC_HEADERS 1
4081_ACEOF
4082
4083fi
4084
4085# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4096 inttypes.h stdint.h unistd.h
4097do
4098as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4099echo "$as_me:$LINENO: checking for $ac_header" >&5
4100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4101if eval "test \"\${$as_ac_Header+set}\" = set"; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
4103else
4104 cat >conftest.$ac_ext <<_ACEOF
4105#line $LINENO "configure"
4106/* confdefs.h. */
4107_ACEOF
4108cat confdefs.h >>conftest.$ac_ext
4109cat >>conftest.$ac_ext <<_ACEOF
4110/* end confdefs.h. */
4111$ac_includes_default
4112
4113#include <$ac_header>
4114_ACEOF
4115rm -f conftest.$ac_objext
4116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4117 (eval $ac_compile) 2>&5
4118 ac_status=$?
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); } &&
4121 { ac_try='test -s conftest.$ac_objext'
4122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4123 (eval $ac_try) 2>&5
4124 ac_status=$?
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); }; }; then
4127 eval "$as_ac_Header=yes"
4128else
4129 echo "$as_me: failed program was:" >&5
4130sed 's/^/| /' conftest.$ac_ext >&5
4131
4132eval "$as_ac_Header=no"
4133fi
4134rm -f conftest.$ac_objext conftest.$ac_ext
4135fi
4136echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4137echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4138if test `eval echo '${'$as_ac_Header'}'` = yes; then
4139 cat >>confdefs.h <<_ACEOF
4140#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4141_ACEOF
4142
4143fi
4144
4145done
4146
4147
4148
4149for ac_header in dlfcn.h
4150do
4151as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4152if eval "test \"\${$as_ac_Header+set}\" = set"; then
4153 echo "$as_me:$LINENO: checking for $ac_header" >&5
4154echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4155if eval "test \"\${$as_ac_Header+set}\" = set"; then
4156 echo $ECHO_N "(cached) $ECHO_C" >&6
4157fi
4158echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4159echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4160else
4161 # Is the header compilable?
4162echo "$as_me:$LINENO: checking $ac_header usability" >&5
4163echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4164cat >conftest.$ac_ext <<_ACEOF
4165#line $LINENO "configure"
4166/* confdefs.h. */
4167_ACEOF
4168cat confdefs.h >>conftest.$ac_ext
4169cat >>conftest.$ac_ext <<_ACEOF
4170/* end confdefs.h. */
4171$ac_includes_default
4172#include <$ac_header>
4173_ACEOF
4174rm -f conftest.$ac_objext
4175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4176 (eval $ac_compile) 2>&5
4177 ac_status=$?
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); } &&
4180 { ac_try='test -s conftest.$ac_objext'
4181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182 (eval $ac_try) 2>&5
4183 ac_status=$?
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); }; }; then
4186 ac_header_compiler=yes
4187else
4188 echo "$as_me: failed program was:" >&5
4189sed 's/^/| /' conftest.$ac_ext >&5
4190
4191ac_header_compiler=no
4192fi
4193rm -f conftest.$ac_objext conftest.$ac_ext
4194echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4195echo "${ECHO_T}$ac_header_compiler" >&6
4196
4197# Is the header present?
4198echo "$as_me:$LINENO: checking $ac_header presence" >&5
4199echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4200cat >conftest.$ac_ext <<_ACEOF
4201#line $LINENO "configure"
4202/* confdefs.h. */
4203_ACEOF
4204cat confdefs.h >>conftest.$ac_ext
4205cat >>conftest.$ac_ext <<_ACEOF
4206/* end confdefs.h. */
4207#include <$ac_header>
4208_ACEOF
4209if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4210 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4211 ac_status=$?
4212 grep -v '^ *+' conftest.er1 >conftest.err
4213 rm -f conftest.er1
4214 cat conftest.err >&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); } >/dev/null; then
4217 if test -s conftest.err; then
4218 ac_cpp_err=$ac_c_preproc_warn_flag
4219 else
4220 ac_cpp_err=
4221 fi
4222else
4223 ac_cpp_err=yes
4224fi
4225if test -z "$ac_cpp_err"; then
4226 ac_header_preproc=yes
4227else
4228 echo "$as_me: failed program was:" >&5
4229sed 's/^/| /' conftest.$ac_ext >&5
4230
4231 ac_header_preproc=no
4232fi
4233rm -f conftest.err conftest.$ac_ext
4234echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4235echo "${ECHO_T}$ac_header_preproc" >&6
4236
4237# So? What about this header?
4238case $ac_header_compiler:$ac_header_preproc in
4239 yes:no )
4240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4241echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4243echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4244 (
4245 cat <<\_ASBOX
4246## ------------------------------------ ##
4247## Report this to bug-autoconf@gnu.org. ##
4248## ------------------------------------ ##
4249_ASBOX
4250 ) |
4251 sed "s/^/$as_me: WARNING: /" >&2
4252 ;;
4253 no:yes )
4254 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4255echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4256 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4257echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4259echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4260 (
4261 cat <<\_ASBOX
4262## ------------------------------------ ##
4263## Report this to bug-autoconf@gnu.org. ##
4264## ------------------------------------ ##
4265_ASBOX
4266 ) |
4267 sed "s/^/$as_me: WARNING: /" >&2
4268 ;;
4269esac
4270echo "$as_me:$LINENO: checking for $ac_header" >&5
4271echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4272if eval "test \"\${$as_ac_Header+set}\" = set"; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4274else
4275 eval "$as_ac_Header=$ac_header_preproc"
4276fi
4277echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4278echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4279
4280fi
4281if test `eval echo '${'$as_ac_Header'}'` = yes; then
4282 cat >>confdefs.h <<_ACEOF
4283#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4284_ACEOF
4285
4286fi
4287
4288done
4289
4290
4291
4292
4293
4294
4295# Only perform the check for file, if the check method requires it
4296case $deplibs_check_method in
4297file_magic*)
4298 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4299 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4300echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4301if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4302 echo $ECHO_N "(cached) $ECHO_C" >&6
4303else
4304 case $MAGIC_CMD in
4305 /*)
4306 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4307 ;;
4308 ?:/*)
4309 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4310 ;;
4311 *)
4312 ac_save_MAGIC_CMD="$MAGIC_CMD"
4313 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4314 ac_dummy="/usr/bin:$PATH"
4315 for ac_dir in $ac_dummy; do
4316 test -z "$ac_dir" && ac_dir=.
4317 if test -f $ac_dir/${ac_tool_prefix}file; then
4318 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4319 if test -n "$file_magic_test_file"; then
4320 case $deplibs_check_method in
4321 "file_magic "*)
4322 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4323 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4324 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4325 egrep "$file_magic_regex" > /dev/null; then
4326 :
4327 else
4328 cat <<EOF 1>&2
4329
4330*** Warning: the command libtool uses to detect shared libraries,
4331*** $file_magic_cmd, produces output that libtool cannot recognize.
4332*** The result is that libtool may fail to recognize shared libraries
4333*** as such. This will affect the creation of libtool libraries that
4334*** depend on shared libraries, but programs linked with such libtool
4335*** libraries will work regardless of this problem. Nevertheless, you
4336*** may want to report the problem to your system manager and/or to
4337*** bug-libtool@gnu.org
4338
4339EOF
4340 fi ;;
4341 esac
4342 fi
4343 break
4344 fi
4345 done
4346 IFS="$ac_save_ifs"
4347 MAGIC_CMD="$ac_save_MAGIC_CMD"
4348 ;;
4349esac
4350fi
4351
4352MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4353if test -n "$MAGIC_CMD"; then
4354 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4355echo "${ECHO_T}$MAGIC_CMD" >&6
4356else
4357 echo "$as_me:$LINENO: result: no" >&5
4358echo "${ECHO_T}no" >&6
4359fi
4360
4361if test -z "$lt_cv_path_MAGIC_CMD"; then
4362 if test -n "$ac_tool_prefix"; then
4363 echo "$as_me:$LINENO: checking for file" >&5
4364echo $ECHO_N "checking for file... $ECHO_C" >&6
4365if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4367else
4368 case $MAGIC_CMD in
4369 /*)
4370 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4371 ;;
4372 ?:/*)
4373 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4374 ;;
4375 *)
4376 ac_save_MAGIC_CMD="$MAGIC_CMD"
4377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4378 ac_dummy="/usr/bin:$PATH"
4379 for ac_dir in $ac_dummy; do
4380 test -z "$ac_dir" && ac_dir=.
4381 if test -f $ac_dir/file; then
4382 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4383 if test -n "$file_magic_test_file"; then
4384 case $deplibs_check_method in
4385 "file_magic "*)
4386 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4387 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4388 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4389 egrep "$file_magic_regex" > /dev/null; then
4390 :
4391 else
4392 cat <<EOF 1>&2
4393
4394*** Warning: the command libtool uses to detect shared libraries,
4395*** $file_magic_cmd, produces output that libtool cannot recognize.
4396*** The result is that libtool may fail to recognize shared libraries
4397*** as such. This will affect the creation of libtool libraries that
4398*** depend on shared libraries, but programs linked with such libtool
4399*** libraries will work regardless of this problem. Nevertheless, you
4400*** may want to report the problem to your system manager and/or to
4401*** bug-libtool@gnu.org
4402
4403EOF
4404 fi ;;
4405 esac
4406 fi
4407 break
4408 fi
4409 done
4410 IFS="$ac_save_ifs"
4411 MAGIC_CMD="$ac_save_MAGIC_CMD"
4412 ;;
4413esac
4414fi
4415
4416MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4417if test -n "$MAGIC_CMD"; then
4418 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4419echo "${ECHO_T}$MAGIC_CMD" >&6
4420else
4421 echo "$as_me:$LINENO: result: no" >&5
4422echo "${ECHO_T}no" >&6
4423fi
4424
4425 else
4426 MAGIC_CMD=:
4427 fi
4428fi
4429
4430 fi
4431 ;;
4432esac
4433
4434if test -n "$ac_tool_prefix"; then
4435 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4436set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4437echo "$as_me:$LINENO: checking for $ac_word" >&5
4438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4439if test "${ac_cv_prog_RANLIB+set}" = set; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4441else
4442 if test -n "$RANLIB"; then
4443 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4444else
4445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446for as_dir in $PATH
4447do
4448 IFS=$as_save_IFS
4449 test -z "$as_dir" && as_dir=.
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4452 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4454 break 2
4455 fi
4456done
4457done
4458
4459fi
4460fi
4461RANLIB=$ac_cv_prog_RANLIB
4462if test -n "$RANLIB"; then
4463 echo "$as_me:$LINENO: result: $RANLIB" >&5
4464echo "${ECHO_T}$RANLIB" >&6
4465else
4466 echo "$as_me:$LINENO: result: no" >&5
4467echo "${ECHO_T}no" >&6
4468fi
4469
4470fi
4471if test -z "$ac_cv_prog_RANLIB"; then
4472 ac_ct_RANLIB=$RANLIB
4473 # Extract the first word of "ranlib", so it can be a program name with args.
4474set dummy ranlib; ac_word=$2
4475echo "$as_me:$LINENO: checking for $ac_word" >&5
4476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4477if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4478 echo $ECHO_N "(cached) $ECHO_C" >&6
4479else
4480 if test -n "$ac_ct_RANLIB"; then
4481 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4482else
4483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484for as_dir in $PATH
4485do
4486 IFS=$as_save_IFS
4487 test -z "$as_dir" && as_dir=.
4488 for ac_exec_ext in '' $ac_executable_extensions; do
4489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4490 ac_cv_prog_ac_ct_RANLIB="ranlib"
4491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4492 break 2
4493 fi
4494done
4495done
4496
4497 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4498fi
4499fi
4500ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4501if test -n "$ac_ct_RANLIB"; then
4502 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4503echo "${ECHO_T}$ac_ct_RANLIB" >&6
4504else
4505 echo "$as_me:$LINENO: result: no" >&5
4506echo "${ECHO_T}no" >&6
4507fi
4508
4509 RANLIB=$ac_ct_RANLIB
4510else
4511 RANLIB="$ac_cv_prog_RANLIB"
4512fi
4513
4514if test -n "$ac_tool_prefix"; then
4515 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4516set dummy ${ac_tool_prefix}strip; ac_word=$2
4517echo "$as_me:$LINENO: checking for $ac_word" >&5
4518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4519if test "${ac_cv_prog_STRIP+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4521else
4522 if test -n "$STRIP"; then
4523 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4524else
4525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526for as_dir in $PATH
4527do
4528 IFS=$as_save_IFS
4529 test -z "$as_dir" && as_dir=.
4530 for ac_exec_ext in '' $ac_executable_extensions; do
4531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4532 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4534 break 2
4535 fi
4536done
4537done
4538
4539fi
4540fi
4541STRIP=$ac_cv_prog_STRIP
4542if test -n "$STRIP"; then
4543 echo "$as_me:$LINENO: result: $STRIP" >&5
4544echo "${ECHO_T}$STRIP" >&6
4545else
4546 echo "$as_me:$LINENO: result: no" >&5
4547echo "${ECHO_T}no" >&6
4548fi
4549
4550fi
4551if test -z "$ac_cv_prog_STRIP"; then
4552 ac_ct_STRIP=$STRIP
4553 # Extract the first word of "strip", so it can be a program name with args.
4554set dummy strip; ac_word=$2
4555echo "$as_me:$LINENO: checking for $ac_word" >&5
4556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4557if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4558 echo $ECHO_N "(cached) $ECHO_C" >&6
4559else
4560 if test -n "$ac_ct_STRIP"; then
4561 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4562else
4563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564for as_dir in $PATH
4565do
4566 IFS=$as_save_IFS
4567 test -z "$as_dir" && as_dir=.
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4570 ac_cv_prog_ac_ct_STRIP="strip"
4571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 break 2
4573 fi
4574done
4575done
4576
4577 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4578fi
4579fi
4580ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4581if test -n "$ac_ct_STRIP"; then
4582 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4583echo "${ECHO_T}$ac_ct_STRIP" >&6
4584else
4585 echo "$as_me:$LINENO: result: no" >&5
4586echo "${ECHO_T}no" >&6
4587fi
4588
4589 STRIP=$ac_ct_STRIP
4590else
4591 STRIP="$ac_cv_prog_STRIP"
4592fi
4593
4594
4595enable_dlopen=no
4596enable_win32_dll=no
4597
4598# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4599if test "${enable_libtool_lock+set}" = set; then
4600 enableval="$enable_libtool_lock"
4601
4602fi;
4603test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4604
4605# Some flags need to be propagated to the compiler or linker for good
4606# libtool support.
4607case $host in
4608*-*-irix6*)
4609 # Find out which ABI we are using.
4610 echo '#line 4610 "configure"' > conftest.$ac_ext
4611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4612 (eval $ac_compile) 2>&5
4613 ac_status=$?
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); }; then
4616 case `/usr/bin/file conftest.$ac_objext` in
4617 *32-bit*)
4618 LD="${LD-ld} -32"
4619 ;;
4620 *N32*)
4621 LD="${LD-ld} -n32"
4622 ;;
4623 *64-bit*)
4624 LD="${LD-ld} -64"
4625 ;;
4626 esac
4627 fi
4628 rm -rf conftest*
4629 ;;
4630
4631*-*-sco3.2v5*)
4632 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4633 SAVE_CFLAGS="$CFLAGS"
4634 CFLAGS="$CFLAGS -belf"
4635 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4636echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4637if test "${lt_cv_cc_needs_belf+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4639else
4640
4641
4642 ac_ext=c
4643ac_cpp='$CPP $CPPFLAGS'
4644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4646ac_compiler_gnu=$ac_cv_c_compiler_gnu
4647
4648 cat >conftest.$ac_ext <<_ACEOF
4649#line $LINENO "configure"
4650/* confdefs.h. */
4651_ACEOF
4652cat confdefs.h >>conftest.$ac_ext
4653cat >>conftest.$ac_ext <<_ACEOF
4654/* end confdefs.h. */
4655
4656int
4657main ()
4658{
4659
4660 ;
4661 return 0;
4662}
4663_ACEOF
4664rm -f conftest.$ac_objext conftest$ac_exeext
4665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4666 (eval $ac_link) 2>&5
4667 ac_status=$?
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); } &&
4670 { ac_try='test -s conftest$ac_exeext'
4671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672 (eval $ac_try) 2>&5
4673 ac_status=$?
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); }; }; then
4676 lt_cv_cc_needs_belf=yes
4677else
4678 echo "$as_me: failed program was:" >&5
4679sed 's/^/| /' conftest.$ac_ext >&5
4680
4681lt_cv_cc_needs_belf=no
4682fi
4683rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4684 ac_ext=c
4685ac_cpp='$CPP $CPPFLAGS'
4686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4688ac_compiler_gnu=$ac_cv_c_compiler_gnu
4689
4690fi
4691echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4692echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4693 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4694 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4695 CFLAGS="$SAVE_CFLAGS"
4696 fi
4697 ;;
4698
4699
4700esac
4701
4702# Sed substitution that helps us do robust quoting. It backslashifies
4703# metacharacters that are still active within double-quoted strings.
4704Xsed='sed -e s/^X//'
4705sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4706
4707# Same as above, but do not quote variable references.
4708double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4709
4710# Sed substitution to delay expansion of an escaped shell variable in a
4711# double_quote_subst'ed string.
4712delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4713
4714# Constants:
4715rm="rm -f"
4716
4717# Global variables:
4718default_ofile=libtool
4719can_build_shared=yes
4720
4721# All known linkers require a `.a' archive for static linking (except M$VC,
4722# which needs '.lib').
4723libext=a
4724ltmain="$ac_aux_dir/ltmain.sh"
4725ofile="$default_ofile"
4726with_gnu_ld="$lt_cv_prog_gnu_ld"
4727need_locks="$enable_libtool_lock"
4728
4729old_CC="$CC"
4730old_CFLAGS="$CFLAGS"
4731
4732# Set sane defaults for various variables
4733test -z "$AR" && AR=ar
4734test -z "$AR_FLAGS" && AR_FLAGS=cru
4735test -z "$AS" && AS=as
4736test -z "$CC" && CC=cc
4737test -z "$DLLTOOL" && DLLTOOL=dlltool
4738test -z "$LD" && LD=ld
4739test -z "$LN_S" && LN_S="ln -s"
4740test -z "$MAGIC_CMD" && MAGIC_CMD=file
4741test -z "$NM" && NM=nm
4742test -z "$OBJDUMP" && OBJDUMP=objdump
4743test -z "$RANLIB" && RANLIB=:
4744test -z "$STRIP" && STRIP=:
4745test -z "$ac_objext" && ac_objext=o
4746
4747if test x"$host" != x"$build"; then
4748 ac_tool_prefix=${host_alias}-
4749else
4750 ac_tool_prefix=
4751fi
4752
4753# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4754case $host_os in
4755linux-gnu*) ;;
4756linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4757esac
4758
4759case $host_os in
4760aix3*)
4761 # AIX sometimes has problems with the GCC collect2 program. For some
4762 # reason, if we set the COLLECT_NAMES environment variable, the problems
4763 # vanish in a puff of smoke.
4764 if test "X${COLLECT_NAMES+set}" != Xset; then
4765 COLLECT_NAMES=
4766 export COLLECT_NAMES
4767 fi
4768 ;;
4769esac
4770
4771# Determine commands to create old-style static archives.
4772old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4773old_postinstall_cmds='chmod 644 $oldlib'
4774old_postuninstall_cmds=
4775
4776if test -n "$RANLIB"; then
4777 case $host_os in
4778 openbsd*)
4779 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4780 ;;
4781 *)
4782 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4783 ;;
4784 esac
4785 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4786fi
4787
4788# Allow CC to be a program name with arguments.
4789set dummy $CC
4790compiler="$2"
4791
4792echo "$as_me:$LINENO: checking for objdir" >&5
4793echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4794rm -f .libs 2>/dev/null
4795mkdir .libs 2>/dev/null
4796if test -d .libs; then
4797 objdir=.libs
4798else
4799 # MS-DOS does not allow filenames that begin with a dot.
4800 objdir=_libs
4801fi
4802rmdir .libs 2>/dev/null
4803echo "$as_me:$LINENO: result: $objdir" >&5
4804echo "${ECHO_T}$objdir" >&6
4805
4806
4807
4808# Check whether --with-pic or --without-pic was given.
4809if test "${with_pic+set}" = set; then
4810 withval="$with_pic"
4811 pic_mode="$withval"
4812else
4813 pic_mode=default
4814fi;
4815test -z "$pic_mode" && pic_mode=default
4816
4817# We assume here that the value for lt_cv_prog_cc_pic will not be cached
4818# in isolation, and that seeing it set (from the cache) indicates that
4819# the associated values are set (in the cache) correctly too.
4820echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4821echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4822if test "${lt_cv_prog_cc_pic+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4824else
4825 lt_cv_prog_cc_pic=
4826 lt_cv_prog_cc_shlib=
4827 lt_cv_prog_cc_wl=
4828 lt_cv_prog_cc_static=
4829 lt_cv_prog_cc_no_builtin=
4830 lt_cv_prog_cc_can_build_shared=$can_build_shared
4831
4832 if test "$GCC" = yes; then
4833 lt_cv_prog_cc_wl='-Wl,'
4834 lt_cv_prog_cc_static='-static'
4835
4836 case $host_os in
4837 aix*)
4838 # Below there is a dirty hack to force normal static linking with -ldl
4839 # The problem is because libdl dynamically linked with both libc and
4840 # libC (AIX C++ library), which obviously doesn't included in libraries
4841 # list by gcc. This cause undefined symbols with -static flags.
4842 # This hack allows C programs to be linked with "-static -ldl", but
4843 # not sure about C++ programs.
4844 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4845 ;;
4846 amigaos*)
4847 # FIXME: we need at least 68020 code to build shared libraries, but
4848 # adding the `-m68020' flag to GCC prevents building anything better,
4849 # like `-m68040'.
4850 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4851 ;;
4852 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4853 # PIC is the default for these OSes.
4854 ;;
4855 darwin* | rhapsody*)
4856 # PIC is the default on this platform
4857 # Common symbols not allowed in MH_DYLIB files
4858 lt_cv_prog_cc_pic='-fno-common'
4859 ;;
4860 cygwin* | mingw* | pw32* | os2*)
4861 # This hack is so that the source file can tell whether it is being
4862 # built for inclusion in a dll (and should export symbols for example).
4863 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4864 ;;
4865 sysv4*MP*)
4866 if test -d /usr/nec; then
4867 lt_cv_prog_cc_pic=-Kconform_pic
4868 fi
4869 ;;
4870 *)
4871 lt_cv_prog_cc_pic='-fPIC'
4872 ;;
4873 esac
4874 else
4875 # PORTME Check for PIC flags for the system compiler.
4876 case $host_os in
4877 aix3* | aix4* | aix5*)
4878 lt_cv_prog_cc_wl='-Wl,'
4879 # All AIX code is PIC.
4880 if test "$host_cpu" = ia64; then
4881 # AIX 5 now supports IA64 processor
4882 lt_cv_prog_cc_static='-Bstatic'
4883 else
4884 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4885 fi
4886 ;;
4887
4888 hpux9* | hpux10* | hpux11*)
4889 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4890 lt_cv_prog_cc_wl='-Wl,'
4891 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4892 lt_cv_prog_cc_pic='+Z'
4893 ;;
4894
4895 irix5* | irix6* | nonstopux*)
4896 lt_cv_prog_cc_wl='-Wl,'
4897 lt_cv_prog_cc_static='-non_shared'
4898 # PIC (with -KPIC) is the default.
4899 ;;
4900
4901 cygwin* | mingw* | pw32* | os2*)
4902 # This hack is so that the source file can tell whether it is being
4903 # built for inclusion in a dll (and should export symbols for example).
4904 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4905 ;;
4906
4907 newsos6)
4908 lt_cv_prog_cc_pic='-KPIC'
4909 lt_cv_prog_cc_static='-Bstatic'
4910 ;;
4911
4912 osf3* | osf4* | osf5*)
4913 # All OSF/1 code is PIC.
4914 lt_cv_prog_cc_wl='-Wl,'
4915 lt_cv_prog_cc_static='-non_shared'
4916 ;;
4917
4918 sco3.2v5*)
4919 lt_cv_prog_cc_pic='-Kpic'
4920 lt_cv_prog_cc_static='-dn'
4921 lt_cv_prog_cc_shlib='-belf'
4922 ;;
4923
4924 solaris*)
4925 lt_cv_prog_cc_pic='-KPIC'
4926 lt_cv_prog_cc_static='-Bstatic'
4927 lt_cv_prog_cc_wl='-Wl,'
4928 ;;
4929
4930 sunos4*)
4931 lt_cv_prog_cc_pic='-PIC'
4932 lt_cv_prog_cc_static='-Bstatic'
4933 lt_cv_prog_cc_wl='-Qoption ld '
4934 ;;
4935
4936 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4937 lt_cv_prog_cc_pic='-KPIC'
4938 lt_cv_prog_cc_static='-Bstatic'
4939 lt_cv_prog_cc_wl='-Wl,'
4940 ;;
4941
4942 uts4*)
4943 lt_cv_prog_cc_pic='-pic'
4944 lt_cv_prog_cc_static='-Bstatic'
4945 ;;
4946
4947 sysv4*MP*)
4948 if test -d /usr/nec ;then
4949 lt_cv_prog_cc_pic='-Kconform_pic'
4950 lt_cv_prog_cc_static='-Bstatic'
4951 fi
4952 ;;
4953
4954 *)
4955 lt_cv_prog_cc_can_build_shared=no
4956 ;;
4957 esac
4958 fi
4959
4960fi
4961
4962if test -z "$lt_cv_prog_cc_pic"; then
4963 echo "$as_me:$LINENO: result: none" >&5
4964echo "${ECHO_T}none" >&6
4965else
4966 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4967echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4968
4969 # Check to make sure the pic_flag actually works.
4970 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4971echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4972 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4974else
4975 save_CFLAGS="$CFLAGS"
4976 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4977 cat >conftest.$ac_ext <<_ACEOF
4978#line $LINENO "configure"
4979/* confdefs.h. */
4980_ACEOF
4981cat confdefs.h >>conftest.$ac_ext
4982cat >>conftest.$ac_ext <<_ACEOF
4983/* end confdefs.h. */
4984
4985int
4986main ()
4987{
4988
4989 ;
4990 return 0;
4991}
4992_ACEOF
4993rm -f conftest.$ac_objext
4994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4995 (eval $ac_compile) 2>&5
4996 ac_status=$?
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); } &&
4999 { ac_try='test -s conftest.$ac_objext'
5000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001 (eval $ac_try) 2>&5
5002 ac_status=$?
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); }; }; then
5005 case $host_os in
5006 hpux9* | hpux10* | hpux11*)
5007 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5008 # they create non-PIC objects. So, if there were any warnings, we
5009 # assume that PIC is not supported.
5010 if test -s conftest.err; then
5011 lt_cv_prog_cc_pic_works=no
5012 else
5013 lt_cv_prog_cc_pic_works=yes
5014 fi
5015 ;;
5016 *)
5017 lt_cv_prog_cc_pic_works=yes
5018 ;;
5019 esac
5020
5021else
5022 echo "$as_me: failed program was:" >&5
5023sed 's/^/| /' conftest.$ac_ext >&5
5024
5025 lt_cv_prog_cc_pic_works=no
5026
5027fi
5028rm -f conftest.$ac_objext conftest.$ac_ext
5029 CFLAGS="$save_CFLAGS"
5030
5031fi
5032
5033
5034 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5035 lt_cv_prog_cc_pic=
5036 lt_cv_prog_cc_can_build_shared=no
5037 else
5038 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5039 fi
5040
5041 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5042echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5043fi
5044
5045# Check for any special shared library compilation flags.
5046if test -n "$lt_cv_prog_cc_shlib"; then
5047 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5048echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5049 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5050 else
5051 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5052echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5053 lt_cv_prog_cc_can_build_shared=no
5054 fi
5055fi
5056
5057echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5058echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5059if test "${lt_cv_prog_cc_static_works+set}" = set; then
5060 echo $ECHO_N "(cached) $ECHO_C" >&6
5061else
5062 lt_cv_prog_cc_static_works=no
5063 save_LDFLAGS="$LDFLAGS"
5064 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5065 cat >conftest.$ac_ext <<_ACEOF
5066#line $LINENO "configure"
5067/* confdefs.h. */
5068_ACEOF
5069cat confdefs.h >>conftest.$ac_ext
5070cat >>conftest.$ac_ext <<_ACEOF
5071/* end confdefs.h. */
5072
5073int
5074main ()
5075{
5076
5077 ;
5078 return 0;
5079}
5080_ACEOF
5081rm -f conftest.$ac_objext conftest$ac_exeext
5082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5083 (eval $ac_link) 2>&5
5084 ac_status=$?
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); } &&
5087 { ac_try='test -s conftest$ac_exeext'
5088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089 (eval $ac_try) 2>&5
5090 ac_status=$?
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); }; }; then
5093 lt_cv_prog_cc_static_works=yes
5094else
5095 echo "$as_me: failed program was:" >&5
5096sed 's/^/| /' conftest.$ac_ext >&5
5097
5098fi
5099rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5100 LDFLAGS="$save_LDFLAGS"
5101
5102fi
5103
5104
5105# Belt *and* braces to stop my trousers falling down:
5106test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5107echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5108echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5109
5110pic_flag="$lt_cv_prog_cc_pic"
5111special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5112wl="$lt_cv_prog_cc_wl"
5113link_static_flag="$lt_cv_prog_cc_static"
5114no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5115can_build_shared="$lt_cv_prog_cc_can_build_shared"
5116
5117
5118# Check to see if options -o and -c are simultaneously supported by compiler
5119echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5120echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5121if test "${lt_cv_compiler_c_o+set}" = set; then
5122 echo $ECHO_N "(cached) $ECHO_C" >&6
5123else
5124
5125$rm -r conftest 2>/dev/null
5126mkdir conftest
5127cd conftest
5128echo "int some_variable = 0;" > conftest.$ac_ext
5129mkdir out
5130# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5131# that will create temporary files in the current directory regardless of
5132# the output directory. Thus, making CWD read-only will cause this test
5133# to fail, enabling locking or at least warning the user not to do parallel
5134# builds.
5135chmod -w .
5136save_CFLAGS="$CFLAGS"
5137CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5138compiler_c_o=no
5139if { (eval echo configure:5139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5140 # The compiler can only warn and ignore the option if not recognized
5141 # So say no if there are warnings
5142 if test -s out/conftest.err; then
5143 lt_cv_compiler_c_o=no
5144 else
5145 lt_cv_compiler_c_o=yes
5146 fi
5147else
5148 # Append any errors to the config.log.
5149 cat out/conftest.err 1>&5
5150 lt_cv_compiler_c_o=no
5151fi
5152CFLAGS="$save_CFLAGS"
5153chmod u+w .
5154$rm conftest* out/*
5155rmdir out
5156cd ..
5157rmdir conftest
5158$rm -r conftest 2>/dev/null
5159
5160fi
5161
5162compiler_c_o=$lt_cv_compiler_c_o
5163echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5164echo "${ECHO_T}$compiler_c_o" >&6
5165
5166if test x"$compiler_c_o" = x"yes"; then
5167 # Check to see if we can write to a .lo
5168 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5169echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5170 if test "${lt_cv_compiler_o_lo+set}" = set; then
5171 echo $ECHO_N "(cached) $ECHO_C" >&6
5172else
5173
5174 lt_cv_compiler_o_lo=no
5175 save_CFLAGS="$CFLAGS"
5176 CFLAGS="$CFLAGS -c -o conftest.lo"
5177 save_objext="$ac_objext"
5178 ac_objext=lo
5179 cat >conftest.$ac_ext <<_ACEOF
5180#line $LINENO "configure"
5181/* confdefs.h. */
5182_ACEOF
5183cat confdefs.h >>conftest.$ac_ext
5184cat >>conftest.$ac_ext <<_ACEOF
5185/* end confdefs.h. */
5186
5187int
5188main ()
5189{
5190int some_variable = 0;
5191 ;
5192 return 0;
5193}
5194_ACEOF
5195rm -f conftest.$ac_objext
5196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5197 (eval $ac_compile) 2>&5
5198 ac_status=$?
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); } &&
5201 { ac_try='test -s conftest.$ac_objext'
5202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5203 (eval $ac_try) 2>&5
5204 ac_status=$?
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); }; }; then
5207 # The compiler can only warn and ignore the option if not recognized
5208 # So say no if there are warnings
5209 if test -s conftest.err; then
5210 lt_cv_compiler_o_lo=no
5211 else
5212 lt_cv_compiler_o_lo=yes
5213 fi
5214
5215else
5216 echo "$as_me: failed program was:" >&5
5217sed 's/^/| /' conftest.$ac_ext >&5
5218
5219fi
5220rm -f conftest.$ac_objext conftest.$ac_ext
5221 ac_objext="$save_objext"
5222 CFLAGS="$save_CFLAGS"
5223
5224fi
5225
5226 compiler_o_lo=$lt_cv_compiler_o_lo
5227 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5228echo "${ECHO_T}$compiler_o_lo" >&6
5229else
5230 compiler_o_lo=no
5231fi
5232
5233# Check to see if we can do hard links to lock some files if needed
5234hard_links="nottested"
5235if test "$compiler_c_o" = no && test "$need_locks" != no; then
5236 # do not overwrite the value of need_locks provided by the user
5237 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5238echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5239 hard_links=yes
5240 $rm conftest*
5241 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5242 touch conftest.a
5243 ln conftest.a conftest.b 2>&5 || hard_links=no
5244 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5245 echo "$as_me:$LINENO: result: $hard_links" >&5
5246echo "${ECHO_T}$hard_links" >&6
5247 if test "$hard_links" = no; then
5248 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5249echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5250 need_locks=warn
5251 fi
5252else
5253 need_locks=no
5254fi
5255
5256if test "$GCC" = yes; then
5257 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5258 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5259echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5260 echo "int some_variable = 0;" > conftest.$ac_ext
5261 save_CFLAGS="$CFLAGS"
5262 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5263 compiler_rtti_exceptions=no
5264 cat >conftest.$ac_ext <<_ACEOF
5265#line $LINENO "configure"
5266/* confdefs.h. */
5267_ACEOF
5268cat confdefs.h >>conftest.$ac_ext
5269cat >>conftest.$ac_ext <<_ACEOF
5270/* end confdefs.h. */
5271
5272int
5273main ()
5274{
5275int some_variable = 0;
5276 ;
5277 return 0;
5278}
5279_ACEOF
5280rm -f conftest.$ac_objext
5281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5282 (eval $ac_compile) 2>&5
5283 ac_status=$?
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); } &&
5286 { ac_try='test -s conftest.$ac_objext'
5287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5288 (eval $ac_try) 2>&5
5289 ac_status=$?
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); }; }; then
5292 # The compiler can only warn and ignore the option if not recognized
5293 # So say no if there are warnings
5294 if test -s conftest.err; then
5295 compiler_rtti_exceptions=no
5296 else
5297 compiler_rtti_exceptions=yes
5298 fi
5299
5300else
5301 echo "$as_me: failed program was:" >&5
5302sed 's/^/| /' conftest.$ac_ext >&5
5303
5304fi
5305rm -f conftest.$ac_objext conftest.$ac_ext
5306 CFLAGS="$save_CFLAGS"
5307 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5308echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5309
5310 if test "$compiler_rtti_exceptions" = "yes"; then
5311 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5312 else
5313 no_builtin_flag=' -fno-builtin'
5314 fi
5315fi
5316
5317# See if the linker supports building shared libraries.
5318echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5319echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5320
5321allow_undefined_flag=
5322no_undefined_flag=
5323need_lib_prefix=unknown
5324need_version=unknown
5325# when you set need_version to no, make sure it does not cause -set_version
5326# flags to be left without arguments
5327archive_cmds=
5328archive_expsym_cmds=
5329old_archive_from_new_cmds=
5330old_archive_from_expsyms_cmds=
5331export_dynamic_flag_spec=
5332whole_archive_flag_spec=
5333thread_safe_flag_spec=
5334hardcode_into_libs=no
5335hardcode_libdir_flag_spec=
5336hardcode_libdir_separator=
5337hardcode_direct=no
5338hardcode_minus_L=no
5339hardcode_shlibpath_var=unsupported
5340runpath_var=
5341link_all_deplibs=unknown
5342always_export_symbols=no
5343export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5344# include_expsyms should be a list of space-separated symbols to be *always*
5345# included in the symbol list
5346include_expsyms=
5347# exclude_expsyms can be an egrep regular expression of symbols to exclude
5348# it will be wrapped by ` (' and `)$', so one must not match beginning or
5349# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5350# as well as any symbol that contains `d'.
5351exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5352# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5353# platforms (ab)use it in PIC code, but their linkers get confused if
5354# the symbol is explicitly referenced. Since portable code cannot
5355# rely on this symbol name, it's probably fine to never include it in
5356# preloaded symbol tables.
5357extract_expsyms_cmds=
5358
5359case $host_os in
5360cygwin* | mingw* | pw32*)
5361 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5362 # When not using gcc, we currently assume that we are using
5363 # Microsoft Visual C++.
5364 if test "$GCC" != yes; then
5365 with_gnu_ld=no
5366 fi
5367 ;;
5368openbsd*)
5369 with_gnu_ld=no
5370 ;;
5371esac
5372
5373ld_shlibs=yes
5374if test "$with_gnu_ld" = yes; then
5375 # If archive_cmds runs LD, not CC, wlarc should be empty
5376 wlarc='${wl}'
5377
5378 # See if GNU ld supports shared libraries.
5379 case $host_os in
5380 aix3* | aix4* | aix5*)
5381 # On AIX, the GNU linker is very broken
5382 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5383 ld_shlibs=no
5384 cat <<EOF 1>&2
5385
5386*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5387*** to be unable to reliably create shared libraries on AIX.
5388*** Therefore, libtool is disabling shared libraries support. If you
5389*** really care for shared libraries, you may want to modify your PATH
5390*** so that a non-GNU linker is found, and then restart.
5391
5392EOF
5393 ;;
5394
5395 amigaos*)
5396 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)'
5397 hardcode_libdir_flag_spec='-L$libdir'
5398 hardcode_minus_L=yes
5399
5400 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5401 # that the semantics of dynamic libraries on AmigaOS, at least up
5402 # to version 4, is to share data among multiple programs linked
5403 # with the same dynamic library. Since this doesn't match the
5404 # behavior of shared libraries on other platforms, we can use
5405 # them.
5406 ld_shlibs=no
5407 ;;
5408
5409 beos*)
5410 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5411 allow_undefined_flag=unsupported
5412 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5413 # support --undefined. This deserves some investigation. FIXME
5414 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5415 else
5416 ld_shlibs=no
5417 fi
5418 ;;
5419
5420 cygwin* | mingw* | pw32*)
5421 # hardcode_libdir_flag_spec is actually meaningless, as there is
5422 # no search path for DLLs.
5423 hardcode_libdir_flag_spec='-L$libdir'
5424 allow_undefined_flag=unsupported
5425 always_export_symbols=yes
5426
5427 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5428 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5429 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5430 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5431 else $CC -o impgen impgen.c ; fi)~
5432 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5433
5434 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5435
5436 # cygwin and mingw dlls have different entry points and sets of symbols
5437 # to exclude.
5438 # FIXME: what about values for MSVC?
5439 dll_entry=__cygwin_dll_entry@12
5440 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5441 case $host_os in
5442 mingw*)
5443 # mingw values
5444 dll_entry=_DllMainCRTStartup@12
5445 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5446 ;;
5447 esac
5448
5449 # mingw and cygwin differ, and it's simplest to just exclude the union
5450 # of the two symbol sets.
5451 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5452
5453 # recent cygwin and mingw systems supply a stub DllMain which the user
5454 # can override, but on older systems we have to supply one (in ltdll.c)
5455 if test "x$lt_cv_need_dllmain" = "xyes"; then
5456 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5457 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~
5458 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5459 else
5460 ltdll_obj=
5461 ltdll_cmds=
5462 fi
5463
5464 # Extract the symbol export list from an `--export-all' def file,
5465 # then regenerate the def file from the symbol export list, so that
5466 # the compiled dll only exports the symbol export list.
5467 # Be careful not to strip the DATA tag left be newer dlltools.
5468 export_symbols_cmds="$ltdll_cmds"'
5469 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5470 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5471
5472 # If the export-symbols file already is a .def file (1st line
5473 # is EXPORTS), use it as is.
5474 # If DATA tags from a recent dlltool are present, honour them!
5475 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5476 cp $export_symbols $output_objdir/$soname-def;
5477 else
5478 echo EXPORTS > $output_objdir/$soname-def;
5479 _lt_hint=1;
5480 cat $export_symbols | while read symbol; do
5481 set dummy \$symbol;
5482 case \$# in
5483 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5484 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5485 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5486 esac;
5487 _lt_hint=`expr 1 + \$_lt_hint`;
5488 done;
5489 fi~
5490 '"$ltdll_cmds"'
5491 $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~
5492 $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~
5493 $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~
5494 $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~
5495 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5496 ;;
5497
5498 netbsd*)
5499 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5500 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5501 wlarc=
5502 else
5503 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5504 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5505 fi
5506 ;;
5507
5508 solaris* | sysv5*)
5509 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5510 ld_shlibs=no
5511 cat <<EOF 1>&2
5512
5513*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5514*** create shared libraries on Solaris systems. Therefore, libtool
5515*** is disabling shared libraries support. We urge you to upgrade GNU
5516*** binutils to release 2.9.1 or newer. Another option is to modify
5517*** your PATH or compiler configuration so that the native linker is
5518*** used, and then restart.
5519
5520EOF
5521 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5522 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5523 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5524 else
5525 ld_shlibs=no
5526 fi
5527 ;;
5528
5529 sunos4*)
5530 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5531 wlarc=
5532 hardcode_direct=yes
5533 hardcode_shlibpath_var=no
5534 ;;
5535
5536 *)
5537 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5538 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5539 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5540 else
5541 ld_shlibs=no
5542 fi
5543 ;;
5544 esac
5545
5546 if test "$ld_shlibs" = yes; then
5547 runpath_var=LD_RUN_PATH
5548 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5549 export_dynamic_flag_spec='${wl}--export-dynamic'
5550 case $host_os in
5551 cygwin* | mingw* | pw32*)
5552 # dlltool doesn't understand --whole-archive et. al.
5553 whole_archive_flag_spec=
5554 ;;
5555 *)
5556 # ancient GNU ld didn't support --whole-archive et. al.
5557 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5558 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5559 else
5560 whole_archive_flag_spec=
5561 fi
5562 ;;
5563 esac
5564 fi
5565else
5566 # PORTME fill in a description of your system's linker (not GNU ld)
5567 case $host_os in
5568 aix3*)
5569 allow_undefined_flag=unsupported
5570 always_export_symbols=yes
5571 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'
5572 # Note: this linker hardcodes the directories in LIBPATH if there
5573 # are no directories specified by -L.
5574 hardcode_minus_L=yes
5575 if test "$GCC" = yes && test -z "$link_static_flag"; then
5576 # Neither direct hardcoding nor static linking is supported with a
5577 # broken collect2.
5578 hardcode_direct=unsupported
5579 fi
5580 ;;
5581
5582 aix4* | aix5*)
5583 if test "$host_cpu" = ia64; then
5584 # On IA64, the linker does run time linking by default, so we don't
5585 # have to do anything special.
5586 aix_use_runtimelinking=no
5587 exp_sym_flag='-Bexport'
5588 no_entry_flag=""
5589 else
5590 aix_use_runtimelinking=no
5591
5592 # Test if we are trying to use run time linking or normal
5593 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5594 # need to do runtime linking.
5595 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5596 for ld_flag in $LDFLAGS; do
5597 case $ld_flag in
5598 *-brtl*)
5599 aix_use_runtimelinking=yes
5600 break
5601 ;;
5602 esac
5603 done
5604 esac
5605
5606 exp_sym_flag='-bexport'
5607 no_entry_flag='-bnoentry'
5608 fi
5609
5610 # When large executables or shared objects are built, AIX ld can
5611 # have problems creating the table of contents. If linking a library
5612 # or program results in "error TOC overflow" add -mminimal-toc to
5613 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5614 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5615
5616 hardcode_direct=yes
5617 archive_cmds=''
5618 hardcode_libdir_separator=':'
5619 if test "$GCC" = yes; then
5620 case $host_os in aix4.[012]|aix4.[012].*)
5621 collect2name=`${CC} -print-prog-name=collect2`
5622 if test -f "$collect2name" && \
5623 strings "$collect2name" | grep resolve_lib_name >/dev/null
5624 then
5625 # We have reworked collect2
5626 hardcode_direct=yes
5627 else
5628 # We have old collect2
5629 hardcode_direct=unsupported
5630 # It fails to find uninstalled libraries when the uninstalled
5631 # path is not listed in the libpath. Setting hardcode_minus_L
5632 # to unsupported forces relinking
5633 hardcode_minus_L=yes
5634 hardcode_libdir_flag_spec='-L$libdir'
5635 hardcode_libdir_separator=
5636 fi
5637 esac
5638
5639 shared_flag='-shared'
5640 else
5641 # not using gcc
5642 if test "$host_cpu" = ia64; then
5643 shared_flag='${wl}-G'
5644 else
5645 if test "$aix_use_runtimelinking" = yes; then
5646 shared_flag='${wl}-G'
5647 else
5648 shared_flag='${wl}-bM:SRE'
5649 fi
5650 fi
5651 fi
5652
5653 # It seems that -bexpall can do strange things, so it is better to
5654 # generate a list of symbols to export.
5655 always_export_symbols=yes
5656 if test "$aix_use_runtimelinking" = yes; then
5657 # Warning - without using the other runtime loading flags (-brtl),
5658 # -berok will link without error, but may produce a broken library.
5659 allow_undefined_flag='-berok'
5660 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5661 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"
5662 else
5663 if test "$host_cpu" = ia64; then
5664 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5665 allow_undefined_flag="-z nodefs"
5666 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"
5667 else
5668 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5669 # Warning - without using the other run time loading flags,
5670 # -berok will link without error, but may produce a broken library.
5671 allow_undefined_flag='${wl}-berok'
5672 # This is a bit strange, but is similar to how AIX traditionally builds
5673 # it's shared libraries.
5674 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'
5675 fi
5676 fi
5677 ;;
5678
5679 amigaos*)
5680 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)'
5681 hardcode_libdir_flag_spec='-L$libdir'
5682 hardcode_minus_L=yes
5683 # see comment about different semantics on the GNU ld section
5684 ld_shlibs=no
5685 ;;
5686
5687 cygwin* | mingw* | pw32*)
5688 # When not using gcc, we currently assume that we are using
5689 # Microsoft Visual C++.
5690 # hardcode_libdir_flag_spec is actually meaningless, as there is
5691 # no search path for DLLs.
5692 hardcode_libdir_flag_spec=' '
5693 allow_undefined_flag=unsupported
5694 # Tell ltmain to make .lib files, not .a files.
5695 libext=lib
5696 # FIXME: Setting linknames here is a bad hack.
5697 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5698 # The linker will automatically build a .lib file if we build a DLL.
5699 old_archive_from_new_cmds='true'
5700 # FIXME: Should let the user specify the lib program.
5701 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5702 fix_srcfile_path='`cygpath -w "$srcfile"`'
5703 ;;
5704
5705 darwin* | rhapsody*)
5706 case "$host_os" in
5707 rhapsody* | darwin1.[012])
5708 allow_undefined_flag='-undefined suppress'
5709 ;;
5710 *) # Darwin 1.3 on
5711 allow_undefined_flag='-flat_namespace -undefined suppress'
5712 ;;
5713 esac
5714 # FIXME: Relying on posixy $() will cause problems for
5715 # cross-compilation, but unfortunately the echo tests do not
5716 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5717 # `"' quotes if we put them in here... so don't!
5718 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)'
5719 # We need to add '_' to the symbols in $export_symbols first
5720 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5721 hardcode_direct=yes
5722 hardcode_shlibpath_var=no
5723 whole_archive_flag_spec='-all_load $convenience'
5724 ;;
5725
5726 freebsd1*)
5727 ld_shlibs=no
5728 ;;
5729
5730 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5731 # support. Future versions do this automatically, but an explicit c++rt0.o
5732 # does not break anything, and helps significantly (at the cost of a little
5733 # extra space).
5734 freebsd2.2*)
5735 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5736 hardcode_libdir_flag_spec='-R$libdir'
5737 hardcode_direct=yes
5738 hardcode_shlibpath_var=no
5739 ;;
5740
5741 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5742 freebsd2*)
5743 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5744 hardcode_direct=yes
5745 hardcode_minus_L=yes
5746 hardcode_shlibpath_var=no
5747 ;;
5748
5749 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5750 freebsd*)
5751 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5752 hardcode_libdir_flag_spec='-R$libdir'
5753 hardcode_direct=yes
5754 hardcode_shlibpath_var=no
5755 ;;
5756
5757 hpux9* | hpux10* | hpux11*)
5758 case $host_os in
5759 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' ;;
5760 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5761 esac
5762 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5763 hardcode_libdir_separator=:
5764 hardcode_direct=yes
5765 hardcode_minus_L=yes # Not in the search PATH, but as the default
5766 # location of the library.
5767 export_dynamic_flag_spec='${wl}-E'
5768 ;;
5769
5770 irix5* | irix6* | nonstopux*)
5771 if test "$GCC" = yes; then
5772 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'
5773 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5774 else
5775 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'
5776 hardcode_libdir_flag_spec='-rpath $libdir'
5777 fi
5778 hardcode_libdir_separator=:
5779 link_all_deplibs=yes
5780 ;;
5781
5782 netbsd*)
5783 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5784 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5785 else
5786 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5787 fi
5788 hardcode_libdir_flag_spec='-R$libdir'
5789 hardcode_direct=yes
5790 hardcode_shlibpath_var=no
5791 ;;
5792
5793 newsos6)
5794 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5795 hardcode_direct=yes
5796 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5797 hardcode_libdir_separator=:
5798 hardcode_shlibpath_var=no
5799 ;;
5800
5801 openbsd*)
5802 hardcode_direct=yes
5803 hardcode_shlibpath_var=no
5804 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5805 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5806 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5807 export_dynamic_flag_spec='${wl}-E'
5808 else
5809 case "$host_os" in
5810 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5811 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5812 hardcode_libdir_flag_spec='-R$libdir'
5813 ;;
5814 *)
5815 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5816 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5817 ;;
5818 esac
5819 fi
5820 ;;
5821
5822 os2*)
5823 hardcode_libdir_flag_spec='-L$libdir'
5824 hardcode_minus_L=yes
5825 allow_undefined_flag=unsupported
5826 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'
5827 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5828 ;;
5829
5830 osf3*)
5831 if test "$GCC" = yes; then
5832 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5833 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'
5834 else
5835 allow_undefined_flag=' -expect_unresolved \*'
5836 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'
5837 fi
5838 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5839 hardcode_libdir_separator=:
5840 ;;
5841
5842 osf4* | osf5*) # as osf3* with the addition of -msym flag
5843 if test "$GCC" = yes; then
5844 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5845 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'
5846 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5847 else
5848 allow_undefined_flag=' -expect_unresolved \*'
5849 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'
5850 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5851 $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'
5852
5853 #Both c and cxx compiler support -rpath directly
5854 hardcode_libdir_flag_spec='-rpath $libdir'
5855 fi
5856 hardcode_libdir_separator=:
5857 ;;
5858
5859 sco3.2v5*)
5860 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5861 hardcode_shlibpath_var=no
5862 runpath_var=LD_RUN_PATH
5863 hardcode_runpath_var=yes
5864 export_dynamic_flag_spec='${wl}-Bexport'
5865 ;;
5866
5867 solaris*)
5868 # gcc --version < 3.0 without binutils cannot create self contained
5869 # shared libraries reliably, requiring libgcc.a to resolve some of
5870 # the object symbols generated in some cases. Libraries that use
5871 # assert need libgcc.a to resolve __eprintf, for example. Linking
5872 # a copy of libgcc.a into every shared library to guarantee resolving
5873 # such symbols causes other problems: According to Tim Van Holder
5874 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5875 # (to the application) exception stack for one thing.
5876 no_undefined_flag=' -z defs'
5877 if test "$GCC" = yes; then
5878 case `$CC --version 2>/dev/null` in
5879 [12].*)
5880 cat <<EOF 1>&2
5881
5882*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5883*** create self contained shared libraries on Solaris systems, without
5884*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5885*** -no-undefined support, which will at least allow you to build shared
5886*** libraries. However, you may find that when you link such libraries
5887*** into an application without using GCC, you have to manually add
5888*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5889*** upgrade to a newer version of GCC. Another option is to rebuild your
5890*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5891
5892EOF
5893 no_undefined_flag=
5894 ;;
5895 esac
5896 fi
5897 # $CC -shared without GNU ld will not create a library from C++
5898 # object files and a static libstdc++, better avoid it by now
5899 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5900 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5901 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5902 hardcode_libdir_flag_spec='-R$libdir'
5903 hardcode_shlibpath_var=no
5904 case $host_os in
5905 solaris2.[0-5] | solaris2.[0-5].*) ;;
5906 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5907 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5908 esac
5909 link_all_deplibs=yes
5910 ;;
5911
5912 sunos4*)
5913 if test "x$host_vendor" = xsequent; then
5914 # Use $CC to link under sequent, because it throws in some extra .o
5915 # files that make .init and .fini sections work.
5916 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5917 else
5918 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5919 fi
5920 hardcode_libdir_flag_spec='-L$libdir'
5921 hardcode_direct=yes
5922 hardcode_minus_L=yes
5923 hardcode_shlibpath_var=no
5924 ;;
5925
5926 sysv4)
5927 case $host_vendor in
5928 sni)
5929 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5930 hardcode_direct=yes # is this really true???
5931 ;;
5932 siemens)
5933 ## LD is ld it makes a PLAMLIB
5934 ## CC just makes a GrossModule.
5935 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5936 reload_cmds='$CC -r -o $output$reload_objs'
5937 hardcode_direct=no
5938 ;;
5939 motorola)
5940 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5941 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5942 ;;
5943 esac
5944 runpath_var='LD_RUN_PATH'
5945 hardcode_shlibpath_var=no
5946 ;;
5947
5948 sysv4.3*)
5949 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5950 hardcode_shlibpath_var=no
5951 export_dynamic_flag_spec='-Bexport'
5952 ;;
5953
5954 sysv5*)
5955 no_undefined_flag=' -z text'
5956 # $CC -shared without GNU ld will not create a library from C++
5957 # object files and a static libstdc++, better avoid it by now
5958 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5959 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5960 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5961 hardcode_libdir_flag_spec=
5962 hardcode_shlibpath_var=no
5963 runpath_var='LD_RUN_PATH'
5964 ;;
5965
5966 uts4*)
5967 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5968 hardcode_libdir_flag_spec='-L$libdir'
5969 hardcode_shlibpath_var=no
5970 ;;
5971
5972 dgux*)
5973 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5974 hardcode_libdir_flag_spec='-L$libdir'
5975 hardcode_shlibpath_var=no
5976 ;;
5977
5978 sysv4*MP*)
5979 if test -d /usr/nec; then
5980 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5981 hardcode_shlibpath_var=no
5982 runpath_var=LD_RUN_PATH
5983 hardcode_runpath_var=yes
5984 ld_shlibs=yes
5985 fi
5986 ;;
5987
5988 sysv4.2uw2*)
5989 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5990 hardcode_direct=yes
5991 hardcode_minus_L=no
5992 hardcode_shlibpath_var=no
5993 hardcode_runpath_var=yes
5994 runpath_var=LD_RUN_PATH
5995 ;;
5996
5997 sysv5uw7* | unixware7*)
5998 no_undefined_flag='${wl}-z ${wl}text'
5999 if test "$GCC" = yes; then
6000 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6001 else
6002 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6003 fi
6004 runpath_var='LD_RUN_PATH'
6005 hardcode_shlibpath_var=no
6006 ;;
6007
6008 *)
6009 ld_shlibs=no
6010 ;;
6011 esac
6012fi
6013echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6014echo "${ECHO_T}$ld_shlibs" >&6
6015test "$ld_shlibs" = no && can_build_shared=no
6016
6017# Check hardcoding attributes.
6018echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6019echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6020hardcode_action=
6021if test -n "$hardcode_libdir_flag_spec" || \
6022 test -n "$runpath_var"; then
6023
6024 # We can hardcode non-existant directories.
6025 if test "$hardcode_direct" != no &&
6026 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6027 # have to relink, otherwise we might link with an installed library
6028 # when we should be linking with a yet-to-be-installed one
6029 ## test "$hardcode_shlibpath_var" != no &&
6030 test "$hardcode_minus_L" != no; then
6031 # Linking always hardcodes the temporary library directory.
6032 hardcode_action=relink
6033 else
6034 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6035 hardcode_action=immediate
6036 fi
6037else
6038 # We cannot hardcode anything, or else we can only hardcode existing
6039 # directories.
6040 hardcode_action=unsupported
6041fi
6042echo "$as_me:$LINENO: result: $hardcode_action" >&5
6043echo "${ECHO_T}$hardcode_action" >&6
6044
6045striplib=
6046old_striplib=
6047echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6048echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6049if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6050 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6051 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6052 echo "$as_me:$LINENO: result: yes" >&5
6053echo "${ECHO_T}yes" >&6
6054else
6055 echo "$as_me:$LINENO: result: no" >&5
6056echo "${ECHO_T}no" >&6
6057fi
6058
6059reload_cmds='$LD$reload_flag -o $output$reload_objs'
6060test -z "$deplibs_check_method" && deplibs_check_method=unknown
6061
6062# PORTME Fill in your ld.so characteristics
6063echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6064echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6065library_names_spec=
6066libname_spec='lib$name'
6067soname_spec=
6068postinstall_cmds=
6069postuninstall_cmds=
6070finish_cmds=
6071finish_eval=
6072shlibpath_var=
6073shlibpath_overrides_runpath=unknown
6074version_type=none
6075dynamic_linker="$host_os ld.so"
6076sys_lib_dlsearch_path_spec="/lib /usr/lib"
6077sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6078
6079case $host_os in
6080aix3*)
6081 version_type=linux
6082 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6083 shlibpath_var=LIBPATH
6084
6085 # AIX has no versioning support, so we append a major version to the name.
6086 soname_spec='${libname}${release}.so$major'
6087 ;;
6088
6089aix4* | aix5*)
6090 version_type=linux
6091 need_lib_prefix=no
6092 need_version=no
6093 hardcode_into_libs=yes
6094 if test "$host_cpu" = ia64; then
6095 # AIX 5 supports IA64
6096 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6097 shlibpath_var=LD_LIBRARY_PATH
6098 else
6099 # With GCC up to 2.95.x, collect2 would create an import file
6100 # for dependence libraries. The import file would start with
6101 # the line `#! .'. This would cause the generated library to
6102 # depend on `.', always an invalid library. This was fixed in
6103 # development snapshots of GCC prior to 3.0.
6104 case $host_os in
6105 aix4 | aix4.[01] | aix4.[01].*)
6106 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6107 echo ' yes '
6108 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6109 :
6110 else
6111 can_build_shared=no
6112 fi
6113 ;;
6114 esac
6115 # AIX (on Power*) has no versioning support, so currently we can
6116 # not hardcode correct soname into executable. Probably we can
6117 # add versioning support to collect2, so additional links can
6118 # be useful in future.
6119 if test "$aix_use_runtimelinking" = yes; then
6120 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6121 # instead of lib<name>.a to let people know that these are not
6122 # typical AIX shared libraries.
6123 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6124 else
6125 # We preserve .a as extension for shared libraries through AIX4.2
6126 # and later when we are not doing run time linking.
6127 library_names_spec='${libname}${release}.a $libname.a'
6128 soname_spec='${libname}${release}.so$major'
6129 fi
6130 shlibpath_var=LIBPATH
6131 fi
6132 hardcode_into_libs=yes
6133 ;;
6134
6135amigaos*)
6136 library_names_spec='$libname.ixlibrary $libname.a'
6137 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6138 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'
6139 ;;
6140
6141beos*)
6142 library_names_spec='${libname}.so'
6143 dynamic_linker="$host_os ld.so"
6144 shlibpath_var=LIBRARY_PATH
6145 ;;
6146
6147bsdi4*)
6148 version_type=linux
6149 need_version=no
6150 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6151 soname_spec='${libname}${release}.so$major'
6152 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6153 shlibpath_var=LD_LIBRARY_PATH
6154 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6155 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6156 export_dynamic_flag_spec=-rdynamic
6157 # the default ld.so.conf also contains /usr/contrib/lib and
6158 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6159 # libtool to hard-code these into programs
6160 ;;
6161
6162cygwin* | mingw* | pw32*)
6163 version_type=windows
6164 need_version=no
6165 need_lib_prefix=no
6166 case $GCC,$host_os in
6167 yes,cygwin*)
6168 library_names_spec='$libname.dll.a'
6169 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6170 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6171 dldir=$destdir/`dirname \$dlpath`~
6172 test -d \$dldir || mkdir -p \$dldir~
6173 $install_prog .libs/$dlname \$dldir/$dlname'
6174 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6175 dlpath=$dir/\$dldll~
6176 $rm \$dlpath'
6177 ;;
6178 yes,mingw*)
6179 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6180 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6181 ;;
6182 yes,pw32*)
6183 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6184 ;;
6185 *)
6186 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6187 ;;
6188 esac
6189 dynamic_linker='Win32 ld.exe'
6190 # FIXME: first we should search . and the directory the executable is in
6191 shlibpath_var=PATH
6192 ;;
6193
6194darwin* | rhapsody*)
6195 dynamic_linker="$host_os dyld"
6196 version_type=darwin
6197 need_lib_prefix=no
6198 need_version=no
6199 # FIXME: Relying on posixy $() will cause problems for
6200 # cross-compilation, but unfortunately the echo tests do not
6201 # yet detect zsh echo's removal of \ escapes.
6202 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)'
6203 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6204 shlibpath_overrides_runpath=yes
6205 shlibpath_var=DYLD_LIBRARY_PATH
6206 ;;
6207
6208freebsd1*)
6209 dynamic_linker=no
6210 ;;
6211
6212freebsd*-gnu*)
6213 version_type=linux
6214 need_lib_prefix=no
6215 need_version=no
6216 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6217 soname_spec='${libname}${release}.so$major'
6218 shlibpath_var=LD_LIBRARY_PATH
6219 shlibpath_overrides_runpath=no
6220 hardcode_into_libs=yes
6221 dynamic_linker='GNU/FreeBSD ld.so'
6222 ;;
6223
6224freebsd*)
6225 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6226 version_type=freebsd-$objformat
6227 case $version_type in
6228 freebsd-elf*)
6229 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6230 need_version=no
6231 need_lib_prefix=no
6232 ;;
6233 freebsd-*)
6234 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6235 need_version=yes
6236 ;;
6237 esac
6238 shlibpath_var=LD_LIBRARY_PATH
6239 case $host_os in
6240 freebsd2*)
6241 shlibpath_overrides_runpath=yes
6242 ;;
6243 *)
6244 shlibpath_overrides_runpath=no
6245 hardcode_into_libs=yes
6246 ;;
6247 esac
6248 ;;
6249
6250gnu*)
6251 version_type=linux
6252 need_lib_prefix=no
6253 need_version=no
6254 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6255 soname_spec='${libname}${release}.so$major'
6256 shlibpath_var=LD_LIBRARY_PATH
6257 hardcode_into_libs=yes
6258 ;;
6259
6260hpux9* | hpux10* | hpux11*)
6261 # Give a soname corresponding to the major version so that dld.sl refuses to
6262 # link against other versions.
6263 dynamic_linker="$host_os dld.sl"
6264 version_type=sunos
6265 need_lib_prefix=no
6266 need_version=no
6267 shlibpath_var=SHLIB_PATH
6268 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6269 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6270 soname_spec='${libname}${release}.sl$major'
6271 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6272 postinstall_cmds='chmod 555 $lib'
6273 ;;
6274
6275irix5* | irix6* | nonstopux*)
6276 case $host_os in
6277 nonstopux*) version_type=nonstopux ;;
6278 *) version_type=irix ;;
6279 esac
6280 need_lib_prefix=no
6281 need_version=no
6282 soname_spec='${libname}${release}.so$major'
6283 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6284 case $host_os in
6285 irix5* | nonstopux*)
6286 libsuff= shlibsuff=
6287 ;;
6288 *)
6289 case $LD in # libtool.m4 will add one of these switches to LD
6290 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6291 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6292 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6293 *) libsuff= shlibsuff= libmagic=never-match;;
6294 esac
6295 ;;
6296 esac
6297 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6298 shlibpath_overrides_runpath=no
6299 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6300 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6301 ;;
6302
6303# No shared lib support for Linux oldld, aout, or coff.
6304linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6305 dynamic_linker=no
6306 ;;
6307
6308# This must be Linux ELF.
6309linux-gnu*)
6310 version_type=linux
6311 need_lib_prefix=no
6312 need_version=no
6313 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6314 soname_spec='${libname}${release}.so$major'
6315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6316 shlibpath_var=LD_LIBRARY_PATH
6317 shlibpath_overrides_runpath=no
6318 # This implies no fast_install, which is unacceptable.
6319 # Some rework will be needed to allow for fast_install
6320 # before this can be enabled.
6321 hardcode_into_libs=yes
6322
6323 # We used to test for /lib/ld.so.1 and disable shared libraries on
6324 # powerpc, because MkLinux only supported shared libraries with the
6325 # GNU dynamic linker. Since this was broken with cross compilers,
6326 # most powerpc-linux boxes support dynamic linking these days and
6327 # people can always --disable-shared, the test was removed, and we
6328 # assume the GNU/Linux dynamic linker is in use.
6329 dynamic_linker='GNU/Linux ld.so'
6330 ;;
6331
6332netbsd*)
6333 version_type=sunos
6334 need_lib_prefix=no
6335 need_version=no
6336 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6337 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6338 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6339 dynamic_linker='NetBSD (a.out) ld.so'
6340 else
6341 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6342 soname_spec='${libname}${release}.so$major'
6343 dynamic_linker='NetBSD ld.elf_so'
6344 fi
6345 shlibpath_var=LD_LIBRARY_PATH
6346 shlibpath_overrides_runpath=yes
6347 hardcode_into_libs=yes
6348 ;;
6349
6350newsos6)
6351 version_type=linux
6352 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6353 shlibpath_var=LD_LIBRARY_PATH
6354 shlibpath_overrides_runpath=yes
6355 ;;
6356
6357openbsd*)
6358 version_type=sunos
6359 need_lib_prefix=no
6360 need_version=no
6361 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6362 case "$host_os" in
6363 openbsd2.[89] | openbsd2.[89].*)
6364 shlibpath_overrides_runpath=no
6365 ;;
6366 *)
6367 shlibpath_overrides_runpath=yes
6368 ;;
6369 esac
6370 else
6371 shlibpath_overrides_runpath=yes
6372 fi
6373 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6374 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6375 shlibpath_var=LD_LIBRARY_PATH
6376 ;;
6377
6378os2*)
6379 libname_spec='$name'
6380 need_lib_prefix=no
6381 library_names_spec='$libname.dll $libname.a'
6382 dynamic_linker='OS/2 ld.exe'
6383 shlibpath_var=LIBPATH
6384 ;;
6385
6386osf3* | osf4* | osf5*)
6387 version_type=osf
6388 need_version=no
6389 need_lib_prefix=no
6390 soname_spec='${libname}${release}.so$major'
6391 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6392 shlibpath_var=LD_LIBRARY_PATH
6393 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6394 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6395 hardcode_into_libs=yes
6396 ;;
6397
6398sco3.2v5*)
6399 version_type=osf
6400 soname_spec='${libname}${release}.so$major'
6401 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6402 shlibpath_var=LD_LIBRARY_PATH
6403 ;;
6404
6405solaris*)
6406 version_type=linux
6407 need_lib_prefix=no
6408 need_version=no
6409 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6410 soname_spec='${libname}${release}.so$major'
6411 shlibpath_var=LD_LIBRARY_PATH
6412 shlibpath_overrides_runpath=yes
6413 hardcode_into_libs=yes
6414 # ldd complains unless libraries are executable
6415 postinstall_cmds='chmod +x $lib'
6416 ;;
6417
6418sunos4*)
6419 version_type=sunos
6420 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6421 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6422 shlibpath_var=LD_LIBRARY_PATH
6423 shlibpath_overrides_runpath=yes
6424 if test "$with_gnu_ld" = yes; then
6425 need_lib_prefix=no
6426 fi
6427 need_version=yes
6428 ;;
6429
6430sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6431 version_type=linux
6432 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6433 soname_spec='${libname}${release}.so$major'
6434 shlibpath_var=LD_LIBRARY_PATH
6435 case $host_vendor in
6436 sni)
6437 shlibpath_overrides_runpath=no
6438 need_lib_prefix=no
6439 export_dynamic_flag_spec='${wl}-Blargedynsym'
6440 runpath_var=LD_RUN_PATH
6441 ;;
6442 siemens)
6443 need_lib_prefix=no
6444 ;;
6445 motorola)
6446 need_lib_prefix=no
6447 need_version=no
6448 shlibpath_overrides_runpath=no
6449 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6450 ;;
6451 esac
6452 ;;
6453
6454uts4*)
6455 version_type=linux
6456 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6457 soname_spec='${libname}${release}.so$major'
6458 shlibpath_var=LD_LIBRARY_PATH
6459 ;;
6460
6461dgux*)
6462 version_type=linux
6463 need_lib_prefix=no
6464 need_version=no
6465 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6466 soname_spec='${libname}${release}.so$major'
6467 shlibpath_var=LD_LIBRARY_PATH
6468 ;;
6469
6470sysv4*MP*)
6471 if test -d /usr/nec ;then
6472 version_type=linux
6473 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6474 soname_spec='$libname.so.$major'
6475 shlibpath_var=LD_LIBRARY_PATH
6476 fi
6477 ;;
6478
6479*)
6480 dynamic_linker=no
6481 ;;
6482esac
6483echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6484echo "${ECHO_T}$dynamic_linker" >&6
6485test "$dynamic_linker" = no && can_build_shared=no
6486
6487# Report the final consequences.
6488echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6489echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6490echo "$as_me:$LINENO: result: $can_build_shared" >&5
6491echo "${ECHO_T}$can_build_shared" >&6
6492
6493echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6494echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6495test "$can_build_shared" = "no" && enable_shared=no
6496
6497# On AIX, shared libraries and static libraries use the same namespace, and
6498# are all built from PIC.
6499case "$host_os" in
6500aix3*)
6501 test "$enable_shared" = yes && enable_static=no
6502 if test -n "$RANLIB"; then
6503 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6504 postinstall_cmds='$RANLIB $lib'
6505 fi
6506 ;;
6507
6508aix4*)
6509 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6510 test "$enable_shared" = yes && enable_static=no
6511 fi
6512 ;;
6513esac
6514echo "$as_me:$LINENO: result: $enable_shared" >&5
6515echo "${ECHO_T}$enable_shared" >&6
6516
6517echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6518echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6519# Make sure either enable_shared or enable_static is yes.
6520test "$enable_shared" = yes || enable_static=yes
6521echo "$as_me:$LINENO: result: $enable_static" >&5
6522echo "${ECHO_T}$enable_static" >&6
6523
6524if test "$hardcode_action" = relink; then
6525 # Fast installation is not supported
6526 enable_fast_install=no
6527elif test "$shlibpath_overrides_runpath" = yes ||
6528 test "$enable_shared" = no; then
6529 # Fast installation is not necessary
6530 enable_fast_install=needless
6531fi
6532
6533variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6534if test "$GCC" = yes; then
6535 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6536fi
6537
6538if test "x$enable_dlopen" != xyes; then
6539 enable_dlopen=unknown
6540 enable_dlopen_self=unknown
6541 enable_dlopen_self_static=unknown
6542else
6543 lt_cv_dlopen=no
6544 lt_cv_dlopen_libs=
6545
6546 case $host_os in
6547 beos*)
6548 lt_cv_dlopen="load_add_on"
6549 lt_cv_dlopen_libs=
6550 lt_cv_dlopen_self=yes
6551 ;;
6552
6553 cygwin* | mingw* | pw32*)
6554 lt_cv_dlopen="LoadLibrary"
6555 lt_cv_dlopen_libs=
6556 ;;
6557
6558 *)
6559 echo "$as_me:$LINENO: checking for shl_load" >&5
6560echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6561if test "${ac_cv_func_shl_load+set}" = set; then
6562 echo $ECHO_N "(cached) $ECHO_C" >&6
6563else
6564 cat >conftest.$ac_ext <<_ACEOF
6565#line $LINENO "configure"
6566/* confdefs.h. */
6567_ACEOF
6568cat confdefs.h >>conftest.$ac_ext
6569cat >>conftest.$ac_ext <<_ACEOF
6570/* end confdefs.h. */
6571/* System header to define __stub macros and hopefully few prototypes,
6572 which can conflict with char shl_load (); below.
6573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6574 <limits.h> exists even on freestanding compilers. */
6575#ifdef __STDC__
6576# include <limits.h>
6577#else
6578# include <assert.h>
6579#endif
6580/* Override any gcc2 internal prototype to avoid an error. */
6581#ifdef __cplusplus
6582extern "C"
6583{
6584#endif
6585/* We use char because int might match the return type of a gcc2
6586 builtin and then its argument prototype would still apply. */
6587char shl_load ();
6588/* The GNU C library defines this for functions which it implements
6589 to always fail with ENOSYS. Some functions are actually named
6590 something starting with __ and the normal name is an alias. */
6591#if defined (__stub_shl_load) || defined (__stub___shl_load)
6592choke me
6593#else
6594char (*f) () = shl_load;
6595#endif
6596#ifdef __cplusplus
6597}
6598#endif
6599
6600int
6601main ()
6602{
6603return f != shl_load;
6604 ;
6605 return 0;
6606}
6607_ACEOF
6608rm -f conftest.$ac_objext conftest$ac_exeext
6609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6610 (eval $ac_link) 2>&5
6611 ac_status=$?
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } &&
6614 { ac_try='test -s conftest$ac_exeext'
6615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616 (eval $ac_try) 2>&5
6617 ac_status=$?
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); }; }; then
6620 ac_cv_func_shl_load=yes
6621else
6622 echo "$as_me: failed program was:" >&5
6623sed 's/^/| /' conftest.$ac_ext >&5
6624
6625ac_cv_func_shl_load=no
6626fi
6627rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6628fi
6629echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6630echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6631if test $ac_cv_func_shl_load = yes; then
6632 lt_cv_dlopen="shl_load"
6633else
6634 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6635echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6636if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6637 echo $ECHO_N "(cached) $ECHO_C" >&6
6638else
6639 ac_check_lib_save_LIBS=$LIBS
6640LIBS="-ldld $LIBS"
6641cat >conftest.$ac_ext <<_ACEOF
6642#line $LINENO "configure"
6643/* confdefs.h. */
6644_ACEOF
6645cat confdefs.h >>conftest.$ac_ext
6646cat >>conftest.$ac_ext <<_ACEOF
6647/* end confdefs.h. */
6648
6649/* Override any gcc2 internal prototype to avoid an error. */
6650#ifdef __cplusplus
6651extern "C"
6652#endif
6653/* We use char because int might match the return type of a gcc2
6654 builtin and then its argument prototype would still apply. */
6655char shl_load ();
6656int
6657main ()
6658{
6659shl_load ();
6660 ;
6661 return 0;
6662}
6663_ACEOF
6664rm -f conftest.$ac_objext conftest$ac_exeext
6665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6666 (eval $ac_link) 2>&5
6667 ac_status=$?
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); } &&
6670 { ac_try='test -s conftest$ac_exeext'
6671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6672 (eval $ac_try) 2>&5
6673 ac_status=$?
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); }; }; then
6676 ac_cv_lib_dld_shl_load=yes
6677else
6678 echo "$as_me: failed program was:" >&5
6679sed 's/^/| /' conftest.$ac_ext >&5
6680
6681ac_cv_lib_dld_shl_load=no
6682fi
6683rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6684LIBS=$ac_check_lib_save_LIBS
6685fi
6686echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6687echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6688if test $ac_cv_lib_dld_shl_load = yes; then
6689 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6690else
6691 echo "$as_me:$LINENO: checking for dlopen" >&5
6692echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6693if test "${ac_cv_func_dlopen+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6695else
6696 cat >conftest.$ac_ext <<_ACEOF
6697#line $LINENO "configure"
6698/* confdefs.h. */
6699_ACEOF
6700cat confdefs.h >>conftest.$ac_ext
6701cat >>conftest.$ac_ext <<_ACEOF
6702/* end confdefs.h. */
6703/* System header to define __stub macros and hopefully few prototypes,
6704 which can conflict with char dlopen (); below.
6705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6706 <limits.h> exists even on freestanding compilers. */
6707#ifdef __STDC__
6708# include <limits.h>
6709#else
6710# include <assert.h>
6711#endif
6712/* Override any gcc2 internal prototype to avoid an error. */
6713#ifdef __cplusplus
6714extern "C"
6715{
6716#endif
6717/* We use char because int might match the return type of a gcc2
6718 builtin and then its argument prototype would still apply. */
6719char dlopen ();
6720/* The GNU C library defines this for functions which it implements
6721 to always fail with ENOSYS. Some functions are actually named
6722 something starting with __ and the normal name is an alias. */
6723#if defined (__stub_dlopen) || defined (__stub___dlopen)
6724choke me
6725#else
6726char (*f) () = dlopen;
6727#endif
6728#ifdef __cplusplus
6729}
6730#endif
6731
6732int
6733main ()
6734{
6735return f != dlopen;
6736 ;
6737 return 0;
6738}
6739_ACEOF
6740rm -f conftest.$ac_objext conftest$ac_exeext
6741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6742 (eval $ac_link) 2>&5
6743 ac_status=$?
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); } &&
6746 { ac_try='test -s conftest$ac_exeext'
6747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6748 (eval $ac_try) 2>&5
6749 ac_status=$?
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); }; }; then
6752 ac_cv_func_dlopen=yes
6753else
6754 echo "$as_me: failed program was:" >&5
6755sed 's/^/| /' conftest.$ac_ext >&5
6756
6757ac_cv_func_dlopen=no
6758fi
6759rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6760fi
6761echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6762echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6763if test $ac_cv_func_dlopen = yes; then
6764 lt_cv_dlopen="dlopen"
6765else
6766 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6767echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6768if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6769 echo $ECHO_N "(cached) $ECHO_C" >&6
6770else
6771 ac_check_lib_save_LIBS=$LIBS
6772LIBS="-ldl $LIBS"
6773cat >conftest.$ac_ext <<_ACEOF
6774#line $LINENO "configure"
6775/* confdefs.h. */
6776_ACEOF
6777cat confdefs.h >>conftest.$ac_ext
6778cat >>conftest.$ac_ext <<_ACEOF
6779/* end confdefs.h. */
6780
6781/* Override any gcc2 internal prototype to avoid an error. */
6782#ifdef __cplusplus
6783extern "C"
6784#endif
6785/* We use char because int might match the return type of a gcc2
6786 builtin and then its argument prototype would still apply. */
6787char dlopen ();
6788int
6789main ()
6790{
6791dlopen ();
6792 ;
6793 return 0;
6794}
6795_ACEOF
6796rm -f conftest.$ac_objext conftest$ac_exeext
6797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6798 (eval $ac_link) 2>&5
6799 ac_status=$?
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); } &&
6802 { ac_try='test -s conftest$ac_exeext'
6803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6804 (eval $ac_try) 2>&5
6805 ac_status=$?
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); }; }; then
6808 ac_cv_lib_dl_dlopen=yes
6809else
6810 echo "$as_me: failed program was:" >&5
6811sed 's/^/| /' conftest.$ac_ext >&5
6812
6813ac_cv_lib_dl_dlopen=no
6814fi
6815rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6816LIBS=$ac_check_lib_save_LIBS
6817fi
6818echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6819echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6820if test $ac_cv_lib_dl_dlopen = yes; then
6821 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6822else
6823 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6824echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6825if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6826 echo $ECHO_N "(cached) $ECHO_C" >&6
6827else
6828 ac_check_lib_save_LIBS=$LIBS
6829LIBS="-lsvld $LIBS"
6830cat >conftest.$ac_ext <<_ACEOF
6831#line $LINENO "configure"
6832/* confdefs.h. */
6833_ACEOF
6834cat confdefs.h >>conftest.$ac_ext
6835cat >>conftest.$ac_ext <<_ACEOF
6836/* end confdefs.h. */
6837
6838/* Override any gcc2 internal prototype to avoid an error. */
6839#ifdef __cplusplus
6840extern "C"
6841#endif
6842/* We use char because int might match the return type of a gcc2
6843 builtin and then its argument prototype would still apply. */
6844char dlopen ();
6845int
6846main ()
6847{
6848dlopen ();
6849 ;
6850 return 0;
6851}
6852_ACEOF
6853rm -f conftest.$ac_objext conftest$ac_exeext
6854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6855 (eval $ac_link) 2>&5
6856 ac_status=$?
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); } &&
6859 { ac_try='test -s conftest$ac_exeext'
6860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6861 (eval $ac_try) 2>&5
6862 ac_status=$?
6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); }; }; then
6865 ac_cv_lib_svld_dlopen=yes
6866else
6867 echo "$as_me: failed program was:" >&5
6868sed 's/^/| /' conftest.$ac_ext >&5
6869
6870ac_cv_lib_svld_dlopen=no
6871fi
6872rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6873LIBS=$ac_check_lib_save_LIBS
6874fi
6875echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6876echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6877if test $ac_cv_lib_svld_dlopen = yes; then
6878 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6879else
6880 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6881echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6882if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6884else
6885 ac_check_lib_save_LIBS=$LIBS
6886LIBS="-ldld $LIBS"
6887cat >conftest.$ac_ext <<_ACEOF
6888#line $LINENO "configure"
6889/* confdefs.h. */
6890_ACEOF
6891cat confdefs.h >>conftest.$ac_ext
6892cat >>conftest.$ac_ext <<_ACEOF
6893/* end confdefs.h. */
6894
6895/* Override any gcc2 internal prototype to avoid an error. */
6896#ifdef __cplusplus
6897extern "C"
6898#endif
6899/* We use char because int might match the return type of a gcc2
6900 builtin and then its argument prototype would still apply. */
6901char dld_link ();
6902int
6903main ()
6904{
6905dld_link ();
6906 ;
6907 return 0;
6908}
6909_ACEOF
6910rm -f conftest.$ac_objext conftest$ac_exeext
6911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6912 (eval $ac_link) 2>&5
6913 ac_status=$?
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); } &&
6916 { ac_try='test -s conftest$ac_exeext'
6917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6918 (eval $ac_try) 2>&5
6919 ac_status=$?
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); }; }; then
6922 ac_cv_lib_dld_dld_link=yes
6923else
6924 echo "$as_me: failed program was:" >&5
6925sed 's/^/| /' conftest.$ac_ext >&5
6926
6927ac_cv_lib_dld_dld_link=no
6928fi
6929rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6930LIBS=$ac_check_lib_save_LIBS
6931fi
6932echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6933echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6934if test $ac_cv_lib_dld_dld_link = yes; then
6935 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6936fi
6937
6938
6939fi
6940
6941
6942fi
6943
6944
6945fi
6946
6947
6948fi
6949
6950
6951fi
6952
6953 ;;
6954 esac
6955
6956 if test "x$lt_cv_dlopen" != xno; then
6957 enable_dlopen=yes
6958 else
6959 enable_dlopen=no
6960 fi
6961
6962 case $lt_cv_dlopen in
6963 dlopen)
6964 save_CPPFLAGS="$CPPFLAGS"
6965 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6966
6967 save_LDFLAGS="$LDFLAGS"
6968 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6969
6970 save_LIBS="$LIBS"
6971 LIBS="$lt_cv_dlopen_libs $LIBS"
6972
6973 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6974echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6975if test "${lt_cv_dlopen_self+set}" = set; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6977else
6978 if test "$cross_compiling" = yes; then :
6979 lt_cv_dlopen_self=cross
6980else
6981 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6982 lt_status=$lt_dlunknown
6983 cat > conftest.$ac_ext <<EOF
6984#line 6984 "configure"
6985#include "confdefs.h"
6986
6987#if HAVE_DLFCN_H
6988#include <dlfcn.h>
6989#endif
6990
6991#include <stdio.h>
6992
6993#ifdef RTLD_GLOBAL
6994# define LT_DLGLOBAL RTLD_GLOBAL
6995#else
6996# ifdef DL_GLOBAL
6997# define LT_DLGLOBAL DL_GLOBAL
6998# else
6999# define LT_DLGLOBAL 0
7000# endif
7001#endif
7002
7003/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7004 find out it does not work in some platform. */
7005#ifndef LT_DLLAZY_OR_NOW
7006# ifdef RTLD_LAZY
7007# define LT_DLLAZY_OR_NOW RTLD_LAZY
7008# else
7009# ifdef DL_LAZY
7010# define LT_DLLAZY_OR_NOW DL_LAZY
7011# else
7012# ifdef RTLD_NOW
7013# define LT_DLLAZY_OR_NOW RTLD_NOW
7014# else
7015# ifdef DL_NOW
7016# define LT_DLLAZY_OR_NOW DL_NOW
7017# else
7018# define LT_DLLAZY_OR_NOW 0
7019# endif
7020# endif
7021# endif
7022# endif
7023#endif
7024
7025#ifdef __cplusplus
7026extern "C" void exit (int);
7027#endif
7028
7029void fnord() { int i=42;}
7030int main ()
7031{
7032 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7033 int status = $lt_dlunknown;
7034
7035 if (self)
7036 {
7037 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7038 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7039 /* dlclose (self); */
7040 }
7041
7042 exit (status);
7043}
7044EOF
7045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7046 (eval $ac_link) 2>&5
7047 ac_status=$?
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7050 (./conftest; exit; ) 2>/dev/null
7051 lt_status=$?
7052 case x$lt_status in
7053 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7054 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7055 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7056 esac
7057 else :
7058 # compilation failed
7059 lt_cv_dlopen_self=no
7060 fi
7061fi
7062rm -fr conftest*
7063
7064
7065fi
7066echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7067echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7068
7069 if test "x$lt_cv_dlopen_self" = xyes; then
7070 LDFLAGS="$LDFLAGS $link_static_flag"
7071 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7072echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7073if test "${lt_cv_dlopen_self_static+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7075else
7076 if test "$cross_compiling" = yes; then :
7077 lt_cv_dlopen_self_static=cross
7078else
7079 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7080 lt_status=$lt_dlunknown
7081 cat > conftest.$ac_ext <<EOF
7082#line 7082 "configure"
7083#include "confdefs.h"
7084
7085#if HAVE_DLFCN_H
7086#include <dlfcn.h>
7087#endif
7088
7089#include <stdio.h>
7090
7091#ifdef RTLD_GLOBAL
7092# define LT_DLGLOBAL RTLD_GLOBAL
7093#else
7094# ifdef DL_GLOBAL
7095# define LT_DLGLOBAL DL_GLOBAL
7096# else
7097# define LT_DLGLOBAL 0
7098# endif
7099#endif
7100
7101/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7102 find out it does not work in some platform. */
7103#ifndef LT_DLLAZY_OR_NOW
7104# ifdef RTLD_LAZY
7105# define LT_DLLAZY_OR_NOW RTLD_LAZY
7106# else
7107# ifdef DL_LAZY
7108# define LT_DLLAZY_OR_NOW DL_LAZY
7109# else
7110# ifdef RTLD_NOW
7111# define LT_DLLAZY_OR_NOW RTLD_NOW
7112# else
7113# ifdef DL_NOW
7114# define LT_DLLAZY_OR_NOW DL_NOW
7115# else
7116# define LT_DLLAZY_OR_NOW 0
7117# endif
7118# endif
7119# endif
7120# endif
7121#endif
7122
7123#ifdef __cplusplus
7124extern "C" void exit (int);
7125#endif
7126
7127void fnord() { int i=42;}
7128int main ()
7129{
7130 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7131 int status = $lt_dlunknown;
7132
7133 if (self)
7134 {
7135 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7136 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7137 /* dlclose (self); */
7138 }
7139
7140 exit (status);
7141}
7142EOF
7143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7144 (eval $ac_link) 2>&5
7145 ac_status=$?
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7148 (./conftest; exit; ) 2>/dev/null
7149 lt_status=$?
7150 case x$lt_status in
7151 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7152 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7153 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7154 esac
7155 else :
7156 # compilation failed
7157 lt_cv_dlopen_self_static=no
7158 fi
7159fi
7160rm -fr conftest*
7161
7162
7163fi
7164echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7165echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7166 fi
7167
7168 CPPFLAGS="$save_CPPFLAGS"
7169 LDFLAGS="$save_LDFLAGS"
7170 LIBS="$save_LIBS"
7171 ;;
7172 esac
7173
7174 case $lt_cv_dlopen_self in
7175 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7176 *) enable_dlopen_self=unknown ;;
7177 esac
7178
7179 case $lt_cv_dlopen_self_static in
7180 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7181 *) enable_dlopen_self_static=unknown ;;
7182 esac
7183fi
7184
7185
7186if test "$enable_shared" = yes && test "$GCC" = yes; then
7187 case $archive_cmds in
7188 *'~'*)
7189 # FIXME: we may have to deal with multi-command sequences.
7190 ;;
7191 '$CC '*)
7192 # Test whether the compiler implicitly links with -lc since on some
7193 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7194 # to ld, don't add -lc before -lgcc.
7195 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7196echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7197 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6
7199else
7200 $rm conftest*
7201 echo 'static int dummy;' > conftest.$ac_ext
7202
7203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7204 (eval $ac_compile) 2>&5
7205 ac_status=$?
7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); }; then
7208 soname=conftest
7209 lib=conftest
7210 libobjs=conftest.$ac_objext
7211 deplibs=
7212 wl=$lt_cv_prog_cc_wl
7213 compiler_flags=-v
7214 linker_flags=-v
7215 verstring=
7216 output_objdir=.
7217 libname=conftest
7218 save_allow_undefined_flag=$allow_undefined_flag
7219 allow_undefined_flag=
7220 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7221 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7222 ac_status=$?
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); }
7225 then
7226 lt_cv_archive_cmds_need_lc=no
7227 else
7228 lt_cv_archive_cmds_need_lc=yes
7229 fi
7230 allow_undefined_flag=$save_allow_undefined_flag
7231 else
7232 cat conftest.err 1>&5
7233 fi
7234fi
7235
7236 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7237echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7238 ;;
7239 esac
7240fi
7241need_lc=${lt_cv_archive_cmds_need_lc-yes}
7242
7243# The second clause should only fire when bootstrapping the
7244# libtool distribution, otherwise you forgot to ship ltmain.sh
7245# with your package, and you will get complaints that there are
7246# no rules to generate ltmain.sh.
7247if test -f "$ltmain"; then
7248 :
7249else
7250 # If there is no Makefile yet, we rely on a make rule to execute
7251 # `config.status --recheck' to rerun these tests and create the
7252 # libtool script then.
7253 test -f Makefile && make "$ltmain"
7254fi
7255
7256if test -f "$ltmain"; then
7257 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7258 $rm -f "${ofile}T"
7259
7260 echo creating $ofile
7261
7262 # Now quote all the things that may contain metacharacters while being
7263 # careful not to overquote the AC_SUBSTed values. We take copies of the
7264 # variables and quote the copies for generation of the libtool script.
7265 for var in echo old_CC old_CFLAGS SED \
7266 AR AR_FLAGS CC LD LN_S NM SHELL \
7267 reload_flag reload_cmds wl \
7268 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7269 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7270 library_names_spec soname_spec \
7271 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7272 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7273 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7274 old_striplib striplib file_magic_cmd export_symbols_cmds \
7275 deplibs_check_method allow_undefined_flag no_undefined_flag \
7276 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7277 global_symbol_to_c_name_address \
7278 hardcode_libdir_flag_spec hardcode_libdir_separator \
7279 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7280 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7281
7282 case $var in
7283 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7284 old_postinstall_cmds | old_postuninstall_cmds | \
7285 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7286 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7287 postinstall_cmds | postuninstall_cmds | \
7288 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7289 # Double-quote double-evaled strings.
7290 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7291 ;;
7292 *)
7293 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7294 ;;
7295 esac
7296 done
7297
7298 cat <<__EOF__ > "${ofile}T"
7299#! $SHELL
7300
7301# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7302# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7303# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7304#
7305# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7306# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7307#
7308# This program is free software; you can redistribute it and/or modify
7309# it under the terms of the GNU General Public License as published by
7310# the Free Software Foundation; either version 2 of the License, or
7311# (at your option) any later version.
7312#
7313# This program is distributed in the hope that it will be useful, but
7314# WITHOUT ANY WARRANTY; without even the implied warranty of
7315# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7316# General Public License for more details.
7317#
7318# You should have received a copy of the GNU General Public License
7319# along with this program; if not, write to the Free Software
7320# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7321#
7322# As a special exception to the GNU General Public License, if you
7323# distribute this file as part of a program that contains a
7324# configuration script generated by Autoconf, you may include it under
7325# the same distribution terms that you use for the rest of that program.
7326
7327# A sed that does not truncate output.
7328SED=$lt_SED
7329
7330# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7331Xsed="${SED} -e s/^X//"
7332
7333# The HP-UX ksh and POSIX shell print the target directory to stdout
7334# if CDPATH is set.
7335if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7336
7337# ### BEGIN LIBTOOL CONFIG
7338
7339# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7340
7341# Shell to use when invoking shell scripts.
7342SHELL=$lt_SHELL
7343
7344# Whether or not to build shared libraries.
7345build_libtool_libs=$enable_shared
7346
7347# Whether or not to build static libraries.
7348build_old_libs=$enable_static
7349
7350# Whether or not to add -lc for building shared libraries.
7351build_libtool_need_lc=$need_lc
7352
7353# Whether or not to optimize for fast installation.
7354fast_install=$enable_fast_install
7355
7356# The host system.
7357host_alias=$host_alias
7358host=$host
7359
7360# An echo program that does not interpret backslashes.
7361echo=$lt_echo
7362
7363# The archiver.
7364AR=$lt_AR
7365AR_FLAGS=$lt_AR_FLAGS
7366
7367# The default C compiler.
7368CC=$lt_CC
7369
7370# Is the compiler the GNU C compiler?
7371with_gcc=$GCC
7372
7373# The linker used to build libraries.
7374LD=$lt_LD
7375
7376# Whether we need hard or soft links.
7377LN_S=$lt_LN_S
7378
7379# A BSD-compatible nm program.
7380NM=$lt_NM
7381
7382# A symbol stripping program
7383STRIP=$STRIP
7384
7385# Used to examine libraries when file_magic_cmd begins "file"
7386MAGIC_CMD=$MAGIC_CMD
7387
7388# Used on cygwin: DLL creation program.
7389DLLTOOL="$DLLTOOL"
7390
7391# Used on cygwin: object dumper.
7392OBJDUMP="$OBJDUMP"
7393
7394# Used on cygwin: assembler.
7395AS="$AS"
7396
7397# The name of the directory that contains temporary libtool files.
7398objdir=$objdir
7399
7400# How to create reloadable object files.
7401reload_flag=$lt_reload_flag
7402reload_cmds=$lt_reload_cmds
7403
7404# How to pass a linker flag through the compiler.
7405wl=$lt_wl
7406
7407# Object file suffix (normally "o").
7408objext="$ac_objext"
7409
7410# Old archive suffix (normally "a").
7411libext="$libext"
7412
7413# Executable file suffix (normally "").
7414exeext="$exeext"
7415
7416# Additional compiler flags for building library objects.
7417pic_flag=$lt_pic_flag
7418pic_mode=$pic_mode
7419
7420# Does compiler simultaneously support -c and -o options?
7421compiler_c_o=$lt_compiler_c_o
7422
7423# Can we write directly to a .lo ?
7424compiler_o_lo=$lt_compiler_o_lo
7425
7426# Must we lock files when doing compilation ?
7427need_locks=$lt_need_locks
7428
7429# Do we need the lib prefix for modules?
7430need_lib_prefix=$need_lib_prefix
7431
7432# Do we need a version for libraries?
7433need_version=$need_version
7434
7435# Whether dlopen is supported.
7436dlopen_support=$enable_dlopen
7437
7438# Whether dlopen of programs is supported.
7439dlopen_self=$enable_dlopen_self
7440
7441# Whether dlopen of statically linked programs is supported.
7442dlopen_self_static=$enable_dlopen_self_static
7443
7444# Compiler flag to prevent dynamic linking.
7445link_static_flag=$lt_link_static_flag
7446
7447# Compiler flag to turn off builtin functions.
7448no_builtin_flag=$lt_no_builtin_flag
7449
7450# Compiler flag to allow reflexive dlopens.
7451export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7452
7453# Compiler flag to generate shared objects directly from archives.
7454whole_archive_flag_spec=$lt_whole_archive_flag_spec
7455
7456# Compiler flag to generate thread-safe objects.
7457thread_safe_flag_spec=$lt_thread_safe_flag_spec
7458
7459# Library versioning type.
7460version_type=$version_type
7461
7462# Format of library name prefix.
7463libname_spec=$lt_libname_spec
7464
7465# List of archive names. First name is the real one, the rest are links.
7466# The last name is the one that the linker finds with -lNAME.
7467library_names_spec=$lt_library_names_spec
7468
7469# The coded name of the library, if different from the real name.
7470soname_spec=$lt_soname_spec
7471
7472# Commands used to build and install an old-style archive.
7473RANLIB=$lt_RANLIB
7474old_archive_cmds=$lt_old_archive_cmds
7475old_postinstall_cmds=$lt_old_postinstall_cmds
7476old_postuninstall_cmds=$lt_old_postuninstall_cmds
7477
7478# Create an old-style archive from a shared archive.
7479old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7480
7481# Create a temporary old-style archive to link instead of a shared archive.
7482old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7483
7484# Commands used to build and install a shared archive.
7485archive_cmds=$lt_archive_cmds
7486archive_expsym_cmds=$lt_archive_expsym_cmds
7487postinstall_cmds=$lt_postinstall_cmds
7488postuninstall_cmds=$lt_postuninstall_cmds
7489
7490# Commands to strip libraries.
7491old_striplib=$lt_old_striplib
7492striplib=$lt_striplib
7493
7494# Method to check whether dependent libraries are shared objects.
7495deplibs_check_method=$lt_deplibs_check_method
7496
7497# Command to use when deplibs_check_method == file_magic.
7498file_magic_cmd=$lt_file_magic_cmd
7499
7500# Flag that allows shared libraries with undefined symbols to be built.
7501allow_undefined_flag=$lt_allow_undefined_flag
7502
7503# Flag that forces no undefined symbols.
7504no_undefined_flag=$lt_no_undefined_flag
7505
7506# Commands used to finish a libtool library installation in a directory.
7507finish_cmds=$lt_finish_cmds
7508
7509# Same as above, but a single script fragment to be evaled but not shown.
7510finish_eval=$lt_finish_eval
7511
7512# Take the output of nm and produce a listing of raw symbols and C names.
7513global_symbol_pipe=$lt_global_symbol_pipe
7514
7515# Transform the output of nm in a proper C declaration
7516global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7517
7518# Transform the output of nm in a C name address pair
7519global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7520
7521# This is the shared library runtime path variable.
7522runpath_var=$runpath_var
7523
7524# This is the shared library path variable.
7525shlibpath_var=$shlibpath_var
7526
7527# Is shlibpath searched before the hard-coded library search path?
7528shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7529
7530# How to hardcode a shared library path into an executable.
7531hardcode_action=$hardcode_action
7532
7533# Whether we should hardcode library paths into libraries.
7534hardcode_into_libs=$hardcode_into_libs
7535
7536# Flag to hardcode \$libdir into a binary during linking.
7537# This must work even if \$libdir does not exist.
7538hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7539
7540# Whether we need a single -rpath flag with a separated argument.
7541hardcode_libdir_separator=$lt_hardcode_libdir_separator
7542
7543# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7544# resulting binary.
7545hardcode_direct=$hardcode_direct
7546
7547# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7548# resulting binary.
7549hardcode_minus_L=$hardcode_minus_L
7550
7551# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7552# the resulting binary.
7553hardcode_shlibpath_var=$hardcode_shlibpath_var
7554
7555# Variables whose values should be saved in libtool wrapper scripts and
7556# restored at relink time.
7557variables_saved_for_relink="$variables_saved_for_relink"
7558
7559# Whether libtool must link a program against all its dependency libraries.
7560link_all_deplibs=$link_all_deplibs
7561
7562# Compile-time system search path for libraries
7563sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7564
7565# Run-time system search path for libraries
7566sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7567
7568# Fix the shell variable \$srcfile for the compiler.
7569fix_srcfile_path="$fix_srcfile_path"
7570
7571# Set to yes if exported symbols are required.
7572always_export_symbols=$always_export_symbols
7573
7574# The commands to list exported symbols.
7575export_symbols_cmds=$lt_export_symbols_cmds
7576
7577# The commands to extract the exported symbol list from a shared archive.
7578extract_expsyms_cmds=$lt_extract_expsyms_cmds
7579
7580# Symbols that should not be listed in the preloaded symbols.
7581exclude_expsyms=$lt_exclude_expsyms
7582
7583# Symbols that must always be exported.
7584include_expsyms=$lt_include_expsyms
7585
7586# ### END LIBTOOL CONFIG
7587
7588__EOF__
7589
7590 case $host_os in
7591 aix3*)
7592 cat <<\EOF >> "${ofile}T"
7593
7594# AIX sometimes has problems with the GCC collect2 program. For some
7595# reason, if we set the COLLECT_NAMES environment variable, the problems
7596# vanish in a puff of smoke.
7597if test "X${COLLECT_NAMES+set}" != Xset; then
7598 COLLECT_NAMES=
7599 export COLLECT_NAMES
7600fi
7601EOF
7602 ;;
7603 esac
7604
7605 case $host_os in
7606 cygwin* | mingw* | pw32* | os2*)
7607 cat <<'EOF' >> "${ofile}T"
7608 # This is a source program that is used to create dlls on Windows
7609 # Don't remove nor modify the starting and closing comments
7610# /* ltdll.c starts here */
7611# #define WIN32_LEAN_AND_MEAN
7612# #include <windows.h>
7613# #undef WIN32_LEAN_AND_MEAN
7614# #include <stdio.h>
7615#
7616# #ifndef __CYGWIN__
7617# # ifdef __CYGWIN32__
7618# # define __CYGWIN__ __CYGWIN32__
7619# # endif
7620# #endif
7621#
7622# #ifdef __cplusplus
7623# extern "C" {
7624# #endif
7625# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7626# #ifdef __cplusplus
7627# }
7628# #endif
7629#
7630# #ifdef __CYGWIN__
7631# #include <cygwin/cygwin_dll.h>
7632# DECLARE_CYGWIN_DLL( DllMain );
7633# #endif
7634# HINSTANCE __hDllInstance_base;
7635#
7636# BOOL APIENTRY
7637# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7638# {
7639# __hDllInstance_base = hInst;
7640# return TRUE;
7641# }
7642# /* ltdll.c ends here */
7643 # This is a source program that is used to create import libraries
7644 # on Windows for dlls which lack them. Don't remove nor modify the
7645 # starting and closing comments
7646# /* impgen.c starts here */
7647# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7648#
7649# This file is part of GNU libtool.
7650#
7651# This program is free software; you can redistribute it and/or modify
7652# it under the terms of the GNU General Public License as published by
7653# the Free Software Foundation; either version 2 of the License, or
7654# (at your option) any later version.
7655#
7656# This program is distributed in the hope that it will be useful,
7657# but WITHOUT ANY WARRANTY; without even the implied warranty of
7658# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7659# GNU General Public License for more details.
7660#
7661# You should have received a copy of the GNU General Public License
7662# along with this program; if not, write to the Free Software
7663# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7664# */
7665#
7666# #include <stdio.h> /* for printf() */
7667# #include <unistd.h> /* for open(), lseek(), read() */
7668# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7669# #include <string.h> /* for strdup() */
7670#
7671# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7672# #ifndef O_BINARY
7673# #define O_BINARY 0
7674# #endif
7675#
7676# static unsigned int
7677# pe_get16 (fd, offset)
7678# int fd;
7679# int offset;
7680# {
7681# unsigned char b[2];
7682# lseek (fd, offset, SEEK_SET);
7683# read (fd, b, 2);
7684# return b[0] + (b[1]<<8);
7685# }
7686#
7687# static unsigned int
7688# pe_get32 (fd, offset)
7689# int fd;
7690# int offset;
7691# {
7692# unsigned char b[4];
7693# lseek (fd, offset, SEEK_SET);
7694# read (fd, b, 4);
7695# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7696# }
7697#
7698# static unsigned int
7699# pe_as32 (ptr)
7700# void *ptr;
7701# {
7702# unsigned char *b = ptr;
7703# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7704# }
7705#
7706# int
7707# main (argc, argv)
7708# int argc;
7709# char *argv[];
7710# {
7711# int dll;
7712# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7713# unsigned long export_rva, export_size, nsections, secptr, expptr;
7714# unsigned long name_rvas, nexp;
7715# unsigned char *expdata, *erva;
7716# char *filename, *dll_name;
7717#
7718# filename = argv[1];
7719#
7720# dll = open(filename, O_RDONLY|O_BINARY);
7721# if (dll < 1)
7722# return 1;
7723#
7724# dll_name = filename;
7725#
7726# for (i=0; filename[i]; i++)
7727# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7728# dll_name = filename + i +1;
7729#
7730# pe_header_offset = pe_get32 (dll, 0x3c);
7731# opthdr_ofs = pe_header_offset + 4 + 20;
7732# num_entries = pe_get32 (dll, opthdr_ofs + 92);
7733#
7734# if (num_entries < 1) /* no exports */
7735# return 1;
7736#
7737# export_rva = pe_get32 (dll, opthdr_ofs + 96);
7738# export_size = pe_get32 (dll, opthdr_ofs + 100);
7739# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7740# secptr = (pe_header_offset + 4 + 20 +
7741# pe_get16 (dll, pe_header_offset + 4 + 16));
7742#
7743# expptr = 0;
7744# for (i = 0; i < nsections; i++)
7745# {
7746# char sname[8];
7747# unsigned long secptr1 = secptr + 40 * i;
7748# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7749# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7750# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7751# lseek(dll, secptr1, SEEK_SET);
7752# read(dll, sname, 8);
7753# if (vaddr <= export_rva && vaddr+vsize > export_rva)
7754# {
7755# expptr = fptr + (export_rva - vaddr);
7756# if (export_rva + export_size > vaddr + vsize)
7757# export_size = vsize - (export_rva - vaddr);
7758# break;
7759# }
7760# }
7761#
7762# expdata = (unsigned char*)malloc(export_size);
7763# lseek (dll, expptr, SEEK_SET);
7764# read (dll, expdata, export_size);
7765# erva = expdata - export_rva;
7766#
7767# nexp = pe_as32 (expdata+24);
7768# name_rvas = pe_as32 (expdata+32);
7769#
7770# printf ("EXPORTS\n");
7771# for (i = 0; i<nexp; i++)
7772# {
7773# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7774# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7775# }
7776#
7777# return 0;
7778# }
7779# /* impgen.c ends here */
7780
7781EOF
7782 ;;
7783 esac
7784
7785 # We use sed instead of cat because bash on DJGPP gets confused if
7786 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7787 # text mode, it properly converts lines to CR/LF. This bash problem
7788 # is reportedly fixed, but why not run on old versions too?
7789 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7790
7791 mv -f "${ofile}T" "$ofile" || \
7792 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7793 chmod +x "$ofile"
7794fi
7795
7796
7797
7798
7799
7800# This can be used to rebuild libtool when needed
7801LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7802
7803# Always use our own libtool.
7804LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7805
7806# Prevent multiple expansion
7807
7808
7809
7810# Checks for header files.
7811echo "$as_me:$LINENO: checking for X" >&5
7812echo $ECHO_N "checking for X... $ECHO_C" >&6
7813
7814
7815# Check whether --with-x or --without-x was given.
7816if test "${with_x+set}" = set; then
7817 withval="$with_x"
7818
7819fi;
7820# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7821if test "x$with_x" = xno; then
7822 # The user explicitly disabled X.
7823 have_x=disabled
7824else
7825 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7826 # Both variables are already set.
7827 have_x=yes
7828 else
7829 if test "${ac_cv_have_x+set}" = set; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
7831else
7832 # One or both of the vars are not set, and there is no cached value.
7833ac_x_includes=no ac_x_libraries=no
7834rm -fr conftest.dir
7835if mkdir conftest.dir; then
7836 cd conftest.dir
7837 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7838 cat >Imakefile <<'_ACEOF'
7839acfindx:
7840 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7841_ACEOF
7842 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7843 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7844 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7845 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7846 for ac_extension in a so sl; do
7847 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7848 test -f $ac_im_libdir/libX11.$ac_extension; then
7849 ac_im_usrlibdir=$ac_im_libdir; break
7850 fi
7851 done
7852 # Screen out bogus values from the imake configuration. They are
7853 # bogus both because they are the default anyway, and because
7854 # using them would break gcc on systems where it needs fixed includes.
7855 case $ac_im_incroot in
7856 /usr/include) ;;
7857 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7858 esac
7859 case $ac_im_usrlibdir in
7860 /usr/lib | /lib) ;;
7861 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7862 esac
7863 fi
7864 cd ..
7865 rm -fr conftest.dir
7866fi
7867
7868# Standard set of common directories for X headers.
7869# Check X11 before X11Rn because it is often a symlink to the current release.
7870ac_x_header_dirs='
7871/usr/X11/include
7872/usr/X11R6/include
7873/usr/X11R5/include
7874/usr/X11R4/include
7875
7876/usr/include/X11
7877/usr/include/X11R6
7878/usr/include/X11R5
7879/usr/include/X11R4
7880
7881/usr/local/X11/include
7882/usr/local/X11R6/include
7883/usr/local/X11R5/include
7884/usr/local/X11R4/include
7885
7886/usr/local/include/X11
7887/usr/local/include/X11R6
7888/usr/local/include/X11R5
7889/usr/local/include/X11R4
7890
7891/usr/X386/include
7892/usr/x386/include
7893/usr/XFree86/include/X11
7894
7895/usr/include
7896/usr/local/include
7897/usr/unsupported/include
7898/usr/athena/include
7899/usr/local/x11r5/include
7900/usr/lpp/Xamples/include
7901
7902/usr/openwin/include
7903/usr/openwin/share/include'
7904
7905if test "$ac_x_includes" = no; then
7906 # Guess where to find include files, by looking for Intrinsic.h.
7907 # First, try using that file with no special directory specified.
7908 cat >conftest.$ac_ext <<_ACEOF
7909#line $LINENO "configure"
7910/* confdefs.h. */
7911_ACEOF
7912cat confdefs.h >>conftest.$ac_ext
7913cat >>conftest.$ac_ext <<_ACEOF
7914/* end confdefs.h. */
7915#include <X11/Intrinsic.h>
7916_ACEOF
7917if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7918 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7919 ac_status=$?
7920 grep -v '^ *+' conftest.er1 >conftest.err
7921 rm -f conftest.er1
7922 cat conftest.err >&5
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); } >/dev/null; then
7925 if test -s conftest.err; then
7926 ac_cpp_err=$ac_c_preproc_warn_flag
7927 else
7928 ac_cpp_err=
7929 fi
7930else
7931 ac_cpp_err=yes
7932fi
7933if test -z "$ac_cpp_err"; then
7934 # We can compile using X headers with no special include directory.
7935ac_x_includes=
7936else
7937 echo "$as_me: failed program was:" >&5
7938sed 's/^/| /' conftest.$ac_ext >&5
7939
7940 for ac_dir in $ac_x_header_dirs; do
7941 if test -r "$ac_dir/X11/Intrinsic.h"; then
7942 ac_x_includes=$ac_dir
7943 break
7944 fi
7945done
7946fi
7947rm -f conftest.err conftest.$ac_ext
7948fi # $ac_x_includes = no
7949
7950if test "$ac_x_libraries" = no; then
7951 # Check for the libraries.
7952 # See if we find them without any special options.
7953 # Don't add to $LIBS permanently.
7954 ac_save_LIBS=$LIBS
7955 LIBS="-lXt $LIBS"
7956 cat >conftest.$ac_ext <<_ACEOF
7957#line $LINENO "configure"
7958/* confdefs.h. */
7959_ACEOF
7960cat confdefs.h >>conftest.$ac_ext
7961cat >>conftest.$ac_ext <<_ACEOF
7962/* end confdefs.h. */
7963#include <X11/Intrinsic.h>
7964int
7965main ()
7966{
7967XtMalloc (0)
7968 ;
7969 return 0;
7970}
7971_ACEOF
7972rm -f conftest.$ac_objext conftest$ac_exeext
7973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7974 (eval $ac_link) 2>&5
7975 ac_status=$?
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); } &&
7978 { ac_try='test -s conftest$ac_exeext'
7979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7980 (eval $ac_try) 2>&5
7981 ac_status=$?
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); }; }; then
7984 LIBS=$ac_save_LIBS
7985# We can link X programs with no special library path.
7986ac_x_libraries=
7987else
7988 echo "$as_me: failed program was:" >&5
7989sed 's/^/| /' conftest.$ac_ext >&5
7990
7991LIBS=$ac_save_LIBS
7992for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7993do
7994 # Don't even attempt the hair of trying to link an X program!
7995 for ac_extension in a so sl; do
7996 if test -r $ac_dir/libXt.$ac_extension; then
7997 ac_x_libraries=$ac_dir
7998 break 2
7999 fi
8000 done
8001done
8002fi
8003rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8004fi # $ac_x_libraries = no
8005
8006if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8007 # Didn't find X anywhere. Cache the known absence of X.
8008 ac_cv_have_x="have_x=no"
8009else
8010 # Record where we found X for the cache.
8011 ac_cv_have_x="have_x=yes \
8012 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8013fi
8014fi
8015
8016 fi
8017 eval "$ac_cv_have_x"
8018fi # $with_x != no
8019
8020if test "$have_x" != yes; then
8021 echo "$as_me:$LINENO: result: $have_x" >&5
8022echo "${ECHO_T}$have_x" >&6
8023 no_x=yes
8024else
8025 # If each of the values was on the command line, it overrides each guess.
8026 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8027 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8028 # Update the cache value to reflect the command line values.
8029 ac_cv_have_x="have_x=yes \
8030 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8031 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8032echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8033fi
8034
8035echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8036echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8037if test "${ac_cv_header_stdc+set}" = set; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
8039else
8040 cat >conftest.$ac_ext <<_ACEOF
8041#line $LINENO "configure"
8042/* confdefs.h. */
8043_ACEOF
8044cat confdefs.h >>conftest.$ac_ext
8045cat >>conftest.$ac_ext <<_ACEOF
8046/* end confdefs.h. */
8047#include <stdlib.h>
8048#include <stdarg.h>
8049#include <string.h>
8050#include <float.h>
8051
8052int
8053main ()
8054{
8055
8056 ;
8057 return 0;
8058}
8059_ACEOF
8060rm -f conftest.$ac_objext
8061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8062 (eval $ac_compile) 2>&5
8063 ac_status=$?
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); } &&
8066 { ac_try='test -s conftest.$ac_objext'
8067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8068 (eval $ac_try) 2>&5
8069 ac_status=$?
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }; }; then
8072 ac_cv_header_stdc=yes
8073else
8074 echo "$as_me: failed program was:" >&5
8075sed 's/^/| /' conftest.$ac_ext >&5
8076
8077ac_cv_header_stdc=no
8078fi
8079rm -f conftest.$ac_objext conftest.$ac_ext
8080
8081if test $ac_cv_header_stdc = yes; then
8082 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8083 cat >conftest.$ac_ext <<_ACEOF
8084#line $LINENO "configure"
8085/* confdefs.h. */
8086_ACEOF
8087cat confdefs.h >>conftest.$ac_ext
8088cat >>conftest.$ac_ext <<_ACEOF
8089/* end confdefs.h. */
8090#include <string.h>
8091
8092_ACEOF
8093if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8094 $EGREP "memchr" >/dev/null 2>&1; then
8095 :
8096else
8097 ac_cv_header_stdc=no
8098fi
8099rm -f conftest*
8100
8101fi
8102
8103if test $ac_cv_header_stdc = yes; then
8104 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8105 cat >conftest.$ac_ext <<_ACEOF
8106#line $LINENO "configure"
8107/* confdefs.h. */
8108_ACEOF
8109cat confdefs.h >>conftest.$ac_ext
8110cat >>conftest.$ac_ext <<_ACEOF
8111/* end confdefs.h. */
8112#include <stdlib.h>
8113
8114_ACEOF
8115if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8116 $EGREP "free" >/dev/null 2>&1; then
8117 :
8118else
8119 ac_cv_header_stdc=no
8120fi
8121rm -f conftest*
8122
8123fi
8124
8125if test $ac_cv_header_stdc = yes; then
8126 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8127 if test "$cross_compiling" = yes; then
8128 :
8129else
8130 cat >conftest.$ac_ext <<_ACEOF
8131#line $LINENO "configure"
8132/* confdefs.h. */
8133_ACEOF
8134cat confdefs.h >>conftest.$ac_ext
8135cat >>conftest.$ac_ext <<_ACEOF
8136/* end confdefs.h. */
8137#include <ctype.h>
8138#if ((' ' & 0x0FF) == 0x020)
8139# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8140# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8141#else
8142# define ISLOWER(c) \
8143 (('a' <= (c) && (c) <= 'i') \
8144 || ('j' <= (c) && (c) <= 'r') \
8145 || ('s' <= (c) && (c) <= 'z'))
8146# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8147#endif
8148
8149#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8150int
8151main ()
8152{
8153 int i;
8154 for (i = 0; i < 256; i++)
8155 if (XOR (islower (i), ISLOWER (i))
8156 || toupper (i) != TOUPPER (i))
8157 exit(2);
8158 exit (0);
8159}
8160_ACEOF
8161rm -f conftest$ac_exeext
8162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8163 (eval $ac_link) 2>&5
8164 ac_status=$?
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8168 (eval $ac_try) 2>&5
8169 ac_status=$?
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); }; }; then
8172 :
8173else
8174 echo "$as_me: program exited with status $ac_status" >&5
8175echo "$as_me: failed program was:" >&5
8176sed 's/^/| /' conftest.$ac_ext >&5
8177
8178( exit $ac_status )
8179ac_cv_header_stdc=no
8180fi
8181rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8182fi
8183fi
8184fi
8185echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8186echo "${ECHO_T}$ac_cv_header_stdc" >&6
8187if test $ac_cv_header_stdc = yes; then
8188
8189cat >>confdefs.h <<\_ACEOF
8190#define STDC_HEADERS 1
8191_ACEOF
8192
8193fi
8194
8195
8196
8197
8198
8199
8200
8201for ac_header in fcntl.h malloc.h stdlib.h string.h strings.h unistd.h
8202do
8203as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8204if eval "test \"\${$as_ac_Header+set}\" = set"; then
8205 echo "$as_me:$LINENO: checking for $ac_header" >&5
8206echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8207if eval "test \"\${$as_ac_Header+set}\" = set"; then
8208 echo $ECHO_N "(cached) $ECHO_C" >&6
8209fi
8210echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8211echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8212else
8213 # Is the header compilable?
8214echo "$as_me:$LINENO: checking $ac_header usability" >&5
8215echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8216cat >conftest.$ac_ext <<_ACEOF
8217#line $LINENO "configure"
8218/* confdefs.h. */
8219_ACEOF
8220cat confdefs.h >>conftest.$ac_ext
8221cat >>conftest.$ac_ext <<_ACEOF
8222/* end confdefs.h. */
8223$ac_includes_default
8224#include <$ac_header>
8225_ACEOF
8226rm -f conftest.$ac_objext
8227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8228 (eval $ac_compile) 2>&5
8229 ac_status=$?
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); } &&
8232 { ac_try='test -s conftest.$ac_objext'
8233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8234 (eval $ac_try) 2>&5
8235 ac_status=$?
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); }; }; then
8238 ac_header_compiler=yes
8239else
8240 echo "$as_me: failed program was:" >&5
8241sed 's/^/| /' conftest.$ac_ext >&5
8242
8243ac_header_compiler=no
8244fi
8245rm -f conftest.$ac_objext conftest.$ac_ext
8246echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8247echo "${ECHO_T}$ac_header_compiler" >&6
8248
8249# Is the header present?
8250echo "$as_me:$LINENO: checking $ac_header presence" >&5
8251echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8252cat >conftest.$ac_ext <<_ACEOF
8253#line $LINENO "configure"
8254/* confdefs.h. */
8255_ACEOF
8256cat confdefs.h >>conftest.$ac_ext
8257cat >>conftest.$ac_ext <<_ACEOF
8258/* end confdefs.h. */
8259#include <$ac_header>
8260_ACEOF
8261if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8262 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8263 ac_status=$?
8264 grep -v '^ *+' conftest.er1 >conftest.err
8265 rm -f conftest.er1
8266 cat conftest.err >&5
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); } >/dev/null; then
8269 if test -s conftest.err; then
8270 ac_cpp_err=$ac_c_preproc_warn_flag
8271 else
8272 ac_cpp_err=
8273 fi
8274else
8275 ac_cpp_err=yes
8276fi
8277if test -z "$ac_cpp_err"; then
8278 ac_header_preproc=yes
8279else
8280 echo "$as_me: failed program was:" >&5
8281sed 's/^/| /' conftest.$ac_ext >&5
8282
8283 ac_header_preproc=no
8284fi
8285rm -f conftest.err conftest.$ac_ext
8286echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8287echo "${ECHO_T}$ac_header_preproc" >&6
8288
8289# So? What about this header?
8290case $ac_header_compiler:$ac_header_preproc in
8291 yes:no )
8292 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8293echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8295echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8296 (
8297 cat <<\_ASBOX
8298## ------------------------------------ ##
8299## Report this to bug-autoconf@gnu.org. ##
8300## ------------------------------------ ##
8301_ASBOX
8302 ) |
8303 sed "s/^/$as_me: WARNING: /" >&2
8304 ;;
8305 no:yes )
8306 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8307echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8308 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8309echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8311echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8312 (
8313 cat <<\_ASBOX
8314## ------------------------------------ ##
8315## Report this to bug-autoconf@gnu.org. ##
8316## ------------------------------------ ##
8317_ASBOX
8318 ) |
8319 sed "s/^/$as_me: WARNING: /" >&2
8320 ;;
8321esac
8322echo "$as_me:$LINENO: checking for $ac_header" >&5
8323echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8324if eval "test \"\${$as_ac_Header+set}\" = set"; then
8325 echo $ECHO_N "(cached) $ECHO_C" >&6
8326else
8327 eval "$as_ac_Header=$ac_header_preproc"
8328fi
8329echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8330echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8331
8332fi
8333if test `eval echo '${'$as_ac_Header'}'` = yes; then
8334 cat >>confdefs.h <<_ACEOF
8335#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8336_ACEOF
8337
8338fi
8339
8340done
8341
8342
8343# Checks for typedefs, structures, and compiler characteristics.
8344echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8345echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8346if test "${ac_cv_c_const+set}" = set; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
8348else
8349 cat >conftest.$ac_ext <<_ACEOF
8350#line $LINENO "configure"
8351/* confdefs.h. */
8352_ACEOF
8353cat confdefs.h >>conftest.$ac_ext
8354cat >>conftest.$ac_ext <<_ACEOF
8355/* end confdefs.h. */
8356
8357int
8358main ()
8359{
8360/* FIXME: Include the comments suggested by Paul. */
8361#ifndef __cplusplus
8362 /* Ultrix mips cc rejects this. */
8363 typedef int charset[2];
8364 const charset x;
8365 /* SunOS 4.1.1 cc rejects this. */
8366 char const *const *ccp;
8367 char **p;
8368 /* NEC SVR4.0.2 mips cc rejects this. */
8369 struct point {int x, y;};
8370 static struct point const zero = {0,0};
8371 /* AIX XL C 1.02.0.0 rejects this.
8372 It does not let you subtract one const X* pointer from another in
8373 an arm of an if-expression whose if-part is not a constant
8374 expression */
8375 const char *g = "string";
8376 ccp = &g + (g ? g-g : 0);
8377 /* HPUX 7.0 cc rejects these. */
8378 ++ccp;
8379 p = (char**) ccp;
8380 ccp = (char const *const *) p;
8381 { /* SCO 3.2v4 cc rejects this. */
8382 char *t;
8383 char const *s = 0 ? (char *) 0 : (char const *) 0;
8384
8385 *t++ = 0;
8386 }
8387 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8388 int x[] = {25, 17};
8389 const int *foo = &x[0];
8390 ++foo;
8391 }
8392 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8393 typedef const int *iptr;
8394 iptr p = 0;
8395 ++p;
8396 }
8397 { /* AIX XL C 1.02.0.0 rejects this saying
8398 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8399 struct s { int j; const int *ap[3]; };
8400 struct s *b; b->j = 5;
8401 }
8402 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8403 const int foo = 10;
8404 }
8405#endif
8406
8407 ;
8408 return 0;
8409}
8410_ACEOF
8411rm -f conftest.$ac_objext
8412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8413 (eval $ac_compile) 2>&5
8414 ac_status=$?
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); } &&
8417 { ac_try='test -s conftest.$ac_objext'
8418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8419 (eval $ac_try) 2>&5
8420 ac_status=$?
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); }; }; then
8423 ac_cv_c_const=yes
8424else
8425 echo "$as_me: failed program was:" >&5
8426sed 's/^/| /' conftest.$ac_ext >&5
8427
8428ac_cv_c_const=no
8429fi
8430rm -f conftest.$ac_objext conftest.$ac_ext
8431fi
8432echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8433echo "${ECHO_T}$ac_cv_c_const" >&6
8434if test $ac_cv_c_const = no; then
8435
8436cat >>confdefs.h <<\_ACEOF
8437#define const
8438_ACEOF
8439
8440fi
8441
8442echo "$as_me:$LINENO: checking for size_t" >&5
8443echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8444if test "${ac_cv_type_size_t+set}" = set; then
8445 echo $ECHO_N "(cached) $ECHO_C" >&6
8446else
8447 cat >conftest.$ac_ext <<_ACEOF
8448#line $LINENO "configure"
8449/* confdefs.h. */
8450_ACEOF
8451cat confdefs.h >>conftest.$ac_ext
8452cat >>conftest.$ac_ext <<_ACEOF
8453/* end confdefs.h. */
8454$ac_includes_default
8455int
8456main ()
8457{
8458if ((size_t *) 0)
8459 return 0;
8460if (sizeof (size_t))
8461 return 0;
8462 ;
8463 return 0;
8464}
8465_ACEOF
8466rm -f conftest.$ac_objext
8467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8468 (eval $ac_compile) 2>&5
8469 ac_status=$?
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); } &&
8472 { ac_try='test -s conftest.$ac_objext'
8473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8474 (eval $ac_try) 2>&5
8475 ac_status=$?
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); }; }; then
8478 ac_cv_type_size_t=yes
8479else
8480 echo "$as_me: failed program was:" >&5
8481sed 's/^/| /' conftest.$ac_ext >&5
8482
8483ac_cv_type_size_t=no
8484fi
8485rm -f conftest.$ac_objext conftest.$ac_ext
8486fi
8487echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8488echo "${ECHO_T}$ac_cv_type_size_t" >&6
8489if test $ac_cv_type_size_t = yes; then
8490 :
8491else
8492
8493cat >>confdefs.h <<_ACEOF
8494#define size_t unsigned
8495_ACEOF
8496
8497fi
8498
8499echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8500echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8501if test "${ac_cv_struct_tm+set}" = set; then
8502 echo $ECHO_N "(cached) $ECHO_C" >&6
8503else
8504 cat >conftest.$ac_ext <<_ACEOF
8505#line $LINENO "configure"
8506/* confdefs.h. */
8507_ACEOF
8508cat confdefs.h >>conftest.$ac_ext
8509cat >>conftest.$ac_ext <<_ACEOF
8510/* end confdefs.h. */
8511#include <sys/types.h>
8512#include <time.h>
8513
8514int
8515main ()
8516{
8517struct tm *tp; tp->tm_sec;
8518 ;
8519 return 0;
8520}
8521_ACEOF
8522rm -f conftest.$ac_objext
8523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8524 (eval $ac_compile) 2>&5
8525 ac_status=$?
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); } &&
8528 { ac_try='test -s conftest.$ac_objext'
8529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530 (eval $ac_try) 2>&5
8531 ac_status=$?
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); }; }; then
8534 ac_cv_struct_tm=time.h
8535else
8536 echo "$as_me: failed program was:" >&5
8537sed 's/^/| /' conftest.$ac_ext >&5
8538
8539ac_cv_struct_tm=sys/time.h
8540fi
8541rm -f conftest.$ac_objext conftest.$ac_ext
8542fi
8543echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8544echo "${ECHO_T}$ac_cv_struct_tm" >&6
8545if test $ac_cv_struct_tm = sys/time.h; then
8546
8547cat >>confdefs.h <<\_ACEOF
8548#define TM_IN_SYS_TIME 1
8549_ACEOF
8550
8551fi
8552
8553
8554# Checks for library functions.
8555
8556for ac_header in stdlib.h
8557do
8558as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8559if eval "test \"\${$as_ac_Header+set}\" = set"; then
8560 echo "$as_me:$LINENO: checking for $ac_header" >&5
8561echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8562if eval "test \"\${$as_ac_Header+set}\" = set"; then
8563 echo $ECHO_N "(cached) $ECHO_C" >&6
8564fi
8565echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8566echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8567else
8568 # Is the header compilable?
8569echo "$as_me:$LINENO: checking $ac_header usability" >&5
8570echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8571cat >conftest.$ac_ext <<_ACEOF
8572#line $LINENO "configure"
8573/* confdefs.h. */
8574_ACEOF
8575cat confdefs.h >>conftest.$ac_ext
8576cat >>conftest.$ac_ext <<_ACEOF
8577/* end confdefs.h. */
8578$ac_includes_default
8579#include <$ac_header>
8580_ACEOF
8581rm -f conftest.$ac_objext
8582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8583 (eval $ac_compile) 2>&5
8584 ac_status=$?
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); } &&
8587 { ac_try='test -s conftest.$ac_objext'
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_header_compiler=yes
8594else
8595 echo "$as_me: failed program was:" >&5
8596sed 's/^/| /' conftest.$ac_ext >&5
8597
8598ac_header_compiler=no
8599fi
8600rm -f conftest.$ac_objext conftest.$ac_ext
8601echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8602echo "${ECHO_T}$ac_header_compiler" >&6
8603
8604# Is the header present?
8605echo "$as_me:$LINENO: checking $ac_header presence" >&5
8606echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8607cat >conftest.$ac_ext <<_ACEOF
8608#line $LINENO "configure"
8609/* confdefs.h. */
8610_ACEOF
8611cat confdefs.h >>conftest.$ac_ext
8612cat >>conftest.$ac_ext <<_ACEOF
8613/* end confdefs.h. */
8614#include <$ac_header>
8615_ACEOF
8616if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8617 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8618 ac_status=$?
8619 grep -v '^ *+' conftest.er1 >conftest.err
8620 rm -f conftest.er1
8621 cat conftest.err >&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); } >/dev/null; then
8624 if test -s conftest.err; then
8625 ac_cpp_err=$ac_c_preproc_warn_flag
8626 else
8627 ac_cpp_err=
8628 fi
8629else
8630 ac_cpp_err=yes
8631fi
8632if test -z "$ac_cpp_err"; then
8633 ac_header_preproc=yes
8634else
8635 echo "$as_me: failed program was:" >&5
8636sed 's/^/| /' conftest.$ac_ext >&5
8637
8638 ac_header_preproc=no
8639fi
8640rm -f conftest.err conftest.$ac_ext
8641echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8642echo "${ECHO_T}$ac_header_preproc" >&6
8643
8644# So? What about this header?
8645case $ac_header_compiler:$ac_header_preproc in
8646 yes:no )
8647 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8648echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8650echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8651 (
8652 cat <<\_ASBOX
8653## ------------------------------------ ##
8654## Report this to bug-autoconf@gnu.org. ##
8655## ------------------------------------ ##
8656_ASBOX
8657 ) |
8658 sed "s/^/$as_me: WARNING: /" >&2
8659 ;;
8660 no:yes )
8661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8662echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8664echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8666echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8667 (
8668 cat <<\_ASBOX
8669## ------------------------------------ ##
8670## Report this to bug-autoconf@gnu.org. ##
8671## ------------------------------------ ##
8672_ASBOX
8673 ) |
8674 sed "s/^/$as_me: WARNING: /" >&2
8675 ;;
8676esac
8677echo "$as_me:$LINENO: checking for $ac_header" >&5
8678echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8679if eval "test \"\${$as_ac_Header+set}\" = set"; then
8680 echo $ECHO_N "(cached) $ECHO_C" >&6
8681else
8682 eval "$as_ac_Header=$ac_header_preproc"
8683fi
8684echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8685echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8686
8687fi
8688if test `eval echo '${'$as_ac_Header'}'` = yes; then
8689 cat >>confdefs.h <<_ACEOF
8690#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8691_ACEOF
8692
8693fi
8694
8695done
8696
8697echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
8698echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
8699if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
8700 echo $ECHO_N "(cached) $ECHO_C" >&6
8701else
8702 if test "$cross_compiling" = yes; then
8703 ac_cv_func_malloc_0_nonnull=no
8704else
8705 cat >conftest.$ac_ext <<_ACEOF
8706#line $LINENO "configure"
8707/* confdefs.h. */
8708_ACEOF
8709cat confdefs.h >>conftest.$ac_ext
8710cat >>conftest.$ac_ext <<_ACEOF
8711/* end confdefs.h. */
8712#if STDC_HEADERS || HAVE_STDLIB_H
8713# include <stdlib.h>
8714#else
8715char *malloc ();
8716#endif
8717
8718int
8719main ()
8720{
8721exit (malloc (0) ? 0 : 1);
8722 ;
8723 return 0;
8724}
8725_ACEOF
8726rm -f conftest$ac_exeext
8727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8728 (eval $ac_link) 2>&5
8729 ac_status=$?
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8733 (eval $ac_try) 2>&5
8734 ac_status=$?
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); }; }; then
8737 ac_cv_func_malloc_0_nonnull=yes
8738else
8739 echo "$as_me: program exited with status $ac_status" >&5
8740echo "$as_me: failed program was:" >&5
8741sed 's/^/| /' conftest.$ac_ext >&5
8742
8743( exit $ac_status )
8744ac_cv_func_malloc_0_nonnull=no
8745fi
8746rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8747fi
8748fi
8749echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
8750echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
8751if test $ac_cv_func_malloc_0_nonnull = yes; then
8752
8753cat >>confdefs.h <<\_ACEOF
8754#define HAVE_MALLOC 1
8755_ACEOF
8756
8757else
8758 cat >>confdefs.h <<\_ACEOF
8759#define HAVE_MALLOC 0
8760_ACEOF
8761
8762 LIBOBJS="$LIBOBJS malloc.$ac_objext"
8763
8764cat >>confdefs.h <<\_ACEOF
8765#define malloc rpl_malloc
8766_ACEOF
8767
8768fi
8769
8770
8771
8772echo "$as_me:$LINENO: checking for working strtod" >&5
8773echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
8774if test "${ac_cv_func_strtod+set}" = set; then
8775 echo $ECHO_N "(cached) $ECHO_C" >&6
8776else
8777 if test "$cross_compiling" = yes; then
8778 ac_cv_func_strtod=no
8779else
8780 cat >conftest.$ac_ext <<_ACEOF
8781#line $LINENO "configure"
8782/* confdefs.h. */
8783_ACEOF
8784cat confdefs.h >>conftest.$ac_ext
8785cat >>conftest.$ac_ext <<_ACEOF
8786/* end confdefs.h. */
8787
8788double strtod ();
8789int
8790main()
8791{
8792 {
8793 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8794 char *string = " +69";
8795 char *term;
8796 double value;
8797 value = strtod (string, &term);
8798 if (value != 69 || term != (string + 4))
8799 exit (1);
8800 }
8801
8802 {
8803 /* Under Solaris 2.4, strtod returns the wrong value for the
8804 terminating character under some conditions. */
8805 char *string = "NaN";
8806 char *term;
8807 strtod (string, &term);
8808 if (term != string && *(term - 1) == 0)
8809 exit (1);
8810 }
8811 exit (0);
8812}
8813
8814_ACEOF
8815rm -f conftest$ac_exeext
8816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8817 (eval $ac_link) 2>&5
8818 ac_status=$?
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8822 (eval $ac_try) 2>&5
8823 ac_status=$?
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); }; }; then
8826 ac_cv_func_strtod=yes
8827else
8828 echo "$as_me: program exited with status $ac_status" >&5
8829echo "$as_me: failed program was:" >&5
8830sed 's/^/| /' conftest.$ac_ext >&5
8831
8832( exit $ac_status )
8833ac_cv_func_strtod=no
8834fi
8835rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8836fi
8837fi
8838echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8839echo "${ECHO_T}$ac_cv_func_strtod" >&6
8840if test $ac_cv_func_strtod = no; then
8841 LIBOBJS="$LIBOBJS strtod.$ac_objext"
8842echo "$as_me:$LINENO: checking for pow" >&5
8843echo $ECHO_N "checking for pow... $ECHO_C" >&6
8844if test "${ac_cv_func_pow+set}" = set; then
8845 echo $ECHO_N "(cached) $ECHO_C" >&6
8846else
8847 cat >conftest.$ac_ext <<_ACEOF
8848#line $LINENO "configure"
8849/* confdefs.h. */
8850_ACEOF
8851cat confdefs.h >>conftest.$ac_ext
8852cat >>conftest.$ac_ext <<_ACEOF
8853/* end confdefs.h. */
8854/* System header to define __stub macros and hopefully few prototypes,
8855 which can conflict with char pow (); below.
8856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8857 <limits.h> exists even on freestanding compilers. */
8858#ifdef __STDC__
8859# include <limits.h>
8860#else
8861# include <assert.h>
8862#endif
8863/* Override any gcc2 internal prototype to avoid an error. */
8864#ifdef __cplusplus
8865extern "C"
8866{
8867#endif
8868/* We use char because int might match the return type of a gcc2
8869 builtin and then its argument prototype would still apply. */
8870char pow ();
8871/* The GNU C library defines this for functions which it implements
8872 to always fail with ENOSYS. Some functions are actually named
8873 something starting with __ and the normal name is an alias. */
8874#if defined (__stub_pow) || defined (__stub___pow)
8875choke me
8876#else
8877char (*f) () = pow;
8878#endif
8879#ifdef __cplusplus
8880}
8881#endif
8882
8883int
8884main ()
8885{
8886return f != pow;
8887 ;
8888 return 0;
8889}
8890_ACEOF
8891rm -f conftest.$ac_objext conftest$ac_exeext
8892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8893 (eval $ac_link) 2>&5
8894 ac_status=$?
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); } &&
8897 { ac_try='test -s conftest$ac_exeext'
8898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8899 (eval $ac_try) 2>&5
8900 ac_status=$?
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); }; }; then
8903 ac_cv_func_pow=yes
8904else
8905 echo "$as_me: failed program was:" >&5
8906sed 's/^/| /' conftest.$ac_ext >&5
8907
8908ac_cv_func_pow=no
8909fi
8910rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8911fi
8912echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8913echo "${ECHO_T}$ac_cv_func_pow" >&6
8914
8915if test $ac_cv_func_pow = no; then
8916 echo "$as_me:$LINENO: checking for pow in -lm" >&5
8917echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
8918if test "${ac_cv_lib_m_pow+set}" = set; then
8919 echo $ECHO_N "(cached) $ECHO_C" >&6
8920else
8921 ac_check_lib_save_LIBS=$LIBS
8922LIBS="-lm $LIBS"
8923cat >conftest.$ac_ext <<_ACEOF
8924#line $LINENO "configure"
8925/* confdefs.h. */
8926_ACEOF
8927cat confdefs.h >>conftest.$ac_ext
8928cat >>conftest.$ac_ext <<_ACEOF
8929/* end confdefs.h. */
8930
8931/* Override any gcc2 internal prototype to avoid an error. */
8932#ifdef __cplusplus
8933extern "C"
8934#endif
8935/* We use char because int might match the return type of a gcc2
8936 builtin and then its argument prototype would still apply. */
8937char pow ();
8938int
8939main ()
8940{
8941pow ();
8942 ;
8943 return 0;
8944}
8945_ACEOF
8946rm -f conftest.$ac_objext conftest$ac_exeext
8947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8948 (eval $ac_link) 2>&5
8949 ac_status=$?
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); } &&
8952 { ac_try='test -s conftest$ac_exeext'
8953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8954 (eval $ac_try) 2>&5
8955 ac_status=$?
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); }; }; then
8958 ac_cv_lib_m_pow=yes
8959else
8960 echo "$as_me: failed program was:" >&5
8961sed 's/^/| /' conftest.$ac_ext >&5
8962
8963ac_cv_lib_m_pow=no
8964fi
8965rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8966LIBS=$ac_check_lib_save_LIBS
8967fi
8968echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8969echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
8970if test $ac_cv_lib_m_pow = yes; then
8971 POW_LIB=-lm
8972else
8973 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8974echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
8975fi
8976
8977fi
8978
8979fi
8980
8981
8982
8983
8984
8985for ac_func in memset pow strrchr
8986do
8987as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8988echo "$as_me:$LINENO: checking for $ac_func" >&5
8989echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8990if eval "test \"\${$as_ac_var+set}\" = set"; then
8991 echo $ECHO_N "(cached) $ECHO_C" >&6
8992else
8993 cat >conftest.$ac_ext <<_ACEOF
8994#line $LINENO "configure"
8995/* confdefs.h. */
8996_ACEOF
8997cat confdefs.h >>conftest.$ac_ext
8998cat >>conftest.$ac_ext <<_ACEOF
8999/* end confdefs.h. */
9000/* System header to define __stub macros and hopefully few prototypes,
9001 which can conflict with char $ac_func (); below.
9002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9003 <limits.h> exists even on freestanding compilers. */
9004#ifdef __STDC__
9005# include <limits.h>
9006#else
9007# include <assert.h>
9008#endif
9009/* Override any gcc2 internal prototype to avoid an error. */
9010#ifdef __cplusplus
9011extern "C"
9012{
9013#endif
9014/* We use char because int might match the return type of a gcc2
9015 builtin and then its argument prototype would still apply. */
9016char $ac_func ();
9017/* The GNU C library defines this for functions which it implements
9018 to always fail with ENOSYS. Some functions are actually named
9019 something starting with __ and the normal name is an alias. */
9020#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9021choke me
9022#else
9023char (*f) () = $ac_func;
9024#endif
9025#ifdef __cplusplus
9026}
9027#endif
9028
9029int
9030main ()
9031{
9032return f != $ac_func;
9033 ;
9034 return 0;
9035}
9036_ACEOF
9037rm -f conftest.$ac_objext conftest$ac_exeext
9038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9039 (eval $ac_link) 2>&5
9040 ac_status=$?
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); } &&
9043 { ac_try='test -s conftest$ac_exeext'
9044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9045 (eval $ac_try) 2>&5
9046 ac_status=$?
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); }; }; then
9049 eval "$as_ac_var=yes"
9050else
9051 echo "$as_me: failed program was:" >&5
9052sed 's/^/| /' conftest.$ac_ext >&5
9053
9054eval "$as_ac_var=no"
9055fi
9056rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9057fi
9058echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9059echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9060if test `eval echo '${'$as_ac_var'}'` = yes; then
9061 cat >>confdefs.h <<_ACEOF
9062#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9063_ACEOF
9064
9065fi
9066done
9067
9068echo "$as_me:$LINENO: checking for sqrt" >&5
9069echo $ECHO_N "checking for sqrt... $ECHO_C" >&6
9070if test "${ac_cv_func_sqrt+set}" = set; then
9071 echo $ECHO_N "(cached) $ECHO_C" >&6
9072else
9073 cat >conftest.$ac_ext <<_ACEOF
9074#line $LINENO "configure"
9075/* confdefs.h. */
9076_ACEOF
9077cat confdefs.h >>conftest.$ac_ext
9078cat >>conftest.$ac_ext <<_ACEOF
9079/* end confdefs.h. */
9080/* System header to define __stub macros and hopefully few prototypes,
9081 which can conflict with char sqrt (); below.
9082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9083 <limits.h> exists even on freestanding compilers. */
9084#ifdef __STDC__
9085# include <limits.h>
9086#else
9087# include <assert.h>
9088#endif
9089/* Override any gcc2 internal prototype to avoid an error. */
9090#ifdef __cplusplus
9091extern "C"
9092{
9093#endif
9094/* We use char because int might match the return type of a gcc2
9095 builtin and then its argument prototype would still apply. */
9096char sqrt ();
9097/* The GNU C library defines this for functions which it implements
9098 to always fail with ENOSYS. Some functions are actually named
9099 something starting with __ and the normal name is an alias. */
9100#if defined (__stub_sqrt) || defined (__stub___sqrt)
9101choke me
9102#else
9103char (*f) () = sqrt;
9104#endif
9105#ifdef __cplusplus
9106}
9107#endif
9108
9109int
9110main ()
9111{
9112return f != sqrt;
9113 ;
9114 return 0;
9115}
9116_ACEOF
9117rm -f conftest.$ac_objext conftest$ac_exeext
9118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9119 (eval $ac_link) 2>&5
9120 ac_status=$?
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); } &&
9123 { ac_try='test -s conftest$ac_exeext'
9124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9125 (eval $ac_try) 2>&5
9126 ac_status=$?
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 (exit $ac_status); }; }; then
9129 ac_cv_func_sqrt=yes
9130else
9131 echo "$as_me: failed program was:" >&5
9132sed 's/^/| /' conftest.$ac_ext >&5
9133
9134ac_cv_func_sqrt=no
9135fi
9136rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9137fi
9138echo "$as_me:$LINENO: result: $ac_cv_func_sqrt" >&5
9139echo "${ECHO_T}$ac_cv_func_sqrt" >&6
9140if test $ac_cv_func_sqrt = yes; then
9141 :
9142else
9143
9144echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
9145echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
9146if test "${ac_cv_lib_m_sqrt+set}" = set; then
9147 echo $ECHO_N "(cached) $ECHO_C" >&6
9148else
9149 ac_check_lib_save_LIBS=$LIBS
9150LIBS="-lm $LIBS"
9151cat >conftest.$ac_ext <<_ACEOF
9152#line $LINENO "configure"
9153/* confdefs.h. */
9154_ACEOF
9155cat confdefs.h >>conftest.$ac_ext
9156cat >>conftest.$ac_ext <<_ACEOF
9157/* end confdefs.h. */
9158
9159/* Override any gcc2 internal prototype to avoid an error. */
9160#ifdef __cplusplus
9161extern "C"
9162#endif
9163/* We use char because int might match the return type of a gcc2
9164 builtin and then its argument prototype would still apply. */
9165char sqrt ();
9166int
9167main ()
9168{
9169sqrt ();
9170 ;
9171 return 0;
9172}
9173_ACEOF
9174rm -f conftest.$ac_objext conftest$ac_exeext
9175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9176 (eval $ac_link) 2>&5
9177 ac_status=$?
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); } &&
9180 { ac_try='test -s conftest$ac_exeext'
9181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9182 (eval $ac_try) 2>&5
9183 ac_status=$?
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); }; }; then
9186 ac_cv_lib_m_sqrt=yes
9187else
9188 echo "$as_me: failed program was:" >&5
9189sed 's/^/| /' conftest.$ac_ext >&5
9190
9191ac_cv_lib_m_sqrt=no
9192fi
9193rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9194LIBS=$ac_check_lib_save_LIBS
9195fi
9196echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
9197echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
9198if test $ac_cv_lib_m_sqrt = yes; then
9199 cat >>confdefs.h <<_ACEOF
9200#define HAVE_LIBM 1
9201_ACEOF
9202
9203 LIBS="-lm $LIBS"
9204
9205else
9206 cannot find sqrt
9207fi
9208
9209fi
9210
9211
9212echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
9213echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
9214if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
9215 echo $ECHO_N "(cached) $ECHO_C" >&6
9216else
9217 ac_check_lib_save_LIBS=$LIBS
9218LIBS="-lz $LIBS"
9219cat >conftest.$ac_ext <<_ACEOF
9220#line $LINENO "configure"
9221/* confdefs.h. */
9222_ACEOF
9223cat confdefs.h >>conftest.$ac_ext
9224cat >>conftest.$ac_ext <<_ACEOF
9225/* end confdefs.h. */
9226
9227/* Override any gcc2 internal prototype to avoid an error. */
9228#ifdef __cplusplus
9229extern "C"
9230#endif
9231/* We use char because int might match the return type of a gcc2
9232 builtin and then its argument prototype would still apply. */
9233char zlibVersion ();
9234int
9235main ()
9236{
9237zlibVersion ();
9238 ;
9239 return 0;
9240}
9241_ACEOF
9242rm -f conftest.$ac_objext conftest$ac_exeext
9243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9244 (eval $ac_link) 2>&5
9245 ac_status=$?
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); } &&
9248 { ac_try='test -s conftest$ac_exeext'
9249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9250 (eval $ac_try) 2>&5
9251 ac_status=$?
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); }; }; then
9254 ac_cv_lib_z_zlibVersion=yes
9255else
9256 echo "$as_me: failed program was:" >&5
9257sed 's/^/| /' conftest.$ac_ext >&5
9258
9259ac_cv_lib_z_zlibVersion=no
9260fi
9261rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9262LIBS=$ac_check_lib_save_LIBS
9263fi
9264echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
9265echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
9266if test $ac_cv_lib_z_zlibVersion = yes; then
9267 cat >>confdefs.h <<_ACEOF
9268#define HAVE_LIBZ 1
9269_ACEOF
9270
9271 LIBS="-lz $LIBS"
9272
9273else
9274 { { echo "$as_me:$LINENO: error: ZLib not installed" >&5
9275echo "$as_me: error: ZLib not installed" >&2;}
9276 { (exit 1); exit 1; }; }
9277fi
9278
9279
9280
9281# Check whether --with-pkgconfigdir or --without-pkgconfigdir was given.
9282if test "${with_pkgconfigdir+set}" = set; then
9283 withval="$with_pkgconfigdir"
9284 PKGCONFIGDIR=${withval}
9285else
9286 PKGCONFIGDIR='${prefix}/lib/pkgconfig'
9287fi;
9288
9289echo "$as_me:$LINENO: checking pkgconfig directory" >&5
9290echo $ECHO_N "checking pkgconfig directory... $ECHO_C" >&6
9291echo "$as_me:$LINENO: result: $PKGCONFIGDIR" >&5
9292echo "${ECHO_T}$PKGCONFIGDIR" >&6
9293
9294
9295LIBPNG12_VERSION_INFO=0:0:0
9296
9297LIBPNG3_VERSION_INFO=3:0:0
9298
9299
9300 ac_config_files="$ac_config_files Makefile"
9301
9302cat >confcache <<\_ACEOF
9303# This file is a shell script that caches the results of configure
9304# tests run on this system so they can be shared between configure
9305# scripts and configure runs, see configure's option --config-cache.
9306# It is not useful on other systems. If it contains results you don't
9307# want to keep, you may remove or edit it.
9308#
9309# config.status only pays attention to the cache file if you give it
9310# the --recheck option to rerun configure.
9311#
9312# `ac_cv_env_foo' variables (set or unset) will be overridden when
9313# loading this file, other *unset* `ac_cv_foo' will be assigned the
9314# following values.
9315
9316_ACEOF
9317
9318# The following way of writing the cache mishandles newlines in values,
9319# but we know of no workaround that is simple, portable, and efficient.
9320# So, don't put newlines in cache variables' values.
9321# Ultrix sh set writes to stderr and can't be redirected directly,
9322# and sets the high bit in the cache file unless we assign to the vars.
9323{
9324 (set) 2>&1 |
9325 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9326 *ac_space=\ *)
9327 # `set' does not quote correctly, so add quotes (double-quote
9328 # substitution turns \\\\ into \\, and sed turns \\ into \).
9329 sed -n \
9330 "s/'/'\\\\''/g;
9331 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9332 ;;
9333 *)
9334 # `set' quotes correctly as required by POSIX, so do not add quotes.
9335 sed -n \
9336 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9337 ;;
9338 esac;
9339} |
9340 sed '
9341 t clear
9342 : clear
9343 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9344 t end
9345 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9346 : end' >>confcache
9347if diff $cache_file confcache >/dev/null 2>&1; then :; else
9348 if test -w $cache_file; then
9349 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9350 cat confcache >$cache_file
9351 else
9352 echo "not updating unwritable cache $cache_file"
9353 fi
9354fi
9355rm -f confcache
9356
9357test "x$prefix" = xNONE && prefix=$ac_default_prefix
9358# Let make expand exec_prefix.
9359test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9360
9361# VPATH may cause trouble with some makes, so we remove $(srcdir),
9362# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9363# trailing colons and then remove the whole line if VPATH becomes empty
9364# (actually we leave an empty line to preserve line numbers).
9365if test "x$srcdir" = x.; then
9366 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9367s/:*\$(srcdir):*/:/;
9368s/:*\${srcdir}:*/:/;
9369s/:*@srcdir@:*/:/;
9370s/^\([^=]*=[ ]*\):*/\1/;
9371s/:*$//;
9372s/^[^=]*=[ ]*$//;
9373}'
9374fi
9375
9376DEFS=-DHAVE_CONFIG_H
9377
9378ac_libobjs=
9379ac_ltlibobjs=
9380for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9381 # 1. Remove the extension, and $U if already installed.
9382 ac_i=`echo "$ac_i" |
9383 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9384 # 2. Add them.
9385 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9386 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9387done
9388LIBOBJS=$ac_libobjs
9389
9390LTLIBOBJS=$ac_ltlibobjs
9391
9392
9393if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9394 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9395Usually this means the macro was only invoked conditionally." >&5
9396echo "$as_me: error: conditional \"AMDEP\" was never defined.
9397Usually this means the macro was only invoked conditionally." >&2;}
9398 { (exit 1); exit 1; }; }
9399fi
9400if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9401 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9402Usually this means the macro was only invoked conditionally." >&5
9403echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9404Usually this means the macro was only invoked conditionally." >&2;}
9405 { (exit 1); exit 1; }; }
9406fi
9407
9408: ${CONFIG_STATUS=./config.status}
9409ac_clean_files_save=$ac_clean_files
9410ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9411{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9412echo "$as_me: creating $CONFIG_STATUS" >&6;}
9413cat >$CONFIG_STATUS <<_ACEOF
9414#! $SHELL
9415# Generated by $as_me.
9416# Run this file to recreate the current configuration.
9417# Compiler output produced by configure, useful for debugging
9418# configure, is in config.log if it exists.
9419
9420debug=false
9421ac_cs_recheck=false
9422ac_cs_silent=false
9423SHELL=\${CONFIG_SHELL-$SHELL}
9424_ACEOF
9425
9426cat >>$CONFIG_STATUS <<\_ACEOF
9427## --------------------- ##
9428## M4sh Initialization. ##
9429## --------------------- ##
9430
9431# Be Bourne compatible
9432if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9433 emulate sh
9434 NULLCMD=:
9435 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9436 # is contrary to our usage. Disable this feature.
9437 alias -g '${1+"$@"}'='"$@"'
9438elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9439 set -o posix
9440fi
9441
9442# Support unset when possible.
9443if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9444 as_unset=unset
9445else
9446 as_unset=false
9447fi
9448
9449
9450# Work around bugs in pre-3.0 UWIN ksh.
9451$as_unset ENV MAIL MAILPATH
9452PS1='$ '
9453PS2='> '
9454PS4='+ '
9455
9456# NLS nuisances.
9457for as_var in \
9458 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9459 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9460 LC_TELEPHONE LC_TIME
9461do
9462 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
9463 eval $as_var=C; export $as_var
9464 else
9465 $as_unset $as_var
9466 fi
9467done
9468
9469# Required to use basename.
9470if expr a : '\(a\)' >/dev/null 2>&1; then
9471 as_expr=expr
9472else
9473 as_expr=false
9474fi
9475
9476if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9477 as_basename=basename
9478else
9479 as_basename=false
9480fi
9481
9482
9483# Name of the executable.
9484as_me=`$as_basename "$0" ||
9485$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9486 X"$0" : 'X\(//\)$' \| \
9487 X"$0" : 'X\(/\)$' \| \
9488 . : '\(.\)' 2>/dev/null ||
9489echo X/"$0" |
9490 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9491 /^X\/\(\/\/\)$/{ s//\1/; q; }
9492 /^X\/\(\/\).*/{ s//\1/; q; }
9493 s/.*/./; q'`
9494
9495
9496# PATH needs CR, and LINENO needs CR and PATH.
9497# Avoid depending upon Character Ranges.
9498as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9499as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9500as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9501as_cr_digits='0123456789'
9502as_cr_alnum=$as_cr_Letters$as_cr_digits
9503
9504# The user is always right.
9505if test "${PATH_SEPARATOR+set}" != set; then
9506 echo "#! /bin/sh" >conf$$.sh
9507 echo "exit 0" >>conf$$.sh
9508 chmod +x conf$$.sh
9509 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9510 PATH_SEPARATOR=';'
9511 else
9512 PATH_SEPARATOR=:
9513 fi
9514 rm -f conf$$.sh
9515fi
9516
9517
9518 as_lineno_1=$LINENO
9519 as_lineno_2=$LINENO
9520 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9521 test "x$as_lineno_1" != "x$as_lineno_2" &&
9522 test "x$as_lineno_3" = "x$as_lineno_2" || {
9523 # Find who we are. Look in the path if we contain no path at all
9524 # relative or not.
9525 case $0 in
9526 *[\\/]* ) as_myself=$0 ;;
9527 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9528for as_dir in $PATH
9529do
9530 IFS=$as_save_IFS
9531 test -z "$as_dir" && as_dir=.
9532 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9533done
9534
9535 ;;
9536 esac
9537 # We did not find ourselves, most probably we were run as `sh COMMAND'
9538 # in which case we are not to be found in the path.
9539 if test "x$as_myself" = x; then
9540 as_myself=$0
9541 fi
9542 if test ! -f "$as_myself"; then
9543 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9544echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9545 { (exit 1); exit 1; }; }
9546 fi
9547 case $CONFIG_SHELL in
9548 '')
9549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9550for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9551do
9552 IFS=$as_save_IFS
9553 test -z "$as_dir" && as_dir=.
9554 for as_base in sh bash ksh sh5; do
9555 case $as_dir in
9556 /*)
9557 if ("$as_dir/$as_base" -c '
9558 as_lineno_1=$LINENO
9559 as_lineno_2=$LINENO
9560 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9561 test "x$as_lineno_1" != "x$as_lineno_2" &&
9562 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9563 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9564 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9565 CONFIG_SHELL=$as_dir/$as_base
9566 export CONFIG_SHELL
9567 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9568 fi;;
9569 esac
9570 done
9571done
9572;;
9573 esac
9574
9575 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9576 # uniformly replaced by the line number. The first 'sed' inserts a
9577 # line-number line before each line; the second 'sed' does the real
9578 # work. The second script uses 'N' to pair each line-number line
9579 # with the numbered line, and appends trailing '-' during
9580 # substitution so that $LINENO is not a special case at line end.
9581 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9582 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9583 sed '=' <$as_myself |
9584 sed '
9585 N
9586 s,$,-,
9587 : loop
9588 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9589 t loop
9590 s,-$,,
9591 s,^['$as_cr_digits']*\n,,
9592 ' >$as_me.lineno &&
9593 chmod +x $as_me.lineno ||
9594 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9595echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9596 { (exit 1); exit 1; }; }
9597
9598 # Don't try to exec as it changes $[0], causing all sort of problems
9599 # (the dirname of $[0] is not the place where we might find the
9600 # original and so on. Autoconf is especially sensible to this).
9601 . ./$as_me.lineno
9602 # Exit status is that of the last command.
9603 exit
9604}
9605
9606
9607case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9608 *c*,-n*) ECHO_N= ECHO_C='
9609' ECHO_T=' ' ;;
9610 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9611 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9612esac
9613
9614if expr a : '\(a\)' >/dev/null 2>&1; then
9615 as_expr=expr
9616else
9617 as_expr=false
9618fi
9619
9620rm -f conf$$ conf$$.exe conf$$.file
9621echo >conf$$.file
9622if ln -s conf$$.file conf$$ 2>/dev/null; then
9623 # We could just check for DJGPP; but this test a) works b) is more generic
9624 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9625 if test -f conf$$.exe; then
9626 # Don't use ln at all; we don't have any links
9627 as_ln_s='cp -p'
9628 else
9629 as_ln_s='ln -s'
9630 fi
9631elif ln conf$$.file conf$$ 2>/dev/null; then
9632 as_ln_s=ln
9633else
9634 as_ln_s='cp -p'
9635fi
9636rm -f conf$$ conf$$.exe conf$$.file
9637
9638if mkdir -p . 2>/dev/null; then
9639 as_mkdir_p=:
9640else
9641 as_mkdir_p=false
9642fi
9643
9644as_executable_p="test -f"
9645
9646# Sed expression to map a string onto a valid CPP name.
9647as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9648
9649# Sed expression to map a string onto a valid variable name.
9650as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9651
9652
9653# IFS
9654# We need space, tab and new line, in precisely that order.
9655as_nl='
9656'
9657IFS=" $as_nl"
9658
9659# CDPATH.
9660$as_unset CDPATH
9661
9662exec 6>&1
9663
9664# Open the log real soon, to keep \$[0] and so on meaningful, and to
9665# report actual input values of CONFIG_FILES etc. instead of their
9666# values after options handling. Logging --version etc. is OK.
9667exec 5>>config.log
9668{
9669 echo
9670 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9671## Running $as_me. ##
9672_ASBOX
9673} >&5
9674cat >&5 <<_CSEOF
9675
Glenn Randers-Pehrson7b34df32006-02-24 06:30:16 -06009676This file was extended by libpng $as_me 1.2.9beta3, which was
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009677generated by GNU Autoconf 2.57. Invocation command line was
9678
9679 CONFIG_FILES = $CONFIG_FILES
9680 CONFIG_HEADERS = $CONFIG_HEADERS
9681 CONFIG_LINKS = $CONFIG_LINKS
9682 CONFIG_COMMANDS = $CONFIG_COMMANDS
9683 $ $0 $@
9684
9685_CSEOF
9686echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9687echo >&5
9688_ACEOF
9689
9690# Files that config.status was made for.
9691if test -n "$ac_config_files"; then
9692 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9693fi
9694
9695if test -n "$ac_config_headers"; then
9696 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9697fi
9698
9699if test -n "$ac_config_links"; then
9700 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9701fi
9702
9703if test -n "$ac_config_commands"; then
9704 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9705fi
9706
9707cat >>$CONFIG_STATUS <<\_ACEOF
9708
9709ac_cs_usage="\
9710\`$as_me' instantiates files from templates according to the
9711current configuration.
9712
9713Usage: $0 [OPTIONS] [FILE]...
9714
9715 -h, --help print this help, then exit
9716 -V, --version print version number, then exit
9717 -q, --quiet do not print progress messages
9718 -d, --debug don't remove temporary files
9719 --recheck update $as_me by reconfiguring in the same conditions
9720 --file=FILE[:TEMPLATE]
9721 instantiate the configuration file FILE
9722 --header=FILE[:TEMPLATE]
9723 instantiate the configuration header FILE
9724
9725Configuration files:
9726$config_files
9727
9728Configuration headers:
9729$config_headers
9730
9731Configuration commands:
9732$config_commands
9733
9734Report bugs to <bug-autoconf@gnu.org>."
9735_ACEOF
9736
9737cat >>$CONFIG_STATUS <<_ACEOF
9738ac_cs_version="\\
Glenn Randers-Pehrson7b34df32006-02-24 06:30:16 -06009739libpng config.status 1.2.9beta3
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009740configured by $0, generated by GNU Autoconf 2.57,
9741 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9742
9743Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9744Free Software Foundation, Inc.
9745This config.status script is free software; the Free Software Foundation
9746gives unlimited permission to copy, distribute and modify it."
9747srcdir=$srcdir
9748INSTALL="$INSTALL"
9749_ACEOF
9750
9751cat >>$CONFIG_STATUS <<\_ACEOF
9752# If no file are specified by the user, then we need to provide default
9753# value. By we need to know if files were specified by the user.
9754ac_need_defaults=:
9755while test $# != 0
9756do
9757 case $1 in
9758 --*=*)
9759 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9760 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9761 ac_shift=:
9762 ;;
9763 -*)
9764 ac_option=$1
9765 ac_optarg=$2
9766 ac_shift=shift
9767 ;;
9768 *) # This is not an option, so the user has probably given explicit
9769 # arguments.
9770 ac_option=$1
9771 ac_need_defaults=false;;
9772 esac
9773
9774 case $ac_option in
9775 # Handling of the options.
9776_ACEOF
9777cat >>$CONFIG_STATUS <<\_ACEOF
9778 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9779 ac_cs_recheck=: ;;
9780 --version | --vers* | -V )
9781 echo "$ac_cs_version"; exit 0 ;;
9782 --he | --h)
9783 # Conflict between --help and --header
9784 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9785Try \`$0 --help' for more information." >&5
9786echo "$as_me: error: ambiguous option: $1
9787Try \`$0 --help' for more information." >&2;}
9788 { (exit 1); exit 1; }; };;
9789 --help | --hel | -h )
9790 echo "$ac_cs_usage"; exit 0 ;;
9791 --debug | --d* | -d )
9792 debug=: ;;
9793 --file | --fil | --fi | --f )
9794 $ac_shift
9795 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9796 ac_need_defaults=false;;
9797 --header | --heade | --head | --hea )
9798 $ac_shift
9799 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9800 ac_need_defaults=false;;
9801 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9802 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9803 ac_cs_silent=: ;;
9804
9805 # This is an error.
9806 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9807Try \`$0 --help' for more information." >&5
9808echo "$as_me: error: unrecognized option: $1
9809Try \`$0 --help' for more information." >&2;}
9810 { (exit 1); exit 1; }; } ;;
9811
9812 *) ac_config_targets="$ac_config_targets $1" ;;
9813
9814 esac
9815 shift
9816done
9817
9818ac_configure_extra_args=
9819
9820if $ac_cs_silent; then
9821 exec 6>/dev/null
9822 ac_configure_extra_args="$ac_configure_extra_args --silent"
9823fi
9824
9825_ACEOF
9826cat >>$CONFIG_STATUS <<_ACEOF
9827if \$ac_cs_recheck; then
9828 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9829 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9830fi
9831
9832_ACEOF
9833
9834cat >>$CONFIG_STATUS <<_ACEOF
9835#
9836# INIT-COMMANDS section.
9837#
9838
9839AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9840
9841_ACEOF
9842
9843
9844
9845cat >>$CONFIG_STATUS <<\_ACEOF
9846for ac_config_target in $ac_config_targets
9847do
9848 case "$ac_config_target" in
9849 # Handling of arguments.
9850 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9851 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9852 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9853 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9854echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9855 { (exit 1); exit 1; }; };;
9856 esac
9857done
9858
9859# If the user did not use the arguments to specify the items to instantiate,
9860# then the envvar interface is used. Set only those that are not.
9861# We use the long form for the default assignment because of an extremely
9862# bizarre bug on SunOS 4.1.3.
9863if $ac_need_defaults; then
9864 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9865 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9866 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9867fi
9868
9869# Have a temporary directory for convenience. Make it in the build tree
9870# simply because there is no reason to put it here, and in addition,
9871# creating and moving files from /tmp can sometimes cause problems.
9872# Create a temporary directory, and hook for its removal unless debugging.
9873$debug ||
9874{
9875 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9876 trap '{ (exit 1); exit 1; }' 1 2 13 15
9877}
9878
9879# Create a (secure) tmp directory for tmp files.
9880
9881{
9882 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9883 test -n "$tmp" && test -d "$tmp"
9884} ||
9885{
9886 tmp=./confstat$$-$RANDOM
9887 (umask 077 && mkdir $tmp)
9888} ||
9889{
9890 echo "$me: cannot create a temporary directory in ." >&2
9891 { (exit 1); exit 1; }
9892}
9893
9894_ACEOF
9895
9896cat >>$CONFIG_STATUS <<_ACEOF
9897
9898#
9899# CONFIG_FILES section.
9900#
9901
9902# No need to generate the scripts if there are no CONFIG_FILES.
9903# This happens for instance when ./config.status config.h
9904if test -n "\$CONFIG_FILES"; then
9905 # Protect against being on the right side of a sed subst in config.status.
9906 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9907 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9908s,@SHELL@,$SHELL,;t t
9909s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9910s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9911s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9912s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9913s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9914s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9915s,@exec_prefix@,$exec_prefix,;t t
9916s,@prefix@,$prefix,;t t
9917s,@program_transform_name@,$program_transform_name,;t t
9918s,@bindir@,$bindir,;t t
9919s,@sbindir@,$sbindir,;t t
9920s,@libexecdir@,$libexecdir,;t t
9921s,@datadir@,$datadir,;t t
9922s,@sysconfdir@,$sysconfdir,;t t
9923s,@sharedstatedir@,$sharedstatedir,;t t
9924s,@localstatedir@,$localstatedir,;t t
9925s,@libdir@,$libdir,;t t
9926s,@includedir@,$includedir,;t t
9927s,@oldincludedir@,$oldincludedir,;t t
9928s,@infodir@,$infodir,;t t
9929s,@mandir@,$mandir,;t t
9930s,@build_alias@,$build_alias,;t t
9931s,@host_alias@,$host_alias,;t t
9932s,@target_alias@,$target_alias,;t t
9933s,@DEFS@,$DEFS,;t t
9934s,@ECHO_C@,$ECHO_C,;t t
9935s,@ECHO_N@,$ECHO_N,;t t
9936s,@ECHO_T@,$ECHO_T,;t t
9937s,@LIBS@,$LIBS,;t t
9938s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9939s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9940s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9941s,@CYGPATH_W@,$CYGPATH_W,;t t
9942s,@PACKAGE@,$PACKAGE,;t t
9943s,@VERSION@,$VERSION,;t t
9944s,@ACLOCAL@,$ACLOCAL,;t t
9945s,@AUTOCONF@,$AUTOCONF,;t t
9946s,@AUTOMAKE@,$AUTOMAKE,;t t
9947s,@AUTOHEADER@,$AUTOHEADER,;t t
9948s,@MAKEINFO@,$MAKEINFO,;t t
9949s,@AMTAR@,$AMTAR,;t t
9950s,@install_sh@,$install_sh,;t t
9951s,@STRIP@,$STRIP,;t t
9952s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9953s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9954s,@AWK@,$AWK,;t t
9955s,@SET_MAKE@,$SET_MAKE,;t t
9956s,@CC@,$CC,;t t
9957s,@CFLAGS@,$CFLAGS,;t t
9958s,@LDFLAGS@,$LDFLAGS,;t t
9959s,@CPPFLAGS@,$CPPFLAGS,;t t
9960s,@ac_ct_CC@,$ac_ct_CC,;t t
9961s,@EXEEXT@,$EXEEXT,;t t
9962s,@OBJEXT@,$OBJEXT,;t t
9963s,@DEPDIR@,$DEPDIR,;t t
9964s,@am__include@,$am__include,;t t
9965s,@am__quote@,$am__quote,;t t
9966s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9967s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9968s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9969s,@CCDEPMODE@,$CCDEPMODE,;t t
9970s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9971s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
9972s,@build@,$build,;t t
9973s,@build_cpu@,$build_cpu,;t t
9974s,@build_vendor@,$build_vendor,;t t
9975s,@build_os@,$build_os,;t t
9976s,@host@,$host,;t t
9977s,@host_cpu@,$host_cpu,;t t
9978s,@host_vendor@,$host_vendor,;t t
9979s,@host_os@,$host_os,;t t
9980s,@LN_S@,$LN_S,;t t
9981s,@ECHO@,$ECHO,;t t
9982s,@RANLIB@,$RANLIB,;t t
9983s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9984s,@CPP@,$CPP,;t t
9985s,@EGREP@,$EGREP,;t t
9986s,@LIBTOOL@,$LIBTOOL,;t t
9987s,@LIBOBJS@,$LIBOBJS,;t t
9988s,@POW_LIB@,$POW_LIB,;t t
9989s,@PKGCONFIGDIR@,$PKGCONFIGDIR,;t t
9990s,@LIBPNG12_VERSION_INFO@,$LIBPNG12_VERSION_INFO,;t t
9991s,@LIBPNG3_VERSION_INFO@,$LIBPNG3_VERSION_INFO,;t t
9992s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9993CEOF
9994
9995_ACEOF
9996
9997 cat >>$CONFIG_STATUS <<\_ACEOF
9998 # Split the substitutions into bite-sized pieces for seds with
9999 # small command number limits, like on Digital OSF/1 and HP-UX.
10000 ac_max_sed_lines=48
10001 ac_sed_frag=1 # Number of current file.
10002 ac_beg=1 # First line for current file.
10003 ac_end=$ac_max_sed_lines # Line after last line for current file.
10004 ac_more_lines=:
10005 ac_sed_cmds=
10006 while $ac_more_lines; do
10007 if test $ac_beg -gt 1; then
10008 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10009 else
10010 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10011 fi
10012 if test ! -s $tmp/subs.frag; then
10013 ac_more_lines=false
10014 else
10015 # The purpose of the label and of the branching condition is to
10016 # speed up the sed processing (if there are no `@' at all, there
10017 # is no need to browse any of the substitutions).
10018 # These are the two extra sed commands mentioned above.
10019 (echo ':t
10020 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10021 if test -z "$ac_sed_cmds"; then
10022 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10023 else
10024 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10025 fi
10026 ac_sed_frag=`expr $ac_sed_frag + 1`
10027 ac_beg=$ac_end
10028 ac_end=`expr $ac_end + $ac_max_sed_lines`
10029 fi
10030 done
10031 if test -z "$ac_sed_cmds"; then
10032 ac_sed_cmds=cat
10033 fi
10034fi # test -n "$CONFIG_FILES"
10035
10036_ACEOF
10037cat >>$CONFIG_STATUS <<\_ACEOF
10038for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10039 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10040 case $ac_file in
10041 - | *:- | *:-:* ) # input from stdin
10042 cat >$tmp/stdin
10043 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10044 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10045 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10046 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10047 * ) ac_file_in=$ac_file.in ;;
10048 esac
10049
10050 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10051 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10052$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10053 X"$ac_file" : 'X\(//\)[^/]' \| \
10054 X"$ac_file" : 'X\(//\)$' \| \
10055 X"$ac_file" : 'X\(/\)' \| \
10056 . : '\(.\)' 2>/dev/null ||
10057echo X"$ac_file" |
10058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10059 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10060 /^X\(\/\/\)$/{ s//\1/; q; }
10061 /^X\(\/\).*/{ s//\1/; q; }
10062 s/.*/./; q'`
10063 { if $as_mkdir_p; then
10064 mkdir -p "$ac_dir"
10065 else
10066 as_dir="$ac_dir"
10067 as_dirs=
10068 while test ! -d "$as_dir"; do
10069 as_dirs="$as_dir $as_dirs"
10070 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10071$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10072 X"$as_dir" : 'X\(//\)[^/]' \| \
10073 X"$as_dir" : 'X\(//\)$' \| \
10074 X"$as_dir" : 'X\(/\)' \| \
10075 . : '\(.\)' 2>/dev/null ||
10076echo X"$as_dir" |
10077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10078 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10079 /^X\(\/\/\)$/{ s//\1/; q; }
10080 /^X\(\/\).*/{ s//\1/; q; }
10081 s/.*/./; q'`
10082 done
10083 test ! -n "$as_dirs" || mkdir $as_dirs
10084 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10085echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10086 { (exit 1); exit 1; }; }; }
10087
10088 ac_builddir=.
10089
10090if test "$ac_dir" != .; then
10091 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10092 # A "../" for each directory in $ac_dir_suffix.
10093 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10094else
10095 ac_dir_suffix= ac_top_builddir=
10096fi
10097
10098case $srcdir in
10099 .) # No --srcdir option. We are building in place.
10100 ac_srcdir=.
10101 if test -z "$ac_top_builddir"; then
10102 ac_top_srcdir=.
10103 else
10104 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10105 fi ;;
10106 [\\/]* | ?:[\\/]* ) # Absolute path.
10107 ac_srcdir=$srcdir$ac_dir_suffix;
10108 ac_top_srcdir=$srcdir ;;
10109 *) # Relative path.
10110 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10111 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10112esac
10113# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10114# absolute.
10115ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10116ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10117ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10118ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10119
10120
10121 case $INSTALL in
10122 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10123 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10124 esac
10125
10126 if test x"$ac_file" != x-; then
10127 { echo "$as_me:$LINENO: creating $ac_file" >&5
10128echo "$as_me: creating $ac_file" >&6;}
10129 rm -f "$ac_file"
10130 fi
10131 # Let's still pretend it is `configure' which instantiates (i.e., don't
10132 # use $as_me), people would be surprised to read:
10133 # /* config.h. Generated by config.status. */
10134 if test x"$ac_file" = x-; then
10135 configure_input=
10136 else
10137 configure_input="$ac_file. "
10138 fi
10139 configure_input=$configure_input"Generated from `echo $ac_file_in |
10140 sed 's,.*/,,'` by configure."
10141
10142 # First look for the input files in the build tree, otherwise in the
10143 # src tree.
10144 ac_file_inputs=`IFS=:
10145 for f in $ac_file_in; do
10146 case $f in
10147 -) echo $tmp/stdin ;;
10148 [\\/$]*)
10149 # Absolute (can't be DOS-style, as IFS=:)
10150 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10151echo "$as_me: error: cannot find input file: $f" >&2;}
10152 { (exit 1); exit 1; }; }
10153 echo $f;;
10154 *) # Relative
10155 if test -f "$f"; then
10156 # Build tree
10157 echo $f
10158 elif test -f "$srcdir/$f"; then
10159 # Source tree
10160 echo $srcdir/$f
10161 else
10162 # /dev/null tree
10163 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10164echo "$as_me: error: cannot find input file: $f" >&2;}
10165 { (exit 1); exit 1; }; }
10166 fi;;
10167 esac
10168 done` || { (exit 1); exit 1; }
10169_ACEOF
10170cat >>$CONFIG_STATUS <<_ACEOF
10171 sed "$ac_vpsub
10172$extrasub
10173_ACEOF
10174cat >>$CONFIG_STATUS <<\_ACEOF
10175:t
10176/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10177s,@configure_input@,$configure_input,;t t
10178s,@srcdir@,$ac_srcdir,;t t
10179s,@abs_srcdir@,$ac_abs_srcdir,;t t
10180s,@top_srcdir@,$ac_top_srcdir,;t t
10181s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10182s,@builddir@,$ac_builddir,;t t
10183s,@abs_builddir@,$ac_abs_builddir,;t t
10184s,@top_builddir@,$ac_top_builddir,;t t
10185s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10186s,@INSTALL@,$ac_INSTALL,;t t
10187" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10188 rm -f $tmp/stdin
10189 if test x"$ac_file" != x-; then
10190 mv $tmp/out $ac_file
10191 else
10192 cat $tmp/out
10193 rm -f $tmp/out
10194 fi
10195
10196done
10197_ACEOF
10198cat >>$CONFIG_STATUS <<\_ACEOF
10199
10200#
10201# CONFIG_HEADER section.
10202#
10203
10204# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10205# NAME is the cpp macro being defined and VALUE is the value it is being given.
10206#
10207# ac_d sets the value in "#define NAME VALUE" lines.
10208ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10209ac_dB='[ ].*$,\1#\2'
10210ac_dC=' '
10211ac_dD=',;t'
10212# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10213ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10214ac_uB='$,\1#\2define\3'
10215ac_uC=' '
10216ac_uD=',;t'
10217
10218for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10219 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10220 case $ac_file in
10221 - | *:- | *:-:* ) # input from stdin
10222 cat >$tmp/stdin
10223 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10224 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10225 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10226 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10227 * ) ac_file_in=$ac_file.in ;;
10228 esac
10229
10230 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10231echo "$as_me: creating $ac_file" >&6;}
10232
10233 # First look for the input files in the build tree, otherwise in the
10234 # src tree.
10235 ac_file_inputs=`IFS=:
10236 for f in $ac_file_in; do
10237 case $f in
10238 -) echo $tmp/stdin ;;
10239 [\\/$]*)
10240 # Absolute (can't be DOS-style, as IFS=:)
10241 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10242echo "$as_me: error: cannot find input file: $f" >&2;}
10243 { (exit 1); exit 1; }; }
10244 echo $f;;
10245 *) # Relative
10246 if test -f "$f"; then
10247 # Build tree
10248 echo $f
10249 elif test -f "$srcdir/$f"; then
10250 # Source tree
10251 echo $srcdir/$f
10252 else
10253 # /dev/null tree
10254 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10255echo "$as_me: error: cannot find input file: $f" >&2;}
10256 { (exit 1); exit 1; }; }
10257 fi;;
10258 esac
10259 done` || { (exit 1); exit 1; }
10260 # Remove the trailing spaces.
10261 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10262
10263_ACEOF
10264
10265# Transform confdefs.h into two sed scripts, `conftest.defines' and
10266# `conftest.undefs', that substitutes the proper values into
10267# config.h.in to produce config.h. The first handles `#define'
10268# templates, and the second `#undef' templates.
10269# And first: Protect against being on the right side of a sed subst in
10270# config.status. Protect against being in an unquoted here document
10271# in config.status.
10272rm -f conftest.defines conftest.undefs
10273# Using a here document instead of a string reduces the quoting nightmare.
10274# Putting comments in sed scripts is not portable.
10275#
10276# `end' is used to avoid that the second main sed command (meant for
10277# 0-ary CPP macros) applies to n-ary macro definitions.
10278# See the Autoconf documentation for `clear'.
10279cat >confdef2sed.sed <<\_ACEOF
10280s/[\\&,]/\\&/g
10281s,[\\$`],\\&,g
10282t clear
10283: clear
10284s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10285t end
10286s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10287: end
10288_ACEOF
10289# If some macros were called several times there might be several times
10290# the same #defines, which is useless. Nevertheless, we may not want to
10291# sort them, since we want the *last* AC-DEFINE to be honored.
10292uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10293sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10294rm -f confdef2sed.sed
10295
10296# This sed command replaces #undef with comments. This is necessary, for
10297# example, in the case of _POSIX_SOURCE, which is predefined and required
10298# on some systems where configure will not decide to define it.
10299cat >>conftest.undefs <<\_ACEOF
10300s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10301_ACEOF
10302
10303# Break up conftest.defines because some shells have a limit on the size
10304# of here documents, and old seds have small limits too (100 cmds).
10305echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10306echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10307echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10308echo ' :' >>$CONFIG_STATUS
10309rm -f conftest.tail
10310while grep . conftest.defines >/dev/null
10311do
10312 # Write a limited-size here document to $tmp/defines.sed.
10313 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10314 # Speed up: don't consider the non `#define' lines.
10315 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10316 # Work around the forget-to-reset-the-flag bug.
10317 echo 't clr' >>$CONFIG_STATUS
10318 echo ': clr' >>$CONFIG_STATUS
10319 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10320 echo 'CEOF
10321 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10322 rm -f $tmp/in
10323 mv $tmp/out $tmp/in
10324' >>$CONFIG_STATUS
10325 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10326 rm -f conftest.defines
10327 mv conftest.tail conftest.defines
10328done
10329rm -f conftest.defines
10330echo ' fi # grep' >>$CONFIG_STATUS
10331echo >>$CONFIG_STATUS
10332
10333# Break up conftest.undefs because some shells have a limit on the size
10334# of here documents, and old seds have small limits too (100 cmds).
10335echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10336rm -f conftest.tail
10337while grep . conftest.undefs >/dev/null
10338do
10339 # Write a limited-size here document to $tmp/undefs.sed.
10340 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10341 # Speed up: don't consider the non `#undef'
10342 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10343 # Work around the forget-to-reset-the-flag bug.
10344 echo 't clr' >>$CONFIG_STATUS
10345 echo ': clr' >>$CONFIG_STATUS
10346 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10347 echo 'CEOF
10348 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10349 rm -f $tmp/in
10350 mv $tmp/out $tmp/in
10351' >>$CONFIG_STATUS
10352 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10353 rm -f conftest.undefs
10354 mv conftest.tail conftest.undefs
10355done
10356rm -f conftest.undefs
10357
10358cat >>$CONFIG_STATUS <<\_ACEOF
10359 # Let's still pretend it is `configure' which instantiates (i.e., don't
10360 # use $as_me), people would be surprised to read:
10361 # /* config.h. Generated by config.status. */
10362 if test x"$ac_file" = x-; then
10363 echo "/* Generated by configure. */" >$tmp/config.h
10364 else
10365 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10366 fi
10367 cat $tmp/in >>$tmp/config.h
10368 rm -f $tmp/in
10369 if test x"$ac_file" != x-; then
10370 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10371 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10372echo "$as_me: $ac_file is unchanged" >&6;}
10373 else
10374 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10375$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10376 X"$ac_file" : 'X\(//\)[^/]' \| \
10377 X"$ac_file" : 'X\(//\)$' \| \
10378 X"$ac_file" : 'X\(/\)' \| \
10379 . : '\(.\)' 2>/dev/null ||
10380echo X"$ac_file" |
10381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10382 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10383 /^X\(\/\/\)$/{ s//\1/; q; }
10384 /^X\(\/\).*/{ s//\1/; q; }
10385 s/.*/./; q'`
10386 { if $as_mkdir_p; then
10387 mkdir -p "$ac_dir"
10388 else
10389 as_dir="$ac_dir"
10390 as_dirs=
10391 while test ! -d "$as_dir"; do
10392 as_dirs="$as_dir $as_dirs"
10393 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10394$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10395 X"$as_dir" : 'X\(//\)[^/]' \| \
10396 X"$as_dir" : 'X\(//\)$' \| \
10397 X"$as_dir" : 'X\(/\)' \| \
10398 . : '\(.\)' 2>/dev/null ||
10399echo X"$as_dir" |
10400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10401 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10402 /^X\(\/\/\)$/{ s//\1/; q; }
10403 /^X\(\/\).*/{ s//\1/; q; }
10404 s/.*/./; q'`
10405 done
10406 test ! -n "$as_dirs" || mkdir $as_dirs
10407 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10408echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10409 { (exit 1); exit 1; }; }; }
10410
10411 rm -f $ac_file
10412 mv $tmp/config.h $ac_file
10413 fi
10414 else
10415 cat $tmp/config.h
10416 rm -f $tmp/config.h
10417 fi
10418_am_stamp_count=`expr ${_am_stamp_count-0} + 1`
10419echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10420$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10421 X$ac_file : 'X\(//\)[^/]' \| \
10422 X$ac_file : 'X\(//\)$' \| \
10423 X$ac_file : 'X\(/\)' \| \
10424 . : '\(.\)' 2>/dev/null ||
10425echo X$ac_file |
10426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10427 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10428 /^X\(\/\/\)$/{ s//\1/; q; }
10429 /^X\(\/\).*/{ s//\1/; q; }
10430 s/.*/./; q'`/stamp-h$_am_stamp_count
10431done
10432_ACEOF
10433cat >>$CONFIG_STATUS <<\_ACEOF
10434
10435#
10436# CONFIG_COMMANDS section.
10437#
10438for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10439 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10440 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10441 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10442$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10443 X"$ac_dest" : 'X\(//\)[^/]' \| \
10444 X"$ac_dest" : 'X\(//\)$' \| \
10445 X"$ac_dest" : 'X\(/\)' \| \
10446 . : '\(.\)' 2>/dev/null ||
10447echo X"$ac_dest" |
10448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10449 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10450 /^X\(\/\/\)$/{ s//\1/; q; }
10451 /^X\(\/\).*/{ s//\1/; q; }
10452 s/.*/./; q'`
10453 ac_builddir=.
10454
10455if test "$ac_dir" != .; then
10456 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10457 # A "../" for each directory in $ac_dir_suffix.
10458 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10459else
10460 ac_dir_suffix= ac_top_builddir=
10461fi
10462
10463case $srcdir in
10464 .) # No --srcdir option. We are building in place.
10465 ac_srcdir=.
10466 if test -z "$ac_top_builddir"; then
10467 ac_top_srcdir=.
10468 else
10469 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10470 fi ;;
10471 [\\/]* | ?:[\\/]* ) # Absolute path.
10472 ac_srcdir=$srcdir$ac_dir_suffix;
10473 ac_top_srcdir=$srcdir ;;
10474 *) # Relative path.
10475 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10476 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10477esac
10478# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10479# absolute.
10480ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10481ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10482ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10483ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10484
10485
10486 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10487echo "$as_me: executing $ac_dest commands" >&6;}
10488 case $ac_dest in
10489 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10490 # Strip MF so we end up with the name of the file.
10491 mf=`echo "$mf" | sed -e 's/:.*$//'`
10492 # Check whether this is an Automake generated Makefile or not.
10493 # We used to match only the files named `Makefile.in', but
10494 # some people rename them; so instead we look at the file content.
10495 # Grep'ing the first line is not enough: some people post-process
10496 # each Makefile.in and add a new line on top of each file to say so.
10497 # So let's grep whole file.
10498 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10499 dirpart=`(dirname "$mf") 2>/dev/null ||
10500$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10501 X"$mf" : 'X\(//\)[^/]' \| \
10502 X"$mf" : 'X\(//\)$' \| \
10503 X"$mf" : 'X\(/\)' \| \
10504 . : '\(.\)' 2>/dev/null ||
10505echo X"$mf" |
10506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10507 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10508 /^X\(\/\/\)$/{ s//\1/; q; }
10509 /^X\(\/\).*/{ s//\1/; q; }
10510 s/.*/./; q'`
10511 else
10512 continue
10513 fi
10514 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
10515 # Extract the definition of DEP_FILES from the Makefile without
10516 # running `make'.
10517 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
10518 test -z "$DEPDIR" && continue
10519 # When using ansi2knr, U may be empty or an underscore; expand it
10520 U=`sed -n -e '/^U = / s///p' < "$mf"`
10521 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10522 # We invoke sed twice because it is the simplest approach to
10523 # changing $(DEPDIR) to its actual value in the expansion.
10524 for file in `sed -n -e '
10525 /^DEP_FILES = .*\\\\$/ {
10526 s/^DEP_FILES = //
10527 :loop
10528 s/\\\\$//
10529 p
10530 n
10531 /\\\\$/ b loop
10532 p
10533 }
10534 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10535 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10536 # Make sure the directory exists.
10537 test -f "$dirpart/$file" && continue
10538 fdir=`(dirname "$file") 2>/dev/null ||
10539$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10540 X"$file" : 'X\(//\)[^/]' \| \
10541 X"$file" : 'X\(//\)$' \| \
10542 X"$file" : 'X\(/\)' \| \
10543 . : '\(.\)' 2>/dev/null ||
10544echo X"$file" |
10545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10546 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10547 /^X\(\/\/\)$/{ s//\1/; q; }
10548 /^X\(\/\).*/{ s//\1/; q; }
10549 s/.*/./; q'`
10550 { if $as_mkdir_p; then
10551 mkdir -p $dirpart/$fdir
10552 else
10553 as_dir=$dirpart/$fdir
10554 as_dirs=
10555 while test ! -d "$as_dir"; do
10556 as_dirs="$as_dir $as_dirs"
10557 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10558$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10559 X"$as_dir" : 'X\(//\)[^/]' \| \
10560 X"$as_dir" : 'X\(//\)$' \| \
10561 X"$as_dir" : 'X\(/\)' \| \
10562 . : '\(.\)' 2>/dev/null ||
10563echo X"$as_dir" |
10564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10565 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10566 /^X\(\/\/\)$/{ s//\1/; q; }
10567 /^X\(\/\).*/{ s//\1/; q; }
10568 s/.*/./; q'`
10569 done
10570 test ! -n "$as_dirs" || mkdir $as_dirs
10571 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10572echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10573 { (exit 1); exit 1; }; }; }
10574
10575 # echo "creating $dirpart/$file"
10576 echo '# dummy' > "$dirpart/$file"
10577 done
10578done
10579 ;;
10580 esac
10581done
10582_ACEOF
10583
10584cat >>$CONFIG_STATUS <<\_ACEOF
10585
10586{ (exit 0); exit 0; }
10587_ACEOF
10588chmod +x $CONFIG_STATUS
10589ac_clean_files=$ac_clean_files_save
10590
10591
10592# configure is writing to config.log, and then calls config.status.
10593# config.status does its own redirection, appending to config.log.
10594# Unfortunately, on DOS this fails, as config.log is still kept open
10595# by configure, so config.status won't be able to write to it; its
10596# output is simply discarded. So we exec the FD to /dev/null,
10597# effectively closing config.log, so it can be properly (re)opened and
10598# appended to by config.status. When coming back to configure, we
10599# need to make the FD available again.
10600if test "$no_create" != yes; then
10601 ac_cs_success=:
10602 ac_config_status_args=
10603 test "$silent" = yes &&
10604 ac_config_status_args="$ac_config_status_args --quiet"
10605 exec 5>/dev/null
10606 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10607 exec 5>>config.log
10608 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10609 # would make configure fail if this is the last instruction.
10610 $ac_cs_success || { (exit 1); exit 1; }
10611fi
Glenn Randers-Pehrson520a7642000-03-21 05:13:06 -060010612