* ld.texinfo (ARM): Document --stub-group-size=N option.
[deliverable/binutils-gdb.git] / binutils / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
42ecbf5e 3# Generated by GNU Autoconf 2.59.
252b5132 4#
42ecbf5e 5# Copyright (C) 2003 Free Software Foundation, Inc.
252b5132
RH
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
42ecbf5e
DJ
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
d7040cdb
SE
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$lt_ECHO in
249X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253esac
254
255ECHO=${lt_ECHO-echo}
256if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
264 :
265else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
274$*
275_LT_EOF
276 exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
292 fi
293 done
294 fi
295
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
299 :
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
304 #
305 # So, first we look for a working echo in the user's PATH.
306
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
316 fi
317 done
318 IFS="$lt_save_ifs"
319
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
342 :
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
360
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
365 fi
366 prev="$cmd"
367 done
368
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
376 fi
377 fi
378 fi
379 fi
380 fi
381fi
382
383# Copy echo and quote the copy suitably for passing to libtool from
384# the Makefile, instead of quoting the original, which is used later.
385lt_ECHO=$ECHO
386if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388fi
389
390
391
392
42ecbf5e
DJ
393# Name of the host.
394# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395# so uname gets run too.
396ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 397
42ecbf5e
DJ
398exec 6>&1
399
400#
401# Initializations.
402#
252b5132 403ac_default_prefix=/usr/local
42ecbf5e
DJ
404ac_config_libobj_dir=.
405cross_compiling=no
406subdirs=
407MFLAGS=
408MAKEFLAGS=
409SHELL=${CONFIG_SHELL-/bin/sh}
410
411# Maximum number of lines to put in a shell here document.
412# This variable seems obsolete. It should probably be removed, and
413# only ac_max_sed_lines should be used.
414: ${ac_max_here_lines=38}
415
416# Identity of this package.
417PACKAGE_NAME=
418PACKAGE_TARNAME=
419PACKAGE_VERSION=
420PACKAGE_STRING=
421PACKAGE_BUGREPORT=
422
423ac_unique_file="ar.c"
424# Factoring default headers for most tests.
425ac_includes_default="\
426#include <stdio.h>
427#if HAVE_SYS_TYPES_H
428# include <sys/types.h>
429#endif
430#if HAVE_SYS_STAT_H
431# include <sys/stat.h>
432#endif
433#if STDC_HEADERS
434# include <stdlib.h>
435# include <stddef.h>
436#else
437# if HAVE_STDLIB_H
438# include <stdlib.h>
439# endif
440#endif
441#if HAVE_STRING_H
442# if !STDC_HEADERS && HAVE_MEMORY_H
443# include <memory.h>
444# endif
445# include <string.h>
446#endif
447#if HAVE_STRINGS_H
448# include <strings.h>
449#endif
450#if HAVE_INTTYPES_H
451# include <inttypes.h>
452#else
453# if HAVE_STDINT_H
454# include <stdint.h>
455# endif
456#endif
457#if HAVE_UNISTD_H
458# include <unistd.h>
459#endif"
460
692ed3e7 461ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP WARN_CFLAGS NO_WERROR YACC LEX LEXLIB LEX_OUTPUT_ROOT USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE HDEFINES CC_FOR_BUILD EXEEXT_FOR_BUILD DEMANGLER_NAME ALLOCA LIBICONV LTLIBICONV NLMCONV_DEFS BUILD_NLMCONV BUILD_SRCONV BUILD_DLLTOOL DLLTOOL_DEFS BUILD_WINDRES BUILD_WINDMC BUILD_DLLWRAP BUILD_MISC BUILD_INSTALL_MISC OBJDUMP_DEFS EMULATION EMULATION_VECTOR datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
42ecbf5e 462ac_subst_files=''
252b5132
RH
463
464# Initialize some variables set by options.
42ecbf5e
DJ
465ac_init_help=
466ac_init_version=false
252b5132
RH
467# The variables have the same names as the options, with
468# dashes changed to underlines.
42ecbf5e 469cache_file=/dev/null
252b5132 470exec_prefix=NONE
252b5132 471no_create=
252b5132
RH
472no_recursion=
473prefix=NONE
474program_prefix=NONE
475program_suffix=NONE
476program_transform_name=s,x,x,
477silent=
478site=
479srcdir=
252b5132
RH
480verbose=
481x_includes=NONE
482x_libraries=NONE
42ecbf5e
DJ
483
484# Installation directory options.
485# These are left unexpanded so users can "make install exec_prefix=/foo"
486# and all the variables that are supposed to be based on exec_prefix
487# by default will actually change.
488# Use braces instead of parens because sh, perl, etc. also accept them.
252b5132
RH
489bindir='${exec_prefix}/bin'
490sbindir='${exec_prefix}/sbin'
491libexecdir='${exec_prefix}/libexec'
492datadir='${prefix}/share'
493sysconfdir='${prefix}/etc'
494sharedstatedir='${prefix}/com'
495localstatedir='${prefix}/var'
496libdir='${exec_prefix}/lib'
497includedir='${prefix}/include'
498oldincludedir='/usr/include'
499infodir='${prefix}/info'
500mandir='${prefix}/man'
501
252b5132
RH
502ac_prev=
503for ac_option
504do
252b5132
RH
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
508 ac_prev=
509 continue
510 fi
511
42ecbf5e 512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
513
514 # Accept the important Cygnus configure options, so we can diagnose typos.
515
42ecbf5e 516 case $ac_option in
252b5132
RH
517
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 ac_prev=bindir ;;
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
42ecbf5e 521 bindir=$ac_optarg ;;
252b5132
RH
522
523 -build | --build | --buil | --bui | --bu)
42ecbf5e 524 ac_prev=build_alias ;;
252b5132 525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 526 build_alias=$ac_optarg ;;
252b5132
RH
527
528 -cache-file | --cache-file | --cache-fil | --cache-fi \
529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530 ac_prev=cache_file ;;
531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
42ecbf5e
DJ
533 cache_file=$ac_optarg ;;
534
535 --config-cache | -C)
536 cache_file=config.cache ;;
252b5132
RH
537
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 ac_prev=datadir ;;
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 | --da=*)
42ecbf5e 542 datadir=$ac_optarg ;;
252b5132
RH
543
544 -disable-* | --disable-*)
42ecbf5e 545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 546 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
550 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
252b5132
RH
552
553 -enable-* | --enable-*)
42ecbf5e 554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 555 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 case $ac_option in
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
562 *) ac_optarg=yes ;;
563 esac
42ecbf5e 564 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
565
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
42ecbf5e 573 exec_prefix=$ac_optarg ;;
252b5132
RH
574
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
578
42ecbf5e
DJ
579 -help | --help | --hel | --he | -h)
580 ac_init_help=long ;;
581 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582 ac_init_help=recursive ;;
583 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584 ac_init_help=short ;;
252b5132
RH
585
586 -host | --host | --hos | --ho)
42ecbf5e 587 ac_prev=host_alias ;;
252b5132 588 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 589 host_alias=$ac_optarg ;;
252b5132
RH
590
591 -includedir | --includedir | --includedi | --included | --include \
592 | --includ | --inclu | --incl | --inc)
593 ac_prev=includedir ;;
594 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595 | --includ=* | --inclu=* | --incl=* | --inc=*)
42ecbf5e 596 includedir=$ac_optarg ;;
252b5132
RH
597
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 ac_prev=infodir ;;
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
42ecbf5e 601 infodir=$ac_optarg ;;
252b5132
RH
602
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 606 libdir=$ac_optarg ;;
252b5132
RH
607
608 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609 | --libexe | --libex | --libe)
610 ac_prev=libexecdir ;;
611 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612 | --libexe=* | --libex=* | --libe=*)
42ecbf5e 613 libexecdir=$ac_optarg ;;
252b5132
RH
614
615 -localstatedir | --localstatedir | --localstatedi | --localstated \
616 | --localstate | --localstat | --localsta | --localst \
617 | --locals | --local | --loca | --loc | --lo)
618 ac_prev=localstatedir ;;
619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
42ecbf5e 622 localstatedir=$ac_optarg ;;
252b5132
RH
623
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 ac_prev=mandir ;;
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
42ecbf5e 627 mandir=$ac_optarg ;;
252b5132
RH
628
629 -nfp | --nfp | --nf)
630 # Obsolete; use --without-fp.
631 with_fp=no ;;
632
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
42ecbf5e 634 | --no-cr | --no-c | -n)
252b5132
RH
635 no_create=yes ;;
636
637 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639 no_recursion=yes ;;
640
641 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643 | --oldin | --oldi | --old | --ol | --o)
644 ac_prev=oldincludedir ;;
645 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
42ecbf5e 648 oldincludedir=$ac_optarg ;;
252b5132
RH
649
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 ac_prev=prefix ;;
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42ecbf5e 653 prefix=$ac_optarg ;;
252b5132
RH
654
655 -program-prefix | --program-prefix | --program-prefi | --program-pref \
656 | --program-pre | --program-pr | --program-p)
657 ac_prev=program_prefix ;;
658 -program-prefix=* | --program-prefix=* | --program-prefi=* \
659 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
42ecbf5e 660 program_prefix=$ac_optarg ;;
252b5132
RH
661
662 -program-suffix | --program-suffix | --program-suffi | --program-suff \
663 | --program-suf | --program-su | --program-s)
664 ac_prev=program_suffix ;;
665 -program-suffix=* | --program-suffix=* | --program-suffi=* \
666 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
42ecbf5e 667 program_suffix=$ac_optarg ;;
252b5132
RH
668
669 -program-transform-name | --program-transform-name \
670 | --program-transform-nam | --program-transform-na \
671 | --program-transform-n | --program-transform- \
672 | --program-transform | --program-transfor \
673 | --program-transfo | --program-transf \
674 | --program-trans | --program-tran \
675 | --progr-tra | --program-tr | --program-t)
676 ac_prev=program_transform_name ;;
677 -program-transform-name=* | --program-transform-name=* \
678 | --program-transform-nam=* | --program-transform-na=* \
679 | --program-transform-n=* | --program-transform-=* \
680 | --program-transform=* | --program-transfor=* \
681 | --program-transfo=* | --program-transf=* \
682 | --program-trans=* | --program-tran=* \
683 | --progr-tra=* | --program-tr=* | --program-t=*)
42ecbf5e 684 program_transform_name=$ac_optarg ;;
252b5132
RH
685
686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687 | -silent | --silent | --silen | --sile | --sil)
688 silent=yes ;;
689
690 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691 ac_prev=sbindir ;;
692 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693 | --sbi=* | --sb=*)
42ecbf5e 694 sbindir=$ac_optarg ;;
252b5132
RH
695
696 -sharedstatedir | --sharedstatedir | --sharedstatedi \
697 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698 | --sharedst | --shareds | --shared | --share | --shar \
699 | --sha | --sh)
700 ac_prev=sharedstatedir ;;
701 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704 | --sha=* | --sh=*)
42ecbf5e 705 sharedstatedir=$ac_optarg ;;
252b5132
RH
706
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
42ecbf5e 710 site=$ac_optarg ;;
252b5132
RH
711
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 715 srcdir=$ac_optarg ;;
252b5132
RH
716
717 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718 | --syscon | --sysco | --sysc | --sys | --sy)
719 ac_prev=sysconfdir ;;
720 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
42ecbf5e 722 sysconfdir=$ac_optarg ;;
252b5132
RH
723
724 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 725 ac_prev=target_alias ;;
252b5132 726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 727 target_alias=$ac_optarg ;;
252b5132
RH
728
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
731
42ecbf5e
DJ
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
252b5132
RH
734
735 -with-* | --with-*)
42ecbf5e 736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 737 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
252b5132 741 ac_package=`echo $ac_package| sed 's/-/_/g'`
42ecbf5e
DJ
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
744 *) ac_optarg=yes ;;
745 esac
42ecbf5e 746 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
747
748 -without-* | --without-*)
42ecbf5e 749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 750 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
754 ac_package=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
252b5132
RH
756
757 --x)
758 # Obsolete; use --with-x.
759 with_x=yes ;;
760
761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762 | --x-incl | --x-inc | --x-in | --x-i)
763 ac_prev=x_includes ;;
764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
42ecbf5e 766 x_includes=$ac_optarg ;;
252b5132
RH
767
768 -x-libraries | --x-libraries | --x-librarie | --x-librari \
769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770 ac_prev=x_libraries ;;
771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
42ecbf5e 773 x_libraries=$ac_optarg ;;
252b5132 774
42ecbf5e
DJ
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
252b5132
RH
778 ;;
779
42ecbf5e
DJ
780 *=*)
781 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785 { (exit 1); exit 1; }; }
786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
788 export $ac_envvar ;;
789
252b5132 790 *)
42ecbf5e
DJ
791 # FIXME: should be removed in autoconf 3.0.
792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
796 ;;
797
798 esac
799done
800
801if test -n "$ac_prev"; then
42ecbf5e
DJ
802 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803 { echo "$as_me: error: missing argument to $ac_option" >&2
804 { (exit 1); exit 1; }; }
252b5132
RH
805fi
806
42ecbf5e
DJ
807# Be sure to have absolute paths.
808for ac_var in exec_prefix prefix
809do
810 eval ac_val=$`echo $ac_var`
811 case $ac_val in
812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
815 esac
816done
252b5132 817
42ecbf5e
DJ
818# Be sure to have absolute paths.
819for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 821do
42ecbf5e
DJ
822 eval ac_val=$`echo $ac_var`
823 case $ac_val in
824 [\\/$]* | ?:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
252b5132
RH
827 esac
828done
829
42ecbf5e
DJ
830# There might be people who depend on the old broken behavior: `$host'
831# used to hold the argument of --host etc.
832# FIXME: To remove some day.
833build=$build_alias
834host=$host_alias
835target=$target_alias
836
837# FIXME: To remove some day.
838if test "x$host_alias" != x; then
839 if test "x$build_alias" = x; then
840 cross_compiling=maybe
841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842 If a cross compiler is detected then cross compile mode will be used." >&2
843 elif test "x$build_alias" != "x$host_alias"; then
844 cross_compiling=yes
845 fi
846fi
e5a52504 847
42ecbf5e
DJ
848ac_tool_prefix=
849test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851test "$silent" = yes && exec 6>/dev/null
252b5132 852
252b5132
RH
853
854# Find the source files, if location was not specified.
855if test -z "$srcdir"; then
856 ac_srcdir_defaulted=yes
857 # Try the directory containing this script, then its parent.
42ecbf5e
DJ
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
859$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
864echo X"$0" |
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
869 s/.*/./; q'`
252b5132
RH
870 srcdir=$ac_confdir
871 if test ! -r $srcdir/$ac_unique_file; then
872 srcdir=..
873 fi
874else
875 ac_srcdir_defaulted=no
876fi
877if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
42ecbf5e
DJ
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
252b5132 881 else
42ecbf5e
DJ
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
252b5132
RH
884 fi
885fi
42ecbf5e
DJ
886(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888 { (exit 1); exit 1; }; }
889srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890ac_env_build_alias_set=${build_alias+set}
891ac_env_build_alias_value=$build_alias
892ac_cv_env_build_alias_set=${build_alias+set}
893ac_cv_env_build_alias_value=$build_alias
894ac_env_host_alias_set=${host_alias+set}
895ac_env_host_alias_value=$host_alias
896ac_cv_env_host_alias_set=${host_alias+set}
897ac_cv_env_host_alias_value=$host_alias
898ac_env_target_alias_set=${target_alias+set}
899ac_env_target_alias_value=$target_alias
900ac_cv_env_target_alias_set=${target_alias+set}
901ac_cv_env_target_alias_value=$target_alias
902ac_env_CC_set=${CC+set}
903ac_env_CC_value=$CC
904ac_cv_env_CC_set=${CC+set}
905ac_cv_env_CC_value=$CC
906ac_env_CFLAGS_set=${CFLAGS+set}
907ac_env_CFLAGS_value=$CFLAGS
908ac_cv_env_CFLAGS_set=${CFLAGS+set}
909ac_cv_env_CFLAGS_value=$CFLAGS
910ac_env_LDFLAGS_set=${LDFLAGS+set}
911ac_env_LDFLAGS_value=$LDFLAGS
912ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913ac_cv_env_LDFLAGS_value=$LDFLAGS
914ac_env_CPPFLAGS_set=${CPPFLAGS+set}
915ac_env_CPPFLAGS_value=$CPPFLAGS
916ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917ac_cv_env_CPPFLAGS_value=$CPPFLAGS
918ac_env_CPP_set=${CPP+set}
919ac_env_CPP_value=$CPP
920ac_cv_env_CPP_set=${CPP+set}
921ac_cv_env_CPP_value=$CPP
252b5132 922
42ecbf5e
DJ
923#
924# Report the --help message.
925#
926if test "$ac_init_help" = "long"; then
927 # Omit some internal or obsolete options to make the list less imposing.
928 # This message is too long to be a string in the A/UX 3.1 sh.
929 cat <<_ACEOF
930\`configure' configures this package to adapt to many kinds of systems.
252b5132 931
42ecbf5e 932Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 933
42ecbf5e
DJ
934To assign environment variables (e.g., CC, CFLAGS...), specify them as
935VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 936
42ecbf5e 937Defaults for the options are specified in brackets.
ac48eca1 938
42ecbf5e
DJ
939Configuration:
940 -h, --help display this help and exit
941 --help=short display options specific to this package
942 --help=recursive display the short help of all the included packages
943 -V, --version display version information and exit
944 -q, --quiet, --silent do not print \`checking...' messages
945 --cache-file=FILE cache test results in FILE [disabled]
946 -C, --config-cache alias for \`--cache-file=config.cache'
947 -n, --no-create do not create output files
948 --srcdir=DIR find the sources in DIR [configure dir or \`..']
949
950_ACEOF
951
952 cat <<_ACEOF
953Installation directories:
954 --prefix=PREFIX install architecture-independent files in PREFIX
955 [$ac_default_prefix]
956 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
957 [PREFIX]
ac48eca1 958
42ecbf5e
DJ
959By default, \`make install' will install all the files in
960\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
961an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962for instance \`--prefix=\$HOME'.
ac48eca1 963
42ecbf5e 964For better control, use the options below.
ac48eca1 965
42ecbf5e
DJ
966Fine tuning of the installation directories:
967 --bindir=DIR user executables [EPREFIX/bin]
968 --sbindir=DIR system admin executables [EPREFIX/sbin]
969 --libexecdir=DIR program executables [EPREFIX/libexec]
970 --datadir=DIR read-only architecture-independent data [PREFIX/share]
971 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
972 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
973 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
974 --libdir=DIR object code libraries [EPREFIX/lib]
975 --includedir=DIR C header files [PREFIX/include]
976 --oldincludedir=DIR C header files for non-gcc [/usr/include]
977 --infodir=DIR info documentation [PREFIX/info]
978 --mandir=DIR man documentation [PREFIX/man]
979_ACEOF
ac48eca1 980
42ecbf5e 981 cat <<\_ACEOF
252b5132 982
42ecbf5e
DJ
983Program names:
984 --program-prefix=PREFIX prepend PREFIX to installed program names
985 --program-suffix=SUFFIX append SUFFIX to installed program names
986 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 987
42ecbf5e
DJ
988System types:
989 --build=BUILD configure for building on BUILD [guessed]
990 --host=HOST cross-compile to build programs to run on HOST [BUILD]
991 --target=TARGET configure for building compilers for TARGET [HOST]
992_ACEOF
252b5132 993fi
252b5132 994
42ecbf5e 995if test -n "$ac_init_help"; then
252b5132 996
42ecbf5e 997 cat <<\_ACEOF
252b5132 998
42ecbf5e
DJ
999Optional Features:
1000 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1001 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1002 --disable-dependency-tracking speeds up one-time build
1003 --enable-dependency-tracking do not reject slow dependency extractors
d7040cdb
SE
1004 --enable-shared[=PKGS]
1005 build shared libraries [default=yes]
1006 --enable-static[=PKGS]
1007 build static libraries [default=yes]
1008 --enable-fast-install[=PKGS]
1009 optimize for fast installation [default=yes]
42ecbf5e
DJ
1010 --disable-libtool-lock avoid locking (might break parallel builds)
1011 --enable-targets alternative target configurations
1012 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
241a6c40
AM
1013 --enable-werror treat compile warnings as errors
1014 --enable-build-warnings enable build-time compiler warnings
42ecbf5e
DJ
1015 --disable-nls do not use Native Language Support
1016 --enable-maintainer-mode enable make rules and dependencies not useful
1017 (and sometimes confusing) to the casual installer
5ba684e2 1018 --disable-rpath do not hardcode runtime library paths
42ecbf5e
DJ
1019
1020Optional Packages:
1021 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1022 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1023 --with-pic try to use only PIC/non-PIC objects [default=use
1024 both]
1025 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
5ba684e2
NC
1026 --with-gnu-ld assume the C compiler uses GNU ld default=no
1027 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1028 --without-libiconv-prefix don't search for libiconv in includedir and libdir
252b5132 1029
42ecbf5e
DJ
1030Some influential environment variables:
1031 CC C compiler command
1032 CFLAGS C compiler flags
1033 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1034 nonstandard directory <lib dir>
1035 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1036 headers in a nonstandard directory <include dir>
1037 CPP C preprocessor
e5a52504 1038
42ecbf5e
DJ
1039Use these variables to override the choices made by `configure' or to help
1040it to find libraries and programs with nonstandard names/locations.
1041
1042_ACEOF
252b5132
RH
1043fi
1044
42ecbf5e
DJ
1045if test "$ac_init_help" = "recursive"; then
1046 # If there are subdirs, report their specific --help.
1047 ac_popdir=`pwd`
1048 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1049 test -d $ac_dir || continue
1050 ac_builddir=.
1051
1052if test "$ac_dir" != .; then
1053 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1054 # A "../" for each directory in $ac_dir_suffix.
1055 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1056else
1057 ac_dir_suffix= ac_top_builddir=
1058fi
252b5132 1059
42ecbf5e
DJ
1060case $srcdir in
1061 .) # No --srcdir option. We are building in place.
1062 ac_srcdir=.
1063 if test -z "$ac_top_builddir"; then
1064 ac_top_srcdir=.
1065 else
1066 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
252b5132 1067 fi ;;
42ecbf5e
DJ
1068 [\\/]* | ?:[\\/]* ) # Absolute path.
1069 ac_srcdir=$srcdir$ac_dir_suffix;
1070 ac_top_srcdir=$srcdir ;;
1071 *) # Relative path.
1072 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1073 ac_top_srcdir=$ac_top_builddir$srcdir ;;
252b5132
RH
1074esac
1075
42ecbf5e
DJ
1076# Do not use `cd foo && pwd` to compute absolute paths, because
1077# the directories may not exist.
1078case `pwd` in
1079.) ac_abs_builddir="$ac_dir";;
1080*)
1081 case "$ac_dir" in
1082 .) ac_abs_builddir=`pwd`;;
1083 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1084 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1085 esac;;
252b5132 1086esac
42ecbf5e
DJ
1087case $ac_abs_builddir in
1088.) ac_abs_top_builddir=${ac_top_builddir}.;;
1089*)
1090 case ${ac_top_builddir}. in
1091 .) ac_abs_top_builddir=$ac_abs_builddir;;
1092 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1093 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1094 esac;;
1095esac
1096case $ac_abs_builddir in
1097.) ac_abs_srcdir=$ac_srcdir;;
1098*)
1099 case $ac_srcdir in
1100 .) ac_abs_srcdir=$ac_abs_builddir;;
1101 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1102 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1103 esac;;
1104esac
1105case $ac_abs_builddir in
1106.) ac_abs_top_srcdir=$ac_top_srcdir;;
1107*)
1108 case $ac_top_srcdir in
1109 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1110 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1111 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1112 esac;;
d15b04bd 1113esac
5d64ca4e 1114
42ecbf5e
DJ
1115 cd $ac_dir
1116 # Check for guested configure; otherwise get Cygnus style configure.
1117 if test -f $ac_srcdir/configure.gnu; then
1118 echo
1119 $SHELL $ac_srcdir/configure.gnu --help=recursive
1120 elif test -f $ac_srcdir/configure; then
1121 echo
1122 $SHELL $ac_srcdir/configure --help=recursive
1123 elif test -f $ac_srcdir/configure.ac ||
1124 test -f $ac_srcdir/configure.in; then
1125 echo
1126 $ac_configure --help
1127 else
1128 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1129 fi
b7d4af3a 1130 cd $ac_popdir
42ecbf5e
DJ
1131 done
1132fi
5d64ca4e 1133
42ecbf5e
DJ
1134test -n "$ac_init_help" && exit 0
1135if $ac_init_version; then
1136 cat <<\_ACEOF
5d64ca4e 1137
42ecbf5e
DJ
1138Copyright (C) 2003 Free Software Foundation, Inc.
1139This configure script is free software; the Free Software Foundation
1140gives unlimited permission to copy, distribute and modify it.
1141_ACEOF
1142 exit 0
1143fi
1144exec 5>config.log
1145cat >&5 <<_ACEOF
1146This file contains any messages produced by compilers while
1147running configure, to aid debugging if configure makes a mistake.
429cc0ae 1148
42ecbf5e
DJ
1149It was created by $as_me, which was
1150generated by GNU Autoconf 2.59. Invocation command line was
252b5132 1151
42ecbf5e 1152 $ $0 $@
e5a52504 1153
42ecbf5e
DJ
1154_ACEOF
1155{
1156cat <<_ASUNAME
1157## --------- ##
1158## Platform. ##
1159## --------- ##
1160
1161hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166
1167/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1169
1170/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1171/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1172/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1174/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1175/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1176/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1177
1178_ASUNAME
1179
1180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181for as_dir in $PATH
1182do
1183 IFS=$as_save_IFS
1184 test -z "$as_dir" && as_dir=.
1185 echo "PATH: $as_dir"
1186done
e5a52504 1187
42ecbf5e 1188} >&5
ceae3e33 1189
42ecbf5e 1190cat >&5 <<_ACEOF
e5a52504 1191
42ecbf5e
DJ
1192
1193## ----------- ##
1194## Core tests. ##
1195## ----------- ##
1196
1197_ACEOF
1198
1199
1200# Keep a trace of the command line.
1201# Strip out --no-create and --no-recursion so they do not pile up.
1202# Strip out --silent because we don't want to record it for future runs.
1203# Also quote any args containing shell meta-characters.
1204# Make two passes to allow for proper duplicate-argument suppression.
1205ac_configure_args=
1206ac_configure_args0=
1207ac_configure_args1=
1208ac_sep=
1209ac_must_keep_next=false
1210for ac_pass in 1 2
1211do
1212 for ac_arg
1213 do
1214 case $ac_arg in
1215 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217 | -silent | --silent | --silen | --sile | --sil)
1218 continue ;;
1219 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221 esac
1222 case $ac_pass in
1223 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224 2)
1225 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226 if test $ac_must_keep_next = true; then
1227 ac_must_keep_next=false # Got value, back to normal.
1228 else
1229 case $ac_arg in
1230 *=* | --config-cache | -C | -disable-* | --disable-* \
1231 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233 | -with-* | --with-* | -without-* | --without-* | --x)
1234 case "$ac_configure_args0 " in
1235 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236 esac
1237 ;;
1238 -* ) ac_must_keep_next=true ;;
1239 esac
1240 fi
1241 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242 # Get rid of the leading space.
1243 ac_sep=" "
1244 ;;
1245 esac
1246 done
1247done
1248$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1250
1251# When interrupted or exit'd, cleanup temporary files, and complete
1252# config.log. We remove comments because anyway the quotes in there
1253# would cause problems or look ugly.
1254# WARNING: Be sure not to use single quotes in there, as some shells,
1255# such as our DU 5.0 friend, will then `close' the trap.
1256trap 'exit_status=$?
1257 # Save into config.log some information that might help in debugging.
1258 {
1259 echo
1260
1261 cat <<\_ASBOX
1262## ---------------- ##
1263## Cache variables. ##
1264## ---------------- ##
1265_ASBOX
1266 echo
1267 # The following way of writing the cache mishandles newlines in values,
1268{
1269 (set) 2>&1 |
1270 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271 *ac_space=\ *)
1272 sed -n \
1273 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275 ;;
1276 *)
1277 sed -n \
1278 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279 ;;
1280 esac;
1281}
1282 echo
1283
1284 cat <<\_ASBOX
1285## ----------------- ##
1286## Output variables. ##
1287## ----------------- ##
1288_ASBOX
1289 echo
1290 for ac_var in $ac_subst_vars
1291 do
1292 eval ac_val=$`echo $ac_var`
1293 echo "$ac_var='"'"'$ac_val'"'"'"
1294 done | sort
1295 echo
1296
1297 if test -n "$ac_subst_files"; then
1298 cat <<\_ASBOX
1299## ------------- ##
1300## Output files. ##
1301## ------------- ##
1302_ASBOX
1303 echo
1304 for ac_var in $ac_subst_files
1305 do
1306 eval ac_val=$`echo $ac_var`
1307 echo "$ac_var='"'"'$ac_val'"'"'"
1308 done | sort
1309 echo
1310 fi
1311
1312 if test -s confdefs.h; then
1313 cat <<\_ASBOX
1314## ----------- ##
1315## confdefs.h. ##
1316## ----------- ##
1317_ASBOX
1318 echo
1319 sed "/^$/d" confdefs.h | sort
1320 echo
1321 fi
1322 test "$ac_signal" != 0 &&
1323 echo "$as_me: caught signal $ac_signal"
1324 echo "$as_me: exit $exit_status"
1325 } >&5
1326 rm -f core *.core &&
1327 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328 exit $exit_status
1329 ' 0
1330for ac_signal in 1 2 13 15; do
1331 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332done
1333ac_signal=0
1334
1335# confdefs.h avoids OS command line length limits that DEFS can exceed.
1336rm -rf conftest* confdefs.h
1337# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338echo >confdefs.h
1339
1340# Predefined preprocessor variables.
1341
1342cat >>confdefs.h <<_ACEOF
1343#define PACKAGE_NAME "$PACKAGE_NAME"
1344_ACEOF
1345
1346
1347cat >>confdefs.h <<_ACEOF
1348#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349_ACEOF
1350
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_VERSION "$PACKAGE_VERSION"
1354_ACEOF
1355
1356
1357cat >>confdefs.h <<_ACEOF
1358#define PACKAGE_STRING "$PACKAGE_STRING"
1359_ACEOF
1360
1361
1362cat >>confdefs.h <<_ACEOF
1363#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364_ACEOF
1365
1366
1367# Let the site file select an alternate cache file if it wants to.
1368# Prefer explicitly selected file to automatically selected ones.
1369if test -z "$CONFIG_SITE"; then
1370 if test "x$prefix" != xNONE; then
1371 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372 else
1373 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374 fi
1375fi
1376for ac_site_file in $CONFIG_SITE; do
1377 if test -r "$ac_site_file"; then
1378 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379echo "$as_me: loading site script $ac_site_file" >&6;}
1380 sed 's/^/| /' "$ac_site_file" >&5
1381 . "$ac_site_file"
1382 fi
1383done
1384
1385if test -r "$cache_file"; then
1386 # Some versions of bash will fail to source /dev/null (special
1387 # files actually), so we avoid doing that.
1388 if test -f "$cache_file"; then
1389 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390echo "$as_me: loading cache $cache_file" >&6;}
1391 case $cache_file in
1392 [\\/]* | ?:[\\/]* ) . $cache_file;;
1393 *) . ./$cache_file;;
1394 esac
1395 fi
1396else
1397 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398echo "$as_me: creating cache $cache_file" >&6;}
1399 >$cache_file
1400fi
1401
1402# Check that the precious variables saved in the cache have kept the same
1403# value.
1404ac_cache_corrupted=false
1405for ac_var in `(set) 2>&1 |
1406 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408 eval ac_new_set=\$ac_env_${ac_var}_set
1409 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410 eval ac_new_val="\$ac_env_${ac_var}_value"
1411 case $ac_old_set,$ac_new_set in
1412 set,)
1413 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415 ac_cache_corrupted=: ;;
1416 ,set)
1417 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419 ac_cache_corrupted=: ;;
1420 ,);;
1421 *)
1422 if test "x$ac_old_val" != "x$ac_new_val"; then
6194aaab
L
1423 # differences in whitespace do not lead to failure.
1424 ac_old_val_w=`echo x $ac_old_val`
1425 ac_new_val_w=`echo x $ac_new_val`
1426 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1427 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
42ecbf5e 1428echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
6194aaab
L
1429 ac_cache_corrupted=:
1430 else
1431 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1432echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1433 eval $ac_var=\$ac_old_val
1434 fi
1435 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1436echo "$as_me: former value: \`$ac_old_val'" >&2;}
1437 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1438echo "$as_me: current value: \`$ac_new_val'" >&2;}
42ecbf5e
DJ
1439 fi;;
1440 esac
1441 # Pass precious variables to config.status.
1442 if test "$ac_new_set" = set; then
1443 case $ac_new_val in
1444 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1445 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1446 *) ac_arg=$ac_var=$ac_new_val ;;
1447 esac
1448 case " $ac_configure_args " in
1449 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1450 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1451 esac
1452 fi
1453done
1454if $ac_cache_corrupted; then
1455 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1456echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1457 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1458echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1459 { (exit 1); exit 1; }; }
1460fi
1461
1462ac_ext=c
1463ac_cpp='$CPP $CPPFLAGS'
1464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1466ac_compiler_gnu=$ac_cv_c_compiler_gnu
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487ac_aux_dir=
1488for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1489 if test -f $ac_dir/install-sh; then
1490 ac_aux_dir=$ac_dir
1491 ac_install_sh="$ac_aux_dir/install-sh -c"
1492 break
1493 elif test -f $ac_dir/install.sh; then
1494 ac_aux_dir=$ac_dir
1495 ac_install_sh="$ac_aux_dir/install.sh -c"
1496 break
1497 elif test -f $ac_dir/shtool; then
1498 ac_aux_dir=$ac_dir
1499 ac_install_sh="$ac_aux_dir/shtool install -c"
1500 break
1501 fi
1502done
1503if test -z "$ac_aux_dir"; then
1504 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1505echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1506 { (exit 1); exit 1; }; }
1507fi
1508ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1509ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1510ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1511
1512# Make sure we can run config.sub.
1513$ac_config_sub sun4 >/dev/null 2>&1 ||
1514 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1515echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1516 { (exit 1); exit 1; }; }
1517
1518echo "$as_me:$LINENO: checking build system type" >&5
1519echo $ECHO_N "checking build system type... $ECHO_C" >&6
1520if test "${ac_cv_build+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1522else
1523 ac_cv_build_alias=$build_alias
1524test -z "$ac_cv_build_alias" &&
1525 ac_cv_build_alias=`$ac_config_guess`
1526test -z "$ac_cv_build_alias" &&
1527 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1528echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1529 { (exit 1); exit 1; }; }
1530ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1531 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1532echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1533 { (exit 1); exit 1; }; }
1534
1535fi
1536echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1537echo "${ECHO_T}$ac_cv_build" >&6
1538build=$ac_cv_build
1539build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1540build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1541build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1542
1543
1544echo "$as_me:$LINENO: checking host system type" >&5
1545echo $ECHO_N "checking host system type... $ECHO_C" >&6
1546if test "${ac_cv_host+set}" = set; then
1547 echo $ECHO_N "(cached) $ECHO_C" >&6
1548else
1549 ac_cv_host_alias=$host_alias
1550test -z "$ac_cv_host_alias" &&
1551 ac_cv_host_alias=$ac_cv_build_alias
1552ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1553 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1554echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1555 { (exit 1); exit 1; }; }
1556
1557fi
1558echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1559echo "${ECHO_T}$ac_cv_host" >&6
1560host=$ac_cv_host
1561host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1562host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1563host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1564
1565
1566echo "$as_me:$LINENO: checking target system type" >&5
1567echo $ECHO_N "checking target system type... $ECHO_C" >&6
1568if test "${ac_cv_target+set}" = set; then
1569 echo $ECHO_N "(cached) $ECHO_C" >&6
1570else
1571 ac_cv_target_alias=$target_alias
1572test "x$ac_cv_target_alias" = "x" &&
1573 ac_cv_target_alias=$ac_cv_host_alias
1574ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1575 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1576echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1577 { (exit 1); exit 1; }; }
1578
1579fi
1580echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1581echo "${ECHO_T}$ac_cv_target" >&6
1582target=$ac_cv_target
1583target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1584target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1585target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1586
1587
1588# The aliases save the names the user supplied, while $host etc.
1589# will get canonicalized.
1590test -n "$target_alias" &&
1591 test "$program_prefix$program_suffix$program_transform_name" = \
1592 NONENONEs,x,x, &&
1593 program_prefix=${target_alias}-
1594ac_ext=c
1595ac_cpp='$CPP $CPPFLAGS'
1596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1598ac_compiler_gnu=$ac_cv_c_compiler_gnu
1599if test -n "$ac_tool_prefix"; then
1600 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1601set dummy ${ac_tool_prefix}gcc; ac_word=$2
1602echo "$as_me:$LINENO: checking for $ac_word" >&5
1603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1604if test "${ac_cv_prog_CC+set}" = set; then
1605 echo $ECHO_N "(cached) $ECHO_C" >&6
1606else
1607 if test -n "$CC"; then
1608 ac_cv_prog_CC="$CC" # Let the user override the test.
1609else
1610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611for as_dir in $PATH
1612do
1613 IFS=$as_save_IFS
1614 test -z "$as_dir" && as_dir=.
1615 for ac_exec_ext in '' $ac_executable_extensions; do
1616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1617 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1619 break 2
1620 fi
1621done
1622done
1623
1624fi
1625fi
1626CC=$ac_cv_prog_CC
1627if test -n "$CC"; then
1628 echo "$as_me:$LINENO: result: $CC" >&5
1629echo "${ECHO_T}$CC" >&6
1630else
1631 echo "$as_me:$LINENO: result: no" >&5
1632echo "${ECHO_T}no" >&6
1633fi
1634
1635fi
1636if test -z "$ac_cv_prog_CC"; then
1637 ac_ct_CC=$CC
1638 # Extract the first word of "gcc", so it can be a program name with args.
1639set dummy gcc; ac_word=$2
1640echo "$as_me:$LINENO: checking for $ac_word" >&5
1641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1642if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1644else
1645 if test -n "$ac_ct_CC"; then
1646 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1647else
1648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649for as_dir in $PATH
1650do
1651 IFS=$as_save_IFS
1652 test -z "$as_dir" && as_dir=.
1653 for ac_exec_ext in '' $ac_executable_extensions; do
1654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1655 ac_cv_prog_ac_ct_CC="gcc"
1656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1657 break 2
1658 fi
1659done
1660done
1661
1662fi
1663fi
1664ac_ct_CC=$ac_cv_prog_ac_ct_CC
1665if test -n "$ac_ct_CC"; then
1666 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1667echo "${ECHO_T}$ac_ct_CC" >&6
1668else
1669 echo "$as_me:$LINENO: result: no" >&5
1670echo "${ECHO_T}no" >&6
1671fi
1672
1673 CC=$ac_ct_CC
1674else
1675 CC="$ac_cv_prog_CC"
1676fi
1677
1678if test -z "$CC"; then
1679 if test -n "$ac_tool_prefix"; then
1680 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1681set dummy ${ac_tool_prefix}cc; ac_word=$2
1682echo "$as_me:$LINENO: checking for $ac_word" >&5
1683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1684if test "${ac_cv_prog_CC+set}" = set; then
1685 echo $ECHO_N "(cached) $ECHO_C" >&6
1686else
1687 if test -n "$CC"; then
1688 ac_cv_prog_CC="$CC" # Let the user override the test.
1689else
1690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1691for as_dir in $PATH
1692do
1693 IFS=$as_save_IFS
1694 test -z "$as_dir" && as_dir=.
1695 for ac_exec_ext in '' $ac_executable_extensions; do
1696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1697 ac_cv_prog_CC="${ac_tool_prefix}cc"
1698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1699 break 2
1700 fi
1701done
1702done
1703
1704fi
1705fi
1706CC=$ac_cv_prog_CC
1707if test -n "$CC"; then
1708 echo "$as_me:$LINENO: result: $CC" >&5
1709echo "${ECHO_T}$CC" >&6
1710else
1711 echo "$as_me:$LINENO: result: no" >&5
1712echo "${ECHO_T}no" >&6
1713fi
1714
1715fi
1716if test -z "$ac_cv_prog_CC"; then
1717 ac_ct_CC=$CC
1718 # Extract the first word of "cc", so it can be a program name with args.
1719set dummy cc; ac_word=$2
1720echo "$as_me:$LINENO: checking for $ac_word" >&5
1721echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1722if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1723 echo $ECHO_N "(cached) $ECHO_C" >&6
1724else
1725 if test -n "$ac_ct_CC"; then
1726 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1727else
1728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1729for as_dir in $PATH
1730do
1731 IFS=$as_save_IFS
1732 test -z "$as_dir" && as_dir=.
1733 for ac_exec_ext in '' $ac_executable_extensions; do
1734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1735 ac_cv_prog_ac_ct_CC="cc"
1736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1737 break 2
1738 fi
1739done
1740done
1741
1742fi
1743fi
1744ac_ct_CC=$ac_cv_prog_ac_ct_CC
1745if test -n "$ac_ct_CC"; then
1746 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1747echo "${ECHO_T}$ac_ct_CC" >&6
1748else
1749 echo "$as_me:$LINENO: result: no" >&5
1750echo "${ECHO_T}no" >&6
1751fi
1752
1753 CC=$ac_ct_CC
1754else
1755 CC="$ac_cv_prog_CC"
1756fi
1757
1758fi
1759if test -z "$CC"; then
1760 # Extract the first word of "cc", so it can be a program name with args.
1761set dummy cc; ac_word=$2
1762echo "$as_me:$LINENO: checking for $ac_word" >&5
1763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1764if test "${ac_cv_prog_CC+set}" = set; then
1765 echo $ECHO_N "(cached) $ECHO_C" >&6
1766else
1767 if test -n "$CC"; then
1768 ac_cv_prog_CC="$CC" # Let the user override the test.
1769else
1770 ac_prog_rejected=no
1771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1772for as_dir in $PATH
1773do
1774 IFS=$as_save_IFS
1775 test -z "$as_dir" && as_dir=.
1776 for ac_exec_ext in '' $ac_executable_extensions; do
1777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1778 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1779 ac_prog_rejected=yes
1780 continue
1781 fi
1782 ac_cv_prog_CC="cc"
1783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1784 break 2
1785 fi
1786done
1787done
1788
1789if test $ac_prog_rejected = yes; then
1790 # We found a bogon in the path, so make sure we never use it.
1791 set dummy $ac_cv_prog_CC
1792 shift
1793 if test $# != 0; then
1794 # We chose a different compiler from the bogus one.
1795 # However, it has the same basename, so the bogon will be chosen
1796 # first if we set CC to just the basename; use the full file name.
1797 shift
1798 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1799 fi
1800fi
1801fi
1802fi
1803CC=$ac_cv_prog_CC
1804if test -n "$CC"; then
1805 echo "$as_me:$LINENO: result: $CC" >&5
1806echo "${ECHO_T}$CC" >&6
1807else
1808 echo "$as_me:$LINENO: result: no" >&5
1809echo "${ECHO_T}no" >&6
1810fi
1811
1812fi
1813if test -z "$CC"; then
1814 if test -n "$ac_tool_prefix"; then
1815 for ac_prog in cl
1816 do
1817 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1818set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1819echo "$as_me:$LINENO: checking for $ac_word" >&5
1820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1821if test "${ac_cv_prog_CC+set}" = set; then
1822 echo $ECHO_N "(cached) $ECHO_C" >&6
1823else
1824 if test -n "$CC"; then
1825 ac_cv_prog_CC="$CC" # Let the user override the test.
1826else
1827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1828for as_dir in $PATH
1829do
1830 IFS=$as_save_IFS
1831 test -z "$as_dir" && as_dir=.
1832 for ac_exec_ext in '' $ac_executable_extensions; do
1833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1834 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1836 break 2
1837 fi
1838done
1839done
1840
1841fi
1842fi
1843CC=$ac_cv_prog_CC
1844if test -n "$CC"; then
1845 echo "$as_me:$LINENO: result: $CC" >&5
1846echo "${ECHO_T}$CC" >&6
1847else
1848 echo "$as_me:$LINENO: result: no" >&5
1849echo "${ECHO_T}no" >&6
1850fi
1851
1852 test -n "$CC" && break
1853 done
1854fi
1855if test -z "$CC"; then
1856 ac_ct_CC=$CC
1857 for ac_prog in cl
1858do
1859 # Extract the first word of "$ac_prog", so it can be a program name with args.
1860set dummy $ac_prog; ac_word=$2
1861echo "$as_me:$LINENO: checking for $ac_word" >&5
1862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1863if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1864 echo $ECHO_N "(cached) $ECHO_C" >&6
1865else
1866 if test -n "$ac_ct_CC"; then
1867 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1868else
1869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1870for as_dir in $PATH
1871do
1872 IFS=$as_save_IFS
1873 test -z "$as_dir" && as_dir=.
1874 for ac_exec_ext in '' $ac_executable_extensions; do
1875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1876 ac_cv_prog_ac_ct_CC="$ac_prog"
1877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1878 break 2
1879 fi
1880done
1881done
1882
1883fi
1884fi
1885ac_ct_CC=$ac_cv_prog_ac_ct_CC
1886if test -n "$ac_ct_CC"; then
1887 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1888echo "${ECHO_T}$ac_ct_CC" >&6
1889else
1890 echo "$as_me:$LINENO: result: no" >&5
1891echo "${ECHO_T}no" >&6
1892fi
1893
1894 test -n "$ac_ct_CC" && break
1895done
1896
1897 CC=$ac_ct_CC
1898fi
1899
1900fi
1901
1902
1903test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1904See \`config.log' for more details." >&5
1905echo "$as_me: error: no acceptable C compiler found in \$PATH
1906See \`config.log' for more details." >&2;}
1907 { (exit 1); exit 1; }; }
1908
1909# Provide some information about the compiler.
1910echo "$as_me:$LINENO:" \
1911 "checking for C compiler version" >&5
1912ac_compiler=`set X $ac_compile; echo $2`
1913{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1914 (eval $ac_compiler --version </dev/null >&5) 2>&5
1915 ac_status=$?
1916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1917 (exit $ac_status); }
1918{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1919 (eval $ac_compiler -v </dev/null >&5) 2>&5
1920 ac_status=$?
1921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922 (exit $ac_status); }
1923{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1924 (eval $ac_compiler -V </dev/null >&5) 2>&5
1925 ac_status=$?
1926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1927 (exit $ac_status); }
1928
1929cat >conftest.$ac_ext <<_ACEOF
1930/* confdefs.h. */
1931_ACEOF
1932cat confdefs.h >>conftest.$ac_ext
1933cat >>conftest.$ac_ext <<_ACEOF
1934/* end confdefs.h. */
1935
1936int
1937main ()
1938{
1939
1940 ;
1941 return 0;
1942}
1943_ACEOF
1944ac_clean_files_save=$ac_clean_files
1945ac_clean_files="$ac_clean_files a.out a.exe b.out"
1946# Try to create an executable without -o first, disregard a.out.
1947# It will help us diagnose broken compilers, and finding out an intuition
1948# of exeext.
1949echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1950echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1951ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1952if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1953 (eval $ac_link_default) 2>&5
1954 ac_status=$?
1955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956 (exit $ac_status); }; then
1957 # Find the output, starting from the most likely. This scheme is
1958# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1959# resort.
1960
1961# Be careful to initialize this variable, since it used to be cached.
1962# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1963ac_cv_exeext=
1964# b.out is created by i960 compilers.
1965for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1966do
1967 test -f "$ac_file" || continue
1968 case $ac_file in
1969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1970 ;;
1971 conftest.$ac_ext )
1972 # This is the source file.
1973 ;;
1974 [ab].out )
1975 # We found the default executable, but exeext='' is most
1976 # certainly right.
1977 break;;
1978 *.* )
1979 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1980 # FIXME: I believe we export ac_cv_exeext for Libtool,
1981 # but it would be cool to find out if it's true. Does anybody
1982 # maintain Libtool? --akim.
1983 export ac_cv_exeext
1984 break;;
1985 * )
1986 break;;
1987 esac
1988done
1989else
1990 echo "$as_me: failed program was:" >&5
1991sed 's/^/| /' conftest.$ac_ext >&5
1992
1993{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1994See \`config.log' for more details." >&5
1995echo "$as_me: error: C compiler cannot create executables
1996See \`config.log' for more details." >&2;}
1997 { (exit 77); exit 77; }; }
1998fi
1999
2000ac_exeext=$ac_cv_exeext
2001echo "$as_me:$LINENO: result: $ac_file" >&5
2002echo "${ECHO_T}$ac_file" >&6
2003
2004# Check the compiler produces executables we can run. If not, either
2005# the compiler is broken, or we cross compile.
2006echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2007echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2008# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2009# If not cross compiling, check that we can run a simple program.
2010if test "$cross_compiling" != yes; then
2011 if { ac_try='./$ac_file'
2012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2013 (eval $ac_try) 2>&5
2014 ac_status=$?
2015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2016 (exit $ac_status); }; }; then
2017 cross_compiling=no
2018 else
2019 if test "$cross_compiling" = maybe; then
2020 cross_compiling=yes
2021 else
2022 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2023If you meant to cross compile, use \`--host'.
2024See \`config.log' for more details." >&5
2025echo "$as_me: error: cannot run C compiled programs.
2026If you meant to cross compile, use \`--host'.
2027See \`config.log' for more details." >&2;}
2028 { (exit 1); exit 1; }; }
2029 fi
2030 fi
2031fi
2032echo "$as_me:$LINENO: result: yes" >&5
2033echo "${ECHO_T}yes" >&6
2034
2035rm -f a.out a.exe conftest$ac_cv_exeext b.out
2036ac_clean_files=$ac_clean_files_save
2037# Check the compiler produces executables we can run. If not, either
2038# the compiler is broken, or we cross compile.
2039echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2040echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2041echo "$as_me:$LINENO: result: $cross_compiling" >&5
2042echo "${ECHO_T}$cross_compiling" >&6
2043
2044echo "$as_me:$LINENO: checking for suffix of executables" >&5
2045echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2047 (eval $ac_link) 2>&5
2048 ac_status=$?
2049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2050 (exit $ac_status); }; then
2051 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2052# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2053# work properly (i.e., refer to `conftest.exe'), while it won't with
2054# `rm'.
2055for ac_file in conftest.exe conftest conftest.*; do
2056 test -f "$ac_file" || continue
2057 case $ac_file in
2058 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2059 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2060 export ac_cv_exeext
2061 break;;
2062 * ) break;;
2063 esac
2064done
2065else
2066 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2067See \`config.log' for more details." >&5
2068echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2069See \`config.log' for more details." >&2;}
2070 { (exit 1); exit 1; }; }
2071fi
2072
2073rm -f conftest$ac_cv_exeext
2074echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2075echo "${ECHO_T}$ac_cv_exeext" >&6
2076
2077rm -f conftest.$ac_ext
2078EXEEXT=$ac_cv_exeext
2079ac_exeext=$EXEEXT
2080echo "$as_me:$LINENO: checking for suffix of object files" >&5
2081echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2082if test "${ac_cv_objext+set}" = set; then
2083 echo $ECHO_N "(cached) $ECHO_C" >&6
2084else
2085 cat >conftest.$ac_ext <<_ACEOF
2086/* confdefs.h. */
2087_ACEOF
2088cat confdefs.h >>conftest.$ac_ext
2089cat >>conftest.$ac_ext <<_ACEOF
2090/* end confdefs.h. */
2091
2092int
2093main ()
2094{
2095
2096 ;
2097 return 0;
2098}
2099_ACEOF
2100rm -f conftest.o conftest.obj
2101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2102 (eval $ac_compile) 2>&5
2103 ac_status=$?
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); }; then
2106 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2107 case $ac_file in
2108 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2109 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2110 break;;
2111 esac
2112done
2113else
2114 echo "$as_me: failed program was:" >&5
2115sed 's/^/| /' conftest.$ac_ext >&5
2116
2117{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2118See \`config.log' for more details." >&5
2119echo "$as_me: error: cannot compute suffix of object files: cannot compile
2120See \`config.log' for more details." >&2;}
2121 { (exit 1); exit 1; }; }
2122fi
2123
2124rm -f conftest.$ac_cv_objext conftest.$ac_ext
2125fi
2126echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2127echo "${ECHO_T}$ac_cv_objext" >&6
2128OBJEXT=$ac_cv_objext
2129ac_objext=$OBJEXT
2130echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2131echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2132if test "${ac_cv_c_compiler_gnu+set}" = set; then
2133 echo $ECHO_N "(cached) $ECHO_C" >&6
2134else
2135 cat >conftest.$ac_ext <<_ACEOF
2136/* confdefs.h. */
2137_ACEOF
2138cat confdefs.h >>conftest.$ac_ext
2139cat >>conftest.$ac_ext <<_ACEOF
2140/* end confdefs.h. */
2141
2142int
2143main ()
2144{
2145#ifndef __GNUC__
2146 choke me
2147#endif
2148
2149 ;
2150 return 0;
2151}
2152_ACEOF
2153rm -f conftest.$ac_objext
2154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2155 (eval $ac_compile) 2>conftest.er1
2156 ac_status=$?
2157 grep -v '^ *+' conftest.er1 >conftest.err
2158 rm -f conftest.er1
2159 cat conftest.err >&5
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); } &&
b7d4af3a
JW
2162 { ac_try='test -z "$ac_c_werror_flag"
2163 || test ! -s conftest.err'
42ecbf5e
DJ
2164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2165 (eval $ac_try) 2>&5
2166 ac_status=$?
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); }; } &&
2169 { ac_try='test -s conftest.$ac_objext'
2170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171 (eval $ac_try) 2>&5
2172 ac_status=$?
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; }; then
2175 ac_compiler_gnu=yes
2176else
2177 echo "$as_me: failed program was:" >&5
2178sed 's/^/| /' conftest.$ac_ext >&5
2179
2180ac_compiler_gnu=no
2181fi
2182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2183ac_cv_c_compiler_gnu=$ac_compiler_gnu
2184
2185fi
2186echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2187echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2188GCC=`test $ac_compiler_gnu = yes && echo yes`
2189ac_test_CFLAGS=${CFLAGS+set}
2190ac_save_CFLAGS=$CFLAGS
2191CFLAGS="-g"
2192echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2193echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2194if test "${ac_cv_prog_cc_g+set}" = set; then
2195 echo $ECHO_N "(cached) $ECHO_C" >&6
2196else
2197 cat >conftest.$ac_ext <<_ACEOF
2198/* confdefs.h. */
2199_ACEOF
2200cat confdefs.h >>conftest.$ac_ext
2201cat >>conftest.$ac_ext <<_ACEOF
2202/* end confdefs.h. */
2203
2204int
2205main ()
2206{
2207
2208 ;
2209 return 0;
2210}
2211_ACEOF
2212rm -f conftest.$ac_objext
2213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2214 (eval $ac_compile) 2>conftest.er1
2215 ac_status=$?
2216 grep -v '^ *+' conftest.er1 >conftest.err
2217 rm -f conftest.er1
2218 cat conftest.err >&5
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); } &&
b7d4af3a
JW
2221 { ac_try='test -z "$ac_c_werror_flag"
2222 || test ! -s conftest.err'
42ecbf5e
DJ
2223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2224 (eval $ac_try) 2>&5
2225 ac_status=$?
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }; } &&
2228 { ac_try='test -s conftest.$ac_objext'
2229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230 (eval $ac_try) 2>&5
2231 ac_status=$?
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; }; then
2234 ac_cv_prog_cc_g=yes
2235else
2236 echo "$as_me: failed program was:" >&5
2237sed 's/^/| /' conftest.$ac_ext >&5
2238
2239ac_cv_prog_cc_g=no
2240fi
2241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2242fi
2243echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2244echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2245if test "$ac_test_CFLAGS" = set; then
2246 CFLAGS=$ac_save_CFLAGS
2247elif test $ac_cv_prog_cc_g = yes; then
2248 if test "$GCC" = yes; then
2249 CFLAGS="-g -O2"
2250 else
2251 CFLAGS="-g"
2252 fi
2253else
2254 if test "$GCC" = yes; then
2255 CFLAGS="-O2"
2256 else
2257 CFLAGS=
2258 fi
2259fi
2260echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2261echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2262if test "${ac_cv_prog_cc_stdc+set}" = set; then
2263 echo $ECHO_N "(cached) $ECHO_C" >&6
2264else
2265 ac_cv_prog_cc_stdc=no
2266ac_save_CC=$CC
2267cat >conftest.$ac_ext <<_ACEOF
2268/* confdefs.h. */
2269_ACEOF
2270cat confdefs.h >>conftest.$ac_ext
2271cat >>conftest.$ac_ext <<_ACEOF
2272/* end confdefs.h. */
2273#include <stdarg.h>
2274#include <stdio.h>
2275#include <sys/types.h>
2276#include <sys/stat.h>
2277/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2278struct buf { int x; };
2279FILE * (*rcsopen) (struct buf *, struct stat *, int);
2280static char *e (p, i)
2281 char **p;
2282 int i;
2283{
2284 return p[i];
2285}
2286static char *f (char * (*g) (char **, int), char **p, ...)
2287{
2288 char *s;
2289 va_list v;
2290 va_start (v,p);
2291 s = g (p, va_arg (v,int));
2292 va_end (v);
2293 return s;
2294}
2295
2296/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2297 function prototypes and stuff, but not '\xHH' hex character constants.
2298 These don't provoke an error unfortunately, instead are silently treated
2299 as 'x'. The following induces an error, until -std1 is added to get
2300 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2301 array size at least. It's necessary to write '\x00'==0 to get something
2302 that's true only with -std1. */
2303int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2304
2305int test (int i, double x);
2306struct s1 {int (*f) (int a);};
2307struct s2 {int (*f) (double a);};
2308int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2309int argc;
2310char **argv;
2311int
2312main ()
2313{
2314return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2315 ;
2316 return 0;
2317}
2318_ACEOF
2319# Don't try gcc -ansi; that turns off useful extensions and
2320# breaks some systems' header files.
2321# AIX -qlanglvl=ansi
2322# Ultrix and OSF/1 -std1
2323# HP-UX 10.20 and later -Ae
2324# HP-UX older versions -Aa -D_HPUX_SOURCE
2325# SVR4 -Xc -D__EXTENSIONS__
2326for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2327do
2328 CC="$ac_save_CC $ac_arg"
2329 rm -f conftest.$ac_objext
2330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2331 (eval $ac_compile) 2>conftest.er1
2332 ac_status=$?
2333 grep -v '^ *+' conftest.er1 >conftest.err
2334 rm -f conftest.er1
2335 cat conftest.err >&5
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); } &&
b7d4af3a
JW
2338 { ac_try='test -z "$ac_c_werror_flag"
2339 || test ! -s conftest.err'
42ecbf5e
DJ
2340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2341 (eval $ac_try) 2>&5
2342 ac_status=$?
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); }; } &&
2345 { ac_try='test -s conftest.$ac_objext'
2346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2347 (eval $ac_try) 2>&5
2348 ac_status=$?
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); }; }; then
2351 ac_cv_prog_cc_stdc=$ac_arg
2352break
2353else
2354 echo "$as_me: failed program was:" >&5
2355sed 's/^/| /' conftest.$ac_ext >&5
2356
2357fi
2358rm -f conftest.err conftest.$ac_objext
2359done
2360rm -f conftest.$ac_ext conftest.$ac_objext
2361CC=$ac_save_CC
2362
2363fi
2364
2365case "x$ac_cv_prog_cc_stdc" in
2366 x|xno)
2367 echo "$as_me:$LINENO: result: none needed" >&5
2368echo "${ECHO_T}none needed" >&6 ;;
2369 *)
2370 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2371echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2372 CC="$CC $ac_cv_prog_cc_stdc" ;;
2373esac
2374
2375# Some people use a C++ compiler to compile C. Since we use `exit',
2376# in C++ we need to declare it. In case someone uses the same compiler
2377# for both compiling C and C++ we need to have the C++ compiler decide
2378# the declaration of exit, since it's the most demanding environment.
2379cat >conftest.$ac_ext <<_ACEOF
2380#ifndef __cplusplus
2381 choke me
2382#endif
2383_ACEOF
2384rm -f conftest.$ac_objext
2385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2386 (eval $ac_compile) 2>conftest.er1
2387 ac_status=$?
2388 grep -v '^ *+' conftest.er1 >conftest.err
2389 rm -f conftest.er1
2390 cat conftest.err >&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); } &&
b7d4af3a
JW
2393 { ac_try='test -z "$ac_c_werror_flag"
2394 || test ! -s conftest.err'
42ecbf5e
DJ
2395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396 (eval $ac_try) 2>&5
2397 ac_status=$?
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; } &&
2400 { ac_try='test -s conftest.$ac_objext'
2401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402 (eval $ac_try) 2>&5
2403 ac_status=$?
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; }; then
2406 for ac_declaration in \
2407 '' \
2408 'extern "C" void std::exit (int) throw (); using std::exit;' \
2409 'extern "C" void std::exit (int); using std::exit;' \
2410 'extern "C" void exit (int) throw ();' \
2411 'extern "C" void exit (int);' \
2412 'void exit (int);'
2413do
2414 cat >conftest.$ac_ext <<_ACEOF
2415/* confdefs.h. */
2416_ACEOF
2417cat confdefs.h >>conftest.$ac_ext
2418cat >>conftest.$ac_ext <<_ACEOF
2419/* end confdefs.h. */
2420$ac_declaration
2421#include <stdlib.h>
2422int
2423main ()
2424{
2425exit (42);
2426 ;
2427 return 0;
2428}
2429_ACEOF
2430rm -f conftest.$ac_objext
2431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2432 (eval $ac_compile) 2>conftest.er1
2433 ac_status=$?
2434 grep -v '^ *+' conftest.er1 >conftest.err
2435 rm -f conftest.er1
2436 cat conftest.err >&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); } &&
b7d4af3a
JW
2439 { ac_try='test -z "$ac_c_werror_flag"
2440 || test ! -s conftest.err'
42ecbf5e
DJ
2441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442 (eval $ac_try) 2>&5
2443 ac_status=$?
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); }; } &&
2446 { ac_try='test -s conftest.$ac_objext'
2447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448 (eval $ac_try) 2>&5
2449 ac_status=$?
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); }; }; then
2452 :
2453else
2454 echo "$as_me: failed program was:" >&5
2455sed 's/^/| /' conftest.$ac_ext >&5
2456
2457continue
2458fi
2459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2460 cat >conftest.$ac_ext <<_ACEOF
2461/* confdefs.h. */
2462_ACEOF
2463cat confdefs.h >>conftest.$ac_ext
2464cat >>conftest.$ac_ext <<_ACEOF
2465/* end confdefs.h. */
2466$ac_declaration
2467int
2468main ()
2469{
2470exit (42);
2471 ;
2472 return 0;
2473}
2474_ACEOF
2475rm -f conftest.$ac_objext
2476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2477 (eval $ac_compile) 2>conftest.er1
2478 ac_status=$?
2479 grep -v '^ *+' conftest.er1 >conftest.err
2480 rm -f conftest.er1
2481 cat conftest.err >&5
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); } &&
b7d4af3a
JW
2484 { ac_try='test -z "$ac_c_werror_flag"
2485 || test ! -s conftest.err'
42ecbf5e
DJ
2486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487 (eval $ac_try) 2>&5
2488 ac_status=$?
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }; } &&
2491 { ac_try='test -s conftest.$ac_objext'
2492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493 (eval $ac_try) 2>&5
2494 ac_status=$?
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; }; then
2497 break
2498else
2499 echo "$as_me: failed program was:" >&5
2500sed 's/^/| /' conftest.$ac_ext >&5
2501
2502fi
2503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2504done
2505rm -f conftest*
2506if test -n "$ac_declaration"; then
2507 echo '#ifdef __cplusplus' >>confdefs.h
2508 echo $ac_declaration >>confdefs.h
2509 echo '#endif' >>confdefs.h
2510fi
2511
2512else
2513 echo "$as_me: failed program was:" >&5
2514sed 's/^/| /' conftest.$ac_ext >&5
2515
2516fi
2517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2518ac_ext=c
2519ac_cpp='$CPP $CPPFLAGS'
2520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2522ac_compiler_gnu=$ac_cv_c_compiler_gnu
2523
2524
2525echo "$as_me:$LINENO: checking for library containing strerror" >&5
2526echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2527if test "${ac_cv_search_strerror+set}" = set; then
2528 echo $ECHO_N "(cached) $ECHO_C" >&6
2529else
2530 ac_func_search_save_LIBS=$LIBS
2531ac_cv_search_strerror=no
2532cat >conftest.$ac_ext <<_ACEOF
2533/* confdefs.h. */
2534_ACEOF
2535cat confdefs.h >>conftest.$ac_ext
2536cat >>conftest.$ac_ext <<_ACEOF
2537/* end confdefs.h. */
2538
2539/* Override any gcc2 internal prototype to avoid an error. */
2540#ifdef __cplusplus
2541extern "C"
2542#endif
2543/* We use char because int might match the return type of a gcc2
2544 builtin and then its argument prototype would still apply. */
2545char strerror ();
2546int
2547main ()
2548{
2549strerror ();
2550 ;
2551 return 0;
2552}
2553_ACEOF
2554rm -f conftest.$ac_objext conftest$ac_exeext
2555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2556 (eval $ac_link) 2>conftest.er1
2557 ac_status=$?
2558 grep -v '^ *+' conftest.er1 >conftest.err
2559 rm -f conftest.er1
2560 cat conftest.err >&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); } &&
b7d4af3a
JW
2563 { ac_try='test -z "$ac_c_werror_flag"
2564 || test ! -s conftest.err'
42ecbf5e
DJ
2565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566 (eval $ac_try) 2>&5
2567 ac_status=$?
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; } &&
2570 { ac_try='test -s conftest$ac_exeext'
2571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572 (eval $ac_try) 2>&5
2573 ac_status=$?
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; }; then
2576 ac_cv_search_strerror="none required"
2577else
2578 echo "$as_me: failed program was:" >&5
2579sed 's/^/| /' conftest.$ac_ext >&5
2580
2581fi
2582rm -f conftest.err conftest.$ac_objext \
2583 conftest$ac_exeext conftest.$ac_ext
2584if test "$ac_cv_search_strerror" = no; then
2585 for ac_lib in cposix; do
2586 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2587 cat >conftest.$ac_ext <<_ACEOF
2588/* confdefs.h. */
2589_ACEOF
2590cat confdefs.h >>conftest.$ac_ext
2591cat >>conftest.$ac_ext <<_ACEOF
2592/* end confdefs.h. */
2593
2594/* Override any gcc2 internal prototype to avoid an error. */
2595#ifdef __cplusplus
2596extern "C"
2597#endif
2598/* We use char because int might match the return type of a gcc2
2599 builtin and then its argument prototype would still apply. */
2600char strerror ();
2601int
2602main ()
2603{
2604strerror ();
2605 ;
2606 return 0;
2607}
2608_ACEOF
2609rm -f conftest.$ac_objext conftest$ac_exeext
2610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2611 (eval $ac_link) 2>conftest.er1
2612 ac_status=$?
2613 grep -v '^ *+' conftest.er1 >conftest.err
2614 rm -f conftest.er1
2615 cat conftest.err >&5
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); } &&
b7d4af3a
JW
2618 { ac_try='test -z "$ac_c_werror_flag"
2619 || test ! -s conftest.err'
42ecbf5e
DJ
2620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621 (eval $ac_try) 2>&5
2622 ac_status=$?
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; } &&
2625 { ac_try='test -s conftest$ac_exeext'
2626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 (eval $ac_try) 2>&5
2628 ac_status=$?
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; }; then
2631 ac_cv_search_strerror="-l$ac_lib"
2632break
2633else
2634 echo "$as_me: failed program was:" >&5
2635sed 's/^/| /' conftest.$ac_ext >&5
2636
2637fi
2638rm -f conftest.err conftest.$ac_objext \
2639 conftest$ac_exeext conftest.$ac_ext
2640 done
2641fi
2642LIBS=$ac_func_search_save_LIBS
2643fi
2644echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2645echo "${ECHO_T}$ac_cv_search_strerror" >&6
2646if test "$ac_cv_search_strerror" != no; then
2647 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2648
2649fi
2650
2651
2652BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2653am__api_version="1.9"
2654# Find a good install program. We prefer a C program (faster),
2655# so one script is as good as another. But avoid the broken or
2656# incompatible versions:
2657# SysV /etc/install, /usr/sbin/install
2658# SunOS /usr/etc/install
2659# IRIX /sbin/install
2660# AIX /bin/install
2661# AmigaOS /C/install, which installs bootblocks on floppy discs
2662# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2663# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2664# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2665# OS/2's system install, which has a completely different semantic
2666# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2667# Reject install programs that cannot install multiple files.
42ecbf5e
DJ
2668echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2669echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2670if test -z "$INSTALL"; then
2671if test "${ac_cv_path_install+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2673else
2674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675for as_dir in $PATH
2676do
2677 IFS=$as_save_IFS
2678 test -z "$as_dir" && as_dir=.
2679 # Account for people who put trailing slashes in PATH elements.
2680case $as_dir/ in
2681 ./ | .// | /cC/* | \
2682 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2683 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2684 /usr/ucb/* ) ;;
2685 *)
2686 # OSF1 and SCO ODT 3.0 have their own names for install.
2687 # Don't use installbsd from OSF since it installs stuff as root
2688 # by default.
2689 for ac_prog in ginstall scoinst install; do
2690 for ac_exec_ext in '' $ac_executable_extensions; do
2691 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2692 if test $ac_prog = install &&
2693 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2694 # AIX install. It has an incompatible calling convention.
2695 :
42ecbf5e
DJ
2696 elif test $ac_prog = install &&
2697 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2698 # program-specific install script used by HP pwplus--don't use.
2699 :
252b5132 2700 else
58c85be7
RW
2701 rm -rf conftest.one conftest.two conftest.dir
2702 echo one > conftest.one
2703 echo two > conftest.two
2704 mkdir conftest.dir
2705 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2706 test -s conftest.one && test -s conftest.two &&
2707 test -s conftest.dir/conftest.one &&
2708 test -s conftest.dir/conftest.two
2709 then
2710 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2711 break 3
2712 fi
252b5132
RH
2713 fi
2714 fi
d15b04bd 2715 done
42ecbf5e
DJ
2716 done
2717 ;;
2718esac
2719done
2720
58c85be7 2721rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
2722
2723fi
2724 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 2725 INSTALL=$ac_cv_path_install
252b5132 2726 else
58c85be7
RW
2727 # As a last resort, use the slow shell script. Don't cache a
2728 # value for INSTALL within a source directory, because that will
252b5132 2729 # break other packages using the cache if that directory is
58c85be7 2730 # removed, or if the value is a relative name.
42ecbf5e 2731 INSTALL=$ac_install_sh
252b5132
RH
2732 fi
2733fi
42ecbf5e
DJ
2734echo "$as_me:$LINENO: result: $INSTALL" >&5
2735echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2736
2737# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2738# It thinks the first close brace ends the variable substitution.
2739test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2740
42ecbf5e 2741test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2742
2743test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2744
42ecbf5e
DJ
2745echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2746echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2747# Just in case
2748sleep 1
42ecbf5e 2749echo timestamp > conftest.file
252b5132
RH
2750# Do `set' in a subshell so we don't clobber the current shell's
2751# arguments. Must try -L first in case configure is actually a
2752# symlink; some systems play weird games with the mod time of symlinks
2753# (eg FreeBSD returns the mod time of the symlink's containing
2754# directory).
2755if (
42ecbf5e 2756 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2757 if test "$*" = "X"; then
2758 # -L didn't work.
42ecbf5e 2759 set X `ls -t $srcdir/configure conftest.file`
252b5132 2760 fi
42ecbf5e
DJ
2761 rm -f conftest.file
2762 if test "$*" != "X $srcdir/configure conftest.file" \
2763 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2764
2765 # If neither matched, then we have a broken ls. This can happen
2766 # if, for instance, CONFIG_SHELL is bash and it inherits a
2767 # broken ls alias from the environment. This has actually
2768 # happened. Such a system could not be considered "sane".
42ecbf5e
DJ
2769 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2770alias in your environment" >&5
2771echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2772alias in your environment" >&2;}
2773 { (exit 1); exit 1; }; }
252b5132
RH
2774 fi
2775
42ecbf5e 2776 test "$2" = conftest.file
252b5132
RH
2777 )
2778then
2779 # Ok.
2780 :
2781else
42ecbf5e
DJ
2782 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2783Check your system clock" >&5
2784echo "$as_me: error: newly created file is older than distributed files!
2785Check your system clock" >&2;}
2786 { (exit 1); exit 1; }; }
2787fi
2788echo "$as_me:$LINENO: result: yes" >&5
2789echo "${ECHO_T}yes" >&6
2790test "$program_prefix" != NONE &&
2791 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2792# Use a double $ so make ignores it.
2793test "$program_suffix" != NONE &&
2794 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2795# Double any \ or $. echo might interpret backslashes.
2796# By default was `s,x,x', remove it if useless.
2797cat <<\_ACEOF >conftest.sed
2798s/[\\$]/&&/g;s/;s,x,x,$//
2799_ACEOF
2800program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2801rm conftest.sed
2802
2803# expand $ac_aux_dir to an absolute path
2804am_aux_dir=`cd $ac_aux_dir && pwd`
2805
2806test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2807# Use eval to expand $SHELL
2808if eval "$MISSING --run true"; then
2809 am_missing_run="$MISSING --run "
2810else
2811 am_missing_run=
2812 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2813echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2814fi
2815
2816if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2817 # We used to keeping the `.' as first argument, in order to
2818 # allow $(mkdir_p) to be used without argument. As in
2819 # $(mkdir_p) $(somedir)
2820 # where $(somedir) is conditionally defined. However this is wrong
2821 # for two reasons:
2822 # 1. if the package is installed by a user who cannot write `.'
2823 # make install will fail,
2824 # 2. the above comment should most certainly read
2825 # $(mkdir_p) $(DESTDIR)$(somedir)
2826 # so it does not work when $(somedir) is undefined and
2827 # $(DESTDIR) is not.
2828 # To support the latter case, we have to write
2829 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2830 # so the `.' trick is pointless.
2831 mkdir_p='mkdir -p --'
2832else
2833 # On NextStep and OpenStep, the `mkdir' command does not
2834 # recognize any option. It will interpret all options as
2835 # directories to create, and then abort because `.' already
2836 # exists.
2837 for d in ./-p ./--version;
2838 do
2839 test -d $d && rmdir $d
2840 done
2841 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2842 if test -f "$ac_aux_dir/mkinstalldirs"; then
2843 mkdir_p='$(mkinstalldirs)'
2844 else
2845 mkdir_p='$(install_sh) -d'
2846 fi
2847fi
2848
2849for ac_prog in gawk mawk nawk awk
2850do
2851 # Extract the first word of "$ac_prog", so it can be a program name with args.
2852set dummy $ac_prog; ac_word=$2
2853echo "$as_me:$LINENO: checking for $ac_word" >&5
2854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2855if test "${ac_cv_prog_AWK+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2857else
2858 if test -n "$AWK"; then
2859 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2860else
2861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862for as_dir in $PATH
2863do
2864 IFS=$as_save_IFS
2865 test -z "$as_dir" && as_dir=.
2866 for ac_exec_ext in '' $ac_executable_extensions; do
2867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2868 ac_cv_prog_AWK="$ac_prog"
2869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2870 break 2
2871 fi
2872done
2873done
2874
2875fi
2876fi
2877AWK=$ac_cv_prog_AWK
2878if test -n "$AWK"; then
2879 echo "$as_me:$LINENO: result: $AWK" >&5
2880echo "${ECHO_T}$AWK" >&6
2881else
2882 echo "$as_me:$LINENO: result: no" >&5
2883echo "${ECHO_T}no" >&6
2884fi
2885
2886 test -n "$AWK" && break
2887done
2888
2889echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2890echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2891set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2892if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
2894else
2895 cat >conftest.make <<\_ACEOF
2896all:
2897 @echo 'ac_maketemp="$(MAKE)"'
2898_ACEOF
2899# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2900eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2901if test -n "$ac_maketemp"; then
2902 eval ac_cv_prog_make_${ac_make}_set=yes
2903else
2904 eval ac_cv_prog_make_${ac_make}_set=no
2905fi
2906rm -f conftest.make
2907fi
2908if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2909 echo "$as_me:$LINENO: result: yes" >&5
2910echo "${ECHO_T}yes" >&6
2911 SET_MAKE=
2912else
2913 echo "$as_me:$LINENO: result: no" >&5
2914echo "${ECHO_T}no" >&6
2915 SET_MAKE="MAKE=${MAKE-make}"
2916fi
2917
2918rm -rf .tst 2>/dev/null
2919mkdir .tst 2>/dev/null
2920if test -d .tst; then
2921 am__leading_dot=.
2922else
2923 am__leading_dot=_
2924fi
2925rmdir .tst 2>/dev/null
2926
2927DEPDIR="${am__leading_dot}deps"
2928
2929 ac_config_commands="$ac_config_commands depfiles"
2930
2931
2932am_make=${MAKE-make}
2933cat > confinc << 'END'
2934am__doit:
2935 @echo done
2936.PHONY: am__doit
2937END
2938# If we don't find an include directive, just comment out the code.
2939echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2940echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2941am__include="#"
2942am__quote=
2943_am_result=none
2944# First try GNU make style include.
2945echo "include confinc" > confmf
2946# We grep out `Entering directory' and `Leaving directory'
2947# messages which can occur if `w' ends up in MAKEFLAGS.
2948# In particular we don't look at `^make:' because GNU make might
2949# be invoked under some other name (usually "gmake"), in which
2950# case it prints its new name instead of `make'.
2951if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2952 am__include=include
2953 am__quote=
2954 _am_result=GNU
2955fi
2956# Now try BSD make style include.
2957if test "$am__include" = "#"; then
2958 echo '.include "confinc"' > confmf
2959 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2960 am__include=.include
2961 am__quote="\""
2962 _am_result=BSD
2963 fi
2964fi
2965
2966
2967echo "$as_me:$LINENO: result: $_am_result" >&5
2968echo "${ECHO_T}$_am_result" >&6
2969rm -f confinc confmf
2970
2971# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2972if test "${enable_dependency_tracking+set}" = set; then
2973 enableval="$enable_dependency_tracking"
2974
2975fi;
2976if test "x$enable_dependency_tracking" != xno; then
2977 am_depcomp="$ac_aux_dir/depcomp"
2978 AMDEPBACKSLASH='\'
2979fi
2980
2981
2982if test "x$enable_dependency_tracking" != xno; then
2983 AMDEP_TRUE=
2984 AMDEP_FALSE='#'
2985else
2986 AMDEP_TRUE='#'
2987 AMDEP_FALSE=
2988fi
2989
2990
2991
2992# test to see if srcdir already configured
2993if test "`cd $srcdir && pwd`" != "`pwd`" &&
2994 test -f $srcdir/config.status; then
2995 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2996echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2997 { (exit 1); exit 1; }; }
2998fi
2999
3000# test whether we have cygpath
3001if test -z "$CYGPATH_W"; then
3002 if (cygpath --version) >/dev/null 2>/dev/null; then
3003 CYGPATH_W='cygpath -w'
3004 else
3005 CYGPATH_W=echo
3006 fi
3007fi
3008
3009
3010# Define the identity of the package.
3011 PACKAGE=binutils
3012 VERSION=${BFD_VERSION}
3013
3014
3015cat >>confdefs.h <<_ACEOF
3016#define PACKAGE "$PACKAGE"
3017_ACEOF
3018
3019
3020cat >>confdefs.h <<_ACEOF
3021#define VERSION "$VERSION"
3022_ACEOF
3023
3024# Some tools Automake needs.
3025
3026ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3027
3028
3029AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3030
3031
3032AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3033
3034
3035AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3036
3037
3038MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3039
3040install_sh=${install_sh-"$am_aux_dir/install-sh"}
3041
3042# Installed binaries are usually stripped using `strip' when the user
3043# run `make install-strip'. However `strip' might not be the right
3044# tool to use in cross-compilation environments, therefore Automake
3045# will honor the `STRIP' environment variable to overrule this program.
3046if test "$cross_compiling" != no; then
3047 if test -n "$ac_tool_prefix"; then
3048 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3049set dummy ${ac_tool_prefix}strip; ac_word=$2
3050echo "$as_me:$LINENO: checking for $ac_word" >&5
3051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3052if test "${ac_cv_prog_STRIP+set}" = set; then
3053 echo $ECHO_N "(cached) $ECHO_C" >&6
3054else
3055 if test -n "$STRIP"; then
3056 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3057else
3058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059for as_dir in $PATH
3060do
3061 IFS=$as_save_IFS
3062 test -z "$as_dir" && as_dir=.
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3065 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 break 2
3068 fi
3069done
3070done
3071
252b5132 3072fi
42ecbf5e
DJ
3073fi
3074STRIP=$ac_cv_prog_STRIP
3075if test -n "$STRIP"; then
3076 echo "$as_me:$LINENO: result: $STRIP" >&5
3077echo "${ECHO_T}$STRIP" >&6
d15b04bd 3078else
42ecbf5e
DJ
3079 echo "$as_me:$LINENO: result: no" >&5
3080echo "${ECHO_T}no" >&6
d15b04bd 3081fi
d15b04bd 3082
42ecbf5e
DJ
3083fi
3084if test -z "$ac_cv_prog_STRIP"; then
3085 ac_ct_STRIP=$STRIP
3086 # Extract the first word of "strip", so it can be a program name with args.
3087set dummy strip; ac_word=$2
3088echo "$as_me:$LINENO: checking for $ac_word" >&5
3089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3090if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3091 echo $ECHO_N "(cached) $ECHO_C" >&6
d15b04bd 3092else
42ecbf5e
DJ
3093 if test -n "$ac_ct_STRIP"; then
3094 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
252b5132 3095else
42ecbf5e
DJ
3096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097for as_dir in $PATH
3098do
3099 IFS=$as_save_IFS
3100 test -z "$as_dir" && as_dir=.
3101 for ac_exec_ext in '' $ac_executable_extensions; do
3102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3103 ac_cv_prog_ac_ct_STRIP="strip"
3104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3105 break 2
3106 fi
3107done
3108done
3109
3110 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
252b5132 3111fi
252b5132 3112fi
42ecbf5e
DJ
3113ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3114if test -n "$ac_ct_STRIP"; then
3115 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3116echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 3117else
42ecbf5e
DJ
3118 echo "$as_me:$LINENO: result: no" >&5
3119echo "${ECHO_T}no" >&6
252b5132
RH
3120fi
3121
42ecbf5e
DJ
3122 STRIP=$ac_ct_STRIP
3123else
3124 STRIP="$ac_cv_prog_STRIP"
3125fi
252b5132 3126
42ecbf5e
DJ
3127fi
3128INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
252b5132 3129
42ecbf5e
DJ
3130# We need awk for the "check" target. The system "awk" is bad on
3131# some platforms.
3132# Always define AMTAR for backward compatibility.
252b5132 3133
42ecbf5e 3134AMTAR=${AMTAR-"${am_missing_run}tar"}
252b5132 3135
42ecbf5e 3136am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
252b5132
RH
3137
3138
3139
252b5132 3140
42ecbf5e
DJ
3141depcc="$CC" am_compiler_list=
3142
3143echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3144echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3145if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3146 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3147else
42ecbf5e
DJ
3148 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3149 # We make a subdir and do the tests there. Otherwise we can end up
3150 # making bogus files that we don't know about and never remove. For
3151 # instance it was reported that on HP-UX the gcc test will end up
3152 # making a dummy file named `D' -- because `-MD' means `put the output
3153 # in D'.
3154 mkdir conftest.dir
3155 # Copy depcomp to subdir because otherwise we won't find it if we're
3156 # using a relative directory.
3157 cp "$am_depcomp" conftest.dir
3158 cd conftest.dir
3159 # We will build objects and dependencies in a subdirectory because
3160 # it helps to detect inapplicable dependency modes. For instance
3161 # both Tru64's cc and ICC support -MD to output dependencies as a
3162 # side effect of compilation, but ICC will put the dependencies in
3163 # the current directory while Tru64 will put them in the object
3164 # directory.
3165 mkdir sub
252b5132 3166
42ecbf5e
DJ
3167 am_cv_CC_dependencies_compiler_type=none
3168 if test "$am_compiler_list" = ""; then
3169 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3170 fi
3171 for depmode in $am_compiler_list; do
3172 # Setup a source with many dependencies, because some compilers
3173 # like to wrap large dependency lists on column 80 (with \), and
3174 # we should not choose a depcomp mode which is confused by this.
3175 #
3176 # We need to recreate these files for each test, as the compiler may
3177 # overwrite some of them when testing with obscure command lines.
3178 # This happens at least with the AIX C compiler.
3179 : > sub/conftest.c
3180 for i in 1 2 3 4 5 6; do
3181 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3182 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3183 # Solaris 8's {/usr,}/bin/sh.
3184 touch sub/conftst$i.h
3185 done
3186 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3187
3188 case $depmode in
3189 nosideeffect)
3190 # after this tag, mechanisms are not by side-effect, so they'll
3191 # only be used when explicitly requested
3192 if test "x$enable_dependency_tracking" = xyes; then
3193 continue
3194 else
3195 break
3196 fi
3197 ;;
3198 none) break ;;
3199 esac
3200 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3201 # mode. It turns out that the SunPro C++ compiler does not properly
3202 # handle `-M -o', and we need to detect this.
3203 if depmode=$depmode \
3204 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3205 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3206 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3207 >/dev/null 2>conftest.err &&
3208 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3209 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3210 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3211 # icc doesn't choke on unknown options, it will just issue warnings
3212 # or remarks (even with -Werror). So we grep stderr for any message
3213 # that says an option was ignored or not supported.
3214 # When given -MP, icc 7.0 and 7.1 complain thusly:
3215 # icc: Command line warning: ignoring option '-M'; no argument required
3216 # The diagnosis changed in icc 8.0:
3217 # icc: Command line remark: option '-MP' not supported
3218 if (grep 'ignoring option' conftest.err ||
3219 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3220 am_cv_CC_dependencies_compiler_type=$depmode
3221 break
3222 fi
3223 fi
3224 done
3225
3226 cd ..
3227 rm -rf conftest.dir
252b5132 3228else
42ecbf5e 3229 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3230fi
3231
252b5132 3232fi
42ecbf5e
DJ
3233echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3234echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3235CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3236
3237
252b5132 3238
42ecbf5e
DJ
3239if
3240 test "x$enable_dependency_tracking" != xno \
3241 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3242 am__fastdepCC_TRUE=
3243 am__fastdepCC_FALSE='#'
252b5132 3244else
42ecbf5e
DJ
3245 am__fastdepCC_TRUE='#'
3246 am__fastdepCC_FALSE=
252b5132
RH
3247fi
3248
3249
3250
42ecbf5e 3251
d45dc31f
SE
3252ac_ext=c
3253ac_cpp='$CPP $CPPFLAGS'
3254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3256ac_compiler_gnu=$ac_cv_c_compiler_gnu
3257if test -n "$ac_tool_prefix"; then
3258 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3259set dummy ${ac_tool_prefix}gcc; ac_word=$2
3260echo "$as_me:$LINENO: checking for $ac_word" >&5
3261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3262if test "${ac_cv_prog_CC+set}" = set; then
3263 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3264else
d45dc31f
SE
3265 if test -n "$CC"; then
3266 ac_cv_prog_CC="$CC" # Let the user override the test.
1a09a22c 3267else
d45dc31f
SE
3268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269for as_dir in $PATH
3270do
3271 IFS=$as_save_IFS
3272 test -z "$as_dir" && as_dir=.
3273 for ac_exec_ext in '' $ac_executable_extensions; do
3274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3275 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3277 break 2
3278 fi
3279done
3280done
ceae3e33 3281
d45dc31f
SE
3282fi
3283fi
3284CC=$ac_cv_prog_CC
3285if test -n "$CC"; then
3286 echo "$as_me:$LINENO: result: $CC" >&5
3287echo "${ECHO_T}$CC" >&6
252b5132 3288else
d45dc31f
SE
3289 echo "$as_me:$LINENO: result: no" >&5
3290echo "${ECHO_T}no" >&6
252b5132 3291fi
d45dc31f
SE
3292
3293fi
3294if test -z "$ac_cv_prog_CC"; then
3295 ac_ct_CC=$CC
3296 # Extract the first word of "gcc", so it can be a program name with args.
3297set dummy gcc; ac_word=$2
3298echo "$as_me:$LINENO: checking for $ac_word" >&5
3299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3300if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
42ecbf5e 3301 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3302else
d45dc31f
SE
3303 if test -n "$ac_ct_CC"; then
3304 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3305else
d45dc31f
SE
3306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307for as_dir in $PATH
3308do
3309 IFS=$as_save_IFS
3310 test -z "$as_dir" && as_dir=.
3311 for ac_exec_ext in '' $ac_executable_extensions; do
3312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3313 ac_cv_prog_ac_ct_CC="gcc"
3314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3315 break 2
3316 fi
3317done
3318done
3319
252b5132
RH
3320fi
3321fi
d45dc31f
SE
3322ac_ct_CC=$ac_cv_prog_ac_ct_CC
3323if test -n "$ac_ct_CC"; then
3324 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3325echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 3326else
42ecbf5e
DJ
3327 echo "$as_me:$LINENO: result: no" >&5
3328echo "${ECHO_T}no" >&6
252b5132 3329fi
d45dc31f
SE
3330
3331 CC=$ac_ct_CC
3332else
3333 CC="$ac_cv_prog_CC"
3334fi
3335
3336if test -z "$CC"; then
3337 if test -n "$ac_tool_prefix"; then
3338 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3339set dummy ${ac_tool_prefix}cc; ac_word=$2
3340echo "$as_me:$LINENO: checking for $ac_word" >&5
3341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3342if test "${ac_cv_prog_CC+set}" = set; then
42ecbf5e 3343 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3344else
d45dc31f
SE
3345 if test -n "$CC"; then
3346 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3347else
d45dc31f
SE
3348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349for as_dir in $PATH
3350do
3351 IFS=$as_save_IFS
3352 test -z "$as_dir" && as_dir=.
3353 for ac_exec_ext in '' $ac_executable_extensions; do
3354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3355 ac_cv_prog_CC="${ac_tool_prefix}cc"
3356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3357 break 2
3358 fi
3359done
3360done
3361
252b5132
RH
3362fi
3363fi
d45dc31f
SE
3364CC=$ac_cv_prog_CC
3365if test -n "$CC"; then
3366 echo "$as_me:$LINENO: result: $CC" >&5
3367echo "${ECHO_T}$CC" >&6
ac48eca1 3368else
d45dc31f
SE
3369 echo "$as_me:$LINENO: result: no" >&5
3370echo "${ECHO_T}no" >&6
ac48eca1 3371fi
ac48eca1 3372
d45dc31f
SE
3373fi
3374if test -z "$ac_cv_prog_CC"; then
3375 ac_ct_CC=$CC
3376 # Extract the first word of "cc", so it can be a program name with args.
3377set dummy cc; ac_word=$2
3378echo "$as_me:$LINENO: checking for $ac_word" >&5
3379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3380if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
42ecbf5e 3381 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3382else
d45dc31f
SE
3383 if test -n "$ac_ct_CC"; then
3384 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3385else
d45dc31f
SE
3386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387for as_dir in $PATH
3388do
3389 IFS=$as_save_IFS
3390 test -z "$as_dir" && as_dir=.
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393 ac_cv_prog_ac_ct_CC="cc"
3394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3395 break 2
3396 fi
3397done
3398done
3399
252b5132 3400fi
d45dc31f
SE
3401fi
3402ac_ct_CC=$ac_cv_prog_ac_ct_CC
3403if test -n "$ac_ct_CC"; then
3404 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3405echo "${ECHO_T}$ac_ct_CC" >&6
3406else
3407 echo "$as_me:$LINENO: result: no" >&5
3408echo "${ECHO_T}no" >&6
252b5132
RH
3409fi
3410
d45dc31f
SE
3411 CC=$ac_ct_CC
3412else
3413 CC="$ac_cv_prog_CC"
3414fi
252b5132 3415
d45dc31f
SE
3416fi
3417if test -z "$CC"; then
3418 # Extract the first word of "cc", so it can be a program name with args.
3419set dummy cc; ac_word=$2
3420echo "$as_me:$LINENO: checking for $ac_word" >&5
3421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3422if test "${ac_cv_prog_CC+set}" = set; then
3423 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3424else
d45dc31f
SE
3425 if test -n "$CC"; then
3426 ac_cv_prog_CC="$CC" # Let the user override the test.
3427else
3428 ac_prog_rejected=no
3429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430for as_dir in $PATH
3431do
3432 IFS=$as_save_IFS
3433 test -z "$as_dir" && as_dir=.
3434 for ac_exec_ext in '' $ac_executable_extensions; do
3435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3436 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3437 ac_prog_rejected=yes
3438 continue
3439 fi
3440 ac_cv_prog_CC="cc"
3441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3442 break 2
3443 fi
3444done
3445done
3446
3447if test $ac_prog_rejected = yes; then
3448 # We found a bogon in the path, so make sure we never use it.
3449 set dummy $ac_cv_prog_CC
3450 shift
3451 if test $# != 0; then
3452 # We chose a different compiler from the bogus one.
3453 # However, it has the same basename, so the bogon will be chosen
3454 # first if we set CC to just the basename; use the full file name.
3455 shift
3456 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3457 fi
3458fi
3459fi
3460fi
3461CC=$ac_cv_prog_CC
3462if test -n "$CC"; then
3463 echo "$as_me:$LINENO: result: $CC" >&5
3464echo "${ECHO_T}$CC" >&6
3465else
3466 echo "$as_me:$LINENO: result: no" >&5
3467echo "${ECHO_T}no" >&6
252b5132
RH
3468fi
3469
d45dc31f
SE
3470fi
3471if test -z "$CC"; then
3472 if test -n "$ac_tool_prefix"; then
3473 for ac_prog in cl
3474 do
3475 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3476set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3477echo "$as_me:$LINENO: checking for $ac_word" >&5
3478echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3479if test "${ac_cv_prog_CC+set}" = set; then
42ecbf5e 3480 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3481else
d45dc31f
SE
3482 if test -n "$CC"; then
3483 ac_cv_prog_CC="$CC" # Let the user override the test.
3484else
3485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3486for as_dir in $PATH
3487do
3488 IFS=$as_save_IFS
3489 test -z "$as_dir" && as_dir=.
3490 for ac_exec_ext in '' $ac_executable_extensions; do
3491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3492 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3494 break 2
3495 fi
3496done
3497done
ac48eca1 3498
d45dc31f
SE
3499fi
3500fi
3501CC=$ac_cv_prog_CC
3502if test -n "$CC"; then
3503 echo "$as_me:$LINENO: result: $CC" >&5
3504echo "${ECHO_T}$CC" >&6
3505else
3506 echo "$as_me:$LINENO: result: no" >&5
3507echo "${ECHO_T}no" >&6
3508fi
ac48eca1 3509
d45dc31f
SE
3510 test -n "$CC" && break
3511 done
3512fi
3513if test -z "$CC"; then
3514 ac_ct_CC=$CC
3515 for ac_prog in cl
3516do
3517 # Extract the first word of "$ac_prog", so it can be a program name with args.
3518set dummy $ac_prog; ac_word=$2
3519echo "$as_me:$LINENO: checking for $ac_word" >&5
3520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3521if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3523else
3524 if test -n "$ac_ct_CC"; then
3525 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3526else
3527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3528for as_dir in $PATH
3529do
3530 IFS=$as_save_IFS
3531 test -z "$as_dir" && as_dir=.
3532 for ac_exec_ext in '' $ac_executable_extensions; do
3533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3534 ac_cv_prog_ac_ct_CC="$ac_prog"
3535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3536 break 2
3537 fi
3538done
3539done
ac48eca1 3540
d45dc31f
SE
3541fi
3542fi
3543ac_ct_CC=$ac_cv_prog_ac_ct_CC
3544if test -n "$ac_ct_CC"; then
3545 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3546echo "${ECHO_T}$ac_ct_CC" >&6
3547else
3548 echo "$as_me:$LINENO: result: no" >&5
3549echo "${ECHO_T}no" >&6
3550fi
ac48eca1 3551
d45dc31f
SE
3552 test -n "$ac_ct_CC" && break
3553done
ac48eca1 3554
d45dc31f
SE
3555 CC=$ac_ct_CC
3556fi
ac48eca1
AO
3557
3558fi
ac48eca1 3559
ac48eca1 3560
d45dc31f
SE
3561test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3562See \`config.log' for more details." >&5
3563echo "$as_me: error: no acceptable C compiler found in \$PATH
3564See \`config.log' for more details." >&2;}
3565 { (exit 1); exit 1; }; }
ac48eca1 3566
d45dc31f
SE
3567# Provide some information about the compiler.
3568echo "$as_me:$LINENO:" \
3569 "checking for C compiler version" >&5
3570ac_compiler=`set X $ac_compile; echo $2`
3571{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3572 (eval $ac_compiler --version </dev/null >&5) 2>&5
3573 ac_status=$?
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }
3576{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3577 (eval $ac_compiler -v </dev/null >&5) 2>&5
3578 ac_status=$?
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); }
3581{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3582 (eval $ac_compiler -V </dev/null >&5) 2>&5
3583 ac_status=$?
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); }
ac48eca1 3586
d45dc31f
SE
3587echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3588echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3589if test "${ac_cv_c_compiler_gnu+set}" = set; then
bdcfeba5
NC
3590 echo $ECHO_N "(cached) $ECHO_C" >&6
3591else
d45dc31f
SE
3592 cat >conftest.$ac_ext <<_ACEOF
3593/* confdefs.h. */
3594_ACEOF
3595cat confdefs.h >>conftest.$ac_ext
3596cat >>conftest.$ac_ext <<_ACEOF
3597/* end confdefs.h. */
bdcfeba5 3598
d45dc31f
SE
3599int
3600main ()
3601{
3602#ifndef __GNUC__
3603 choke me
3604#endif
bdcfeba5 3605
d45dc31f
SE
3606 ;
3607 return 0;
3608}
3609_ACEOF
3610rm -f conftest.$ac_objext
3611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3612 (eval $ac_compile) 2>conftest.er1
3613 ac_status=$?
3614 grep -v '^ *+' conftest.er1 >conftest.err
3615 rm -f conftest.er1
3616 cat conftest.err >&5
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); } &&
3619 { ac_try='test -z "$ac_c_werror_flag"
3620 || test ! -s conftest.err'
3621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622 (eval $ac_try) 2>&5
3623 ac_status=$?
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); }; } &&
3626 { ac_try='test -s conftest.$ac_objext'
3627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3628 (eval $ac_try) 2>&5
3629 ac_status=$?
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); }; }; then
3632 ac_compiler_gnu=yes
3633else
3634 echo "$as_me: failed program was:" >&5
3635sed 's/^/| /' conftest.$ac_ext >&5
bdcfeba5 3636
d45dc31f 3637ac_compiler_gnu=no
bdcfeba5 3638fi
d45dc31f
SE
3639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3640ac_cv_c_compiler_gnu=$ac_compiler_gnu
bdcfeba5 3641
bdcfeba5 3642fi
d45dc31f
SE
3643echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3644echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3645GCC=`test $ac_compiler_gnu = yes && echo yes`
3646ac_test_CFLAGS=${CFLAGS+set}
3647ac_save_CFLAGS=$CFLAGS
3648CFLAGS="-g"
3649echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3650echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3651if test "${ac_cv_prog_cc_g+set}" = set; then
42ecbf5e 3652 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3653else
d45dc31f
SE
3654 cat >conftest.$ac_ext <<_ACEOF
3655/* confdefs.h. */
3656_ACEOF
3657cat confdefs.h >>conftest.$ac_ext
3658cat >>conftest.$ac_ext <<_ACEOF
3659/* end confdefs.h. */
ac48eca1 3660
d45dc31f
SE
3661int
3662main ()
3663{
ac48eca1 3664
d45dc31f
SE
3665 ;
3666 return 0;
3667}
3668_ACEOF
3669rm -f conftest.$ac_objext
3670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3671 (eval $ac_compile) 2>conftest.er1
3672 ac_status=$?
3673 grep -v '^ *+' conftest.er1 >conftest.err
3674 rm -f conftest.er1
3675 cat conftest.err >&5
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); } &&
3678 { ac_try='test -z "$ac_c_werror_flag"
3679 || test ! -s conftest.err'
3680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681 (eval $ac_try) 2>&5
3682 ac_status=$?
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; } &&
3685 { ac_try='test -s conftest.$ac_objext'
3686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3687 (eval $ac_try) 2>&5
3688 ac_status=$?
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); }; }; then
3691 ac_cv_prog_cc_g=yes
ac48eca1 3692else
d45dc31f
SE
3693 echo "$as_me: failed program was:" >&5
3694sed 's/^/| /' conftest.$ac_ext >&5
ac48eca1 3695
d45dc31f 3696ac_cv_prog_cc_g=no
ac48eca1 3697fi
d45dc31f 3698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 3699fi
d45dc31f
SE
3700echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3701echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3702if test "$ac_test_CFLAGS" = set; then
3703 CFLAGS=$ac_save_CFLAGS
3704elif test $ac_cv_prog_cc_g = yes; then
3705 if test "$GCC" = yes; then
3706 CFLAGS="-g -O2"
ac48eca1 3707 else
d45dc31f 3708 CFLAGS="-g"
42ecbf5e 3709 fi
ac48eca1 3710else
d45dc31f
SE
3711 if test "$GCC" = yes; then
3712 CFLAGS="-O2"
3713 else
3714 CFLAGS=
42ecbf5e 3715 fi
ac48eca1 3716fi
d45dc31f
SE
3717echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3718echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3719if test "${ac_cv_prog_cc_stdc+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3721else
3722 ac_cv_prog_cc_stdc=no
3723ac_save_CC=$CC
3724cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
3725/* confdefs.h. */
3726_ACEOF
3727cat confdefs.h >>conftest.$ac_ext
3728cat >>conftest.$ac_ext <<_ACEOF
3729/* end confdefs.h. */
d45dc31f
SE
3730#include <stdarg.h>
3731#include <stdio.h>
3732#include <sys/types.h>
3733#include <sys/stat.h>
3734/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3735struct buf { int x; };
3736FILE * (*rcsopen) (struct buf *, struct stat *, int);
3737static char *e (p, i)
3738 char **p;
3739 int i;
3740{
3741 return p[i];
3742}
3743static char *f (char * (*g) (char **, int), char **p, ...)
3744{
3745 char *s;
3746 va_list v;
3747 va_start (v,p);
3748 s = g (p, va_arg (v,int));
3749 va_end (v);
3750 return s;
3751}
3752
3753/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3754 function prototypes and stuff, but not '\xHH' hex character constants.
3755 These don't provoke an error unfortunately, instead are silently treated
3756 as 'x'. The following induces an error, until -std1 is added to get
3757 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3758 array size at least. It's necessary to write '\x00'==0 to get something
3759 that's true only with -std1. */
3760int osf4_cc_array ['\x00' == 0 ? 1 : -1];
252b5132 3761
d45dc31f
SE
3762int test (int i, double x);
3763struct s1 {int (*f) (int a);};
3764struct s2 {int (*f) (double a);};
3765int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3766int argc;
3767char **argv;
42ecbf5e
DJ
3768int
3769main ()
3770{
d45dc31f 3771return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
42ecbf5e
DJ
3772 ;
3773 return 0;
3774}
3775_ACEOF
d45dc31f
SE
3776# Don't try gcc -ansi; that turns off useful extensions and
3777# breaks some systems' header files.
3778# AIX -qlanglvl=ansi
3779# Ultrix and OSF/1 -std1
3780# HP-UX 10.20 and later -Ae
3781# HP-UX older versions -Aa -D_HPUX_SOURCE
3782# SVR4 -Xc -D__EXTENSIONS__
3783for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3784do
3785 CC="$ac_save_CC $ac_arg"
3786 rm -f conftest.$ac_objext
3787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3788 (eval $ac_compile) 2>conftest.er1
42ecbf5e
DJ
3789 ac_status=$?
3790 grep -v '^ *+' conftest.er1 >conftest.err
3791 rm -f conftest.er1
3792 cat conftest.err >&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } &&
b7d4af3a
JW
3795 { ac_try='test -z "$ac_c_werror_flag"
3796 || test ! -s conftest.err'
42ecbf5e
DJ
3797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798 (eval $ac_try) 2>&5
3799 ac_status=$?
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; } &&
d45dc31f 3802 { ac_try='test -s conftest.$ac_objext'
42ecbf5e
DJ
3803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804 (eval $ac_try) 2>&5
3805 ac_status=$?
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; }; then
d45dc31f
SE
3808 ac_cv_prog_cc_stdc=$ac_arg
3809break
252b5132 3810else
42ecbf5e
DJ
3811 echo "$as_me: failed program was:" >&5
3812sed 's/^/| /' conftest.$ac_ext >&5
3813
252b5132 3814fi
d45dc31f
SE
3815rm -f conftest.err conftest.$ac_objext
3816done
3817rm -f conftest.$ac_ext conftest.$ac_objext
3818CC=$ac_save_CC
ac48eca1 3819
252b5132 3820fi
252b5132 3821
d45dc31f
SE
3822case "x$ac_cv_prog_cc_stdc" in
3823 x|xno)
3824 echo "$as_me:$LINENO: result: none needed" >&5
3825echo "${ECHO_T}none needed" >&6 ;;
3826 *)
3827 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3828echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3829 CC="$CC $ac_cv_prog_cc_stdc" ;;
252b5132
RH
3830esac
3831
d45dc31f
SE
3832# Some people use a C++ compiler to compile C. Since we use `exit',
3833# in C++ we need to declare it. In case someone uses the same compiler
3834# for both compiling C and C++ we need to have the C++ compiler decide
3835# the declaration of exit, since it's the most demanding environment.
3836cat >conftest.$ac_ext <<_ACEOF
3837#ifndef __cplusplus
3838 choke me
3839#endif
42ecbf5e 3840_ACEOF
d45dc31f
SE
3841rm -f conftest.$ac_objext
3842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3843 (eval $ac_compile) 2>conftest.er1
3844 ac_status=$?
3845 grep -v '^ *+' conftest.er1 >conftest.err
3846 rm -f conftest.er1
3847 cat conftest.err >&5
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); } &&
3850 { ac_try='test -z "$ac_c_werror_flag"
3851 || test ! -s conftest.err'
3852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3853 (eval $ac_try) 2>&5
3854 ac_status=$?
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }; } &&
3857 { ac_try='test -s conftest.$ac_objext'
3858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859 (eval $ac_try) 2>&5
3860 ac_status=$?
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); }; }; then
3863 for ac_declaration in \
3864 '' \
3865 'extern "C" void std::exit (int) throw (); using std::exit;' \
3866 'extern "C" void std::exit (int); using std::exit;' \
3867 'extern "C" void exit (int) throw ();' \
3868 'extern "C" void exit (int);' \
3869 'void exit (int);'
3870do
3871 cat >conftest.$ac_ext <<_ACEOF
3872/* confdefs.h. */
3873_ACEOF
3874cat confdefs.h >>conftest.$ac_ext
3875cat >>conftest.$ac_ext <<_ACEOF
3876/* end confdefs.h. */
3877$ac_declaration
3878#include <stdlib.h>
3879int
3880main ()
42ecbf5e 3881{
d45dc31f
SE
3882exit (42);
3883 ;
3884 return 0;
3885}
3886_ACEOF
3887rm -f conftest.$ac_objext
3888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3889 (eval $ac_compile) 2>conftest.er1
3890 ac_status=$?
3891 grep -v '^ *+' conftest.er1 >conftest.err
3892 rm -f conftest.er1
3893 cat conftest.err >&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); } &&
3896 { ac_try='test -z "$ac_c_werror_flag"
3897 || test ! -s conftest.err'
3898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3899 (eval $ac_try) 2>&5
3900 ac_status=$?
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); }; } &&
3903 { ac_try='test -s conftest.$ac_objext'
3904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3905 (eval $ac_try) 2>&5
3906 ac_status=$?
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); }; }; then
3909 :
3910else
3911 echo "$as_me: failed program was:" >&5
3912sed 's/^/| /' conftest.$ac_ext >&5
252b5132 3913
d45dc31f
SE
3914continue
3915fi
3916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3917 cat >conftest.$ac_ext <<_ACEOF
3918/* confdefs.h. */
3919_ACEOF
3920cat confdefs.h >>conftest.$ac_ext
3921cat >>conftest.$ac_ext <<_ACEOF
3922/* end confdefs.h. */
3923$ac_declaration
3924int
3925main ()
3926{
3927exit (42);
3928 ;
3929 return 0;
3930}
3931_ACEOF
3932rm -f conftest.$ac_objext
3933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3934 (eval $ac_compile) 2>conftest.er1
3935 ac_status=$?
3936 grep -v '^ *+' conftest.er1 >conftest.err
3937 rm -f conftest.er1
3938 cat conftest.err >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); } &&
3941 { ac_try='test -z "$ac_c_werror_flag"
3942 || test ! -s conftest.err'
3943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3944 (eval $ac_try) 2>&5
3945 ac_status=$?
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); }; } &&
3948 { ac_try='test -s conftest.$ac_objext'
3949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3950 (eval $ac_try) 2>&5
3951 ac_status=$?
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); }; }; then
3954 break
3955else
3956 echo "$as_me: failed program was:" >&5
3957sed 's/^/| /' conftest.$ac_ext >&5
252b5132 3958
d45dc31f
SE
3959fi
3960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3961done
3962rm -f conftest*
3963if test -n "$ac_declaration"; then
3964 echo '#ifdef __cplusplus' >>confdefs.h
3965 echo $ac_declaration >>confdefs.h
3966 echo '#endif' >>confdefs.h
3967fi
ac48eca1 3968
d45dc31f
SE
3969else
3970 echo "$as_me: failed program was:" >&5
3971sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 3972
d45dc31f
SE
3973fi
3974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3975ac_ext=c
3976ac_cpp='$CPP $CPPFLAGS'
3977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3979ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e
DJ
3980
3981
d45dc31f
SE
3982cat >>confdefs.h <<\_ACEOF
3983#define _GNU_SOURCE 1
3984_ACEOF
42ecbf5e 3985
ac48eca1 3986
d7040cdb
SE
3987
3988
3989macro_version='2.1a'
3990macro_revision='1.2435'
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003ltmain="$ac_aux_dir/ltmain.sh"
4004
4005# Set options
4006
4007enable_dlopen=no
4008
4009
4010enable_win32_dll=no
4011
4012
d45dc31f
SE
4013# Check whether --enable-shared or --disable-shared was given.
4014if test "${enable_shared+set}" = set; then
4015 enableval="$enable_shared"
4016 p=${PACKAGE-default}
d7040cdb
SE
4017 case $enableval in
4018 yes) enable_shared=yes ;;
4019 no) enable_shared=no ;;
4020 *)
4021 enable_shared=no
4022 # Look at the argument we got. We use all the common list separators.
4023 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4024 for pkg in $enableval; do
4025 IFS="$lt_save_ifs"
4026 if test "X$pkg" = "X$p"; then
4027 enable_shared=yes
4028 fi
4029 done
4030 IFS="$lt_save_ifs"
4031 ;;
4032 esac
d45dc31f
SE
4033else
4034 enable_shared=yes
4035fi;
d7040cdb
SE
4036
4037
4038
4039
4040
4041
4042
4043
d45dc31f
SE
4044# Check whether --enable-static or --disable-static was given.
4045if test "${enable_static+set}" = set; then
4046 enableval="$enable_static"
4047 p=${PACKAGE-default}
d7040cdb
SE
4048 case $enableval in
4049 yes) enable_static=yes ;;
4050 no) enable_static=no ;;
4051 *)
4052 enable_static=no
4053 # Look at the argument we got. We use all the common list separators.
4054 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4055 for pkg in $enableval; do
4056 IFS="$lt_save_ifs"
4057 if test "X$pkg" = "X$p"; then
4058 enable_static=yes
4059 fi
4060 done
4061 IFS="$lt_save_ifs"
4062 ;;
4063 esac
d45dc31f
SE
4064else
4065 enable_static=yes
4066fi;
d7040cdb
SE
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076# Check whether --with-pic or --without-pic was given.
4077if test "${with_pic+set}" = set; then
4078 withval="$with_pic"
4079 pic_mode="$withval"
4080else
4081 pic_mode=default
4082fi;
4083
4084test -z "$pic_mode" && pic_mode=default
4085
4086
4087
4088
4089
4090
4091
d45dc31f
SE
4092# Check whether --enable-fast-install or --disable-fast-install was given.
4093if test "${enable_fast_install+set}" = set; then
4094 enableval="$enable_fast_install"
4095 p=${PACKAGE-default}
d7040cdb
SE
4096 case $enableval in
4097 yes) enable_fast_install=yes ;;
4098 no) enable_fast_install=no ;;
4099 *)
4100 enable_fast_install=no
4101 # Look at the argument we got. We use all the common list separators.
4102 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4103 for pkg in $enableval; do
4104 IFS="$lt_save_ifs"
4105 if test "X$pkg" = "X$p"; then
4106 enable_fast_install=yes
4107 fi
4108 done
4109 IFS="$lt_save_ifs"
4110 ;;
4111 esac
d45dc31f
SE
4112else
4113 enable_fast_install=yes
42ecbf5e 4114fi;
ad22bfe8 4115
d7040cdb
SE
4116
4117
4118
4119
4120
4121
4122
4123echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4124echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4125if test "${lt_cv_path_SED+set}" = set; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4127else
4128 # Loop through the user's path and test for sed and gsed.
4129# Then use that list of sed's as ones to test for truncation.
4130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131for as_dir in $PATH
4132do
4133 IFS=$as_save_IFS
4134 test -z "$as_dir" && as_dir=.
4135 for lt_ac_prog in sed gsed; do
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4138 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4139 fi
4140 done
4141 done
4142done
4143IFS=$as_save_IFS
4144lt_ac_max=0
4145lt_ac_count=0
4146# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4147# along with /bin/sed that truncates output.
4148for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4149 test ! -f $lt_ac_sed && continue
4150 cat /dev/null > conftest.in
4151 lt_ac_count=0
4152 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4153 # Check for GNU sed and select it if it is found.
4154 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4155 lt_cv_path_SED=$lt_ac_sed
4156 break
4157 fi
4158 while true; do
4159 cat conftest.in conftest.in >conftest.tmp
4160 mv conftest.tmp conftest.in
4161 cp conftest.in conftest.nl
4162 echo >>conftest.nl
4163 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4164 cmp -s conftest.out conftest.nl || break
4165 # 10000 chars as input seems more than enough
4166 test $lt_ac_count -gt 10 && break
4167 lt_ac_count=`expr $lt_ac_count + 1`
4168 if test $lt_ac_count -gt $lt_ac_max; then
4169 lt_ac_max=$lt_ac_count
4170 lt_cv_path_SED=$lt_ac_sed
4171 fi
4172 done
4173done
4174
4175fi
4176
4177SED=$lt_cv_path_SED
4178
4179echo "$as_me:$LINENO: result: $SED" >&5
4180echo "${ECHO_T}$SED" >&6
4181
4182test -z "$SED" && SED=sed
4183Xsed="$SED -e 1s/^X//"
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195echo "$as_me:$LINENO: checking for egrep" >&5
4196echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4197if test "${ac_cv_prog_egrep+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4199else
4200 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4201 then ac_cv_prog_egrep='grep -E'
4202 else ac_cv_prog_egrep='egrep'
4203 fi
4204fi
4205echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4206echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4207 EGREP=$ac_cv_prog_egrep
4208
4209
4210echo "$as_me:$LINENO: checking for fgrep" >&5
4211echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4212if test "${ac_cv_prog_fgrep+set}" = set; then
4213 echo $ECHO_N "(cached) $ECHO_C" >&6
4214else
4215 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4216 then ac_cv_prog_fgrep='grep -F'
4217 else ac_cv_prog_fgrep='fgrep'
4218 fi
4219fi
4220echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4221echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4222 FGREP=$ac_cv_prog_fgrep
4223
4224
4225test -z "$GREP" && GREP=grep
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
d45dc31f
SE
4245# Check whether --with-gnu-ld or --without-gnu-ld was given.
4246if test "${with_gnu_ld+set}" = set; then
4247 withval="$with_gnu_ld"
4248 test "$withval" = no || with_gnu_ld=yes
4249else
4250 with_gnu_ld=no
42ecbf5e 4251fi;
d45dc31f
SE
4252ac_prog=ld
4253if test "$GCC" = yes; then
4254 # Check if gcc -print-prog-name=ld gives a path.
d7040cdb
SE
4255 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4256echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
d45dc31f
SE
4257 case $host in
4258 *-*-mingw*)
4259 # gcc leaves a trailing carriage return which upsets mingw
4260 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4261 *)
4262 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4263 esac
4264 case $ac_prog in
4265 # Accept absolute paths.
d7040cdb 4266 [\\/]* | ?:[\\/]*)
d45dc31f 4267 re_direlt='/[^/][^/]*/\.\./'
d7040cdb
SE
4268 # Canonicalize the pathname of ld
4269 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4270 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4271 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
d45dc31f
SE
4272 done
4273 test -z "$LD" && LD="$ac_prog"
4274 ;;
4275 "")
4276 # If it fails, then pretend we aren't using GCC.
4277 ac_prog=ld
4278 ;;
4279 *)
4280 # If it is relative, then search for the first ld in PATH.
4281 with_gnu_ld=unknown
4282 ;;
4283 esac
4284elif test "$with_gnu_ld" = yes; then
4285 echo "$as_me:$LINENO: checking for GNU ld" >&5
4286echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4287else
4288 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4289echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4290fi
4291if test "${lt_cv_path_LD+set}" = set; then
4292 echo $ECHO_N "(cached) $ECHO_C" >&6
4293else
4294 if test -z "$LD"; then
d7040cdb 4295 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
d45dc31f 4296 for ac_dir in $PATH; do
d7040cdb 4297 IFS="$lt_save_ifs"
d45dc31f
SE
4298 test -z "$ac_dir" && ac_dir=.
4299 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4300 lt_cv_path_LD="$ac_dir/$ac_prog"
4301 # Check to see if the program is GNU ld. I'd rather use --version,
d7040cdb 4302 # but apparently some variants of GNU ld only accept -v.
d45dc31f 4303 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
4304 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4305 *GNU* | *'with BFD'*)
d45dc31f 4306 test "$with_gnu_ld" != no && break
d7040cdb
SE
4307 ;;
4308 *)
d45dc31f 4309 test "$with_gnu_ld" != yes && break
d7040cdb
SE
4310 ;;
4311 esac
d45dc31f
SE
4312 fi
4313 done
d7040cdb 4314 IFS="$lt_save_ifs"
d45dc31f
SE
4315else
4316 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4317fi
4318fi
1ad12f97 4319
d45dc31f
SE
4320LD="$lt_cv_path_LD"
4321if test -n "$LD"; then
4322 echo "$as_me:$LINENO: result: $LD" >&5
4323echo "${ECHO_T}$LD" >&6
4324else
4325 echo "$as_me:$LINENO: result: no" >&5
4326echo "${ECHO_T}no" >&6
4327fi
4328test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4329echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4330 { (exit 1); exit 1; }; }
4331echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4332echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4333if test "${lt_cv_prog_gnu_ld+set}" = set; then
4334 echo $ECHO_N "(cached) $ECHO_C" >&6
4335else
d7040cdb
SE
4336 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4337case `$LD -v 2>&1 </dev/null` in
4338*GNU* | *'with BFD'*)
d45dc31f 4339 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
4340 ;;
4341*)
d45dc31f 4342 lt_cv_prog_gnu_ld=no
d7040cdb
SE
4343 ;;
4344esac
d45dc31f
SE
4345fi
4346echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4347echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4348with_gnu_ld=$lt_cv_prog_gnu_ld
569acd2c 4349
d45dc31f 4350
42ecbf5e 4351
d7040cdb
SE
4352
4353
4354
4355
4356
4357
4358
4359echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4360echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
d45dc31f
SE
4361if test "${lt_cv_path_NM+set}" = set; then
4362 echo $ECHO_N "(cached) $ECHO_C" >&6
4363else
4364 if test -n "$NM"; then
4365 # Let the user override the test.
4366 lt_cv_path_NM="$NM"
4367else
d7040cdb
SE
4368 lt_nm_to_check="${ac_tool_prefix}nm"
4369 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4370 lt_nm_to_check="$lt_nm_to_check nm"
4371 fi
4372 for lt_tmp_nm in $lt_nm_to_check; do
4373 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4374 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4375 IFS="$lt_save_ifs"
4376 test -z "$ac_dir" && ac_dir=.
4377 tmp_nm="$ac_dir/$lt_tmp_nm"
4378 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4379 # Check to see if the nm accepts a BSD-compat flag.
4380 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4381 # nm: unknown option "B" ignored
4382 # Tru64's nm complains that /dev/null is an invalid object file
4383 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4384 */dev/null* | *'Invalid file or object type'*)
4385 lt_cv_path_NM="$tmp_nm -B"
4386 break
4387 ;;
4388 *)
4389 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4390 */dev/null*)
4391 lt_cv_path_NM="$tmp_nm -p"
4392 break
4393 ;;
4394 *)
4395 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4396 continue # so that we can try to find one that supports BSD flags
4397 ;;
4398 esac
4399 ;;
4400 esac
d45dc31f 4401 fi
d7040cdb
SE
4402 done
4403 IFS="$lt_save_ifs"
d45dc31f 4404 done
d7040cdb 4405 : ${lt_cv_path_NM=no}
d45dc31f 4406fi
a541e3ce 4407fi
d7040cdb
SE
4408echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4409echo "${ECHO_T}$lt_cv_path_NM" >&6
4410if test "$lt_cv_path_NM" != "no"; then
4411 NM="$lt_cv_path_NM"
d45dc31f 4412else
d7040cdb
SE
4413 # Didn't find any BSD compatible name lister, look for dumpbin.
4414 if test -n "$ac_tool_prefix"; then
4415 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4416 do
4417 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4418set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4419echo "$as_me:$LINENO: checking for $ac_word" >&5
4420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4421if test "${ac_cv_prog_DUMPBIN+set}" = set; then
d45dc31f
SE
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4423else
d7040cdb
SE
4424 if test -n "$DUMPBIN"; then
4425 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4426else
4427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428for as_dir in $PATH
4429do
4430 IFS=$as_save_IFS
4431 test -z "$as_dir" && as_dir=.
4432 for ac_exec_ext in '' $ac_executable_extensions; do
4433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4434 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4436 break 2
4437 fi
4438done
4439done
398ee8f1 4440
d7040cdb
SE
4441fi
4442fi
4443DUMPBIN=$ac_cv_prog_DUMPBIN
4444if test -n "$DUMPBIN"; then
4445 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4446echo "${ECHO_T}$DUMPBIN" >&6
4447else
4448 echo "$as_me:$LINENO: result: no" >&5
4449echo "${ECHO_T}no" >&6
4450fi
d15b04bd 4451
d7040cdb
SE
4452 test -n "$DUMPBIN" && break
4453 done
4454fi
4455if test -z "$DUMPBIN"; then
4456 ac_ct_DUMPBIN=$DUMPBIN
4457 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4458do
4459 # Extract the first word of "$ac_prog", so it can be a program name with args.
4460set dummy $ac_prog; ac_word=$2
4461echo "$as_me:$LINENO: checking for $ac_word" >&5
4462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4463if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4465else
4466 if test -n "$ac_ct_DUMPBIN"; then
4467 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4468else
4469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470for as_dir in $PATH
4471do
4472 IFS=$as_save_IFS
4473 test -z "$as_dir" && as_dir=.
4474 for ac_exec_ext in '' $ac_executable_extensions; do
4475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4476 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4478 break 2
d45dc31f 4479 fi
d7040cdb
SE
4480done
4481done
d15b04bd 4482
d7040cdb
SE
4483fi
4484fi
4485ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4486if test -n "$ac_ct_DUMPBIN"; then
4487 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4488echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4489else
4490 echo "$as_me:$LINENO: result: no" >&5
4491echo "${ECHO_T}no" >&6
4492fi
42ecbf5e 4493
d7040cdb
SE
4494 test -n "$ac_ct_DUMPBIN" && break
4495done
4496test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
d45dc31f 4497
d7040cdb
SE
4498 DUMPBIN=$ac_ct_DUMPBIN
4499fi
d45dc31f 4500
d45dc31f 4501
d7040cdb
SE
4502 if test "$DUMPBIN" != ":"; then
4503 NM="$DUMPBIN"
42ecbf5e 4504 fi
d7040cdb
SE
4505fi
4506test -z "$NM" && NM=nm
d45dc31f 4507
42ecbf5e 4508
d15b04bd 4509
42ecbf5e 4510
d45dc31f 4511
42ecbf5e 4512
d7040cdb
SE
4513echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4514echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4515if test "${lt_cv_nm_interface+set}" = set; then
4516 echo $ECHO_N "(cached) $ECHO_C" >&6
4517else
4518 lt_cv_nm_interface="BSD nm"
4519 echo "int some_variable = 0;" > conftest.$ac_ext
6194aaab 4520 (eval echo "\"\$as_me:4520: $ac_compile\"" >&5)
d7040cdb
SE
4521 (eval "$ac_compile" 2>conftest.err)
4522 cat conftest.err >&5
6194aaab 4523 (eval echo "\"\$as_me:4523: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
d7040cdb
SE
4524 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4525 cat conftest.err >&5
6194aaab 4526 (eval echo "\"\$as_me:4526: output\"" >&5)
d7040cdb
SE
4527 cat conftest.out >&5
4528 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4529 lt_cv_nm_interface="MS dumpbin"
4530 fi
4531 rm -f conftest*
42ecbf5e 4532fi
d7040cdb
SE
4533echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4534echo "${ECHO_T}$lt_cv_nm_interface" >&6
42ecbf5e 4535
d7040cdb
SE
4536echo "$as_me:$LINENO: checking whether ln -s works" >&5
4537echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4538LN_S=$as_ln_s
4539if test "$LN_S" = "ln -s"; then
4540 echo "$as_me:$LINENO: result: yes" >&5
4541echo "${ECHO_T}yes" >&6
4542else
4543 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4544echo "${ECHO_T}no, using $LN_S" >&6
4545fi
d45dc31f
SE
4546
4547# find the maximum length of command line arguments
4548echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4549echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4550if test "${lt_cv_sys_max_cmd_len+set}" = set; then
42ecbf5e
DJ
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4552else
d45dc31f
SE
4553 i=0
4554 teststring="ABCD"
4555
4556 case $build_os in
4557 msdosdjgpp*)
4558 # On DJGPP, this test can blow up pretty badly due to problems in libc
4559 # (any single argument exceeding 2000 bytes causes a buffer overrun
4560 # during glob expansion). Even if it were fixed, the result of this
4561 # check would be larger than it should be.
4562 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4563 ;;
4564
d7040cdb
SE
4565 gnu*)
4566 # Under GNU Hurd, this test is not required because there is
4567 # no limit to the length of command line arguments.
4568 # Libtool will interpret -1 as no limit whatsoever
4569 lt_cv_sys_max_cmd_len=-1;
4570 ;;
4571
d45dc31f
SE
4572 cygwin* | mingw*)
4573 # On Win9x/ME, this test blows up -- it succeeds, but takes
4574 # about 5 minutes as the teststring grows exponentially.
4575 # Worse, since 9x/ME are not pre-emptively multitasking,
4576 # you end up with a "frozen" computer, even though with patience
4577 # the test eventually succeeds (with a max line length of 256k).
4578 # Instead, let's just punt: use the minimum linelength reported by
4579 # all of the supported platforms: 8192 (on NT/2K/XP).
4580 lt_cv_sys_max_cmd_len=8192;
4581 ;;
4582
4583 amigaos*)
4584 # On AmigaOS with pdksh, this test takes hours, literally.
4585 # So we just punt and use a minimum line length of 8192.
4586 lt_cv_sys_max_cmd_len=8192;
4587 ;;
4588
4589 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4590 # This has been around since 386BSD, at least. Likely further.
4591 if test -x /sbin/sysctl; then
4592 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4593 elif test -x /usr/sbin/sysctl; then
4594 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4595 else
d7040cdb 4596 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
d45dc31f
SE
4597 fi
4598 # And add a safety zone
4599 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4600 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4601 ;;
d7040cdb
SE
4602
4603 interix*)
4604 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4605 lt_cv_sys_max_cmd_len=196608
4606 ;;
4607
4608 osf*)
4609 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4610 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4611 # nice to cause kernel panics so lets avoid the loop below.
4612 # First set a reasonable default.
4613 lt_cv_sys_max_cmd_len=16384
4614 #
4615 if test -x /sbin/sysconfig; then
4616 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4617 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4618 esac
4619 fi
4620 ;;
4621 sco3.2v5*)
4622 lt_cv_sys_max_cmd_len=102400
4623 ;;
4624 sysv5* | sco5v6* | sysv4.2uw2*)
4625 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4626 if test -n "$kargmax"; then
4627 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4628 else
4629 lt_cv_sys_max_cmd_len=32768
4630 fi
4631 ;;
4632 *)
5ba684e2
NC
4633 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4634 if test -n $lt_cv_sys_max_cmd_len; then
4635 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4636 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4637 else
4638 # Make teststring a little bigger before we do anything with it.
4639 # a 1K string should be a reasonable start.
4640 for i in 1 2 3 4 5 6 7 8 ; do
4641 teststring=$teststring$teststring
4642 done
4643 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4644 # If test is not a shell built-in, we'll probably end up computing a
4645 # maximum length that is only half of the actual maximum length, but
4646 # we can't tell.
4647 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4648 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4649 test $i != 17 # 1/2 MB should be enough
4650 do
4651 i=`expr $i + 1`
4652 teststring=$teststring$teststring
4653 done
4654 # Only check the string length outside the loop.
4655 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4656 teststring=
4657 # Add a significant safety factor because C++ compilers can tack on
4658 # massive amounts of additional arguments before passing them to the
4659 # linker. It appears as though 1/2 is a usable value.
4660 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4661 fi
d7040cdb 4662 ;;
d45dc31f 4663 esac
42ecbf5e 4664
42ecbf5e
DJ
4665fi
4666
d7040cdb 4667if test -n $lt_cv_sys_max_cmd_len ; then
d45dc31f
SE
4668 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4669echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
252b5132 4670else
d45dc31f
SE
4671 echo "$as_me:$LINENO: result: none" >&5
4672echo "${ECHO_T}none" >&6
252b5132 4673fi
d7040cdb 4674max_cmd_len=$lt_cv_sys_max_cmd_len
e5a52504 4675
d45dc31f 4676
42ecbf5e 4677
d45dc31f 4678
d45dc31f 4679
d7040cdb
SE
4680
4681
4682: ${CP="cp -f"}
4683: ${MV="mv -f"}
4684: ${RM="rm -f"}
4685
4686echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4687echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4688# Try some XSI features
4689xsi_shell=no
4690( _lt_dummy="a/b/c"
4691 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4692 = c,a/b,, ) >/dev/null 2>&1 \
4693 && xsi_shell=yes
4694echo "$as_me:$LINENO: result: $xsi_shell" >&5
4695echo "${ECHO_T}$xsi_shell" >&6
4696
4697
4698echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4699echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4700lt_shell_append=no
4701( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4702 >/dev/null 2>&1 \
4703 && lt_shell_append=yes
4704echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4705echo "${ECHO_T}$lt_shell_append" >&6
4706
4707
4708if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4709 lt_unset=unset
252b5132 4710else
d7040cdb 4711 lt_unset=false
252b5132
RH
4712fi
4713
d7040cdb
SE
4714
4715
4716
4717
4718# test EBCDIC or ASCII
4719case `echo X|tr X '\101'` in
4720 A) # ASCII based system
4721 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4722 lt_SP2NL='tr \040 \012'
4723 lt_NL2SP='tr \015\012 \040\040'
4724 ;;
4725 *) # EBCDIC based system
4726 lt_SP2NL='tr \100 \n'
4727 lt_NL2SP='tr \r\n \100\100'
4728 ;;
4729esac
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4740echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4741if test "${lt_cv_ld_reload_flag+set}" = set; then
42ecbf5e 4742 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4743else
d7040cdb
SE
4744 lt_cv_ld_reload_flag='-r'
4745fi
4746echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4747echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4748reload_flag=$lt_cv_ld_reload_flag
4749case $reload_flag in
4750"" | " "*) ;;
4751*) reload_flag=" $reload_flag" ;;
4752esac
4753reload_cmds='$LD$reload_flag -o $output$reload_objs'
4754case $host_os in
4755 darwin*)
4756 if test "$GCC" = yes; then
4757 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4758 else
4759 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4760 fi
4761 ;;
4762esac
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4774echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4775if test "${lt_cv_deplibs_check_method+set}" = set; then
4776 echo $ECHO_N "(cached) $ECHO_C" >&6
4777else
4778 lt_cv_file_magic_cmd='$MAGIC_CMD'
4779lt_cv_file_magic_test_file=
4780lt_cv_deplibs_check_method='unknown'
4781# Need to set the preceding variable on all platforms that support
4782# interlibrary dependencies.
4783# 'none' -- dependencies not supported.
4784# `unknown' -- same as none, but documents that we really don't know.
4785# 'pass_all' -- all dependencies passed with no checks.
4786# 'test_compile' -- check by making test program.
4787# 'file_magic [[regex]]' -- check by looking for files in library path
4788# which responds to the $file_magic_cmd with a given extended regex.
4789# If you have `file' or equivalent on your system and you're not sure
4790# whether `pass_all' will *always* work, you probably want this one.
4791
4792case $host_os in
50e7d84b 4793aix[4-9]*)
d7040cdb
SE
4794 lt_cv_deplibs_check_method=pass_all
4795 ;;
4796
4797beos*)
4798 lt_cv_deplibs_check_method=pass_all
4799 ;;
4800
4801bsdi[45]*)
4802 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4803 lt_cv_file_magic_cmd='/usr/bin/file -L'
4804 lt_cv_file_magic_test_file=/shlib/libc.so
4805 ;;
4806
4807cygwin*)
4808 # func_win32_libid is a shell function defined in ltmain.sh
4809 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4810 lt_cv_file_magic_cmd='func_win32_libid'
4811 ;;
4812
4813mingw* | pw32*)
4814 # Base MSYS/MinGW do not provide the 'file' command needed by
4815 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4816 # unless we find 'file', for example because we are cross-compiling.
4817 if ( file / ) >/dev/null 2>&1; then
4818 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4819 lt_cv_file_magic_cmd='func_win32_libid'
4820 else
4821 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4822 lt_cv_file_magic_cmd='$OBJDUMP -f'
4823 fi
4824 ;;
4825
4826darwin* | rhapsody*)
4827 lt_cv_deplibs_check_method=pass_all
d45dc31f 4828 ;;
d7040cdb
SE
4829
4830freebsd* | dragonfly*)
4831 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4832 case $host_cpu in
4833 i*86 )
4834 # Not sure whether the presence of OpenBSD here was a mistake.
4835 # Let's accept both of them until this is cleared up.
4836 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4837 lt_cv_file_magic_cmd=/usr/bin/file
4838 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4839 ;;
4840 esac
4841 else
4842 lt_cv_deplibs_check_method=pass_all
4843 fi
4844 ;;
4845
4846gnu*)
4847 lt_cv_deplibs_check_method=pass_all
d45dc31f 4848 ;;
d7040cdb
SE
4849
4850hpux10.20* | hpux11*)
4851 lt_cv_file_magic_cmd=/usr/bin/file
4852 case $host_cpu in
4853 ia64*)
4854 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4855 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4856 ;;
4857 hppa*64*)
4858 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4859 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4860 ;;
d45dc31f 4861 *)
d7040cdb
SE
4862 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4863 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4864 ;;
4865 esac
4866 ;;
42ecbf5e 4867
d7040cdb
SE
4868interix[3-9]*)
4869 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4870 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4871 ;;
42ecbf5e 4872
d7040cdb
SE
4873irix5* | irix6* | nonstopux*)
4874 case $LD in
4875 *-32|*"-32 ") libmagic=32-bit;;
4876 *-n32|*"-n32 ") libmagic=N32;;
4877 *-64|*"-64 ") libmagic=64-bit;;
4878 *) libmagic=never-match;;
4879 esac
4880 lt_cv_deplibs_check_method=pass_all
d45dc31f 4881 ;;
42ecbf5e 4882
d7040cdb
SE
4883# This must be Linux ELF.
4884linux* | k*bsd*-gnu)
4885 lt_cv_deplibs_check_method=pass_all
4886 ;;
252b5132 4887
d7040cdb
SE
4888netbsd*)
4889 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4890 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d45dc31f 4891 else
d7040cdb 4892 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
d45dc31f 4893 fi
d7040cdb
SE
4894 ;;
4895
4896newos6*)
4897 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4898 lt_cv_file_magic_cmd=/usr/bin/file
4899 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4900 ;;
4901
4902*nto* | *qnx*)
4903 lt_cv_deplibs_check_method=pass_all
4904 ;;
42ecbf5e 4905
d7040cdb
SE
4906openbsd*)
4907 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4908 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4909 else
4910 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d45dc31f
SE
4911 fi
4912 ;;
d7040cdb
SE
4913
4914osf3* | osf4* | osf5*)
4915 lt_cv_deplibs_check_method=pass_all
4916 ;;
4917
4918rdos*)
4919 lt_cv_deplibs_check_method=pass_all
4920 ;;
4921
4922solaris*)
4923 lt_cv_deplibs_check_method=pass_all
4924 ;;
4925
4926sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4927 lt_cv_deplibs_check_method=pass_all
4928 ;;
4929
4930sysv4 | sysv4.3*)
4931 case $host_vendor in
4932 motorola)
4933 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]'
4934 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4935 ;;
4936 ncr)
4937 lt_cv_deplibs_check_method=pass_all
4938 ;;
4939 sequent)
4940 lt_cv_file_magic_cmd='/bin/file'
4941 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4942 ;;
4943 sni)
4944 lt_cv_file_magic_cmd='/bin/file'
4945 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4946 lt_cv_file_magic_test_file=/lib/libc.so
4947 ;;
4948 siemens)
4949 lt_cv_deplibs_check_method=pass_all
4950 ;;
4951 pc)
4952 lt_cv_deplibs_check_method=pass_all
4953 ;;
4954 esac
4955 ;;
4956
4957tpf*)
4958 lt_cv_deplibs_check_method=pass_all
4959 ;;
d45dc31f 4960esac
42ecbf5e 4961
d7040cdb
SE
4962fi
4963echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4964echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4965file_magic_cmd=$lt_cv_file_magic_cmd
4966deplibs_check_method=$lt_cv_deplibs_check_method
4967test -z "$deplibs_check_method" && deplibs_check_method=unknown
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
d45dc31f 4980if test -n "$ac_tool_prefix"; then
d7040cdb
SE
4981 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4982set dummy ${ac_tool_prefix}ar; ac_word=$2
d45dc31f
SE
4983echo "$as_me:$LINENO: checking for $ac_word" >&5
4984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 4985if test "${ac_cv_prog_AR+set}" = set; then
d45dc31f 4986 echo $ECHO_N "(cached) $ECHO_C" >&6
42ecbf5e 4987else
d7040cdb
SE
4988 if test -n "$AR"; then
4989 ac_cv_prog_AR="$AR" # Let the user override the test.
d45dc31f
SE
4990else
4991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992for as_dir in $PATH
4993do
4994 IFS=$as_save_IFS
4995 test -z "$as_dir" && as_dir=.
4996 for ac_exec_ext in '' $ac_executable_extensions; do
4997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 4998 ac_cv_prog_AR="${ac_tool_prefix}ar"
d45dc31f
SE
4999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5000 break 2
5001 fi
5002done
5003done
42ecbf5e 5004
42ecbf5e 5005fi
d45dc31f 5006fi
d7040cdb
SE
5007AR=$ac_cv_prog_AR
5008if test -n "$AR"; then
5009 echo "$as_me:$LINENO: result: $AR" >&5
5010echo "${ECHO_T}$AR" >&6
d45dc31f
SE
5011else
5012 echo "$as_me:$LINENO: result: no" >&5
5013echo "${ECHO_T}no" >&6
5014fi
42ecbf5e
DJ
5015
5016fi
d7040cdb
SE
5017if test -z "$ac_cv_prog_AR"; then
5018 ac_ct_AR=$AR
5019 # Extract the first word of "ar", so it can be a program name with args.
5020set dummy ar; ac_word=$2
d45dc31f
SE
5021echo "$as_me:$LINENO: checking for $ac_word" >&5
5022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 5023if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
42ecbf5e
DJ
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5025else
d7040cdb
SE
5026 if test -n "$ac_ct_AR"; then
5027 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
42ecbf5e 5028else
d45dc31f
SE
5029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030for as_dir in $PATH
5031do
5032 IFS=$as_save_IFS
5033 test -z "$as_dir" && as_dir=.
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 5036 ac_cv_prog_ac_ct_AR="ar"
d45dc31f
SE
5037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5038 break 2
5039 fi
5040done
5041done
42ecbf5e 5042
d7040cdb 5043 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
42ecbf5e 5044fi
42ecbf5e 5045fi
d7040cdb
SE
5046ac_ct_AR=$ac_cv_prog_ac_ct_AR
5047if test -n "$ac_ct_AR"; then
5048 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5049echo "${ECHO_T}$ac_ct_AR" >&6
252b5132 5050else
d45dc31f
SE
5051 echo "$as_me:$LINENO: result: no" >&5
5052echo "${ECHO_T}no" >&6
252b5132 5053fi
252b5132 5054
d7040cdb 5055 AR=$ac_ct_AR
d45dc31f 5056else
d7040cdb 5057 AR="$ac_cv_prog_AR"
d45dc31f 5058fi
42ecbf5e 5059
d7040cdb
SE
5060test -z "$AR" && AR=ar
5061test -z "$AR_FLAGS" && AR_FLAGS=cru
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
d45dc31f
SE
5073if test -n "$ac_tool_prefix"; then
5074 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5075set dummy ${ac_tool_prefix}strip; ac_word=$2
5076echo "$as_me:$LINENO: checking for $ac_word" >&5
5077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5078if test "${ac_cv_prog_STRIP+set}" = set; then
5079 echo $ECHO_N "(cached) $ECHO_C" >&6
5080else
5081 if test -n "$STRIP"; then
5082 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5083else
5084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085for as_dir in $PATH
42ecbf5e 5086do
d45dc31f
SE
5087 IFS=$as_save_IFS
5088 test -z "$as_dir" && as_dir=.
5089 for ac_exec_ext in '' $ac_executable_extensions; do
5090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5091 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5093 break 2
5094 fi
5095done
5096done
5097
5098fi
5099fi
5100STRIP=$ac_cv_prog_STRIP
5101if test -n "$STRIP"; then
5102 echo "$as_me:$LINENO: result: $STRIP" >&5
5103echo "${ECHO_T}$STRIP" >&6
252b5132 5104else
d45dc31f
SE
5105 echo "$as_me:$LINENO: result: no" >&5
5106echo "${ECHO_T}no" >&6
5107fi
42ecbf5e 5108
252b5132 5109fi
d45dc31f
SE
5110if test -z "$ac_cv_prog_STRIP"; then
5111 ac_ct_STRIP=$STRIP
5112 # Extract the first word of "strip", so it can be a program name with args.
5113set dummy strip; ac_word=$2
5114echo "$as_me:$LINENO: checking for $ac_word" >&5
5115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5116if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5117 echo $ECHO_N "(cached) $ECHO_C" >&6
5118else
5119 if test -n "$ac_ct_STRIP"; then
5120 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5121else
5122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123for as_dir in $PATH
5124do
5125 IFS=$as_save_IFS
5126 test -z "$as_dir" && as_dir=.
5127 for ac_exec_ext in '' $ac_executable_extensions; do
5128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5129 ac_cv_prog_ac_ct_STRIP="strip"
5130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5131 break 2
5132 fi
5133done
42ecbf5e 5134done
42ecbf5e 5135
d45dc31f
SE
5136 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5137fi
5138fi
5139ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5140if test -n "$ac_ct_STRIP"; then
5141 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5142echo "${ECHO_T}$ac_ct_STRIP" >&6
5143else
5144 echo "$as_me:$LINENO: result: no" >&5
5145echo "${ECHO_T}no" >&6
252b5132 5146fi
e5a52504 5147
d45dc31f
SE
5148 STRIP=$ac_ct_STRIP
5149else
5150 STRIP="$ac_cv_prog_STRIP"
5151fi
e5a52504 5152
d7040cdb 5153test -z "$STRIP" && STRIP=:
d45dc31f 5154
d45dc31f
SE
5155
5156
d45dc31f 5157
d45dc31f
SE
5158
5159
d7040cdb
SE
5160if test -n "$ac_tool_prefix"; then
5161 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5162set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5163echo "$as_me:$LINENO: checking for $ac_word" >&5
5164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5165if test "${ac_cv_prog_RANLIB+set}" = set; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
d45dc31f 5167else
d7040cdb
SE
5168 if test -n "$RANLIB"; then
5169 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5170else
5171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172for as_dir in $PATH
5173do
5174 IFS=$as_save_IFS
5175 test -z "$as_dir" && as_dir=.
5176 for ac_exec_ext in '' $ac_executable_extensions; do
5177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5178 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5180 break 2
d45dc31f 5181 fi
d7040cdb
SE
5182done
5183done
d45dc31f 5184
d7040cdb
SE
5185fi
5186fi
5187RANLIB=$ac_cv_prog_RANLIB
5188if test -n "$RANLIB"; then
5189 echo "$as_me:$LINENO: result: $RANLIB" >&5
5190echo "${ECHO_T}$RANLIB" >&6
5191else
5192 echo "$as_me:$LINENO: result: no" >&5
5193echo "${ECHO_T}no" >&6
5194fi
d45dc31f 5195
d7040cdb
SE
5196fi
5197if test -z "$ac_cv_prog_RANLIB"; then
5198 ac_ct_RANLIB=$RANLIB
5199 # Extract the first word of "ranlib", so it can be a program name with args.
5200set dummy ranlib; ac_word=$2
5201echo "$as_me:$LINENO: checking for $ac_word" >&5
5202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5203if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5205else
5206 if test -n "$ac_ct_RANLIB"; then
5207 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5208else
5209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210for as_dir in $PATH
5211do
5212 IFS=$as_save_IFS
5213 test -z "$as_dir" && as_dir=.
5214 for ac_exec_ext in '' $ac_executable_extensions; do
5215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5216 ac_cv_prog_ac_ct_RANLIB="ranlib"
5217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5218 break 2
d45dc31f 5219 fi
d7040cdb
SE
5220done
5221done
d45dc31f 5222
d7040cdb
SE
5223 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5224fi
5225fi
5226ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5227if test -n "$ac_ct_RANLIB"; then
5228 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5229echo "${ECHO_T}$ac_ct_RANLIB" >&6
d15b04bd 5230else
d7040cdb
SE
5231 echo "$as_me:$LINENO: result: no" >&5
5232echo "${ECHO_T}no" >&6
5233fi
252b5132 5234
d7040cdb
SE
5235 RANLIB=$ac_ct_RANLIB
5236else
5237 RANLIB="$ac_cv_prog_RANLIB"
5238fi
d45dc31f 5239
d7040cdb 5240test -z "$RANLIB" && RANLIB=:
d45dc31f 5241
d45dc31f 5242
d45dc31f 5243
42ecbf5e 5244
e5a52504 5245
d7040cdb
SE
5246
5247# Determine commands to create old-style static archives.
5248old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5249old_postinstall_cmds='chmod 644 $oldlib'
5250old_postuninstall_cmds=
5251
5252if test -n "$RANLIB"; then
5253 case $host_os in
5254 openbsd*)
5255 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5256 ;;
5257 *)
5258 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5259 ;;
5260 esac
5261 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d45dc31f 5262fi
d45dc31f
SE
5263
5264
d45dc31f
SE
5265
5266
d15b04bd 5267
3e321448 5268
d45dc31f 5269
d45dc31f 5270
d45dc31f
SE
5271
5272
d45dc31f 5273
d45dc31f 5274
d45dc31f
SE
5275
5276
5277
5278
5279
5280
5281
d45dc31f 5282
d45dc31f 5283
d45dc31f 5284
d45dc31f 5285
d45dc31f 5286
d45dc31f 5287
d45dc31f 5288
d45dc31f 5289
3e321448
L
5290
5291
d45dc31f
SE
5292
5293
d45dc31f
SE
5294
5295
d45dc31f 5296
d7040cdb
SE
5297# If no C compiler was specified, use CC.
5298LTCC=${LTCC-"$CC"}
42ecbf5e 5299
d7040cdb
SE
5300# If no C compiler flags were specified, use CFLAGS.
5301LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
e5a52504 5302
d7040cdb
SE
5303# Allow CC to be a program name with arguments.
5304compiler=$CC
d15b04bd 5305
d7040cdb
SE
5306
5307# Check for command to grab the raw symbol name followed by C symbol from nm.
5308echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5309echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5310if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
42ecbf5e 5311 echo $ECHO_N "(cached) $ECHO_C" >&6
d15b04bd 5312else
d7040cdb
SE
5313
5314# These are sane defaults that work on at least a few old systems.
5315# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5316
5317# Character class describing NM global symbol codes.
5318symcode='[BCDEGRST]'
5319
5320# Regexp to match symbols that can be accessed directly from C.
5321sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5322
5323# Define system-specific variables.
5324case $host_os in
5325aix*)
5326 symcode='[BCDT]'
5327 ;;
5328cygwin* | mingw* | pw32*)
5329 symcode='[ABCDGISTW]'
5330 ;;
5331hpux*)
5332 if test "$host_cpu" = ia64; then
5333 symcode='[ABCDEGRST]'
42ecbf5e 5334 fi
d7040cdb
SE
5335 ;;
5336irix* | nonstopux*)
5337 symcode='[BCDEGRST]'
5338 ;;
5339osf*)
5340 symcode='[BCDEGQRST]'
5341 ;;
5342solaris*)
5343 symcode='[BDRT]'
5344 ;;
5345sco3.2v5*)
5346 symcode='[DT]'
5347 ;;
5348sysv4.2uw2*)
5349 symcode='[DT]'
5350 ;;
5351sysv5* | sco5v6* | unixware* | OpenUNIX*)
5352 symcode='[ABDT]'
5353 ;;
5354sysv4)
5355 symcode='[DFNSTU]'
5356 ;;
5357esac
d15b04bd 5358
d7040cdb
SE
5359# If we're using GNU nm, then use its standard symbol codes.
5360case `$NM -V 2>&1` in
5361*GNU* | *'with BFD'*)
5362 symcode='[ABCDGIRSTW]' ;;
5363esac
e5a52504 5364
d7040cdb
SE
5365# Transform an extracted symbol line into a proper C declaration.
5366# Some systems (esp. on ia64) link data and code symbols differently,
5367# so use this general approach.
5368lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
42ecbf5e 5369
d7040cdb
SE
5370# Transform an extracted symbol line into symbol name and symbol address
5371lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
42ecbf5e 5372
d7040cdb
SE
5373# Handle CRLF in mingw tool chain
5374opt_cr=
5375case $build_os in
5376mingw*)
5377 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5378 ;;
5379esac
5380
5381# Try without a prefix underscore, then with it.
5382for ac_symprfx in "" "_"; do
5383
5384 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5385 symxfrm="\\1 $ac_symprfx\\2 \\2"
5386
5387 # Write the raw and C identifiers.
5388 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5389 # Fake it for dumpbin and say T for any non-static function
5390 # and D for any global variable.
5391 # Also find C++ and __fastcall symbols from MSVC++,
5392 # which start with @ or ?.
5393 lt_cv_sys_global_symbol_pipe="$AWK '"\
5394" {last_section=section; section=\$ 3};"\
5395" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5396" \$ 0!~/External *\|/{next};"\
5397" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5398" {if(hide[section]) next};"\
5399" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5400" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5401" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5402" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5403" ' prfx=^$ac_symprfx"
5404 else
5405 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5406 fi
5407
5408 # Check to see that the pipe works correctly.
5409 pipe_works=no
5410
5411 rm -f conftest*
5412 cat > conftest.$ac_ext <<_LT_EOF
42ecbf5e 5413#ifdef __cplusplus
d7040cdb 5414extern "C" {
42ecbf5e 5415#endif
d7040cdb
SE
5416char nm_test_var;
5417void nm_test_func(void);
5418void nm_test_func(void){}
5419#ifdef __cplusplus
42ecbf5e 5420}
d7040cdb
SE
5421#endif
5422int main(){nm_test_var='a';nm_test_func();return(0);}
5423_LT_EOF
5424
5425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5426 (eval $ac_compile) 2>&5
42ecbf5e
DJ
5427 ac_status=$?
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
5429 (exit $ac_status); }; then
5430 # Now try to grab the symbols.
5431 nlist=conftest.nm
5432 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5433 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
42ecbf5e
DJ
5434 ac_status=$?
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
5436 (exit $ac_status); } && test -s "$nlist"; then
5437 # Try sorting and uniquifying the output.
5438 if sort "$nlist" | uniq > "$nlist"T; then
5439 mv -f "$nlist"T "$nlist"
5440 else
5441 rm -f "$nlist"T
5442 fi
5443
5444 # Make sure that we snagged all the symbols we need.
5445 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5446 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5447 cat <<_LT_EOF > conftest.$ac_ext
5448#ifdef __cplusplus
5449extern "C" {
5450#endif
5451
5452_LT_EOF
5453 # Now generate the symbol file.
5454 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5455
5456 cat <<_LT_EOF >> conftest.$ac_ext
5457
5458/* The mapping between symbol names and symbols. */
5459const struct {
5460 const char *name;
5461 void *address;
5462}
5463lt__PROGRAM__LTX_preloaded_symbols[] =
5464{
5465 { "@PROGRAM@", (void *) 0 },
5466_LT_EOF
5467 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5468 cat <<\_LT_EOF >> conftest.$ac_ext
5469 {0, (void *) 0}
5470};
5471
5472/* This works around a problem in FreeBSD linker */
5473#ifdef FREEBSD_WORKAROUND
5474static const void *lt_preloaded_setup() {
5475 return lt__PROGRAM__LTX_preloaded_symbols;
5476}
5477#endif
5478
5479#ifdef __cplusplus
5480}
5481#endif
5482_LT_EOF
5483 # Now try linking the two files.
5484 mv conftest.$ac_objext conftstm.$ac_objext
5485 lt_save_LIBS="$LIBS"
5486 lt_save_CFLAGS="$CFLAGS"
5487 LIBS="conftstm.$ac_objext"
5488 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5490 (eval $ac_link) 2>&5
5491 ac_status=$?
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5494 pipe_works=yes
5495 fi
5496 LIBS="$lt_save_LIBS"
5497 CFLAGS="$lt_save_CFLAGS"
5498 else
5499 echo "cannot find nm_test_func in $nlist" >&5
5500 fi
5501 else
5502 echo "cannot find nm_test_var in $nlist" >&5
5503 fi
5504 else
5505 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5506 fi
5507 else
5508 echo "$progname: failed program was:" >&5
5509 cat conftest.$ac_ext >&5
5510 fi
5511 rm -f conftest* conftst*
5512
5513 # Do not use the global_symbol_pipe unless it works.
5514 if test "$pipe_works" = yes; then
5515 break
5516 else
5517 lt_cv_sys_global_symbol_pipe=
5518 fi
5519done
42ecbf5e 5520
42ecbf5e 5521fi
d7040cdb
SE
5522
5523if test -z "$lt_cv_sys_global_symbol_pipe"; then
5524 lt_cv_sys_global_symbol_to_cdecl=
42ecbf5e 5525fi
d7040cdb
SE
5526if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5527 echo "$as_me:$LINENO: result: failed" >&5
5528echo "${ECHO_T}failed" >&6
42ecbf5e 5529else
d7040cdb
SE
5530 echo "$as_me:$LINENO: result: ok" >&5
5531echo "${ECHO_T}ok" >&6
5532fi
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5551if test "${enable_libtool_lock+set}" = set; then
5552 enableval="$enable_libtool_lock"
5553
5554fi;
5555test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5556
5557# Some flags need to be propagated to the compiler or linker for good
5558# libtool support.
5559case $host in
5560ia64-*-hpux*)
5561 # Find out which ABI we are using.
5562 echo 'int i;' > conftest.$ac_ext
5563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5564 (eval $ac_compile) 2>&5
5565 ac_status=$?
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); }; then
5568 case `/usr/bin/file conftest.$ac_objext` in
5569 *ELF-32*)
5570 HPUX_IA64_MODE="32"
5571 ;;
5572 *ELF-64*)
5573 HPUX_IA64_MODE="64"
5574 ;;
5575 esac
5576 fi
5577 rm -rf conftest*
5578 ;;
5579*-*-irix6*)
5580 # Find out which ABI we are using.
6194aaab 5581 echo '#line 5581 "configure"' > conftest.$ac_ext
d7040cdb
SE
5582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5583 (eval $ac_compile) 2>&5
5584 ac_status=$?
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); }; then
5587 if test "$lt_cv_prog_gnu_ld" = yes; then
5588 case `/usr/bin/file conftest.$ac_objext` in
5589 *32-bit*)
5590 LD="${LD-ld} -melf32bsmip"
5591 ;;
5592 *N32*)
5593 LD="${LD-ld} -melf32bmipn32"
5594 ;;
5595 *64-bit*)
5596 LD="${LD-ld} -melf64bmip"
5597 ;;
5598 esac
5599 else
5600 case `/usr/bin/file conftest.$ac_objext` in
5601 *32-bit*)
5602 LD="${LD-ld} -32"
5603 ;;
5604 *N32*)
5605 LD="${LD-ld} -n32"
5606 ;;
5607 *64-bit*)
5608 LD="${LD-ld} -64"
5609 ;;
5610 esac
5611 fi
5612 fi
5613 rm -rf conftest*
5614 ;;
5615
5616x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5617s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5618 # Find out which ABI we are using.
5619 echo 'int i;' > conftest.$ac_ext
5620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5621 (eval $ac_compile) 2>&5
5622 ac_status=$?
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); }; then
5625 case `/usr/bin/file conftest.o` in
5626 *32-bit*)
5627 case $host in
5628 x86_64-*kfreebsd*-gnu)
5629 LD="${LD-ld} -m elf_i386_fbsd"
5630 ;;
5631 x86_64-*linux*)
5632 LD="${LD-ld} -m elf_i386"
5633 ;;
5634 ppc64-*linux*|powerpc64-*linux*)
5635 LD="${LD-ld} -m elf32ppclinux"
5636 ;;
5637 s390x-*linux*)
5638 LD="${LD-ld} -m elf_s390"
5639 ;;
5640 sparc64-*linux*)
5641 LD="${LD-ld} -m elf32_sparc"
5642 ;;
5643 esac
5644 ;;
5645 *64-bit*)
5646 case $host in
5647 x86_64-*kfreebsd*-gnu)
5648 LD="${LD-ld} -m elf_x86_64_fbsd"
5649 ;;
5650 x86_64-*linux*)
5651 LD="${LD-ld} -m elf_x86_64"
5652 ;;
5653 ppc*-*linux*|powerpc*-*linux*)
5654 LD="${LD-ld} -m elf64ppc"
5655 ;;
5656 s390*-*linux*|s390*-*tpf*)
5657 LD="${LD-ld} -m elf64_s390"
5658 ;;
5659 sparc*-*linux*)
5660 LD="${LD-ld} -m elf64_sparc"
5661 ;;
5662 esac
5663 ;;
5664 esac
5665 fi
5666 rm -rf conftest*
5667 ;;
5668
5669*-*-sco3.2v5*)
5670 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5671 SAVE_CFLAGS="$CFLAGS"
5672 CFLAGS="$CFLAGS -belf"
5673 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5674echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5675if test "${lt_cv_cc_needs_belf+set}" = set; then
42ecbf5e
DJ
5676 echo $ECHO_N "(cached) $ECHO_C" >&6
5677else
d7040cdb
SE
5678 ac_ext=c
5679ac_cpp='$CPP $CPPFLAGS'
5680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5682ac_compiler_gnu=$ac_cv_c_compiler_gnu
5683
5684 cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
5685/* confdefs.h. */
5686_ACEOF
5687cat confdefs.h >>conftest.$ac_ext
5688cat >>conftest.$ac_ext <<_ACEOF
5689/* end confdefs.h. */
d15b04bd 5690
42ecbf5e
DJ
5691int
5692main ()
5693{
d7040cdb 5694
42ecbf5e
DJ
5695 ;
5696 return 0;
5697}
5698_ACEOF
5699rm -f conftest.$ac_objext conftest$ac_exeext
5700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5701 (eval $ac_link) 2>conftest.er1
5702 ac_status=$?
5703 grep -v '^ *+' conftest.er1 >conftest.err
5704 rm -f conftest.er1
5705 cat conftest.err >&5
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); } &&
b7d4af3a
JW
5708 { ac_try='test -z "$ac_c_werror_flag"
5709 || test ! -s conftest.err'
42ecbf5e
DJ
5710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711 (eval $ac_try) 2>&5
5712 ac_status=$?
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); }; } &&
5715 { ac_try='test -s conftest$ac_exeext'
5716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717 (eval $ac_try) 2>&5
5718 ac_status=$?
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); }; }; then
d7040cdb 5721 lt_cv_cc_needs_belf=yes
42ecbf5e
DJ
5722else
5723 echo "$as_me: failed program was:" >&5
5724sed 's/^/| /' conftest.$ac_ext >&5
5725
d7040cdb 5726lt_cv_cc_needs_belf=no
42ecbf5e
DJ
5727fi
5728rm -f conftest.err conftest.$ac_objext \
5729 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
5730 ac_ext=c
5731ac_cpp='$CPP $CPPFLAGS'
5732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5734ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e
DJ
5735
5736fi
d7040cdb
SE
5737echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5738echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5739 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5740 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5741 CFLAGS="$SAVE_CFLAGS"
5742 fi
5743 ;;
5744sparc*-*solaris*)
5745 # Find out which ABI we are using.
5746 echo 'int i;' > conftest.$ac_ext
5747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5748 (eval $ac_compile) 2>&5
5749 ac_status=$?
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; then
5752 case `/usr/bin/file conftest.o` in
5753 *64-bit*)
5754 case $lt_cv_prog_gnu_ld in
5755 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5756 *) LD="${LD-ld} -64" ;;
5757 esac
5758 ;;
5759 esac
5760 fi
5761 rm -rf conftest*
5762 ;;
5763esac
42ecbf5e 5764
d7040cdb 5765need_locks="$enable_libtool_lock"
42ecbf5e 5766
d7040cdb
SE
5767ac_ext=c
5768ac_cpp='$CPP $CPPFLAGS'
5769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5771ac_compiler_gnu=$ac_cv_c_compiler_gnu
5772echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5773echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5774# On Suns, sometimes $CPP names a directory.
5775if test -n "$CPP" && test -d "$CPP"; then
5776 CPP=
5777fi
5778if test -z "$CPP"; then
5779 if test "${ac_cv_prog_CPP+set}" = set; then
42ecbf5e 5780 echo $ECHO_N "(cached) $ECHO_C" >&6
e5a52504 5781else
d7040cdb
SE
5782 # Double quotes because CPP needs to be expanded
5783 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5784 do
5785 ac_preproc_ok=false
5786for ac_c_preproc_warn_flag in '' yes
5787do
5788 # Use a header file that comes with gcc, so configuring glibc
5789 # with a fresh cross-compiler works.
5790 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5791 # <limits.h> exists even on freestanding compilers.
5792 # On the NeXT, cc -E runs the code through the compiler's parser,
5793 # not just through cpp. "Syntax error" is here to catch this case.
5794 cat >conftest.$ac_ext <<_ACEOF
5795/* confdefs.h. */
42ecbf5e 5796_ACEOF
d7040cdb
SE
5797cat confdefs.h >>conftest.$ac_ext
5798cat >>conftest.$ac_ext <<_ACEOF
5799/* end confdefs.h. */
5800#ifdef __STDC__
5801# include <limits.h>
5802#else
5803# include <assert.h>
5804#endif
5805 Syntax error
5806_ACEOF
5807if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5808 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42ecbf5e 5809 ac_status=$?
d7040cdb
SE
5810 grep -v '^ *+' conftest.er1 >conftest.err
5811 rm -f conftest.er1
5812 cat conftest.err >&5
42ecbf5e 5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
5814 (exit $ac_status); } >/dev/null; then
5815 if test -s conftest.err; then
5816 ac_cpp_err=$ac_c_preproc_warn_flag
5817 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5818 else
5819 ac_cpp_err=
5820 fi
e5a52504 5821else
d7040cdb 5822 ac_cpp_err=yes
e5a52504 5823fi
d7040cdb
SE
5824if test -z "$ac_cpp_err"; then
5825 :
5826else
5827 echo "$as_me: failed program was:" >&5
5828sed 's/^/| /' conftest.$ac_ext >&5
5829
5830 # Broken: fails on valid input.
5831continue
d15b04bd 5832fi
d7040cdb 5833rm -f conftest.err conftest.$ac_ext
d15b04bd 5834
d7040cdb
SE
5835 # OK, works on sane cases. Now check whether non-existent headers
5836 # can be detected and how.
5837 cat >conftest.$ac_ext <<_ACEOF
5838/* confdefs.h. */
5839_ACEOF
5840cat confdefs.h >>conftest.$ac_ext
5841cat >>conftest.$ac_ext <<_ACEOF
5842/* end confdefs.h. */
5843#include <ac_nonexistent.h>
5844_ACEOF
5845if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5846 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5847 ac_status=$?
5848 grep -v '^ *+' conftest.er1 >conftest.err
5849 rm -f conftest.er1
5850 cat conftest.err >&5
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); } >/dev/null; then
5853 if test -s conftest.err; then
5854 ac_cpp_err=$ac_c_preproc_warn_flag
5855 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5856 else
5857 ac_cpp_err=
5858 fi
5859else
5860 ac_cpp_err=yes
5861fi
5862if test -z "$ac_cpp_err"; then
5863 # Broken: success on invalid input.
5864continue
5865else
5866 echo "$as_me: failed program was:" >&5
5867sed 's/^/| /' conftest.$ac_ext >&5
5868
5869 # Passes both tests.
5870ac_preproc_ok=:
5871break
5872fi
5873rm -f conftest.err conftest.$ac_ext
5874
5875done
5876# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5877rm -f conftest.err conftest.$ac_ext
5878if $ac_preproc_ok; then
5879 break
5880fi
5881
5882 done
5883 ac_cv_prog_CPP=$CPP
5884
5885fi
5886 CPP=$ac_cv_prog_CPP
5887else
5888 ac_cv_prog_CPP=$CPP
5889fi
5890echo "$as_me:$LINENO: result: $CPP" >&5
5891echo "${ECHO_T}$CPP" >&6
5892ac_preproc_ok=false
5893for ac_c_preproc_warn_flag in '' yes
5894do
5895 # Use a header file that comes with gcc, so configuring glibc
5896 # with a fresh cross-compiler works.
5897 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5898 # <limits.h> exists even on freestanding compilers.
5899 # On the NeXT, cc -E runs the code through the compiler's parser,
5900 # not just through cpp. "Syntax error" is here to catch this case.
5901 cat >conftest.$ac_ext <<_ACEOF
5902/* confdefs.h. */
5903_ACEOF
5904cat confdefs.h >>conftest.$ac_ext
5905cat >>conftest.$ac_ext <<_ACEOF
5906/* end confdefs.h. */
5907#ifdef __STDC__
5908# include <limits.h>
5909#else
5910# include <assert.h>
5911#endif
5912 Syntax error
5913_ACEOF
5914if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5915 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5916 ac_status=$?
5917 grep -v '^ *+' conftest.er1 >conftest.err
5918 rm -f conftest.er1
5919 cat conftest.err >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); } >/dev/null; then
5922 if test -s conftest.err; then
5923 ac_cpp_err=$ac_c_preproc_warn_flag
5924 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5925 else
5926 ac_cpp_err=
5927 fi
5928else
5929 ac_cpp_err=yes
5930fi
5931if test -z "$ac_cpp_err"; then
5932 :
5933else
5934 echo "$as_me: failed program was:" >&5
5935sed 's/^/| /' conftest.$ac_ext >&5
5936
5937 # Broken: fails on valid input.
5938continue
5939fi
5940rm -f conftest.err conftest.$ac_ext
5941
5942 # OK, works on sane cases. Now check whether non-existent headers
5943 # can be detected and how.
5944 cat >conftest.$ac_ext <<_ACEOF
5945/* confdefs.h. */
5946_ACEOF
5947cat confdefs.h >>conftest.$ac_ext
5948cat >>conftest.$ac_ext <<_ACEOF
5949/* end confdefs.h. */
5950#include <ac_nonexistent.h>
5951_ACEOF
5952if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5954 ac_status=$?
5955 grep -v '^ *+' conftest.er1 >conftest.err
5956 rm -f conftest.er1
5957 cat conftest.err >&5
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); } >/dev/null; then
5960 if test -s conftest.err; then
5961 ac_cpp_err=$ac_c_preproc_warn_flag
5962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5963 else
5964 ac_cpp_err=
5965 fi
5966else
5967 ac_cpp_err=yes
5968fi
5969if test -z "$ac_cpp_err"; then
5970 # Broken: success on invalid input.
5971continue
5972else
5973 echo "$as_me: failed program was:" >&5
5974sed 's/^/| /' conftest.$ac_ext >&5
5975
5976 # Passes both tests.
5977ac_preproc_ok=:
5978break
5979fi
5980rm -f conftest.err conftest.$ac_ext
5981
5982done
5983# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5984rm -f conftest.err conftest.$ac_ext
5985if $ac_preproc_ok; then
5986 :
5987else
5988 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5989See \`config.log' for more details." >&5
5990echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5991See \`config.log' for more details." >&2;}
5992 { (exit 1); exit 1; }; }
5993fi
5994
5995ac_ext=c
5996ac_cpp='$CPP $CPPFLAGS'
5997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5999ac_compiler_gnu=$ac_cv_c_compiler_gnu
6000
6001
6002echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6003echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6004if test "${ac_cv_header_stdc+set}" = set; then
42ecbf5e 6005 echo $ECHO_N "(cached) $ECHO_C" >&6
e5a52504 6006else
d7040cdb
SE
6007 cat >conftest.$ac_ext <<_ACEOF
6008/* confdefs.h. */
42ecbf5e 6009_ACEOF
d7040cdb
SE
6010cat confdefs.h >>conftest.$ac_ext
6011cat >>conftest.$ac_ext <<_ACEOF
6012/* end confdefs.h. */
6013#include <stdlib.h>
6014#include <stdarg.h>
6015#include <string.h>
6016#include <float.h>
6017
6018int
6019main ()
6020{
6021
6022 ;
6023 return 0;
6024}
6025_ACEOF
6026rm -f conftest.$ac_objext
6027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6028 (eval $ac_compile) 2>conftest.er1
42ecbf5e
DJ
6029 ac_status=$?
6030 grep -v '^ *+' conftest.er1 >conftest.err
6031 rm -f conftest.er1
6032 cat conftest.err >&5
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); } &&
b7d4af3a
JW
6035 { ac_try='test -z "$ac_c_werror_flag"
6036 || test ! -s conftest.err'
42ecbf5e
DJ
6037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6038 (eval $ac_try) 2>&5
6039 ac_status=$?
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); }; } &&
d7040cdb 6042 { ac_try='test -s conftest.$ac_objext'
42ecbf5e
DJ
6043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6044 (eval $ac_try) 2>&5
6045 ac_status=$?
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); }; }; then
d7040cdb 6048 ac_cv_header_stdc=yes
d15b04bd 6049else
42ecbf5e
DJ
6050 echo "$as_me: failed program was:" >&5
6051sed 's/^/| /' conftest.$ac_ext >&5
6052
d7040cdb 6053ac_cv_header_stdc=no
e5a52504 6054fi
d7040cdb 6055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 6056
d7040cdb
SE
6057if test $ac_cv_header_stdc = yes; then
6058 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6059 cat >conftest.$ac_ext <<_ACEOF
6060/* confdefs.h. */
42ecbf5e 6061_ACEOF
d7040cdb
SE
6062cat confdefs.h >>conftest.$ac_ext
6063cat >>conftest.$ac_ext <<_ACEOF
6064/* end confdefs.h. */
6065#include <string.h>
d15b04bd 6066
d7040cdb
SE
6067_ACEOF
6068if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6069 $EGREP "memchr" >/dev/null 2>&1; then
6070 :
6071else
6072 ac_cv_header_stdc=no
d15b04bd 6073fi
d7040cdb
SE
6074rm -f conftest*
6075
42ecbf5e 6076fi
e5a52504 6077
d7040cdb
SE
6078if test $ac_cv_header_stdc = yes; then
6079 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6080 cat >conftest.$ac_ext <<_ACEOF
6081/* confdefs.h. */
6082_ACEOF
6083cat confdefs.h >>conftest.$ac_ext
6084cat >>conftest.$ac_ext <<_ACEOF
6085/* end confdefs.h. */
6086#include <stdlib.h>
7148cc28 6087
d7040cdb
SE
6088_ACEOF
6089if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6090 $EGREP "free" >/dev/null 2>&1; then
6091 :
6092else
6093 ac_cv_header_stdc=no
20e95c23 6094fi
d7040cdb
SE
6095rm -f conftest*
6096
6097fi
6098
6099if test $ac_cv_header_stdc = yes; then
6100 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6101 if test "$cross_compiling" = yes; then
6102 :
e5a52504 6103else
d7040cdb
SE
6104 cat >conftest.$ac_ext <<_ACEOF
6105/* confdefs.h. */
6106_ACEOF
6107cat confdefs.h >>conftest.$ac_ext
6108cat >>conftest.$ac_ext <<_ACEOF
6109/* end confdefs.h. */
6110#include <ctype.h>
6111#if ((' ' & 0x0FF) == 0x020)
6112# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6113# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6114#else
6115# define ISLOWER(c) \
6116 (('a' <= (c) && (c) <= 'i') \
6117 || ('j' <= (c) && (c) <= 'r') \
6118 || ('s' <= (c) && (c) <= 'z'))
6119# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6120#endif
6121
6122#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6123int
6124main ()
6125{
6126 int i;
6127 for (i = 0; i < 256; i++)
6128 if (XOR (islower (i), ISLOWER (i))
6129 || toupper (i) != TOUPPER (i))
6130 exit(2);
6131 exit (0);
6132}
6133_ACEOF
6134rm -f conftest$ac_exeext
6135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6136 (eval $ac_link) 2>&5
6137 ac_status=$?
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141 (eval $ac_try) 2>&5
6142 ac_status=$?
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); }; }; then
6145 :
6146else
6147 echo "$as_me: program exited with status $ac_status" >&5
6148echo "$as_me: failed program was:" >&5
6149sed 's/^/| /' conftest.$ac_ext >&5
6150
6151( exit $ac_status )
6152ac_cv_header_stdc=no
6153fi
6154rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6155fi
6156fi
6157fi
6158echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6159echo "${ECHO_T}$ac_cv_header_stdc" >&6
6160if test $ac_cv_header_stdc = yes; then
20e95c23
DJ
6161
6162cat >>confdefs.h <<\_ACEOF
d7040cdb 6163#define STDC_HEADERS 1
20e95c23
DJ
6164_ACEOF
6165
d7040cdb 6166fi
20e95c23 6167
d7040cdb 6168# On IRIX 5.3, sys/types and inttypes.h are conflicting.
20e95c23
DJ
6169
6170
20e95c23 6171
20e95c23 6172
20e95c23 6173
20e95c23 6174
20e95c23 6175
20e95c23
DJ
6176
6177
d7040cdb
SE
6178for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6179 inttypes.h stdint.h unistd.h
6180do
6181as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6182echo "$as_me:$LINENO: checking for $ac_header" >&5
6183echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6184if eval "test \"\${$as_ac_Header+set}\" = set"; then
6185 echo $ECHO_N "(cached) $ECHO_C" >&6
6186else
6187 cat >conftest.$ac_ext <<_ACEOF
6188/* confdefs.h. */
6189_ACEOF
6190cat confdefs.h >>conftest.$ac_ext
6191cat >>conftest.$ac_ext <<_ACEOF
6192/* end confdefs.h. */
6193$ac_includes_default
20e95c23 6194
d7040cdb
SE
6195#include <$ac_header>
6196_ACEOF
6197rm -f conftest.$ac_objext
6198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6199 (eval $ac_compile) 2>conftest.er1
6200 ac_status=$?
6201 grep -v '^ *+' conftest.er1 >conftest.err
6202 rm -f conftest.er1
6203 cat conftest.err >&5
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); } &&
6206 { ac_try='test -z "$ac_c_werror_flag"
6207 || test ! -s conftest.err'
6208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6209 (eval $ac_try) 2>&5
6210 ac_status=$?
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); }; } &&
6213 { ac_try='test -s conftest.$ac_objext'
6214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6215 (eval $ac_try) 2>&5
6216 ac_status=$?
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); }; }; then
6219 eval "$as_ac_Header=yes"
d15b04bd 6220else
d7040cdb
SE
6221 echo "$as_me: failed program was:" >&5
6222sed 's/^/| /' conftest.$ac_ext >&5
20e95c23 6223
d7040cdb
SE
6224eval "$as_ac_Header=no"
6225fi
6226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6227fi
6228echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6229echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6230if test `eval echo '${'$as_ac_Header'}'` = yes; then
6231 cat >>confdefs.h <<_ACEOF
6232#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6233_ACEOF
20e95c23 6234
d7040cdb 6235fi
20e95c23 6236
d7040cdb 6237done
20e95c23
DJ
6238
6239
6240
d7040cdb
SE
6241for ac_header in dlfcn.h
6242do
6243as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6244echo "$as_me:$LINENO: checking for $ac_header" >&5
6245echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6246if eval "test \"\${$as_ac_Header+set}\" = set"; then
6247 echo $ECHO_N "(cached) $ECHO_C" >&6
6248else
6249 cat >conftest.$ac_ext <<_ACEOF
6250/* confdefs.h. */
6251_ACEOF
6252cat confdefs.h >>conftest.$ac_ext
6253cat >>conftest.$ac_ext <<_ACEOF
6254/* end confdefs.h. */
6255$ac_includes_default
42ecbf5e 6256
d7040cdb
SE
6257#include <$ac_header>
6258_ACEOF
6259rm -f conftest.$ac_objext
6260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6261 (eval $ac_compile) 2>conftest.er1
6262 ac_status=$?
6263 grep -v '^ *+' conftest.er1 >conftest.err
6264 rm -f conftest.er1
6265 cat conftest.err >&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); } &&
6268 { ac_try='test -z "$ac_c_werror_flag"
6269 || test ! -s conftest.err'
6270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6271 (eval $ac_try) 2>&5
6272 ac_status=$?
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }; } &&
6275 { ac_try='test -s conftest.$ac_objext'
6276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277 (eval $ac_try) 2>&5
6278 ac_status=$?
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }; }; then
6281 eval "$as_ac_Header=yes"
20e95c23 6282else
d7040cdb
SE
6283 echo "$as_me: failed program was:" >&5
6284sed 's/^/| /' conftest.$ac_ext >&5
6285
6286eval "$as_ac_Header=no"
d15b04bd 6287fi
d7040cdb
SE
6288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6289fi
6290echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6291echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6292if test `eval echo '${'$as_ac_Header'}'` = yes; then
6293 cat >>confdefs.h <<_ACEOF
6294#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6295_ACEOF
20e95c23 6296
d7040cdb
SE
6297fi
6298
6299done
6300
6301
6302
6303# This can be used to rebuild libtool when needed
6304LIBTOOL_DEPS="$ltmain"
6305
6306# Always use our own libtool.
6307LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333test -z "$LN_S" && LN_S="ln -s"
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348if test -n "${ZSH_VERSION+set}" ; then
6349 setopt NO_GLOB_SUBST
6350fi
6351
6352echo "$as_me:$LINENO: checking for objdir" >&5
6353echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6354if test "${lt_cv_objdir+set}" = set; then
20e95c23
DJ
6355 echo $ECHO_N "(cached) $ECHO_C" >&6
6356else
d7040cdb
SE
6357 rm -f .libs 2>/dev/null
6358mkdir .libs 2>/dev/null
6359if test -d .libs; then
6360 lt_cv_objdir=.libs
42ecbf5e 6361else
d7040cdb
SE
6362 # MS-DOS does not allow filenames that begin with a dot.
6363 lt_cv_objdir=_libs
6364fi
6365rmdir .libs 2>/dev/null
42ecbf5e 6366fi
d7040cdb
SE
6367echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6368echo "${ECHO_T}$lt_cv_objdir" >&6
6369objdir=$lt_cv_objdir
42ecbf5e 6370
d7040cdb
SE
6371
6372
6373
6374
6375cat >>confdefs.h <<_ACEOF
6376#define LT_OBJDIR "$lt_cv_objdir/"
6377_ACEOF
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395case $host_os in
6396aix3*)
6397 # AIX sometimes has problems with the GCC collect2 program. For some
6398 # reason, if we set the COLLECT_NAMES environment variable, the problems
6399 # vanish in a puff of smoke.
6400 if test "X${COLLECT_NAMES+set}" != Xset; then
6401 COLLECT_NAMES=
6402 export COLLECT_NAMES
6403 fi
6404 ;;
6405esac
6406
6407# Sed substitution that helps us do robust quoting. It backslashifies
6408# metacharacters that are still active within double-quoted strings.
6409sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6410
6411# Same as above, but do not quote variable references.
6412double_quote_subst='s/\(["`\\]\)/\\\1/g'
6413
6414# Sed substitution to delay expansion of an escaped shell variable in a
6415# double_quote_subst'ed string.
6416delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6417
6418# Sed substitution to delay expansion of an escaped single quote.
6419delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6420
6421# Sed substitution to avoid accidental globbing in evaled expressions
6422no_glob_subst='s/\*/\\\*/g'
6423
6424# Global variables:
6425ofile=libtool
6426can_build_shared=yes
6427
6428# All known linkers require a `.a' archive for static linking (except MSVC,
6429# which needs '.lib').
6430libext=a
6431
6432with_gnu_ld="$lt_cv_prog_gnu_ld"
6433
6434old_CC="$CC"
6435old_CFLAGS="$CFLAGS"
6436
6437# Set sane defaults for various variables
6438test -z "$CC" && CC=cc
6439test -z "$LTCC" && LTCC=$CC
6440test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6441test -z "$LD" && LD=ld
6442test -z "$ac_objext" && ac_objext=o
6443
6444for cc_temp in $compiler""; do
6445 case $cc_temp in
6446 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6447 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6448 \-*) ;;
6449 *) break;;
6450 esac
6451done
6452cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6453
6454
6455# Only perform the check for file, if the check method requires it
6456test -z "$MAGIC_CMD" && MAGIC_CMD=file
6457case $deplibs_check_method in
6458file_magic*)
6459 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6460 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6461echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6462if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
42ecbf5e
DJ
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6464else
d7040cdb
SE
6465 case $MAGIC_CMD in
6466[\\/*] | ?:[\\/]*)
6467 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
20e95c23 6468 ;;
d7040cdb
SE
6469*)
6470 lt_save_MAGIC_CMD="$MAGIC_CMD"
6471 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6472 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6473 for ac_dir in $ac_dummy; do
6474 IFS="$lt_save_ifs"
6475 test -z "$ac_dir" && ac_dir=.
6476 if test -f $ac_dir/${ac_tool_prefix}file; then
6477 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6478 if test -n "$file_magic_test_file"; then
6479 case $deplibs_check_method in
6480 "file_magic "*)
6481 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6482 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6483 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6484 $EGREP "$file_magic_regex" > /dev/null; then
6485 :
6486 else
6487 cat <<_LT_EOF 1>&2
42ecbf5e 6488
d7040cdb
SE
6489*** Warning: the command libtool uses to detect shared libraries,
6490*** $file_magic_cmd, produces output that libtool cannot recognize.
6491*** The result is that libtool may fail to recognize shared libraries
6492*** as such. This will affect the creation of libtool libraries that
6493*** depend on shared libraries, but programs linked with such libtool
6494*** libraries will work regardless of this problem. Nevertheless, you
6495*** may want to report the problem to your system manager and/or to
6496*** bug-libtool@gnu.org
6497
6498_LT_EOF
6499 fi ;;
6500 esac
6501 fi
6502 break
6503 fi
6504 done
6505 IFS="$lt_save_ifs"
6506 MAGIC_CMD="$lt_save_MAGIC_CMD"
20e95c23
DJ
6507 ;;
6508esac
42ecbf5e 6509fi
20e95c23 6510
d7040cdb
SE
6511MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6512if test -n "$MAGIC_CMD"; then
6513 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6514echo "${ECHO_T}$MAGIC_CMD" >&6
42ecbf5e
DJ
6515else
6516 echo "$as_me:$LINENO: result: no" >&5
6517echo "${ECHO_T}no" >&6
6518fi
6519
20e95c23
DJ
6520
6521
42ecbf5e 6522
20e95c23 6523
d7040cdb
SE
6524if test -z "$lt_cv_path_MAGIC_CMD"; then
6525 if test -n "$ac_tool_prefix"; then
6526 echo "$as_me:$LINENO: checking for file" >&5
6527echo $ECHO_N "checking for file... $ECHO_C" >&6
6528if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
42ecbf5e
DJ
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
6530else
d7040cdb
SE
6531 case $MAGIC_CMD in
6532[\\/*] | ?:[\\/]*)
6533 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6534 ;;
6535*)
6536 lt_save_MAGIC_CMD="$MAGIC_CMD"
6537 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6538 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6539 for ac_dir in $ac_dummy; do
6540 IFS="$lt_save_ifs"
6541 test -z "$ac_dir" && ac_dir=.
6542 if test -f $ac_dir/file; then
6543 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6544 if test -n "$file_magic_test_file"; then
6545 case $deplibs_check_method in
6546 "file_magic "*)
6547 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6548 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6549 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6550 $EGREP "$file_magic_regex" > /dev/null; then
6551 :
6552 else
6553 cat <<_LT_EOF 1>&2
6554
6555*** Warning: the command libtool uses to detect shared libraries,
6556*** $file_magic_cmd, produces output that libtool cannot recognize.
6557*** The result is that libtool may fail to recognize shared libraries
6558*** as such. This will affect the creation of libtool libraries that
6559*** depend on shared libraries, but programs linked with such libtool
6560*** libraries will work regardless of this problem. Nevertheless, you
6561*** may want to report the problem to your system manager and/or to
6562*** bug-libtool@gnu.org
6563
6564_LT_EOF
6565 fi ;;
6566 esac
6567 fi
6568 break
6569 fi
6570 done
6571 IFS="$lt_save_ifs"
6572 MAGIC_CMD="$lt_save_MAGIC_CMD"
6573 ;;
20e95c23
DJ
6574esac
6575fi
d7040cdb
SE
6576
6577MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6578if test -n "$MAGIC_CMD"; then
6579 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6580echo "${ECHO_T}$MAGIC_CMD" >&6
20e95c23
DJ
6581else
6582 echo "$as_me:$LINENO: result: no" >&5
6583echo "${ECHO_T}no" >&6
6584fi
6585
20e95c23 6586
42ecbf5e 6587 else
d7040cdb 6588 MAGIC_CMD=:
42ecbf5e 6589 fi
42ecbf5e 6590fi
42ecbf5e 6591
20e95c23 6592 fi
d7040cdb
SE
6593 ;;
6594esac
42ecbf5e 6595
d7040cdb 6596# Use C for the default configuration in the libtool script
42ecbf5e 6597
d7040cdb
SE
6598lt_save_CC="$CC"
6599ac_ext=c
6600ac_cpp='$CPP $CPPFLAGS'
6601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6603ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e 6604
42ecbf5e 6605
d7040cdb
SE
6606# Source file extension for C test sources.
6607ac_ext=c
42ecbf5e 6608
d7040cdb
SE
6609# Object file extension for compiled C test sources.
6610objext=o
6611objext=$objext
42ecbf5e 6612
d7040cdb
SE
6613# Code to be used in simple compile tests
6614lt_simple_compile_test_code="int some_variable = 0;"
42ecbf5e 6615
d7040cdb
SE
6616# Code to be used in simple link tests
6617lt_simple_link_test_code='int main(){return(0);}'
42ecbf5e 6618
ac48eca1 6619
42ecbf5e 6620
42ecbf5e 6621
d5fbea21 6622
d5fbea21
DJ
6623
6624
d7040cdb
SE
6625# If no C compiler was specified, use CC.
6626LTCC=${LTCC-"$CC"}
20e95c23 6627
d7040cdb
SE
6628# If no C compiler flags were specified, use CFLAGS.
6629LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
42ecbf5e 6630
d7040cdb
SE
6631# Allow CC to be a program name with arguments.
6632compiler=$CC
252b5132 6633
d7040cdb
SE
6634# Save the default compiler, since it gets overwritten when the other
6635# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6636compiler_DEFAULT=$CC
42ecbf5e 6637
d7040cdb
SE
6638# save warnings/boilerplate of simple test code
6639ac_outfile=conftest.$ac_objext
6640echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6641eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6642_lt_compiler_boilerplate=`cat conftest.err`
6643$RM conftest*
252b5132 6644
d7040cdb
SE
6645ac_outfile=conftest.$ac_objext
6646echo "$lt_simple_link_test_code" >conftest.$ac_ext
6647eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6648_lt_linker_boilerplate=`cat conftest.err`
6649$RM conftest*
252b5132 6650
42ecbf5e 6651
d7040cdb
SE
6652## CAVEAT EMPTOR:
6653## There is no encapsulation within the following macros, do not change
6654## the running order or otherwise move them around unless you know exactly
6655## what you are doing...
6656if test -n "$compiler"; then
252b5132 6657
d7040cdb 6658lt_prog_compiler_no_builtin_flag=
252b5132 6659
d7040cdb
SE
6660if test "$GCC" = yes; then
6661 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
d15b04bd 6662
d7040cdb
SE
6663 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6664echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6665if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20e95c23 6666 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6667else
d7040cdb
SE
6668 lt_cv_prog_compiler_rtti_exceptions=no
6669 ac_outfile=conftest.$ac_objext
6670 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6671 lt_compiler_flag="-fno-rtti -fno-exceptions"
6672 # Insert the option either (1) after the last *FLAGS variable, or
6673 # (2) before a word containing "conftest.", or (3) at the end.
6674 # Note that $ac_compile itself does not contain backslashes and begins
6675 # with a dollar sign (not a hyphen), so the echo should work correctly.
6676 # The option is referenced via a variable to avoid confusing sed.
6677 lt_compile=`echo "$ac_compile" | $SED \
6678 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6679 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6680 -e 's:$: $lt_compiler_flag:'`
6194aaab 6681 (eval echo "\"\$as_me:6681: $lt_compile\"" >&5)
d7040cdb
SE
6682 (eval "$lt_compile" 2>conftest.err)
6683 ac_status=$?
6684 cat conftest.err >&5
6194aaab 6685 echo "$as_me:6685: \$? = $ac_status" >&5
d7040cdb
SE
6686 if (exit $ac_status) && test -s "$ac_outfile"; then
6687 # The compiler can only warn and ignore the option if not recognized
6688 # So say no if there are warnings other than the usual output.
6689 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6690 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6691 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6692 lt_cv_prog_compiler_rtti_exceptions=yes
6693 fi
6694 fi
6695 $RM conftest*
42ecbf5e 6696
252b5132 6697fi
d7040cdb
SE
6698echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6699echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6700
6701if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6702 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
20e95c23 6703else
d7040cdb 6704 :
252b5132 6705fi
252b5132
RH
6706
6707fi
d7040cdb
SE
6708
6709
6710
6711
6712
6713
6714 lt_prog_compiler_wl=
6715lt_prog_compiler_pic=
6716lt_prog_compiler_static=
6717
6718echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6719echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6720
6721 if test "$GCC" = yes; then
6722 lt_prog_compiler_wl='-Wl,'
6723 lt_prog_compiler_static='-static'
6724
6725 case $host_os in
6726 aix*)
6727 # All AIX code is PIC.
6728 if test "$host_cpu" = ia64; then
6729 # AIX 5 now supports IA64 processor
6730 lt_prog_compiler_static='-Bstatic'
6731 fi
6732 ;;
6733
6734 amigaos*)
6735 if test "$host_cpu" = m68k; then
6736 # FIXME: we need at least 68020 code to build shared libraries, but
6737 # adding the `-m68020' flag to GCC prevents building anything better,
6738 # like `-m68040'.
6739 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6740 fi
6741 ;;
6742
6743 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6744 # PIC is the default for these OSes.
6745 ;;
6746
6747 mingw* | cygwin* | pw32* | os2*)
6748 # This hack is so that the source file can tell whether it is being
6749 # built for inclusion in a dll (and should export symbols for example).
6750 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6751 # (--disable-auto-import) libraries
6752 lt_prog_compiler_pic='-DDLL_EXPORT'
6753 ;;
6754
6755 darwin* | rhapsody*)
6756 # PIC is the default on this platform
6757 # Common symbols not allowed in MH_DYLIB files
6758 lt_prog_compiler_pic='-fno-common'
6759 ;;
6760
6761 hpux*)
6762 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6763 # not for PA HP-UX.
6764 case $host_cpu in
6765 hppa*64*|ia64*)
6766 # +Z the default
6767 ;;
6768 *)
6769 lt_prog_compiler_pic='-fPIC'
6770 ;;
6771 esac
6772 ;;
6773
6774 interix[3-9]*)
6775 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6776 # Instead, we relocate shared libraries at runtime.
6777 ;;
6778
6779 msdosdjgpp*)
6780 # Just because we use GCC doesn't mean we suddenly get shared libraries
6781 # on systems that don't support them.
6782 lt_prog_compiler_can_build_shared=no
6783 enable_shared=no
6784 ;;
6785
6786 *nto* | *qnx*)
6787 # QNX uses GNU C++, but need to define -shared option too, otherwise
6788 # it will coredump.
6789 lt_prog_compiler_pic='-fPIC -shared'
6790 ;;
6791
6792 sysv4*MP*)
6793 if test -d /usr/nec; then
6794 lt_prog_compiler_pic=-Kconform_pic
6795 fi
6796 ;;
6797
6798 *)
6799 lt_prog_compiler_pic='-fPIC'
6800 ;;
6801 esac
6802 else
6803 # PORTME Check for flag to pass linker flags through the system compiler.
6804 case $host_os in
6805 aix*)
6806 lt_prog_compiler_wl='-Wl,'
6807 if test "$host_cpu" = ia64; then
6808 # AIX 5 now supports IA64 processor
6809 lt_prog_compiler_static='-Bstatic'
6810 else
6811 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6812 fi
6813 ;;
6814 darwin*)
6815 # PIC is the default on this platform
6816 # Common symbols not allowed in MH_DYLIB files
6817 case $cc_basename in
6818 xlc*)
6819 lt_prog_compiler_pic='-qnocommon'
6820 lt_prog_compiler_wl='-Wl,'
6821 ;;
6822 esac
6823 ;;
6824
6825 mingw* | cygwin* | pw32* | os2*)
6826 # This hack is so that the source file can tell whether it is being
6827 # built for inclusion in a dll (and should export symbols for example).
6828 lt_prog_compiler_pic='-DDLL_EXPORT'
6829 ;;
6830
6831 hpux9* | hpux10* | hpux11*)
6832 lt_prog_compiler_wl='-Wl,'
6833 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6834 # not for PA HP-UX.
6835 case $host_cpu in
6836 hppa*64*|ia64*)
6837 # +Z the default
6838 ;;
6839 *)
6840 lt_prog_compiler_pic='+Z'
6841 ;;
6842 esac
6843 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6844 lt_prog_compiler_static='${wl}-a ${wl}archive'
6845 ;;
6846
6847 irix5* | irix6* | nonstopux*)
6848 lt_prog_compiler_wl='-Wl,'
6849 # PIC (with -KPIC) is the default.
6850 lt_prog_compiler_static='-non_shared'
6851 ;;
6852
6853 linux* | k*bsd*-gnu)
6854 case $cc_basename in
6855 icc* | ecc*)
6856 lt_prog_compiler_wl='-Wl,'
6857 lt_prog_compiler_pic='-KPIC'
6858 lt_prog_compiler_static='-static'
6859 ;;
6860 pgcc* | pgf77* | pgf90* | pgf95*)
6861 # Portland Group compilers (*not* the Pentium gcc compiler,
6862 # which looks to be a dead project)
6863 lt_prog_compiler_wl='-Wl,'
6864 lt_prog_compiler_pic='-fpic'
6865 lt_prog_compiler_static='-Bstatic'
6866 ;;
6867 ccc*)
6868 lt_prog_compiler_wl='-Wl,'
6869 # All Alpha code is PIC.
6870 lt_prog_compiler_static='-non_shared'
6871 ;;
6872 *)
6873 case `$CC -V 2>&1 | sed 5q` in
6874 *Sun\ C*)
6875 # Sun C 5.9
6876 lt_prog_compiler_pic='-KPIC'
6877 lt_prog_compiler_static='-Bstatic'
6878 lt_prog_compiler_wl='-Wl,'
6879 ;;
6880 *Sun\ F*)
6881 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6882 lt_prog_compiler_pic='-KPIC'
6883 lt_prog_compiler_static='-Bstatic'
6884 lt_prog_compiler_wl=''
6885 ;;
6886 esac
6887 ;;
6888 esac
6889 ;;
6890
6891 newsos6)
6892 lt_prog_compiler_pic='-KPIC'
6893 lt_prog_compiler_static='-Bstatic'
6894 ;;
6895
6896 *nto* | *qnx*)
6897 # QNX uses GNU C++, but need to define -shared option too, otherwise
6898 # it will coredump.
6899 lt_prog_compiler_pic='-fPIC -shared'
6900 ;;
6901
6902 osf3* | osf4* | osf5*)
6903 lt_prog_compiler_wl='-Wl,'
6904 # All OSF/1 code is PIC.
6905 lt_prog_compiler_static='-non_shared'
6906 ;;
6907
6908 rdos*)
6909 lt_prog_compiler_static='-non_shared'
6910 ;;
6911
6912 solaris*)
6913 lt_prog_compiler_pic='-KPIC'
6914 lt_prog_compiler_static='-Bstatic'
6915 case $cc_basename in
6916 f77* | f90* | f95*)
6917 lt_prog_compiler_wl='-Qoption ld ';;
6918 *)
6919 lt_prog_compiler_wl='-Wl,';;
6920 esac
6921 ;;
6922
6923 sunos4*)
6924 lt_prog_compiler_wl='-Qoption ld '
6925 lt_prog_compiler_pic='-PIC'
6926 lt_prog_compiler_static='-Bstatic'
6927 ;;
6928
6929 sysv4 | sysv4.2uw2* | sysv4.3*)
6930 lt_prog_compiler_wl='-Wl,'
6931 lt_prog_compiler_pic='-KPIC'
6932 lt_prog_compiler_static='-Bstatic'
6933 ;;
6934
6935 sysv4*MP*)
6936 if test -d /usr/nec ;then
6937 lt_prog_compiler_pic='-Kconform_pic'
6938 lt_prog_compiler_static='-Bstatic'
6939 fi
6940 ;;
6941
6942 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6943 lt_prog_compiler_wl='-Wl,'
6944 lt_prog_compiler_pic='-KPIC'
6945 lt_prog_compiler_static='-Bstatic'
6946 ;;
6947
6948 unicos*)
6949 lt_prog_compiler_wl='-Wl,'
6950 lt_prog_compiler_can_build_shared=no
6951 ;;
6952
6953 uts4*)
6954 lt_prog_compiler_pic='-pic'
6955 lt_prog_compiler_static='-Bstatic'
6956 ;;
6957
6958 *)
6959 lt_prog_compiler_can_build_shared=no
6960 ;;
6961 esac
6962 fi
6963
6964case $host_os in
6965 # For platforms which do not support PIC, -DPIC is meaningless:
6966 *djgpp*)
6967 lt_prog_compiler_pic=
6968 ;;
6969 *)
6970 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6971 ;;
6972esac
6973echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6974echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6975
6976
6977
6978
6979
6980
6981#
6982# Check to make sure the PIC flag actually works.
6983#
6984if test -n "$lt_prog_compiler_pic"; then
6985 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6986echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6987if test "${lt_prog_compiler_pic_works+set}" = set; then
42ecbf5e
DJ
6988 echo $ECHO_N "(cached) $ECHO_C" >&6
6989else
d7040cdb
SE
6990 lt_prog_compiler_pic_works=no
6991 ac_outfile=conftest.$ac_objext
6992 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6993 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6994 # Insert the option either (1) after the last *FLAGS variable, or
6995 # (2) before a word containing "conftest.", or (3) at the end.
6996 # Note that $ac_compile itself does not contain backslashes and begins
6997 # with a dollar sign (not a hyphen), so the echo should work correctly.
6998 # The option is referenced via a variable to avoid confusing sed.
6999 lt_compile=`echo "$ac_compile" | $SED \
7000 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7001 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7002 -e 's:$: $lt_compiler_flag:'`
6194aaab 7003 (eval echo "\"\$as_me:7003: $lt_compile\"" >&5)
d7040cdb
SE
7004 (eval "$lt_compile" 2>conftest.err)
7005 ac_status=$?
7006 cat conftest.err >&5
6194aaab 7007 echo "$as_me:7007: \$? = $ac_status" >&5
d7040cdb
SE
7008 if (exit $ac_status) && test -s "$ac_outfile"; then
7009 # The compiler can only warn and ignore the option if not recognized
7010 # So say no if there are warnings other than the usual output.
7011 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7012 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7013 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7014 lt_prog_compiler_pic_works=yes
7015 fi
7016 fi
7017 $RM conftest*
42ecbf5e 7018
252b5132 7019fi
d7040cdb
SE
7020echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7021echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7022
7023if test x"$lt_prog_compiler_pic_works" = xyes; then
7024 case $lt_prog_compiler_pic in
7025 "" | " "*) ;;
7026 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7027 esac
252b5132 7028else
d7040cdb
SE
7029 lt_prog_compiler_pic=
7030 lt_prog_compiler_can_build_shared=no
252b5132 7031fi
252b5132
RH
7032
7033fi
42ecbf5e 7034
d7040cdb
SE
7035
7036
7037
7038
7039
7040#
7041# Check to make sure the static flag actually works.
7042#
7043wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7044echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7045echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7046if test "${lt_prog_compiler_static_works+set}" = set; then
20e95c23 7047 echo $ECHO_N "(cached) $ECHO_C" >&6
42ecbf5e 7048else
d7040cdb
SE
7049 lt_prog_compiler_static_works=no
7050 save_LDFLAGS="$LDFLAGS"
7051 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7052 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7053 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7054 # The linker can only warn and ignore the option if not recognized
7055 # So say no if there are warnings
7056 if test -s conftest.err; then
7057 # Append any errors to the config.log.
7058 cat conftest.err 1>&5
7059 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7060 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7061 if diff conftest.exp conftest.er2 >/dev/null; then
7062 lt_prog_compiler_static_works=yes
7063 fi
7064 else
7065 lt_prog_compiler_static_works=yes
7066 fi
7067 fi
7068 $RM conftest*
7069 LDFLAGS="$save_LDFLAGS"
42ecbf5e 7070
42ecbf5e 7071fi
d7040cdb
SE
7072echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7073echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7074
7075if test x"$lt_prog_compiler_static_works" = xyes; then
7076 :
7077else
7078 lt_prog_compiler_static=
42ecbf5e 7079fi
42ecbf5e 7080
252b5132 7081
252b5132 7082
42ecbf5e 7083
252b5132 7084
20e95c23 7085
d7040cdb
SE
7086
7087 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7088echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7089if test "${lt_cv_prog_compiler_c_o+set}" = set; then
42ecbf5e 7090 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7091else
d7040cdb
SE
7092 lt_cv_prog_compiler_c_o=no
7093 $RM -r conftest 2>/dev/null
7094 mkdir conftest
7095 cd conftest
7096 mkdir out
7097 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7098
7099 lt_compiler_flag="-o out/conftest2.$ac_objext"
7100 # Insert the option either (1) after the last *FLAGS variable, or
7101 # (2) before a word containing "conftest.", or (3) at the end.
7102 # Note that $ac_compile itself does not contain backslashes and begins
7103 # with a dollar sign (not a hyphen), so the echo should work correctly.
7104 lt_compile=`echo "$ac_compile" | $SED \
7105 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7106 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7107 -e 's:$: $lt_compiler_flag:'`
6194aaab 7108 (eval echo "\"\$as_me:7108: $lt_compile\"" >&5)
d7040cdb
SE
7109 (eval "$lt_compile" 2>out/conftest.err)
7110 ac_status=$?
7111 cat out/conftest.err >&5
6194aaab 7112 echo "$as_me:7112: \$? = $ac_status" >&5
d7040cdb
SE
7113 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7114 then
7115 # The compiler can only warn and ignore the option if not recognized
7116 # So say no if there are warnings
7117 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7118 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7119 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7120 lt_cv_prog_compiler_c_o=yes
7121 fi
7122 fi
7123 chmod u+w . 2>&5
7124 $RM conftest*
7125 # SGI C++ compiler will create directory out/ii_files/ for
7126 # template instantiation
7127 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7128 $RM out/* && rmdir out
7129 cd ..
7130 $RM -r conftest
7131 $RM conftest*
7132
252b5132 7133fi
d7040cdb
SE
7134echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7135echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
42ecbf5e 7136
20e95c23 7137
20e95c23
DJ
7138
7139
d7040cdb
SE
7140
7141
7142 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7143echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7144if test "${lt_cv_prog_compiler_c_o+set}" = set; then
42ecbf5e
DJ
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7146else
d7040cdb
SE
7147 lt_cv_prog_compiler_c_o=no
7148 $RM -r conftest 2>/dev/null
7149 mkdir conftest
7150 cd conftest
7151 mkdir out
7152 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7153
7154 lt_compiler_flag="-o out/conftest2.$ac_objext"
7155 # Insert the option either (1) after the last *FLAGS variable, or
7156 # (2) before a word containing "conftest.", or (3) at the end.
7157 # Note that $ac_compile itself does not contain backslashes and begins
7158 # with a dollar sign (not a hyphen), so the echo should work correctly.
7159 lt_compile=`echo "$ac_compile" | $SED \
7160 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7161 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7162 -e 's:$: $lt_compiler_flag:'`
6194aaab 7163 (eval echo "\"\$as_me:7163: $lt_compile\"" >&5)
d7040cdb
SE
7164 (eval "$lt_compile" 2>out/conftest.err)
7165 ac_status=$?
7166 cat out/conftest.err >&5
6194aaab 7167 echo "$as_me:7167: \$? = $ac_status" >&5
d7040cdb
SE
7168 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7169 then
7170 # The compiler can only warn and ignore the option if not recognized
7171 # So say no if there are warnings
7172 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7173 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7174 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7175 lt_cv_prog_compiler_c_o=yes
7176 fi
7177 fi
7178 chmod u+w . 2>&5
7179 $RM conftest*
7180 # SGI C++ compiler will create directory out/ii_files/ for
7181 # template instantiation
7182 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7183 $RM out/* && rmdir out
7184 cd ..
7185 $RM -r conftest
7186 $RM conftest*
7187
7188fi
7189echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7190echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7191
7192
7193
7194
7195hard_links="nottested"
7196if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7197 # do not overwrite the value of need_locks provided by the user
7198 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7199echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7200 hard_links=yes
7201 $RM conftest*
7202 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7203 touch conftest.a
7204 ln conftest.a conftest.b 2>&5 || hard_links=no
7205 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7206 echo "$as_me:$LINENO: result: $hard_links" >&5
7207echo "${ECHO_T}$hard_links" >&6
7208 if test "$hard_links" = no; then
7209 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7210echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7211 need_locks=warn
7212 fi
7213else
7214 need_locks=no
7215fi
7216
7217
7218
7219
7220
7221
7222 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7223echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7224
7225 runpath_var=
7226 allow_undefined_flag=
7227 always_export_symbols=no
7228 archive_cmds=
7229 archive_expsym_cmds=
7230 compiler_needs_object=no
7231 enable_shared_with_static_runtimes=no
7232 export_dynamic_flag_spec=
7233 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7234 hardcode_automatic=no
7235 hardcode_direct=no
7236 hardcode_direct_absolute=no
7237 hardcode_libdir_flag_spec=
7238 hardcode_libdir_flag_spec_ld=
7239 hardcode_libdir_separator=
7240 hardcode_minus_L=no
7241 hardcode_shlibpath_var=unsupported
7242 inherit_rpath=no
7243 link_all_deplibs=unknown
7244 module_cmds=
7245 module_expsym_cmds=
7246 old_archive_from_new_cmds=
7247 old_archive_from_expsyms_cmds=
7248 thread_safe_flag_spec=
7249 whole_archive_flag_spec=
7250 # include_expsyms should be a list of space-separated symbols to be *always*
7251 # included in the symbol list
7252 include_expsyms=
7253 # exclude_expsyms can be an extended regexp of symbols to exclude
7254 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7255 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7256 # as well as any symbol that contains `d'.
7257 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7258 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7259 # platforms (ab)use it in PIC code, but their linkers get confused if
7260 # the symbol is explicitly referenced. Since portable code cannot
7261 # rely on this symbol name, it's probably fine to never include it in
7262 # preloaded symbol tables.
7263 extract_expsyms_cmds=
7264
7265 case $host_os in
7266 cygwin* | mingw* | pw32*)
7267 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7268 # When not using gcc, we currently assume that we are using
7269 # Microsoft Visual C++.
7270 if test "$GCC" != yes; then
7271 with_gnu_ld=no
7272 fi
7273 ;;
7274 interix*)
7275 # we just hope/assume this is gcc and not c89 (= MSVC++)
7276 with_gnu_ld=yes
7277 ;;
7278 openbsd*)
7279 with_gnu_ld=no
7280 ;;
7281 esac
7282
7283 ld_shlibs=yes
7284 if test "$with_gnu_ld" = yes; then
7285 # If archive_cmds runs LD, not CC, wlarc should be empty
7286 wlarc='${wl}'
7287
7288 # Set some defaults for GNU ld with shared library support. These
7289 # are reset later if shared libraries are not supported. Putting them
7290 # here allows them to be overridden if necessary.
7291 runpath_var=LD_RUN_PATH
7292 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7293 export_dynamic_flag_spec='${wl}--export-dynamic'
7294 # ancient GNU ld didn't support --whole-archive et. al.
7295 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7296 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7297 else
7298 whole_archive_flag_spec=
7299 fi
7300 supports_anon_versioning=no
7301 case `$LD -v 2>&1` in
7302 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7303 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7304 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7305 *\ 2.11.*) ;; # other 2.11 versions
7306 *) supports_anon_versioning=yes ;;
7307 esac
7308
7309 # See if GNU ld supports shared libraries.
7310 case $host_os in
50e7d84b 7311 aix[3-9]*)
d7040cdb
SE
7312 # On AIX/PPC, the GNU linker is very broken
7313 if test "$host_cpu" != ia64; then
7314 ld_shlibs=no
7315 cat <<_LT_EOF 1>&2
7316
7317*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7318*** to be unable to reliably create shared libraries on AIX.
7319*** Therefore, libtool is disabling shared libraries support. If you
7320*** really care for shared libraries, you may want to modify your PATH
7321*** so that a non-GNU linker is found, and then restart.
7322
7323_LT_EOF
7324 fi
7325 ;;
7326
7327 amigaos*)
7328 if test "$host_cpu" = m68k; then
7329 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)'
7330 hardcode_libdir_flag_spec='-L$libdir'
7331 hardcode_minus_L=yes
7332 fi
7333
7334 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7335 # that the semantics of dynamic libraries on AmigaOS, at least up
7336 # to version 4, is to share data among multiple programs linked
7337 # with the same dynamic library. Since this doesn't match the
7338 # behavior of shared libraries on other platforms, we can't use
7339 # them.
7340 ld_shlibs=no
7341 ;;
7342
7343 beos*)
7344 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7345 allow_undefined_flag=unsupported
7346 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7347 # support --undefined. This deserves some investigation. FIXME
7348 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7349 else
7350 ld_shlibs=no
7351 fi
7352 ;;
7353
7354 cygwin* | mingw* | pw32*)
7355 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7356 # as there is no search path for DLLs.
7357 hardcode_libdir_flag_spec='-L$libdir'
7358 allow_undefined_flag=unsupported
7359 always_export_symbols=no
7360 enable_shared_with_static_runtimes=yes
7361 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7362
7363 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7364 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7365 # If the export-symbols file already is a .def file (1st line
7366 # is EXPORTS), use it as is; otherwise, prepend...
7367 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7368 cp $export_symbols $output_objdir/$soname.def;
7369 else
7370 echo EXPORTS > $output_objdir/$soname.def;
7371 cat $export_symbols >> $output_objdir/$soname.def;
7372 fi~
7373 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7374 else
7375 ld_shlibs=no
7376 fi
7377 ;;
7378
7379 interix[3-9]*)
7380 hardcode_direct=no
7381 hardcode_shlibpath_var=no
7382 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7383 export_dynamic_flag_spec='${wl}-E'
7384 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7385 # Instead, shared libraries are loaded at an image base (0x10000000 by
7386 # default) and relocated if they conflict, which is a slow very memory
7387 # consuming and fragmenting process. To avoid this, we pick a random,
7388 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7389 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7390 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7391 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7392 ;;
7393
7394 gnu* | linux* | tpf* | k*bsd*-gnu)
7395 tmp_diet=no
7396 if test "$host_os" = linux-dietlibc; then
7397 case $cc_basename in
7398 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7399 esac
7400 fi
7401 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7402 && test "$tmp_diet" = no
7403 then
7404 tmp_addflag=
7405 case $cc_basename,$host_cpu in
7406 pgcc*) # Portland Group C compiler
7407 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7408 tmp_addflag=' $pic_flag'
7409 ;;
7410 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7411 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7412 tmp_addflag=' $pic_flag -Mnomain' ;;
7413 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7414 tmp_addflag=' -i_dynamic' ;;
7415 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7416 tmp_addflag=' -i_dynamic -nofor_main' ;;
7417 ifc* | ifort*) # Intel Fortran compiler
7418 tmp_addflag=' -nofor_main' ;;
7419 esac
7420 case `$CC -V 2>&1 | sed 5q` in
7421 *Sun\ C*) # Sun C 5.9
7422 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7423 compiler_needs_object=yes
7424 tmp_sharedflag='-G' ;;
7425 *Sun\ F*) # Sun Fortran 8.3
7426 tmp_sharedflag='-G' ;;
7427 *)
7428 tmp_sharedflag='-shared' ;;
7429 esac
7430 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7431
7432 if test "x$supports_anon_versioning" = xyes; then
7433 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7434 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7435 echo "local: *; };" >> $output_objdir/$libname.ver~
7436 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7437 fi
7438 else
7439 ld_shlibs=no
7440 fi
7441 ;;
7442
7443 netbsd*)
7444 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7445 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7446 wlarc=
7447 else
7448 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7449 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7450 fi
7451 ;;
7452
7453 solaris*)
7454 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7455 ld_shlibs=no
7456 cat <<_LT_EOF 1>&2
7457
7458*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7459*** create shared libraries on Solaris systems. Therefore, libtool
7460*** is disabling shared libraries support. We urge you to upgrade GNU
7461*** binutils to release 2.9.1 or newer. Another option is to modify
7462*** your PATH or compiler configuration so that the native linker is
7463*** used, and then restart.
7464
7465_LT_EOF
7466 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7467 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7468 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7469 else
7470 ld_shlibs=no
7471 fi
7472 ;;
7473
7474 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7475 case `$LD -v 2>&1` in
7476 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7477 ld_shlibs=no
7478 cat <<_LT_EOF 1>&2
7479
7480*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7481*** reliably create shared libraries on SCO systems. Therefore, libtool
7482*** is disabling shared libraries support. We urge you to upgrade GNU
7483*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7484*** your PATH or compiler configuration so that the native linker is
7485*** used, and then restart.
7486
7487_LT_EOF
7488 ;;
7489 *)
7490 # For security reasons, it is highly recommended that you always
7491 # use absolute paths for naming shared libraries, and exclude the
7492 # DT_RUNPATH tag from executables and libraries. But doing so
7493 # requires that you compile everything twice, which is a pain.
7494 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7495 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7496 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7497 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7498 else
7499 ld_shlibs=no
7500 fi
7501 ;;
7502 esac
7503 ;;
7504
7505 sunos4*)
7506 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7507 wlarc=
7508 hardcode_direct=yes
7509 hardcode_shlibpath_var=no
7510 ;;
7511
7512 *)
7513 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7514 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7515 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7516 else
7517 ld_shlibs=no
7518 fi
7519 ;;
7520 esac
7521
7522 if test "$ld_shlibs" = no; then
7523 runpath_var=
7524 hardcode_libdir_flag_spec=
7525 export_dynamic_flag_spec=
7526 whole_archive_flag_spec=
7527 fi
7528 else
7529 # PORTME fill in a description of your system's linker (not GNU ld)
7530 case $host_os in
7531 aix3*)
7532 allow_undefined_flag=unsupported
7533 always_export_symbols=yes
7534 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'
7535 # Note: this linker hardcodes the directories in LIBPATH if there
7536 # are no directories specified by -L.
7537 hardcode_minus_L=yes
7538 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7539 # Neither direct hardcoding nor static linking is supported with a
7540 # broken collect2.
7541 hardcode_direct=unsupported
7542 fi
7543 ;;
7544
50e7d84b 7545 aix[4-9]*)
d7040cdb
SE
7546 if test "$host_cpu" = ia64; then
7547 # On IA64, the linker does run time linking by default, so we don't
7548 # have to do anything special.
7549 aix_use_runtimelinking=no
7550 exp_sym_flag='-Bexport'
7551 no_entry_flag=""
7552 else
7553 # If we're using GNU nm, then we don't want the "-C" option.
7554 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7555 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7556 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7557 else
7558 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7559 fi
7560 aix_use_runtimelinking=no
7561
7562 # Test if we are trying to use run time linking or normal
7563 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7564 # need to do runtime linking.
50e7d84b 7565 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
d7040cdb
SE
7566 for ld_flag in $LDFLAGS; do
7567 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7568 aix_use_runtimelinking=yes
7569 break
7570 fi
7571 done
7572 ;;
7573 esac
7574
7575 exp_sym_flag='-bexport'
7576 no_entry_flag='-bnoentry'
7577 fi
7578
7579 # When large executables or shared objects are built, AIX ld can
7580 # have problems creating the table of contents. If linking a library
7581 # or program results in "error TOC overflow" add -mminimal-toc to
7582 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7583 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7584
7585 archive_cmds=''
7586 hardcode_direct=yes
7587 hardcode_direct_absolute=yes
7588 hardcode_libdir_separator=':'
7589 link_all_deplibs=yes
7590 file_list_spec='${wl}-f,'
7591
7592 if test "$GCC" = yes; then
7593 case $host_os in aix4.[012]|aix4.[012].*)
7594 # We only want to do this on AIX 4.2 and lower, the check
7595 # below for broken collect2 doesn't work under 4.3+
7596 collect2name=`${CC} -print-prog-name=collect2`
7597 if test -f "$collect2name" &&
7598 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7599 then
7600 # We have reworked collect2
7601 :
7602 else
7603 # We have old collect2
7604 hardcode_direct=unsupported
7605 # It fails to find uninstalled libraries when the uninstalled
7606 # path is not listed in the libpath. Setting hardcode_minus_L
7607 # to unsupported forces relinking
7608 hardcode_minus_L=yes
7609 hardcode_libdir_flag_spec='-L$libdir'
7610 hardcode_libdir_separator=
7611 fi
7612 ;;
7613 esac
7614 shared_flag='-shared'
7615 if test "$aix_use_runtimelinking" = yes; then
7616 shared_flag="$shared_flag "'${wl}-G'
7617 fi
7618 else
7619 # not using gcc
7620 if test "$host_cpu" = ia64; then
7621 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7622 # chokes on -Wl,-G. The following line is correct:
7623 shared_flag='-G'
7624 else
7625 if test "$aix_use_runtimelinking" = yes; then
7626 shared_flag='${wl}-G'
7627 else
7628 shared_flag='${wl}-bM:SRE'
7629 fi
7630 fi
7631 fi
7632
7633 # It seems that -bexpall does not export symbols beginning with
7634 # underscore (_), so it is better to generate a list of symbols to export.
7635 always_export_symbols=yes
7636 if test "$aix_use_runtimelinking" = yes; then
7637 # Warning - without using the other runtime loading flags (-brtl),
7638 # -berok will link without error, but may produce a broken library.
7639 allow_undefined_flag='-berok'
7640 # Determine the default libpath from the value encoded in an
7641 # empty executable.
7642 cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
7643/* confdefs.h. */
7644_ACEOF
7645cat confdefs.h >>conftest.$ac_ext
7646cat >>conftest.$ac_ext <<_ACEOF
7647/* end confdefs.h. */
d7040cdb
SE
7648
7649int
7650main ()
7651{
7652
7653 ;
7654 return 0;
7655}
42ecbf5e 7656_ACEOF
d7040cdb
SE
7657rm -f conftest.$ac_objext conftest$ac_exeext
7658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7659 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
7660 ac_status=$?
7661 grep -v '^ *+' conftest.er1 >conftest.err
7662 rm -f conftest.er1
7663 cat conftest.err >&5
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
7665 (exit $ac_status); } &&
7666 { ac_try='test -z "$ac_c_werror_flag"
7667 || test ! -s conftest.err'
7668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7669 (eval $ac_try) 2>&5
7670 ac_status=$?
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); }; } &&
7673 { ac_try='test -s conftest$ac_exeext'
7674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7675 (eval $ac_try) 2>&5
7676 ac_status=$?
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); }; }; then
7679
7680lt_aix_libpath_sed='
7681 /Import File Strings/,/^$/ {
7682 /^0/ {
7683 s/^0 *\(.*\)$/\1/
7684 p
7685 }
7686 }'
7687aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7688# Check for a 64-bit object if we didn't find anything.
7689if test -z "$aix_libpath"; then
7690 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
252b5132 7691fi
252b5132 7692else
20e95c23
DJ
7693 echo "$as_me: failed program was:" >&5
7694sed 's/^/| /' conftest.$ac_ext >&5
7695
252b5132 7696fi
d7040cdb
SE
7697rm -f conftest.err conftest.$ac_objext \
7698 conftest$ac_exeext conftest.$ac_ext
7699if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
252b5132 7700
d7040cdb
SE
7701 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7702 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7703 else
7704 if test "$host_cpu" = ia64; then
7705 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7706 allow_undefined_flag="-z nodefs"
7707 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7708 else
7709 # Determine the default libpath from the value encoded in an
7710 # empty executable.
7711 cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
7712/* confdefs.h. */
7713_ACEOF
7714cat confdefs.h >>conftest.$ac_ext
7715cat >>conftest.$ac_ext <<_ACEOF
7716/* end confdefs.h. */
d7040cdb
SE
7717
7718int
7719main ()
7720{
7721
7722 ;
7723 return 0;
7724}
42ecbf5e 7725_ACEOF
d7040cdb
SE
7726rm -f conftest.$ac_objext conftest$ac_exeext
7727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7728 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
7729 ac_status=$?
7730 grep -v '^ *+' conftest.er1 >conftest.err
7731 rm -f conftest.er1
7732 cat conftest.err >&5
7733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
7734 (exit $ac_status); } &&
7735 { ac_try='test -z "$ac_c_werror_flag"
7736 || test ! -s conftest.err'
7737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7738 (eval $ac_try) 2>&5
7739 ac_status=$?
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); }; } &&
7742 { ac_try='test -s conftest$ac_exeext'
7743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7744 (eval $ac_try) 2>&5
7745 ac_status=$?
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); }; }; then
7748
7749lt_aix_libpath_sed='
7750 /Import File Strings/,/^$/ {
7751 /^0/ {
7752 s/^0 *\(.*\)$/\1/
7753 p
7754 }
7755 }'
7756aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7757# Check for a 64-bit object if we didn't find anything.
7758if test -z "$aix_libpath"; then
7759 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20e95c23 7760fi
252b5132 7761else
42ecbf5e
DJ
7762 echo "$as_me: failed program was:" >&5
7763sed 's/^/| /' conftest.$ac_ext >&5
7764
252b5132 7765fi
d7040cdb
SE
7766rm -f conftest.err conftest.$ac_objext \
7767 conftest$ac_exeext conftest.$ac_ext
7768if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7769
7770 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7771 # Warning - without using the other run time loading flags,
7772 # -berok will link without error, but may produce a broken library.
7773 no_undefined_flag=' ${wl}-bernotok'
7774 allow_undefined_flag=' ${wl}-berok'
7775 # Exported symbols can be pulled into shared objects from archives
7776 whole_archive_flag_spec='$convenience'
7777 archive_cmds_need_lc=yes
7778 # This is similar to how AIX traditionally builds its shared libraries.
7779 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7780 fi
7781 fi
7782 ;;
42ecbf5e 7783
d7040cdb
SE
7784 amigaos*)
7785 if test "$host_cpu" = m68k; then
7786 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)'
7787 hardcode_libdir_flag_spec='-L$libdir'
7788 hardcode_minus_L=yes
7789 fi
7790 # see comment about different semantics on the GNU ld section
7791 ld_shlibs=no
7792 ;;
252b5132 7793
d7040cdb
SE
7794 bsdi[45]*)
7795 export_dynamic_flag_spec=-rdynamic
7796 ;;
252b5132 7797
d7040cdb
SE
7798 cygwin* | mingw* | pw32*)
7799 # When not using gcc, we currently assume that we are using
7800 # Microsoft Visual C++.
7801 # hardcode_libdir_flag_spec is actually meaningless, as there is
7802 # no search path for DLLs.
7803 hardcode_libdir_flag_spec=' '
7804 allow_undefined_flag=unsupported
7805 # Tell ltmain to make .lib files, not .a files.
7806 libext=lib
7807 # Tell ltmain to make .dll files, not .so files.
7808 shrext_cmds=".dll"
7809 # FIXME: Setting linknames here is a bad hack.
7810 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7811 # The linker will automatically build a .lib file if we build a DLL.
7812 old_archive_from_new_cmds='true'
7813 # FIXME: Should let the user specify the lib program.
7814 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7815 fix_srcfile_path='`cygpath -w "$srcfile"`'
7816 enable_shared_with_static_runtimes=yes
7817 ;;
252b5132 7818
d7040cdb
SE
7819 darwin* | rhapsody*)
7820 case $host_os in
7821 rhapsody* | darwin1.[012])
7822 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7823 ;;
7824 *) # Darwin 1.3 on
7825 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7826 10.[012])
7827 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7828 ;;
7829 10.*)
7830 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7831 ;;
7832 esac
7833 ;;
7834 esac
7835 archive_cmds_need_lc=no
7836 hardcode_direct=no
7837 hardcode_automatic=yes
7838 hardcode_shlibpath_var=unsupported
7839 whole_archive_flag_spec=''
7840 link_all_deplibs=yes
7841 if test "$GCC" = yes ; then
7842 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7843 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7844else
d7040cdb
SE
7845 lt_cv_apple_cc_single_mod=no
7846 if test -z "${LT_MULTI_MODULE}"; then
7847 # By default we will add the -single_module flag. You can override
7848 # by either setting the environment variable LT_MULTI_MODULE
7849 # non-empty at configure time, or by adding -multi-module to the
7850 # link flags.
7851 echo "int foo(void){return 1;}" > conftest.c
7852 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7853 -dynamiclib ${wl}-single_module conftest.c
7854 if test -f libconftest.dylib; then
7855 lt_cv_apple_cc_single_mod=yes
7856 rm libconftest.dylib
7857 fi
7858 rm conftest.$ac_ext
7859 fi
252b5132 7860fi
c46f8c51 7861
d7040cdb
SE
7862 output_verbose_link_cmd=echo
7863 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7864 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7865 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7866 else
7867 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7868 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7869 fi
7870 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7871 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7872 else
7873 case $cc_basename in
7874 xlc*)
7875 output_verbose_link_cmd=echo
7876 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7877 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7878 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7879 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7880 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7881 ;;
7882 *)
7883 ld_shlibs=no
7884 ;;
7885 esac
7886 fi
7887 ;;
42ecbf5e 7888
d7040cdb
SE
7889 dgux*)
7890 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7891 hardcode_libdir_flag_spec='-L$libdir'
7892 hardcode_shlibpath_var=no
7893 ;;
252b5132 7894
d7040cdb
SE
7895 freebsd1*)
7896 ld_shlibs=no
7897 ;;
252b5132 7898
d7040cdb
SE
7899 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7900 # support. Future versions do this automatically, but an explicit c++rt0.o
7901 # does not break anything, and helps significantly (at the cost of a little
7902 # extra space).
7903 freebsd2.2*)
7904 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7905 hardcode_libdir_flag_spec='-R$libdir'
7906 hardcode_direct=yes
7907 hardcode_shlibpath_var=no
7908 ;;
252b5132 7909
d7040cdb
SE
7910 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7911 freebsd2*)
7912 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7913 hardcode_direct=yes
7914 hardcode_minus_L=yes
7915 hardcode_shlibpath_var=no
7916 ;;
42ecbf5e 7917
d7040cdb
SE
7918 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7919 freebsd* | dragonfly*)
7920 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7921 hardcode_libdir_flag_spec='-R$libdir'
7922 hardcode_direct=yes
7923 hardcode_shlibpath_var=no
7924 ;;
252b5132 7925
d7040cdb
SE
7926 hpux9*)
7927 if test "$GCC" = yes; then
7928 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7929 else
7930 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'
7931 fi
7932 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7933 hardcode_libdir_separator=:
7934 hardcode_direct=yes
7935
7936 # hardcode_minus_L: Not really in the search PATH,
7937 # but as the default location of the library.
7938 hardcode_minus_L=yes
7939 export_dynamic_flag_spec='${wl}-E'
7940 ;;
20e95c23 7941
d7040cdb
SE
7942 hpux10*)
7943 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7944 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7945 else
7946 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7947 fi
7948 if test "$with_gnu_ld" = no; then
7949 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7950 hardcode_libdir_flag_spec_ld='+b $libdir'
7951 hardcode_libdir_separator=:
7952 hardcode_direct=yes
7953 hardcode_direct_absolute=yes
7954 export_dynamic_flag_spec='${wl}-E'
7955 # hardcode_minus_L: Not really in the search PATH,
7956 # but as the default location of the library.
7957 hardcode_minus_L=yes
7958 fi
7959 ;;
20e95c23 7960
d7040cdb
SE
7961 hpux11*)
7962 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7963 case $host_cpu in
7964 hppa*64*)
7965 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7966 ;;
7967 ia64*)
7968 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7969 ;;
7970 *)
7971 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7972 ;;
7973 esac
7974 else
7975 case $host_cpu in
7976 hppa*64*)
7977 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7978 ;;
7979 ia64*)
7980 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7981 ;;
7982 *)
7983 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7984 ;;
7985 esac
7986 fi
7987 if test "$with_gnu_ld" = no; then
7988 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7989 hardcode_libdir_separator=:
7990
7991 case $host_cpu in
7992 hppa*64*|ia64*)
7993 hardcode_direct=no
7994 hardcode_shlibpath_var=no
7995 ;;
7996 *)
7997 hardcode_direct=yes
7998 hardcode_direct_absolute=yes
7999 export_dynamic_flag_spec='${wl}-E'
8000
8001 # hardcode_minus_L: Not really in the search PATH,
8002 # but as the default location of the library.
8003 hardcode_minus_L=yes
8004 ;;
8005 esac
8006 fi
8007 ;;
8008
8009 irix5* | irix6* | nonstopux*)
8010 if test "$GCC" = yes; then
8011 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8012 # Try to use the -exported_symbol ld option, if it does not
8013 # work, assume that -exports_file does not work either and
8014 # implicitly export all symbols.
8015 save_LDFLAGS="$LDFLAGS"
8016 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8017 cat >conftest.$ac_ext <<_ACEOF
8018int foo(void) {}
42ecbf5e 8019_ACEOF
d7040cdb
SE
8020rm -f conftest.$ac_objext conftest$ac_exeext
8021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8022 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
8023 ac_status=$?
8024 grep -v '^ *+' conftest.er1 >conftest.err
8025 rm -f conftest.er1
8026 cat conftest.err >&5
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); } &&
b7d4af3a
JW
8029 { ac_try='test -z "$ac_c_werror_flag"
8030 || test ! -s conftest.err'
42ecbf5e
DJ
8031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8032 (eval $ac_try) 2>&5
8033 ac_status=$?
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); }; } &&
d7040cdb 8036 { ac_try='test -s conftest$ac_exeext'
42ecbf5e
DJ
8037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8038 (eval $ac_try) 2>&5
8039 ac_status=$?
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); }; }; then
d7040cdb
SE
8042 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8043
42ecbf5e
DJ
8044else
8045 echo "$as_me: failed program was:" >&5
8046sed 's/^/| /' conftest.$ac_ext >&5
8047
42ecbf5e 8048fi
d7040cdb
SE
8049rm -f conftest.err conftest.$ac_objext \
8050 conftest$ac_exeext conftest.$ac_ext
8051 LDFLAGS="$save_LDFLAGS"
8052 else
8053 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8054 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8055 fi
8056 archive_cmds_need_lc='no'
8057 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8058 hardcode_libdir_separator=:
8059 inherit_rpath=yes
8060 link_all_deplibs=yes
8061 ;;
42ecbf5e 8062
d7040cdb
SE
8063 netbsd*)
8064 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8065 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8066 else
8067 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8068 fi
8069 hardcode_libdir_flag_spec='-R$libdir'
8070 hardcode_direct=yes
8071 hardcode_shlibpath_var=no
8072 ;;
42ecbf5e 8073
d7040cdb
SE
8074 newsos6)
8075 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8076 hardcode_direct=yes
8077 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8078 hardcode_libdir_separator=:
8079 hardcode_shlibpath_var=no
8080 ;;
42ecbf5e 8081
d7040cdb
SE
8082 *nto* | *qnx*)
8083 ;;
252b5132 8084
d7040cdb
SE
8085 openbsd*)
8086 hardcode_direct=yes
8087 hardcode_shlibpath_var=no
8088 hardcode_direct_absolute=yes
8089 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8090 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8091 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8092 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8093 export_dynamic_flag_spec='${wl}-E'
8094 else
8095 case $host_os in
8096 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8097 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8098 hardcode_libdir_flag_spec='-R$libdir'
8099 ;;
8100 *)
8101 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8102 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8103 ;;
8104 esac
8105 fi
8106 ;;
252b5132 8107
d7040cdb
SE
8108 os2*)
8109 hardcode_libdir_flag_spec='-L$libdir'
8110 hardcode_minus_L=yes
8111 allow_undefined_flag=unsupported
8112 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'
8113 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8114 ;;
2481e6a2 8115
d7040cdb
SE
8116 osf3*)
8117 if test "$GCC" = yes; then
8118 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8119 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8120 else
8121 allow_undefined_flag=' -expect_unresolved \*'
8122 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8123 fi
8124 archive_cmds_need_lc='no'
8125 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8126 hardcode_libdir_separator=:
8127 ;;
42ecbf5e 8128
d7040cdb
SE
8129 osf4* | osf5*) # as osf3* with the addition of -msym flag
8130 if test "$GCC" = yes; then
8131 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8132 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8133 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8134 else
8135 allow_undefined_flag=' -expect_unresolved \*'
8136 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8137 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8138 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
42ecbf5e 8139
d7040cdb
SE
8140 # Both c and cxx compiler support -rpath directly
8141 hardcode_libdir_flag_spec='-rpath $libdir'
8142 fi
8143 archive_cmds_need_lc='no'
8144 hardcode_libdir_separator=:
8145 ;;
8146
8147 solaris*)
8148 no_undefined_flag=' -z defs'
8149 if test "$GCC" = yes; then
8150 wlarc='${wl}'
8151 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8152 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8153 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8154 else
8155 case `$CC -V 2>&1` in
8156 *"Compilers 5.0"*)
8157 wlarc=''
8158 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8159 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8160 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8161 ;;
8162 *)
8163 wlarc='${wl}'
8164 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8165 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8166 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8167 ;;
8168 esac
8169 fi
8170 hardcode_libdir_flag_spec='-R$libdir'
8171 hardcode_shlibpath_var=no
8172 case $host_os in
8173 solaris2.[0-5] | solaris2.[0-5].*) ;;
8174 *)
8175 # The compiler driver will combine and reorder linker options,
8176 # but understands `-z linker_flag'. GCC discards it without `$wl',
8177 # but is careful enough not to reorder.
8178 # Supported since Solaris 2.6 (maybe 2.5.1?)
8179 if test "$GCC" = yes; then
8180 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8181 else
8182 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8183 fi
8184 ;;
8185 esac
8186 link_all_deplibs=yes
8187 ;;
8188
8189 sunos4*)
8190 if test "x$host_vendor" = xsequent; then
8191 # Use $CC to link under sequent, because it throws in some extra .o
8192 # files that make .init and .fini sections work.
8193 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8194 else
8195 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8196 fi
8197 hardcode_libdir_flag_spec='-L$libdir'
8198 hardcode_direct=yes
8199 hardcode_minus_L=yes
8200 hardcode_shlibpath_var=no
8201 ;;
8202
8203 sysv4)
8204 case $host_vendor in
8205 sni)
8206 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8207 hardcode_direct=yes # is this really true???
8208 ;;
8209 siemens)
8210 ## LD is ld it makes a PLAMLIB
8211 ## CC just makes a GrossModule.
8212 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8213 reload_cmds='$CC -r -o $output$reload_objs'
8214 hardcode_direct=no
8215 ;;
8216 motorola)
8217 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8218 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8219 ;;
8220 esac
8221 runpath_var='LD_RUN_PATH'
8222 hardcode_shlibpath_var=no
8223 ;;
8224
8225 sysv4.3*)
8226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8227 hardcode_shlibpath_var=no
8228 export_dynamic_flag_spec='-Bexport'
8229 ;;
8230
8231 sysv4*MP*)
8232 if test -d /usr/nec; then
8233 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8234 hardcode_shlibpath_var=no
8235 runpath_var=LD_RUN_PATH
8236 hardcode_runpath_var=yes
8237 ld_shlibs=yes
8238 fi
8239 ;;
8240
8241 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8242 no_undefined_flag='${wl}-z,text'
8243 archive_cmds_need_lc=no
8244 hardcode_shlibpath_var=no
8245 runpath_var='LD_RUN_PATH'
8246
8247 if test "$GCC" = yes; then
8248 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8249 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8250 else
8251 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8252 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8253 fi
8254 ;;
8255
8256 sysv5* | sco3.2v5* | sco5v6*)
8257 # Note: We can NOT use -z defs as we might desire, because we do not
8258 # link with -lc, and that would cause any symbols used from libc to
8259 # always be unresolved, which means just about no library would
8260 # ever link correctly. If we're not using GNU ld we use -z text
8261 # though, which does catch some bad symbols but isn't as heavy-handed
8262 # as -z defs.
8263 no_undefined_flag='${wl}-z,text'
8264 allow_undefined_flag='${wl}-z,nodefs'
8265 archive_cmds_need_lc=no
8266 hardcode_shlibpath_var=no
8267 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8268 hardcode_libdir_separator=':'
8269 link_all_deplibs=yes
8270 export_dynamic_flag_spec='${wl}-Bexport'
8271 runpath_var='LD_RUN_PATH'
8272
8273 if test "$GCC" = yes; then
8274 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8275 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8276 else
8277 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8278 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8279 fi
8280 ;;
8281
8282 uts4*)
8283 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8284 hardcode_libdir_flag_spec='-L$libdir'
8285 hardcode_shlibpath_var=no
8286 ;;
8287
8288 *)
8289 ld_shlibs=no
8290 ;;
8291 esac
8292
8293 if test x$host_vendor = xsni; then
8294 case $host in
8295 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8296 export_dynamic_flag_spec='${wl}-Blargedynsym'
8297 ;;
8298 esac
8299 fi
8300 fi
8301
8302echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8303echo "${ECHO_T}$ld_shlibs" >&6
8304test "$ld_shlibs" = no && can_build_shared=no
8305
8306with_gnu_ld=$with_gnu_ld
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322#
8323# Do we need to explicitly link libc?
8324#
8325case "x$archive_cmds_need_lc" in
8326x|xyes)
8327 # Assume -lc should be added
8328 archive_cmds_need_lc=yes
8329
8330 if test "$enable_shared" = yes && test "$GCC" = yes; then
8331 case $archive_cmds in
8332 *'~'*)
8333 # FIXME: we may have to deal with multi-command sequences.
8334 ;;
8335 '$CC '*)
8336 # Test whether the compiler implicitly links with -lc since on some
8337 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8338 # to ld, don't add -lc before -lgcc.
8339 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8340echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8341 $RM conftest*
8342 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8343
8344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8345 (eval $ac_compile) 2>&5
20e95c23
DJ
8346 ac_status=$?
8347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8348 (exit $ac_status); } 2>conftest.err; then
8349 soname=conftest
8350 lib=conftest
8351 libobjs=conftest.$ac_objext
8352 deplibs=
8353 wl=$lt_prog_compiler_wl
8354 pic_flag=$lt_prog_compiler_pic
8355 compiler_flags=-v
8356 linker_flags=-v
8357 verstring=
8358 output_objdir=.
8359 libname=conftest
8360 lt_save_allow_undefined_flag=$allow_undefined_flag
8361 allow_undefined_flag=
8362 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8363 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20e95c23
DJ
8364 ac_status=$?
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8366 (exit $ac_status); }
8367 then
8368 archive_cmds_need_lc=no
8369 else
8370 archive_cmds_need_lc=yes
8371 fi
8372 allow_undefined_flag=$lt_save_allow_undefined_flag
8373 else
8374 cat conftest.err 1>&5
8375 fi
8376 $RM conftest*
8377 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8378echo "${ECHO_T}$archive_cmds_need_lc" >&6
8379 ;;
8380 esac
8381 fi
8382 ;;
8383esac
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8542echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8543withGCC=$GCC
8544if test "$withGCC" = yes; then
8545 case $host_os in
8546 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8547 *) lt_awk_arg="/^libraries:/" ;;
8548 esac
8549 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8550 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8551 # if the path contains ";" then we assume it to be the separator
8552 # otherwise default to the standard path separator (i.e. ":") - it is
8553 # assumed that no part of a normal pathname contains ";" but that should
8554 # okay in the real world where ";" in dirpaths is itself problematic.
8555 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8556 else
8557 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8558 fi
8559 # Ok, now we have the path, separated by spaces, we can step through it
8560 # and add multilib dir if necessary.
8561 lt_tmp_lt_search_path_spec=
8562 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8563 for lt_sys_path in $lt_search_path_spec; do
8564 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8565 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8566 else
8567 test -d "$lt_sys_path" && \
8568 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8569 fi
8570 done
8571 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8572BEGIN {RS=" "; FS="/|\n";} {
8573 lt_foo="";
8574 lt_count=0;
8575 for (lt_i = NF; lt_i > 0; lt_i--) {
8576 if ($lt_i != "" && $lt_i != ".") {
8577 if ($lt_i == "..") {
8578 lt_count++;
8579 } else {
8580 if (lt_count == 0) {
8581 lt_foo="/" $lt_i lt_foo;
8582 } else {
8583 lt_count--;
8584 }
8585 }
8586 }
8587 }
8588 if (lt_foo != "") { lt_freq[lt_foo]++; }
8589 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8590}'`
8591 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8592else
8593 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8594fi
8595library_names_spec=
8596libname_spec='lib$name'
8597soname_spec=
8598shrext_cmds=".so"
8599postinstall_cmds=
8600postuninstall_cmds=
8601finish_cmds=
8602finish_eval=
8603shlibpath_var=
8604shlibpath_overrides_runpath=unknown
8605version_type=none
8606dynamic_linker="$host_os ld.so"
8607sys_lib_dlsearch_path_spec="/lib /usr/lib"
8608need_lib_prefix=unknown
8609hardcode_into_libs=no
8610
8611# when you set need_version to no, make sure it does not cause -set_version
8612# flags to be left without arguments
8613need_version=unknown
8614
8615case $host_os in
8616aix3*)
8617 version_type=linux
8618 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8619 shlibpath_var=LIBPATH
8620
8621 # AIX 3 has no versioning support, so we append a major version to the name.
8622 soname_spec='${libname}${release}${shared_ext}$major'
8623 ;;
8624
50e7d84b 8625aix[4-9]*)
d7040cdb
SE
8626 version_type=linux
8627 need_lib_prefix=no
8628 need_version=no
8629 hardcode_into_libs=yes
8630 if test "$host_cpu" = ia64; then
8631 # AIX 5 supports IA64
8632 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8633 shlibpath_var=LD_LIBRARY_PATH
8634 else
8635 # With GCC up to 2.95.x, collect2 would create an import file
8636 # for dependence libraries. The import file would start with
8637 # the line `#! .'. This would cause the generated library to
8638 # depend on `.', always an invalid library. This was fixed in
8639 # development snapshots of GCC prior to 3.0.
8640 case $host_os in
8641 aix4 | aix4.[01] | aix4.[01].*)
8642 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8643 echo ' yes '
8644 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8645 :
8646 else
8647 can_build_shared=no
8648 fi
8649 ;;
8650 esac
8651 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8652 # soname into executable. Probably we can add versioning support to
8653 # collect2, so additional links can be useful in future.
8654 if test "$aix_use_runtimelinking" = yes; then
8655 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8656 # instead of lib<name>.a to let people know that these are not
8657 # typical AIX shared libraries.
8658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8659 else
8660 # We preserve .a as extension for shared libraries through AIX4.2
8661 # and later when we are not doing run time linking.
8662 library_names_spec='${libname}${release}.a $libname.a'
8663 soname_spec='${libname}${release}${shared_ext}$major'
8664 fi
8665 shlibpath_var=LIBPATH
8666 fi
8667 ;;
8668
8669amigaos*)
8670 if test "$host_cpu" = m68k; then
8671 library_names_spec='$libname.ixlibrary $libname.a'
8672 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8673 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'
8674 else
8675 dynamic_linker=no
8676 fi
8677 ;;
8678
8679beos*)
8680 library_names_spec='${libname}${shared_ext}'
8681 dynamic_linker="$host_os ld.so"
8682 shlibpath_var=LIBRARY_PATH
8683 ;;
8684
8685bsdi[45]*)
8686 version_type=linux
8687 need_version=no
8688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8689 soname_spec='${libname}${release}${shared_ext}$major'
8690 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8691 shlibpath_var=LD_LIBRARY_PATH
8692 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8693 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8694 # the default ld.so.conf also contains /usr/contrib/lib and
8695 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8696 # libtool to hard-code these into programs
8697 ;;
8698
8699cygwin* | mingw* | pw32*)
8700 version_type=windows
8701 shrext_cmds=".dll"
8702 need_version=no
8703 need_lib_prefix=no
8704
8705 case $withGCC,$host_os in
8706 yes,cygwin* | yes,mingw* | yes,pw32*)
8707 library_names_spec='$libname.dll.a'
8708 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8709 postinstall_cmds='base_file=`basename \${file}`~
8710 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8711 dldir=$destdir/`dirname \$dlpath`~
8712 test -d \$dldir || mkdir -p \$dldir~
8713 $install_prog $dir/$dlname \$dldir/$dlname~
8714 chmod a+x \$dldir/$dlname~
8715 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8716 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8717 fi'
8718 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8719 dlpath=$dir/\$dldll~
8720 $RM \$dlpath'
8721 shlibpath_overrides_runpath=yes
8722
8723 case $host_os in
8724 cygwin*)
8725 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8726 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8727 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8728 ;;
8729 mingw*)
8730 # MinGW DLLs use traditional 'lib' prefix
8731 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8732 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8733 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8734 # It is most probably a Windows format PATH printed by
8735 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8736 # path with ; separators, and with drive letters. We can handle the
8737 # drive letters (cygwin fileutils understands them), so leave them,
8738 # especially as we might pass files found there to a mingw objdump,
8739 # which wouldn't understand a cygwinified path. Ahh.
8740 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8741 else
8742 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8743 fi
8744 ;;
8745 pw32*)
8746 # pw32 DLLs use 'pw' prefix rather than 'lib'
8747 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8748 ;;
8749 esac
8750 ;;
8751
8752 *)
8753 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8754 ;;
8755 esac
8756 dynamic_linker='Win32 ld.exe'
8757 # FIXME: first we should search . and the directory the executable is in
8758 shlibpath_var=PATH
8759 ;;
8760
8761darwin* | rhapsody*)
8762 dynamic_linker="$host_os dyld"
8763 version_type=darwin
8764 need_lib_prefix=no
8765 need_version=no
8766 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8767 soname_spec='${libname}${release}${major}$shared_ext'
8768 shlibpath_overrides_runpath=yes
8769 shlibpath_var=DYLD_LIBRARY_PATH
8770 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8771
8772 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8773 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8774 ;;
8775
8776dgux*)
8777 version_type=linux
8778 need_lib_prefix=no
8779 need_version=no
8780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8781 soname_spec='${libname}${release}${shared_ext}$major'
8782 shlibpath_var=LD_LIBRARY_PATH
8783 ;;
8784
8785freebsd1*)
8786 dynamic_linker=no
8787 ;;
8788
8789freebsd* | dragonfly*)
8790 # DragonFly does not have aout. When/if they implement a new
8791 # versioning mechanism, adjust this.
8792 if test -x /usr/bin/objformat; then
8793 objformat=`/usr/bin/objformat`
8794 else
8795 case $host_os in
8796 freebsd[123]*) objformat=aout ;;
8797 *) objformat=elf ;;
8798 esac
8799 fi
8800 version_type=freebsd-$objformat
8801 case $version_type in
8802 freebsd-elf*)
8803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8804 need_version=no
8805 need_lib_prefix=no
8806 ;;
8807 freebsd-*)
8808 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8809 need_version=yes
8810 ;;
8811 esac
8812 shlibpath_var=LD_LIBRARY_PATH
8813 case $host_os in
8814 freebsd2*)
8815 shlibpath_overrides_runpath=yes
8816 ;;
8817 freebsd3.[01]* | freebsdelf3.[01]*)
8818 shlibpath_overrides_runpath=yes
8819 hardcode_into_libs=yes
8820 ;;
8821 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8822 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8823 shlibpath_overrides_runpath=no
8824 hardcode_into_libs=yes
8825 ;;
8826 *) # from 4.6 on, and DragonFly
8827 shlibpath_overrides_runpath=yes
8828 hardcode_into_libs=yes
8829 ;;
8830 esac
8831 ;;
8832
8833gnu*)
8834 version_type=linux
8835 need_lib_prefix=no
8836 need_version=no
8837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8838 soname_spec='${libname}${release}${shared_ext}$major'
8839 shlibpath_var=LD_LIBRARY_PATH
8840 hardcode_into_libs=yes
8841 ;;
8842
8843hpux9* | hpux10* | hpux11*)
8844 # Give a soname corresponding to the major version so that dld.sl refuses to
8845 # link against other versions.
8846 version_type=sunos
8847 need_lib_prefix=no
8848 need_version=no
8849 case $host_cpu in
8850 ia64*)
8851 shrext_cmds='.so'
8852 hardcode_into_libs=yes
8853 dynamic_linker="$host_os dld.so"
8854 shlibpath_var=LD_LIBRARY_PATH
8855 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8857 soname_spec='${libname}${release}${shared_ext}$major'
8858 if test "X$HPUX_IA64_MODE" = X32; then
8859 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8860 else
8861 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8862 fi
8863 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8864 ;;
8865 hppa*64*)
8866 shrext_cmds='.sl'
8867 hardcode_into_libs=yes
8868 dynamic_linker="$host_os dld.sl"
8869 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8870 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8872 soname_spec='${libname}${release}${shared_ext}$major'
8873 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8874 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8875 ;;
8876 *)
8877 shrext_cmds='.sl'
8878 dynamic_linker="$host_os dld.sl"
8879 shlibpath_var=SHLIB_PATH
8880 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8882 soname_spec='${libname}${release}${shared_ext}$major'
8883 ;;
8884 esac
8885 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8886 postinstall_cmds='chmod 555 $lib'
8887 ;;
8888
8889interix[3-9]*)
8890 version_type=linux
8891 need_lib_prefix=no
8892 need_version=no
8893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8894 soname_spec='${libname}${release}${shared_ext}$major'
8895 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8896 shlibpath_var=LD_LIBRARY_PATH
8897 shlibpath_overrides_runpath=no
8898 hardcode_into_libs=yes
8899 ;;
8900
8901irix5* | irix6* | nonstopux*)
8902 case $host_os in
8903 nonstopux*) version_type=nonstopux ;;
8904 *)
8905 if test "$lt_cv_prog_gnu_ld" = yes; then
8906 version_type=linux
8907 else
8908 version_type=irix
8909 fi ;;
8910 esac
8911 need_lib_prefix=no
8912 need_version=no
8913 soname_spec='${libname}${release}${shared_ext}$major'
8914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8915 case $host_os in
8916 irix5* | nonstopux*)
8917 libsuff= shlibsuff=
8918 ;;
8919 *)
8920 case $LD in # libtool.m4 will add one of these switches to LD
8921 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8922 libsuff= shlibsuff= libmagic=32-bit;;
8923 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8924 libsuff=32 shlibsuff=N32 libmagic=N32;;
8925 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8926 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8927 *) libsuff= shlibsuff= libmagic=never-match;;
8928 esac
8929 ;;
8930 esac
8931 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8932 shlibpath_overrides_runpath=no
8933 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8934 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8935 hardcode_into_libs=yes
8936 ;;
8937
8938# No shared lib support for Linux oldld, aout, or coff.
8939linux*oldld* | linux*aout* | linux*coff*)
8940 dynamic_linker=no
8941 ;;
8942
8943# This must be Linux ELF.
8944linux* | k*bsd*-gnu)
8945 version_type=linux
8946 need_lib_prefix=no
8947 need_version=no
8948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8949 soname_spec='${libname}${release}${shared_ext}$major'
8950 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8951 shlibpath_var=LD_LIBRARY_PATH
8952 shlibpath_overrides_runpath=no
8953 # Some binutils ld are patched to set DT_RUNPATH
8954 save_LDFLAGS=$LDFLAGS
8955 save_libdir=$libdir
8956 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8957 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8958 cat >conftest.$ac_ext <<_ACEOF
8959/* confdefs.h. */
8960_ACEOF
8961cat confdefs.h >>conftest.$ac_ext
8962cat >>conftest.$ac_ext <<_ACEOF
8963/* end confdefs.h. */
8964
8965int
8966main ()
8967{
8968
8969 ;
8970 return 0;
8971}
8972_ACEOF
8973rm -f conftest.$ac_objext conftest$ac_exeext
8974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8975 (eval $ac_link) 2>conftest.er1
8976 ac_status=$?
8977 grep -v '^ *+' conftest.er1 >conftest.err
8978 rm -f conftest.er1
8979 cat conftest.err >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); } &&
8982 { ac_try='test -z "$ac_c_werror_flag"
8983 || test ! -s conftest.err'
8984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8985 (eval $ac_try) 2>&5
8986 ac_status=$?
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); }; } &&
8989 { ac_try='test -s conftest$ac_exeext'
8990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8991 (eval $ac_try) 2>&5
8992 ac_status=$?
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); }; }; then
8995 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8996 shlibpath_overrides_runpath=yes
8997fi
8998
8999else
9000 echo "$as_me: failed program was:" >&5
9001sed 's/^/| /' conftest.$ac_ext >&5
9002
9003fi
9004rm -f conftest.err conftest.$ac_objext \
9005 conftest$ac_exeext conftest.$ac_ext
9006 LDFLAGS=$save_LDFLAGS
9007 libdir=$save_libdir
9008
9009 # This implies no fast_install, which is unacceptable.
9010 # Some rework will be needed to allow for fast_install
9011 # before this can be enabled.
9012 hardcode_into_libs=yes
9013
9014 # Append ld.so.conf contents to the search path
9015 if test -f /etc/ld.so.conf; then
9016 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9017 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9018 fi
9019
9020 # We used to test for /lib/ld.so.1 and disable shared libraries on
9021 # powerpc, because MkLinux only supported shared libraries with the
9022 # GNU dynamic linker. Since this was broken with cross compilers,
9023 # most powerpc-linux boxes support dynamic linking these days and
9024 # people can always --disable-shared, the test was removed, and we
9025 # assume the GNU/Linux dynamic linker is in use.
9026 dynamic_linker='GNU/Linux ld.so'
9027 ;;
9028
9029netbsd*)
9030 version_type=sunos
9031 need_lib_prefix=no
9032 need_version=no
9033 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9035 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9036 dynamic_linker='NetBSD (a.out) ld.so'
9037 else
9038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9039 soname_spec='${libname}${release}${shared_ext}$major'
9040 dynamic_linker='NetBSD ld.elf_so'
9041 fi
9042 shlibpath_var=LD_LIBRARY_PATH
9043 shlibpath_overrides_runpath=yes
9044 hardcode_into_libs=yes
9045 ;;
9046
9047newsos6)
9048 version_type=linux
9049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9050 shlibpath_var=LD_LIBRARY_PATH
9051 shlibpath_overrides_runpath=yes
9052 ;;
9053
9054*nto* | *qnx*)
9055 version_type=qnx
9056 need_lib_prefix=no
9057 need_version=no
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9059 soname_spec='${libname}${release}${shared_ext}$major'
9060 shlibpath_var=LD_LIBRARY_PATH
9061 shlibpath_overrides_runpath=no
9062 hardcode_into_libs=yes
9063 dynamic_linker='ldqnx.so'
9064 ;;
9065
9066openbsd*)
9067 version_type=sunos
9068 sys_lib_dlsearch_path_spec="/usr/lib"
9069 need_lib_prefix=no
9070 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9071 case $host_os in
9072 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9073 *) need_version=no ;;
9074 esac
9075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9076 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9077 shlibpath_var=LD_LIBRARY_PATH
9078 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9079 case $host_os in
9080 openbsd2.[89] | openbsd2.[89].*)
9081 shlibpath_overrides_runpath=no
9082 ;;
9083 *)
9084 shlibpath_overrides_runpath=yes
9085 ;;
9086 esac
9087 else
9088 shlibpath_overrides_runpath=yes
9089 fi
9090 ;;
9091
9092os2*)
9093 libname_spec='$name'
9094 shrext_cmds=".dll"
9095 need_lib_prefix=no
9096 library_names_spec='$libname${shared_ext} $libname.a'
9097 dynamic_linker='OS/2 ld.exe'
9098 shlibpath_var=LIBPATH
9099 ;;
9100
9101osf3* | osf4* | osf5*)
9102 version_type=osf
9103 need_lib_prefix=no
9104 need_version=no
9105 soname_spec='${libname}${release}${shared_ext}$major'
9106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9107 shlibpath_var=LD_LIBRARY_PATH
9108 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9109 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9110 ;;
9111
9112rdos*)
9113 dynamic_linker=no
9114 ;;
9115
9116solaris*)
9117 version_type=linux
9118 need_lib_prefix=no
9119 need_version=no
9120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9121 soname_spec='${libname}${release}${shared_ext}$major'
9122 shlibpath_var=LD_LIBRARY_PATH
9123 shlibpath_overrides_runpath=yes
9124 hardcode_into_libs=yes
9125 # ldd complains unless libraries are executable
9126 postinstall_cmds='chmod +x $lib'
9127 ;;
9128
9129sunos4*)
9130 version_type=sunos
9131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9132 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9133 shlibpath_var=LD_LIBRARY_PATH
9134 shlibpath_overrides_runpath=yes
9135 if test "$with_gnu_ld" = yes; then
9136 need_lib_prefix=no
9137 fi
9138 need_version=yes
9139 ;;
9140
9141sysv4 | sysv4.3*)
9142 version_type=linux
9143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9144 soname_spec='${libname}${release}${shared_ext}$major'
9145 shlibpath_var=LD_LIBRARY_PATH
9146 case $host_vendor in
9147 sni)
9148 shlibpath_overrides_runpath=no
9149 need_lib_prefix=no
9150 runpath_var=LD_RUN_PATH
9151 ;;
9152 siemens)
9153 need_lib_prefix=no
9154 ;;
9155 motorola)
9156 need_lib_prefix=no
9157 need_version=no
9158 shlibpath_overrides_runpath=no
9159 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9160 ;;
9161 esac
9162 ;;
9163
9164sysv4*MP*)
9165 if test -d /usr/nec ;then
9166 version_type=linux
9167 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9168 soname_spec='$libname${shared_ext}.$major'
9169 shlibpath_var=LD_LIBRARY_PATH
9170 fi
9171 ;;
9172
9173sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9174 version_type=freebsd-elf
9175 need_lib_prefix=no
9176 need_version=no
9177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9178 soname_spec='${libname}${release}${shared_ext}$major'
9179 shlibpath_var=LD_LIBRARY_PATH
9180 shlibpath_overrides_runpath=yes
9181 hardcode_into_libs=yes
9182 if test "$with_gnu_ld" = yes; then
9183 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9184 else
9185 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9186 case $host_os in
9187 sco3.2v5*)
9188 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9189 ;;
9190 esac
9191 fi
9192 sys_lib_dlsearch_path_spec='/usr/lib'
9193 ;;
9194
9195tpf*)
9196 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9197 version_type=linux
9198 need_lib_prefix=no
9199 need_version=no
9200 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9201 shlibpath_var=LD_LIBRARY_PATH
9202 shlibpath_overrides_runpath=no
9203 hardcode_into_libs=yes
9204 ;;
9205
9206uts4*)
9207 version_type=linux
9208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9209 soname_spec='${libname}${release}${shared_ext}$major'
9210 shlibpath_var=LD_LIBRARY_PATH
9211 ;;
9212
9213*)
9214 dynamic_linker=no
9215 ;;
9216esac
9217echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9218echo "${ECHO_T}$dynamic_linker" >&6
9219test "$dynamic_linker" = no && can_build_shared=no
9220
9221variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9222if test "$GCC" = yes; then
9223 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9224fi
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9313echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9314hardcode_action=
9315if test -n "$hardcode_libdir_flag_spec" ||
9316 test -n "$runpath_var" ||
9317 test "X$hardcode_automatic" = "Xyes" ; then
9318
9319 # We can hardcode non-existent directories.
9320 if test "$hardcode_direct" != no &&
9321 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9322 # have to relink, otherwise we might link with an installed library
9323 # when we should be linking with a yet-to-be-installed one
9324 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9325 test "$hardcode_minus_L" != no; then
9326 # Linking always hardcodes the temporary library directory.
9327 hardcode_action=relink
9328 else
9329 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9330 hardcode_action=immediate
9331 fi
9332else
9333 # We cannot hardcode anything, or else we can only hardcode existing
9334 # directories.
9335 hardcode_action=unsupported
9336fi
9337echo "$as_me:$LINENO: result: $hardcode_action" >&5
9338echo "${ECHO_T}$hardcode_action" >&6
9339
9340if test "$hardcode_action" = relink ||
9341 test "$inherit_rpath" = yes; then
9342 # Fast installation is not supported
9343 enable_fast_install=no
9344elif test "$shlibpath_overrides_runpath" = yes ||
9345 test "$enable_shared" = no; then
9346 # Fast installation is not necessary
9347 enable_fast_install=needless
9348fi
9349
9350
9351
9352
9353
9354
9355 if test "x$enable_dlopen" != xyes; then
9356 enable_dlopen=unknown
9357 enable_dlopen_self=unknown
9358 enable_dlopen_self_static=unknown
9359else
9360 lt_cv_dlopen=no
9361 lt_cv_dlopen_libs=
9362
9363 case $host_os in
9364 beos*)
9365 lt_cv_dlopen="load_add_on"
9366 lt_cv_dlopen_libs=
9367 lt_cv_dlopen_self=yes
9368 ;;
9369
9370 mingw* | pw32*)
9371 lt_cv_dlopen="LoadLibrary"
9372 lt_cv_dlopen_libs=
9373 ;;
9374
9375 cygwin*)
9376 lt_cv_dlopen="dlopen"
9377 lt_cv_dlopen_libs=
9378 ;;
9379
9380 darwin*)
9381 # if libdl is installed we need to link against it
9382 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9383echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9384if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9385 echo $ECHO_N "(cached) $ECHO_C" >&6
9386else
9387 ac_check_lib_save_LIBS=$LIBS
9388LIBS="-ldl $LIBS"
9389cat >conftest.$ac_ext <<_ACEOF
9390/* confdefs.h. */
9391_ACEOF
9392cat confdefs.h >>conftest.$ac_ext
9393cat >>conftest.$ac_ext <<_ACEOF
9394/* end confdefs.h. */
9395
9396/* Override any gcc2 internal prototype to avoid an error. */
9397#ifdef __cplusplus
9398extern "C"
9399#endif
9400/* We use char because int might match the return type of a gcc2
9401 builtin and then its argument prototype would still apply. */
9402char dlopen ();
9403int
9404main ()
9405{
9406dlopen ();
9407 ;
9408 return 0;
9409}
9410_ACEOF
9411rm -f conftest.$ac_objext conftest$ac_exeext
9412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9413 (eval $ac_link) 2>conftest.er1
9414 ac_status=$?
9415 grep -v '^ *+' conftest.er1 >conftest.err
9416 rm -f conftest.er1
9417 cat conftest.err >&5
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); } &&
9420 { ac_try='test -z "$ac_c_werror_flag"
9421 || test ! -s conftest.err'
9422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423 (eval $ac_try) 2>&5
9424 ac_status=$?
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); }; } &&
9427 { ac_try='test -s conftest$ac_exeext'
9428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9429 (eval $ac_try) 2>&5
9430 ac_status=$?
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); }; }; then
9433 ac_cv_lib_dl_dlopen=yes
9434else
9435 echo "$as_me: failed program was:" >&5
9436sed 's/^/| /' conftest.$ac_ext >&5
9437
9438ac_cv_lib_dl_dlopen=no
9439fi
9440rm -f conftest.err conftest.$ac_objext \
9441 conftest$ac_exeext conftest.$ac_ext
9442LIBS=$ac_check_lib_save_LIBS
9443fi
9444echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9445echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9446if test $ac_cv_lib_dl_dlopen = yes; then
9447 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9448else
9449
9450 lt_cv_dlopen="dyld"
9451 lt_cv_dlopen_libs=
9452 lt_cv_dlopen_self=yes
9453
9454fi
9455
9456 ;;
9457
9458 *)
9459 echo "$as_me:$LINENO: checking for shl_load" >&5
9460echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9461if test "${ac_cv_func_shl_load+set}" = set; then
9462 echo $ECHO_N "(cached) $ECHO_C" >&6
9463else
9464 cat >conftest.$ac_ext <<_ACEOF
9465/* confdefs.h. */
9466_ACEOF
9467cat confdefs.h >>conftest.$ac_ext
9468cat >>conftest.$ac_ext <<_ACEOF
9469/* end confdefs.h. */
9470/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9472#define shl_load innocuous_shl_load
9473
9474/* System header to define __stub macros and hopefully few prototypes,
9475 which can conflict with char shl_load (); below.
9476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9477 <limits.h> exists even on freestanding compilers. */
9478
9479#ifdef __STDC__
9480# include <limits.h>
9481#else
9482# include <assert.h>
9483#endif
9484
9485#undef shl_load
9486
9487/* Override any gcc2 internal prototype to avoid an error. */
9488#ifdef __cplusplus
9489extern "C"
9490{
9491#endif
9492/* We use char because int might match the return type of a gcc2
9493 builtin and then its argument prototype would still apply. */
9494char shl_load ();
9495/* The GNU C library defines this for functions which it implements
9496 to always fail with ENOSYS. Some functions are actually named
9497 something starting with __ and the normal name is an alias. */
9498#if defined (__stub_shl_load) || defined (__stub___shl_load)
9499choke me
9500#else
9501char (*f) () = shl_load;
9502#endif
9503#ifdef __cplusplus
9504}
9505#endif
9506
9507int
9508main ()
9509{
9510return f != shl_load;
9511 ;
9512 return 0;
9513}
9514_ACEOF
9515rm -f conftest.$ac_objext conftest$ac_exeext
9516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9517 (eval $ac_link) 2>conftest.er1
9518 ac_status=$?
9519 grep -v '^ *+' conftest.er1 >conftest.err
9520 rm -f conftest.er1
9521 cat conftest.err >&5
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); } &&
9524 { ac_try='test -z "$ac_c_werror_flag"
9525 || test ! -s conftest.err'
9526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9527 (eval $ac_try) 2>&5
9528 ac_status=$?
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); }; } &&
9531 { ac_try='test -s conftest$ac_exeext'
9532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9533 (eval $ac_try) 2>&5
9534 ac_status=$?
9535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536 (exit $ac_status); }; }; then
9537 ac_cv_func_shl_load=yes
9538else
9539 echo "$as_me: failed program was:" >&5
9540sed 's/^/| /' conftest.$ac_ext >&5
9541
9542ac_cv_func_shl_load=no
9543fi
9544rm -f conftest.err conftest.$ac_objext \
9545 conftest$ac_exeext conftest.$ac_ext
9546fi
9547echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9548echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9549if test $ac_cv_func_shl_load = yes; then
9550 lt_cv_dlopen="shl_load"
9551else
9552 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9553echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9554if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9555 echo $ECHO_N "(cached) $ECHO_C" >&6
9556else
9557 ac_check_lib_save_LIBS=$LIBS
9558LIBS="-ldld $LIBS"
9559cat >conftest.$ac_ext <<_ACEOF
9560/* confdefs.h. */
9561_ACEOF
9562cat confdefs.h >>conftest.$ac_ext
9563cat >>conftest.$ac_ext <<_ACEOF
9564/* end confdefs.h. */
9565
9566/* Override any gcc2 internal prototype to avoid an error. */
9567#ifdef __cplusplus
9568extern "C"
9569#endif
9570/* We use char because int might match the return type of a gcc2
9571 builtin and then its argument prototype would still apply. */
9572char shl_load ();
9573int
9574main ()
9575{
9576shl_load ();
9577 ;
9578 return 0;
9579}
9580_ACEOF
9581rm -f conftest.$ac_objext conftest$ac_exeext
9582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9583 (eval $ac_link) 2>conftest.er1
9584 ac_status=$?
9585 grep -v '^ *+' conftest.er1 >conftest.err
9586 rm -f conftest.er1
9587 cat conftest.err >&5
9588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 (exit $ac_status); } &&
9590 { ac_try='test -z "$ac_c_werror_flag"
9591 || test ! -s conftest.err'
9592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9593 (eval $ac_try) 2>&5
9594 ac_status=$?
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); }; } &&
9597 { ac_try='test -s conftest$ac_exeext'
9598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9599 (eval $ac_try) 2>&5
9600 ac_status=$?
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); }; }; then
9603 ac_cv_lib_dld_shl_load=yes
9604else
9605 echo "$as_me: failed program was:" >&5
9606sed 's/^/| /' conftest.$ac_ext >&5
9607
9608ac_cv_lib_dld_shl_load=no
9609fi
9610rm -f conftest.err conftest.$ac_objext \
9611 conftest$ac_exeext conftest.$ac_ext
9612LIBS=$ac_check_lib_save_LIBS
9613fi
9614echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9615echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9616if test $ac_cv_lib_dld_shl_load = yes; then
9617 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9618else
9619 echo "$as_me:$LINENO: checking for dlopen" >&5
9620echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9621if test "${ac_cv_func_dlopen+set}" = set; then
9622 echo $ECHO_N "(cached) $ECHO_C" >&6
9623else
9624 cat >conftest.$ac_ext <<_ACEOF
9625/* confdefs.h. */
9626_ACEOF
9627cat confdefs.h >>conftest.$ac_ext
9628cat >>conftest.$ac_ext <<_ACEOF
9629/* end confdefs.h. */
9630/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9632#define dlopen innocuous_dlopen
9633
9634/* System header to define __stub macros and hopefully few prototypes,
9635 which can conflict with char dlopen (); below.
9636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9637 <limits.h> exists even on freestanding compilers. */
9638
9639#ifdef __STDC__
9640# include <limits.h>
9641#else
9642# include <assert.h>
9643#endif
9644
9645#undef dlopen
9646
9647/* Override any gcc2 internal prototype to avoid an error. */
9648#ifdef __cplusplus
9649extern "C"
9650{
9651#endif
9652/* We use char because int might match the return type of a gcc2
9653 builtin and then its argument prototype would still apply. */
9654char dlopen ();
9655/* The GNU C library defines this for functions which it implements
9656 to always fail with ENOSYS. Some functions are actually named
9657 something starting with __ and the normal name is an alias. */
9658#if defined (__stub_dlopen) || defined (__stub___dlopen)
9659choke me
9660#else
9661char (*f) () = dlopen;
9662#endif
9663#ifdef __cplusplus
9664}
9665#endif
9666
9667int
9668main ()
9669{
9670return f != dlopen;
9671 ;
9672 return 0;
9673}
9674_ACEOF
9675rm -f conftest.$ac_objext conftest$ac_exeext
9676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9677 (eval $ac_link) 2>conftest.er1
9678 ac_status=$?
9679 grep -v '^ *+' conftest.er1 >conftest.err
9680 rm -f conftest.er1
9681 cat conftest.err >&5
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); } &&
9684 { ac_try='test -z "$ac_c_werror_flag"
9685 || test ! -s conftest.err'
9686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9687 (eval $ac_try) 2>&5
9688 ac_status=$?
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); }; } &&
9691 { ac_try='test -s conftest$ac_exeext'
9692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9693 (eval $ac_try) 2>&5
9694 ac_status=$?
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); }; }; then
9697 ac_cv_func_dlopen=yes
9698else
9699 echo "$as_me: failed program was:" >&5
9700sed 's/^/| /' conftest.$ac_ext >&5
9701
9702ac_cv_func_dlopen=no
9703fi
9704rm -f conftest.err conftest.$ac_objext \
9705 conftest$ac_exeext conftest.$ac_ext
9706fi
9707echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9708echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9709if test $ac_cv_func_dlopen = yes; then
9710 lt_cv_dlopen="dlopen"
9711else
9712 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9713echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9714if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9715 echo $ECHO_N "(cached) $ECHO_C" >&6
9716else
9717 ac_check_lib_save_LIBS=$LIBS
9718LIBS="-ldl $LIBS"
9719cat >conftest.$ac_ext <<_ACEOF
9720/* confdefs.h. */
9721_ACEOF
9722cat confdefs.h >>conftest.$ac_ext
9723cat >>conftest.$ac_ext <<_ACEOF
9724/* end confdefs.h. */
9725
9726/* Override any gcc2 internal prototype to avoid an error. */
9727#ifdef __cplusplus
9728extern "C"
9729#endif
9730/* We use char because int might match the return type of a gcc2
9731 builtin and then its argument prototype would still apply. */
9732char dlopen ();
9733int
9734main ()
9735{
9736dlopen ();
9737 ;
9738 return 0;
9739}
9740_ACEOF
9741rm -f conftest.$ac_objext conftest$ac_exeext
9742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9743 (eval $ac_link) 2>conftest.er1
9744 ac_status=$?
9745 grep -v '^ *+' conftest.er1 >conftest.err
9746 rm -f conftest.er1
9747 cat conftest.err >&5
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); } &&
9750 { ac_try='test -z "$ac_c_werror_flag"
9751 || test ! -s conftest.err'
9752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753 (eval $ac_try) 2>&5
9754 ac_status=$?
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); }; } &&
9757 { ac_try='test -s conftest$ac_exeext'
9758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759 (eval $ac_try) 2>&5
9760 ac_status=$?
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); }; }; then
9763 ac_cv_lib_dl_dlopen=yes
9764else
9765 echo "$as_me: failed program was:" >&5
9766sed 's/^/| /' conftest.$ac_ext >&5
9767
9768ac_cv_lib_dl_dlopen=no
9769fi
9770rm -f conftest.err conftest.$ac_objext \
9771 conftest$ac_exeext conftest.$ac_ext
9772LIBS=$ac_check_lib_save_LIBS
9773fi
9774echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9775echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9776if test $ac_cv_lib_dl_dlopen = yes; then
9777 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9778else
9779 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9780echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9781if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9782 echo $ECHO_N "(cached) $ECHO_C" >&6
9783else
9784 ac_check_lib_save_LIBS=$LIBS
9785LIBS="-lsvld $LIBS"
9786cat >conftest.$ac_ext <<_ACEOF
9787/* confdefs.h. */
9788_ACEOF
9789cat confdefs.h >>conftest.$ac_ext
9790cat >>conftest.$ac_ext <<_ACEOF
9791/* end confdefs.h. */
9792
9793/* Override any gcc2 internal prototype to avoid an error. */
9794#ifdef __cplusplus
9795extern "C"
9796#endif
9797/* We use char because int might match the return type of a gcc2
9798 builtin and then its argument prototype would still apply. */
9799char dlopen ();
9800int
9801main ()
9802{
9803dlopen ();
9804 ;
9805 return 0;
9806}
9807_ACEOF
9808rm -f conftest.$ac_objext conftest$ac_exeext
9809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9810 (eval $ac_link) 2>conftest.er1
9811 ac_status=$?
9812 grep -v '^ *+' conftest.er1 >conftest.err
9813 rm -f conftest.er1
9814 cat conftest.err >&5
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); } &&
9817 { ac_try='test -z "$ac_c_werror_flag"
9818 || test ! -s conftest.err'
9819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9820 (eval $ac_try) 2>&5
9821 ac_status=$?
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); }; } &&
9824 { ac_try='test -s conftest$ac_exeext'
9825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9826 (eval $ac_try) 2>&5
9827 ac_status=$?
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); }; }; then
9830 ac_cv_lib_svld_dlopen=yes
9831else
9832 echo "$as_me: failed program was:" >&5
9833sed 's/^/| /' conftest.$ac_ext >&5
9834
9835ac_cv_lib_svld_dlopen=no
9836fi
9837rm -f conftest.err conftest.$ac_objext \
9838 conftest$ac_exeext conftest.$ac_ext
9839LIBS=$ac_check_lib_save_LIBS
9840fi
9841echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9842echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9843if test $ac_cv_lib_svld_dlopen = yes; then
9844 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9845else
9846 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9847echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9848if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9849 echo $ECHO_N "(cached) $ECHO_C" >&6
9850else
9851 ac_check_lib_save_LIBS=$LIBS
9852LIBS="-ldld $LIBS"
9853cat >conftest.$ac_ext <<_ACEOF
9854/* confdefs.h. */
9855_ACEOF
9856cat confdefs.h >>conftest.$ac_ext
9857cat >>conftest.$ac_ext <<_ACEOF
9858/* end confdefs.h. */
9859
9860/* Override any gcc2 internal prototype to avoid an error. */
9861#ifdef __cplusplus
9862extern "C"
9863#endif
9864/* We use char because int might match the return type of a gcc2
9865 builtin and then its argument prototype would still apply. */
9866char dld_link ();
9867int
9868main ()
9869{
9870dld_link ();
9871 ;
9872 return 0;
9873}
9874_ACEOF
9875rm -f conftest.$ac_objext conftest$ac_exeext
9876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9877 (eval $ac_link) 2>conftest.er1
9878 ac_status=$?
9879 grep -v '^ *+' conftest.er1 >conftest.err
9880 rm -f conftest.er1
9881 cat conftest.err >&5
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); } &&
9884 { ac_try='test -z "$ac_c_werror_flag"
9885 || test ! -s conftest.err'
9886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9887 (eval $ac_try) 2>&5
9888 ac_status=$?
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); }; } &&
9891 { ac_try='test -s conftest$ac_exeext'
9892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9893 (eval $ac_try) 2>&5
9894 ac_status=$?
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); }; }; then
9897 ac_cv_lib_dld_dld_link=yes
9898else
9899 echo "$as_me: failed program was:" >&5
9900sed 's/^/| /' conftest.$ac_ext >&5
9901
9902ac_cv_lib_dld_dld_link=no
9903fi
9904rm -f conftest.err conftest.$ac_objext \
9905 conftest$ac_exeext conftest.$ac_ext
9906LIBS=$ac_check_lib_save_LIBS
9907fi
9908echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9909echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9910if test $ac_cv_lib_dld_dld_link = yes; then
9911 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9912fi
9913
9914
9915fi
9916
9917
9918fi
9919
9920
9921fi
9922
9923
9924fi
9925
9926
9927fi
9928
9929 ;;
9930 esac
9931
9932 if test "x$lt_cv_dlopen" != xno; then
9933 enable_dlopen=yes
9934 else
9935 enable_dlopen=no
9936 fi
9937
9938 case $lt_cv_dlopen in
9939 dlopen)
9940 save_CPPFLAGS="$CPPFLAGS"
9941 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9942
9943 save_LDFLAGS="$LDFLAGS"
9944 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9945
9946 save_LIBS="$LIBS"
9947 LIBS="$lt_cv_dlopen_libs $LIBS"
9948
9949 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9950echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9951if test "${lt_cv_dlopen_self+set}" = set; then
9952 echo $ECHO_N "(cached) $ECHO_C" >&6
9953else
9954 if test "$cross_compiling" = yes; then :
9955 lt_cv_dlopen_self=cross
9956else
9957 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9958 lt_status=$lt_dlunknown
9959 cat > conftest.$ac_ext <<_LT_EOF
6194aaab 9960#line 9960 "configure"
d7040cdb
SE
9961#include "confdefs.h"
9962
9963#if HAVE_DLFCN_H
9964#include <dlfcn.h>
9965#endif
9966
9967#include <stdio.h>
9968
9969#ifdef RTLD_GLOBAL
9970# define LT_DLGLOBAL RTLD_GLOBAL
9971#else
9972# ifdef DL_GLOBAL
9973# define LT_DLGLOBAL DL_GLOBAL
9974# else
9975# define LT_DLGLOBAL 0
9976# endif
9977#endif
9978
9979/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9980 find out it does not work in some platform. */
9981#ifndef LT_DLLAZY_OR_NOW
9982# ifdef RTLD_LAZY
9983# define LT_DLLAZY_OR_NOW RTLD_LAZY
9984# else
9985# ifdef DL_LAZY
9986# define LT_DLLAZY_OR_NOW DL_LAZY
9987# else
9988# ifdef RTLD_NOW
9989# define LT_DLLAZY_OR_NOW RTLD_NOW
9990# else
9991# ifdef DL_NOW
9992# define LT_DLLAZY_OR_NOW DL_NOW
9993# else
9994# define LT_DLLAZY_OR_NOW 0
9995# endif
9996# endif
9997# endif
9998# endif
9999#endif
10000
10001#ifdef __cplusplus
10002extern "C" void exit (int);
10003#endif
10004
10005void fnord() { int i=42;}
10006int main ()
10007{
10008 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10009 int status = $lt_dlunknown;
10010
10011 if (self)
10012 {
10013 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10014 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10015 /* dlclose (self); */
10016 }
10017 else
10018 puts (dlerror ());
10019
10020 exit (status);
10021}
10022_LT_EOF
10023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10024 (eval $ac_link) 2>&5
10025 ac_status=$?
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10028 (./conftest; exit; ) >&5 2>/dev/null
10029 lt_status=$?
10030 case x$lt_status in
10031 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10032 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10033 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10034 esac
10035 else :
10036 # compilation failed
10037 lt_cv_dlopen_self=no
10038 fi
10039fi
10040rm -fr conftest*
10041
10042
10043fi
10044echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10045echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10046
10047 if test "x$lt_cv_dlopen_self" = xyes; then
10048 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10049 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10050echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10051if test "${lt_cv_dlopen_self_static+set}" = set; then
10052 echo $ECHO_N "(cached) $ECHO_C" >&6
10053else
10054 if test "$cross_compiling" = yes; then :
10055 lt_cv_dlopen_self_static=cross
10056else
10057 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10058 lt_status=$lt_dlunknown
10059 cat > conftest.$ac_ext <<_LT_EOF
6194aaab 10060#line 10060 "configure"
d7040cdb
SE
10061#include "confdefs.h"
10062
10063#if HAVE_DLFCN_H
10064#include <dlfcn.h>
10065#endif
10066
10067#include <stdio.h>
10068
10069#ifdef RTLD_GLOBAL
10070# define LT_DLGLOBAL RTLD_GLOBAL
10071#else
10072# ifdef DL_GLOBAL
10073# define LT_DLGLOBAL DL_GLOBAL
10074# else
10075# define LT_DLGLOBAL 0
10076# endif
10077#endif
10078
10079/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10080 find out it does not work in some platform. */
10081#ifndef LT_DLLAZY_OR_NOW
10082# ifdef RTLD_LAZY
10083# define LT_DLLAZY_OR_NOW RTLD_LAZY
10084# else
10085# ifdef DL_LAZY
10086# define LT_DLLAZY_OR_NOW DL_LAZY
10087# else
10088# ifdef RTLD_NOW
10089# define LT_DLLAZY_OR_NOW RTLD_NOW
10090# else
10091# ifdef DL_NOW
10092# define LT_DLLAZY_OR_NOW DL_NOW
10093# else
10094# define LT_DLLAZY_OR_NOW 0
10095# endif
10096# endif
10097# endif
10098# endif
10099#endif
10100
10101#ifdef __cplusplus
10102extern "C" void exit (int);
10103#endif
10104
10105void fnord() { int i=42;}
10106int main ()
10107{
10108 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10109 int status = $lt_dlunknown;
10110
10111 if (self)
10112 {
10113 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10114 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10115 /* dlclose (self); */
10116 }
10117 else
10118 puts (dlerror ());
10119
10120 exit (status);
10121}
10122_LT_EOF
10123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10124 (eval $ac_link) 2>&5
10125 ac_status=$?
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10128 (./conftest; exit; ) >&5 2>/dev/null
10129 lt_status=$?
10130 case x$lt_status in
10131 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10132 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10133 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10134 esac
10135 else :
10136 # compilation failed
10137 lt_cv_dlopen_self_static=no
10138 fi
10139fi
10140rm -fr conftest*
10141
10142
10143fi
10144echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10145echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10146 fi
10147
10148 CPPFLAGS="$save_CPPFLAGS"
10149 LDFLAGS="$save_LDFLAGS"
10150 LIBS="$save_LIBS"
10151 ;;
10152 esac
10153
10154 case $lt_cv_dlopen_self in
10155 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10156 *) enable_dlopen_self=unknown ;;
10157 esac
10158
10159 case $lt_cv_dlopen_self_static in
10160 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10161 *) enable_dlopen_self_static=unknown ;;
10162 esac
10163fi
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181striplib=
10182old_striplib=
10183echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10184echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10185if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10186 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10187 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10188 echo "$as_me:$LINENO: result: yes" >&5
10189echo "${ECHO_T}yes" >&6
10190else
10191# FIXME - insert some real tests, host_os isn't really good enough
10192 case $host_os in
10193 darwin*)
10194 if test -n "$STRIP" ; then
10195 striplib="$STRIP -x"
10196 old_striplib="$STRIP -S"
10197 echo "$as_me:$LINENO: result: yes" >&5
10198echo "${ECHO_T}yes" >&6
10199 else
10200 echo "$as_me:$LINENO: result: no" >&5
10201echo "${ECHO_T}no" >&6
10202 fi
10203 ;;
10204 *)
10205 echo "$as_me:$LINENO: result: no" >&5
10206echo "${ECHO_T}no" >&6
10207 ;;
10208 esac
10209fi
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222 # Report which library types will actually be built
10223 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10224echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10225 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10226echo "${ECHO_T}$can_build_shared" >&6
10227
10228 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10229echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10230 test "$can_build_shared" = "no" && enable_shared=no
10231
10232 # On AIX, shared libraries and static libraries use the same namespace, and
10233 # are all built from PIC.
10234 case $host_os in
10235 aix3*)
10236 test "$enable_shared" = yes && enable_static=no
10237 if test -n "$RANLIB"; then
10238 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10239 postinstall_cmds='$RANLIB $lib'
10240 fi
10241 ;;
10242
50e7d84b 10243 aix[4-9]*)
d7040cdb
SE
10244 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10245 test "$enable_shared" = yes && enable_static=no
10246 fi
10247 ;;
10248 esac
10249 echo "$as_me:$LINENO: result: $enable_shared" >&5
10250echo "${ECHO_T}$enable_shared" >&6
10251
10252 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10253echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10254 # Make sure either enable_shared or enable_static is yes.
10255 test "$enable_shared" = yes || enable_static=yes
10256 echo "$as_me:$LINENO: result: $enable_static" >&5
10257echo "${ECHO_T}$enable_static" >&6
10258
10259
10260
10261
10262fi
10263ac_ext=c
10264ac_cpp='$CPP $CPPFLAGS'
10265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10267ac_compiler_gnu=$ac_cv_c_compiler_gnu
10268
10269CC="$lt_save_CC"
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283 ac_config_commands="$ac_config_commands libtool"
10284
10285
10286
10287
10288# Only expand once:
10289
10290
10291
10292# Check whether --enable-targets or --disable-targets was given.
10293if test "${enable_targets+set}" = set; then
10294 enableval="$enable_targets"
10295 case "${enableval}" in
10296 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10297echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10298 { (exit 1); exit 1; }; }
10299 ;;
10300 no) enable_targets= ;;
10301 *) enable_targets=$enableval ;;
10302esac
10303fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10304if test "${enable_commonbfdlib+set}" = set; then
10305 enableval="$enable_commonbfdlib"
10306 case "${enableval}" in
10307 yes) commonbfdlib=true ;;
10308 no) commonbfdlib=false ;;
10309 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10310echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10311 { (exit 1); exit 1; }; } ;;
10312esac
10313fi;
10314
10315GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10316
10317# Check whether --enable-werror or --disable-werror was given.
10318if test "${enable_werror+set}" = set; then
10319 enableval="$enable_werror"
10320 case "${enableval}" in
10321 yes | y) ERROR_ON_WARNING="yes" ;;
10322 no | n) ERROR_ON_WARNING="no" ;;
10323 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10324echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10325 { (exit 1); exit 1; }; } ;;
10326 esac
10327fi;
10328
bb8541b9
L
10329# Enable -Wno-format by default when using gcc on mingw
10330case "${host}" in
10331 *-*-mingw32*)
10332 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10333 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10334 fi
10335 ;;
10336 *) ;;
10337esac
10338
d7040cdb
SE
10339# Enable -Werror by default when using gcc
10340if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10341 ERROR_ON_WARNING=yes
10342fi
10343
10344NO_WERROR=
10345if test "${ERROR_ON_WARNING}" = yes ; then
10346 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10347 NO_WERROR="-Wno-error"
10348fi
10349
10350if test "${GCC}" = yes ; then
10351 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10352fi
10353
10354# Check whether --enable-build-warnings or --disable-build-warnings was given.
10355if test "${enable_build_warnings+set}" = set; then
10356 enableval="$enable_build_warnings"
10357 case "${enableval}" in
10358 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10359 no) if test "${GCC}" = yes ; then
10360 WARN_CFLAGS="-w"
10361 fi;;
10362 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10363 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10364 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10365 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10366 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10367esac
10368fi;
10369
10370if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10371 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
10372fi
10373
10374
10375
10376
10377
10378 ac_config_headers="$ac_config_headers config.h:config.in"
10379
10380
10381if test -z "$target" ; then
10382 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
10383echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
10384 { (exit 1); exit 1; }; }
10385fi
10386if test -z "$host" ; then
10387 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
10388echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
10389 { (exit 1); exit 1; }; }
10390fi
10391
10392for ac_prog in 'bison -y' byacc
10393do
10394 # Extract the first word of "$ac_prog", so it can be a program name with args.
10395set dummy $ac_prog; ac_word=$2
10396echo "$as_me:$LINENO: checking for $ac_word" >&5
10397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10398if test "${ac_cv_prog_YACC+set}" = set; then
10399 echo $ECHO_N "(cached) $ECHO_C" >&6
10400else
10401 if test -n "$YACC"; then
10402 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10403else
10404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10405for as_dir in $PATH
10406do
10407 IFS=$as_save_IFS
10408 test -z "$as_dir" && as_dir=.
10409 for ac_exec_ext in '' $ac_executable_extensions; do
10410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10411 ac_cv_prog_YACC="$ac_prog"
10412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10413 break 2
10414 fi
10415done
10416done
10417
10418fi
10419fi
10420YACC=$ac_cv_prog_YACC
10421if test -n "$YACC"; then
10422 echo "$as_me:$LINENO: result: $YACC" >&5
10423echo "${ECHO_T}$YACC" >&6
10424else
10425 echo "$as_me:$LINENO: result: no" >&5
10426echo "${ECHO_T}no" >&6
10427fi
10428
10429 test -n "$YACC" && break
10430done
10431test -n "$YACC" || YACC="yacc"
10432
10433for ac_prog in flex lex
10434do
10435 # Extract the first word of "$ac_prog", so it can be a program name with args.
10436set dummy $ac_prog; ac_word=$2
10437echo "$as_me:$LINENO: checking for $ac_word" >&5
10438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10439if test "${ac_cv_prog_LEX+set}" = set; then
10440 echo $ECHO_N "(cached) $ECHO_C" >&6
10441else
10442 if test -n "$LEX"; then
10443 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10444else
10445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10446for as_dir in $PATH
10447do
10448 IFS=$as_save_IFS
10449 test -z "$as_dir" && as_dir=.
10450 for ac_exec_ext in '' $ac_executable_extensions; do
10451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10452 ac_cv_prog_LEX="$ac_prog"
10453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10454 break 2
10455 fi
10456done
10457done
10458
10459fi
10460fi
10461LEX=$ac_cv_prog_LEX
10462if test -n "$LEX"; then
10463 echo "$as_me:$LINENO: result: $LEX" >&5
10464echo "${ECHO_T}$LEX" >&6
10465else
10466 echo "$as_me:$LINENO: result: no" >&5
10467echo "${ECHO_T}no" >&6
10468fi
10469
10470 test -n "$LEX" && break
10471done
10472test -n "$LEX" || LEX=":"
10473
10474if test -z "$LEXLIB"
10475then
10476 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
10477echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
10478if test "${ac_cv_lib_fl_yywrap+set}" = set; then
10479 echo $ECHO_N "(cached) $ECHO_C" >&6
10480else
10481 ac_check_lib_save_LIBS=$LIBS
10482LIBS="-lfl $LIBS"
10483cat >conftest.$ac_ext <<_ACEOF
10484/* confdefs.h. */
10485_ACEOF
10486cat confdefs.h >>conftest.$ac_ext
10487cat >>conftest.$ac_ext <<_ACEOF
10488/* end confdefs.h. */
10489
10490/* Override any gcc2 internal prototype to avoid an error. */
10491#ifdef __cplusplus
10492extern "C"
10493#endif
10494/* We use char because int might match the return type of a gcc2
10495 builtin and then its argument prototype would still apply. */
10496char yywrap ();
10497int
10498main ()
10499{
10500yywrap ();
10501 ;
10502 return 0;
10503}
10504_ACEOF
10505rm -f conftest.$ac_objext conftest$ac_exeext
10506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10507 (eval $ac_link) 2>conftest.er1
10508 ac_status=$?
10509 grep -v '^ *+' conftest.er1 >conftest.err
10510 rm -f conftest.er1
10511 cat conftest.err >&5
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); } &&
10514 { ac_try='test -z "$ac_c_werror_flag"
10515 || test ! -s conftest.err'
10516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517 (eval $ac_try) 2>&5
10518 ac_status=$?
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; } &&
10521 { ac_try='test -s conftest$ac_exeext'
10522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10523 (eval $ac_try) 2>&5
10524 ac_status=$?
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); }; }; then
10527 ac_cv_lib_fl_yywrap=yes
10528else
10529 echo "$as_me: failed program was:" >&5
10530sed 's/^/| /' conftest.$ac_ext >&5
10531
10532ac_cv_lib_fl_yywrap=no
10533fi
10534rm -f conftest.err conftest.$ac_objext \
10535 conftest$ac_exeext conftest.$ac_ext
10536LIBS=$ac_check_lib_save_LIBS
10537fi
10538echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
10539echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
10540if test $ac_cv_lib_fl_yywrap = yes; then
10541 LEXLIB="-lfl"
10542else
10543 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
10544echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
10545if test "${ac_cv_lib_l_yywrap+set}" = set; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
10547else
10548 ac_check_lib_save_LIBS=$LIBS
10549LIBS="-ll $LIBS"
10550cat >conftest.$ac_ext <<_ACEOF
10551/* confdefs.h. */
10552_ACEOF
10553cat confdefs.h >>conftest.$ac_ext
10554cat >>conftest.$ac_ext <<_ACEOF
10555/* end confdefs.h. */
10556
10557/* Override any gcc2 internal prototype to avoid an error. */
10558#ifdef __cplusplus
10559extern "C"
10560#endif
10561/* We use char because int might match the return type of a gcc2
10562 builtin and then its argument prototype would still apply. */
10563char yywrap ();
10564int
10565main ()
10566{
10567yywrap ();
10568 ;
10569 return 0;
10570}
10571_ACEOF
10572rm -f conftest.$ac_objext conftest$ac_exeext
10573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10574 (eval $ac_link) 2>conftest.er1
10575 ac_status=$?
10576 grep -v '^ *+' conftest.er1 >conftest.err
10577 rm -f conftest.er1
10578 cat conftest.err >&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); } &&
10581 { ac_try='test -z "$ac_c_werror_flag"
10582 || test ! -s conftest.err'
10583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10584 (eval $ac_try) 2>&5
10585 ac_status=$?
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); }; } &&
10588 { ac_try='test -s conftest$ac_exeext'
10589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10590 (eval $ac_try) 2>&5
10591 ac_status=$?
10592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593 (exit $ac_status); }; }; then
10594 ac_cv_lib_l_yywrap=yes
10595else
10596 echo "$as_me: failed program was:" >&5
10597sed 's/^/| /' conftest.$ac_ext >&5
10598
10599ac_cv_lib_l_yywrap=no
10600fi
10601rm -f conftest.err conftest.$ac_objext \
10602 conftest$ac_exeext conftest.$ac_ext
10603LIBS=$ac_check_lib_save_LIBS
10604fi
10605echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
10606echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
10607if test $ac_cv_lib_l_yywrap = yes; then
10608 LEXLIB="-ll"
10609fi
10610
10611fi
10612
10613fi
10614
10615if test "x$LEX" != "x:"; then
10616 echo "$as_me:$LINENO: checking lex output file root" >&5
10617echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
10618if test "${ac_cv_prog_lex_root+set}" = set; then
10619 echo $ECHO_N "(cached) $ECHO_C" >&6
10620else
10621 # The minimal lex program is just a single line: %%. But some broken lexes
10622# (Solaris, I think it was) want two %% lines, so accommodate them.
10623cat >conftest.l <<_ACEOF
10624%%
10625%%
10626_ACEOF
10627{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
10628 (eval $LEX conftest.l) 2>&5
10629 ac_status=$?
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); }
10632if test -f lex.yy.c; then
10633 ac_cv_prog_lex_root=lex.yy
10634elif test -f lexyy.c; then
10635 ac_cv_prog_lex_root=lexyy
10636else
10637 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
10638echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
10639 { (exit 1); exit 1; }; }
10640fi
10641fi
10642echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
10643echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
10644rm -f conftest.l
10645LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
10646
10647echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
10648echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
10649if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
10650 echo $ECHO_N "(cached) $ECHO_C" >&6
10651else
10652 # POSIX says lex can declare yytext either as a pointer or an array; the
10653# default is implementation-dependent. Figure out which it is, since
10654# not all implementations provide the %pointer and %array declarations.
10655ac_cv_prog_lex_yytext_pointer=no
10656echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
10657ac_save_LIBS=$LIBS
10658LIBS="$LIBS $LEXLIB"
10659cat >conftest.$ac_ext <<_ACEOF
10660`cat $LEX_OUTPUT_ROOT.c`
10661_ACEOF
10662rm -f conftest.$ac_objext conftest$ac_exeext
10663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10664 (eval $ac_link) 2>conftest.er1
10665 ac_status=$?
10666 grep -v '^ *+' conftest.er1 >conftest.err
10667 rm -f conftest.er1
10668 cat conftest.err >&5
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); } &&
10671 { ac_try='test -z "$ac_c_werror_flag"
10672 || test ! -s conftest.err'
10673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10674 (eval $ac_try) 2>&5
10675 ac_status=$?
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); }; } &&
10678 { ac_try='test -s conftest$ac_exeext'
10679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10680 (eval $ac_try) 2>&5
10681 ac_status=$?
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); }; }; then
10684 ac_cv_prog_lex_yytext_pointer=yes
10685else
10686 echo "$as_me: failed program was:" >&5
10687sed 's/^/| /' conftest.$ac_ext >&5
10688
10689fi
10690rm -f conftest.err conftest.$ac_objext \
10691 conftest$ac_exeext conftest.$ac_ext
10692LIBS=$ac_save_LIBS
10693rm -f "${LEX_OUTPUT_ROOT}.c"
10694
10695fi
10696echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
10697echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
10698if test $ac_cv_prog_lex_yytext_pointer = yes; then
10699
10700cat >>confdefs.h <<\_ACEOF
10701#define YYTEXT_POINTER 1
10702_ACEOF
10703
10704fi
10705
10706fi
10707if test "$LEX" = :; then
10708 LEX=${am_missing_run}flex
10709fi
10710
30b0f203 10711ALL_LINGUAS="fr tr ja es sv da zh_CN ru ro rw zh_TW fi vi uk sk"
d7040cdb
SE
10712# If we haven't got the data from the intl directory,
10713# assume NLS is disabled.
10714USE_NLS=no
10715LIBINTL=
10716LIBINTL_DEP=
10717INCINTL=
10718XGETTEXT=
10719GMSGFMT=
10720POSUB=
10721
10722if test -f ../intl/config.intl; then
10723 . ../intl/config.intl
10724fi
10725echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10726echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10727if test x"$USE_NLS" != xyes; then
10728 echo "$as_me:$LINENO: result: no" >&5
10729echo "${ECHO_T}no" >&6
10730else
10731 echo "$as_me:$LINENO: result: yes" >&5
10732echo "${ECHO_T}yes" >&6
10733
10734cat >>confdefs.h <<\_ACEOF
10735#define ENABLE_NLS 1
10736_ACEOF
10737
10738
10739 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10740echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10741 # Look for .po and .gmo files in the source directory.
10742 CATALOGS=
10743 XLINGUAS=
10744 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10745 # If there aren't any .gmo files the shell will give us the
10746 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10747 # weeded out.
10748 case "$cat" in *\**)
10749 continue;;
10750 esac
10751 # The quadruple backslash is collapsed to a double backslash
10752 # by the backticks, then collapsed again by the double quotes,
10753 # leaving us with one backslash in the sed expression (right
10754 # before the dot that mustn't act as a wildcard).
10755 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10756 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10757 # The user is allowed to set LINGUAS to a list of languages to
10758 # install catalogs for. If it's empty that means "all of them."
10759 if test "x$LINGUAS" = x; then
10760 CATALOGS="$CATALOGS $cat"
10761 XLINGUAS="$XLINGUAS $lang"
10762 else
10763 case "$LINGUAS" in *$lang*)
10764 CATALOGS="$CATALOGS $cat"
10765 XLINGUAS="$XLINGUAS $lang"
10766 ;;
10767 esac
10768 fi
10769 done
10770 LINGUAS="$XLINGUAS"
10771 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10772echo "${ECHO_T}$LINGUAS" >&6
10773
10774
10775 DATADIRNAME=share
10776
10777 INSTOBJEXT=.mo
10778
10779 GENCAT=gencat
10780
10781 CATOBJEXT=.gmo
10782
10783fi
10784
10785 MKINSTALLDIRS=
10786 if test -n "$ac_aux_dir"; then
10787 case "$ac_aux_dir" in
10788 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10789 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10790 esac
10791 fi
10792 if test -z "$MKINSTALLDIRS"; then
10793 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10794 fi
10795
10796
10797
10798 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10799echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10800 # Check whether --enable-nls or --disable-nls was given.
10801if test "${enable_nls+set}" = set; then
10802 enableval="$enable_nls"
10803 USE_NLS=$enableval
10804else
10805 USE_NLS=yes
10806fi;
10807 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10808echo "${ECHO_T}$USE_NLS" >&6
10809
10810
10811
10812
10813
10814
10815# Prepare PATH_SEPARATOR.
10816# The user is always right.
10817if test "${PATH_SEPARATOR+set}" != set; then
10818 echo "#! /bin/sh" >conf$$.sh
10819 echo "exit 0" >>conf$$.sh
10820 chmod +x conf$$.sh
10821 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10822 PATH_SEPARATOR=';'
10823 else
10824 PATH_SEPARATOR=:
10825 fi
10826 rm -f conf$$.sh
10827fi
10828
10829# Find out how to test for executable files. Don't use a zero-byte file,
10830# as systems may use methods other than mode bits to determine executability.
10831cat >conf$$.file <<_ASEOF
10832#! /bin/sh
10833exit 0
10834_ASEOF
10835chmod +x conf$$.file
10836if test -x conf$$.file >/dev/null 2>&1; then
10837 ac_executable_p="test -x"
10838else
10839 ac_executable_p="test -f"
10840fi
10841rm -f conf$$.file
10842
10843# Extract the first word of "msgfmt", so it can be a program name with args.
10844set dummy msgfmt; ac_word=$2
10845echo "$as_me:$LINENO: checking for $ac_word" >&5
10846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10847if test "${ac_cv_path_MSGFMT+set}" = set; then
10848 echo $ECHO_N "(cached) $ECHO_C" >&6
10849else
10850 case "$MSGFMT" in
10851 [\\/]* | ?:[\\/]*)
10852 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10853 ;;
10854 *)
10855 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10856 for ac_dir in $PATH; do
10857 IFS="$ac_save_IFS"
10858 test -z "$ac_dir" && ac_dir=.
10859 for ac_exec_ext in '' $ac_executable_extensions; do
10860 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10861 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10862 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10863 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10864 break 2
10865 fi
10866 fi
10867 done
10868 done
10869 IFS="$ac_save_IFS"
10870 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10871 ;;
10872esac
10873fi
10874MSGFMT="$ac_cv_path_MSGFMT"
10875if test "$MSGFMT" != ":"; then
10876 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10877echo "${ECHO_T}$MSGFMT" >&6
10878else
10879 echo "$as_me:$LINENO: result: no" >&5
10880echo "${ECHO_T}no" >&6
10881fi
10882
10883 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10884set dummy gmsgfmt; ac_word=$2
10885echo "$as_me:$LINENO: checking for $ac_word" >&5
10886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10887if test "${ac_cv_path_GMSGFMT+set}" = set; then
10888 echo $ECHO_N "(cached) $ECHO_C" >&6
10889else
10890 case $GMSGFMT in
10891 [\\/]* | ?:[\\/]*)
10892 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10893 ;;
10894 *)
10895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10896for as_dir in $PATH
10897do
10898 IFS=$as_save_IFS
10899 test -z "$as_dir" && as_dir=.
10900 for ac_exec_ext in '' $ac_executable_extensions; do
10901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10902 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10904 break 2
10905 fi
10906done
10907done
10908
10909 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10910 ;;
10911esac
10912fi
10913GMSGFMT=$ac_cv_path_GMSGFMT
10914
10915if test -n "$GMSGFMT"; then
10916 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10917echo "${ECHO_T}$GMSGFMT" >&6
10918else
10919 echo "$as_me:$LINENO: result: no" >&5
10920echo "${ECHO_T}no" >&6
10921fi
10922
10923
10924
10925# Prepare PATH_SEPARATOR.
10926# The user is always right.
10927if test "${PATH_SEPARATOR+set}" != set; then
10928 echo "#! /bin/sh" >conf$$.sh
10929 echo "exit 0" >>conf$$.sh
10930 chmod +x conf$$.sh
10931 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10932 PATH_SEPARATOR=';'
10933 else
10934 PATH_SEPARATOR=:
10935 fi
10936 rm -f conf$$.sh
10937fi
10938
10939# Find out how to test for executable files. Don't use a zero-byte file,
10940# as systems may use methods other than mode bits to determine executability.
10941cat >conf$$.file <<_ASEOF
10942#! /bin/sh
10943exit 0
10944_ASEOF
10945chmod +x conf$$.file
10946if test -x conf$$.file >/dev/null 2>&1; then
10947 ac_executable_p="test -x"
10948else
10949 ac_executable_p="test -f"
10950fi
10951rm -f conf$$.file
10952
10953# Extract the first word of "xgettext", so it can be a program name with args.
10954set dummy xgettext; ac_word=$2
10955echo "$as_me:$LINENO: checking for $ac_word" >&5
10956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10957if test "${ac_cv_path_XGETTEXT+set}" = set; then
10958 echo $ECHO_N "(cached) $ECHO_C" >&6
10959else
10960 case "$XGETTEXT" in
10961 [\\/]* | ?:[\\/]*)
10962 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10963 ;;
10964 *)
10965 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10966 for ac_dir in $PATH; do
10967 IFS="$ac_save_IFS"
10968 test -z "$ac_dir" && ac_dir=.
10969 for ac_exec_ext in '' $ac_executable_extensions; do
10970 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10971 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10972 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10973 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10974 break 2
10975 fi
10976 fi
10977 done
10978 done
10979 IFS="$ac_save_IFS"
10980 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10981 ;;
10982esac
10983fi
10984XGETTEXT="$ac_cv_path_XGETTEXT"
10985if test "$XGETTEXT" != ":"; then
10986 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10987echo "${ECHO_T}$XGETTEXT" >&6
10988else
10989 echo "$as_me:$LINENO: result: no" >&5
10990echo "${ECHO_T}no" >&6
10991fi
10992
10993 rm -f messages.po
10994
10995
10996# Prepare PATH_SEPARATOR.
10997# The user is always right.
10998if test "${PATH_SEPARATOR+set}" != set; then
10999 echo "#! /bin/sh" >conf$$.sh
11000 echo "exit 0" >>conf$$.sh
11001 chmod +x conf$$.sh
11002 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11003 PATH_SEPARATOR=';'
11004 else
11005 PATH_SEPARATOR=:
11006 fi
11007 rm -f conf$$.sh
11008fi
11009
11010# Find out how to test for executable files. Don't use a zero-byte file,
11011# as systems may use methods other than mode bits to determine executability.
11012cat >conf$$.file <<_ASEOF
11013#! /bin/sh
11014exit 0
11015_ASEOF
11016chmod +x conf$$.file
11017if test -x conf$$.file >/dev/null 2>&1; then
11018 ac_executable_p="test -x"
11019else
11020 ac_executable_p="test -f"
11021fi
11022rm -f conf$$.file
11023
11024# Extract the first word of "msgmerge", so it can be a program name with args.
11025set dummy msgmerge; ac_word=$2
11026echo "$as_me:$LINENO: checking for $ac_word" >&5
11027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11028if test "${ac_cv_path_MSGMERGE+set}" = set; then
11029 echo $ECHO_N "(cached) $ECHO_C" >&6
11030else
11031 case "$MSGMERGE" in
11032 [\\/]* | ?:[\\/]*)
11033 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11034 ;;
11035 *)
11036 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11037 for ac_dir in $PATH; do
11038 IFS="$ac_save_IFS"
11039 test -z "$ac_dir" && ac_dir=.
11040 for ac_exec_ext in '' $ac_executable_extensions; do
11041 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11042 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11043 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11044 break 2
11045 fi
11046 fi
11047 done
11048 done
11049 IFS="$ac_save_IFS"
11050 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11051 ;;
11052esac
11053fi
11054MSGMERGE="$ac_cv_path_MSGMERGE"
11055if test "$MSGMERGE" != ":"; then
11056 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11057echo "${ECHO_T}$MSGMERGE" >&6
11058else
11059 echo "$as_me:$LINENO: result: no" >&5
11060echo "${ECHO_T}no" >&6
11061fi
11062
11063
11064 if test "$GMSGFMT" != ":"; then
11065 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11066 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11067 : ;
11068 else
11069 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11070 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11071echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11072 GMSGFMT=":"
11073 fi
11074 fi
11075
11076 if test "$XGETTEXT" != ":"; then
11077 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11078 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11079 : ;
11080 else
11081 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11082echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11083 XGETTEXT=":"
11084 fi
11085 rm -f messages.po
11086 fi
11087
11088 ac_config_commands="$ac_config_commands default-1"
11089
11090
11091
11092echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11093echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11094 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11095if test "${enable_maintainer_mode+set}" = set; then
11096 enableval="$enable_maintainer_mode"
11097 USE_MAINTAINER_MODE=$enableval
42ecbf5e 11098else
d7040cdb
SE
11099 USE_MAINTAINER_MODE=no
11100fi;
11101 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11102echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
42ecbf5e 11103
d7040cdb
SE
11104
11105if test $USE_MAINTAINER_MODE = yes; then
11106 MAINTAINER_MODE_TRUE=
11107 MAINTAINER_MODE_FALSE='#'
11108else
11109 MAINTAINER_MODE_TRUE='#'
11110 MAINTAINER_MODE_FALSE=
42ecbf5e 11111fi
d7040cdb
SE
11112
11113 MAINT=$MAINTAINER_MODE_TRUE
11114
11115
11116
11117
11118if false; then
11119 GENINSRC_NEVER_TRUE=
11120 GENINSRC_NEVER_FALSE='#'
11121else
11122 GENINSRC_NEVER_TRUE='#'
11123 GENINSRC_NEVER_FALSE=
42ecbf5e 11124fi
d7040cdb
SE
11125
11126
11127if test -n "$EXEEXT"; then
20e95c23
DJ
11128
11129cat >>confdefs.h <<\_ACEOF
d7040cdb 11130#define HAVE_EXECUTABLE_SUFFIX 1
20e95c23 11131_ACEOF
42ecbf5e 11132
252b5132
RH
11133fi
11134
d7040cdb
SE
11135cat >>confdefs.h <<_ACEOF
11136#define EXECUTABLE_SUFFIX "${EXEEXT}"
11137_ACEOF
42ecbf5e 11138
252b5132 11139
d7040cdb 11140# host-specific stuff:
252b5132 11141
d7040cdb 11142HDEFINES=
252b5132 11143
d7040cdb 11144. ${srcdir}/../bfd/configure.host
252b5132 11145
252b5132 11146
d7040cdb 11147AR=${AR-ar}
252b5132 11148
d7040cdb
SE
11149if test -n "$ac_tool_prefix"; then
11150 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11151set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11152echo "$as_me:$LINENO: checking for $ac_word" >&5
11153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11154if test "${ac_cv_prog_RANLIB+set}" = set; then
11155 echo $ECHO_N "(cached) $ECHO_C" >&6
11156else
11157 if test -n "$RANLIB"; then
11158 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11159else
11160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11161for as_dir in $PATH
11162do
11163 IFS=$as_save_IFS
11164 test -z "$as_dir" && as_dir=.
11165 for ac_exec_ext in '' $ac_executable_extensions; do
11166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11167 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11169 break 2
11170 fi
11171done
11172done
252b5132 11173
d7040cdb
SE
11174fi
11175fi
11176RANLIB=$ac_cv_prog_RANLIB
11177if test -n "$RANLIB"; then
11178 echo "$as_me:$LINENO: result: $RANLIB" >&5
11179echo "${ECHO_T}$RANLIB" >&6
11180else
11181 echo "$as_me:$LINENO: result: no" >&5
11182echo "${ECHO_T}no" >&6
11183fi
20e95c23 11184
d7040cdb
SE
11185fi
11186if test -z "$ac_cv_prog_RANLIB"; then
11187 ac_ct_RANLIB=$RANLIB
11188 # Extract the first word of "ranlib", so it can be a program name with args.
11189set dummy ranlib; ac_word=$2
11190echo "$as_me:$LINENO: checking for $ac_word" >&5
11191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11192if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
42ecbf5e 11193 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11194else
d7040cdb
SE
11195 if test -n "$ac_ct_RANLIB"; then
11196 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11197else
11198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11199for as_dir in $PATH
11200do
11201 IFS=$as_save_IFS
11202 test -z "$as_dir" && as_dir=.
11203 for ac_exec_ext in '' $ac_executable_extensions; do
11204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11205 ac_cv_prog_ac_ct_RANLIB="ranlib"
11206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11207 break 2
11208 fi
11209done
11210done
20e95c23 11211
d7040cdb
SE
11212 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11213fi
11214fi
11215ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11216if test -n "$ac_ct_RANLIB"; then
11217 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11218echo "${ECHO_T}$ac_ct_RANLIB" >&6
20e95c23 11219else
d7040cdb
SE
11220 echo "$as_me:$LINENO: result: no" >&5
11221echo "${ECHO_T}no" >&6
11222fi
11223
11224 RANLIB=$ac_ct_RANLIB
11225else
11226 RANLIB="$ac_cv_prog_RANLIB"
11227fi
11228
11229# Find a good install program. We prefer a C program (faster),
11230# so one script is as good as another. But avoid the broken or
11231# incompatible versions:
11232# SysV /etc/install, /usr/sbin/install
11233# SunOS /usr/etc/install
11234# IRIX /sbin/install
11235# AIX /bin/install
11236# AmigaOS /C/install, which installs bootblocks on floppy discs
11237# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11238# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11239# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11240# OS/2's system install, which has a completely different semantic
11241# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 11242# Reject install programs that cannot install multiple files.
d7040cdb
SE
11243echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11244echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11245if test -z "$INSTALL"; then
11246if test "${ac_cv_path_install+set}" = set; then
11247 echo $ECHO_N "(cached) $ECHO_C" >&6
11248else
11249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11250for as_dir in $PATH
11251do
11252 IFS=$as_save_IFS
11253 test -z "$as_dir" && as_dir=.
11254 # Account for people who put trailing slashes in PATH elements.
11255case $as_dir/ in
11256 ./ | .// | /cC/* | \
11257 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11258 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11259 /usr/ucb/* ) ;;
11260 *)
11261 # OSF1 and SCO ODT 3.0 have their own names for install.
11262 # Don't use installbsd from OSF since it installs stuff as root
11263 # by default.
11264 for ac_prog in ginstall scoinst install; do
11265 for ac_exec_ext in '' $ac_executable_extensions; do
11266 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11267 if test $ac_prog = install &&
11268 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11269 # AIX install. It has an incompatible calling convention.
11270 :
11271 elif test $ac_prog = install &&
11272 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11273 # program-specific install script used by HP pwplus--don't use.
11274 :
11275 else
58c85be7
RW
11276 rm -rf conftest.one conftest.two conftest.dir
11277 echo one > conftest.one
11278 echo two > conftest.two
11279 mkdir conftest.dir
11280 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11281 test -s conftest.one && test -s conftest.two &&
11282 test -s conftest.dir/conftest.one &&
11283 test -s conftest.dir/conftest.two
11284 then
11285 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11286 break 3
11287 fi
d7040cdb
SE
11288 fi
11289 fi
11290 done
11291 done
11292 ;;
11293esac
11294done
11295
58c85be7 11296rm -rf conftest.one conftest.two conftest.dir
d7040cdb
SE
11297
11298fi
11299 if test "${ac_cv_path_install+set}" = set; then
11300 INSTALL=$ac_cv_path_install
11301 else
58c85be7
RW
11302 # As a last resort, use the slow shell script. Don't cache a
11303 # value for INSTALL within a source directory, because that will
d7040cdb 11304 # break other packages using the cache if that directory is
58c85be7 11305 # removed, or if the value is a relative name.
d7040cdb
SE
11306 INSTALL=$ac_install_sh
11307 fi
11308fi
11309echo "$as_me:$LINENO: result: $INSTALL" >&5
11310echo "${ECHO_T}$INSTALL" >&6
11311
11312# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11313# It thinks the first close brace ends the variable substitution.
11314test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11315
11316test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11317
11318test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11319
11320
11321# Put a plausible default for CC_FOR_BUILD in Makefile.
11322if test -z "$CC_FOR_BUILD"; then
11323 if test "x$cross_compiling" = "xno"; then
11324 CC_FOR_BUILD='$(CC)'
11325 else
11326 CC_FOR_BUILD=gcc
11327 fi
11328fi
20e95c23 11329
d7040cdb
SE
11330# Also set EXEEXT_FOR_BUILD.
11331if test "x$cross_compiling" = "xno"; then
11332 EXEEXT_FOR_BUILD='$(EXEEXT)'
11333else
11334 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
11335echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
11336if test "${bfd_cv_build_exeext+set}" = set; then
11337 echo $ECHO_N "(cached) $ECHO_C" >&6
11338else
11339 rm -f conftest*
11340 echo 'int main () { return 0; }' > conftest.c
11341 bfd_cv_build_exeext=
11342 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
11343 for file in conftest.*; do
11344 case $file in
11345 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
11346 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
11347 esac
11348 done
11349 rm -f conftest*
11350 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
252b5132 11351fi
d7040cdb
SE
11352echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
11353echo "${ECHO_T}$bfd_cv_build_exeext" >&6
11354 EXEEXT_FOR_BUILD=""
11355 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
252b5132
RH
11356fi
11357
11358
d7040cdb
SE
11359DEMANGLER_NAME=c++filt
11360case "${host}" in
11361 *-*-go32* | *-*-msdos*)
11362 DEMANGLER_NAME=cxxfilt
11363esac
8a965946
ILT
11364
11365
42ecbf5e
DJ
11366
11367
11368
11369
11370
11371
f8eae8b2
L
11372
11373
11374for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h
252b5132 11375do
42ecbf5e
DJ
11376as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11377if eval "test \"\${$as_ac_Header+set}\" = set"; then
11378 echo "$as_me:$LINENO: checking for $ac_header" >&5
11379echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11380if eval "test \"\${$as_ac_Header+set}\" = set"; then
11381 echo $ECHO_N "(cached) $ECHO_C" >&6
11382fi
11383echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11384echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11385else
11386 # Is the header compilable?
11387echo "$as_me:$LINENO: checking $ac_header usability" >&5
11388echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11389cat >conftest.$ac_ext <<_ACEOF
11390/* confdefs.h. */
11391_ACEOF
11392cat confdefs.h >>conftest.$ac_ext
11393cat >>conftest.$ac_ext <<_ACEOF
11394/* end confdefs.h. */
11395$ac_includes_default
11396#include <$ac_header>
11397_ACEOF
11398rm -f conftest.$ac_objext
11399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11400 (eval $ac_compile) 2>conftest.er1
11401 ac_status=$?
11402 grep -v '^ *+' conftest.er1 >conftest.err
11403 rm -f conftest.er1
11404 cat conftest.err >&5
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); } &&
b7d4af3a
JW
11407 { ac_try='test -z "$ac_c_werror_flag"
11408 || test ! -s conftest.err'
42ecbf5e
DJ
11409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11410 (eval $ac_try) 2>&5
11411 ac_status=$?
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); }; } &&
11414 { ac_try='test -s conftest.$ac_objext'
11415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11416 (eval $ac_try) 2>&5
11417 ac_status=$?
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); }; }; then
11420 ac_header_compiler=yes
11421else
11422 echo "$as_me: failed program was:" >&5
11423sed 's/^/| /' conftest.$ac_ext >&5
11424
11425ac_header_compiler=no
11426fi
11427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11428echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11429echo "${ECHO_T}$ac_header_compiler" >&6
11430
11431# Is the header present?
11432echo "$as_me:$LINENO: checking $ac_header presence" >&5
11433echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11434cat >conftest.$ac_ext <<_ACEOF
11435/* confdefs.h. */
11436_ACEOF
11437cat confdefs.h >>conftest.$ac_ext
11438cat >>conftest.$ac_ext <<_ACEOF
11439/* end confdefs.h. */
11440#include <$ac_header>
11441_ACEOF
11442if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11443 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11444 ac_status=$?
11445 grep -v '^ *+' conftest.er1 >conftest.err
11446 rm -f conftest.er1
11447 cat conftest.err >&5
11448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); } >/dev/null; then
11450 if test -s conftest.err; then
11451 ac_cpp_err=$ac_c_preproc_warn_flag
11452 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11453 else
11454 ac_cpp_err=
11455 fi
252b5132 11456else
42ecbf5e 11457 ac_cpp_err=yes
252b5132 11458fi
42ecbf5e
DJ
11459if test -z "$ac_cpp_err"; then
11460 ac_header_preproc=yes
11461else
11462 echo "$as_me: failed program was:" >&5
11463sed 's/^/| /' conftest.$ac_ext >&5
11464
11465 ac_header_preproc=no
252b5132 11466fi
42ecbf5e
DJ
11467rm -f conftest.err conftest.$ac_ext
11468echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11469echo "${ECHO_T}$ac_header_preproc" >&6
11470
11471# So? What about this header?
11472case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11473 yes:no: )
11474 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11475echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11477echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11478 ac_header_preproc=yes
11479 ;;
11480 no:yes:* )
11481 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11482echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11483 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11484echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11485 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11486echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11487 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11488echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11490echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11491 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11492echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11493 (
11494 cat <<\_ASBOX
11495## ------------------------------------------ ##
11496## Report this to the AC_PACKAGE_NAME lists. ##
11497## ------------------------------------------ ##
11498_ASBOX
11499 ) |
11500 sed "s/^/$as_me: WARNING: /" >&2
11501 ;;
11502esac
11503echo "$as_me:$LINENO: checking for $ac_header" >&5
11504echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11505if eval "test \"\${$as_ac_Header+set}\" = set"; then
11506 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11507else
42ecbf5e
DJ
11508 eval "$as_ac_Header=\$ac_header_preproc"
11509fi
11510echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11511echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11512
252b5132 11513fi
42ecbf5e
DJ
11514if test `eval echo '${'$as_ac_Header'}'` = yes; then
11515 cat >>confdefs.h <<_ACEOF
11516#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11517_ACEOF
11518
11519fi
11520
252b5132
RH
11521done
11522
42ecbf5e
DJ
11523echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11524echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
11525if test "${ac_cv_header_sys_wait_h+set}" = set; then
11526 echo $ECHO_N "(cached) $ECHO_C" >&6
11527else
11528 cat >conftest.$ac_ext <<_ACEOF
11529/* confdefs.h. */
11530_ACEOF
11531cat confdefs.h >>conftest.$ac_ext
11532cat >>conftest.$ac_ext <<_ACEOF
11533/* end confdefs.h. */
252b5132
RH
11534#include <sys/types.h>
11535#include <sys/wait.h>
11536#ifndef WEXITSTATUS
42ecbf5e 11537# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
252b5132
RH
11538#endif
11539#ifndef WIFEXITED
42ecbf5e 11540# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
252b5132 11541#endif
42ecbf5e
DJ
11542
11543int
11544main ()
11545{
11546 int s;
11547 wait (&s);
11548 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11549 ;
11550 return 0;
11551}
11552_ACEOF
11553rm -f conftest.$ac_objext
11554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11555 (eval $ac_compile) 2>conftest.er1
11556 ac_status=$?
11557 grep -v '^ *+' conftest.er1 >conftest.err
11558 rm -f conftest.er1
11559 cat conftest.err >&5
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); } &&
b7d4af3a
JW
11562 { ac_try='test -z "$ac_c_werror_flag"
11563 || test ! -s conftest.err'
42ecbf5e
DJ
11564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11565 (eval $ac_try) 2>&5
11566 ac_status=$?
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); }; } &&
11569 { ac_try='test -s conftest.$ac_objext'
11570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11571 (eval $ac_try) 2>&5
11572 ac_status=$?
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); }; }; then
252b5132
RH
11575 ac_cv_header_sys_wait_h=yes
11576else
42ecbf5e
DJ
11577 echo "$as_me: failed program was:" >&5
11578sed 's/^/| /' conftest.$ac_ext >&5
11579
11580ac_cv_header_sys_wait_h=no
252b5132 11581fi
42ecbf5e 11582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 11583fi
42ecbf5e
DJ
11584echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11585echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
d15b04bd 11586if test $ac_cv_header_sys_wait_h = yes; then
42ecbf5e
DJ
11587
11588cat >>confdefs.h <<\_ACEOF
252b5132 11589#define HAVE_SYS_WAIT_H 1
42ecbf5e 11590_ACEOF
252b5132
RH
11591
11592fi
11593
11594# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11595# for constant arguments. Useless!
42ecbf5e
DJ
11596echo "$as_me:$LINENO: checking for working alloca.h" >&5
11597echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11598if test "${ac_cv_working_alloca_h+set}" = set; then
11599 echo $ECHO_N "(cached) $ECHO_C" >&6
11600else
11601 cat >conftest.$ac_ext <<_ACEOF
11602/* confdefs.h. */
11603_ACEOF
11604cat confdefs.h >>conftest.$ac_ext
11605cat >>conftest.$ac_ext <<_ACEOF
11606/* end confdefs.h. */
252b5132 11607#include <alloca.h>
42ecbf5e
DJ
11608int
11609main ()
11610{
11611char *p = (char *) alloca (2 * sizeof (int));
11612 ;
11613 return 0;
11614}
11615_ACEOF
11616rm -f conftest.$ac_objext conftest$ac_exeext
11617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11618 (eval $ac_link) 2>conftest.er1
11619 ac_status=$?
11620 grep -v '^ *+' conftest.er1 >conftest.err
11621 rm -f conftest.er1
11622 cat conftest.err >&5
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); } &&
b7d4af3a
JW
11625 { ac_try='test -z "$ac_c_werror_flag"
11626 || test ! -s conftest.err'
42ecbf5e
DJ
11627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11628 (eval $ac_try) 2>&5
11629 ac_status=$?
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); }; } &&
11632 { ac_try='test -s conftest$ac_exeext'
11633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11634 (eval $ac_try) 2>&5
11635 ac_status=$?
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); }; }; then
11638 ac_cv_working_alloca_h=yes
11639else
11640 echo "$as_me: failed program was:" >&5
11641sed 's/^/| /' conftest.$ac_ext >&5
11642
11643ac_cv_working_alloca_h=no
11644fi
11645rm -f conftest.err conftest.$ac_objext \
11646 conftest$ac_exeext conftest.$ac_ext
11647fi
11648echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11649echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11650if test $ac_cv_working_alloca_h = yes; then
11651
11652cat >>confdefs.h <<\_ACEOF
252b5132 11653#define HAVE_ALLOCA_H 1
42ecbf5e 11654_ACEOF
252b5132
RH
11655
11656fi
11657
42ecbf5e
DJ
11658echo "$as_me:$LINENO: checking for alloca" >&5
11659echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11660if test "${ac_cv_func_alloca_works+set}" = set; then
11661 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11662else
42ecbf5e
DJ
11663 cat >conftest.$ac_ext <<_ACEOF
11664/* confdefs.h. */
11665_ACEOF
11666cat confdefs.h >>conftest.$ac_ext
11667cat >>conftest.$ac_ext <<_ACEOF
11668/* end confdefs.h. */
252b5132
RH
11669#ifdef __GNUC__
11670# define alloca __builtin_alloca
11671#else
11672# ifdef _MSC_VER
11673# include <malloc.h>
11674# define alloca _alloca
11675# else
11676# if HAVE_ALLOCA_H
11677# include <alloca.h>
11678# else
11679# ifdef _AIX
11680 #pragma alloca
11681# else
11682# ifndef alloca /* predefined by HP cc +Olibcalls */
11683char *alloca ();
11684# endif
11685# endif
11686# endif
11687# endif
11688#endif
11689
42ecbf5e
DJ
11690int
11691main ()
11692{
11693char *p = (char *) alloca (1);
11694 ;
11695 return 0;
11696}
11697_ACEOF
11698rm -f conftest.$ac_objext conftest$ac_exeext
11699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11700 (eval $ac_link) 2>conftest.er1
11701 ac_status=$?
11702 grep -v '^ *+' conftest.er1 >conftest.err
11703 rm -f conftest.er1
11704 cat conftest.err >&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); } &&
b7d4af3a
JW
11707 { ac_try='test -z "$ac_c_werror_flag"
11708 || test ! -s conftest.err'
42ecbf5e
DJ
11709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710 (eval $ac_try) 2>&5
11711 ac_status=$?
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); }; } &&
11714 { ac_try='test -s conftest$ac_exeext'
11715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716 (eval $ac_try) 2>&5
11717 ac_status=$?
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; }; then
252b5132
RH
11720 ac_cv_func_alloca_works=yes
11721else
42ecbf5e
DJ
11722 echo "$as_me: failed program was:" >&5
11723sed 's/^/| /' conftest.$ac_ext >&5
11724
11725ac_cv_func_alloca_works=no
252b5132 11726fi
42ecbf5e
DJ
11727rm -f conftest.err conftest.$ac_objext \
11728 conftest$ac_exeext conftest.$ac_ext
252b5132 11729fi
42ecbf5e
DJ
11730echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11731echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 11732
252b5132 11733if test $ac_cv_func_alloca_works = yes; then
e5a52504 11734
42ecbf5e
DJ
11735cat >>confdefs.h <<\_ACEOF
11736#define HAVE_ALLOCA 1
11737_ACEOF
e5a52504 11738
42ecbf5e 11739else
d15b04bd 11740 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
42ecbf5e
DJ
11741# that cause trouble. Some versions do not even contain alloca or
11742# contain a buggy version. If you still want to use their alloca,
11743# use ar to extract alloca.o from them instead of compiling alloca.c.
11744
11745ALLOCA=alloca.$ac_objext
11746
11747cat >>confdefs.h <<\_ACEOF
252b5132 11748#define C_ALLOCA 1
42ecbf5e 11749_ACEOF
252b5132
RH
11750
11751
42ecbf5e
DJ
11752echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11753echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11754if test "${ac_cv_os_cray+set}" = set; then
11755 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11756else
42ecbf5e
DJ
11757 cat >conftest.$ac_ext <<_ACEOF
11758/* confdefs.h. */
11759_ACEOF
11760cat confdefs.h >>conftest.$ac_ext
11761cat >>conftest.$ac_ext <<_ACEOF
11762/* end confdefs.h. */
252b5132
RH
11763#if defined(CRAY) && ! defined(CRAY2)
11764webecray
11765#else
11766wenotbecray
11767#endif
11768
42ecbf5e 11769_ACEOF
252b5132 11770if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42ecbf5e 11771 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
11772 ac_cv_os_cray=yes
11773else
252b5132
RH
11774 ac_cv_os_cray=no
11775fi
11776rm -f conftest*
11777
11778fi
42ecbf5e
DJ
11779echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11780echo "${ECHO_T}$ac_cv_os_cray" >&6
d15b04bd 11781if test $ac_cv_os_cray = yes; then
42ecbf5e
DJ
11782 for ac_func in _getb67 GETB67 getb67; do
11783 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11784echo "$as_me:$LINENO: checking for $ac_func" >&5
11785echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11786if eval "test \"\${$as_ac_var+set}\" = set"; then
11787 echo $ECHO_N "(cached) $ECHO_C" >&6
11788else
11789 cat >conftest.$ac_ext <<_ACEOF
11790/* confdefs.h. */
11791_ACEOF
11792cat confdefs.h >>conftest.$ac_ext
11793cat >>conftest.$ac_ext <<_ACEOF
11794/* end confdefs.h. */
11795/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11797#define $ac_func innocuous_$ac_func
11798
252b5132 11799/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
11800 which can conflict with char $ac_func (); below.
11801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11802 <limits.h> exists even on freestanding compilers. */
11803
11804#ifdef __STDC__
11805# include <limits.h>
11806#else
11807# include <assert.h>
11808#endif
d15b04bd 11809
42ecbf5e 11810#undef $ac_func
d15b04bd 11811
42ecbf5e
DJ
11812/* Override any gcc2 internal prototype to avoid an error. */
11813#ifdef __cplusplus
11814extern "C"
11815{
11816#endif
11817/* We use char because int might match the return type of a gcc2
11818 builtin and then its argument prototype would still apply. */
11819char $ac_func ();
252b5132
RH
11820/* The GNU C library defines this for functions which it implements
11821 to always fail with ENOSYS. Some functions are actually named
11822 something starting with __ and the normal name is an alias. */
11823#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11824choke me
11825#else
42ecbf5e
DJ
11826char (*f) () = $ac_func;
11827#endif
11828#ifdef __cplusplus
11829}
252b5132
RH
11830#endif
11831
42ecbf5e
DJ
11832int
11833main ()
11834{
11835return f != $ac_func;
11836 ;
11837 return 0;
11838}
11839_ACEOF
11840rm -f conftest.$ac_objext conftest$ac_exeext
11841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11842 (eval $ac_link) 2>conftest.er1
11843 ac_status=$?
11844 grep -v '^ *+' conftest.er1 >conftest.err
11845 rm -f conftest.er1
11846 cat conftest.err >&5
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); } &&
b7d4af3a
JW
11849 { ac_try='test -z "$ac_c_werror_flag"
11850 || test ! -s conftest.err'
42ecbf5e
DJ
11851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11852 (eval $ac_try) 2>&5
11853 ac_status=$?
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); }; } &&
11856 { ac_try='test -s conftest$ac_exeext'
11857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11858 (eval $ac_try) 2>&5
11859 ac_status=$?
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); }; }; then
11862 eval "$as_ac_var=yes"
11863else
11864 echo "$as_me: failed program was:" >&5
11865sed 's/^/| /' conftest.$ac_ext >&5
11866
11867eval "$as_ac_var=no"
11868fi
11869rm -f conftest.err conftest.$ac_objext \
11870 conftest$ac_exeext conftest.$ac_ext
11871fi
11872echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11873echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11874if test `eval echo '${'$as_ac_var'}'` = yes; then
11875
11876cat >>confdefs.h <<_ACEOF
252b5132 11877#define CRAY_STACKSEG_END $ac_func
42ecbf5e 11878_ACEOF
252b5132 11879
42ecbf5e 11880 break
252b5132
RH
11881fi
11882
42ecbf5e 11883 done
252b5132
RH
11884fi
11885
42ecbf5e
DJ
11886echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11887echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11888if test "${ac_cv_c_stack_direction+set}" = set; then
11889 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
11890else
11891 if test "$cross_compiling" = yes; then
11892 ac_cv_c_stack_direction=0
11893else
42ecbf5e
DJ
11894 cat >conftest.$ac_ext <<_ACEOF
11895/* confdefs.h. */
11896_ACEOF
11897cat confdefs.h >>conftest.$ac_ext
11898cat >>conftest.$ac_ext <<_ACEOF
11899/* end confdefs.h. */
11900int
252b5132
RH
11901find_stack_direction ()
11902{
11903 static char *addr = 0;
11904 auto char dummy;
11905 if (addr == 0)
11906 {
11907 addr = &dummy;
11908 return find_stack_direction ();
11909 }
11910 else
11911 return (&dummy > addr) ? 1 : -1;
11912}
42ecbf5e
DJ
11913
11914int
252b5132
RH
11915main ()
11916{
42ecbf5e 11917 exit (find_stack_direction () < 0);
252b5132 11918}
42ecbf5e
DJ
11919_ACEOF
11920rm -f conftest$ac_exeext
11921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11922 (eval $ac_link) 2>&5
11923 ac_status=$?
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11927 (eval $ac_try) 2>&5
11928 ac_status=$?
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); }; }; then
252b5132
RH
11931 ac_cv_c_stack_direction=1
11932else
42ecbf5e
DJ
11933 echo "$as_me: program exited with status $ac_status" >&5
11934echo "$as_me: failed program was:" >&5
11935sed 's/^/| /' conftest.$ac_ext >&5
11936
11937( exit $ac_status )
11938ac_cv_c_stack_direction=-1
252b5132 11939fi
42ecbf5e 11940rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 11941fi
252b5132 11942fi
42ecbf5e
DJ
11943echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11944echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 11945
42ecbf5e 11946cat >>confdefs.h <<_ACEOF
252b5132 11947#define STACK_DIRECTION $ac_cv_c_stack_direction
42ecbf5e
DJ
11948_ACEOF
11949
252b5132
RH
11950
11951fi
11952
42ecbf5e
DJ
11953
11954
11955
11956
11957
9710509e 11958for ac_func in sbrk utimes setmode getc_unlocked strcoll
252b5132 11959do
42ecbf5e
DJ
11960as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11961echo "$as_me:$LINENO: checking for $ac_func" >&5
11962echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11963if eval "test \"\${$as_ac_var+set}\" = set"; then
11964 echo $ECHO_N "(cached) $ECHO_C" >&6
11965else
11966 cat >conftest.$ac_ext <<_ACEOF
11967/* confdefs.h. */
11968_ACEOF
11969cat confdefs.h >>conftest.$ac_ext
11970cat >>conftest.$ac_ext <<_ACEOF
11971/* end confdefs.h. */
11972/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11974#define $ac_func innocuous_$ac_func
11975
252b5132 11976/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
11977 which can conflict with char $ac_func (); below.
11978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11979 <limits.h> exists even on freestanding compilers. */
11980
11981#ifdef __STDC__
11982# include <limits.h>
11983#else
11984# include <assert.h>
11985#endif
d15b04bd 11986
42ecbf5e 11987#undef $ac_func
d15b04bd 11988
42ecbf5e
DJ
11989/* Override any gcc2 internal prototype to avoid an error. */
11990#ifdef __cplusplus
11991extern "C"
11992{
11993#endif
11994/* We use char because int might match the return type of a gcc2
11995 builtin and then its argument prototype would still apply. */
11996char $ac_func ();
252b5132
RH
11997/* The GNU C library defines this for functions which it implements
11998 to always fail with ENOSYS. Some functions are actually named
11999 something starting with __ and the normal name is an alias. */
12000#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12001choke me
12002#else
42ecbf5e
DJ
12003char (*f) () = $ac_func;
12004#endif
12005#ifdef __cplusplus
12006}
252b5132
RH
12007#endif
12008
42ecbf5e
DJ
12009int
12010main ()
12011{
12012return f != $ac_func;
12013 ;
12014 return 0;
12015}
12016_ACEOF
12017rm -f conftest.$ac_objext conftest$ac_exeext
12018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12019 (eval $ac_link) 2>conftest.er1
12020 ac_status=$?
12021 grep -v '^ *+' conftest.er1 >conftest.err
12022 rm -f conftest.er1
12023 cat conftest.err >&5
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); } &&
b7d4af3a
JW
12026 { ac_try='test -z "$ac_c_werror_flag"
12027 || test ! -s conftest.err'
42ecbf5e
DJ
12028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12029 (eval $ac_try) 2>&5
12030 ac_status=$?
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); }; } &&
12033 { ac_try='test -s conftest$ac_exeext'
12034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12035 (eval $ac_try) 2>&5
12036 ac_status=$?
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); }; }; then
12039 eval "$as_ac_var=yes"
12040else
12041 echo "$as_me: failed program was:" >&5
12042sed 's/^/| /' conftest.$ac_ext >&5
12043
12044eval "$as_ac_var=no"
12045fi
12046rm -f conftest.err conftest.$ac_objext \
12047 conftest$ac_exeext conftest.$ac_ext
12048fi
12049echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12050echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12051if test `eval echo '${'$as_ac_var'}'` = yes; then
12052 cat >>confdefs.h <<_ACEOF
12053#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12054_ACEOF
252b5132 12055
252b5132
RH
12056fi
12057done
12058
f9c026a8
NC
12059echo "$as_me:$LINENO: checking for mkstemp" >&5
12060echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
12061if test "${ac_cv_func_mkstemp+set}" = set; then
12062 echo $ECHO_N "(cached) $ECHO_C" >&6
12063else
12064 cat >conftest.$ac_ext <<_ACEOF
12065/* confdefs.h. */
12066_ACEOF
12067cat confdefs.h >>conftest.$ac_ext
12068cat >>conftest.$ac_ext <<_ACEOF
12069/* end confdefs.h. */
12070/* Define mkstemp to an innocuous variant, in case <limits.h> declares mkstemp.
12071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12072#define mkstemp innocuous_mkstemp
12073
12074/* System header to define __stub macros and hopefully few prototypes,
12075 which can conflict with char mkstemp (); below.
12076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12077 <limits.h> exists even on freestanding compilers. */
12078
12079#ifdef __STDC__
12080# include <limits.h>
12081#else
12082# include <assert.h>
12083#endif
12084
12085#undef mkstemp
12086
12087/* Override any gcc2 internal prototype to avoid an error. */
12088#ifdef __cplusplus
12089extern "C"
12090{
12091#endif
12092/* We use char because int might match the return type of a gcc2
12093 builtin and then its argument prototype would still apply. */
12094char mkstemp ();
12095/* The GNU C library defines this for functions which it implements
12096 to always fail with ENOSYS. Some functions are actually named
12097 something starting with __ and the normal name is an alias. */
12098#if defined (__stub_mkstemp) || defined (__stub___mkstemp)
12099choke me
12100#else
12101char (*f) () = mkstemp;
12102#endif
12103#ifdef __cplusplus
12104}
12105#endif
12106
12107int
12108main ()
12109{
12110return f != mkstemp;
12111 ;
12112 return 0;
12113}
12114_ACEOF
12115rm -f conftest.$ac_objext conftest$ac_exeext
12116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12117 (eval $ac_link) 2>conftest.er1
12118 ac_status=$?
12119 grep -v '^ *+' conftest.er1 >conftest.err
12120 rm -f conftest.er1
12121 cat conftest.err >&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); } &&
12124 { ac_try='test -z "$ac_c_werror_flag"
12125 || test ! -s conftest.err'
12126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12127 (eval $ac_try) 2>&5
12128 ac_status=$?
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); }; } &&
12131 { ac_try='test -s conftest$ac_exeext'
12132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12133 (eval $ac_try) 2>&5
12134 ac_status=$?
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); }; }; then
12137 ac_cv_func_mkstemp=yes
12138else
12139 echo "$as_me: failed program was:" >&5
12140sed 's/^/| /' conftest.$ac_ext >&5
12141
12142ac_cv_func_mkstemp=no
12143fi
12144rm -f conftest.err conftest.$ac_objext \
12145 conftest$ac_exeext conftest.$ac_ext
12146fi
12147echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
12148echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
12149if test $ac_cv_func_mkstemp = yes; then
12150
12151cat >>confdefs.h <<\_ACEOF
12152#define HAVE_MKSTEMP 1
12153_ACEOF
12154
12155fi
12156
12157echo "$as_me:$LINENO: checking for mkdtemp" >&5
12158echo $ECHO_N "checking for mkdtemp... $ECHO_C" >&6
12159if test "${ac_cv_func_mkdtemp+set}" = set; then
12160 echo $ECHO_N "(cached) $ECHO_C" >&6
12161else
12162 cat >conftest.$ac_ext <<_ACEOF
12163/* confdefs.h. */
12164_ACEOF
12165cat confdefs.h >>conftest.$ac_ext
12166cat >>conftest.$ac_ext <<_ACEOF
12167/* end confdefs.h. */
12168/* Define mkdtemp to an innocuous variant, in case <limits.h> declares mkdtemp.
12169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12170#define mkdtemp innocuous_mkdtemp
12171
12172/* System header to define __stub macros and hopefully few prototypes,
12173 which can conflict with char mkdtemp (); below.
12174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12175 <limits.h> exists even on freestanding compilers. */
12176
12177#ifdef __STDC__
12178# include <limits.h>
12179#else
12180# include <assert.h>
12181#endif
12182
12183#undef mkdtemp
12184
12185/* Override any gcc2 internal prototype to avoid an error. */
12186#ifdef __cplusplus
12187extern "C"
12188{
12189#endif
12190/* We use char because int might match the return type of a gcc2
12191 builtin and then its argument prototype would still apply. */
12192char mkdtemp ();
12193/* The GNU C library defines this for functions which it implements
12194 to always fail with ENOSYS. Some functions are actually named
12195 something starting with __ and the normal name is an alias. */
12196#if defined (__stub_mkdtemp) || defined (__stub___mkdtemp)
12197choke me
12198#else
12199char (*f) () = mkdtemp;
12200#endif
12201#ifdef __cplusplus
12202}
12203#endif
12204
12205int
12206main ()
12207{
12208return f != mkdtemp;
12209 ;
12210 return 0;
12211}
12212_ACEOF
12213rm -f conftest.$ac_objext conftest$ac_exeext
12214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12215 (eval $ac_link) 2>conftest.er1
12216 ac_status=$?
12217 grep -v '^ *+' conftest.er1 >conftest.err
12218 rm -f conftest.er1
12219 cat conftest.err >&5
12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); } &&
12222 { ac_try='test -z "$ac_c_werror_flag"
12223 || test ! -s conftest.err'
12224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225 (eval $ac_try) 2>&5
12226 ac_status=$?
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; } &&
12229 { ac_try='test -s conftest$ac_exeext'
12230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231 (eval $ac_try) 2>&5
12232 ac_status=$?
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; }; then
12235 ac_cv_func_mkdtemp=yes
12236else
12237 echo "$as_me: failed program was:" >&5
12238sed 's/^/| /' conftest.$ac_ext >&5
12239
12240ac_cv_func_mkdtemp=no
12241fi
12242rm -f conftest.err conftest.$ac_objext \
12243 conftest$ac_exeext conftest.$ac_ext
12244fi
12245echo "$as_me:$LINENO: result: $ac_cv_func_mkdtemp" >&5
12246echo "${ECHO_T}$ac_cv_func_mkdtemp" >&6
12247if test $ac_cv_func_mkdtemp = yes; then
12248
12249cat >>confdefs.h <<\_ACEOF
12250#define HAVE_MKDTEMP 1
12251_ACEOF
12252
12253fi
12254
252b5132 12255
cedd9a58
JJ
12256# Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
12257# needs to be defined for it
42ecbf5e
DJ
12258echo "$as_me:$LINENO: checking for fopen64" >&5
12259echo $ECHO_N "checking for fopen64... $ECHO_C" >&6
12260if test "${bu_cv_have_fopen64+set}" = set; then
12261 echo $ECHO_N "(cached) $ECHO_C" >&6
12262else
12263 cat >conftest.$ac_ext <<_ACEOF
12264/* confdefs.h. */
12265_ACEOF
12266cat confdefs.h >>conftest.$ac_ext
12267cat >>conftest.$ac_ext <<_ACEOF
12268/* end confdefs.h. */
cedd9a58 12269#include <stdio.h>
42ecbf5e
DJ
12270int
12271main ()
12272{
cedd9a58 12273FILE *f = fopen64 ("/tmp/foo","r");
42ecbf5e
DJ
12274 ;
12275 return 0;
12276}
12277_ACEOF
12278rm -f conftest.$ac_objext conftest$ac_exeext
12279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12280 (eval $ac_link) 2>conftest.er1
12281 ac_status=$?
12282 grep -v '^ *+' conftest.er1 >conftest.err
12283 rm -f conftest.er1
12284 cat conftest.err >&5
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); } &&
b7d4af3a
JW
12287 { ac_try='test -z "$ac_c_werror_flag"
12288 || test ! -s conftest.err'
42ecbf5e
DJ
12289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12290 (eval $ac_try) 2>&5
12291 ac_status=$?
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); }; } &&
12294 { ac_try='test -s conftest$ac_exeext'
12295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12296 (eval $ac_try) 2>&5
12297 ac_status=$?
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); }; }; then
cedd9a58
JJ
12300 bu_cv_have_fopen64=yes
12301else
42ecbf5e
DJ
12302 echo "$as_me: failed program was:" >&5
12303sed 's/^/| /' conftest.$ac_ext >&5
12304
12305saved_CPPFLAGS=$CPPFLAGS
cedd9a58 12306 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
42ecbf5e
DJ
12307 cat >conftest.$ac_ext <<_ACEOF
12308/* confdefs.h. */
12309_ACEOF
12310cat confdefs.h >>conftest.$ac_ext
12311cat >>conftest.$ac_ext <<_ACEOF
12312/* end confdefs.h. */
cedd9a58 12313#include <stdio.h>
42ecbf5e
DJ
12314int
12315main ()
12316{
cedd9a58 12317FILE *f = fopen64 ("/tmp/foo","r");
42ecbf5e
DJ
12318 ;
12319 return 0;
12320}
12321_ACEOF
12322rm -f conftest.$ac_objext conftest$ac_exeext
12323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12324 (eval $ac_link) 2>conftest.er1
12325 ac_status=$?
12326 grep -v '^ *+' conftest.er1 >conftest.err
12327 rm -f conftest.er1
12328 cat conftest.err >&5
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); } &&
b7d4af3a
JW
12331 { ac_try='test -z "$ac_c_werror_flag"
12332 || test ! -s conftest.err'
42ecbf5e
DJ
12333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12334 (eval $ac_try) 2>&5
12335 ac_status=$?
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); }; } &&
12338 { ac_try='test -s conftest$ac_exeext'
12339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12340 (eval $ac_try) 2>&5
12341 ac_status=$?
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; }; then
cedd9a58
JJ
12344 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
12345else
42ecbf5e
DJ
12346 echo "$as_me: failed program was:" >&5
12347sed 's/^/| /' conftest.$ac_ext >&5
12348
12349bu_cv_have_fopen64=no
cedd9a58 12350fi
42ecbf5e
DJ
12351rm -f conftest.err conftest.$ac_objext \
12352 conftest$ac_exeext conftest.$ac_ext
17a5a5c3 12353 CPPFLAGS=$saved_CPPFLAGS
cedd9a58 12354fi
42ecbf5e
DJ
12355rm -f conftest.err conftest.$ac_objext \
12356 conftest$ac_exeext conftest.$ac_ext
cedd9a58 12357fi
cedd9a58 12358
42ecbf5e
DJ
12359echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
12360echo "${ECHO_T}$bu_cv_have_fopen64" >&6
6db7a086 12361if test "$bu_cv_have_fopen64" != no; then
42ecbf5e
DJ
12362
12363cat >>confdefs.h <<\_ACEOF
cedd9a58 12364#define HAVE_FOPEN64 1
42ecbf5e 12365_ACEOF
cedd9a58 12366
fb5b5478 12367fi
42ecbf5e
DJ
12368echo "$as_me:$LINENO: checking for stat64" >&5
12369echo $ECHO_N "checking for stat64... $ECHO_C" >&6
12370if test "${bu_cv_have_stat64+set}" = set; then
12371 echo $ECHO_N "(cached) $ECHO_C" >&6
fb5b5478 12372else
42ecbf5e
DJ
12373 cat >conftest.$ac_ext <<_ACEOF
12374/* confdefs.h. */
12375_ACEOF
12376cat confdefs.h >>conftest.$ac_ext
12377cat >>conftest.$ac_ext <<_ACEOF
12378/* end confdefs.h. */
fb5b5478 12379#include <sys/stat.h>
42ecbf5e
DJ
12380int
12381main ()
12382{
fb5b5478 12383struct stat64 st; stat64 ("/tmp/foo", &st);
42ecbf5e
DJ
12384 ;
12385 return 0;
12386}
12387_ACEOF
12388rm -f conftest.$ac_objext conftest$ac_exeext
12389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12390 (eval $ac_link) 2>conftest.er1
12391 ac_status=$?
12392 grep -v '^ *+' conftest.er1 >conftest.err
12393 rm -f conftest.er1
12394 cat conftest.err >&5
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); } &&
b7d4af3a
JW
12397 { ac_try='test -z "$ac_c_werror_flag"
12398 || test ! -s conftest.err'
42ecbf5e
DJ
12399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12400 (eval $ac_try) 2>&5
12401 ac_status=$?
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); }; } &&
12404 { ac_try='test -s conftest$ac_exeext'
12405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12406 (eval $ac_try) 2>&5
12407 ac_status=$?
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); }; }; then
fb5b5478
JJ
12410 bu_cv_have_stat64=yes
12411else
42ecbf5e
DJ
12412 echo "$as_me: failed program was:" >&5
12413sed 's/^/| /' conftest.$ac_ext >&5
12414
12415saved_CPPFLAGS=$CPPFLAGS
fb5b5478 12416 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
42ecbf5e
DJ
12417 cat >conftest.$ac_ext <<_ACEOF
12418/* confdefs.h. */
12419_ACEOF
12420cat confdefs.h >>conftest.$ac_ext
12421cat >>conftest.$ac_ext <<_ACEOF
12422/* end confdefs.h. */
fb5b5478 12423#include <sys/stat.h>
42ecbf5e
DJ
12424int
12425main ()
12426{
fb5b5478 12427struct stat64 st; stat64 ("/tmp/foo", &st);
42ecbf5e
DJ
12428 ;
12429 return 0;
12430}
12431_ACEOF
12432rm -f conftest.$ac_objext conftest$ac_exeext
12433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12434 (eval $ac_link) 2>conftest.er1
12435 ac_status=$?
12436 grep -v '^ *+' conftest.er1 >conftest.err
12437 rm -f conftest.er1
12438 cat conftest.err >&5
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); } &&
b7d4af3a
JW
12441 { ac_try='test -z "$ac_c_werror_flag"
12442 || test ! -s conftest.err'
42ecbf5e
DJ
12443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12444 (eval $ac_try) 2>&5
12445 ac_status=$?
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); }; } &&
12448 { ac_try='test -s conftest$ac_exeext'
12449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450 (eval $ac_try) 2>&5
12451 ac_status=$?
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; }; then
fb5b5478
JJ
12454 bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
12455else
42ecbf5e
DJ
12456 echo "$as_me: failed program was:" >&5
12457sed 's/^/| /' conftest.$ac_ext >&5
12458
12459bu_cv_have_stat64=no
fb5b5478 12460fi
42ecbf5e
DJ
12461rm -f conftest.err conftest.$ac_objext \
12462 conftest$ac_exeext conftest.$ac_ext
fb5b5478
JJ
12463 CPPFLAGS=$saved_CPPFLAGS
12464fi
42ecbf5e
DJ
12465rm -f conftest.err conftest.$ac_objext \
12466 conftest$ac_exeext conftest.$ac_ext
fb5b5478
JJ
12467fi
12468
42ecbf5e
DJ
12469echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5
12470echo "${ECHO_T}$bu_cv_have_stat64" >&6
fb5b5478 12471if test "$bu_cv_have_stat64" != no; then
42ecbf5e
DJ
12472
12473cat >>confdefs.h <<\_ACEOF
fb5b5478 12474#define HAVE_STAT64 1
42ecbf5e 12475_ACEOF
fb5b5478
JJ
12476
12477fi
12478if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
12479 || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
42ecbf5e
DJ
12480
12481cat >>confdefs.h <<\_ACEOF
cedd9a58 12482#define _LARGEFILE64_SOURCE 1
42ecbf5e 12483_ACEOF
cedd9a58 12484
fb5b5478 12485 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
cedd9a58
JJ
12486fi
12487
f353eb8a 12488# Some systems have frexp only in -lm, not in -lc.
42ecbf5e
DJ
12489echo "$as_me:$LINENO: checking for library containing frexp" >&5
12490echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6
12491if test "${ac_cv_search_frexp+set}" = set; then
12492 echo $ECHO_N "(cached) $ECHO_C" >&6
12493else
12494 ac_func_search_save_LIBS=$LIBS
12495ac_cv_search_frexp=no
12496cat >conftest.$ac_ext <<_ACEOF
12497/* confdefs.h. */
12498_ACEOF
12499cat confdefs.h >>conftest.$ac_ext
12500cat >>conftest.$ac_ext <<_ACEOF
12501/* end confdefs.h. */
f353eb8a 12502
f353eb8a 12503/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
12504#ifdef __cplusplus
12505extern "C"
12506#endif
f353eb8a 12507/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
12508 builtin and then its argument prototype would still apply. */
12509char frexp ();
12510int
12511main ()
12512{
12513frexp ();
12514 ;
12515 return 0;
12516}
12517_ACEOF
12518rm -f conftest.$ac_objext conftest$ac_exeext
12519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12520 (eval $ac_link) 2>conftest.er1
12521 ac_status=$?
12522 grep -v '^ *+' conftest.er1 >conftest.err
12523 rm -f conftest.er1
12524 cat conftest.err >&5
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); } &&
b7d4af3a
JW
12527 { ac_try='test -z "$ac_c_werror_flag"
12528 || test ! -s conftest.err'
42ecbf5e
DJ
12529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12530 (eval $ac_try) 2>&5
12531 ac_status=$?
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); }; } &&
12534 { ac_try='test -s conftest$ac_exeext'
12535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536 (eval $ac_try) 2>&5
12537 ac_status=$?
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; }; then
f353eb8a
ILT
12540 ac_cv_search_frexp="none required"
12541else
42ecbf5e
DJ
12542 echo "$as_me: failed program was:" >&5
12543sed 's/^/| /' conftest.$ac_ext >&5
12544
f353eb8a 12545fi
42ecbf5e
DJ
12546rm -f conftest.err conftest.$ac_objext \
12547 conftest$ac_exeext conftest.$ac_ext
12548if test "$ac_cv_search_frexp" = no; then
12549 for ac_lib in m; do
12550 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12551 cat >conftest.$ac_ext <<_ACEOF
12552/* confdefs.h. */
12553_ACEOF
12554cat confdefs.h >>conftest.$ac_ext
12555cat >>conftest.$ac_ext <<_ACEOF
12556/* end confdefs.h. */
12557
f353eb8a 12558/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
12559#ifdef __cplusplus
12560extern "C"
12561#endif
f353eb8a 12562/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
12563 builtin and then its argument prototype would still apply. */
12564char frexp ();
12565int
12566main ()
12567{
12568frexp ();
12569 ;
12570 return 0;
12571}
12572_ACEOF
12573rm -f conftest.$ac_objext conftest$ac_exeext
12574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12575 (eval $ac_link) 2>conftest.er1
12576 ac_status=$?
12577 grep -v '^ *+' conftest.er1 >conftest.err
12578 rm -f conftest.er1
12579 cat conftest.err >&5
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); } &&
b7d4af3a
JW
12582 { ac_try='test -z "$ac_c_werror_flag"
12583 || test ! -s conftest.err'
42ecbf5e
DJ
12584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12585 (eval $ac_try) 2>&5
12586 ac_status=$?
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); }; } &&
12589 { ac_try='test -s conftest$ac_exeext'
12590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12591 (eval $ac_try) 2>&5
12592 ac_status=$?
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); }; }; then
12595 ac_cv_search_frexp="-l$ac_lib"
f353eb8a
ILT
12596break
12597else
42ecbf5e
DJ
12598 echo "$as_me: failed program was:" >&5
12599sed 's/^/| /' conftest.$ac_ext >&5
12600
f353eb8a 12601fi
42ecbf5e
DJ
12602rm -f conftest.err conftest.$ac_objext \
12603 conftest$ac_exeext conftest.$ac_ext
12604 done
e5a52504 12605fi
42ecbf5e
DJ
12606LIBS=$ac_func_search_save_LIBS
12607fi
12608echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
12609echo "${ECHO_T}$ac_cv_search_frexp" >&6
12610if test "$ac_cv_search_frexp" != no; then
d15b04bd 12611 test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
42ecbf5e 12612
f353eb8a
ILT
12613fi
12614
42ecbf5e
DJ
12615
12616echo "$as_me:$LINENO: checking for time_t in time.h" >&5
12617echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6
12618if test "${bu_cv_decl_time_t_time_h+set}" = set; then
12619 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12620else
42ecbf5e
DJ
12621 cat >conftest.$ac_ext <<_ACEOF
12622/* confdefs.h. */
12623_ACEOF
12624cat confdefs.h >>conftest.$ac_ext
12625cat >>conftest.$ac_ext <<_ACEOF
12626/* end confdefs.h. */
252b5132 12627#include <time.h>
42ecbf5e
DJ
12628int
12629main ()
12630{
252b5132 12631time_t i;
42ecbf5e
DJ
12632 ;
12633 return 0;
12634}
12635_ACEOF
12636rm -f conftest.$ac_objext
12637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12638 (eval $ac_compile) 2>conftest.er1
12639 ac_status=$?
12640 grep -v '^ *+' conftest.er1 >conftest.err
12641 rm -f conftest.er1
12642 cat conftest.err >&5
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); } &&
b7d4af3a
JW
12645 { ac_try='test -z "$ac_c_werror_flag"
12646 || test ! -s conftest.err'
42ecbf5e
DJ
12647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12648 (eval $ac_try) 2>&5
12649 ac_status=$?
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; } &&
12652 { ac_try='test -s conftest.$ac_objext'
12653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12654 (eval $ac_try) 2>&5
12655 ac_status=$?
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); }; }; then
252b5132
RH
12658 bu_cv_decl_time_t_time_h=yes
12659else
42ecbf5e
DJ
12660 echo "$as_me: failed program was:" >&5
12661sed 's/^/| /' conftest.$ac_ext >&5
12662
12663bu_cv_decl_time_t_time_h=no
252b5132 12664fi
42ecbf5e 12665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12666fi
12667
42ecbf5e
DJ
12668echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
12669echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6
252b5132 12670if test $bu_cv_decl_time_t_time_h = yes; then
42ecbf5e
DJ
12671
12672cat >>confdefs.h <<\_ACEOF
252b5132 12673#define HAVE_TIME_T_IN_TIME_H 1
42ecbf5e 12674_ACEOF
252b5132
RH
12675
12676fi
12677
42ecbf5e
DJ
12678echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
12679echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6
12680if test "${bu_cv_decl_time_t_types_h+set}" = set; then
12681 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12682else
42ecbf5e
DJ
12683 cat >conftest.$ac_ext <<_ACEOF
12684/* confdefs.h. */
12685_ACEOF
12686cat confdefs.h >>conftest.$ac_ext
12687cat >>conftest.$ac_ext <<_ACEOF
12688/* end confdefs.h. */
252b5132 12689#include <sys/types.h>
42ecbf5e
DJ
12690int
12691main ()
12692{
252b5132 12693time_t i;
42ecbf5e
DJ
12694 ;
12695 return 0;
12696}
12697_ACEOF
12698rm -f conftest.$ac_objext
12699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12700 (eval $ac_compile) 2>conftest.er1
12701 ac_status=$?
12702 grep -v '^ *+' conftest.er1 >conftest.err
12703 rm -f conftest.er1
12704 cat conftest.err >&5
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); } &&
b7d4af3a
JW
12707 { ac_try='test -z "$ac_c_werror_flag"
12708 || test ! -s conftest.err'
42ecbf5e
DJ
12709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12710 (eval $ac_try) 2>&5
12711 ac_status=$?
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); }; } &&
12714 { ac_try='test -s conftest.$ac_objext'
12715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12716 (eval $ac_try) 2>&5
12717 ac_status=$?
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); }; }; then
252b5132
RH
12720 bu_cv_decl_time_t_types_h=yes
12721else
42ecbf5e
DJ
12722 echo "$as_me: failed program was:" >&5
12723sed 's/^/| /' conftest.$ac_ext >&5
12724
12725bu_cv_decl_time_t_types_h=no
252b5132 12726fi
42ecbf5e 12727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12728fi
12729
42ecbf5e
DJ
12730echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
12731echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6
252b5132 12732if test $bu_cv_decl_time_t_types_h = yes; then
42ecbf5e
DJ
12733
12734cat >>confdefs.h <<\_ACEOF
252b5132 12735#define HAVE_TIME_T_IN_TYPES_H 1
42ecbf5e 12736_ACEOF
252b5132
RH
12737
12738fi
12739
42ecbf5e
DJ
12740echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
12741echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
12742if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then
12743 echo $ECHO_N "(cached) $ECHO_C" >&6
e46eba98 12744else
42ecbf5e
DJ
12745 cat >conftest.$ac_ext <<_ACEOF
12746/* confdefs.h. */
12747_ACEOF
12748cat confdefs.h >>conftest.$ac_ext
12749cat >>conftest.$ac_ext <<_ACEOF
12750/* end confdefs.h. */
e46eba98 12751#include <unistd.h>
42ecbf5e
DJ
12752int
12753main ()
12754{
e46eba98 12755extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
12756 ;
12757 return 0;
12758}
12759_ACEOF
12760rm -f conftest.$ac_objext
12761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12762 (eval $ac_compile) 2>conftest.er1
12763 ac_status=$?
12764 grep -v '^ *+' conftest.er1 >conftest.err
12765 rm -f conftest.er1
12766 cat conftest.err >&5
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); } &&
b7d4af3a
JW
12769 { ac_try='test -z "$ac_c_werror_flag"
12770 || test ! -s conftest.err'
42ecbf5e
DJ
12771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12772 (eval $ac_try) 2>&5
12773 ac_status=$?
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); }; } &&
12776 { ac_try='test -s conftest.$ac_objext'
12777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12778 (eval $ac_try) 2>&5
12779 ac_status=$?
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); }; }; then
e46eba98
NC
12782 bu_cv_decl_getopt_unistd_h=yes
12783else
42ecbf5e
DJ
12784 echo "$as_me: failed program was:" >&5
12785sed 's/^/| /' conftest.$ac_ext >&5
12786
12787bu_cv_decl_getopt_unistd_h=no
e46eba98 12788fi
42ecbf5e 12789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e46eba98
NC
12790fi
12791
42ecbf5e
DJ
12792echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5
12793echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6
e46eba98 12794if test $bu_cv_decl_getopt_unistd_h = yes; then
42ecbf5e
DJ
12795
12796cat >>confdefs.h <<\_ACEOF
e46eba98 12797#define HAVE_DECL_GETOPT 1
42ecbf5e 12798_ACEOF
e46eba98
NC
12799
12800fi
12801
252b5132
RH
12802# Under Next 3.2 <utime.h> apparently does not define struct utimbuf
12803# by default.
42ecbf5e
DJ
12804echo "$as_me:$LINENO: checking for utime.h" >&5
12805echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
12806if test "${bu_cv_header_utime_h+set}" = set; then
12807 echo $ECHO_N "(cached) $ECHO_C" >&6
12808else
12809 cat >conftest.$ac_ext <<_ACEOF
12810/* confdefs.h. */
12811_ACEOF
12812cat confdefs.h >>conftest.$ac_ext
12813cat >>conftest.$ac_ext <<_ACEOF
12814/* end confdefs.h. */
252b5132
RH
12815#include <sys/types.h>
12816#ifdef HAVE_TIME_H
12817#include <time.h>
12818#endif
12819#include <utime.h>
42ecbf5e
DJ
12820int
12821main ()
12822{
252b5132 12823struct utimbuf s;
42ecbf5e
DJ
12824 ;
12825 return 0;
12826}
12827_ACEOF
12828rm -f conftest.$ac_objext
12829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12830 (eval $ac_compile) 2>conftest.er1
12831 ac_status=$?
12832 grep -v '^ *+' conftest.er1 >conftest.err
12833 rm -f conftest.er1
12834 cat conftest.err >&5
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); } &&
b7d4af3a
JW
12837 { ac_try='test -z "$ac_c_werror_flag"
12838 || test ! -s conftest.err'
42ecbf5e
DJ
12839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12840 (eval $ac_try) 2>&5
12841 ac_status=$?
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); }; } &&
12844 { ac_try='test -s conftest.$ac_objext'
12845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12846 (eval $ac_try) 2>&5
12847 ac_status=$?
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); }; }; then
252b5132
RH
12850 bu_cv_header_utime_h=yes
12851else
42ecbf5e
DJ
12852 echo "$as_me: failed program was:" >&5
12853sed 's/^/| /' conftest.$ac_ext >&5
12854
12855bu_cv_header_utime_h=no
252b5132 12856fi
42ecbf5e 12857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12858fi
12859
42ecbf5e
DJ
12860echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
12861echo "${ECHO_T}$bu_cv_header_utime_h" >&6
252b5132 12862if test $bu_cv_header_utime_h = yes; then
42ecbf5e
DJ
12863
12864cat >>confdefs.h <<\_ACEOF
252b5132 12865#define HAVE_GOOD_UTIME_H 1
42ecbf5e 12866_ACEOF
252b5132
RH
12867
12868fi
12869
398ee8f1
SE
12870echo "$as_me:$LINENO: checking whether fprintf is declared" >&5
12871echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6
12872if test "${ac_cv_have_decl_fprintf+set}" = set; then
42ecbf5e 12873 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12874else
42ecbf5e
DJ
12875 cat >conftest.$ac_ext <<_ACEOF
12876/* confdefs.h. */
12877_ACEOF
12878cat confdefs.h >>conftest.$ac_ext
12879cat >>conftest.$ac_ext <<_ACEOF
12880/* end confdefs.h. */
398ee8f1 12881$ac_includes_default
42ecbf5e
DJ
12882int
12883main ()
12884{
398ee8f1
SE
12885#ifndef fprintf
12886 char *p = (char *) fprintf;
12887#endif
12888
42ecbf5e
DJ
12889 ;
12890 return 0;
12891}
12892_ACEOF
12893rm -f conftest.$ac_objext
12894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12895 (eval $ac_compile) 2>conftest.er1
12896 ac_status=$?
12897 grep -v '^ *+' conftest.er1 >conftest.err
12898 rm -f conftest.er1
12899 cat conftest.err >&5
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); } &&
b7d4af3a
JW
12902 { ac_try='test -z "$ac_c_werror_flag"
12903 || test ! -s conftest.err'
42ecbf5e
DJ
12904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12905 (eval $ac_try) 2>&5
12906 ac_status=$?
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); }; } &&
12909 { ac_try='test -s conftest.$ac_objext'
12910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12911 (eval $ac_try) 2>&5
12912 ac_status=$?
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; }; then
398ee8f1 12915 ac_cv_have_decl_fprintf=yes
252b5132 12916else
42ecbf5e
DJ
12917 echo "$as_me: failed program was:" >&5
12918sed 's/^/| /' conftest.$ac_ext >&5
12919
398ee8f1 12920ac_cv_have_decl_fprintf=no
252b5132 12921fi
42ecbf5e 12922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12923fi
398ee8f1
SE
12924echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5
12925echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6
12926if test $ac_cv_have_decl_fprintf = yes; then
252b5132 12927
398ee8f1
SE
12928cat >>confdefs.h <<_ACEOF
12929#define HAVE_DECL_FPRINTF 1
12930_ACEOF
42ecbf5e 12931
398ee8f1
SE
12932
12933else
12934 cat >>confdefs.h <<_ACEOF
12935#define HAVE_DECL_FPRINTF 0
42ecbf5e 12936_ACEOF
252b5132 12937
252b5132 12938
3e321448
L
12939fi
12940echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
12941echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
12942if test "${ac_cv_have_decl_stpcpy+set}" = set; then
12943 echo $ECHO_N "(cached) $ECHO_C" >&6
12944else
12945 cat >conftest.$ac_ext <<_ACEOF
12946/* confdefs.h. */
12947_ACEOF
12948cat confdefs.h >>conftest.$ac_ext
12949cat >>conftest.$ac_ext <<_ACEOF
12950/* end confdefs.h. */
12951$ac_includes_default
12952int
12953main ()
12954{
12955#ifndef stpcpy
12956 char *p = (char *) stpcpy;
12957#endif
12958
12959 ;
12960 return 0;
12961}
12962_ACEOF
12963rm -f conftest.$ac_objext
12964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12965 (eval $ac_compile) 2>conftest.er1
12966 ac_status=$?
12967 grep -v '^ *+' conftest.er1 >conftest.err
12968 rm -f conftest.er1
12969 cat conftest.err >&5
12970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971 (exit $ac_status); } &&
12972 { ac_try='test -z "$ac_c_werror_flag"
12973 || test ! -s conftest.err'
12974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12975 (eval $ac_try) 2>&5
12976 ac_status=$?
12977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); }; } &&
12979 { ac_try='test -s conftest.$ac_objext'
12980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981 (eval $ac_try) 2>&5
12982 ac_status=$?
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; }; then
12985 ac_cv_have_decl_stpcpy=yes
12986else
12987 echo "$as_me: failed program was:" >&5
12988sed 's/^/| /' conftest.$ac_ext >&5
12989
12990ac_cv_have_decl_stpcpy=no
12991fi
12992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12993fi
12994echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
12995echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
12996if test $ac_cv_have_decl_stpcpy = yes; then
12997
12998cat >>confdefs.h <<_ACEOF
12999#define HAVE_DECL_STPCPY 1
13000_ACEOF
13001
13002
13003else
13004 cat >>confdefs.h <<_ACEOF
13005#define HAVE_DECL_STPCPY 0
13006_ACEOF
13007
13008
398ee8f1
SE
13009fi
13010echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13011echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13012if test "${ac_cv_have_decl_strstr+set}" = set; then
42ecbf5e 13013 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13014else
42ecbf5e
DJ
13015 cat >conftest.$ac_ext <<_ACEOF
13016/* confdefs.h. */
13017_ACEOF
13018cat confdefs.h >>conftest.$ac_ext
13019cat >>conftest.$ac_ext <<_ACEOF
13020/* end confdefs.h. */
398ee8f1 13021$ac_includes_default
42ecbf5e
DJ
13022int
13023main ()
13024{
398ee8f1
SE
13025#ifndef strstr
13026 char *p = (char *) strstr;
13027#endif
13028
42ecbf5e
DJ
13029 ;
13030 return 0;
13031}
13032_ACEOF
13033rm -f conftest.$ac_objext
13034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13035 (eval $ac_compile) 2>conftest.er1
13036 ac_status=$?
13037 grep -v '^ *+' conftest.er1 >conftest.err
13038 rm -f conftest.er1
13039 cat conftest.err >&5
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); } &&
b7d4af3a
JW
13042 { ac_try='test -z "$ac_c_werror_flag"
13043 || test ! -s conftest.err'
42ecbf5e
DJ
13044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13045 (eval $ac_try) 2>&5
13046 ac_status=$?
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); }; } &&
13049 { ac_try='test -s conftest.$ac_objext'
13050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13051 (eval $ac_try) 2>&5
13052 ac_status=$?
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); }; }; then
398ee8f1 13055 ac_cv_have_decl_strstr=yes
252b5132 13056else
42ecbf5e
DJ
13057 echo "$as_me: failed program was:" >&5
13058sed 's/^/| /' conftest.$ac_ext >&5
13059
398ee8f1 13060ac_cv_have_decl_strstr=no
252b5132 13061fi
42ecbf5e 13062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 13063fi
398ee8f1
SE
13064echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13065echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13066if test $ac_cv_have_decl_strstr = yes; then
252b5132 13067
398ee8f1
SE
13068cat >>confdefs.h <<_ACEOF
13069#define HAVE_DECL_STRSTR 1
13070_ACEOF
42ecbf5e 13071
398ee8f1
SE
13072
13073else
13074 cat >>confdefs.h <<_ACEOF
13075#define HAVE_DECL_STRSTR 0
42ecbf5e 13076_ACEOF
252b5132 13077
252b5132 13078
398ee8f1
SE
13079fi
13080echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
13081echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
13082if test "${ac_cv_have_decl_sbrk+set}" = set; then
42ecbf5e 13083 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13084else
42ecbf5e
DJ
13085 cat >conftest.$ac_ext <<_ACEOF
13086/* confdefs.h. */
13087_ACEOF
13088cat confdefs.h >>conftest.$ac_ext
13089cat >>conftest.$ac_ext <<_ACEOF
13090/* end confdefs.h. */
398ee8f1 13091$ac_includes_default
42ecbf5e
DJ
13092int
13093main ()
13094{
398ee8f1
SE
13095#ifndef sbrk
13096 char *p = (char *) sbrk;
13097#endif
13098
42ecbf5e
DJ
13099 ;
13100 return 0;
13101}
13102_ACEOF
13103rm -f conftest.$ac_objext
13104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13105 (eval $ac_compile) 2>conftest.er1
13106 ac_status=$?
13107 grep -v '^ *+' conftest.er1 >conftest.err
13108 rm -f conftest.er1
13109 cat conftest.err >&5
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); } &&
b7d4af3a
JW
13112 { ac_try='test -z "$ac_c_werror_flag"
13113 || test ! -s conftest.err'
42ecbf5e
DJ
13114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13115 (eval $ac_try) 2>&5
13116 ac_status=$?
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; } &&
13119 { ac_try='test -s conftest.$ac_objext'
13120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13121 (eval $ac_try) 2>&5
13122 ac_status=$?
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); }; }; then
398ee8f1 13125 ac_cv_have_decl_sbrk=yes
252b5132 13126else
42ecbf5e
DJ
13127 echo "$as_me: failed program was:" >&5
13128sed 's/^/| /' conftest.$ac_ext >&5
13129
398ee8f1 13130ac_cv_have_decl_sbrk=no
252b5132 13131fi
42ecbf5e 13132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 13133fi
398ee8f1
SE
13134echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
13135echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
13136if test $ac_cv_have_decl_sbrk = yes; then
252b5132 13137
398ee8f1
SE
13138cat >>confdefs.h <<_ACEOF
13139#define HAVE_DECL_SBRK 1
13140_ACEOF
42ecbf5e 13141
398ee8f1
SE
13142
13143else
13144 cat >>confdefs.h <<_ACEOF
13145#define HAVE_DECL_SBRK 0
42ecbf5e 13146_ACEOF
252b5132 13147
252b5132 13148
398ee8f1
SE
13149fi
13150echo "$as_me:$LINENO: checking whether getenv is declared" >&5
13151echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
13152if test "${ac_cv_have_decl_getenv+set}" = set; then
42ecbf5e 13153 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13154else
42ecbf5e
DJ
13155 cat >conftest.$ac_ext <<_ACEOF
13156/* confdefs.h. */
13157_ACEOF
13158cat confdefs.h >>conftest.$ac_ext
13159cat >>conftest.$ac_ext <<_ACEOF
13160/* end confdefs.h. */
398ee8f1 13161$ac_includes_default
42ecbf5e
DJ
13162int
13163main ()
13164{
398ee8f1
SE
13165#ifndef getenv
13166 char *p = (char *) getenv;
13167#endif
13168
42ecbf5e
DJ
13169 ;
13170 return 0;
13171}
13172_ACEOF
13173rm -f conftest.$ac_objext
13174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13175 (eval $ac_compile) 2>conftest.er1
13176 ac_status=$?
13177 grep -v '^ *+' conftest.er1 >conftest.err
13178 rm -f conftest.er1
13179 cat conftest.err >&5
13180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181 (exit $ac_status); } &&
b7d4af3a
JW
13182 { ac_try='test -z "$ac_c_werror_flag"
13183 || test ! -s conftest.err'
42ecbf5e
DJ
13184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13185 (eval $ac_try) 2>&5
13186 ac_status=$?
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); }; } &&
13189 { ac_try='test -s conftest.$ac_objext'
13190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13191 (eval $ac_try) 2>&5
13192 ac_status=$?
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); }; }; then
398ee8f1 13195 ac_cv_have_decl_getenv=yes
252b5132 13196else
42ecbf5e
DJ
13197 echo "$as_me: failed program was:" >&5
13198sed 's/^/| /' conftest.$ac_ext >&5
13199
398ee8f1 13200ac_cv_have_decl_getenv=no
252b5132 13201fi
42ecbf5e 13202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 13203fi
398ee8f1
SE
13204echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
13205echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
13206if test $ac_cv_have_decl_getenv = yes; then
252b5132 13207
398ee8f1
SE
13208cat >>confdefs.h <<_ACEOF
13209#define HAVE_DECL_GETENV 1
13210_ACEOF
42ecbf5e 13211
398ee8f1
SE
13212
13213else
13214 cat >>confdefs.h <<_ACEOF
13215#define HAVE_DECL_GETENV 0
42ecbf5e 13216_ACEOF
252b5132 13217
252b5132 13218
398ee8f1
SE
13219fi
13220echo "$as_me:$LINENO: checking whether environ is declared" >&5
13221echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
13222if test "${ac_cv_have_decl_environ+set}" = set; then
42ecbf5e 13223 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13224else
42ecbf5e
DJ
13225 cat >conftest.$ac_ext <<_ACEOF
13226/* confdefs.h. */
13227_ACEOF
13228cat confdefs.h >>conftest.$ac_ext
13229cat >>conftest.$ac_ext <<_ACEOF
13230/* end confdefs.h. */
398ee8f1 13231$ac_includes_default
42ecbf5e
DJ
13232int
13233main ()
13234{
398ee8f1
SE
13235#ifndef environ
13236 char *p = (char *) environ;
13237#endif
13238
42ecbf5e
DJ
13239 ;
13240 return 0;
13241}
13242_ACEOF
13243rm -f conftest.$ac_objext
13244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13245 (eval $ac_compile) 2>conftest.er1
13246 ac_status=$?
13247 grep -v '^ *+' conftest.er1 >conftest.err
13248 rm -f conftest.er1
13249 cat conftest.err >&5
13250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); } &&
b7d4af3a
JW
13252 { ac_try='test -z "$ac_c_werror_flag"
13253 || test ! -s conftest.err'
42ecbf5e
DJ
13254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13255 (eval $ac_try) 2>&5
13256 ac_status=$?
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); }; } &&
13259 { ac_try='test -s conftest.$ac_objext'
13260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13261 (eval $ac_try) 2>&5
13262 ac_status=$?
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); }; }; then
398ee8f1 13265 ac_cv_have_decl_environ=yes
252b5132 13266else
42ecbf5e
DJ
13267 echo "$as_me: failed program was:" >&5
13268sed 's/^/| /' conftest.$ac_ext >&5
13269
398ee8f1 13270ac_cv_have_decl_environ=no
252b5132 13271fi
42ecbf5e 13272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 13273fi
398ee8f1
SE
13274echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
13275echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
13276if test $ac_cv_have_decl_environ = yes; then
252b5132 13277
398ee8f1
SE
13278cat >>confdefs.h <<_ACEOF
13279#define HAVE_DECL_ENVIRON 1
13280_ACEOF
42ecbf5e 13281
398ee8f1
SE
13282
13283else
13284 cat >>confdefs.h <<_ACEOF
13285#define HAVE_DECL_ENVIRON 0
42ecbf5e 13286_ACEOF
252b5132 13287
252b5132 13288
398ee8f1 13289fi
b7d4af3a
JW
13290echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
13291echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
13292if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
13293 echo $ECHO_N "(cached) $ECHO_C" >&6
13294else
13295 cat >conftest.$ac_ext <<_ACEOF
13296/* confdefs.h. */
13297_ACEOF
13298cat confdefs.h >>conftest.$ac_ext
13299cat >>conftest.$ac_ext <<_ACEOF
13300/* end confdefs.h. */
13301$ac_includes_default
13302int
13303main ()
13304{
13305#ifndef getc_unlocked
13306 char *p = (char *) getc_unlocked;
13307#endif
13308
13309 ;
13310 return 0;
13311}
13312_ACEOF
13313rm -f conftest.$ac_objext
13314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13315 (eval $ac_compile) 2>conftest.er1
13316 ac_status=$?
13317 grep -v '^ *+' conftest.er1 >conftest.err
13318 rm -f conftest.er1
13319 cat conftest.err >&5
13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); } &&
13322 { ac_try='test -z "$ac_c_werror_flag"
13323 || test ! -s conftest.err'
13324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13325 (eval $ac_try) 2>&5
13326 ac_status=$?
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); }; } &&
13329 { ac_try='test -s conftest.$ac_objext'
13330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13331 (eval $ac_try) 2>&5
13332 ac_status=$?
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); }; }; then
13335 ac_cv_have_decl_getc_unlocked=yes
13336else
13337 echo "$as_me: failed program was:" >&5
13338sed 's/^/| /' conftest.$ac_ext >&5
13339
13340ac_cv_have_decl_getc_unlocked=no
13341fi
13342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13343fi
13344echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
13345echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
13346if test $ac_cv_have_decl_getc_unlocked = yes; then
13347
13348cat >>confdefs.h <<_ACEOF
13349#define HAVE_DECL_GETC_UNLOCKED 1
13350_ACEOF
13351
13352
13353else
13354 cat >>confdefs.h <<_ACEOF
13355#define HAVE_DECL_GETC_UNLOCKED 0
13356_ACEOF
13357
13358
db50c840
EB
13359fi
13360echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13361echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13362if test "${ac_cv_have_decl_snprintf+set}" = set; then
13363 echo $ECHO_N "(cached) $ECHO_C" >&6
13364else
13365 cat >conftest.$ac_ext <<_ACEOF
13366/* confdefs.h. */
13367_ACEOF
13368cat confdefs.h >>conftest.$ac_ext
13369cat >>conftest.$ac_ext <<_ACEOF
13370/* end confdefs.h. */
13371$ac_includes_default
13372int
13373main ()
13374{
13375#ifndef snprintf
13376 char *p = (char *) snprintf;
13377#endif
13378
13379 ;
13380 return 0;
13381}
13382_ACEOF
13383rm -f conftest.$ac_objext
13384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13385 (eval $ac_compile) 2>conftest.er1
13386 ac_status=$?
13387 grep -v '^ *+' conftest.er1 >conftest.err
13388 rm -f conftest.er1
13389 cat conftest.err >&5
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); } &&
13392 { ac_try='test -z "$ac_c_werror_flag"
13393 || test ! -s conftest.err'
13394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13395 (eval $ac_try) 2>&5
13396 ac_status=$?
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); }; } &&
13399 { ac_try='test -s conftest.$ac_objext'
13400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13401 (eval $ac_try) 2>&5
13402 ac_status=$?
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); }; }; then
13405 ac_cv_have_decl_snprintf=yes
13406else
13407 echo "$as_me: failed program was:" >&5
13408sed 's/^/| /' conftest.$ac_ext >&5
13409
13410ac_cv_have_decl_snprintf=no
13411fi
13412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13413fi
13414echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13415echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13416if test $ac_cv_have_decl_snprintf = yes; then
13417
13418cat >>confdefs.h <<_ACEOF
13419#define HAVE_DECL_SNPRINTF 1
13420_ACEOF
13421
13422
13423else
13424 cat >>confdefs.h <<_ACEOF
13425#define HAVE_DECL_SNPRINTF 0
13426_ACEOF
13427
13428
13429fi
13430echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13431echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13432if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13433 echo $ECHO_N "(cached) $ECHO_C" >&6
13434else
13435 cat >conftest.$ac_ext <<_ACEOF
13436/* confdefs.h. */
13437_ACEOF
13438cat confdefs.h >>conftest.$ac_ext
13439cat >>conftest.$ac_ext <<_ACEOF
13440/* end confdefs.h. */
13441$ac_includes_default
13442int
13443main ()
13444{
13445#ifndef vsnprintf
13446 char *p = (char *) vsnprintf;
13447#endif
13448
13449 ;
13450 return 0;
13451}
13452_ACEOF
13453rm -f conftest.$ac_objext
13454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13455 (eval $ac_compile) 2>conftest.er1
13456 ac_status=$?
13457 grep -v '^ *+' conftest.er1 >conftest.err
13458 rm -f conftest.er1
13459 cat conftest.err >&5
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); } &&
13462 { ac_try='test -z "$ac_c_werror_flag"
13463 || test ! -s conftest.err'
13464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13465 (eval $ac_try) 2>&5
13466 ac_status=$?
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); }; } &&
13469 { ac_try='test -s conftest.$ac_objext'
13470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13471 (eval $ac_try) 2>&5
13472 ac_status=$?
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); }; }; then
13475 ac_cv_have_decl_vsnprintf=yes
13476else
13477 echo "$as_me: failed program was:" >&5
13478sed 's/^/| /' conftest.$ac_ext >&5
13479
13480ac_cv_have_decl_vsnprintf=no
13481fi
13482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13483fi
13484echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13485echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13486if test $ac_cv_have_decl_vsnprintf = yes; then
13487
13488cat >>confdefs.h <<_ACEOF
13489#define HAVE_DECL_VSNPRINTF 1
13490_ACEOF
13491
13492
13493else
13494 cat >>confdefs.h <<_ACEOF
13495#define HAVE_DECL_VSNPRINTF 0
13496_ACEOF
13497
13498
b7d4af3a
JW
13499fi
13500
13501
252b5132
RH
13502
13503
13504case "${host}" in
8a965946 13505*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e
DJ
13506
13507cat >>confdefs.h <<\_ACEOF
252b5132 13508#define USE_BINARY_FOPEN 1
42ecbf5e 13509_ACEOF
252b5132
RH
13510 ;;
13511esac
13512
13513# target-specific stuff:
13514
13515# Canonicalize the secondary target names.
13516if test -n "$enable_targets"; then
13517 for targ in `echo $enable_targets | sed 's/,/ /g'`
13518 do
6d83c84b 13519 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
13520 if test -n "$result"; then
13521 canon_targets="$canon_targets $result"
13522 else
13523 # Allow targets that config.sub doesn't recognize, like "all".
13524 canon_targets="$canon_targets $targ"
13525 fi
13526 done
13527fi
13528
5ba684e2
NC
13529if test "${ac_cv_header_iconv_h+set}" = set; then
13530 echo "$as_me:$LINENO: checking for iconv.h" >&5
13531echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
13532if test "${ac_cv_header_iconv_h+set}" = set; then
13533 echo $ECHO_N "(cached) $ECHO_C" >&6
13534fi
13535echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
13536echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
13537else
13538 # Is the header compilable?
13539echo "$as_me:$LINENO: checking iconv.h usability" >&5
13540echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
13541cat >conftest.$ac_ext <<_ACEOF
13542/* confdefs.h. */
13543_ACEOF
13544cat confdefs.h >>conftest.$ac_ext
13545cat >>conftest.$ac_ext <<_ACEOF
13546/* end confdefs.h. */
13547$ac_includes_default
13548#include <iconv.h>
13549_ACEOF
13550rm -f conftest.$ac_objext
13551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13552 (eval $ac_compile) 2>conftest.er1
13553 ac_status=$?
13554 grep -v '^ *+' conftest.er1 >conftest.err
13555 rm -f conftest.er1
13556 cat conftest.err >&5
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); } &&
13559 { ac_try='test -z "$ac_c_werror_flag"
13560 || test ! -s conftest.err'
13561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13562 (eval $ac_try) 2>&5
13563 ac_status=$?
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); }; } &&
13566 { ac_try='test -s conftest.$ac_objext'
13567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13568 (eval $ac_try) 2>&5
13569 ac_status=$?
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); }; }; then
13572 ac_header_compiler=yes
13573else
13574 echo "$as_me: failed program was:" >&5
13575sed 's/^/| /' conftest.$ac_ext >&5
13576
13577ac_header_compiler=no
13578fi
13579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13580echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13581echo "${ECHO_T}$ac_header_compiler" >&6
13582
13583# Is the header present?
13584echo "$as_me:$LINENO: checking iconv.h presence" >&5
13585echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
13586cat >conftest.$ac_ext <<_ACEOF
13587/* confdefs.h. */
13588_ACEOF
13589cat confdefs.h >>conftest.$ac_ext
13590cat >>conftest.$ac_ext <<_ACEOF
13591/* end confdefs.h. */
13592#include <iconv.h>
13593_ACEOF
13594if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13595 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13596 ac_status=$?
13597 grep -v '^ *+' conftest.er1 >conftest.err
13598 rm -f conftest.er1
13599 cat conftest.err >&5
13600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601 (exit $ac_status); } >/dev/null; then
13602 if test -s conftest.err; then
13603 ac_cpp_err=$ac_c_preproc_warn_flag
13604 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13605 else
13606 ac_cpp_err=
13607 fi
13608else
13609 ac_cpp_err=yes
13610fi
13611if test -z "$ac_cpp_err"; then
13612 ac_header_preproc=yes
13613else
13614 echo "$as_me: failed program was:" >&5
13615sed 's/^/| /' conftest.$ac_ext >&5
13616
13617 ac_header_preproc=no
13618fi
13619rm -f conftest.err conftest.$ac_ext
13620echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13621echo "${ECHO_T}$ac_header_preproc" >&6
13622
13623# So? What about this header?
13624case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13625 yes:no: )
13626 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
13627echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13628 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
13629echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
13630 ac_header_preproc=yes
13631 ;;
13632 no:yes:* )
13633 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
13634echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
13635 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
13636echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
13637 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
13638echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
13639 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
13640echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
13641 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
13642echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
13643 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
13644echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
13645 (
13646 cat <<\_ASBOX
13647## ------------------------------------------ ##
13648## Report this to the AC_PACKAGE_NAME lists. ##
13649## ------------------------------------------ ##
13650_ASBOX
13651 ) |
13652 sed "s/^/$as_me: WARNING: /" >&2
13653 ;;
13654esac
13655echo "$as_me:$LINENO: checking for iconv.h" >&5
13656echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
13657if test "${ac_cv_header_iconv_h+set}" = set; then
13658 echo $ECHO_N "(cached) $ECHO_C" >&6
13659else
13660 ac_cv_header_iconv_h=$ac_header_preproc
13661fi
13662echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
13663echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
13664
13665fi
13666
13667
13668
13669 if test "X$prefix" = "XNONE"; then
13670 acl_final_prefix="$ac_default_prefix"
13671 else
13672 acl_final_prefix="$prefix"
13673 fi
13674 if test "X$exec_prefix" = "XNONE"; then
13675 acl_final_exec_prefix='${prefix}'
13676 else
13677 acl_final_exec_prefix="$exec_prefix"
13678 fi
13679 acl_save_prefix="$prefix"
13680 prefix="$acl_final_prefix"
13681 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13682 prefix="$acl_save_prefix"
13683
13684
13685# Check whether --with-gnu-ld or --without-gnu-ld was given.
13686if test "${with_gnu_ld+set}" = set; then
13687 withval="$with_gnu_ld"
13688 test "$withval" = no || with_gnu_ld=yes
13689else
13690 with_gnu_ld=no
13691fi;
13692# Prepare PATH_SEPARATOR.
13693# The user is always right.
13694if test "${PATH_SEPARATOR+set}" != set; then
13695 echo "#! /bin/sh" >conf$$.sh
13696 echo "exit 0" >>conf$$.sh
13697 chmod +x conf$$.sh
13698 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13699 PATH_SEPARATOR=';'
13700 else
13701 PATH_SEPARATOR=:
13702 fi
13703 rm -f conf$$.sh
13704fi
13705ac_prog=ld
13706if test "$GCC" = yes; then
13707 # Check if gcc -print-prog-name=ld gives a path.
13708 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
13709echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
13710 case $host in
13711 *-*-mingw*)
13712 # gcc leaves a trailing carriage return which upsets mingw
13713 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13714 *)
13715 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13716 esac
13717 case $ac_prog in
13718 # Accept absolute paths.
13719 [\\/]* | [A-Za-z]:[\\/]*)
13720 re_direlt='/[^/][^/]*/\.\./'
13721 # Canonicalize the path of ld
13722 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13723 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13724 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13725 done
13726 test -z "$LD" && LD="$ac_prog"
13727 ;;
13728 "")
13729 # If it fails, then pretend we aren't using GCC.
13730 ac_prog=ld
13731 ;;
13732 *)
13733 # If it is relative, then search for the first ld in PATH.
13734 with_gnu_ld=unknown
13735 ;;
13736 esac
13737elif test "$with_gnu_ld" = yes; then
13738 echo "$as_me:$LINENO: checking for GNU ld" >&5
13739echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
13740else
13741 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13742echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
13743fi
13744if test "${acl_cv_path_LD+set}" = set; then
13745 echo $ECHO_N "(cached) $ECHO_C" >&6
13746else
13747 if test -z "$LD"; then
13748 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13749 for ac_dir in $PATH; do
13750 test -z "$ac_dir" && ac_dir=.
13751 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13752 acl_cv_path_LD="$ac_dir/$ac_prog"
13753 # Check to see if the program is GNU ld. I'd rather use --version,
13754 # but apparently some GNU ld's only accept -v.
13755 # Break only if it was the GNU/non-GNU ld that we prefer.
13756 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
13757 test "$with_gnu_ld" != no && break
13758 else
13759 test "$with_gnu_ld" != yes && break
13760 fi
13761 fi
13762 done
13763 IFS="$ac_save_ifs"
13764else
13765 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13766fi
13767fi
13768
13769LD="$acl_cv_path_LD"
13770if test -n "$LD"; then
13771 echo "$as_me:$LINENO: result: $LD" >&5
13772echo "${ECHO_T}$LD" >&6
13773else
13774 echo "$as_me:$LINENO: result: no" >&5
13775echo "${ECHO_T}no" >&6
13776fi
13777test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13778echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13779 { (exit 1); exit 1; }; }
13780echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13781echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
13782if test "${acl_cv_prog_gnu_ld+set}" = set; then
13783 echo $ECHO_N "(cached) $ECHO_C" >&6
13784else
13785 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13786if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
13787 acl_cv_prog_gnu_ld=yes
13788else
13789 acl_cv_prog_gnu_ld=no
13790fi
13791fi
13792echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
13793echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
13794with_gnu_ld=$acl_cv_prog_gnu_ld
13795
13796
13797
13798 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
13799echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
13800if test "${acl_cv_rpath+set}" = set; then
13801 echo $ECHO_N "(cached) $ECHO_C" >&6
13802else
13803
13804 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13805 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13806 . ./conftest.sh
13807 rm -f ./conftest.sh
13808 acl_cv_rpath=done
13809
13810fi
13811echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
13812echo "${ECHO_T}$acl_cv_rpath" >&6
13813 wl="$acl_cv_wl"
13814 libext="$acl_cv_libext"
13815 shlibext="$acl_cv_shlibext"
13816 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13817 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13818 hardcode_direct="$acl_cv_hardcode_direct"
13819 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13820 # Check whether --enable-rpath or --disable-rpath was given.
13821if test "${enable_rpath+set}" = set; then
13822 enableval="$enable_rpath"
13823 :
13824else
13825 enable_rpath=yes
13826fi;
13827
13828
13829
13830
13831
13832
13833
13834 use_additional=yes
13835
13836 acl_save_prefix="$prefix"
13837 prefix="$acl_final_prefix"
13838 acl_save_exec_prefix="$exec_prefix"
13839 exec_prefix="$acl_final_exec_prefix"
13840
13841 eval additional_includedir=\"$includedir\"
13842 eval additional_libdir=\"$libdir\"
13843
13844 exec_prefix="$acl_save_exec_prefix"
13845 prefix="$acl_save_prefix"
13846
13847
13848# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
13849if test "${with_libiconv_prefix+set}" = set; then
13850 withval="$with_libiconv_prefix"
13851
13852 if test "X$withval" = "Xno"; then
13853 use_additional=no
13854 else
13855 if test "X$withval" = "X"; then
13856
13857 acl_save_prefix="$prefix"
13858 prefix="$acl_final_prefix"
13859 acl_save_exec_prefix="$exec_prefix"
13860 exec_prefix="$acl_final_exec_prefix"
13861
13862 eval additional_includedir=\"$includedir\"
13863 eval additional_libdir=\"$libdir\"
13864
13865 exec_prefix="$acl_save_exec_prefix"
13866 prefix="$acl_save_prefix"
13867
13868 else
13869 additional_includedir="$withval/include"
13870 additional_libdir="$withval/lib"
13871 fi
13872 fi
13873
13874fi;
13875 LIBICONV=
13876 LTLIBICONV=
13877 INCICONV=
13878 rpathdirs=
13879 ltrpathdirs=
13880 names_already_handled=
13881 names_next_round='iconv '
13882 while test -n "$names_next_round"; do
13883 names_this_round="$names_next_round"
13884 names_next_round=
13885 for name in $names_this_round; do
13886 already_handled=
13887 for n in $names_already_handled; do
13888 if test "$n" = "$name"; then
13889 already_handled=yes
13890 break
13891 fi
13892 done
13893 if test -z "$already_handled"; then
13894 names_already_handled="$names_already_handled $name"
13895 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13896 eval value=\"\$HAVE_LIB$uppername\"
13897 if test -n "$value"; then
13898 if test "$value" = yes; then
13899 eval value=\"\$LIB$uppername\"
13900 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13901 eval value=\"\$LTLIB$uppername\"
13902 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13903 else
13904 :
13905 fi
13906 else
13907 found_dir=
13908 found_la=
13909 found_so=
13910 found_a=
13911 if test $use_additional = yes; then
13912 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13913 found_dir="$additional_libdir"
13914 found_so="$additional_libdir/lib$name.$shlibext"
13915 if test -f "$additional_libdir/lib$name.la"; then
13916 found_la="$additional_libdir/lib$name.la"
13917 fi
13918 else
13919 if test -f "$additional_libdir/lib$name.$libext"; then
13920 found_dir="$additional_libdir"
13921 found_a="$additional_libdir/lib$name.$libext"
13922 if test -f "$additional_libdir/lib$name.la"; then
13923 found_la="$additional_libdir/lib$name.la"
13924 fi
13925 fi
13926 fi
13927 fi
13928 if test "X$found_dir" = "X"; then
13929 for x in $LDFLAGS $LTLIBICONV; do
13930
13931 acl_save_prefix="$prefix"
13932 prefix="$acl_final_prefix"
13933 acl_save_exec_prefix="$exec_prefix"
13934 exec_prefix="$acl_final_exec_prefix"
13935 eval x=\"$x\"
13936 exec_prefix="$acl_save_exec_prefix"
13937 prefix="$acl_save_prefix"
13938
13939 case "$x" in
13940 -L*)
13941 dir=`echo "X$x" | sed -e 's/^X-L//'`
13942 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13943 found_dir="$dir"
13944 found_so="$dir/lib$name.$shlibext"
13945 if test -f "$dir/lib$name.la"; then
13946 found_la="$dir/lib$name.la"
13947 fi
13948 else
13949 if test -f "$dir/lib$name.$libext"; then
13950 found_dir="$dir"
13951 found_a="$dir/lib$name.$libext"
13952 if test -f "$dir/lib$name.la"; then
13953 found_la="$dir/lib$name.la"
13954 fi
13955 fi
13956 fi
13957 ;;
13958 esac
13959 if test "X$found_dir" != "X"; then
13960 break
13961 fi
13962 done
13963 fi
13964 if test "X$found_dir" != "X"; then
13965 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13966 if test "X$found_so" != "X"; then
13967 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13968 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13969 else
13970 haveit=
13971 for x in $ltrpathdirs; do
13972 if test "X$x" = "X$found_dir"; then
13973 haveit=yes
13974 break
13975 fi
13976 done
13977 if test -z "$haveit"; then
13978 ltrpathdirs="$ltrpathdirs $found_dir"
13979 fi
13980 if test "$hardcode_direct" = yes; then
13981 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13982 else
13983 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13984 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13985 haveit=
13986 for x in $rpathdirs; do
13987 if test "X$x" = "X$found_dir"; then
13988 haveit=yes
13989 break
13990 fi
13991 done
13992 if test -z "$haveit"; then
13993 rpathdirs="$rpathdirs $found_dir"
13994 fi
13995 else
13996 haveit=
13997 for x in $LDFLAGS $LIBICONV; do
13998
13999 acl_save_prefix="$prefix"
14000 prefix="$acl_final_prefix"
14001 acl_save_exec_prefix="$exec_prefix"
14002 exec_prefix="$acl_final_exec_prefix"
14003 eval x=\"$x\"
14004 exec_prefix="$acl_save_exec_prefix"
14005 prefix="$acl_save_prefix"
14006
14007 if test "X$x" = "X-L$found_dir"; then
14008 haveit=yes
14009 break
14010 fi
14011 done
14012 if test -z "$haveit"; then
14013 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14014 fi
14015 if test "$hardcode_minus_L" != no; then
14016 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14017 else
14018 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14019 fi
14020 fi
14021 fi
14022 fi
14023 else
14024 if test "X$found_a" != "X"; then
14025 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14026 else
14027 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14028 fi
14029 fi
14030 additional_includedir=
14031 case "$found_dir" in
14032 */lib | */lib/)
14033 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14034 additional_includedir="$basedir/include"
14035 ;;
14036 esac
14037 if test "X$additional_includedir" != "X"; then
14038 if test "X$additional_includedir" != "X/usr/include"; then
14039 haveit=
14040 if test "X$additional_includedir" = "X/usr/local/include"; then
14041 if test -n "$GCC"; then
14042 case $host_os in
14043 linux*) haveit=yes;;
14044 esac
14045 fi
14046 fi
14047 if test -z "$haveit"; then
14048 for x in $CPPFLAGS $INCICONV; do
14049
14050 acl_save_prefix="$prefix"
14051 prefix="$acl_final_prefix"
14052 acl_save_exec_prefix="$exec_prefix"
14053 exec_prefix="$acl_final_exec_prefix"
14054 eval x=\"$x\"
14055 exec_prefix="$acl_save_exec_prefix"
14056 prefix="$acl_save_prefix"
14057
14058 if test "X$x" = "X-I$additional_includedir"; then
14059 haveit=yes
14060 break
14061 fi
14062 done
14063 if test -z "$haveit"; then
14064 if test -d "$additional_includedir"; then
14065 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14066 fi
14067 fi
14068 fi
14069 fi
14070 fi
14071 if test -n "$found_la"; then
14072 save_libdir="$libdir"
14073 case "$found_la" in
14074 */* | *\\*) . "$found_la" ;;
14075 *) . "./$found_la" ;;
14076 esac
14077 libdir="$save_libdir"
14078 for dep in $dependency_libs; do
14079 case "$dep" in
14080 -L*)
14081 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14082 if test "X$additional_libdir" != "X/usr/lib"; then
14083 haveit=
14084 if test "X$additional_libdir" = "X/usr/local/lib"; then
14085 if test -n "$GCC"; then
14086 case $host_os in
14087 linux*) haveit=yes;;
14088 esac
14089 fi
14090 fi
14091 if test -z "$haveit"; then
14092 haveit=
14093 for x in $LDFLAGS $LIBICONV; do
14094
14095 acl_save_prefix="$prefix"
14096 prefix="$acl_final_prefix"
14097 acl_save_exec_prefix="$exec_prefix"
14098 exec_prefix="$acl_final_exec_prefix"
14099 eval x=\"$x\"
14100 exec_prefix="$acl_save_exec_prefix"
14101 prefix="$acl_save_prefix"
14102
14103 if test "X$x" = "X-L$additional_libdir"; then
14104 haveit=yes
14105 break
14106 fi
14107 done
14108 if test -z "$haveit"; then
14109 if test -d "$additional_libdir"; then
14110 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14111 fi
14112 fi
14113 haveit=
14114 for x in $LDFLAGS $LTLIBICONV; do
14115
14116 acl_save_prefix="$prefix"
14117 prefix="$acl_final_prefix"
14118 acl_save_exec_prefix="$exec_prefix"
14119 exec_prefix="$acl_final_exec_prefix"
14120 eval x=\"$x\"
14121 exec_prefix="$acl_save_exec_prefix"
14122 prefix="$acl_save_prefix"
14123
14124 if test "X$x" = "X-L$additional_libdir"; then
14125 haveit=yes
14126 break
14127 fi
14128 done
14129 if test -z "$haveit"; then
14130 if test -d "$additional_libdir"; then
14131 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14132 fi
14133 fi
14134 fi
14135 fi
14136 ;;
14137 -R*)
14138 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14139 if test "$enable_rpath" != no; then
14140 haveit=
14141 for x in $rpathdirs; do
14142 if test "X$x" = "X$dir"; then
14143 haveit=yes
14144 break
14145 fi
14146 done
14147 if test -z "$haveit"; then
14148 rpathdirs="$rpathdirs $dir"
14149 fi
14150 haveit=
14151 for x in $ltrpathdirs; do
14152 if test "X$x" = "X$dir"; then
14153 haveit=yes
14154 break
14155 fi
14156 done
14157 if test -z "$haveit"; then
14158 ltrpathdirs="$ltrpathdirs $dir"
14159 fi
14160 fi
14161 ;;
14162 -l*)
14163 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14164 ;;
14165 *.la)
14166 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14167 ;;
14168 *)
14169 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14170 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14171 ;;
14172 esac
14173 done
14174 fi
14175 else
14176 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14177 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14178 fi
14179 fi
14180 fi
14181 done
14182 done
14183 if test "X$rpathdirs" != "X"; then
14184 if test -n "$hardcode_libdir_separator"; then
14185 alldirs=
14186 for found_dir in $rpathdirs; do
14187 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14188 done
14189 acl_save_libdir="$libdir"
14190 libdir="$alldirs"
14191 eval flag=\"$hardcode_libdir_flag_spec\"
14192 libdir="$acl_save_libdir"
14193 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14194 else
14195 for found_dir in $rpathdirs; do
14196 acl_save_libdir="$libdir"
14197 libdir="$found_dir"
14198 eval flag=\"$hardcode_libdir_flag_spec\"
14199 libdir="$acl_save_libdir"
14200 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14201 done
14202 fi
14203 fi
14204 if test "X$ltrpathdirs" != "X"; then
14205 for found_dir in $ltrpathdirs; do
14206 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14207 done
14208 fi
14209
14210
14211
14212
14213
14214
14215
14216 am_save_CPPFLAGS="$CPPFLAGS"
14217
14218 for element in $INCICONV; do
14219 haveit=
14220 for x in $CPPFLAGS; do
14221
14222 acl_save_prefix="$prefix"
14223 prefix="$acl_final_prefix"
14224 acl_save_exec_prefix="$exec_prefix"
14225 exec_prefix="$acl_final_exec_prefix"
14226 eval x=\"$x\"
14227 exec_prefix="$acl_save_exec_prefix"
14228 prefix="$acl_save_prefix"
14229
14230 if test "X$x" = "X$element"; then
14231 haveit=yes
14232 break
14233 fi
14234 done
14235 if test -z "$haveit"; then
14236 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14237 fi
14238 done
14239
14240
14241 echo "$as_me:$LINENO: checking for iconv" >&5
14242echo $ECHO_N "checking for iconv... $ECHO_C" >&6
14243if test "${am_cv_func_iconv+set}" = set; then
14244 echo $ECHO_N "(cached) $ECHO_C" >&6
14245else
14246
14247 am_cv_func_iconv="no, consider installing GNU libiconv"
14248 am_cv_lib_iconv=no
14249 cat >conftest.$ac_ext <<_ACEOF
14250/* confdefs.h. */
14251_ACEOF
14252cat confdefs.h >>conftest.$ac_ext
14253cat >>conftest.$ac_ext <<_ACEOF
14254/* end confdefs.h. */
14255#include <stdlib.h>
14256#include <iconv.h>
14257int
14258main ()
14259{
14260iconv_t cd = iconv_open("","");
14261 iconv(cd,NULL,NULL,NULL,NULL);
14262 iconv_close(cd);
14263 ;
14264 return 0;
14265}
14266_ACEOF
14267rm -f conftest.$ac_objext conftest$ac_exeext
14268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14269 (eval $ac_link) 2>conftest.er1
14270 ac_status=$?
14271 grep -v '^ *+' conftest.er1 >conftest.err
14272 rm -f conftest.er1
14273 cat conftest.err >&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); } &&
14276 { ac_try='test -z "$ac_c_werror_flag"
14277 || test ! -s conftest.err'
14278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14279 (eval $ac_try) 2>&5
14280 ac_status=$?
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); }; } &&
14283 { ac_try='test -s conftest$ac_exeext'
14284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14285 (eval $ac_try) 2>&5
14286 ac_status=$?
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); }; }; then
14289 am_cv_func_iconv=yes
14290else
14291 echo "$as_me: failed program was:" >&5
14292sed 's/^/| /' conftest.$ac_ext >&5
14293
14294fi
14295rm -f conftest.err conftest.$ac_objext \
14296 conftest$ac_exeext conftest.$ac_ext
14297 if test "$am_cv_func_iconv" != yes; then
14298 am_save_LIBS="$LIBS"
14299 LIBS="$LIBS $LIBICONV"
14300 cat >conftest.$ac_ext <<_ACEOF
14301/* confdefs.h. */
14302_ACEOF
14303cat confdefs.h >>conftest.$ac_ext
14304cat >>conftest.$ac_ext <<_ACEOF
14305/* end confdefs.h. */
14306#include <stdlib.h>
14307#include <iconv.h>
14308int
14309main ()
14310{
14311iconv_t cd = iconv_open("","");
14312 iconv(cd,NULL,NULL,NULL,NULL);
14313 iconv_close(cd);
14314 ;
14315 return 0;
14316}
14317_ACEOF
14318rm -f conftest.$ac_objext conftest$ac_exeext
14319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14320 (eval $ac_link) 2>conftest.er1
14321 ac_status=$?
14322 grep -v '^ *+' conftest.er1 >conftest.err
14323 rm -f conftest.er1
14324 cat conftest.err >&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); } &&
14327 { ac_try='test -z "$ac_c_werror_flag"
14328 || test ! -s conftest.err'
14329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14330 (eval $ac_try) 2>&5
14331 ac_status=$?
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); }; } &&
14334 { ac_try='test -s conftest$ac_exeext'
14335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14336 (eval $ac_try) 2>&5
14337 ac_status=$?
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); }; }; then
14340 am_cv_lib_iconv=yes
14341 am_cv_func_iconv=yes
14342else
14343 echo "$as_me: failed program was:" >&5
14344sed 's/^/| /' conftest.$ac_ext >&5
14345
14346fi
14347rm -f conftest.err conftest.$ac_objext \
14348 conftest$ac_exeext conftest.$ac_ext
14349 LIBS="$am_save_LIBS"
14350 fi
14351
14352fi
14353echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
14354echo "${ECHO_T}$am_cv_func_iconv" >&6
14355 if test "$am_cv_func_iconv" = yes; then
14356
14357cat >>confdefs.h <<\_ACEOF
14358#define HAVE_ICONV 1
14359_ACEOF
14360
14361 fi
14362 if test "$am_cv_lib_iconv" = yes; then
14363 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
14364echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
14365 echo "$as_me:$LINENO: result: $LIBICONV" >&5
14366echo "${ECHO_T}$LIBICONV" >&6
14367 else
14368 CPPFLAGS="$am_save_CPPFLAGS"
14369 LIBICONV=
14370 LTLIBICONV=
14371 fi
14372
14373
14374
14375 if test "$am_cv_func_iconv" = yes; then
14376 echo "$as_me:$LINENO: checking for iconv declaration" >&5
14377echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
14378 if test "${am_cv_proto_iconv+set}" = set; then
14379 echo $ECHO_N "(cached) $ECHO_C" >&6
14380else
14381
14382 cat >conftest.$ac_ext <<_ACEOF
14383/* confdefs.h. */
14384_ACEOF
14385cat confdefs.h >>conftest.$ac_ext
14386cat >>conftest.$ac_ext <<_ACEOF
14387/* end confdefs.h. */
14388
14389#include <stdlib.h>
14390#include <iconv.h>
14391extern
14392#ifdef __cplusplus
14393"C"
14394#endif
14395#if defined(__STDC__) || defined(__cplusplus)
14396size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14397#else
14398size_t iconv();
14399#endif
14400
14401int
14402main ()
14403{
14404
14405 ;
14406 return 0;
14407}
14408_ACEOF
14409rm -f conftest.$ac_objext
14410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14411 (eval $ac_compile) 2>conftest.er1
14412 ac_status=$?
14413 grep -v '^ *+' conftest.er1 >conftest.err
14414 rm -f conftest.er1
14415 cat conftest.err >&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); } &&
14418 { ac_try='test -z "$ac_c_werror_flag"
14419 || test ! -s conftest.err'
14420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421 (eval $ac_try) 2>&5
14422 ac_status=$?
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); }; } &&
14425 { ac_try='test -s conftest.$ac_objext'
14426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14427 (eval $ac_try) 2>&5
14428 ac_status=$?
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); }; }; then
14431 am_cv_proto_iconv_arg1=""
14432else
14433 echo "$as_me: failed program was:" >&5
14434sed 's/^/| /' conftest.$ac_ext >&5
14435
14436am_cv_proto_iconv_arg1="const"
14437fi
14438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14439 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
14440fi
14441
14442 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14443 echo "$as_me:$LINENO: result: ${ac_t:-
14444 }$am_cv_proto_iconv" >&5
14445echo "${ECHO_T}${ac_t:-
14446 }$am_cv_proto_iconv" >&6
14447
14448cat >>confdefs.h <<_ACEOF
14449#define ICONV_CONST $am_cv_proto_iconv_arg1
14450_ACEOF
14451
14452 fi
14453
14454
252b5132
RH
14455all_targets=false
14456BUILD_NLMCONV=
14457NLMCONV_DEFS=
14458BUILD_SRCONV=
14459BUILD_DLLTOOL=
14460DLLTOOL_DEFS=
7aad4c3d 14461DLLTOOL_DEFAULT=
252b5132 14462BUILD_WINDRES=
692ed3e7 14463BUILD_WINDMC=
252b5132
RH
14464BUILD_DLLWRAP=
14465BUILD_MISC=
1d97d67f 14466BUILD_INSTALL_MISC=
8b1e6df3 14467OBJDUMP_DEFS=
252b5132
RH
14468
14469for targ in $target $canon_targets
14470do
14471 if test "x$targ" = "xall"; then
14472 all_targets=true
14473 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14474 BUILD_SRCONV='$(SRCONV_PROG)'
14475 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
1d97d67f 14476 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
003bc0ba
NC
14477 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14478 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14479 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14480 if test -z "$DLLTOOL_DEFAULT"; then
14481 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14482 fi
14483 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14484 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
252b5132
RH
14485 else
14486 case $targ in
42ecbf5e 14487 i[3-7]86*-*-netware*)
252b5132
RH
14488 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14489 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
14490 ;;
14491 alpha*-*-netware*)
14492 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14493 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
14494 ;;
14495 powerpc*-*-netware*)
14496 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14497 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
14498 ;;
14499 sparc*-*-netware*)
14500 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14501 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
14502 ;;
14503 esac
14504 case $targ in
14505 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
14506 esac
14507 case $targ in
a8c548cb
NC
14508 arm-epoc-pe*)
14509 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14510 if test -z "$DLLTOOL_DEFAULT"; then
14511 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
14512 fi
a8c548cb
NC
14513 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
14514 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14515 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
a8c548cb 14516 ;;
7148cc28
NC
14517 arm-wince-pe* | arm-*-wince)
14518 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14519 if test -z "$DLLTOOL_DEFAULT"; then
14520 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
14521 fi
7148cc28
NC
14522 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
14523 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14524 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7148cc28
NC
14525 ;;
14526 arm-*-pe*)
252b5132 14527 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14528 if test -z "$DLLTOOL_DEFAULT"; then
14529 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
14530 fi
252b5132
RH
14531 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
14532 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14533 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 14534 ;;
27a710e5 14535 thumb-*-pe*)
252b5132 14536 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14537 if test -z "$DLLTOOL_DEFAULT"; then
14538 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
14539 fi
252b5132
RH
14540 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
14541 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14542 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 14543 ;;
42037fe5 14544 x86_64-*-mingw*)
99ad8390 14545 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14546 if test -z "$DLLTOOL_DEFAULT"; then
14547 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
14548 fi
99ad8390
NC
14549 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
14550 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14551 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
99ad8390
NC
14552 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14553 ;;
80c7c40a 14554 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
252b5132 14555 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14556 if test -z "$DLLTOOL_DEFAULT"; then
14557 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14558 fi
252b5132
RH
14559 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14560 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14561 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
252b5132 14562 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
7a7b06ef 14563 ;;
80c7c40a 14564 i[3-7]86-*-interix)
7a7b06ef 14565 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
7aad4c3d
L
14566 if test -z "$DLLTOOL_DEFAULT"; then
14567 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14568 fi
7a7b06ef
ILT
14569 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14570 ;;
f0660b73
NC
14571 powerpc*-aix5.[01])
14572 ;;
14573 powerpc*-aix5.*)
14574 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
14575 ;;
e1d5b1e7 14576 powerpc*-*-pe* | powerpc*-*-cygwin*)
252b5132 14577 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14578 if test -z "$DLLTOOL_DEFAULT"; then
14579 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
14580 fi
252b5132
RH
14581 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
14582 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14583 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
8a0e0f38 14584 ;;
59678365 14585 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
1d97d67f 14586 BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
669a9a2a 14587 ;;
e1d5b1e7 14588 sh*-*-pe)
8a0e0f38 14589 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14590 if test -z "$DLLTOOL_DEFAULT"; then
14591 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
14592 fi
8a0e0f38
NC
14593 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
14594 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14595 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
8a0e0f38 14596 ;;
cd14b966 14597 spu-*-*)
1d97d67f 14598 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
cd14b966 14599 ;;
e1d5b1e7 14600 mips*-*-pe)
8a0e0f38 14601 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14602 if test -z "$DLLTOOL_DEFAULT"; then
14603 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
14604 fi
8a0e0f38
NC
14605 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
14606 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14607 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 14608 ;;
27a710e5 14609 mcore-*-pe)
661016bb 14610 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14611 if test -z "$DLLTOOL_DEFAULT"; then
14612 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
14613 fi
661016bb
NC
14614 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
14615 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14616 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 14617 ;;
27a710e5 14618 mcore-*-elf)
661016bb 14619 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14620 if test -z "$DLLTOOL_DEFAULT"; then
14621 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
14622 fi
661016bb 14623 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
7a7b06ef 14624 ;;
15ab5209
DB
14625 mep-*)
14626 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
14627 ;;
252b5132
RH
14628 esac
14629 fi
14630done
14631
7aad4c3d
L
14632DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
14633
42ecbf5e
DJ
14634if test "${with_windres+set}" = set; then
14635 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14636fi
14637
692ed3e7
NC
14638if test "${with_windmc+set}" = set; then
14639 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14640fi
14641
14642
42ecbf5e
DJ
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
1d97d67f 14654
42ecbf5e
DJ
14655cat >>confdefs.h <<_ACEOF
14656#define TARGET "${target}"
14657_ACEOF
14658
14659
14660targ=$target
14661. $srcdir/../bfd/config.bfd
14662if test "x$targ_underscore" = "xyes"; then
14663 UNDERSCORE=1
14664else
14665 UNDERSCORE=0
14666fi
14667
14668cat >>confdefs.h <<_ACEOF
14669#define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
14670_ACEOF
14671
14672
14673# Emulation
14674for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
14675do
14676 # Canonicalize the secondary target names.
14677 result=`$ac_config_sub $targ_alias 2>/dev/null`
14678 if test -n "$result"; then
14679 targ=$result
14680 else
14681 targ=$targ_alias
14682 fi
14683
14684 . ${srcdir}/configure.tgt
14685
14686 EMULATION=$targ_emul
14687 EMULATION_VECTOR=$targ_emul_vector
14688done
14689
14690
14691
14692
108a6f8e
CD
14693# Required for html and install-html
14694
14695
14696
14697
42ecbf5e 14698 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
42ecbf5e
DJ
14699cat >confcache <<\_ACEOF
14700# This file is a shell script that caches the results of configure
14701# tests run on this system so they can be shared between configure
14702# scripts and configure runs, see configure's option --config-cache.
14703# It is not useful on other systems. If it contains results you don't
14704# want to keep, you may remove or edit it.
14705#
14706# config.status only pays attention to the cache file if you give it
14707# the --recheck option to rerun configure.
14708#
14709# `ac_cv_env_foo' variables (set or unset) will be overridden when
14710# loading this file, other *unset* `ac_cv_foo' will be assigned the
14711# following values.
14712
14713_ACEOF
14714
14715# The following way of writing the cache mishandles newlines in values,
14716# but we know of no workaround that is simple, portable, and efficient.
14717# So, don't put newlines in cache variables' values.
14718# Ultrix sh set writes to stderr and can't be redirected directly,
14719# and sets the high bit in the cache file unless we assign to the vars.
14720{
14721 (set) 2>&1 |
14722 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14723 *ac_space=\ *)
14724 # `set' does not quote correctly, so add quotes (double-quote
14725 # substitution turns \\\\ into \\, and sed turns \\ into \).
14726 sed -n \
14727 "s/'/'\\\\''/g;
14728 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14729 ;;
14730 *)
14731 # `set' quotes correctly as required by POSIX, so do not add quotes.
14732 sed -n \
14733 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14734 ;;
14735 esac;
14736} |
14737 sed '
14738 t clear
14739 : clear
14740 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14741 t end
14742 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14743 : end' >>confcache
14744if diff $cache_file confcache >/dev/null 2>&1; then :; else
14745 if test -w $cache_file; then
14746 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14747 cat confcache >$cache_file
14748 else
14749 echo "not updating unwritable cache $cache_file"
14750 fi
14751fi
14752rm -f confcache
14753
14754test "x$prefix" = xNONE && prefix=$ac_default_prefix
14755# Let make expand exec_prefix.
14756test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14757
14758# VPATH may cause trouble with some makes, so we remove $(srcdir),
14759# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14760# trailing colons and then remove the whole line if VPATH becomes empty
14761# (actually we leave an empty line to preserve line numbers).
14762if test "x$srcdir" = x.; then
14763 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14764s/:*\$(srcdir):*/:/;
14765s/:*\${srcdir}:*/:/;
14766s/:*@srcdir@:*/:/;
14767s/^\([^=]*=[ ]*\):*/\1/;
14768s/:*$//;
14769s/^[^=]*=[ ]*$//;
14770}'
14771fi
14772
14773DEFS=-DHAVE_CONFIG_H
14774
14775ac_libobjs=
14776ac_ltlibobjs=
14777for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14778 # 1. Remove the extension, and $U if already installed.
14779 ac_i=`echo "$ac_i" |
14780 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14781 # 2. Add them.
14782 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14783 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14784done
14785LIBOBJS=$ac_libobjs
14786
14787LTLIBOBJS=$ac_ltlibobjs
14788
14789
14790if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14791 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14792Usually this means the macro was only invoked conditionally." >&5
14793echo "$as_me: error: conditional \"AMDEP\" was never defined.
14794Usually this means the macro was only invoked conditionally." >&2;}
14795 { (exit 1); exit 1; }; }
14796fi
14797if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14798 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14799Usually this means the macro was only invoked conditionally." >&5
14800echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14801Usually this means the macro was only invoked conditionally." >&2;}
14802 { (exit 1); exit 1; }; }
14803fi
14804if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14805 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14806Usually this means the macro was only invoked conditionally." >&5
14807echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14808Usually this means the macro was only invoked conditionally." >&2;}
14809 { (exit 1); exit 1; }; }
14810fi
d5fbea21
DJ
14811if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
14812 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
14813Usually this means the macro was only invoked conditionally." >&5
14814echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
14815Usually this means the macro was only invoked conditionally." >&2;}
14816 { (exit 1); exit 1; }; }
14817fi
42ecbf5e
DJ
14818
14819: ${CONFIG_STATUS=./config.status}
14820ac_clean_files_save=$ac_clean_files
14821ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14822{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14823echo "$as_me: creating $CONFIG_STATUS" >&6;}
14824cat >$CONFIG_STATUS <<_ACEOF
14825#! $SHELL
14826# Generated by $as_me.
14827# Run this file to recreate the current configuration.
14828# Compiler output produced by configure, useful for debugging
14829# configure, is in config.log if it exists.
14830
14831debug=false
14832ac_cs_recheck=false
14833ac_cs_silent=false
14834SHELL=\${CONFIG_SHELL-$SHELL}
14835_ACEOF
252b5132 14836
42ecbf5e
DJ
14837cat >>$CONFIG_STATUS <<\_ACEOF
14838## --------------------- ##
14839## M4sh Initialization. ##
14840## --------------------- ##
252b5132 14841
42ecbf5e
DJ
14842# Be Bourne compatible
14843if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14844 emulate sh
14845 NULLCMD=:
14846 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14847 # is contrary to our usage. Disable this feature.
14848 alias -g '${1+"$@"}'='"$@"'
14849elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14850 set -o posix
14851fi
14852DUALCASE=1; export DUALCASE # for MKS sh
252b5132 14853
42ecbf5e
DJ
14854# Support unset when possible.
14855if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14856 as_unset=unset
14857else
14858 as_unset=false
14859fi
252b5132
RH
14860
14861
42ecbf5e
DJ
14862# Work around bugs in pre-3.0 UWIN ksh.
14863$as_unset ENV MAIL MAILPATH
14864PS1='$ '
14865PS2='> '
14866PS4='+ '
252b5132 14867
42ecbf5e
DJ
14868# NLS nuisances.
14869for as_var in \
14870 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14871 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14872 LC_TELEPHONE LC_TIME
14873do
14874 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14875 eval $as_var=C; export $as_var
14876 else
14877 $as_unset $as_var
14878 fi
14879done
252b5132 14880
42ecbf5e
DJ
14881# Required to use basename.
14882if expr a : '\(a\)' >/dev/null 2>&1; then
14883 as_expr=expr
14884else
14885 as_expr=false
14886fi
252b5132 14887
42ecbf5e
DJ
14888if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14889 as_basename=basename
14890else
14891 as_basename=false
14892fi
252b5132 14893
8b1e6df3 14894
42ecbf5e
DJ
14895# Name of the executable.
14896as_me=`$as_basename "$0" ||
14897$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14898 X"$0" : 'X\(//\)$' \| \
14899 X"$0" : 'X\(/\)$' \| \
14900 . : '\(.\)' 2>/dev/null ||
14901echo X/"$0" |
14902 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14903 /^X\/\(\/\/\)$/{ s//\1/; q; }
14904 /^X\/\(\/\).*/{ s//\1/; q; }
14905 s/.*/./; q'`
0218d1e4 14906
252b5132 14907
42ecbf5e
DJ
14908# PATH needs CR, and LINENO needs CR and PATH.
14909# Avoid depending upon Character Ranges.
14910as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14911as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14912as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14913as_cr_digits='0123456789'
14914as_cr_alnum=$as_cr_Letters$as_cr_digits
252b5132 14915
42ecbf5e
DJ
14916# The user is always right.
14917if test "${PATH_SEPARATOR+set}" != set; then
14918 echo "#! /bin/sh" >conf$$.sh
14919 echo "exit 0" >>conf$$.sh
14920 chmod +x conf$$.sh
14921 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14922 PATH_SEPARATOR=';'
14923 else
14924 PATH_SEPARATOR=:
14925 fi
14926 rm -f conf$$.sh
252b5132
RH
14927fi
14928
14929
42ecbf5e
DJ
14930 as_lineno_1=$LINENO
14931 as_lineno_2=$LINENO
14932 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14933 test "x$as_lineno_1" != "x$as_lineno_2" &&
14934 test "x$as_lineno_3" = "x$as_lineno_2" || {
14935 # Find who we are. Look in the path if we contain no path at all
14936 # relative or not.
14937 case $0 in
14938 *[\\/]* ) as_myself=$0 ;;
14939 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14940for as_dir in $PATH
eb1e0e80 14941do
42ecbf5e
DJ
14942 IFS=$as_save_IFS
14943 test -z "$as_dir" && as_dir=.
14944 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14945done
eb1e0e80 14946
42ecbf5e
DJ
14947 ;;
14948 esac
14949 # We did not find ourselves, most probably we were run as `sh COMMAND'
14950 # in which case we are not to be found in the path.
14951 if test "x$as_myself" = x; then
14952 as_myself=$0
14953 fi
14954 if test ! -f "$as_myself"; then
14955 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14956echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14957 { (exit 1); exit 1; }; }
14958 fi
14959 case $CONFIG_SHELL in
14960 '')
14961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14962for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14963do
14964 IFS=$as_save_IFS
14965 test -z "$as_dir" && as_dir=.
14966 for as_base in sh bash ksh sh5; do
14967 case $as_dir in
14968 /*)
14969 if ("$as_dir/$as_base" -c '
14970 as_lineno_1=$LINENO
14971 as_lineno_2=$LINENO
14972 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14973 test "x$as_lineno_1" != "x$as_lineno_2" &&
14974 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14975 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14976 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14977 CONFIG_SHELL=$as_dir/$as_base
14978 export CONFIG_SHELL
14979 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14980 fi;;
14981 esac
14982 done
eb1e0e80 14983done
42ecbf5e
DJ
14984;;
14985 esac
eb1e0e80 14986
42ecbf5e
DJ
14987 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14988 # uniformly replaced by the line number. The first 'sed' inserts a
14989 # line-number line before each line; the second 'sed' does the real
14990 # work. The second script uses 'N' to pair each line-number line
14991 # with the numbered line, and appends trailing '-' during
14992 # substitution so that $LINENO is not a special case at line end.
14993 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14994 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14995 sed '=' <$as_myself |
14996 sed '
14997 N
14998 s,$,-,
14999 : loop
15000 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15001 t loop
15002 s,-$,,
15003 s,^['$as_cr_digits']*\n,,
15004 ' >$as_me.lineno &&
15005 chmod +x $as_me.lineno ||
15006 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15007echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15008 { (exit 1); exit 1; }; }
15009
15010 # Don't try to exec as it changes $[0], causing all sort of problems
15011 # (the dirname of $[0] is not the place where we might find the
15012 # original and so on. Autoconf is especially sensible to this).
15013 . ./$as_me.lineno
15014 # Exit status is that of the last command.
15015 exit
15016}
eb1e0e80
NC
15017
15018
42ecbf5e
DJ
15019case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15020 *c*,-n*) ECHO_N= ECHO_C='
15021' ECHO_T=' ' ;;
15022 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15023 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15024esac
eb1e0e80 15025
42ecbf5e
DJ
15026if expr a : '\(a\)' >/dev/null 2>&1; then
15027 as_expr=expr
d15b04bd 15028else
42ecbf5e
DJ
15029 as_expr=false
15030fi
15031
15032rm -f conf$$ conf$$.exe conf$$.file
15033echo >conf$$.file
15034if ln -s conf$$.file conf$$ 2>/dev/null; then
15035 # We could just check for DJGPP; but this test a) works b) is more generic
15036 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15037 if test -f conf$$.exe; then
15038 # Don't use ln at all; we don't have any links
15039 as_ln_s='cp -p'
252b5132 15040 else
42ecbf5e 15041 as_ln_s='ln -s'
252b5132 15042 fi
42ecbf5e
DJ
15043elif ln conf$$.file conf$$ 2>/dev/null; then
15044 as_ln_s=ln
15045else
15046 as_ln_s='cp -p'
252b5132 15047fi
42ecbf5e 15048rm -f conf$$ conf$$.exe conf$$.file
252b5132 15049
42ecbf5e
DJ
15050if mkdir -p . 2>/dev/null; then
15051 as_mkdir_p=:
15052else
15053 test -d ./-p && rmdir ./-p
15054 as_mkdir_p=false
15055fi
d15b04bd 15056
42ecbf5e 15057as_executable_p="test -f"
252b5132 15058
42ecbf5e
DJ
15059# Sed expression to map a string onto a valid CPP name.
15060as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15061
15062# Sed expression to map a string onto a valid variable name.
15063as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15064
15065
15066# IFS
15067# We need space, tab and new line, in precisely that order.
15068as_nl='
15069'
15070IFS=" $as_nl"
15071
15072# CDPATH.
15073$as_unset CDPATH
15074
15075exec 6>&1
15076
15077# Open the log real soon, to keep \$[0] and so on meaningful, and to
15078# report actual input values of CONFIG_FILES etc. instead of their
15079# values after options handling. Logging --version etc. is OK.
15080exec 5>>config.log
15081{
15082 echo
15083 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15084## Running $as_me. ##
15085_ASBOX
15086} >&5
15087cat >&5 <<_CSEOF
15088
15089This file was extended by $as_me, which was
15090generated by GNU Autoconf 2.59. Invocation command line was
15091
15092 CONFIG_FILES = $CONFIG_FILES
15093 CONFIG_HEADERS = $CONFIG_HEADERS
15094 CONFIG_LINKS = $CONFIG_LINKS
15095 CONFIG_COMMANDS = $CONFIG_COMMANDS
15096 $ $0 $@
15097
15098_CSEOF
15099echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15100echo >&5
15101_ACEOF
15102
15103# Files that config.status was made for.
15104if test -n "$ac_config_files"; then
15105 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
252b5132
RH
15106fi
15107
42ecbf5e
DJ
15108if test -n "$ac_config_headers"; then
15109 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15110fi
e5a52504 15111
42ecbf5e
DJ
15112if test -n "$ac_config_links"; then
15113 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15114fi
e5a52504 15115
42ecbf5e
DJ
15116if test -n "$ac_config_commands"; then
15117 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15118fi
d15b04bd 15119
42ecbf5e
DJ
15120cat >>$CONFIG_STATUS <<\_ACEOF
15121
15122ac_cs_usage="\
15123\`$as_me' instantiates files from templates according to the
15124current configuration.
15125
15126Usage: $0 [OPTIONS] [FILE]...
15127
15128 -h, --help print this help, then exit
15129 -V, --version print version number, then exit
15130 -q, --quiet do not print progress messages
15131 -d, --debug don't remove temporary files
15132 --recheck update $as_me by reconfiguring in the same conditions
15133 --file=FILE[:TEMPLATE]
15134 instantiate the configuration file FILE
15135 --header=FILE[:TEMPLATE]
15136 instantiate the configuration header FILE
15137
15138Configuration files:
15139$config_files
15140
15141Configuration headers:
15142$config_headers
15143
15144Configuration commands:
15145$config_commands
15146
15147Report bugs to <bug-autoconf@gnu.org>."
15148_ACEOF
15149
15150cat >>$CONFIG_STATUS <<_ACEOF
15151ac_cs_version="\\
15152config.status
15153configured by $0, generated by GNU Autoconf 2.59,
15154 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15155
15156Copyright (C) 2003 Free Software Foundation, Inc.
15157This config.status script is free software; the Free Software Foundation
15158gives unlimited permission to copy, distribute and modify it."
15159srcdir=$srcdir
15160INSTALL="$INSTALL"
15161_ACEOF
15162
15163cat >>$CONFIG_STATUS <<\_ACEOF
15164# If no file are specified by the user, then we need to provide default
15165# value. By we need to know if files were specified by the user.
15166ac_need_defaults=:
15167while test $# != 0
15168do
15169 case $1 in
15170 --*=*)
15171 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15172 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15173 ac_shift=:
15174 ;;
15175 -*)
15176 ac_option=$1
15177 ac_optarg=$2
15178 ac_shift=shift
15179 ;;
15180 *) # This is not an option, so the user has probably given explicit
15181 # arguments.
15182 ac_option=$1
15183 ac_need_defaults=false;;
15184 esac
15185
15186 case $ac_option in
15187 # Handling of the options.
15188_ACEOF
15189cat >>$CONFIG_STATUS <<\_ACEOF
15190 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15191 ac_cs_recheck=: ;;
15192 --version | --vers* | -V )
15193 echo "$ac_cs_version"; exit 0 ;;
15194 --he | --h)
15195 # Conflict between --help and --header
15196 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15197Try \`$0 --help' for more information." >&5
15198echo "$as_me: error: ambiguous option: $1
15199Try \`$0 --help' for more information." >&2;}
15200 { (exit 1); exit 1; }; };;
15201 --help | --hel | -h )
15202 echo "$ac_cs_usage"; exit 0 ;;
15203 --debug | --d* | -d )
15204 debug=: ;;
15205 --file | --fil | --fi | --f )
15206 $ac_shift
15207 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15208 ac_need_defaults=false;;
15209 --header | --heade | --head | --hea )
15210 $ac_shift
15211 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15212 ac_need_defaults=false;;
15213 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15214 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15215 ac_cs_silent=: ;;
15216
15217 # This is an error.
15218 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15219Try \`$0 --help' for more information." >&5
15220echo "$as_me: error: unrecognized option: $1
15221Try \`$0 --help' for more information." >&2;}
15222 { (exit 1); exit 1; }; } ;;
15223
15224 *) ac_config_targets="$ac_config_targets $1" ;;
15225
15226 esac
15227 shift
15228done
15229
15230ac_configure_extra_args=
15231
15232if $ac_cs_silent; then
15233 exec 6>/dev/null
15234 ac_configure_extra_args="$ac_configure_extra_args --silent"
15235fi
15236
15237_ACEOF
15238cat >>$CONFIG_STATUS <<_ACEOF
15239if \$ac_cs_recheck; then
15240 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15241 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15242fi
15243
15244_ACEOF
15245
15246cat >>$CONFIG_STATUS <<_ACEOF
d15b04bd 15247#
42ecbf5e 15248# INIT-COMMANDS section.
d15b04bd 15249#
e5a52504 15250
42ecbf5e 15251AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
15252
15253
15254# The HP-UX ksh and POSIX shell print the target directory to stdout
15255# if CDPATH is set.
15256(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15257
15258sed_quote_subst='$sed_quote_subst'
15259double_quote_subst='$double_quote_subst'
15260delay_variable_subst='$delay_variable_subst'
15261macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15262macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15263enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15264enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15265pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15266enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15267host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15268host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15269host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15270build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15271build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15272build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15273SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15274Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15275GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15276EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15277FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15278LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15279NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15280LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15281max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15282ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15283exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15284lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15285lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15286lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15287reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15288reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15289deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15290file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15291AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15292AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15293STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15294RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15295old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15296old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15297old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15298CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15299CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15300compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15301GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15302lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15303lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15304lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
15305objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15306SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15307ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15308MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15309lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15310lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15311lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15312lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15313lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15314need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15315libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15316shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15317extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15318archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15319enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15320export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15321whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15322compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15323old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15324old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15325archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15326archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15327module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15328module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15329with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15330allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15331no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15332hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15333hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15334hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15335hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15336hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15337hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15338hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15339hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15340inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15341link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15342fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15343always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15344export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15345exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15346include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15347prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15348file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15349variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15350need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15351need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15352version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15353runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15354shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15355shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15356libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15357library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15358soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15359postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15360postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15361finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15362finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15363hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15364sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15365sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15366hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15367enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15368enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15369enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15370old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15371striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15372
15373LTCC='$LTCC'
15374LTCFLAGS='$LTCFLAGS'
15375compiler='$compiler_DEFAULT'
15376
15377# Quote evaled strings.
15378for var in SED \
15379GREP \
15380EGREP \
15381FGREP \
15382LD \
15383NM \
15384LN_S \
15385lt_SP2NL \
15386lt_NL2SP \
15387reload_flag \
15388deplibs_check_method \
15389file_magic_cmd \
15390AR \
15391AR_FLAGS \
15392STRIP \
15393RANLIB \
15394CC \
15395CFLAGS \
15396compiler \
15397lt_cv_sys_global_symbol_pipe \
15398lt_cv_sys_global_symbol_to_cdecl \
15399lt_cv_sys_global_symbol_to_c_name_address \
15400SHELL \
15401ECHO \
15402lt_prog_compiler_no_builtin_flag \
15403lt_prog_compiler_wl \
15404lt_prog_compiler_pic \
15405lt_prog_compiler_static \
15406lt_cv_prog_compiler_c_o \
15407need_locks \
15408shrext_cmds \
15409export_dynamic_flag_spec \
15410whole_archive_flag_spec \
15411compiler_needs_object \
15412with_gnu_ld \
15413allow_undefined_flag \
15414no_undefined_flag \
15415hardcode_libdir_flag_spec \
15416hardcode_libdir_flag_spec_ld \
15417hardcode_libdir_separator \
15418fix_srcfile_path \
15419exclude_expsyms \
15420include_expsyms \
15421file_list_spec \
15422variables_saved_for_relink \
15423libname_spec \
15424library_names_spec \
15425soname_spec \
15426finish_eval \
15427old_striplib \
15428striplib; do
15429 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15430 *[\\\\\\\`\\"\\\$]*)
15431 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15432 ;;
15433 *)
15434 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15435 ;;
15436 esac
15437done
15438
15439# Double-quote double-evaled strings.
15440for var in reload_cmds \
15441old_postinstall_cmds \
15442old_postuninstall_cmds \
15443old_archive_cmds \
15444extract_expsyms_cmds \
15445old_archive_from_new_cmds \
15446old_archive_from_expsyms_cmds \
15447archive_cmds \
15448archive_expsym_cmds \
15449module_cmds \
15450module_expsym_cmds \
15451export_symbols_cmds \
15452prelink_cmds \
15453postinstall_cmds \
15454postuninstall_cmds \
15455finish_cmds \
15456sys_lib_search_path_spec \
15457sys_lib_dlsearch_path_spec; do
15458 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15459 *[\\\\\\\`\\"\\\$]*)
15460 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15461 ;;
15462 *)
15463 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15464 ;;
15465 esac
15466done
15467
15468# Fix-up fallback echo if it was mangled by the above quoting rules.
15469case \$lt_ECHO in
15470*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15471 ;;
15472esac
15473
15474ac_aux_dir='$ac_aux_dir'
15475xsi_shell='$xsi_shell'
15476lt_shell_append='$lt_shell_append'
15477
15478# See if we are running on zsh, and set the options which allow our
15479# commands through without removal of \ escapes INIT.
15480if test -n "\${ZSH_VERSION+set}" ; then
15481 setopt NO_GLOB_SUBST
15482fi
15483
15484
15485 PACKAGE='$PACKAGE'
15486 VERSION='$VERSION'
15487 TIMESTAMP='$TIMESTAMP'
15488 RM='$RM'
15489 ofile='$ofile'
15490
15491
15492
20e95c23
DJ
15493# Capture the value of obsolete ALL_LINGUAS because we need it to compute
15494 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15495 # from automake.
15496 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15497 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15498 LINGUAS="${LINGUAS-%UNSET%}"
15499
42ecbf5e
DJ
15500
15501_ACEOF
15502
15503
15504
15505cat >>$CONFIG_STATUS <<\_ACEOF
15506for ac_config_target in $ac_config_targets
252b5132 15507do
42ecbf5e
DJ
15508 case "$ac_config_target" in
15509 # Handling of arguments.
15510 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15511 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15512 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15513 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 15514 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 15515 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42ecbf5e
DJ
15516 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15517 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15518echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15519 { (exit 1); exit 1; }; };;
d15b04bd 15520 esac
252b5132
RH
15521done
15522
42ecbf5e
DJ
15523# If the user did not use the arguments to specify the items to instantiate,
15524# then the envvar interface is used. Set only those that are not.
15525# We use the long form for the default assignment because of an extremely
15526# bizarre bug on SunOS 4.1.3.
15527if $ac_need_defaults; then
15528 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15529 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15530 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15531fi
15532
15533# Have a temporary directory for convenience. Make it in the build tree
15534# simply because there is no reason to put it here, and in addition,
15535# creating and moving files from /tmp can sometimes cause problems.
15536# Create a temporary directory, and hook for its removal unless debugging.
15537$debug ||
15538{
15539 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15540 trap '{ (exit 1); exit 1; }' 1 2 13 15
15541}
252b5132 15542
42ecbf5e 15543# Create a (secure) tmp directory for tmp files.
e5a52504 15544
42ecbf5e
DJ
15545{
15546 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15547 test -n "$tmp" && test -d "$tmp"
15548} ||
15549{
15550 tmp=./confstat$$-$RANDOM
15551 (umask 077 && mkdir $tmp)
15552} ||
15553{
15554 echo "$me: cannot create a temporary directory in ." >&2
15555 { (exit 1); exit 1; }
15556}
15557
15558_ACEOF
15559
15560cat >>$CONFIG_STATUS <<_ACEOF
15561
15562#
15563# CONFIG_FILES section.
15564#
e5a52504 15565
42ecbf5e
DJ
15566# No need to generate the scripts if there are no CONFIG_FILES.
15567# This happens for instance when ./config.status config.h
15568if test -n "\$CONFIG_FILES"; then
15569 # Protect against being on the right side of a sed subst in config.status.
15570 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15571 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15572s,@SHELL@,$SHELL,;t t
15573s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15574s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15575s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15576s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15577s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15578s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15579s,@exec_prefix@,$exec_prefix,;t t
15580s,@prefix@,$prefix,;t t
15581s,@program_transform_name@,$program_transform_name,;t t
15582s,@bindir@,$bindir,;t t
15583s,@sbindir@,$sbindir,;t t
15584s,@libexecdir@,$libexecdir,;t t
15585s,@datadir@,$datadir,;t t
15586s,@sysconfdir@,$sysconfdir,;t t
15587s,@sharedstatedir@,$sharedstatedir,;t t
15588s,@localstatedir@,$localstatedir,;t t
15589s,@libdir@,$libdir,;t t
15590s,@includedir@,$includedir,;t t
15591s,@oldincludedir@,$oldincludedir,;t t
15592s,@infodir@,$infodir,;t t
15593s,@mandir@,$mandir,;t t
15594s,@build_alias@,$build_alias,;t t
15595s,@host_alias@,$host_alias,;t t
15596s,@target_alias@,$target_alias,;t t
15597s,@DEFS@,$DEFS,;t t
15598s,@ECHO_C@,$ECHO_C,;t t
15599s,@ECHO_N@,$ECHO_N,;t t
15600s,@ECHO_T@,$ECHO_T,;t t
15601s,@LIBS@,$LIBS,;t t
15602s,@build@,$build,;t t
15603s,@build_cpu@,$build_cpu,;t t
15604s,@build_vendor@,$build_vendor,;t t
15605s,@build_os@,$build_os,;t t
15606s,@host@,$host,;t t
15607s,@host_cpu@,$host_cpu,;t t
15608s,@host_vendor@,$host_vendor,;t t
15609s,@host_os@,$host_os,;t t
15610s,@target@,$target,;t t
15611s,@target_cpu@,$target_cpu,;t t
15612s,@target_vendor@,$target_vendor,;t t
15613s,@target_os@,$target_os,;t t
15614s,@CC@,$CC,;t t
15615s,@CFLAGS@,$CFLAGS,;t t
15616s,@LDFLAGS@,$LDFLAGS,;t t
15617s,@CPPFLAGS@,$CPPFLAGS,;t t
15618s,@ac_ct_CC@,$ac_ct_CC,;t t
15619s,@EXEEXT@,$EXEEXT,;t t
15620s,@OBJEXT@,$OBJEXT,;t t
15621s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15622s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15623s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15624s,@CYGPATH_W@,$CYGPATH_W,;t t
15625s,@PACKAGE@,$PACKAGE,;t t
15626s,@VERSION@,$VERSION,;t t
15627s,@ACLOCAL@,$ACLOCAL,;t t
15628s,@AUTOCONF@,$AUTOCONF,;t t
15629s,@AUTOMAKE@,$AUTOMAKE,;t t
15630s,@AUTOHEADER@,$AUTOHEADER,;t t
15631s,@MAKEINFO@,$MAKEINFO,;t t
15632s,@install_sh@,$install_sh,;t t
15633s,@STRIP@,$STRIP,;t t
15634s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15635s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15636s,@mkdir_p@,$mkdir_p,;t t
15637s,@AWK@,$AWK,;t t
15638s,@SET_MAKE@,$SET_MAKE,;t t
15639s,@am__leading_dot@,$am__leading_dot,;t t
15640s,@AMTAR@,$AMTAR,;t t
15641s,@am__tar@,$am__tar,;t t
15642s,@am__untar@,$am__untar,;t t
15643s,@DEPDIR@,$DEPDIR,;t t
15644s,@am__include@,$am__include,;t t
15645s,@am__quote@,$am__quote,;t t
15646s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15647s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15648s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15649s,@CCDEPMODE@,$CCDEPMODE,;t t
15650s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
15651s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
d7040cdb
SE
15652s,@LIBTOOL@,$LIBTOOL,;t t
15653s,@SED@,$SED,;t t
15654s,@EGREP@,$EGREP,;t t
15655s,@FGREP@,$FGREP,;t t
15656s,@GREP@,$GREP,;t t
15657s,@LD@,$LD,;t t
15658s,@DUMPBIN@,$DUMPBIN,;t t
15659s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
15660s,@NM@,$NM,;t t
42ecbf5e 15661s,@LN_S@,$LN_S,;t t
d7040cdb
SE
15662s,@AR@,$AR,;t t
15663s,@ac_ct_AR@,$ac_ct_AR,;t t
42ecbf5e
DJ
15664s,@RANLIB@,$RANLIB,;t t
15665s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
d7040cdb
SE
15666s,@lt_ECHO@,$lt_ECHO,;t t
15667s,@CPP@,$CPP,;t t
42ecbf5e
DJ
15668s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
15669s,@NO_WERROR@,$NO_WERROR,;t t
15670s,@YACC@,$YACC,;t t
15671s,@LEX@,$LEX,;t t
15672s,@LEXLIB@,$LEXLIB,;t t
15673s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
42ecbf5e 15674s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
15675s,@LIBINTL@,$LIBINTL,;t t
15676s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
15677s,@INCINTL@,$INCINTL,;t t
42ecbf5e 15678s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
15679s,@GMSGFMT@,$GMSGFMT,;t t
15680s,@POSUB@,$POSUB,;t t
42ecbf5e 15681s,@CATALOGS@,$CATALOGS,;t t
42ecbf5e 15682s,@DATADIRNAME@,$DATADIRNAME,;t t
42ecbf5e 15683s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
15684s,@GENCAT@,$GENCAT,;t t
15685s,@CATOBJEXT@,$CATOBJEXT,;t t
42ecbf5e 15686s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
15687s,@MSGFMT@,$MSGFMT,;t t
15688s,@MSGMERGE@,$MSGMERGE,;t t
42ecbf5e
DJ
15689s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15690s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15691s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
15692s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
15693s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
42ecbf5e 15694s,@HDEFINES@,$HDEFINES,;t t
42ecbf5e
DJ
15695s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
15696s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
15697s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t
20e95c23 15698s,@ALLOCA@,$ALLOCA,;t t
5ba684e2
NC
15699s,@LIBICONV@,$LIBICONV,;t t
15700s,@LTLIBICONV@,$LTLIBICONV,;t t
42ecbf5e
DJ
15701s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t
15702s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t
15703s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t
15704s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t
15705s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t
15706s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t
692ed3e7 15707s,@BUILD_WINDMC@,$BUILD_WINDMC,;t t
42ecbf5e
DJ
15708s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t
15709s,@BUILD_MISC@,$BUILD_MISC,;t t
1d97d67f 15710s,@BUILD_INSTALL_MISC@,$BUILD_INSTALL_MISC,;t t
42ecbf5e
DJ
15711s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t
15712s,@EMULATION@,$EMULATION,;t t
15713s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t
108a6f8e
CD
15714s,@datarootdir@,$datarootdir,;t t
15715s,@docdir@,$docdir,;t t
15716s,@htmldir@,$htmldir,;t t
42ecbf5e
DJ
15717s,@LIBOBJS@,$LIBOBJS,;t t
15718s,@LTLIBOBJS@,$LTLIBOBJS,;t t
d15b04bd 15719CEOF
252b5132 15720
42ecbf5e
DJ
15721_ACEOF
15722
15723 cat >>$CONFIG_STATUS <<\_ACEOF
15724 # Split the substitutions into bite-sized pieces for seds with
15725 # small command number limits, like on Digital OSF/1 and HP-UX.
15726 ac_max_sed_lines=48
15727 ac_sed_frag=1 # Number of current file.
15728 ac_beg=1 # First line for current file.
15729 ac_end=$ac_max_sed_lines # Line after last line for current file.
15730 ac_more_lines=:
15731 ac_sed_cmds=
15732 while $ac_more_lines; do
15733 if test $ac_beg -gt 1; then
15734 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15735 else
15736 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15737 fi
15738 if test ! -s $tmp/subs.frag; then
15739 ac_more_lines=false
d15b04bd 15740 else
42ecbf5e
DJ
15741 # The purpose of the label and of the branching condition is to
15742 # speed up the sed processing (if there are no `@' at all, there
15743 # is no need to browse any of the substitutions).
15744 # These are the two extra sed commands mentioned above.
15745 (echo ':t
15746 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15747 if test -z "$ac_sed_cmds"; then
15748 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15749 else
15750 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15751 fi
15752 ac_sed_frag=`expr $ac_sed_frag + 1`
15753 ac_beg=$ac_end
15754 ac_end=`expr $ac_end + $ac_max_sed_lines`
d15b04bd 15755 fi
42ecbf5e
DJ
15756 done
15757 if test -z "$ac_sed_cmds"; then
15758 ac_sed_cmds=cat
252b5132 15759 fi
42ecbf5e 15760fi # test -n "$CONFIG_FILES"
252b5132 15761
42ecbf5e
DJ
15762_ACEOF
15763cat >>$CONFIG_STATUS <<\_ACEOF
15764for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
e5a52504 15765 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
15766 case $ac_file in
15767 - | *:- | *:-:* ) # input from stdin
15768 cat >$tmp/stdin
15769 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15770 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15771 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15772 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15773 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
15774 esac
15775
42ecbf5e
DJ
15776 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15777 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15778$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15779 X"$ac_file" : 'X\(//\)[^/]' \| \
15780 X"$ac_file" : 'X\(//\)$' \| \
15781 X"$ac_file" : 'X\(/\)' \| \
15782 . : '\(.\)' 2>/dev/null ||
15783echo X"$ac_file" |
15784 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15785 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15786 /^X\(\/\/\)$/{ s//\1/; q; }
15787 /^X\(\/\).*/{ s//\1/; q; }
15788 s/.*/./; q'`
15789 { if $as_mkdir_p; then
15790 mkdir -p "$ac_dir"
d15b04bd 15791 else
42ecbf5e
DJ
15792 as_dir="$ac_dir"
15793 as_dirs=
15794 while test ! -d "$as_dir"; do
15795 as_dirs="$as_dir $as_dirs"
15796 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15797$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15798 X"$as_dir" : 'X\(//\)[^/]' \| \
15799 X"$as_dir" : 'X\(//\)$' \| \
15800 X"$as_dir" : 'X\(/\)' \| \
15801 . : '\(.\)' 2>/dev/null ||
15802echo X"$as_dir" |
15803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15804 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15805 /^X\(\/\/\)$/{ s//\1/; q; }
15806 /^X\(\/\).*/{ s//\1/; q; }
15807 s/.*/./; q'`
15808 done
15809 test ! -n "$as_dirs" || mkdir $as_dirs
15810 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15811echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15812 { (exit 1); exit 1; }; }; }
15813
15814 ac_builddir=.
e5a52504 15815
42ecbf5e
DJ
15816if test "$ac_dir" != .; then
15817 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15818 # A "../" for each directory in $ac_dir_suffix.
15819 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15820else
15821 ac_dir_suffix= ac_top_builddir=
15822fi
15823
15824case $srcdir in
15825 .) # No --srcdir option. We are building in place.
15826 ac_srcdir=.
15827 if test -z "$ac_top_builddir"; then
15828 ac_top_srcdir=.
15829 else
15830 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15831 fi ;;
15832 [\\/]* | ?:[\\/]* ) # Absolute path.
15833 ac_srcdir=$srcdir$ac_dir_suffix;
15834 ac_top_srcdir=$srcdir ;;
e5a52504 15835 *) # Relative path.
42ecbf5e
DJ
15836 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15837 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15838esac
252b5132 15839
42ecbf5e
DJ
15840# Do not use `cd foo && pwd` to compute absolute paths, because
15841# the directories may not exist.
15842case `pwd` in
15843.) ac_abs_builddir="$ac_dir";;
15844*)
15845 case "$ac_dir" in
15846 .) ac_abs_builddir=`pwd`;;
15847 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15848 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15849 esac;;
15850esac
15851case $ac_abs_builddir in
15852.) ac_abs_top_builddir=${ac_top_builddir}.;;
15853*)
15854 case ${ac_top_builddir}. in
15855 .) ac_abs_top_builddir=$ac_abs_builddir;;
15856 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15857 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15858 esac;;
15859esac
15860case $ac_abs_builddir in
15861.) ac_abs_srcdir=$ac_srcdir;;
15862*)
15863 case $ac_srcdir in
15864 .) ac_abs_srcdir=$ac_abs_builddir;;
15865 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15866 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15867 esac;;
15868esac
15869case $ac_abs_builddir in
15870.) ac_abs_top_srcdir=$ac_top_srcdir;;
15871*)
15872 case $ac_top_srcdir in
15873 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15874 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15875 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15876 esac;;
15877esac
e5a52504 15878
42ecbf5e
DJ
15879
15880 case $INSTALL in
15881 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15882 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
d15b04bd 15883 esac
e5a52504 15884
b7d4af3a
JW
15885 if test x"$ac_file" != x-; then
15886 { echo "$as_me:$LINENO: creating $ac_file" >&5
15887echo "$as_me: creating $ac_file" >&6;}
15888 rm -f "$ac_file"
15889 fi
42ecbf5e
DJ
15890 # Let's still pretend it is `configure' which instantiates (i.e., don't
15891 # use $as_me), people would be surprised to read:
15892 # /* config.h. Generated by config.status. */
15893 if test x"$ac_file" = x-; then
15894 configure_input=
15895 else
15896 configure_input="$ac_file. "
15897 fi
15898 configure_input=$configure_input"Generated from `echo $ac_file_in |
15899 sed 's,.*/,,'` by configure."
15900
15901 # First look for the input files in the build tree, otherwise in the
15902 # src tree.
15903 ac_file_inputs=`IFS=:
15904 for f in $ac_file_in; do
15905 case $f in
15906 -) echo $tmp/stdin ;;
15907 [\\/$]*)
15908 # Absolute (can't be DOS-style, as IFS=:)
15909 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15910echo "$as_me: error: cannot find input file: $f" >&2;}
15911 { (exit 1); exit 1; }; }
15912 echo "$f";;
15913 *) # Relative
15914 if test -f "$f"; then
15915 # Build tree
15916 echo "$f"
15917 elif test -f "$srcdir/$f"; then
15918 # Source tree
15919 echo "$srcdir/$f"
15920 else
15921 # /dev/null tree
15922 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15923echo "$as_me: error: cannot find input file: $f" >&2;}
15924 { (exit 1); exit 1; }; }
15925 fi;;
15926 esac
15927 done` || { (exit 1); exit 1; }
42ecbf5e
DJ
15928_ACEOF
15929cat >>$CONFIG_STATUS <<_ACEOF
15930 sed "$ac_vpsub
15931$extrasub
15932_ACEOF
15933cat >>$CONFIG_STATUS <<\_ACEOF
15934:t
15935/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15936s,@configure_input@,$configure_input,;t t
15937s,@srcdir@,$ac_srcdir,;t t
15938s,@abs_srcdir@,$ac_abs_srcdir,;t t
15939s,@top_srcdir@,$ac_top_srcdir,;t t
15940s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15941s,@builddir@,$ac_builddir,;t t
15942s,@abs_builddir@,$ac_abs_builddir,;t t
15943s,@top_builddir@,$ac_top_builddir,;t t
15944s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15945s,@INSTALL@,$ac_INSTALL,;t t
15946" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15947 rm -f $tmp/stdin
15948 if test x"$ac_file" != x-; then
15949 mv $tmp/out $ac_file
15950 else
15951 cat $tmp/out
15952 rm -f $tmp/out
15953 fi
15954
15955done
15956_ACEOF
15957cat >>$CONFIG_STATUS <<\_ACEOF
15958
15959#
15960# CONFIG_HEADER section.
15961#
252b5132
RH
15962
15963# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15964# NAME is the cpp macro being defined and VALUE is the value it is being given.
15965#
15966# ac_d sets the value in "#define NAME VALUE" lines.
42ecbf5e
DJ
15967ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15968ac_dB='[ ].*$,\1#\2'
15969ac_dC=' '
15970ac_dD=',;t'
15971# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15972ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15973ac_uB='$,\1#\2define\3'
252b5132 15974ac_uC=' '
42ecbf5e
DJ
15975ac_uD=',;t'
15976
15977for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 15978 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
15979 case $ac_file in
15980 - | *:- | *:-:* ) # input from stdin
15981 cat >$tmp/stdin
15982 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15983 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15984 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15985 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15986 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
15987 esac
15988
42ecbf5e
DJ
15989 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15990echo "$as_me: creating $ac_file" >&6;}
15991
15992 # First look for the input files in the build tree, otherwise in the
15993 # src tree.
15994 ac_file_inputs=`IFS=:
15995 for f in $ac_file_in; do
15996 case $f in
15997 -) echo $tmp/stdin ;;
15998 [\\/$]*)
15999 # Absolute (can't be DOS-style, as IFS=:)
16000 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16001echo "$as_me: error: cannot find input file: $f" >&2;}
16002 { (exit 1); exit 1; }; }
16003 # Do quote $f, to prevent DOS paths from being IFS'd.
16004 echo "$f";;
16005 *) # Relative
16006 if test -f "$f"; then
16007 # Build tree
16008 echo "$f"
16009 elif test -f "$srcdir/$f"; then
16010 # Source tree
16011 echo "$srcdir/$f"
16012 else
16013 # /dev/null tree
16014 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16015echo "$as_me: error: cannot find input file: $f" >&2;}
16016 { (exit 1); exit 1; }; }
16017 fi;;
16018 esac
16019 done` || { (exit 1); exit 1; }
16020 # Remove the trailing spaces.
16021 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16022
16023_ACEOF
16024
16025# Transform confdefs.h into two sed scripts, `conftest.defines' and
16026# `conftest.undefs', that substitutes the proper values into
16027# config.h.in to produce config.h. The first handles `#define'
16028# templates, and the second `#undef' templates.
16029# And first: Protect against being on the right side of a sed subst in
16030# config.status. Protect against being in an unquoted here document
16031# in config.status.
16032rm -f conftest.defines conftest.undefs
16033# Using a here document instead of a string reduces the quoting nightmare.
16034# Putting comments in sed scripts is not portable.
16035#
16036# `end' is used to avoid that the second main sed command (meant for
16037# 0-ary CPP macros) applies to n-ary macro definitions.
16038# See the Autoconf documentation for `clear'.
16039cat >confdef2sed.sed <<\_ACEOF
16040s/[\\&,]/\\&/g
16041s,[\\$`],\\&,g
16042t clear
16043: clear
16044s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16045t end
16046s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16047: end
16048_ACEOF
16049# If some macros were called several times there might be several times
16050# the same #defines, which is useless. Nevertheless, we may not want to
16051# sort them, since we want the *last* AC-DEFINE to be honored.
16052uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16053sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16054rm -f confdef2sed.sed
252b5132
RH
16055
16056# This sed command replaces #undef with comments. This is necessary, for
16057# example, in the case of _POSIX_SOURCE, which is predefined and required
16058# on some systems where configure will not decide to define it.
42ecbf5e
DJ
16059cat >>conftest.undefs <<\_ACEOF
16060s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16061_ACEOF
16062
16063# Break up conftest.defines because some shells have a limit on the size
16064# of here documents, and old seds have small limits too (100 cmds).
16065echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16066echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16067echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16068echo ' :' >>$CONFIG_STATUS
16069rm -f conftest.tail
16070while grep . conftest.defines >/dev/null
16071do
16072 # Write a limited-size here document to $tmp/defines.sed.
16073 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16074 # Speed up: don't consider the non `#define' lines.
16075 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16076 # Work around the forget-to-reset-the-flag bug.
16077 echo 't clr' >>$CONFIG_STATUS
16078 echo ': clr' >>$CONFIG_STATUS
16079 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16080 echo 'CEOF
16081 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16082 rm -f $tmp/in
16083 mv $tmp/out $tmp/in
16084' >>$CONFIG_STATUS
16085 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16086 rm -f conftest.defines
16087 mv conftest.tail conftest.defines
16088done
16089rm -f conftest.defines
16090echo ' fi # grep' >>$CONFIG_STATUS
16091echo >>$CONFIG_STATUS
252b5132 16092
42ecbf5e
DJ
16093# Break up conftest.undefs because some shells have a limit on the size
16094# of here documents, and old seds have small limits too (100 cmds).
16095echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 16096rm -f conftest.tail
42ecbf5e 16097while grep . conftest.undefs >/dev/null
252b5132 16098do
42ecbf5e
DJ
16099 # Write a limited-size here document to $tmp/undefs.sed.
16100 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16101 # Speed up: don't consider the non `#undef'
16102 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16103 # Work around the forget-to-reset-the-flag bug.
16104 echo 't clr' >>$CONFIG_STATUS
16105 echo ': clr' >>$CONFIG_STATUS
16106 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 16107 echo 'CEOF
42ecbf5e
DJ
16108 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16109 rm -f $tmp/in
16110 mv $tmp/out $tmp/in
16111' >>$CONFIG_STATUS
16112 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16113 rm -f conftest.undefs
16114 mv conftest.tail conftest.undefs
252b5132 16115done
42ecbf5e
DJ
16116rm -f conftest.undefs
16117
16118cat >>$CONFIG_STATUS <<\_ACEOF
16119 # Let's still pretend it is `configure' which instantiates (i.e., don't
16120 # use $as_me), people would be surprised to read:
16121 # /* config.h. Generated by config.status. */
16122 if test x"$ac_file" = x-; then
16123 echo "/* Generated by configure. */" >$tmp/config.h
16124 else
16125 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16126 fi
16127 cat $tmp/in >>$tmp/config.h
16128 rm -f $tmp/in
16129 if test x"$ac_file" != x-; then
16130 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16131 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16132echo "$as_me: $ac_file is unchanged" >&6;}
16133 else
16134 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16135$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16136 X"$ac_file" : 'X\(//\)[^/]' \| \
16137 X"$ac_file" : 'X\(//\)$' \| \
16138 X"$ac_file" : 'X\(/\)' \| \
16139 . : '\(.\)' 2>/dev/null ||
16140echo X"$ac_file" |
16141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16142 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16143 /^X\(\/\/\)$/{ s//\1/; q; }
16144 /^X\(\/\).*/{ s//\1/; q; }
16145 s/.*/./; q'`
16146 { if $as_mkdir_p; then
16147 mkdir -p "$ac_dir"
252b5132 16148 else
42ecbf5e
DJ
16149 as_dir="$ac_dir"
16150 as_dirs=
16151 while test ! -d "$as_dir"; do
16152 as_dirs="$as_dir $as_dirs"
16153 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16154$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16155 X"$as_dir" : 'X\(//\)[^/]' \| \
16156 X"$as_dir" : 'X\(//\)$' \| \
16157 X"$as_dir" : 'X\(/\)' \| \
16158 . : '\(.\)' 2>/dev/null ||
16159echo X"$as_dir" |
16160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16161 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16162 /^X\(\/\/\)$/{ s//\1/; q; }
16163 /^X\(\/\).*/{ s//\1/; q; }
16164 s/.*/./; q'`
16165 done
16166 test ! -n "$as_dirs" || mkdir $as_dirs
16167 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16168echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16169 { (exit 1); exit 1; }; }; }
16170
16171 rm -f $ac_file
16172 mv $tmp/config.h $ac_file
252b5132 16173 fi
42ecbf5e
DJ
16174 else
16175 cat $tmp/config.h
16176 rm -f $tmp/config.h
252b5132 16177 fi
42ecbf5e
DJ
16178# Compute $ac_file's index in $config_headers.
16179_am_stamp_count=1
16180for _am_header in $config_headers :; do
16181 case $_am_header in
16182 $ac_file | $ac_file:* )
16183 break ;;
16184 * )
16185 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16186 esac
16187done
16188echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
16189$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16190 X$ac_file : 'X\(//\)[^/]' \| \
16191 X$ac_file : 'X\(//\)$' \| \
16192 X$ac_file : 'X\(/\)' \| \
16193 . : '\(.\)' 2>/dev/null ||
16194echo X$ac_file |
16195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16196 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16197 /^X\(\/\/\)$/{ s//\1/; q; }
16198 /^X\(\/\).*/{ s//\1/; q; }
16199 s/.*/./; q'`/stamp-h$_am_stamp_count
16200done
16201_ACEOF
16202cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 16203
42ecbf5e
DJ
16204#
16205# CONFIG_COMMANDS section.
16206#
16207for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16208 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16209 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16210 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16211$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16212 X"$ac_dest" : 'X\(//\)[^/]' \| \
16213 X"$ac_dest" : 'X\(//\)$' \| \
16214 X"$ac_dest" : 'X\(/\)' \| \
16215 . : '\(.\)' 2>/dev/null ||
16216echo X"$ac_dest" |
16217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16218 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16219 /^X\(\/\/\)$/{ s//\1/; q; }
16220 /^X\(\/\).*/{ s//\1/; q; }
16221 s/.*/./; q'`
16222 { if $as_mkdir_p; then
16223 mkdir -p "$ac_dir"
16224 else
16225 as_dir="$ac_dir"
16226 as_dirs=
16227 while test ! -d "$as_dir"; do
16228 as_dirs="$as_dir $as_dirs"
16229 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16230$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16231 X"$as_dir" : 'X\(//\)[^/]' \| \
16232 X"$as_dir" : 'X\(//\)$' \| \
16233 X"$as_dir" : 'X\(/\)' \| \
16234 . : '\(.\)' 2>/dev/null ||
16235echo X"$as_dir" |
16236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16237 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16238 /^X\(\/\/\)$/{ s//\1/; q; }
16239 /^X\(\/\).*/{ s//\1/; q; }
16240 s/.*/./; q'`
16241 done
16242 test ! -n "$as_dirs" || mkdir $as_dirs
16243 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16244echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16245 { (exit 1); exit 1; }; }; }
252b5132 16246
42ecbf5e 16247 ac_builddir=.
e5a52504 16248
42ecbf5e
DJ
16249if test "$ac_dir" != .; then
16250 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16251 # A "../" for each directory in $ac_dir_suffix.
16252 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16253else
16254 ac_dir_suffix= ac_top_builddir=
16255fi
16256
16257case $srcdir in
16258 .) # No --srcdir option. We are building in place.
16259 ac_srcdir=.
16260 if test -z "$ac_top_builddir"; then
16261 ac_top_srcdir=.
16262 else
16263 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16264 fi ;;
16265 [\\/]* | ?:[\\/]* ) # Absolute path.
16266 ac_srcdir=$srcdir$ac_dir_suffix;
16267 ac_top_srcdir=$srcdir ;;
16268 *) # Relative path.
16269 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16270 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16271esac
16272
16273# Do not use `cd foo && pwd` to compute absolute paths, because
16274# the directories may not exist.
16275case `pwd` in
16276.) ac_abs_builddir="$ac_dir";;
16277*)
16278 case "$ac_dir" in
16279 .) ac_abs_builddir=`pwd`;;
16280 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16281 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16282 esac;;
16283esac
16284case $ac_abs_builddir in
16285.) ac_abs_top_builddir=${ac_top_builddir}.;;
16286*)
16287 case ${ac_top_builddir}. in
16288 .) ac_abs_top_builddir=$ac_abs_builddir;;
16289 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16290 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16291 esac;;
16292esac
16293case $ac_abs_builddir in
16294.) ac_abs_srcdir=$ac_srcdir;;
16295*)
16296 case $ac_srcdir in
16297 .) ac_abs_srcdir=$ac_abs_builddir;;
16298 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16299 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16300 esac;;
16301esac
16302case $ac_abs_builddir in
16303.) ac_abs_top_srcdir=$ac_top_srcdir;;
16304*)
16305 case $ac_top_srcdir in
16306 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16307 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16308 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16309 esac;;
16310esac
e5a52504 16311
42ecbf5e
DJ
16312
16313 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16314echo "$as_me: executing $ac_dest commands" >&6;}
16315 case $ac_dest in
16316 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16317 # Strip MF so we end up with the name of the file.
16318 mf=`echo "$mf" | sed -e 's/:.*$//'`
16319 # Check whether this is an Automake generated Makefile or not.
16320 # We used to match only the files named `Makefile.in', but
16321 # some people rename them; so instead we look at the file content.
16322 # Grep'ing the first line is not enough: some people post-process
16323 # each Makefile.in and add a new line on top of each file to say so.
16324 # So let's grep whole file.
16325 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
16326 dirpart=`(dirname "$mf") 2>/dev/null ||
16327$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16328 X"$mf" : 'X\(//\)[^/]' \| \
16329 X"$mf" : 'X\(//\)$' \| \
16330 X"$mf" : 'X\(/\)' \| \
16331 . : '\(.\)' 2>/dev/null ||
16332echo X"$mf" |
16333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16334 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16335 /^X\(\/\/\)$/{ s//\1/; q; }
16336 /^X\(\/\).*/{ s//\1/; q; }
16337 s/.*/./; q'`
16338 else
16339 continue
16340 fi
16341 # Extract the definition of DEPDIR, am__include, and am__quote
16342 # from the Makefile without running `make'.
16343 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16344 test -z "$DEPDIR" && continue
16345 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16346 test -z "am__include" && continue
16347 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16348 # When using ansi2knr, U may be empty or an underscore; expand it
16349 U=`sed -n 's/^U = //p' < "$mf"`
16350 # Find all dependency output files, they are included files with
16351 # $(DEPDIR) in their names. We invoke sed twice because it is the
16352 # simplest approach to changing $(DEPDIR) to its actual value in the
16353 # expansion.
16354 for file in `sed -n "
16355 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16356 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16357 # Make sure the directory exists.
16358 test -f "$dirpart/$file" && continue
16359 fdir=`(dirname "$file") 2>/dev/null ||
16360$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16361 X"$file" : 'X\(//\)[^/]' \| \
16362 X"$file" : 'X\(//\)$' \| \
16363 X"$file" : 'X\(/\)' \| \
16364 . : '\(.\)' 2>/dev/null ||
16365echo X"$file" |
16366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16367 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16368 /^X\(\/\/\)$/{ s//\1/; q; }
16369 /^X\(\/\).*/{ s//\1/; q; }
16370 s/.*/./; q'`
16371 { if $as_mkdir_p; then
16372 mkdir -p $dirpart/$fdir
16373 else
16374 as_dir=$dirpart/$fdir
16375 as_dirs=
16376 while test ! -d "$as_dir"; do
16377 as_dirs="$as_dir $as_dirs"
16378 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16379$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16380 X"$as_dir" : 'X\(//\)[^/]' \| \
16381 X"$as_dir" : 'X\(//\)$' \| \
16382 X"$as_dir" : 'X\(/\)' \| \
16383 . : '\(.\)' 2>/dev/null ||
16384echo X"$as_dir" |
16385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16386 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16387 /^X\(\/\/\)$/{ s//\1/; q; }
16388 /^X\(\/\).*/{ s//\1/; q; }
16389 s/.*/./; q'`
16390 done
16391 test ! -n "$as_dirs" || mkdir $as_dirs
16392 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
16393echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
16394 { (exit 1); exit 1; }; }; }
16395
16396 # echo "creating $dirpart/$file"
16397 echo '# dummy' > "$dirpart/$file"
16398 done
16399done
d7040cdb
SE
16400 ;;
16401 libtool )
16402
16403 # See if we are running on zsh, and set the options which allow our
16404 # commands through without removal of \ escapes.
16405 if test -n "${ZSH_VERSION+set}" ; then
16406 setopt NO_GLOB_SUBST
16407 fi
16408
16409 cfgfile="${ofile}T"
16410 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16411 $RM "$cfgfile"
16412
16413 cat <<_LT_EOF >> "$cfgfile"
16414#! $SHELL
16415
16416# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16417# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
16418# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16419# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16420#
16421# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16422# 2006, 2007 Free Software Foundation, Inc.
16423#
16424# This file is part of GNU Libtool:
16425# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
16426#
16427# This program is free software; you can redistribute it and/or modify
16428# it under the terms of the GNU General Public License as published by
16429# the Free Software Foundation; either version 2 of the License, or
16430# (at your option) any later version.
16431#
16432# This program is distributed in the hope that it will be useful, but
16433# WITHOUT ANY WARRANTY; without even the implied warranty of
16434# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16435# General Public License for more details.
16436#
16437# You should have received a copy of the GNU General Public License
16438# along with this program; if not, a copy can be downloaded from
16439# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
16440# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16441# MA 02110-1301, USA.
16442#
16443# As a special exception to the GNU General Public License, if you
16444# distribute this file as part of a program that contains a
16445# configuration script generated by Autoconf, you may include it under
16446# the same distribution terms that you use for the rest of that program.
16447
16448
16449# The names of the tagged configurations supported by this script.
16450available_tags=""
16451
16452# ### BEGIN LIBTOOL CONFIG
16453
16454# Which release of libtool.m4 was used?
16455macro_version=$macro_version
16456macro_revision=$macro_revision
16457
16458# Whether or not to build shared libraries.
16459build_libtool_libs=$enable_shared
16460
16461# Whether or not to build static libraries.
16462build_old_libs=$enable_static
16463
16464# What type of objects to build.
16465pic_mode=$pic_mode
16466
16467# Whether or not to optimize for fast installation.
16468fast_install=$enable_fast_install
16469
16470# The host system.
16471host_alias=$host_alias
16472host=$host
16473host_os=$host_os
16474
16475# The build system.
16476build_alias=$build_alias
16477build=$build
16478build_os=$build_os
16479
16480# A sed program that does not truncate output.
16481SED=$lt_SED
16482
16483# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16484Xsed="\$SED -e 1s/^X//"
16485
16486# A grep program that handles long lines.
16487GREP=$lt_GREP
16488
16489# An ERE matcher.
16490EGREP=$lt_EGREP
16491
16492# A literal string matcher.
16493FGREP=$lt_FGREP
16494
16495# A BSD- or MS-compatible name lister.
16496NM=$lt_NM
16497
16498# Whether we need soft or hard links.
16499LN_S=$lt_LN_S
16500
16501# What is the maximum length of a command?
16502max_cmd_len=$max_cmd_len
16503
16504# Object file suffix (normally "o").
16505objext=$ac_objext
16506
16507# Executable file suffix (normally "").
16508exeext=$exeext
16509
16510# whether the shell understands "unset".
16511lt_unset=$lt_unset
16512
16513# turn spaces into newlines.
16514SP2NL=$lt_lt_SP2NL
16515
16516# turn newlines into spaces.
16517NL2SP=$lt_lt_NL2SP
16518
16519# How to create reloadable object files.
16520reload_flag=$lt_reload_flag
16521reload_cmds=$lt_reload_cmds
16522
16523# Method to check whether dependent libraries are shared objects.
16524deplibs_check_method=$lt_deplibs_check_method
16525
16526# Command to use when deplibs_check_method == "file_magic".
16527file_magic_cmd=$lt_file_magic_cmd
16528
16529# The archiver.
16530AR=$lt_AR
16531AR_FLAGS=$lt_AR_FLAGS
16532
16533# A symbol stripping program.
16534STRIP=$lt_STRIP
16535
16536# Commands used to install an old-style archive.
16537RANLIB=$lt_RANLIB
16538old_postinstall_cmds=$lt_old_postinstall_cmds
16539old_postuninstall_cmds=$lt_old_postuninstall_cmds
16540
16541# A C compiler.
16542LTCC=$lt_CC
16543
16544# LTCC compiler flags.
16545LTCFLAGS=$lt_CFLAGS
16546
16547# Take the output of nm and produce a listing of raw symbols and C names.
16548global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16549
16550# Transform the output of nm in a proper C declaration.
16551global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16552
16553# Transform the output of nm in a C name address pair.
16554global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16555
16556# The name of the directory that contains temporary libtool files.
16557objdir=$objdir
16558
16559# Shell to use when invoking shell scripts.
16560SHELL=$lt_SHELL
16561
16562# An echo program that does not interpret backslashes.
16563ECHO=$lt_ECHO
16564
16565# Used to examine libraries when file_magic_cmd begins with "file".
16566MAGIC_CMD=$MAGIC_CMD
16567
16568# Must we lock files when doing compilation?
16569need_locks=$lt_need_locks
16570
16571# Old archive suffix (normally "a").
16572libext=$libext
16573
16574# Shared library suffix (normally ".so").
16575shrext_cmds=$lt_shrext_cmds
16576
16577# The commands to extract the exported symbol list from a shared archive.
16578extract_expsyms_cmds=$lt_extract_expsyms_cmds
16579
16580# Variables whose values should be saved in libtool wrapper scripts and
16581# restored at link time.
16582variables_saved_for_relink=$lt_variables_saved_for_relink
16583
16584# Do we need the "lib" prefix for modules?
16585need_lib_prefix=$need_lib_prefix
16586
16587# Do we need a version for libraries?
16588need_version=$need_version
16589
16590# Library versioning type.
16591version_type=$version_type
16592
16593# Shared library runtime path variable.
16594runpath_var=$runpath_var
16595
16596# Shared library path variable.
16597shlibpath_var=$shlibpath_var
16598
16599# Is shlibpath searched before the hard-coded library search path?
16600shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16601
16602# Format of library name prefix.
16603libname_spec=$lt_libname_spec
16604
16605# List of archive names. First name is the real one, the rest are links.
16606# The last name is the one that the linker finds with -lNAME
16607library_names_spec=$lt_library_names_spec
16608
16609# The coded name of the library, if different from the real name.
16610soname_spec=$lt_soname_spec
16611
16612# Command to use after installation of a shared archive.
16613postinstall_cmds=$lt_postinstall_cmds
16614
16615# Command to use after uninstallation of a shared archive.
16616postuninstall_cmds=$lt_postuninstall_cmds
16617
16618# Commands used to finish a libtool library installation in a directory.
16619finish_cmds=$lt_finish_cmds
16620
16621# As "finish_cmds", except a single script fragment to be evaled but
16622# not shown.
16623finish_eval=$lt_finish_eval
16624
16625# Whether we should hardcode library paths into libraries.
16626hardcode_into_libs=$hardcode_into_libs
16627
16628# Compile-time system search path for libraries.
16629sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16630
16631# Run-time system search path for libraries.
16632sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16633
16634# Whether dlopen is supported.
16635dlopen_support=$enable_dlopen
16636
16637# Whether dlopen of programs is supported.
16638dlopen_self=$enable_dlopen_self
16639
16640# Whether dlopen of statically linked programs is supported.
16641dlopen_self_static=$enable_dlopen_self_static
16642
16643# Commands to strip libraries.
16644old_striplib=$lt_old_striplib
16645striplib=$lt_striplib
16646
16647
16648# The linker used to build libraries.
16649LD=$lt_LD
16650
16651# Commands used to build an old-style archive.
16652old_archive_cmds=$lt_old_archive_cmds
16653
16654# A language specific compiler.
16655CC=$lt_compiler
16656
16657# Is the compiler the GNU compiler?
16658with_gcc=$GCC
16659
16660# Compiler flag to turn off builtin functions.
16661no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16662
16663# How to pass a linker flag through the compiler.
16664wl=$lt_lt_prog_compiler_wl
16665
16666# Additional compiler flags for building library objects.
16667pic_flag=$lt_lt_prog_compiler_pic
16668
16669# Compiler flag to prevent dynamic linking.
16670link_static_flag=$lt_lt_prog_compiler_static
16671
16672# Does compiler simultaneously support -c and -o options?
16673compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16674
16675# Whether or not to add -lc for building shared libraries.
16676build_libtool_need_lc=$archive_cmds_need_lc
16677
16678# Whether or not to disallow shared libs when runtime libs are static.
16679allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16680
16681# Compiler flag to allow reflexive dlopens.
16682export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16683
16684# Compiler flag to generate shared objects directly from archives.
16685whole_archive_flag_spec=$lt_whole_archive_flag_spec
16686
16687# Whether the compiler copes with passing no objects directly.
16688compiler_needs_object=$lt_compiler_needs_object
16689
16690# Create an old-style archive from a shared archive.
16691old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16692
16693# Create a temporary old-style archive to link instead of a shared archive.
16694old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16695
16696# Commands used to build a shared archive.
16697archive_cmds=$lt_archive_cmds
16698archive_expsym_cmds=$lt_archive_expsym_cmds
16699
16700# Commands used to build a loadable module if different from building
16701# a shared archive.
16702module_cmds=$lt_module_cmds
16703module_expsym_cmds=$lt_module_expsym_cmds
16704
16705# Whether we are building with GNU ld or not.
16706with_gnu_ld=$lt_with_gnu_ld
16707
16708# Flag that allows shared libraries with undefined symbols to be built.
16709allow_undefined_flag=$lt_allow_undefined_flag
16710
16711# Flag that enforces no undefined symbols.
16712no_undefined_flag=$lt_no_undefined_flag
16713
16714# Flag to hardcode \$libdir into a binary during linking.
16715# This must work even if \$libdir does not exist
16716hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16717
16718# If ld is used when linking, flag to hardcode \$libdir into a binary
16719# during linking. This must work even if \$libdir does not exist.
16720hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16721
16722# Whether we need a single "-rpath" flag with a separated argument.
16723hardcode_libdir_separator=$lt_hardcode_libdir_separator
16724
16725# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16726# DIR into the resulting binary.
16727hardcode_direct=$hardcode_direct
16728
16729# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16730# DIR into the resulting binary and the resulting library dependency is
16731# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16732# library is relocated.
16733hardcode_direct_absolute=$hardcode_direct_absolute
16734
16735# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16736# into the resulting binary.
16737hardcode_minus_L=$hardcode_minus_L
16738
16739# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16740# into the resulting binary.
16741hardcode_shlibpath_var=$hardcode_shlibpath_var
16742
16743# Set to "yes" if building a shared library automatically hardcodes DIR
16744# into the library and all subsequent libraries and executables linked
16745# against it.
16746hardcode_automatic=$hardcode_automatic
16747
16748# Set to yes if linker adds runtime paths of dependent libraries
16749# to runtime path list.
16750inherit_rpath=$inherit_rpath
16751
16752# Whether libtool must link a program against all its dependency libraries.
16753link_all_deplibs=$link_all_deplibs
16754
16755# Fix the shell variable \$srcfile for the compiler.
16756fix_srcfile_path=$lt_fix_srcfile_path
16757
16758# Set to "yes" if exported symbols are required.
16759always_export_symbols=$always_export_symbols
16760
16761# The commands to list exported symbols.
16762export_symbols_cmds=$lt_export_symbols_cmds
16763
16764# Symbols that should not be listed in the preloaded symbols.
16765exclude_expsyms=$lt_exclude_expsyms
16766
16767# Symbols that must always be exported.
16768include_expsyms=$lt_include_expsyms
16769
16770# Commands necessary for linking programs (against libraries) with templates.
16771prelink_cmds=$lt_prelink_cmds
16772
16773# Specify filename containing input files.
16774file_list_spec=$lt_file_list_spec
16775
16776# How to hardcode a shared library path into an executable.
16777hardcode_action=$hardcode_action
16778
16779# ### END LIBTOOL CONFIG
16780
16781_LT_EOF
16782
16783 case $host_os in
16784 aix3*)
16785 cat <<\_LT_EOF >> "$cfgfile"
16786# AIX sometimes has problems with the GCC collect2 program. For some
16787# reason, if we set the COLLECT_NAMES environment variable, the problems
16788# vanish in a puff of smoke.
16789if test "X${COLLECT_NAMES+set}" != Xset; then
16790 COLLECT_NAMES=
16791 export COLLECT_NAMES
16792fi
16793_LT_EOF
16794 ;;
16795 esac
16796
16797
16798ltmain="$ac_aux_dir/ltmain.sh"
16799
16800
16801 # We use sed instead of cat because bash on DJGPP gets confused if
16802 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16803 # text mode, it properly converts lines to CR/LF. This bash problem
16804 # is reportedly fixed, but why not run on old versions too?
16805 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16806 || (rm -f "$cfgfile"; exit 1)
16807
16808 case $xsi_shell in
16809 yes)
16810 cat << \_LT_EOF >> "$cfgfile"
16811# func_dirname file append nondir_replacement
16812# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16813# otherwise set result to NONDIR_REPLACEMENT.
16814func_dirname ()
16815{
16816 case ${1} in
16817 */*) func_dirname_result="${1%/*}${2}" ;;
16818 * ) func_dirname_result="${3}" ;;
16819 esac
16820}
16821
16822# func_basename file
16823func_basename ()
16824{
16825 func_basename_result="${1##*/}"
16826}
16827
16828# func_stripname prefix suffix name
16829# strip PREFIX and SUFFIX off of NAME.
16830# PREFIX and SUFFIX must not contain globbing or regex special
16831# characters, hashes, percent signs, but SUFFIX may contain a leading
16832# dot (in which case that matches only a dot).
16833func_stripname ()
16834{
16835 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16836 # positional parameters, so assign one to ordinary parameter first.
16837 func_stripname_result=${3}
16838 func_stripname_result=${func_stripname_result#"${1}"}
16839 func_stripname_result=${func_stripname_result%"${2}"}
16840}
16841
16842# func_opt_split
16843func_opt_split ()
16844{
16845 func_opt_split_opt=${1%%=*}
16846 func_opt_split_arg=${1#*=}
16847}
16848
16849# func_lo2o object
16850func_lo2o ()
16851{
16852 case ${1} in
16853 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16854 *) func_lo2o_result=${1} ;;
16855 esac
16856}
16857_LT_EOF
16858 ;;
16859 *) # Bourne compatible functions.
16860 cat << \_LT_EOF >> "$cfgfile"
16861# func_dirname file append nondir_replacement
16862# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16863# otherwise set result to NONDIR_REPLACEMENT.
16864func_dirname ()
16865{
16866 # Extract subdirectory from the argument.
16867 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16868 if test "X$func_dirname_result" = "X${1}"; then
16869 func_dirname_result="${3}"
16870 else
16871 func_dirname_result="$func_dirname_result${2}"
16872 fi
16873}
16874
16875# func_basename file
16876func_basename ()
16877{
16878 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16879}
16880
16881# func_stripname prefix suffix name
16882# strip PREFIX and SUFFIX off of NAME.
16883# PREFIX and SUFFIX must not contain globbing or regex special
16884# characters, hashes, percent signs, but SUFFIX may contain a leading
16885# dot (in which case that matches only a dot).
16886# func_strip_suffix prefix name
16887func_stripname ()
16888{
16889 case ${2} in
16890 .*) func_stripname_result=`$ECHO "X${3}" \
16891 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16892 *) func_stripname_result=`$ECHO "X${3}" \
16893 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16894 esac
16895}
16896
16897# sed scripts:
16898my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16899my_sed_long_arg='1s/^-[^=]*=//'
16900
16901# func_opt_split
16902func_opt_split ()
16903{
16904 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16905 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16906}
16907
16908# func_lo2o object
16909func_lo2o ()
16910{
16911 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16912}
16913_LT_EOF
16914esac
16915
16916case $lt_shell_append in
16917 yes)
16918 cat << \_LT_EOF >> "$cfgfile"
16919
16920# func_append var value
16921# Append VALUE to the end of shell variable VAR.
16922func_append ()
16923{
16924 eval "$1+=\$2"
16925}
16926_LT_EOF
16927 ;;
16928 *)
16929 cat << \_LT_EOF >> "$cfgfile"
16930
16931# func_append var value
16932# Append VALUE to the end of shell variable VAR.
16933func_append ()
16934{
16935 eval "$1=\$$1\$2"
16936}
16937_LT_EOF
16938 ;;
16939 esac
16940
16941
16942 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16943 || (rm -f "$cfgfile"; exit 1)
16944
16945 mv -f "$cfgfile" "$ofile" ||
16946 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16947 chmod +x "$ofile"
16948
42ecbf5e 16949 ;;
20e95c23
DJ
16950 default-1 )
16951 for ac_file in $CONFIG_FILES; do
16952 # Support "outfile[:infile[:infile...]]"
16953 case "$ac_file" in
16954 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16955 esac
16956 # PO directories have a Makefile.in generated from Makefile.in.in.
16957 case "$ac_file" in */Makefile.in)
16958 # Adjust a relative srcdir.
16959 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16960 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16961 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16962 # In autoconf-2.13 it is called $ac_given_srcdir.
16963 # In autoconf-2.50 it is called $srcdir.
16964 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16965 case "$ac_given_srcdir" in
16966 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16967 /*) top_srcdir="$ac_given_srcdir" ;;
16968 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16969 esac
16970 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16971 rm -f "$ac_dir/POTFILES"
16972 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16973 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16974 POMAKEFILEDEPS="POTFILES.in"
16975 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16976 # on $ac_dir but don't depend on user-specified configuration
16977 # parameters.
16978 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16979 # The LINGUAS file contains the set of available languages.
16980 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16981 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16982 fi
16983 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16984 # Hide the ALL_LINGUAS assigment from automake.
16985 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16986 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16987 else
16988 # The set of available languages was given in configure.in.
16989 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16990 fi
16991 case "$ac_given_srcdir" in
16992 .) srcdirpre= ;;
16993 *) srcdirpre='$(srcdir)/' ;;
16994 esac
16995 POFILES=
16996 GMOFILES=
16997 UPDATEPOFILES=
16998 DUMMYPOFILES=
16999 for lang in $ALL_LINGUAS; do
17000 POFILES="$POFILES $srcdirpre$lang.po"
17001 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17002 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17003 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17004 done
17005 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17006 # environment variable.
17007 INST_LINGUAS=
17008 if test -n "$ALL_LINGUAS"; then
17009 for presentlang in $ALL_LINGUAS; do
17010 useit=no
17011 if test "%UNSET%" != "$LINGUAS"; then
17012 desiredlanguages="$LINGUAS"
17013 else
17014 desiredlanguages="$ALL_LINGUAS"
17015 fi
17016 for desiredlang in $desiredlanguages; do
17017 # Use the presentlang catalog if desiredlang is
17018 # a. equal to presentlang, or
17019 # b. a variant of presentlang (because in this case,
17020 # presentlang can be used as a fallback for messages
17021 # which are not translated in the desiredlang catalog).
17022 case "$desiredlang" in
17023 "$presentlang"*) useit=yes;;
17024 esac
17025 done
17026 if test $useit = yes; then
17027 INST_LINGUAS="$INST_LINGUAS $presentlang"
17028 fi
17029 done
17030 fi
17031 CATALOGS=
17032 if test -n "$INST_LINGUAS"; then
17033 for lang in $INST_LINGUAS; do
17034 CATALOGS="$CATALOGS $lang.gmo"
17035 done
17036 fi
17037 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17038 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
17039 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17040 if test -f "$f"; then
17041 case "$f" in
17042 *.orig | *.bak | *~) ;;
17043 *) cat "$f" >> "$ac_dir/Makefile" ;;
17044 esac
17045 fi
17046 done
17047 fi
17048 ;;
17049 esac
17050 done ;;
42ecbf5e
DJ
17051 esac
17052done
17053_ACEOF
e5a52504 17054
42ecbf5e
DJ
17055cat >>$CONFIG_STATUS <<\_ACEOF
17056
17057{ (exit 0); exit 0; }
17058_ACEOF
252b5132 17059chmod +x $CONFIG_STATUS
42ecbf5e
DJ
17060ac_clean_files=$ac_clean_files_save
17061
17062
17063# configure is writing to config.log, and then calls config.status.
17064# config.status does its own redirection, appending to config.log.
17065# Unfortunately, on DOS this fails, as config.log is still kept open
17066# by configure, so config.status won't be able to write to it; its
17067# output is simply discarded. So we exec the FD to /dev/null,
17068# effectively closing config.log, so it can be properly (re)opened and
17069# appended to by config.status. When coming back to configure, we
17070# need to make the FD available again.
17071if test "$no_create" != yes; then
17072 ac_cs_success=:
17073 ac_config_status_args=
17074 test "$silent" = yes &&
17075 ac_config_status_args="$ac_config_status_args --quiet"
17076 exec 5>/dev/null
17077 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17078 exec 5>>config.log
17079 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17080 # would make configure fail if this is the last instruction.
17081 $ac_cs_success || { (exit 1); exit 1; }
17082fi
252b5132 17083
This page took 1.183904 seconds and 4 git commands to generate.