* configure.ac: m4_include config/proginstall.m4.
[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
1423 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1426echo "$as_me: former value: $ac_old_val" >&2;}
1427 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1428echo "$as_me: current value: $ac_new_val" >&2;}
1429 ac_cache_corrupted=:
1430 fi;;
1431 esac
1432 # Pass precious variables to config.status.
1433 if test "$ac_new_set" = set; then
1434 case $ac_new_val in
1435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437 *) ac_arg=$ac_var=$ac_new_val ;;
1438 esac
1439 case " $ac_configure_args " in
1440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1441 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442 esac
1443 fi
1444done
1445if $ac_cache_corrupted; then
1446 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450 { (exit 1); exit 1; }; }
1451fi
1452
1453ac_ext=c
1454ac_cpp='$CPP $CPPFLAGS'
1455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478ac_aux_dir=
1479for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1480 if test -f $ac_dir/install-sh; then
1481 ac_aux_dir=$ac_dir
1482 ac_install_sh="$ac_aux_dir/install-sh -c"
1483 break
1484 elif test -f $ac_dir/install.sh; then
1485 ac_aux_dir=$ac_dir
1486 ac_install_sh="$ac_aux_dir/install.sh -c"
1487 break
1488 elif test -f $ac_dir/shtool; then
1489 ac_aux_dir=$ac_dir
1490 ac_install_sh="$ac_aux_dir/shtool install -c"
1491 break
1492 fi
1493done
1494if test -z "$ac_aux_dir"; then
1495 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1496echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1497 { (exit 1); exit 1; }; }
1498fi
1499ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1500ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1501ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1502
1503# Make sure we can run config.sub.
1504$ac_config_sub sun4 >/dev/null 2>&1 ||
1505 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1506echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1507 { (exit 1); exit 1; }; }
1508
1509echo "$as_me:$LINENO: checking build system type" >&5
1510echo $ECHO_N "checking build system type... $ECHO_C" >&6
1511if test "${ac_cv_build+set}" = set; then
1512 echo $ECHO_N "(cached) $ECHO_C" >&6
1513else
1514 ac_cv_build_alias=$build_alias
1515test -z "$ac_cv_build_alias" &&
1516 ac_cv_build_alias=`$ac_config_guess`
1517test -z "$ac_cv_build_alias" &&
1518 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1519echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1520 { (exit 1); exit 1; }; }
1521ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1522 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1523echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1524 { (exit 1); exit 1; }; }
1525
1526fi
1527echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1528echo "${ECHO_T}$ac_cv_build" >&6
1529build=$ac_cv_build
1530build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1531build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1532build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1533
1534
1535echo "$as_me:$LINENO: checking host system type" >&5
1536echo $ECHO_N "checking host system type... $ECHO_C" >&6
1537if test "${ac_cv_host+set}" = set; then
1538 echo $ECHO_N "(cached) $ECHO_C" >&6
1539else
1540 ac_cv_host_alias=$host_alias
1541test -z "$ac_cv_host_alias" &&
1542 ac_cv_host_alias=$ac_cv_build_alias
1543ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1544 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1545echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1546 { (exit 1); exit 1; }; }
1547
1548fi
1549echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1550echo "${ECHO_T}$ac_cv_host" >&6
1551host=$ac_cv_host
1552host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1553host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1554host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1555
1556
1557echo "$as_me:$LINENO: checking target system type" >&5
1558echo $ECHO_N "checking target system type... $ECHO_C" >&6
1559if test "${ac_cv_target+set}" = set; then
1560 echo $ECHO_N "(cached) $ECHO_C" >&6
1561else
1562 ac_cv_target_alias=$target_alias
1563test "x$ac_cv_target_alias" = "x" &&
1564 ac_cv_target_alias=$ac_cv_host_alias
1565ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1566 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1567echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1568 { (exit 1); exit 1; }; }
1569
1570fi
1571echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1572echo "${ECHO_T}$ac_cv_target" >&6
1573target=$ac_cv_target
1574target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1575target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1576target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1577
1578
1579# The aliases save the names the user supplied, while $host etc.
1580# will get canonicalized.
1581test -n "$target_alias" &&
1582 test "$program_prefix$program_suffix$program_transform_name" = \
1583 NONENONEs,x,x, &&
1584 program_prefix=${target_alias}-
1585ac_ext=c
1586ac_cpp='$CPP $CPPFLAGS'
1587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1589ac_compiler_gnu=$ac_cv_c_compiler_gnu
1590if test -n "$ac_tool_prefix"; then
1591 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1592set dummy ${ac_tool_prefix}gcc; ac_word=$2
1593echo "$as_me:$LINENO: checking for $ac_word" >&5
1594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595if test "${ac_cv_prog_CC+set}" = set; then
1596 echo $ECHO_N "(cached) $ECHO_C" >&6
1597else
1598 if test -n "$CC"; then
1599 ac_cv_prog_CC="$CC" # Let the user override the test.
1600else
1601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602for as_dir in $PATH
1603do
1604 IFS=$as_save_IFS
1605 test -z "$as_dir" && as_dir=.
1606 for ac_exec_ext in '' $ac_executable_extensions; do
1607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1608 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1610 break 2
1611 fi
1612done
1613done
1614
1615fi
1616fi
1617CC=$ac_cv_prog_CC
1618if test -n "$CC"; then
1619 echo "$as_me:$LINENO: result: $CC" >&5
1620echo "${ECHO_T}$CC" >&6
1621else
1622 echo "$as_me:$LINENO: result: no" >&5
1623echo "${ECHO_T}no" >&6
1624fi
1625
1626fi
1627if test -z "$ac_cv_prog_CC"; then
1628 ac_ct_CC=$CC
1629 # Extract the first word of "gcc", so it can be a program name with args.
1630set dummy gcc; ac_word=$2
1631echo "$as_me:$LINENO: checking for $ac_word" >&5
1632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1633if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1634 echo $ECHO_N "(cached) $ECHO_C" >&6
1635else
1636 if test -n "$ac_ct_CC"; then
1637 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1638else
1639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1640for as_dir in $PATH
1641do
1642 IFS=$as_save_IFS
1643 test -z "$as_dir" && as_dir=.
1644 for ac_exec_ext in '' $ac_executable_extensions; do
1645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1646 ac_cv_prog_ac_ct_CC="gcc"
1647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1648 break 2
1649 fi
1650done
1651done
1652
1653fi
1654fi
1655ac_ct_CC=$ac_cv_prog_ac_ct_CC
1656if test -n "$ac_ct_CC"; then
1657 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1658echo "${ECHO_T}$ac_ct_CC" >&6
1659else
1660 echo "$as_me:$LINENO: result: no" >&5
1661echo "${ECHO_T}no" >&6
1662fi
1663
1664 CC=$ac_ct_CC
1665else
1666 CC="$ac_cv_prog_CC"
1667fi
1668
1669if test -z "$CC"; then
1670 if test -n "$ac_tool_prefix"; then
1671 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1672set dummy ${ac_tool_prefix}cc; ac_word=$2
1673echo "$as_me:$LINENO: checking for $ac_word" >&5
1674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1675if test "${ac_cv_prog_CC+set}" = set; then
1676 echo $ECHO_N "(cached) $ECHO_C" >&6
1677else
1678 if test -n "$CC"; then
1679 ac_cv_prog_CC="$CC" # Let the user override the test.
1680else
1681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1682for as_dir in $PATH
1683do
1684 IFS=$as_save_IFS
1685 test -z "$as_dir" && as_dir=.
1686 for ac_exec_ext in '' $ac_executable_extensions; do
1687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1688 ac_cv_prog_CC="${ac_tool_prefix}cc"
1689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1690 break 2
1691 fi
1692done
1693done
1694
1695fi
1696fi
1697CC=$ac_cv_prog_CC
1698if test -n "$CC"; then
1699 echo "$as_me:$LINENO: result: $CC" >&5
1700echo "${ECHO_T}$CC" >&6
1701else
1702 echo "$as_me:$LINENO: result: no" >&5
1703echo "${ECHO_T}no" >&6
1704fi
1705
1706fi
1707if test -z "$ac_cv_prog_CC"; then
1708 ac_ct_CC=$CC
1709 # Extract the first word of "cc", so it can be a program name with args.
1710set dummy cc; ac_word=$2
1711echo "$as_me:$LINENO: checking for $ac_word" >&5
1712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1713if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1714 echo $ECHO_N "(cached) $ECHO_C" >&6
1715else
1716 if test -n "$ac_ct_CC"; then
1717 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1718else
1719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720for as_dir in $PATH
1721do
1722 IFS=$as_save_IFS
1723 test -z "$as_dir" && as_dir=.
1724 for ac_exec_ext in '' $ac_executable_extensions; do
1725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1726 ac_cv_prog_ac_ct_CC="cc"
1727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1728 break 2
1729 fi
1730done
1731done
1732
1733fi
1734fi
1735ac_ct_CC=$ac_cv_prog_ac_ct_CC
1736if test -n "$ac_ct_CC"; then
1737 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1738echo "${ECHO_T}$ac_ct_CC" >&6
1739else
1740 echo "$as_me:$LINENO: result: no" >&5
1741echo "${ECHO_T}no" >&6
1742fi
1743
1744 CC=$ac_ct_CC
1745else
1746 CC="$ac_cv_prog_CC"
1747fi
1748
1749fi
1750if test -z "$CC"; then
1751 # Extract the first word of "cc", so it can be a program name with args.
1752set dummy cc; ac_word=$2
1753echo "$as_me:$LINENO: checking for $ac_word" >&5
1754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1755if test "${ac_cv_prog_CC+set}" = set; then
1756 echo $ECHO_N "(cached) $ECHO_C" >&6
1757else
1758 if test -n "$CC"; then
1759 ac_cv_prog_CC="$CC" # Let the user override the test.
1760else
1761 ac_prog_rejected=no
1762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1763for as_dir in $PATH
1764do
1765 IFS=$as_save_IFS
1766 test -z "$as_dir" && as_dir=.
1767 for ac_exec_ext in '' $ac_executable_extensions; do
1768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1769 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1770 ac_prog_rejected=yes
1771 continue
1772 fi
1773 ac_cv_prog_CC="cc"
1774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1775 break 2
1776 fi
1777done
1778done
1779
1780if test $ac_prog_rejected = yes; then
1781 # We found a bogon in the path, so make sure we never use it.
1782 set dummy $ac_cv_prog_CC
1783 shift
1784 if test $# != 0; then
1785 # We chose a different compiler from the bogus one.
1786 # However, it has the same basename, so the bogon will be chosen
1787 # first if we set CC to just the basename; use the full file name.
1788 shift
1789 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1790 fi
1791fi
1792fi
1793fi
1794CC=$ac_cv_prog_CC
1795if test -n "$CC"; then
1796 echo "$as_me:$LINENO: result: $CC" >&5
1797echo "${ECHO_T}$CC" >&6
1798else
1799 echo "$as_me:$LINENO: result: no" >&5
1800echo "${ECHO_T}no" >&6
1801fi
1802
1803fi
1804if test -z "$CC"; then
1805 if test -n "$ac_tool_prefix"; then
1806 for ac_prog in cl
1807 do
1808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1809set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1810echo "$as_me:$LINENO: checking for $ac_word" >&5
1811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1812if test "${ac_cv_prog_CC+set}" = set; then
1813 echo $ECHO_N "(cached) $ECHO_C" >&6
1814else
1815 if test -n "$CC"; then
1816 ac_cv_prog_CC="$CC" # Let the user override the test.
1817else
1818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1819for as_dir in $PATH
1820do
1821 IFS=$as_save_IFS
1822 test -z "$as_dir" && as_dir=.
1823 for ac_exec_ext in '' $ac_executable_extensions; do
1824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1825 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1827 break 2
1828 fi
1829done
1830done
1831
1832fi
1833fi
1834CC=$ac_cv_prog_CC
1835if test -n "$CC"; then
1836 echo "$as_me:$LINENO: result: $CC" >&5
1837echo "${ECHO_T}$CC" >&6
1838else
1839 echo "$as_me:$LINENO: result: no" >&5
1840echo "${ECHO_T}no" >&6
1841fi
1842
1843 test -n "$CC" && break
1844 done
1845fi
1846if test -z "$CC"; then
1847 ac_ct_CC=$CC
1848 for ac_prog in cl
1849do
1850 # Extract the first word of "$ac_prog", so it can be a program name with args.
1851set dummy $ac_prog; ac_word=$2
1852echo "$as_me:$LINENO: checking for $ac_word" >&5
1853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1854if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1856else
1857 if test -n "$ac_ct_CC"; then
1858 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1859else
1860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861for as_dir in $PATH
1862do
1863 IFS=$as_save_IFS
1864 test -z "$as_dir" && as_dir=.
1865 for ac_exec_ext in '' $ac_executable_extensions; do
1866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867 ac_cv_prog_ac_ct_CC="$ac_prog"
1868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1869 break 2
1870 fi
1871done
1872done
1873
1874fi
1875fi
1876ac_ct_CC=$ac_cv_prog_ac_ct_CC
1877if test -n "$ac_ct_CC"; then
1878 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1879echo "${ECHO_T}$ac_ct_CC" >&6
1880else
1881 echo "$as_me:$LINENO: result: no" >&5
1882echo "${ECHO_T}no" >&6
1883fi
1884
1885 test -n "$ac_ct_CC" && break
1886done
1887
1888 CC=$ac_ct_CC
1889fi
1890
1891fi
1892
1893
1894test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1895See \`config.log' for more details." >&5
1896echo "$as_me: error: no acceptable C compiler found in \$PATH
1897See \`config.log' for more details." >&2;}
1898 { (exit 1); exit 1; }; }
1899
1900# Provide some information about the compiler.
1901echo "$as_me:$LINENO:" \
1902 "checking for C compiler version" >&5
1903ac_compiler=`set X $ac_compile; echo $2`
1904{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1905 (eval $ac_compiler --version </dev/null >&5) 2>&5
1906 ac_status=$?
1907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1908 (exit $ac_status); }
1909{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1910 (eval $ac_compiler -v </dev/null >&5) 2>&5
1911 ac_status=$?
1912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913 (exit $ac_status); }
1914{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1915 (eval $ac_compiler -V </dev/null >&5) 2>&5
1916 ac_status=$?
1917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1918 (exit $ac_status); }
1919
1920cat >conftest.$ac_ext <<_ACEOF
1921/* confdefs.h. */
1922_ACEOF
1923cat confdefs.h >>conftest.$ac_ext
1924cat >>conftest.$ac_ext <<_ACEOF
1925/* end confdefs.h. */
1926
1927int
1928main ()
1929{
1930
1931 ;
1932 return 0;
1933}
1934_ACEOF
1935ac_clean_files_save=$ac_clean_files
1936ac_clean_files="$ac_clean_files a.out a.exe b.out"
1937# Try to create an executable without -o first, disregard a.out.
1938# It will help us diagnose broken compilers, and finding out an intuition
1939# of exeext.
1940echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1941echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1942ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1943if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1944 (eval $ac_link_default) 2>&5
1945 ac_status=$?
1946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947 (exit $ac_status); }; then
1948 # Find the output, starting from the most likely. This scheme is
1949# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1950# resort.
1951
1952# Be careful to initialize this variable, since it used to be cached.
1953# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1954ac_cv_exeext=
1955# b.out is created by i960 compilers.
1956for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1957do
1958 test -f "$ac_file" || continue
1959 case $ac_file in
1960 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1961 ;;
1962 conftest.$ac_ext )
1963 # This is the source file.
1964 ;;
1965 [ab].out )
1966 # We found the default executable, but exeext='' is most
1967 # certainly right.
1968 break;;
1969 *.* )
1970 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1971 # FIXME: I believe we export ac_cv_exeext for Libtool,
1972 # but it would be cool to find out if it's true. Does anybody
1973 # maintain Libtool? --akim.
1974 export ac_cv_exeext
1975 break;;
1976 * )
1977 break;;
1978 esac
1979done
1980else
1981 echo "$as_me: failed program was:" >&5
1982sed 's/^/| /' conftest.$ac_ext >&5
1983
1984{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1985See \`config.log' for more details." >&5
1986echo "$as_me: error: C compiler cannot create executables
1987See \`config.log' for more details." >&2;}
1988 { (exit 77); exit 77; }; }
1989fi
1990
1991ac_exeext=$ac_cv_exeext
1992echo "$as_me:$LINENO: result: $ac_file" >&5
1993echo "${ECHO_T}$ac_file" >&6
1994
1995# Check the compiler produces executables we can run. If not, either
1996# the compiler is broken, or we cross compile.
1997echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1998echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1999# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2000# If not cross compiling, check that we can run a simple program.
2001if test "$cross_compiling" != yes; then
2002 if { ac_try='./$ac_file'
2003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2004 (eval $ac_try) 2>&5
2005 ac_status=$?
2006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007 (exit $ac_status); }; }; then
2008 cross_compiling=no
2009 else
2010 if test "$cross_compiling" = maybe; then
2011 cross_compiling=yes
2012 else
2013 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2014If you meant to cross compile, use \`--host'.
2015See \`config.log' for more details." >&5
2016echo "$as_me: error: cannot run C compiled programs.
2017If you meant to cross compile, use \`--host'.
2018See \`config.log' for more details." >&2;}
2019 { (exit 1); exit 1; }; }
2020 fi
2021 fi
2022fi
2023echo "$as_me:$LINENO: result: yes" >&5
2024echo "${ECHO_T}yes" >&6
2025
2026rm -f a.out a.exe conftest$ac_cv_exeext b.out
2027ac_clean_files=$ac_clean_files_save
2028# Check the compiler produces executables we can run. If not, either
2029# the compiler is broken, or we cross compile.
2030echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2031echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2032echo "$as_me:$LINENO: result: $cross_compiling" >&5
2033echo "${ECHO_T}$cross_compiling" >&6
2034
2035echo "$as_me:$LINENO: checking for suffix of executables" >&5
2036echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2038 (eval $ac_link) 2>&5
2039 ac_status=$?
2040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041 (exit $ac_status); }; then
2042 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2043# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2044# work properly (i.e., refer to `conftest.exe'), while it won't with
2045# `rm'.
2046for ac_file in conftest.exe conftest conftest.*; do
2047 test -f "$ac_file" || continue
2048 case $ac_file in
2049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2050 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2051 export ac_cv_exeext
2052 break;;
2053 * ) break;;
2054 esac
2055done
2056else
2057 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2058See \`config.log' for more details." >&5
2059echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2060See \`config.log' for more details." >&2;}
2061 { (exit 1); exit 1; }; }
2062fi
2063
2064rm -f conftest$ac_cv_exeext
2065echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2066echo "${ECHO_T}$ac_cv_exeext" >&6
2067
2068rm -f conftest.$ac_ext
2069EXEEXT=$ac_cv_exeext
2070ac_exeext=$EXEEXT
2071echo "$as_me:$LINENO: checking for suffix of object files" >&5
2072echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2073if test "${ac_cv_objext+set}" = set; then
2074 echo $ECHO_N "(cached) $ECHO_C" >&6
2075else
2076 cat >conftest.$ac_ext <<_ACEOF
2077/* confdefs.h. */
2078_ACEOF
2079cat confdefs.h >>conftest.$ac_ext
2080cat >>conftest.$ac_ext <<_ACEOF
2081/* end confdefs.h. */
2082
2083int
2084main ()
2085{
2086
2087 ;
2088 return 0;
2089}
2090_ACEOF
2091rm -f conftest.o conftest.obj
2092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2093 (eval $ac_compile) 2>&5
2094 ac_status=$?
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); }; then
2097 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2098 case $ac_file in
2099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2100 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2101 break;;
2102 esac
2103done
2104else
2105 echo "$as_me: failed program was:" >&5
2106sed 's/^/| /' conftest.$ac_ext >&5
2107
2108{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2109See \`config.log' for more details." >&5
2110echo "$as_me: error: cannot compute suffix of object files: cannot compile
2111See \`config.log' for more details." >&2;}
2112 { (exit 1); exit 1; }; }
2113fi
2114
2115rm -f conftest.$ac_cv_objext conftest.$ac_ext
2116fi
2117echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2118echo "${ECHO_T}$ac_cv_objext" >&6
2119OBJEXT=$ac_cv_objext
2120ac_objext=$OBJEXT
2121echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2122echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2123if test "${ac_cv_c_compiler_gnu+set}" = set; then
2124 echo $ECHO_N "(cached) $ECHO_C" >&6
2125else
2126 cat >conftest.$ac_ext <<_ACEOF
2127/* confdefs.h. */
2128_ACEOF
2129cat confdefs.h >>conftest.$ac_ext
2130cat >>conftest.$ac_ext <<_ACEOF
2131/* end confdefs.h. */
2132
2133int
2134main ()
2135{
2136#ifndef __GNUC__
2137 choke me
2138#endif
2139
2140 ;
2141 return 0;
2142}
2143_ACEOF
2144rm -f conftest.$ac_objext
2145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2146 (eval $ac_compile) 2>conftest.er1
2147 ac_status=$?
2148 grep -v '^ *+' conftest.er1 >conftest.err
2149 rm -f conftest.er1
2150 cat conftest.err >&5
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); } &&
b7d4af3a
JW
2153 { ac_try='test -z "$ac_c_werror_flag"
2154 || test ! -s conftest.err'
42ecbf5e
DJ
2155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2156 (eval $ac_try) 2>&5
2157 ac_status=$?
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }; } &&
2160 { ac_try='test -s conftest.$ac_objext'
2161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2162 (eval $ac_try) 2>&5
2163 ac_status=$?
2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); }; }; then
2166 ac_compiler_gnu=yes
2167else
2168 echo "$as_me: failed program was:" >&5
2169sed 's/^/| /' conftest.$ac_ext >&5
2170
2171ac_compiler_gnu=no
2172fi
2173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2174ac_cv_c_compiler_gnu=$ac_compiler_gnu
2175
2176fi
2177echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2178echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2179GCC=`test $ac_compiler_gnu = yes && echo yes`
2180ac_test_CFLAGS=${CFLAGS+set}
2181ac_save_CFLAGS=$CFLAGS
2182CFLAGS="-g"
2183echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2184echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2185if test "${ac_cv_prog_cc_g+set}" = set; then
2186 echo $ECHO_N "(cached) $ECHO_C" >&6
2187else
2188 cat >conftest.$ac_ext <<_ACEOF
2189/* confdefs.h. */
2190_ACEOF
2191cat confdefs.h >>conftest.$ac_ext
2192cat >>conftest.$ac_ext <<_ACEOF
2193/* end confdefs.h. */
2194
2195int
2196main ()
2197{
2198
2199 ;
2200 return 0;
2201}
2202_ACEOF
2203rm -f conftest.$ac_objext
2204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2205 (eval $ac_compile) 2>conftest.er1
2206 ac_status=$?
2207 grep -v '^ *+' conftest.er1 >conftest.err
2208 rm -f conftest.er1
2209 cat conftest.err >&5
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); } &&
b7d4af3a
JW
2212 { ac_try='test -z "$ac_c_werror_flag"
2213 || test ! -s conftest.err'
42ecbf5e
DJ
2214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2215 (eval $ac_try) 2>&5
2216 ac_status=$?
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; } &&
2219 { ac_try='test -s conftest.$ac_objext'
2220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2221 (eval $ac_try) 2>&5
2222 ac_status=$?
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); }; }; then
2225 ac_cv_prog_cc_g=yes
2226else
2227 echo "$as_me: failed program was:" >&5
2228sed 's/^/| /' conftest.$ac_ext >&5
2229
2230ac_cv_prog_cc_g=no
2231fi
2232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2233fi
2234echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2235echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2236if test "$ac_test_CFLAGS" = set; then
2237 CFLAGS=$ac_save_CFLAGS
2238elif test $ac_cv_prog_cc_g = yes; then
2239 if test "$GCC" = yes; then
2240 CFLAGS="-g -O2"
2241 else
2242 CFLAGS="-g"
2243 fi
2244else
2245 if test "$GCC" = yes; then
2246 CFLAGS="-O2"
2247 else
2248 CFLAGS=
2249 fi
2250fi
2251echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2252echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2253if test "${ac_cv_prog_cc_stdc+set}" = set; then
2254 echo $ECHO_N "(cached) $ECHO_C" >&6
2255else
2256 ac_cv_prog_cc_stdc=no
2257ac_save_CC=$CC
2258cat >conftest.$ac_ext <<_ACEOF
2259/* confdefs.h. */
2260_ACEOF
2261cat confdefs.h >>conftest.$ac_ext
2262cat >>conftest.$ac_ext <<_ACEOF
2263/* end confdefs.h. */
2264#include <stdarg.h>
2265#include <stdio.h>
2266#include <sys/types.h>
2267#include <sys/stat.h>
2268/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2269struct buf { int x; };
2270FILE * (*rcsopen) (struct buf *, struct stat *, int);
2271static char *e (p, i)
2272 char **p;
2273 int i;
2274{
2275 return p[i];
2276}
2277static char *f (char * (*g) (char **, int), char **p, ...)
2278{
2279 char *s;
2280 va_list v;
2281 va_start (v,p);
2282 s = g (p, va_arg (v,int));
2283 va_end (v);
2284 return s;
2285}
2286
2287/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2288 function prototypes and stuff, but not '\xHH' hex character constants.
2289 These don't provoke an error unfortunately, instead are silently treated
2290 as 'x'. The following induces an error, until -std1 is added to get
2291 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2292 array size at least. It's necessary to write '\x00'==0 to get something
2293 that's true only with -std1. */
2294int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2295
2296int test (int i, double x);
2297struct s1 {int (*f) (int a);};
2298struct s2 {int (*f) (double a);};
2299int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2300int argc;
2301char **argv;
2302int
2303main ()
2304{
2305return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2306 ;
2307 return 0;
2308}
2309_ACEOF
2310# Don't try gcc -ansi; that turns off useful extensions and
2311# breaks some systems' header files.
2312# AIX -qlanglvl=ansi
2313# Ultrix and OSF/1 -std1
2314# HP-UX 10.20 and later -Ae
2315# HP-UX older versions -Aa -D_HPUX_SOURCE
2316# SVR4 -Xc -D__EXTENSIONS__
2317for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2318do
2319 CC="$ac_save_CC $ac_arg"
2320 rm -f conftest.$ac_objext
2321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322 (eval $ac_compile) 2>conftest.er1
2323 ac_status=$?
2324 grep -v '^ *+' conftest.er1 >conftest.err
2325 rm -f conftest.er1
2326 cat conftest.err >&5
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); } &&
b7d4af3a
JW
2329 { ac_try='test -z "$ac_c_werror_flag"
2330 || test ! -s conftest.err'
42ecbf5e
DJ
2331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2332 (eval $ac_try) 2>&5
2333 ac_status=$?
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }; } &&
2336 { ac_try='test -s conftest.$ac_objext'
2337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338 (eval $ac_try) 2>&5
2339 ac_status=$?
2340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341 (exit $ac_status); }; }; then
2342 ac_cv_prog_cc_stdc=$ac_arg
2343break
2344else
2345 echo "$as_me: failed program was:" >&5
2346sed 's/^/| /' conftest.$ac_ext >&5
2347
2348fi
2349rm -f conftest.err conftest.$ac_objext
2350done
2351rm -f conftest.$ac_ext conftest.$ac_objext
2352CC=$ac_save_CC
2353
2354fi
2355
2356case "x$ac_cv_prog_cc_stdc" in
2357 x|xno)
2358 echo "$as_me:$LINENO: result: none needed" >&5
2359echo "${ECHO_T}none needed" >&6 ;;
2360 *)
2361 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2362echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2363 CC="$CC $ac_cv_prog_cc_stdc" ;;
2364esac
2365
2366# Some people use a C++ compiler to compile C. Since we use `exit',
2367# in C++ we need to declare it. In case someone uses the same compiler
2368# for both compiling C and C++ we need to have the C++ compiler decide
2369# the declaration of exit, since it's the most demanding environment.
2370cat >conftest.$ac_ext <<_ACEOF
2371#ifndef __cplusplus
2372 choke me
2373#endif
2374_ACEOF
2375rm -f conftest.$ac_objext
2376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2377 (eval $ac_compile) 2>conftest.er1
2378 ac_status=$?
2379 grep -v '^ *+' conftest.er1 >conftest.err
2380 rm -f conftest.er1
2381 cat conftest.err >&5
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); } &&
b7d4af3a
JW
2384 { ac_try='test -z "$ac_c_werror_flag"
2385 || test ! -s conftest.err'
42ecbf5e
DJ
2386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387 (eval $ac_try) 2>&5
2388 ac_status=$?
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }; } &&
2391 { ac_try='test -s conftest.$ac_objext'
2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393 (eval $ac_try) 2>&5
2394 ac_status=$?
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; }; then
2397 for ac_declaration in \
2398 '' \
2399 'extern "C" void std::exit (int) throw (); using std::exit;' \
2400 'extern "C" void std::exit (int); using std::exit;' \
2401 'extern "C" void exit (int) throw ();' \
2402 'extern "C" void exit (int);' \
2403 'void exit (int);'
2404do
2405 cat >conftest.$ac_ext <<_ACEOF
2406/* confdefs.h. */
2407_ACEOF
2408cat confdefs.h >>conftest.$ac_ext
2409cat >>conftest.$ac_ext <<_ACEOF
2410/* end confdefs.h. */
2411$ac_declaration
2412#include <stdlib.h>
2413int
2414main ()
2415{
2416exit (42);
2417 ;
2418 return 0;
2419}
2420_ACEOF
2421rm -f conftest.$ac_objext
2422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2423 (eval $ac_compile) 2>conftest.er1
2424 ac_status=$?
2425 grep -v '^ *+' conftest.er1 >conftest.err
2426 rm -f conftest.er1
2427 cat conftest.err >&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); } &&
b7d4af3a
JW
2430 { ac_try='test -z "$ac_c_werror_flag"
2431 || test ! -s conftest.err'
42ecbf5e
DJ
2432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433 (eval $ac_try) 2>&5
2434 ac_status=$?
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }; } &&
2437 { ac_try='test -s conftest.$ac_objext'
2438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439 (eval $ac_try) 2>&5
2440 ac_status=$?
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; }; then
2443 :
2444else
2445 echo "$as_me: failed program was:" >&5
2446sed 's/^/| /' conftest.$ac_ext >&5
2447
2448continue
2449fi
2450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2451 cat >conftest.$ac_ext <<_ACEOF
2452/* confdefs.h. */
2453_ACEOF
2454cat confdefs.h >>conftest.$ac_ext
2455cat >>conftest.$ac_ext <<_ACEOF
2456/* end confdefs.h. */
2457$ac_declaration
2458int
2459main ()
2460{
2461exit (42);
2462 ;
2463 return 0;
2464}
2465_ACEOF
2466rm -f conftest.$ac_objext
2467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2468 (eval $ac_compile) 2>conftest.er1
2469 ac_status=$?
2470 grep -v '^ *+' conftest.er1 >conftest.err
2471 rm -f conftest.er1
2472 cat conftest.err >&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); } &&
b7d4af3a
JW
2475 { ac_try='test -z "$ac_c_werror_flag"
2476 || test ! -s conftest.err'
42ecbf5e
DJ
2477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478 (eval $ac_try) 2>&5
2479 ac_status=$?
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }; } &&
2482 { ac_try='test -s conftest.$ac_objext'
2483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484 (eval $ac_try) 2>&5
2485 ac_status=$?
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; }; then
2488 break
2489else
2490 echo "$as_me: failed program was:" >&5
2491sed 's/^/| /' conftest.$ac_ext >&5
2492
2493fi
2494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2495done
2496rm -f conftest*
2497if test -n "$ac_declaration"; then
2498 echo '#ifdef __cplusplus' >>confdefs.h
2499 echo $ac_declaration >>confdefs.h
2500 echo '#endif' >>confdefs.h
2501fi
2502
2503else
2504 echo "$as_me: failed program was:" >&5
2505sed 's/^/| /' conftest.$ac_ext >&5
2506
2507fi
2508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2509ac_ext=c
2510ac_cpp='$CPP $CPPFLAGS'
2511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2513ac_compiler_gnu=$ac_cv_c_compiler_gnu
2514
2515
2516echo "$as_me:$LINENO: checking for library containing strerror" >&5
2517echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2518if test "${ac_cv_search_strerror+set}" = set; then
2519 echo $ECHO_N "(cached) $ECHO_C" >&6
2520else
2521 ac_func_search_save_LIBS=$LIBS
2522ac_cv_search_strerror=no
2523cat >conftest.$ac_ext <<_ACEOF
2524/* confdefs.h. */
2525_ACEOF
2526cat confdefs.h >>conftest.$ac_ext
2527cat >>conftest.$ac_ext <<_ACEOF
2528/* end confdefs.h. */
2529
2530/* Override any gcc2 internal prototype to avoid an error. */
2531#ifdef __cplusplus
2532extern "C"
2533#endif
2534/* We use char because int might match the return type of a gcc2
2535 builtin and then its argument prototype would still apply. */
2536char strerror ();
2537int
2538main ()
2539{
2540strerror ();
2541 ;
2542 return 0;
2543}
2544_ACEOF
2545rm -f conftest.$ac_objext conftest$ac_exeext
2546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2547 (eval $ac_link) 2>conftest.er1
2548 ac_status=$?
2549 grep -v '^ *+' conftest.er1 >conftest.err
2550 rm -f conftest.er1
2551 cat conftest.err >&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); } &&
b7d4af3a
JW
2554 { ac_try='test -z "$ac_c_werror_flag"
2555 || test ! -s conftest.err'
42ecbf5e
DJ
2556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557 (eval $ac_try) 2>&5
2558 ac_status=$?
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }; } &&
2561 { ac_try='test -s conftest$ac_exeext'
2562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563 (eval $ac_try) 2>&5
2564 ac_status=$?
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; }; then
2567 ac_cv_search_strerror="none required"
2568else
2569 echo "$as_me: failed program was:" >&5
2570sed 's/^/| /' conftest.$ac_ext >&5
2571
2572fi
2573rm -f conftest.err conftest.$ac_objext \
2574 conftest$ac_exeext conftest.$ac_ext
2575if test "$ac_cv_search_strerror" = no; then
2576 for ac_lib in cposix; do
2577 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2578 cat >conftest.$ac_ext <<_ACEOF
2579/* confdefs.h. */
2580_ACEOF
2581cat confdefs.h >>conftest.$ac_ext
2582cat >>conftest.$ac_ext <<_ACEOF
2583/* end confdefs.h. */
2584
2585/* Override any gcc2 internal prototype to avoid an error. */
2586#ifdef __cplusplus
2587extern "C"
2588#endif
2589/* We use char because int might match the return type of a gcc2
2590 builtin and then its argument prototype would still apply. */
2591char strerror ();
2592int
2593main ()
2594{
2595strerror ();
2596 ;
2597 return 0;
2598}
2599_ACEOF
2600rm -f conftest.$ac_objext conftest$ac_exeext
2601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2602 (eval $ac_link) 2>conftest.er1
2603 ac_status=$?
2604 grep -v '^ *+' conftest.er1 >conftest.err
2605 rm -f conftest.er1
2606 cat conftest.err >&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); } &&
b7d4af3a
JW
2609 { ac_try='test -z "$ac_c_werror_flag"
2610 || test ! -s conftest.err'
42ecbf5e
DJ
2611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612 (eval $ac_try) 2>&5
2613 ac_status=$?
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; } &&
2616 { ac_try='test -s conftest$ac_exeext'
2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 (eval $ac_try) 2>&5
2619 ac_status=$?
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; }; then
2622 ac_cv_search_strerror="-l$ac_lib"
2623break
2624else
2625 echo "$as_me: failed program was:" >&5
2626sed 's/^/| /' conftest.$ac_ext >&5
2627
2628fi
2629rm -f conftest.err conftest.$ac_objext \
2630 conftest$ac_exeext conftest.$ac_ext
2631 done
2632fi
2633LIBS=$ac_func_search_save_LIBS
2634fi
2635echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2636echo "${ECHO_T}$ac_cv_search_strerror" >&6
2637if test "$ac_cv_search_strerror" != no; then
2638 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2639
2640fi
2641
2642
2643BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2644am__api_version="1.9"
2645# Find a good install program. We prefer a C program (faster),
2646# so one script is as good as another. But avoid the broken or
2647# incompatible versions:
2648# SysV /etc/install, /usr/sbin/install
2649# SunOS /usr/etc/install
2650# IRIX /sbin/install
2651# AIX /bin/install
2652# AmigaOS /C/install, which installs bootblocks on floppy discs
2653# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2654# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2655# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2656# OS/2's system install, which has a completely different semantic
2657# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2658# Reject install programs that cannot install multiple files.
42ecbf5e
DJ
2659echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2660echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2661if test -z "$INSTALL"; then
2662if test "${ac_cv_path_install+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2664else
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666for as_dir in $PATH
2667do
2668 IFS=$as_save_IFS
2669 test -z "$as_dir" && as_dir=.
2670 # Account for people who put trailing slashes in PATH elements.
2671case $as_dir/ in
2672 ./ | .// | /cC/* | \
2673 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2674 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2675 /usr/ucb/* ) ;;
2676 *)
2677 # OSF1 and SCO ODT 3.0 have their own names for install.
2678 # Don't use installbsd from OSF since it installs stuff as root
2679 # by default.
2680 for ac_prog in ginstall scoinst install; do
2681 for ac_exec_ext in '' $ac_executable_extensions; do
2682 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2683 if test $ac_prog = install &&
2684 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2685 # AIX install. It has an incompatible calling convention.
2686 :
42ecbf5e
DJ
2687 elif test $ac_prog = install &&
2688 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2689 # program-specific install script used by HP pwplus--don't use.
2690 :
252b5132 2691 else
58c85be7
RW
2692 rm -rf conftest.one conftest.two conftest.dir
2693 echo one > conftest.one
2694 echo two > conftest.two
2695 mkdir conftest.dir
2696 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2697 test -s conftest.one && test -s conftest.two &&
2698 test -s conftest.dir/conftest.one &&
2699 test -s conftest.dir/conftest.two
2700 then
2701 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2702 break 3
2703 fi
252b5132
RH
2704 fi
2705 fi
d15b04bd 2706 done
42ecbf5e
DJ
2707 done
2708 ;;
2709esac
2710done
2711
58c85be7 2712rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
2713
2714fi
2715 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 2716 INSTALL=$ac_cv_path_install
252b5132 2717 else
58c85be7
RW
2718 # As a last resort, use the slow shell script. Don't cache a
2719 # value for INSTALL within a source directory, because that will
252b5132 2720 # break other packages using the cache if that directory is
58c85be7 2721 # removed, or if the value is a relative name.
42ecbf5e 2722 INSTALL=$ac_install_sh
252b5132
RH
2723 fi
2724fi
42ecbf5e
DJ
2725echo "$as_me:$LINENO: result: $INSTALL" >&5
2726echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2727
2728# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2729# It thinks the first close brace ends the variable substitution.
2730test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2731
42ecbf5e 2732test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2733
2734test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2735
42ecbf5e
DJ
2736echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2737echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2738# Just in case
2739sleep 1
42ecbf5e 2740echo timestamp > conftest.file
252b5132
RH
2741# Do `set' in a subshell so we don't clobber the current shell's
2742# arguments. Must try -L first in case configure is actually a
2743# symlink; some systems play weird games with the mod time of symlinks
2744# (eg FreeBSD returns the mod time of the symlink's containing
2745# directory).
2746if (
42ecbf5e 2747 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2748 if test "$*" = "X"; then
2749 # -L didn't work.
42ecbf5e 2750 set X `ls -t $srcdir/configure conftest.file`
252b5132 2751 fi
42ecbf5e
DJ
2752 rm -f conftest.file
2753 if test "$*" != "X $srcdir/configure conftest.file" \
2754 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2755
2756 # If neither matched, then we have a broken ls. This can happen
2757 # if, for instance, CONFIG_SHELL is bash and it inherits a
2758 # broken ls alias from the environment. This has actually
2759 # happened. Such a system could not be considered "sane".
42ecbf5e
DJ
2760 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2761alias in your environment" >&5
2762echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2763alias in your environment" >&2;}
2764 { (exit 1); exit 1; }; }
252b5132
RH
2765 fi
2766
42ecbf5e 2767 test "$2" = conftest.file
252b5132
RH
2768 )
2769then
2770 # Ok.
2771 :
2772else
42ecbf5e
DJ
2773 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2774Check your system clock" >&5
2775echo "$as_me: error: newly created file is older than distributed files!
2776Check your system clock" >&2;}
2777 { (exit 1); exit 1; }; }
2778fi
2779echo "$as_me:$LINENO: result: yes" >&5
2780echo "${ECHO_T}yes" >&6
2781test "$program_prefix" != NONE &&
2782 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2783# Use a double $ so make ignores it.
2784test "$program_suffix" != NONE &&
2785 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2786# Double any \ or $. echo might interpret backslashes.
2787# By default was `s,x,x', remove it if useless.
2788cat <<\_ACEOF >conftest.sed
2789s/[\\$]/&&/g;s/;s,x,x,$//
2790_ACEOF
2791program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2792rm conftest.sed
2793
2794# expand $ac_aux_dir to an absolute path
2795am_aux_dir=`cd $ac_aux_dir && pwd`
2796
2797test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2798# Use eval to expand $SHELL
2799if eval "$MISSING --run true"; then
2800 am_missing_run="$MISSING --run "
2801else
2802 am_missing_run=
2803 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2804echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2805fi
2806
2807if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2808 # We used to keeping the `.' as first argument, in order to
2809 # allow $(mkdir_p) to be used without argument. As in
2810 # $(mkdir_p) $(somedir)
2811 # where $(somedir) is conditionally defined. However this is wrong
2812 # for two reasons:
2813 # 1. if the package is installed by a user who cannot write `.'
2814 # make install will fail,
2815 # 2. the above comment should most certainly read
2816 # $(mkdir_p) $(DESTDIR)$(somedir)
2817 # so it does not work when $(somedir) is undefined and
2818 # $(DESTDIR) is not.
2819 # To support the latter case, we have to write
2820 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2821 # so the `.' trick is pointless.
2822 mkdir_p='mkdir -p --'
2823else
2824 # On NextStep and OpenStep, the `mkdir' command does not
2825 # recognize any option. It will interpret all options as
2826 # directories to create, and then abort because `.' already
2827 # exists.
2828 for d in ./-p ./--version;
2829 do
2830 test -d $d && rmdir $d
2831 done
2832 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2833 if test -f "$ac_aux_dir/mkinstalldirs"; then
2834 mkdir_p='$(mkinstalldirs)'
2835 else
2836 mkdir_p='$(install_sh) -d'
2837 fi
2838fi
2839
2840for ac_prog in gawk mawk nawk awk
2841do
2842 # Extract the first word of "$ac_prog", so it can be a program name with args.
2843set dummy $ac_prog; ac_word=$2
2844echo "$as_me:$LINENO: checking for $ac_word" >&5
2845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2846if test "${ac_cv_prog_AWK+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2848else
2849 if test -n "$AWK"; then
2850 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2851else
2852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853for as_dir in $PATH
2854do
2855 IFS=$as_save_IFS
2856 test -z "$as_dir" && as_dir=.
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2859 ac_cv_prog_AWK="$ac_prog"
2860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 break 2
2862 fi
2863done
2864done
2865
2866fi
2867fi
2868AWK=$ac_cv_prog_AWK
2869if test -n "$AWK"; then
2870 echo "$as_me:$LINENO: result: $AWK" >&5
2871echo "${ECHO_T}$AWK" >&6
2872else
2873 echo "$as_me:$LINENO: result: no" >&5
2874echo "${ECHO_T}no" >&6
2875fi
2876
2877 test -n "$AWK" && break
2878done
2879
2880echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2881echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2882set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2883if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2884 echo $ECHO_N "(cached) $ECHO_C" >&6
2885else
2886 cat >conftest.make <<\_ACEOF
2887all:
2888 @echo 'ac_maketemp="$(MAKE)"'
2889_ACEOF
2890# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2891eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2892if test -n "$ac_maketemp"; then
2893 eval ac_cv_prog_make_${ac_make}_set=yes
2894else
2895 eval ac_cv_prog_make_${ac_make}_set=no
2896fi
2897rm -f conftest.make
2898fi
2899if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2900 echo "$as_me:$LINENO: result: yes" >&5
2901echo "${ECHO_T}yes" >&6
2902 SET_MAKE=
2903else
2904 echo "$as_me:$LINENO: result: no" >&5
2905echo "${ECHO_T}no" >&6
2906 SET_MAKE="MAKE=${MAKE-make}"
2907fi
2908
2909rm -rf .tst 2>/dev/null
2910mkdir .tst 2>/dev/null
2911if test -d .tst; then
2912 am__leading_dot=.
2913else
2914 am__leading_dot=_
2915fi
2916rmdir .tst 2>/dev/null
2917
2918DEPDIR="${am__leading_dot}deps"
2919
2920 ac_config_commands="$ac_config_commands depfiles"
2921
2922
2923am_make=${MAKE-make}
2924cat > confinc << 'END'
2925am__doit:
2926 @echo done
2927.PHONY: am__doit
2928END
2929# If we don't find an include directive, just comment out the code.
2930echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2931echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2932am__include="#"
2933am__quote=
2934_am_result=none
2935# First try GNU make style include.
2936echo "include confinc" > confmf
2937# We grep out `Entering directory' and `Leaving directory'
2938# messages which can occur if `w' ends up in MAKEFLAGS.
2939# In particular we don't look at `^make:' because GNU make might
2940# be invoked under some other name (usually "gmake"), in which
2941# case it prints its new name instead of `make'.
2942if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2943 am__include=include
2944 am__quote=
2945 _am_result=GNU
2946fi
2947# Now try BSD make style include.
2948if test "$am__include" = "#"; then
2949 echo '.include "confinc"' > confmf
2950 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2951 am__include=.include
2952 am__quote="\""
2953 _am_result=BSD
2954 fi
2955fi
2956
2957
2958echo "$as_me:$LINENO: result: $_am_result" >&5
2959echo "${ECHO_T}$_am_result" >&6
2960rm -f confinc confmf
2961
2962# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2963if test "${enable_dependency_tracking+set}" = set; then
2964 enableval="$enable_dependency_tracking"
2965
2966fi;
2967if test "x$enable_dependency_tracking" != xno; then
2968 am_depcomp="$ac_aux_dir/depcomp"
2969 AMDEPBACKSLASH='\'
2970fi
2971
2972
2973if test "x$enable_dependency_tracking" != xno; then
2974 AMDEP_TRUE=
2975 AMDEP_FALSE='#'
2976else
2977 AMDEP_TRUE='#'
2978 AMDEP_FALSE=
2979fi
2980
2981
2982
2983# test to see if srcdir already configured
2984if test "`cd $srcdir && pwd`" != "`pwd`" &&
2985 test -f $srcdir/config.status; then
2986 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2987echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2988 { (exit 1); exit 1; }; }
2989fi
2990
2991# test whether we have cygpath
2992if test -z "$CYGPATH_W"; then
2993 if (cygpath --version) >/dev/null 2>/dev/null; then
2994 CYGPATH_W='cygpath -w'
2995 else
2996 CYGPATH_W=echo
2997 fi
2998fi
2999
3000
3001# Define the identity of the package.
3002 PACKAGE=binutils
3003 VERSION=${BFD_VERSION}
3004
3005
3006cat >>confdefs.h <<_ACEOF
3007#define PACKAGE "$PACKAGE"
3008_ACEOF
3009
3010
3011cat >>confdefs.h <<_ACEOF
3012#define VERSION "$VERSION"
3013_ACEOF
3014
3015# Some tools Automake needs.
3016
3017ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3018
3019
3020AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3021
3022
3023AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3024
3025
3026AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3027
3028
3029MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3030
3031install_sh=${install_sh-"$am_aux_dir/install-sh"}
3032
3033# Installed binaries are usually stripped using `strip' when the user
3034# run `make install-strip'. However `strip' might not be the right
3035# tool to use in cross-compilation environments, therefore Automake
3036# will honor the `STRIP' environment variable to overrule this program.
3037if test "$cross_compiling" != no; then
3038 if test -n "$ac_tool_prefix"; then
3039 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3040set dummy ${ac_tool_prefix}strip; ac_word=$2
3041echo "$as_me:$LINENO: checking for $ac_word" >&5
3042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3043if test "${ac_cv_prog_STRIP+set}" = set; then
3044 echo $ECHO_N "(cached) $ECHO_C" >&6
3045else
3046 if test -n "$STRIP"; then
3047 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3048else
3049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050for as_dir in $PATH
3051do
3052 IFS=$as_save_IFS
3053 test -z "$as_dir" && as_dir=.
3054 for ac_exec_ext in '' $ac_executable_extensions; do
3055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3056 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3058 break 2
3059 fi
3060done
3061done
3062
252b5132 3063fi
42ecbf5e
DJ
3064fi
3065STRIP=$ac_cv_prog_STRIP
3066if test -n "$STRIP"; then
3067 echo "$as_me:$LINENO: result: $STRIP" >&5
3068echo "${ECHO_T}$STRIP" >&6
d15b04bd 3069else
42ecbf5e
DJ
3070 echo "$as_me:$LINENO: result: no" >&5
3071echo "${ECHO_T}no" >&6
d15b04bd 3072fi
d15b04bd 3073
42ecbf5e
DJ
3074fi
3075if test -z "$ac_cv_prog_STRIP"; then
3076 ac_ct_STRIP=$STRIP
3077 # Extract the first word of "strip", so it can be a program name with args.
3078set dummy strip; ac_word=$2
3079echo "$as_me:$LINENO: checking for $ac_word" >&5
3080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3081if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3082 echo $ECHO_N "(cached) $ECHO_C" >&6
d15b04bd 3083else
42ecbf5e
DJ
3084 if test -n "$ac_ct_STRIP"; then
3085 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
252b5132 3086else
42ecbf5e
DJ
3087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088for as_dir in $PATH
3089do
3090 IFS=$as_save_IFS
3091 test -z "$as_dir" && as_dir=.
3092 for ac_exec_ext in '' $ac_executable_extensions; do
3093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3094 ac_cv_prog_ac_ct_STRIP="strip"
3095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3096 break 2
3097 fi
3098done
3099done
3100
3101 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
252b5132 3102fi
252b5132 3103fi
42ecbf5e
DJ
3104ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3105if test -n "$ac_ct_STRIP"; then
3106 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3107echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 3108else
42ecbf5e
DJ
3109 echo "$as_me:$LINENO: result: no" >&5
3110echo "${ECHO_T}no" >&6
252b5132
RH
3111fi
3112
42ecbf5e
DJ
3113 STRIP=$ac_ct_STRIP
3114else
3115 STRIP="$ac_cv_prog_STRIP"
3116fi
252b5132 3117
42ecbf5e
DJ
3118fi
3119INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
252b5132 3120
42ecbf5e
DJ
3121# We need awk for the "check" target. The system "awk" is bad on
3122# some platforms.
3123# Always define AMTAR for backward compatibility.
252b5132 3124
42ecbf5e 3125AMTAR=${AMTAR-"${am_missing_run}tar"}
252b5132 3126
42ecbf5e 3127am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
252b5132
RH
3128
3129
3130
252b5132 3131
42ecbf5e
DJ
3132depcc="$CC" am_compiler_list=
3133
3134echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3135echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3136if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3137 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3138else
42ecbf5e
DJ
3139 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3140 # We make a subdir and do the tests there. Otherwise we can end up
3141 # making bogus files that we don't know about and never remove. For
3142 # instance it was reported that on HP-UX the gcc test will end up
3143 # making a dummy file named `D' -- because `-MD' means `put the output
3144 # in D'.
3145 mkdir conftest.dir
3146 # Copy depcomp to subdir because otherwise we won't find it if we're
3147 # using a relative directory.
3148 cp "$am_depcomp" conftest.dir
3149 cd conftest.dir
3150 # We will build objects and dependencies in a subdirectory because
3151 # it helps to detect inapplicable dependency modes. For instance
3152 # both Tru64's cc and ICC support -MD to output dependencies as a
3153 # side effect of compilation, but ICC will put the dependencies in
3154 # the current directory while Tru64 will put them in the object
3155 # directory.
3156 mkdir sub
252b5132 3157
42ecbf5e
DJ
3158 am_cv_CC_dependencies_compiler_type=none
3159 if test "$am_compiler_list" = ""; then
3160 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3161 fi
3162 for depmode in $am_compiler_list; do
3163 # Setup a source with many dependencies, because some compilers
3164 # like to wrap large dependency lists on column 80 (with \), and
3165 # we should not choose a depcomp mode which is confused by this.
3166 #
3167 # We need to recreate these files for each test, as the compiler may
3168 # overwrite some of them when testing with obscure command lines.
3169 # This happens at least with the AIX C compiler.
3170 : > sub/conftest.c
3171 for i in 1 2 3 4 5 6; do
3172 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3173 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3174 # Solaris 8's {/usr,}/bin/sh.
3175 touch sub/conftst$i.h
3176 done
3177 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3178
3179 case $depmode in
3180 nosideeffect)
3181 # after this tag, mechanisms are not by side-effect, so they'll
3182 # only be used when explicitly requested
3183 if test "x$enable_dependency_tracking" = xyes; then
3184 continue
3185 else
3186 break
3187 fi
3188 ;;
3189 none) break ;;
3190 esac
3191 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3192 # mode. It turns out that the SunPro C++ compiler does not properly
3193 # handle `-M -o', and we need to detect this.
3194 if depmode=$depmode \
3195 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3196 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3197 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3198 >/dev/null 2>conftest.err &&
3199 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3200 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3201 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3202 # icc doesn't choke on unknown options, it will just issue warnings
3203 # or remarks (even with -Werror). So we grep stderr for any message
3204 # that says an option was ignored or not supported.
3205 # When given -MP, icc 7.0 and 7.1 complain thusly:
3206 # icc: Command line warning: ignoring option '-M'; no argument required
3207 # The diagnosis changed in icc 8.0:
3208 # icc: Command line remark: option '-MP' not supported
3209 if (grep 'ignoring option' conftest.err ||
3210 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3211 am_cv_CC_dependencies_compiler_type=$depmode
3212 break
3213 fi
3214 fi
3215 done
3216
3217 cd ..
3218 rm -rf conftest.dir
252b5132 3219else
42ecbf5e 3220 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3221fi
3222
252b5132 3223fi
42ecbf5e
DJ
3224echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3225echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3226CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3227
3228
252b5132 3229
42ecbf5e
DJ
3230if
3231 test "x$enable_dependency_tracking" != xno \
3232 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3233 am__fastdepCC_TRUE=
3234 am__fastdepCC_FALSE='#'
252b5132 3235else
42ecbf5e
DJ
3236 am__fastdepCC_TRUE='#'
3237 am__fastdepCC_FALSE=
252b5132
RH
3238fi
3239
3240
3241
42ecbf5e 3242
d45dc31f
SE
3243ac_ext=c
3244ac_cpp='$CPP $CPPFLAGS'
3245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3247ac_compiler_gnu=$ac_cv_c_compiler_gnu
3248if test -n "$ac_tool_prefix"; then
3249 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3250set dummy ${ac_tool_prefix}gcc; ac_word=$2
3251echo "$as_me:$LINENO: checking for $ac_word" >&5
3252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3253if test "${ac_cv_prog_CC+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3255else
d45dc31f
SE
3256 if test -n "$CC"; then
3257 ac_cv_prog_CC="$CC" # Let the user override the test.
1a09a22c 3258else
d45dc31f
SE
3259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260for as_dir in $PATH
3261do
3262 IFS=$as_save_IFS
3263 test -z "$as_dir" && as_dir=.
3264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3266 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3268 break 2
3269 fi
3270done
3271done
ceae3e33 3272
d45dc31f
SE
3273fi
3274fi
3275CC=$ac_cv_prog_CC
3276if test -n "$CC"; then
3277 echo "$as_me:$LINENO: result: $CC" >&5
3278echo "${ECHO_T}$CC" >&6
252b5132 3279else
d45dc31f
SE
3280 echo "$as_me:$LINENO: result: no" >&5
3281echo "${ECHO_T}no" >&6
252b5132 3282fi
d45dc31f
SE
3283
3284fi
3285if test -z "$ac_cv_prog_CC"; then
3286 ac_ct_CC=$CC
3287 # Extract the first word of "gcc", so it can be a program name with args.
3288set dummy gcc; ac_word=$2
3289echo "$as_me:$LINENO: checking for $ac_word" >&5
3290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3291if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
42ecbf5e 3292 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3293else
d45dc31f
SE
3294 if test -n "$ac_ct_CC"; then
3295 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3296else
d45dc31f
SE
3297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298for as_dir in $PATH
3299do
3300 IFS=$as_save_IFS
3301 test -z "$as_dir" && as_dir=.
3302 for ac_exec_ext in '' $ac_executable_extensions; do
3303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3304 ac_cv_prog_ac_ct_CC="gcc"
3305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3306 break 2
3307 fi
3308done
3309done
3310
252b5132
RH
3311fi
3312fi
d45dc31f
SE
3313ac_ct_CC=$ac_cv_prog_ac_ct_CC
3314if test -n "$ac_ct_CC"; then
3315 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3316echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 3317else
42ecbf5e
DJ
3318 echo "$as_me:$LINENO: result: no" >&5
3319echo "${ECHO_T}no" >&6
252b5132 3320fi
d45dc31f
SE
3321
3322 CC=$ac_ct_CC
3323else
3324 CC="$ac_cv_prog_CC"
3325fi
3326
3327if test -z "$CC"; then
3328 if test -n "$ac_tool_prefix"; then
3329 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3330set dummy ${ac_tool_prefix}cc; ac_word=$2
3331echo "$as_me:$LINENO: checking for $ac_word" >&5
3332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3333if test "${ac_cv_prog_CC+set}" = set; then
42ecbf5e 3334 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3335else
d45dc31f
SE
3336 if test -n "$CC"; then
3337 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3338else
d45dc31f
SE
3339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340for as_dir in $PATH
3341do
3342 IFS=$as_save_IFS
3343 test -z "$as_dir" && as_dir=.
3344 for ac_exec_ext in '' $ac_executable_extensions; do
3345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3346 ac_cv_prog_CC="${ac_tool_prefix}cc"
3347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3348 break 2
3349 fi
3350done
3351done
3352
252b5132
RH
3353fi
3354fi
d45dc31f
SE
3355CC=$ac_cv_prog_CC
3356if test -n "$CC"; then
3357 echo "$as_me:$LINENO: result: $CC" >&5
3358echo "${ECHO_T}$CC" >&6
ac48eca1 3359else
d45dc31f
SE
3360 echo "$as_me:$LINENO: result: no" >&5
3361echo "${ECHO_T}no" >&6
ac48eca1 3362fi
ac48eca1 3363
d45dc31f
SE
3364fi
3365if test -z "$ac_cv_prog_CC"; then
3366 ac_ct_CC=$CC
3367 # Extract the first word of "cc", so it can be a program name with args.
3368set dummy cc; ac_word=$2
3369echo "$as_me:$LINENO: checking for $ac_word" >&5
3370echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3371if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
42ecbf5e 3372 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3373else
d45dc31f
SE
3374 if test -n "$ac_ct_CC"; then
3375 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3376else
d45dc31f
SE
3377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378for as_dir in $PATH
3379do
3380 IFS=$as_save_IFS
3381 test -z "$as_dir" && as_dir=.
3382 for ac_exec_ext in '' $ac_executable_extensions; do
3383 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3384 ac_cv_prog_ac_ct_CC="cc"
3385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3386 break 2
3387 fi
3388done
3389done
3390
252b5132 3391fi
d45dc31f
SE
3392fi
3393ac_ct_CC=$ac_cv_prog_ac_ct_CC
3394if test -n "$ac_ct_CC"; then
3395 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3396echo "${ECHO_T}$ac_ct_CC" >&6
3397else
3398 echo "$as_me:$LINENO: result: no" >&5
3399echo "${ECHO_T}no" >&6
252b5132
RH
3400fi
3401
d45dc31f
SE
3402 CC=$ac_ct_CC
3403else
3404 CC="$ac_cv_prog_CC"
3405fi
252b5132 3406
d45dc31f
SE
3407fi
3408if test -z "$CC"; then
3409 # Extract the first word of "cc", so it can be a program name with args.
3410set dummy cc; ac_word=$2
3411echo "$as_me:$LINENO: checking for $ac_word" >&5
3412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3413if test "${ac_cv_prog_CC+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3415else
d45dc31f
SE
3416 if test -n "$CC"; then
3417 ac_cv_prog_CC="$CC" # Let the user override the test.
3418else
3419 ac_prog_rejected=no
3420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421for as_dir in $PATH
3422do
3423 IFS=$as_save_IFS
3424 test -z "$as_dir" && as_dir=.
3425 for ac_exec_ext in '' $ac_executable_extensions; do
3426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3427 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3428 ac_prog_rejected=yes
3429 continue
3430 fi
3431 ac_cv_prog_CC="cc"
3432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3433 break 2
3434 fi
3435done
3436done
3437
3438if test $ac_prog_rejected = yes; then
3439 # We found a bogon in the path, so make sure we never use it.
3440 set dummy $ac_cv_prog_CC
3441 shift
3442 if test $# != 0; then
3443 # We chose a different compiler from the bogus one.
3444 # However, it has the same basename, so the bogon will be chosen
3445 # first if we set CC to just the basename; use the full file name.
3446 shift
3447 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3448 fi
3449fi
3450fi
3451fi
3452CC=$ac_cv_prog_CC
3453if test -n "$CC"; then
3454 echo "$as_me:$LINENO: result: $CC" >&5
3455echo "${ECHO_T}$CC" >&6
3456else
3457 echo "$as_me:$LINENO: result: no" >&5
3458echo "${ECHO_T}no" >&6
252b5132
RH
3459fi
3460
d45dc31f
SE
3461fi
3462if test -z "$CC"; then
3463 if test -n "$ac_tool_prefix"; then
3464 for ac_prog in cl
3465 do
3466 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3467set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3468echo "$as_me:$LINENO: checking for $ac_word" >&5
3469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3470if test "${ac_cv_prog_CC+set}" = set; then
42ecbf5e 3471 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3472else
d45dc31f
SE
3473 if test -n "$CC"; then
3474 ac_cv_prog_CC="$CC" # Let the user override the test.
3475else
3476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477for as_dir in $PATH
3478do
3479 IFS=$as_save_IFS
3480 test -z "$as_dir" && as_dir=.
3481 for ac_exec_ext in '' $ac_executable_extensions; do
3482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3483 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3485 break 2
3486 fi
3487done
3488done
ac48eca1 3489
d45dc31f
SE
3490fi
3491fi
3492CC=$ac_cv_prog_CC
3493if test -n "$CC"; then
3494 echo "$as_me:$LINENO: result: $CC" >&5
3495echo "${ECHO_T}$CC" >&6
3496else
3497 echo "$as_me:$LINENO: result: no" >&5
3498echo "${ECHO_T}no" >&6
3499fi
ac48eca1 3500
d45dc31f
SE
3501 test -n "$CC" && break
3502 done
3503fi
3504if test -z "$CC"; then
3505 ac_ct_CC=$CC
3506 for ac_prog in cl
3507do
3508 # Extract the first word of "$ac_prog", so it can be a program name with args.
3509set dummy $ac_prog; ac_word=$2
3510echo "$as_me:$LINENO: checking for $ac_word" >&5
3511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3512if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3514else
3515 if test -n "$ac_ct_CC"; then
3516 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3517else
3518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519for as_dir in $PATH
3520do
3521 IFS=$as_save_IFS
3522 test -z "$as_dir" && as_dir=.
3523 for ac_exec_ext in '' $ac_executable_extensions; do
3524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3525 ac_cv_prog_ac_ct_CC="$ac_prog"
3526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3527 break 2
3528 fi
3529done
3530done
ac48eca1 3531
d45dc31f
SE
3532fi
3533fi
3534ac_ct_CC=$ac_cv_prog_ac_ct_CC
3535if test -n "$ac_ct_CC"; then
3536 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3537echo "${ECHO_T}$ac_ct_CC" >&6
3538else
3539 echo "$as_me:$LINENO: result: no" >&5
3540echo "${ECHO_T}no" >&6
3541fi
ac48eca1 3542
d45dc31f
SE
3543 test -n "$ac_ct_CC" && break
3544done
ac48eca1 3545
d45dc31f
SE
3546 CC=$ac_ct_CC
3547fi
ac48eca1
AO
3548
3549fi
ac48eca1 3550
ac48eca1 3551
d45dc31f
SE
3552test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3553See \`config.log' for more details." >&5
3554echo "$as_me: error: no acceptable C compiler found in \$PATH
3555See \`config.log' for more details." >&2;}
3556 { (exit 1); exit 1; }; }
ac48eca1 3557
d45dc31f
SE
3558# Provide some information about the compiler.
3559echo "$as_me:$LINENO:" \
3560 "checking for C compiler version" >&5
3561ac_compiler=`set X $ac_compile; echo $2`
3562{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3563 (eval $ac_compiler --version </dev/null >&5) 2>&5
3564 ac_status=$?
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); }
3567{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3568 (eval $ac_compiler -v </dev/null >&5) 2>&5
3569 ac_status=$?
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }
3572{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3573 (eval $ac_compiler -V </dev/null >&5) 2>&5
3574 ac_status=$?
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); }
ac48eca1 3577
d45dc31f
SE
3578echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3579echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3580if test "${ac_cv_c_compiler_gnu+set}" = set; then
bdcfeba5
NC
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3582else
d45dc31f
SE
3583 cat >conftest.$ac_ext <<_ACEOF
3584/* confdefs.h. */
3585_ACEOF
3586cat confdefs.h >>conftest.$ac_ext
3587cat >>conftest.$ac_ext <<_ACEOF
3588/* end confdefs.h. */
bdcfeba5 3589
d45dc31f
SE
3590int
3591main ()
3592{
3593#ifndef __GNUC__
3594 choke me
3595#endif
bdcfeba5 3596
d45dc31f
SE
3597 ;
3598 return 0;
3599}
3600_ACEOF
3601rm -f conftest.$ac_objext
3602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3603 (eval $ac_compile) 2>conftest.er1
3604 ac_status=$?
3605 grep -v '^ *+' conftest.er1 >conftest.err
3606 rm -f conftest.er1
3607 cat conftest.err >&5
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); } &&
3610 { ac_try='test -z "$ac_c_werror_flag"
3611 || test ! -s conftest.err'
3612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613 (eval $ac_try) 2>&5
3614 ac_status=$?
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); }; } &&
3617 { ac_try='test -s conftest.$ac_objext'
3618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619 (eval $ac_try) 2>&5
3620 ac_status=$?
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); }; }; then
3623 ac_compiler_gnu=yes
3624else
3625 echo "$as_me: failed program was:" >&5
3626sed 's/^/| /' conftest.$ac_ext >&5
bdcfeba5 3627
d45dc31f 3628ac_compiler_gnu=no
bdcfeba5 3629fi
d45dc31f
SE
3630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3631ac_cv_c_compiler_gnu=$ac_compiler_gnu
bdcfeba5 3632
bdcfeba5 3633fi
d45dc31f
SE
3634echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3635echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3636GCC=`test $ac_compiler_gnu = yes && echo yes`
3637ac_test_CFLAGS=${CFLAGS+set}
3638ac_save_CFLAGS=$CFLAGS
3639CFLAGS="-g"
3640echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3641echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3642if test "${ac_cv_prog_cc_g+set}" = set; then
42ecbf5e 3643 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3644else
d45dc31f
SE
3645 cat >conftest.$ac_ext <<_ACEOF
3646/* confdefs.h. */
3647_ACEOF
3648cat confdefs.h >>conftest.$ac_ext
3649cat >>conftest.$ac_ext <<_ACEOF
3650/* end confdefs.h. */
ac48eca1 3651
d45dc31f
SE
3652int
3653main ()
3654{
ac48eca1 3655
d45dc31f
SE
3656 ;
3657 return 0;
3658}
3659_ACEOF
3660rm -f conftest.$ac_objext
3661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3662 (eval $ac_compile) 2>conftest.er1
3663 ac_status=$?
3664 grep -v '^ *+' conftest.er1 >conftest.err
3665 rm -f conftest.er1
3666 cat conftest.err >&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } &&
3669 { ac_try='test -z "$ac_c_werror_flag"
3670 || test ! -s conftest.err'
3671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672 (eval $ac_try) 2>&5
3673 ac_status=$?
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; } &&
3676 { ac_try='test -s conftest.$ac_objext'
3677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678 (eval $ac_try) 2>&5
3679 ac_status=$?
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; }; then
3682 ac_cv_prog_cc_g=yes
ac48eca1 3683else
d45dc31f
SE
3684 echo "$as_me: failed program was:" >&5
3685sed 's/^/| /' conftest.$ac_ext >&5
ac48eca1 3686
d45dc31f 3687ac_cv_prog_cc_g=no
ac48eca1 3688fi
d45dc31f 3689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 3690fi
d45dc31f
SE
3691echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3692echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3693if test "$ac_test_CFLAGS" = set; then
3694 CFLAGS=$ac_save_CFLAGS
3695elif test $ac_cv_prog_cc_g = yes; then
3696 if test "$GCC" = yes; then
3697 CFLAGS="-g -O2"
ac48eca1 3698 else
d45dc31f 3699 CFLAGS="-g"
42ecbf5e 3700 fi
ac48eca1 3701else
d45dc31f
SE
3702 if test "$GCC" = yes; then
3703 CFLAGS="-O2"
3704 else
3705 CFLAGS=
42ecbf5e 3706 fi
ac48eca1 3707fi
d45dc31f
SE
3708echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3709echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3710if test "${ac_cv_prog_cc_stdc+set}" = set; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3712else
3713 ac_cv_prog_cc_stdc=no
3714ac_save_CC=$CC
3715cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
3716/* confdefs.h. */
3717_ACEOF
3718cat confdefs.h >>conftest.$ac_ext
3719cat >>conftest.$ac_ext <<_ACEOF
3720/* end confdefs.h. */
d45dc31f
SE
3721#include <stdarg.h>
3722#include <stdio.h>
3723#include <sys/types.h>
3724#include <sys/stat.h>
3725/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3726struct buf { int x; };
3727FILE * (*rcsopen) (struct buf *, struct stat *, int);
3728static char *e (p, i)
3729 char **p;
3730 int i;
3731{
3732 return p[i];
3733}
3734static char *f (char * (*g) (char **, int), char **p, ...)
3735{
3736 char *s;
3737 va_list v;
3738 va_start (v,p);
3739 s = g (p, va_arg (v,int));
3740 va_end (v);
3741 return s;
3742}
3743
3744/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3745 function prototypes and stuff, but not '\xHH' hex character constants.
3746 These don't provoke an error unfortunately, instead are silently treated
3747 as 'x'. The following induces an error, until -std1 is added to get
3748 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3749 array size at least. It's necessary to write '\x00'==0 to get something
3750 that's true only with -std1. */
3751int osf4_cc_array ['\x00' == 0 ? 1 : -1];
252b5132 3752
d45dc31f
SE
3753int test (int i, double x);
3754struct s1 {int (*f) (int a);};
3755struct s2 {int (*f) (double a);};
3756int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3757int argc;
3758char **argv;
42ecbf5e
DJ
3759int
3760main ()
3761{
d45dc31f 3762return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
42ecbf5e
DJ
3763 ;
3764 return 0;
3765}
3766_ACEOF
d45dc31f
SE
3767# Don't try gcc -ansi; that turns off useful extensions and
3768# breaks some systems' header files.
3769# AIX -qlanglvl=ansi
3770# Ultrix and OSF/1 -std1
3771# HP-UX 10.20 and later -Ae
3772# HP-UX older versions -Aa -D_HPUX_SOURCE
3773# SVR4 -Xc -D__EXTENSIONS__
3774for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3775do
3776 CC="$ac_save_CC $ac_arg"
3777 rm -f conftest.$ac_objext
3778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3779 (eval $ac_compile) 2>conftest.er1
42ecbf5e
DJ
3780 ac_status=$?
3781 grep -v '^ *+' conftest.er1 >conftest.err
3782 rm -f conftest.er1
3783 cat conftest.err >&5
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); } &&
b7d4af3a
JW
3786 { ac_try='test -z "$ac_c_werror_flag"
3787 || test ! -s conftest.err'
42ecbf5e
DJ
3788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3789 (eval $ac_try) 2>&5
3790 ac_status=$?
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); }; } &&
d45dc31f 3793 { ac_try='test -s conftest.$ac_objext'
42ecbf5e
DJ
3794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795 (eval $ac_try) 2>&5
3796 ac_status=$?
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }; }; then
d45dc31f
SE
3799 ac_cv_prog_cc_stdc=$ac_arg
3800break
252b5132 3801else
42ecbf5e
DJ
3802 echo "$as_me: failed program was:" >&5
3803sed 's/^/| /' conftest.$ac_ext >&5
3804
252b5132 3805fi
d45dc31f
SE
3806rm -f conftest.err conftest.$ac_objext
3807done
3808rm -f conftest.$ac_ext conftest.$ac_objext
3809CC=$ac_save_CC
ac48eca1 3810
252b5132 3811fi
252b5132 3812
d45dc31f
SE
3813case "x$ac_cv_prog_cc_stdc" in
3814 x|xno)
3815 echo "$as_me:$LINENO: result: none needed" >&5
3816echo "${ECHO_T}none needed" >&6 ;;
3817 *)
3818 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3819echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3820 CC="$CC $ac_cv_prog_cc_stdc" ;;
252b5132
RH
3821esac
3822
d45dc31f
SE
3823# Some people use a C++ compiler to compile C. Since we use `exit',
3824# in C++ we need to declare it. In case someone uses the same compiler
3825# for both compiling C and C++ we need to have the C++ compiler decide
3826# the declaration of exit, since it's the most demanding environment.
3827cat >conftest.$ac_ext <<_ACEOF
3828#ifndef __cplusplus
3829 choke me
3830#endif
42ecbf5e 3831_ACEOF
d45dc31f
SE
3832rm -f conftest.$ac_objext
3833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3834 (eval $ac_compile) 2>conftest.er1
3835 ac_status=$?
3836 grep -v '^ *+' conftest.er1 >conftest.err
3837 rm -f conftest.er1
3838 cat conftest.err >&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } &&
3841 { ac_try='test -z "$ac_c_werror_flag"
3842 || test ! -s conftest.err'
3843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3844 (eval $ac_try) 2>&5
3845 ac_status=$?
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); }; } &&
3848 { ac_try='test -s conftest.$ac_objext'
3849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3850 (eval $ac_try) 2>&5
3851 ac_status=$?
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); }; }; then
3854 for ac_declaration in \
3855 '' \
3856 'extern "C" void std::exit (int) throw (); using std::exit;' \
3857 'extern "C" void std::exit (int); using std::exit;' \
3858 'extern "C" void exit (int) throw ();' \
3859 'extern "C" void exit (int);' \
3860 'void exit (int);'
3861do
3862 cat >conftest.$ac_ext <<_ACEOF
3863/* confdefs.h. */
3864_ACEOF
3865cat confdefs.h >>conftest.$ac_ext
3866cat >>conftest.$ac_ext <<_ACEOF
3867/* end confdefs.h. */
3868$ac_declaration
3869#include <stdlib.h>
3870int
3871main ()
42ecbf5e 3872{
d45dc31f
SE
3873exit (42);
3874 ;
3875 return 0;
3876}
3877_ACEOF
3878rm -f conftest.$ac_objext
3879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3880 (eval $ac_compile) 2>conftest.er1
3881 ac_status=$?
3882 grep -v '^ *+' conftest.er1 >conftest.err
3883 rm -f conftest.er1
3884 cat conftest.err >&5
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); } &&
3887 { ac_try='test -z "$ac_c_werror_flag"
3888 || test ! -s conftest.err'
3889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3890 (eval $ac_try) 2>&5
3891 ac_status=$?
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); }; } &&
3894 { ac_try='test -s conftest.$ac_objext'
3895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3896 (eval $ac_try) 2>&5
3897 ac_status=$?
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); }; }; then
3900 :
3901else
3902 echo "$as_me: failed program was:" >&5
3903sed 's/^/| /' conftest.$ac_ext >&5
252b5132 3904
d45dc31f
SE
3905continue
3906fi
3907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3908 cat >conftest.$ac_ext <<_ACEOF
3909/* confdefs.h. */
3910_ACEOF
3911cat confdefs.h >>conftest.$ac_ext
3912cat >>conftest.$ac_ext <<_ACEOF
3913/* end confdefs.h. */
3914$ac_declaration
3915int
3916main ()
3917{
3918exit (42);
3919 ;
3920 return 0;
3921}
3922_ACEOF
3923rm -f conftest.$ac_objext
3924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3925 (eval $ac_compile) 2>conftest.er1
3926 ac_status=$?
3927 grep -v '^ *+' conftest.er1 >conftest.err
3928 rm -f conftest.er1
3929 cat conftest.err >&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); } &&
3932 { ac_try='test -z "$ac_c_werror_flag"
3933 || test ! -s conftest.err'
3934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3935 (eval $ac_try) 2>&5
3936 ac_status=$?
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); }; } &&
3939 { ac_try='test -s conftest.$ac_objext'
3940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3941 (eval $ac_try) 2>&5
3942 ac_status=$?
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); }; }; then
3945 break
3946else
3947 echo "$as_me: failed program was:" >&5
3948sed 's/^/| /' conftest.$ac_ext >&5
252b5132 3949
d45dc31f
SE
3950fi
3951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3952done
3953rm -f conftest*
3954if test -n "$ac_declaration"; then
3955 echo '#ifdef __cplusplus' >>confdefs.h
3956 echo $ac_declaration >>confdefs.h
3957 echo '#endif' >>confdefs.h
3958fi
ac48eca1 3959
d45dc31f
SE
3960else
3961 echo "$as_me: failed program was:" >&5
3962sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 3963
d45dc31f
SE
3964fi
3965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3966ac_ext=c
3967ac_cpp='$CPP $CPPFLAGS'
3968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3970ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e
DJ
3971
3972
d45dc31f
SE
3973cat >>confdefs.h <<\_ACEOF
3974#define _GNU_SOURCE 1
3975_ACEOF
42ecbf5e 3976
ac48eca1 3977
d7040cdb
SE
3978
3979
3980macro_version='2.1a'
3981macro_revision='1.2435'
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994ltmain="$ac_aux_dir/ltmain.sh"
3995
3996# Set options
3997
3998enable_dlopen=no
3999
4000
4001enable_win32_dll=no
4002
4003
d45dc31f
SE
4004# Check whether --enable-shared or --disable-shared was given.
4005if test "${enable_shared+set}" = set; then
4006 enableval="$enable_shared"
4007 p=${PACKAGE-default}
d7040cdb
SE
4008 case $enableval in
4009 yes) enable_shared=yes ;;
4010 no) enable_shared=no ;;
4011 *)
4012 enable_shared=no
4013 # Look at the argument we got. We use all the common list separators.
4014 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4015 for pkg in $enableval; do
4016 IFS="$lt_save_ifs"
4017 if test "X$pkg" = "X$p"; then
4018 enable_shared=yes
4019 fi
4020 done
4021 IFS="$lt_save_ifs"
4022 ;;
4023 esac
d45dc31f
SE
4024else
4025 enable_shared=yes
4026fi;
d7040cdb
SE
4027
4028
4029
4030
4031
4032
4033
4034
d45dc31f
SE
4035# Check whether --enable-static or --disable-static was given.
4036if test "${enable_static+set}" = set; then
4037 enableval="$enable_static"
4038 p=${PACKAGE-default}
d7040cdb
SE
4039 case $enableval in
4040 yes) enable_static=yes ;;
4041 no) enable_static=no ;;
4042 *)
4043 enable_static=no
4044 # Look at the argument we got. We use all the common list separators.
4045 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4046 for pkg in $enableval; do
4047 IFS="$lt_save_ifs"
4048 if test "X$pkg" = "X$p"; then
4049 enable_static=yes
4050 fi
4051 done
4052 IFS="$lt_save_ifs"
4053 ;;
4054 esac
d45dc31f
SE
4055else
4056 enable_static=yes
4057fi;
d7040cdb
SE
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067# Check whether --with-pic or --without-pic was given.
4068if test "${with_pic+set}" = set; then
4069 withval="$with_pic"
4070 pic_mode="$withval"
4071else
4072 pic_mode=default
4073fi;
4074
4075test -z "$pic_mode" && pic_mode=default
4076
4077
4078
4079
4080
4081
4082
d45dc31f
SE
4083# Check whether --enable-fast-install or --disable-fast-install was given.
4084if test "${enable_fast_install+set}" = set; then
4085 enableval="$enable_fast_install"
4086 p=${PACKAGE-default}
d7040cdb
SE
4087 case $enableval in
4088 yes) enable_fast_install=yes ;;
4089 no) enable_fast_install=no ;;
4090 *)
4091 enable_fast_install=no
4092 # Look at the argument we got. We use all the common list separators.
4093 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4094 for pkg in $enableval; do
4095 IFS="$lt_save_ifs"
4096 if test "X$pkg" = "X$p"; then
4097 enable_fast_install=yes
4098 fi
4099 done
4100 IFS="$lt_save_ifs"
4101 ;;
4102 esac
d45dc31f
SE
4103else
4104 enable_fast_install=yes
42ecbf5e 4105fi;
ad22bfe8 4106
d7040cdb
SE
4107
4108
4109
4110
4111
4112
4113
4114echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4115echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4116if test "${lt_cv_path_SED+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4118else
4119 # Loop through the user's path and test for sed and gsed.
4120# Then use that list of sed's as ones to test for truncation.
4121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122for as_dir in $PATH
4123do
4124 IFS=$as_save_IFS
4125 test -z "$as_dir" && as_dir=.
4126 for lt_ac_prog in sed gsed; do
4127 for ac_exec_ext in '' $ac_executable_extensions; do
4128 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4129 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4130 fi
4131 done
4132 done
4133done
4134IFS=$as_save_IFS
4135lt_ac_max=0
4136lt_ac_count=0
4137# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4138# along with /bin/sed that truncates output.
4139for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4140 test ! -f $lt_ac_sed && continue
4141 cat /dev/null > conftest.in
4142 lt_ac_count=0
4143 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4144 # Check for GNU sed and select it if it is found.
4145 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4146 lt_cv_path_SED=$lt_ac_sed
4147 break
4148 fi
4149 while true; do
4150 cat conftest.in conftest.in >conftest.tmp
4151 mv conftest.tmp conftest.in
4152 cp conftest.in conftest.nl
4153 echo >>conftest.nl
4154 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4155 cmp -s conftest.out conftest.nl || break
4156 # 10000 chars as input seems more than enough
4157 test $lt_ac_count -gt 10 && break
4158 lt_ac_count=`expr $lt_ac_count + 1`
4159 if test $lt_ac_count -gt $lt_ac_max; then
4160 lt_ac_max=$lt_ac_count
4161 lt_cv_path_SED=$lt_ac_sed
4162 fi
4163 done
4164done
4165
4166fi
4167
4168SED=$lt_cv_path_SED
4169
4170echo "$as_me:$LINENO: result: $SED" >&5
4171echo "${ECHO_T}$SED" >&6
4172
4173test -z "$SED" && SED=sed
4174Xsed="$SED -e 1s/^X//"
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186echo "$as_me:$LINENO: checking for egrep" >&5
4187echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4188if test "${ac_cv_prog_egrep+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4190else
4191 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4192 then ac_cv_prog_egrep='grep -E'
4193 else ac_cv_prog_egrep='egrep'
4194 fi
4195fi
4196echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4197echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4198 EGREP=$ac_cv_prog_egrep
4199
4200
4201echo "$as_me:$LINENO: checking for fgrep" >&5
4202echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4203if test "${ac_cv_prog_fgrep+set}" = set; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4205else
4206 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4207 then ac_cv_prog_fgrep='grep -F'
4208 else ac_cv_prog_fgrep='fgrep'
4209 fi
4210fi
4211echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4212echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4213 FGREP=$ac_cv_prog_fgrep
4214
4215
4216test -z "$GREP" && GREP=grep
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
d45dc31f
SE
4236# Check whether --with-gnu-ld or --without-gnu-ld was given.
4237if test "${with_gnu_ld+set}" = set; then
4238 withval="$with_gnu_ld"
4239 test "$withval" = no || with_gnu_ld=yes
4240else
4241 with_gnu_ld=no
42ecbf5e 4242fi;
d45dc31f
SE
4243ac_prog=ld
4244if test "$GCC" = yes; then
4245 # Check if gcc -print-prog-name=ld gives a path.
d7040cdb
SE
4246 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4247echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
d45dc31f
SE
4248 case $host in
4249 *-*-mingw*)
4250 # gcc leaves a trailing carriage return which upsets mingw
4251 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4252 *)
4253 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4254 esac
4255 case $ac_prog in
4256 # Accept absolute paths.
d7040cdb 4257 [\\/]* | ?:[\\/]*)
d45dc31f 4258 re_direlt='/[^/][^/]*/\.\./'
d7040cdb
SE
4259 # Canonicalize the pathname of ld
4260 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4261 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4262 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
d45dc31f
SE
4263 done
4264 test -z "$LD" && LD="$ac_prog"
4265 ;;
4266 "")
4267 # If it fails, then pretend we aren't using GCC.
4268 ac_prog=ld
4269 ;;
4270 *)
4271 # If it is relative, then search for the first ld in PATH.
4272 with_gnu_ld=unknown
4273 ;;
4274 esac
4275elif test "$with_gnu_ld" = yes; then
4276 echo "$as_me:$LINENO: checking for GNU ld" >&5
4277echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4278else
4279 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4280echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4281fi
4282if test "${lt_cv_path_LD+set}" = set; then
4283 echo $ECHO_N "(cached) $ECHO_C" >&6
4284else
4285 if test -z "$LD"; then
d7040cdb 4286 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
d45dc31f 4287 for ac_dir in $PATH; do
d7040cdb 4288 IFS="$lt_save_ifs"
d45dc31f
SE
4289 test -z "$ac_dir" && ac_dir=.
4290 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4291 lt_cv_path_LD="$ac_dir/$ac_prog"
4292 # Check to see if the program is GNU ld. I'd rather use --version,
d7040cdb 4293 # but apparently some variants of GNU ld only accept -v.
d45dc31f 4294 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
4295 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4296 *GNU* | *'with BFD'*)
d45dc31f 4297 test "$with_gnu_ld" != no && break
d7040cdb
SE
4298 ;;
4299 *)
d45dc31f 4300 test "$with_gnu_ld" != yes && break
d7040cdb
SE
4301 ;;
4302 esac
d45dc31f
SE
4303 fi
4304 done
d7040cdb 4305 IFS="$lt_save_ifs"
d45dc31f
SE
4306else
4307 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4308fi
4309fi
1ad12f97 4310
d45dc31f
SE
4311LD="$lt_cv_path_LD"
4312if test -n "$LD"; then
4313 echo "$as_me:$LINENO: result: $LD" >&5
4314echo "${ECHO_T}$LD" >&6
4315else
4316 echo "$as_me:$LINENO: result: no" >&5
4317echo "${ECHO_T}no" >&6
4318fi
4319test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4320echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4321 { (exit 1); exit 1; }; }
4322echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4323echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4324if test "${lt_cv_prog_gnu_ld+set}" = set; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4326else
d7040cdb
SE
4327 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4328case `$LD -v 2>&1 </dev/null` in
4329*GNU* | *'with BFD'*)
d45dc31f 4330 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
4331 ;;
4332*)
d45dc31f 4333 lt_cv_prog_gnu_ld=no
d7040cdb
SE
4334 ;;
4335esac
d45dc31f
SE
4336fi
4337echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4338echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4339with_gnu_ld=$lt_cv_prog_gnu_ld
569acd2c 4340
d45dc31f 4341
42ecbf5e 4342
d7040cdb
SE
4343
4344
4345
4346
4347
4348
4349
4350echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4351echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
d45dc31f
SE
4352if test "${lt_cv_path_NM+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4354else
4355 if test -n "$NM"; then
4356 # Let the user override the test.
4357 lt_cv_path_NM="$NM"
4358else
d7040cdb
SE
4359 lt_nm_to_check="${ac_tool_prefix}nm"
4360 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4361 lt_nm_to_check="$lt_nm_to_check nm"
4362 fi
4363 for lt_tmp_nm in $lt_nm_to_check; do
4364 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4365 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4366 IFS="$lt_save_ifs"
4367 test -z "$ac_dir" && ac_dir=.
4368 tmp_nm="$ac_dir/$lt_tmp_nm"
4369 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4370 # Check to see if the nm accepts a BSD-compat flag.
4371 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4372 # nm: unknown option "B" ignored
4373 # Tru64's nm complains that /dev/null is an invalid object file
4374 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4375 */dev/null* | *'Invalid file or object type'*)
4376 lt_cv_path_NM="$tmp_nm -B"
4377 break
4378 ;;
4379 *)
4380 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4381 */dev/null*)
4382 lt_cv_path_NM="$tmp_nm -p"
4383 break
4384 ;;
4385 *)
4386 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4387 continue # so that we can try to find one that supports BSD flags
4388 ;;
4389 esac
4390 ;;
4391 esac
d45dc31f 4392 fi
d7040cdb
SE
4393 done
4394 IFS="$lt_save_ifs"
d45dc31f 4395 done
d7040cdb 4396 : ${lt_cv_path_NM=no}
d45dc31f 4397fi
a541e3ce 4398fi
d7040cdb
SE
4399echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4400echo "${ECHO_T}$lt_cv_path_NM" >&6
4401if test "$lt_cv_path_NM" != "no"; then
4402 NM="$lt_cv_path_NM"
d45dc31f 4403else
d7040cdb
SE
4404 # Didn't find any BSD compatible name lister, look for dumpbin.
4405 if test -n "$ac_tool_prefix"; then
4406 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4407 do
4408 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4409set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4410echo "$as_me:$LINENO: checking for $ac_word" >&5
4411echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4412if test "${ac_cv_prog_DUMPBIN+set}" = set; then
d45dc31f
SE
4413 echo $ECHO_N "(cached) $ECHO_C" >&6
4414else
d7040cdb
SE
4415 if test -n "$DUMPBIN"; then
4416 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4417else
4418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419for as_dir in $PATH
4420do
4421 IFS=$as_save_IFS
4422 test -z "$as_dir" && as_dir=.
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4425 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4427 break 2
4428 fi
4429done
4430done
398ee8f1 4431
d7040cdb
SE
4432fi
4433fi
4434DUMPBIN=$ac_cv_prog_DUMPBIN
4435if test -n "$DUMPBIN"; then
4436 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4437echo "${ECHO_T}$DUMPBIN" >&6
4438else
4439 echo "$as_me:$LINENO: result: no" >&5
4440echo "${ECHO_T}no" >&6
4441fi
d15b04bd 4442
d7040cdb
SE
4443 test -n "$DUMPBIN" && break
4444 done
4445fi
4446if test -z "$DUMPBIN"; then
4447 ac_ct_DUMPBIN=$DUMPBIN
4448 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4449do
4450 # Extract the first word of "$ac_prog", so it can be a program name with args.
4451set dummy $ac_prog; ac_word=$2
4452echo "$as_me:$LINENO: checking for $ac_word" >&5
4453echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4454if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4455 echo $ECHO_N "(cached) $ECHO_C" >&6
4456else
4457 if test -n "$ac_ct_DUMPBIN"; then
4458 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4459else
4460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461for as_dir in $PATH
4462do
4463 IFS=$as_save_IFS
4464 test -z "$as_dir" && as_dir=.
4465 for ac_exec_ext in '' $ac_executable_extensions; do
4466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4467 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4469 break 2
d45dc31f 4470 fi
d7040cdb
SE
4471done
4472done
d15b04bd 4473
d7040cdb
SE
4474fi
4475fi
4476ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4477if test -n "$ac_ct_DUMPBIN"; then
4478 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4479echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4480else
4481 echo "$as_me:$LINENO: result: no" >&5
4482echo "${ECHO_T}no" >&6
4483fi
42ecbf5e 4484
d7040cdb
SE
4485 test -n "$ac_ct_DUMPBIN" && break
4486done
4487test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
d45dc31f 4488
d7040cdb
SE
4489 DUMPBIN=$ac_ct_DUMPBIN
4490fi
d45dc31f 4491
d45dc31f 4492
d7040cdb
SE
4493 if test "$DUMPBIN" != ":"; then
4494 NM="$DUMPBIN"
42ecbf5e 4495 fi
d7040cdb
SE
4496fi
4497test -z "$NM" && NM=nm
d45dc31f 4498
42ecbf5e 4499
d15b04bd 4500
42ecbf5e 4501
d45dc31f 4502
42ecbf5e 4503
d7040cdb
SE
4504echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4505echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4506if test "${lt_cv_nm_interface+set}" = set; then
4507 echo $ECHO_N "(cached) $ECHO_C" >&6
4508else
4509 lt_cv_nm_interface="BSD nm"
4510 echo "int some_variable = 0;" > conftest.$ac_ext
58c85be7 4511 (eval echo "\"\$as_me:4511: $ac_compile\"" >&5)
d7040cdb
SE
4512 (eval "$ac_compile" 2>conftest.err)
4513 cat conftest.err >&5
58c85be7 4514 (eval echo "\"\$as_me:4514: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
d7040cdb
SE
4515 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4516 cat conftest.err >&5
58c85be7 4517 (eval echo "\"\$as_me:4517: output\"" >&5)
d7040cdb
SE
4518 cat conftest.out >&5
4519 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4520 lt_cv_nm_interface="MS dumpbin"
4521 fi
4522 rm -f conftest*
42ecbf5e 4523fi
d7040cdb
SE
4524echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4525echo "${ECHO_T}$lt_cv_nm_interface" >&6
42ecbf5e 4526
d7040cdb
SE
4527echo "$as_me:$LINENO: checking whether ln -s works" >&5
4528echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4529LN_S=$as_ln_s
4530if test "$LN_S" = "ln -s"; then
4531 echo "$as_me:$LINENO: result: yes" >&5
4532echo "${ECHO_T}yes" >&6
4533else
4534 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4535echo "${ECHO_T}no, using $LN_S" >&6
4536fi
d45dc31f
SE
4537
4538# find the maximum length of command line arguments
4539echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4540echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4541if test "${lt_cv_sys_max_cmd_len+set}" = set; then
42ecbf5e
DJ
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4543else
d45dc31f
SE
4544 i=0
4545 teststring="ABCD"
4546
4547 case $build_os in
4548 msdosdjgpp*)
4549 # On DJGPP, this test can blow up pretty badly due to problems in libc
4550 # (any single argument exceeding 2000 bytes causes a buffer overrun
4551 # during glob expansion). Even if it were fixed, the result of this
4552 # check would be larger than it should be.
4553 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4554 ;;
4555
d7040cdb
SE
4556 gnu*)
4557 # Under GNU Hurd, this test is not required because there is
4558 # no limit to the length of command line arguments.
4559 # Libtool will interpret -1 as no limit whatsoever
4560 lt_cv_sys_max_cmd_len=-1;
4561 ;;
4562
d45dc31f
SE
4563 cygwin* | mingw*)
4564 # On Win9x/ME, this test blows up -- it succeeds, but takes
4565 # about 5 minutes as the teststring grows exponentially.
4566 # Worse, since 9x/ME are not pre-emptively multitasking,
4567 # you end up with a "frozen" computer, even though with patience
4568 # the test eventually succeeds (with a max line length of 256k).
4569 # Instead, let's just punt: use the minimum linelength reported by
4570 # all of the supported platforms: 8192 (on NT/2K/XP).
4571 lt_cv_sys_max_cmd_len=8192;
4572 ;;
4573
4574 amigaos*)
4575 # On AmigaOS with pdksh, this test takes hours, literally.
4576 # So we just punt and use a minimum line length of 8192.
4577 lt_cv_sys_max_cmd_len=8192;
4578 ;;
4579
4580 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4581 # This has been around since 386BSD, at least. Likely further.
4582 if test -x /sbin/sysctl; then
4583 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4584 elif test -x /usr/sbin/sysctl; then
4585 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4586 else
d7040cdb 4587 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
d45dc31f
SE
4588 fi
4589 # And add a safety zone
4590 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4591 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4592 ;;
d7040cdb
SE
4593
4594 interix*)
4595 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4596 lt_cv_sys_max_cmd_len=196608
4597 ;;
4598
4599 osf*)
4600 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4601 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4602 # nice to cause kernel panics so lets avoid the loop below.
4603 # First set a reasonable default.
4604 lt_cv_sys_max_cmd_len=16384
4605 #
4606 if test -x /sbin/sysconfig; then
4607 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4608 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4609 esac
4610 fi
4611 ;;
4612 sco3.2v5*)
4613 lt_cv_sys_max_cmd_len=102400
4614 ;;
4615 sysv5* | sco5v6* | sysv4.2uw2*)
4616 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4617 if test -n "$kargmax"; then
4618 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4619 else
4620 lt_cv_sys_max_cmd_len=32768
4621 fi
4622 ;;
4623 *)
5ba684e2
NC
4624 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4625 if test -n $lt_cv_sys_max_cmd_len; then
4626 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4627 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4628 else
4629 # Make teststring a little bigger before we do anything with it.
4630 # a 1K string should be a reasonable start.
4631 for i in 1 2 3 4 5 6 7 8 ; do
4632 teststring=$teststring$teststring
4633 done
4634 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4635 # If test is not a shell built-in, we'll probably end up computing a
4636 # maximum length that is only half of the actual maximum length, but
4637 # we can't tell.
4638 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4639 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4640 test $i != 17 # 1/2 MB should be enough
4641 do
4642 i=`expr $i + 1`
4643 teststring=$teststring$teststring
4644 done
4645 # Only check the string length outside the loop.
4646 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4647 teststring=
4648 # Add a significant safety factor because C++ compilers can tack on
4649 # massive amounts of additional arguments before passing them to the
4650 # linker. It appears as though 1/2 is a usable value.
4651 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4652 fi
d7040cdb 4653 ;;
d45dc31f 4654 esac
42ecbf5e 4655
42ecbf5e
DJ
4656fi
4657
d7040cdb 4658if test -n $lt_cv_sys_max_cmd_len ; then
d45dc31f
SE
4659 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4660echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
252b5132 4661else
d45dc31f
SE
4662 echo "$as_me:$LINENO: result: none" >&5
4663echo "${ECHO_T}none" >&6
252b5132 4664fi
d7040cdb 4665max_cmd_len=$lt_cv_sys_max_cmd_len
e5a52504 4666
d45dc31f 4667
42ecbf5e 4668
d45dc31f 4669
d45dc31f 4670
d7040cdb
SE
4671
4672
4673: ${CP="cp -f"}
4674: ${MV="mv -f"}
4675: ${RM="rm -f"}
4676
4677echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4678echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4679# Try some XSI features
4680xsi_shell=no
4681( _lt_dummy="a/b/c"
4682 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4683 = c,a/b,, ) >/dev/null 2>&1 \
4684 && xsi_shell=yes
4685echo "$as_me:$LINENO: result: $xsi_shell" >&5
4686echo "${ECHO_T}$xsi_shell" >&6
4687
4688
4689echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4690echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4691lt_shell_append=no
4692( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4693 >/dev/null 2>&1 \
4694 && lt_shell_append=yes
4695echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4696echo "${ECHO_T}$lt_shell_append" >&6
4697
4698
4699if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4700 lt_unset=unset
252b5132 4701else
d7040cdb 4702 lt_unset=false
252b5132
RH
4703fi
4704
d7040cdb
SE
4705
4706
4707
4708
4709# test EBCDIC or ASCII
4710case `echo X|tr X '\101'` in
4711 A) # ASCII based system
4712 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4713 lt_SP2NL='tr \040 \012'
4714 lt_NL2SP='tr \015\012 \040\040'
4715 ;;
4716 *) # EBCDIC based system
4717 lt_SP2NL='tr \100 \n'
4718 lt_NL2SP='tr \r\n \100\100'
4719 ;;
4720esac
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4731echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4732if test "${lt_cv_ld_reload_flag+set}" = set; then
42ecbf5e 4733 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4734else
d7040cdb
SE
4735 lt_cv_ld_reload_flag='-r'
4736fi
4737echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4738echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4739reload_flag=$lt_cv_ld_reload_flag
4740case $reload_flag in
4741"" | " "*) ;;
4742*) reload_flag=" $reload_flag" ;;
4743esac
4744reload_cmds='$LD$reload_flag -o $output$reload_objs'
4745case $host_os in
4746 darwin*)
4747 if test "$GCC" = yes; then
4748 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4749 else
4750 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4751 fi
4752 ;;
4753esac
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4765echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4766if test "${lt_cv_deplibs_check_method+set}" = set; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4768else
4769 lt_cv_file_magic_cmd='$MAGIC_CMD'
4770lt_cv_file_magic_test_file=
4771lt_cv_deplibs_check_method='unknown'
4772# Need to set the preceding variable on all platforms that support
4773# interlibrary dependencies.
4774# 'none' -- dependencies not supported.
4775# `unknown' -- same as none, but documents that we really don't know.
4776# 'pass_all' -- all dependencies passed with no checks.
4777# 'test_compile' -- check by making test program.
4778# 'file_magic [[regex]]' -- check by looking for files in library path
4779# which responds to the $file_magic_cmd with a given extended regex.
4780# If you have `file' or equivalent on your system and you're not sure
4781# whether `pass_all' will *always* work, you probably want this one.
4782
4783case $host_os in
50e7d84b 4784aix[4-9]*)
d7040cdb
SE
4785 lt_cv_deplibs_check_method=pass_all
4786 ;;
4787
4788beos*)
4789 lt_cv_deplibs_check_method=pass_all
4790 ;;
4791
4792bsdi[45]*)
4793 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4794 lt_cv_file_magic_cmd='/usr/bin/file -L'
4795 lt_cv_file_magic_test_file=/shlib/libc.so
4796 ;;
4797
4798cygwin*)
4799 # func_win32_libid is a shell function defined in ltmain.sh
4800 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4801 lt_cv_file_magic_cmd='func_win32_libid'
4802 ;;
4803
4804mingw* | pw32*)
4805 # Base MSYS/MinGW do not provide the 'file' command needed by
4806 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4807 # unless we find 'file', for example because we are cross-compiling.
4808 if ( file / ) >/dev/null 2>&1; then
4809 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4810 lt_cv_file_magic_cmd='func_win32_libid'
4811 else
4812 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4813 lt_cv_file_magic_cmd='$OBJDUMP -f'
4814 fi
4815 ;;
4816
4817darwin* | rhapsody*)
4818 lt_cv_deplibs_check_method=pass_all
d45dc31f 4819 ;;
d7040cdb
SE
4820
4821freebsd* | dragonfly*)
4822 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4823 case $host_cpu in
4824 i*86 )
4825 # Not sure whether the presence of OpenBSD here was a mistake.
4826 # Let's accept both of them until this is cleared up.
4827 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4828 lt_cv_file_magic_cmd=/usr/bin/file
4829 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4830 ;;
4831 esac
4832 else
4833 lt_cv_deplibs_check_method=pass_all
4834 fi
4835 ;;
4836
4837gnu*)
4838 lt_cv_deplibs_check_method=pass_all
d45dc31f 4839 ;;
d7040cdb
SE
4840
4841hpux10.20* | hpux11*)
4842 lt_cv_file_magic_cmd=/usr/bin/file
4843 case $host_cpu in
4844 ia64*)
4845 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4846 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4847 ;;
4848 hppa*64*)
4849 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]'
4850 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4851 ;;
d45dc31f 4852 *)
d7040cdb
SE
4853 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4854 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4855 ;;
4856 esac
4857 ;;
42ecbf5e 4858
d7040cdb
SE
4859interix[3-9]*)
4860 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4861 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4862 ;;
42ecbf5e 4863
d7040cdb
SE
4864irix5* | irix6* | nonstopux*)
4865 case $LD in
4866 *-32|*"-32 ") libmagic=32-bit;;
4867 *-n32|*"-n32 ") libmagic=N32;;
4868 *-64|*"-64 ") libmagic=64-bit;;
4869 *) libmagic=never-match;;
4870 esac
4871 lt_cv_deplibs_check_method=pass_all
d45dc31f 4872 ;;
42ecbf5e 4873
d7040cdb
SE
4874# This must be Linux ELF.
4875linux* | k*bsd*-gnu)
4876 lt_cv_deplibs_check_method=pass_all
4877 ;;
252b5132 4878
d7040cdb
SE
4879netbsd*)
4880 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4881 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d45dc31f 4882 else
d7040cdb 4883 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
d45dc31f 4884 fi
d7040cdb
SE
4885 ;;
4886
4887newos6*)
4888 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4889 lt_cv_file_magic_cmd=/usr/bin/file
4890 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4891 ;;
4892
4893*nto* | *qnx*)
4894 lt_cv_deplibs_check_method=pass_all
4895 ;;
42ecbf5e 4896
d7040cdb
SE
4897openbsd*)
4898 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4899 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4900 else
4901 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d45dc31f
SE
4902 fi
4903 ;;
d7040cdb
SE
4904
4905osf3* | osf4* | osf5*)
4906 lt_cv_deplibs_check_method=pass_all
4907 ;;
4908
4909rdos*)
4910 lt_cv_deplibs_check_method=pass_all
4911 ;;
4912
4913solaris*)
4914 lt_cv_deplibs_check_method=pass_all
4915 ;;
4916
4917sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4918 lt_cv_deplibs_check_method=pass_all
4919 ;;
4920
4921sysv4 | sysv4.3*)
4922 case $host_vendor in
4923 motorola)
4924 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]'
4925 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4926 ;;
4927 ncr)
4928 lt_cv_deplibs_check_method=pass_all
4929 ;;
4930 sequent)
4931 lt_cv_file_magic_cmd='/bin/file'
4932 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4933 ;;
4934 sni)
4935 lt_cv_file_magic_cmd='/bin/file'
4936 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4937 lt_cv_file_magic_test_file=/lib/libc.so
4938 ;;
4939 siemens)
4940 lt_cv_deplibs_check_method=pass_all
4941 ;;
4942 pc)
4943 lt_cv_deplibs_check_method=pass_all
4944 ;;
4945 esac
4946 ;;
4947
4948tpf*)
4949 lt_cv_deplibs_check_method=pass_all
4950 ;;
d45dc31f 4951esac
42ecbf5e 4952
d7040cdb
SE
4953fi
4954echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4955echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4956file_magic_cmd=$lt_cv_file_magic_cmd
4957deplibs_check_method=$lt_cv_deplibs_check_method
4958test -z "$deplibs_check_method" && deplibs_check_method=unknown
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
d45dc31f 4971if test -n "$ac_tool_prefix"; then
d7040cdb
SE
4972 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4973set dummy ${ac_tool_prefix}ar; ac_word=$2
d45dc31f
SE
4974echo "$as_me:$LINENO: checking for $ac_word" >&5
4975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 4976if test "${ac_cv_prog_AR+set}" = set; then
d45dc31f 4977 echo $ECHO_N "(cached) $ECHO_C" >&6
42ecbf5e 4978else
d7040cdb
SE
4979 if test -n "$AR"; then
4980 ac_cv_prog_AR="$AR" # Let the user override the test.
d45dc31f
SE
4981else
4982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983for as_dir in $PATH
4984do
4985 IFS=$as_save_IFS
4986 test -z "$as_dir" && as_dir=.
4987 for ac_exec_ext in '' $ac_executable_extensions; do
4988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 4989 ac_cv_prog_AR="${ac_tool_prefix}ar"
d45dc31f
SE
4990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4991 break 2
4992 fi
4993done
4994done
42ecbf5e 4995
42ecbf5e 4996fi
d45dc31f 4997fi
d7040cdb
SE
4998AR=$ac_cv_prog_AR
4999if test -n "$AR"; then
5000 echo "$as_me:$LINENO: result: $AR" >&5
5001echo "${ECHO_T}$AR" >&6
d45dc31f
SE
5002else
5003 echo "$as_me:$LINENO: result: no" >&5
5004echo "${ECHO_T}no" >&6
5005fi
42ecbf5e
DJ
5006
5007fi
d7040cdb
SE
5008if test -z "$ac_cv_prog_AR"; then
5009 ac_ct_AR=$AR
5010 # Extract the first word of "ar", so it can be a program name with args.
5011set dummy ar; ac_word=$2
d45dc31f
SE
5012echo "$as_me:$LINENO: checking for $ac_word" >&5
5013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 5014if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
42ecbf5e
DJ
5015 echo $ECHO_N "(cached) $ECHO_C" >&6
5016else
d7040cdb
SE
5017 if test -n "$ac_ct_AR"; then
5018 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
42ecbf5e 5019else
d45dc31f
SE
5020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021for as_dir in $PATH
5022do
5023 IFS=$as_save_IFS
5024 test -z "$as_dir" && as_dir=.
5025 for ac_exec_ext in '' $ac_executable_extensions; do
5026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 5027 ac_cv_prog_ac_ct_AR="ar"
d45dc31f
SE
5028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 break 2
5030 fi
5031done
5032done
42ecbf5e 5033
d7040cdb 5034 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
42ecbf5e 5035fi
42ecbf5e 5036fi
d7040cdb
SE
5037ac_ct_AR=$ac_cv_prog_ac_ct_AR
5038if test -n "$ac_ct_AR"; then
5039 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5040echo "${ECHO_T}$ac_ct_AR" >&6
252b5132 5041else
d45dc31f
SE
5042 echo "$as_me:$LINENO: result: no" >&5
5043echo "${ECHO_T}no" >&6
252b5132 5044fi
252b5132 5045
d7040cdb 5046 AR=$ac_ct_AR
d45dc31f 5047else
d7040cdb 5048 AR="$ac_cv_prog_AR"
d45dc31f 5049fi
42ecbf5e 5050
d7040cdb
SE
5051test -z "$AR" && AR=ar
5052test -z "$AR_FLAGS" && AR_FLAGS=cru
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
d45dc31f
SE
5064if test -n "$ac_tool_prefix"; then
5065 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5066set dummy ${ac_tool_prefix}strip; ac_word=$2
5067echo "$as_me:$LINENO: checking for $ac_word" >&5
5068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5069if test "${ac_cv_prog_STRIP+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5071else
5072 if test -n "$STRIP"; then
5073 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5074else
5075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076for as_dir in $PATH
42ecbf5e 5077do
d45dc31f
SE
5078 IFS=$as_save_IFS
5079 test -z "$as_dir" && as_dir=.
5080 for ac_exec_ext in '' $ac_executable_extensions; do
5081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5082 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5084 break 2
5085 fi
5086done
5087done
5088
5089fi
5090fi
5091STRIP=$ac_cv_prog_STRIP
5092if test -n "$STRIP"; then
5093 echo "$as_me:$LINENO: result: $STRIP" >&5
5094echo "${ECHO_T}$STRIP" >&6
252b5132 5095else
d45dc31f
SE
5096 echo "$as_me:$LINENO: result: no" >&5
5097echo "${ECHO_T}no" >&6
5098fi
42ecbf5e 5099
252b5132 5100fi
d45dc31f
SE
5101if test -z "$ac_cv_prog_STRIP"; then
5102 ac_ct_STRIP=$STRIP
5103 # Extract the first word of "strip", so it can be a program name with args.
5104set dummy strip; ac_word=$2
5105echo "$as_me:$LINENO: checking for $ac_word" >&5
5106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5107if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
5109else
5110 if test -n "$ac_ct_STRIP"; then
5111 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5112else
5113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114for as_dir in $PATH
5115do
5116 IFS=$as_save_IFS
5117 test -z "$as_dir" && as_dir=.
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5120 ac_cv_prog_ac_ct_STRIP="strip"
5121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5122 break 2
5123 fi
5124done
42ecbf5e 5125done
42ecbf5e 5126
d45dc31f
SE
5127 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5128fi
5129fi
5130ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5131if test -n "$ac_ct_STRIP"; then
5132 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5133echo "${ECHO_T}$ac_ct_STRIP" >&6
5134else
5135 echo "$as_me:$LINENO: result: no" >&5
5136echo "${ECHO_T}no" >&6
252b5132 5137fi
e5a52504 5138
d45dc31f
SE
5139 STRIP=$ac_ct_STRIP
5140else
5141 STRIP="$ac_cv_prog_STRIP"
5142fi
e5a52504 5143
d7040cdb 5144test -z "$STRIP" && STRIP=:
d45dc31f 5145
d45dc31f
SE
5146
5147
d45dc31f 5148
d45dc31f
SE
5149
5150
d7040cdb
SE
5151if test -n "$ac_tool_prefix"; then
5152 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5153set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5154echo "$as_me:$LINENO: checking for $ac_word" >&5
5155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5156if test "${ac_cv_prog_RANLIB+set}" = set; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
d45dc31f 5158else
d7040cdb
SE
5159 if test -n "$RANLIB"; then
5160 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5161else
5162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163for as_dir in $PATH
5164do
5165 IFS=$as_save_IFS
5166 test -z "$as_dir" && as_dir=.
5167 for ac_exec_ext in '' $ac_executable_extensions; do
5168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5169 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 break 2
d45dc31f 5172 fi
d7040cdb
SE
5173done
5174done
d45dc31f 5175
d7040cdb
SE
5176fi
5177fi
5178RANLIB=$ac_cv_prog_RANLIB
5179if test -n "$RANLIB"; then
5180 echo "$as_me:$LINENO: result: $RANLIB" >&5
5181echo "${ECHO_T}$RANLIB" >&6
5182else
5183 echo "$as_me:$LINENO: result: no" >&5
5184echo "${ECHO_T}no" >&6
5185fi
d45dc31f 5186
d7040cdb
SE
5187fi
5188if test -z "$ac_cv_prog_RANLIB"; then
5189 ac_ct_RANLIB=$RANLIB
5190 # Extract the first word of "ranlib", so it can be a program name with args.
5191set dummy ranlib; ac_word=$2
5192echo "$as_me:$LINENO: checking for $ac_word" >&5
5193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5194if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5195 echo $ECHO_N "(cached) $ECHO_C" >&6
5196else
5197 if test -n "$ac_ct_RANLIB"; then
5198 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5199else
5200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201for as_dir in $PATH
5202do
5203 IFS=$as_save_IFS
5204 test -z "$as_dir" && as_dir=.
5205 for ac_exec_ext in '' $ac_executable_extensions; do
5206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5207 ac_cv_prog_ac_ct_RANLIB="ranlib"
5208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5209 break 2
d45dc31f 5210 fi
d7040cdb
SE
5211done
5212done
d45dc31f 5213
d7040cdb
SE
5214 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5215fi
5216fi
5217ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5218if test -n "$ac_ct_RANLIB"; then
5219 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5220echo "${ECHO_T}$ac_ct_RANLIB" >&6
d15b04bd 5221else
d7040cdb
SE
5222 echo "$as_me:$LINENO: result: no" >&5
5223echo "${ECHO_T}no" >&6
5224fi
252b5132 5225
d7040cdb
SE
5226 RANLIB=$ac_ct_RANLIB
5227else
5228 RANLIB="$ac_cv_prog_RANLIB"
5229fi
d45dc31f 5230
d7040cdb 5231test -z "$RANLIB" && RANLIB=:
d45dc31f 5232
d45dc31f 5233
d45dc31f 5234
42ecbf5e 5235
e5a52504 5236
d7040cdb
SE
5237
5238# Determine commands to create old-style static archives.
5239old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5240old_postinstall_cmds='chmod 644 $oldlib'
5241old_postuninstall_cmds=
5242
5243if test -n "$RANLIB"; then
5244 case $host_os in
5245 openbsd*)
5246 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5247 ;;
5248 *)
5249 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5250 ;;
5251 esac
5252 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d45dc31f 5253fi
d45dc31f
SE
5254
5255
d45dc31f
SE
5256
5257
d15b04bd 5258
3e321448 5259
d45dc31f 5260
d45dc31f 5261
d45dc31f
SE
5262
5263
d45dc31f 5264
d45dc31f 5265
d45dc31f
SE
5266
5267
5268
5269
5270
5271
5272
d45dc31f 5273
d45dc31f 5274
d45dc31f 5275
d45dc31f 5276
d45dc31f 5277
d45dc31f 5278
d45dc31f 5279
d45dc31f 5280
3e321448
L
5281
5282
d45dc31f
SE
5283
5284
d45dc31f
SE
5285
5286
d45dc31f 5287
d7040cdb
SE
5288# If no C compiler was specified, use CC.
5289LTCC=${LTCC-"$CC"}
42ecbf5e 5290
d7040cdb
SE
5291# If no C compiler flags were specified, use CFLAGS.
5292LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
e5a52504 5293
d7040cdb
SE
5294# Allow CC to be a program name with arguments.
5295compiler=$CC
d15b04bd 5296
d7040cdb
SE
5297
5298# Check for command to grab the raw symbol name followed by C symbol from nm.
5299echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5300echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5301if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
42ecbf5e 5302 echo $ECHO_N "(cached) $ECHO_C" >&6
d15b04bd 5303else
d7040cdb
SE
5304
5305# These are sane defaults that work on at least a few old systems.
5306# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5307
5308# Character class describing NM global symbol codes.
5309symcode='[BCDEGRST]'
5310
5311# Regexp to match symbols that can be accessed directly from C.
5312sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5313
5314# Define system-specific variables.
5315case $host_os in
5316aix*)
5317 symcode='[BCDT]'
5318 ;;
5319cygwin* | mingw* | pw32*)
5320 symcode='[ABCDGISTW]'
5321 ;;
5322hpux*)
5323 if test "$host_cpu" = ia64; then
5324 symcode='[ABCDEGRST]'
42ecbf5e 5325 fi
d7040cdb
SE
5326 ;;
5327irix* | nonstopux*)
5328 symcode='[BCDEGRST]'
5329 ;;
5330osf*)
5331 symcode='[BCDEGQRST]'
5332 ;;
5333solaris*)
5334 symcode='[BDRT]'
5335 ;;
5336sco3.2v5*)
5337 symcode='[DT]'
5338 ;;
5339sysv4.2uw2*)
5340 symcode='[DT]'
5341 ;;
5342sysv5* | sco5v6* | unixware* | OpenUNIX*)
5343 symcode='[ABDT]'
5344 ;;
5345sysv4)
5346 symcode='[DFNSTU]'
5347 ;;
5348esac
d15b04bd 5349
d7040cdb
SE
5350# If we're using GNU nm, then use its standard symbol codes.
5351case `$NM -V 2>&1` in
5352*GNU* | *'with BFD'*)
5353 symcode='[ABCDGIRSTW]' ;;
5354esac
e5a52504 5355
d7040cdb
SE
5356# Transform an extracted symbol line into a proper C declaration.
5357# Some systems (esp. on ia64) link data and code symbols differently,
5358# so use this general approach.
5359lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
42ecbf5e 5360
d7040cdb
SE
5361# Transform an extracted symbol line into symbol name and symbol address
5362lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
42ecbf5e 5363
d7040cdb
SE
5364# Handle CRLF in mingw tool chain
5365opt_cr=
5366case $build_os in
5367mingw*)
5368 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5369 ;;
5370esac
5371
5372# Try without a prefix underscore, then with it.
5373for ac_symprfx in "" "_"; do
5374
5375 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5376 symxfrm="\\1 $ac_symprfx\\2 \\2"
5377
5378 # Write the raw and C identifiers.
5379 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5380 # Fake it for dumpbin and say T for any non-static function
5381 # and D for any global variable.
5382 # Also find C++ and __fastcall symbols from MSVC++,
5383 # which start with @ or ?.
5384 lt_cv_sys_global_symbol_pipe="$AWK '"\
5385" {last_section=section; section=\$ 3};"\
5386" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5387" \$ 0!~/External *\|/{next};"\
5388" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5389" {if(hide[section]) next};"\
5390" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5391" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5392" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5393" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5394" ' prfx=^$ac_symprfx"
5395 else
5396 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5397 fi
5398
5399 # Check to see that the pipe works correctly.
5400 pipe_works=no
5401
5402 rm -f conftest*
5403 cat > conftest.$ac_ext <<_LT_EOF
42ecbf5e 5404#ifdef __cplusplus
d7040cdb 5405extern "C" {
42ecbf5e 5406#endif
d7040cdb
SE
5407char nm_test_var;
5408void nm_test_func(void);
5409void nm_test_func(void){}
5410#ifdef __cplusplus
42ecbf5e 5411}
d7040cdb
SE
5412#endif
5413int main(){nm_test_var='a';nm_test_func();return(0);}
5414_LT_EOF
5415
5416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5417 (eval $ac_compile) 2>&5
42ecbf5e
DJ
5418 ac_status=$?
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
5420 (exit $ac_status); }; then
5421 # Now try to grab the symbols.
5422 nlist=conftest.nm
5423 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5424 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
42ecbf5e
DJ
5425 ac_status=$?
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
5427 (exit $ac_status); } && test -s "$nlist"; then
5428 # Try sorting and uniquifying the output.
5429 if sort "$nlist" | uniq > "$nlist"T; then
5430 mv -f "$nlist"T "$nlist"
5431 else
5432 rm -f "$nlist"T
5433 fi
5434
5435 # Make sure that we snagged all the symbols we need.
5436 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5437 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5438 cat <<_LT_EOF > conftest.$ac_ext
5439#ifdef __cplusplus
5440extern "C" {
5441#endif
5442
5443_LT_EOF
5444 # Now generate the symbol file.
5445 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5446
5447 cat <<_LT_EOF >> conftest.$ac_ext
5448
5449/* The mapping between symbol names and symbols. */
5450const struct {
5451 const char *name;
5452 void *address;
5453}
5454lt__PROGRAM__LTX_preloaded_symbols[] =
5455{
5456 { "@PROGRAM@", (void *) 0 },
5457_LT_EOF
5458 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5459 cat <<\_LT_EOF >> conftest.$ac_ext
5460 {0, (void *) 0}
5461};
5462
5463/* This works around a problem in FreeBSD linker */
5464#ifdef FREEBSD_WORKAROUND
5465static const void *lt_preloaded_setup() {
5466 return lt__PROGRAM__LTX_preloaded_symbols;
5467}
5468#endif
5469
5470#ifdef __cplusplus
5471}
5472#endif
5473_LT_EOF
5474 # Now try linking the two files.
5475 mv conftest.$ac_objext conftstm.$ac_objext
5476 lt_save_LIBS="$LIBS"
5477 lt_save_CFLAGS="$CFLAGS"
5478 LIBS="conftstm.$ac_objext"
5479 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5481 (eval $ac_link) 2>&5
5482 ac_status=$?
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5485 pipe_works=yes
5486 fi
5487 LIBS="$lt_save_LIBS"
5488 CFLAGS="$lt_save_CFLAGS"
5489 else
5490 echo "cannot find nm_test_func in $nlist" >&5
5491 fi
5492 else
5493 echo "cannot find nm_test_var in $nlist" >&5
5494 fi
5495 else
5496 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5497 fi
5498 else
5499 echo "$progname: failed program was:" >&5
5500 cat conftest.$ac_ext >&5
5501 fi
5502 rm -f conftest* conftst*
5503
5504 # Do not use the global_symbol_pipe unless it works.
5505 if test "$pipe_works" = yes; then
5506 break
5507 else
5508 lt_cv_sys_global_symbol_pipe=
5509 fi
5510done
42ecbf5e 5511
42ecbf5e 5512fi
d7040cdb
SE
5513
5514if test -z "$lt_cv_sys_global_symbol_pipe"; then
5515 lt_cv_sys_global_symbol_to_cdecl=
42ecbf5e 5516fi
d7040cdb
SE
5517if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5518 echo "$as_me:$LINENO: result: failed" >&5
5519echo "${ECHO_T}failed" >&6
42ecbf5e 5520else
d7040cdb
SE
5521 echo "$as_me:$LINENO: result: ok" >&5
5522echo "${ECHO_T}ok" >&6
5523fi
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5542if test "${enable_libtool_lock+set}" = set; then
5543 enableval="$enable_libtool_lock"
5544
5545fi;
5546test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5547
5548# Some flags need to be propagated to the compiler or linker for good
5549# libtool support.
5550case $host in
5551ia64-*-hpux*)
5552 # Find out which ABI we are using.
5553 echo 'int i;' > conftest.$ac_ext
5554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5555 (eval $ac_compile) 2>&5
5556 ac_status=$?
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); }; then
5559 case `/usr/bin/file conftest.$ac_objext` in
5560 *ELF-32*)
5561 HPUX_IA64_MODE="32"
5562 ;;
5563 *ELF-64*)
5564 HPUX_IA64_MODE="64"
5565 ;;
5566 esac
5567 fi
5568 rm -rf conftest*
5569 ;;
5570*-*-irix6*)
5571 # Find out which ABI we are using.
58c85be7 5572 echo '#line 5572 "configure"' > conftest.$ac_ext
d7040cdb
SE
5573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5574 (eval $ac_compile) 2>&5
5575 ac_status=$?
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); }; then
5578 if test "$lt_cv_prog_gnu_ld" = yes; then
5579 case `/usr/bin/file conftest.$ac_objext` in
5580 *32-bit*)
5581 LD="${LD-ld} -melf32bsmip"
5582 ;;
5583 *N32*)
5584 LD="${LD-ld} -melf32bmipn32"
5585 ;;
5586 *64-bit*)
5587 LD="${LD-ld} -melf64bmip"
5588 ;;
5589 esac
5590 else
5591 case `/usr/bin/file conftest.$ac_objext` in
5592 *32-bit*)
5593 LD="${LD-ld} -32"
5594 ;;
5595 *N32*)
5596 LD="${LD-ld} -n32"
5597 ;;
5598 *64-bit*)
5599 LD="${LD-ld} -64"
5600 ;;
5601 esac
5602 fi
5603 fi
5604 rm -rf conftest*
5605 ;;
5606
5607x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5608s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5609 # Find out which ABI we are using.
5610 echo 'int i;' > conftest.$ac_ext
5611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5612 (eval $ac_compile) 2>&5
5613 ac_status=$?
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; then
5616 case `/usr/bin/file conftest.o` in
5617 *32-bit*)
5618 case $host in
5619 x86_64-*kfreebsd*-gnu)
5620 LD="${LD-ld} -m elf_i386_fbsd"
5621 ;;
5622 x86_64-*linux*)
5623 LD="${LD-ld} -m elf_i386"
5624 ;;
5625 ppc64-*linux*|powerpc64-*linux*)
5626 LD="${LD-ld} -m elf32ppclinux"
5627 ;;
5628 s390x-*linux*)
5629 LD="${LD-ld} -m elf_s390"
5630 ;;
5631 sparc64-*linux*)
5632 LD="${LD-ld} -m elf32_sparc"
5633 ;;
5634 esac
5635 ;;
5636 *64-bit*)
5637 case $host in
5638 x86_64-*kfreebsd*-gnu)
5639 LD="${LD-ld} -m elf_x86_64_fbsd"
5640 ;;
5641 x86_64-*linux*)
5642 LD="${LD-ld} -m elf_x86_64"
5643 ;;
5644 ppc*-*linux*|powerpc*-*linux*)
5645 LD="${LD-ld} -m elf64ppc"
5646 ;;
5647 s390*-*linux*|s390*-*tpf*)
5648 LD="${LD-ld} -m elf64_s390"
5649 ;;
5650 sparc*-*linux*)
5651 LD="${LD-ld} -m elf64_sparc"
5652 ;;
5653 esac
5654 ;;
5655 esac
5656 fi
5657 rm -rf conftest*
5658 ;;
5659
5660*-*-sco3.2v5*)
5661 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5662 SAVE_CFLAGS="$CFLAGS"
5663 CFLAGS="$CFLAGS -belf"
5664 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5665echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5666if test "${lt_cv_cc_needs_belf+set}" = set; then
42ecbf5e
DJ
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
5668else
d7040cdb
SE
5669 ac_ext=c
5670ac_cpp='$CPP $CPPFLAGS'
5671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5673ac_compiler_gnu=$ac_cv_c_compiler_gnu
5674
5675 cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
5676/* confdefs.h. */
5677_ACEOF
5678cat confdefs.h >>conftest.$ac_ext
5679cat >>conftest.$ac_ext <<_ACEOF
5680/* end confdefs.h. */
d15b04bd 5681
42ecbf5e
DJ
5682int
5683main ()
5684{
d7040cdb 5685
42ecbf5e
DJ
5686 ;
5687 return 0;
5688}
5689_ACEOF
5690rm -f conftest.$ac_objext conftest$ac_exeext
5691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5692 (eval $ac_link) 2>conftest.er1
5693 ac_status=$?
5694 grep -v '^ *+' conftest.er1 >conftest.err
5695 rm -f conftest.er1
5696 cat conftest.err >&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); } &&
b7d4af3a
JW
5699 { ac_try='test -z "$ac_c_werror_flag"
5700 || test ! -s conftest.err'
42ecbf5e
DJ
5701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5702 (eval $ac_try) 2>&5
5703 ac_status=$?
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); }; } &&
5706 { ac_try='test -s conftest$ac_exeext'
5707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5708 (eval $ac_try) 2>&5
5709 ac_status=$?
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); }; }; then
d7040cdb 5712 lt_cv_cc_needs_belf=yes
42ecbf5e
DJ
5713else
5714 echo "$as_me: failed program was:" >&5
5715sed 's/^/| /' conftest.$ac_ext >&5
5716
d7040cdb 5717lt_cv_cc_needs_belf=no
42ecbf5e
DJ
5718fi
5719rm -f conftest.err conftest.$ac_objext \
5720 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
5721 ac_ext=c
5722ac_cpp='$CPP $CPPFLAGS'
5723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5725ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e
DJ
5726
5727fi
d7040cdb
SE
5728echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5729echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5730 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5731 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5732 CFLAGS="$SAVE_CFLAGS"
5733 fi
5734 ;;
5735sparc*-*solaris*)
5736 # Find out which ABI we are using.
5737 echo 'int i;' > conftest.$ac_ext
5738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5739 (eval $ac_compile) 2>&5
5740 ac_status=$?
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; then
5743 case `/usr/bin/file conftest.o` in
5744 *64-bit*)
5745 case $lt_cv_prog_gnu_ld in
5746 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5747 *) LD="${LD-ld} -64" ;;
5748 esac
5749 ;;
5750 esac
5751 fi
5752 rm -rf conftest*
5753 ;;
5754esac
42ecbf5e 5755
d7040cdb 5756need_locks="$enable_libtool_lock"
42ecbf5e 5757
d7040cdb
SE
5758ac_ext=c
5759ac_cpp='$CPP $CPPFLAGS'
5760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5762ac_compiler_gnu=$ac_cv_c_compiler_gnu
5763echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5764echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5765# On Suns, sometimes $CPP names a directory.
5766if test -n "$CPP" && test -d "$CPP"; then
5767 CPP=
5768fi
5769if test -z "$CPP"; then
5770 if test "${ac_cv_prog_CPP+set}" = set; then
42ecbf5e 5771 echo $ECHO_N "(cached) $ECHO_C" >&6
e5a52504 5772else
d7040cdb
SE
5773 # Double quotes because CPP needs to be expanded
5774 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5775 do
5776 ac_preproc_ok=false
5777for ac_c_preproc_warn_flag in '' yes
5778do
5779 # Use a header file that comes with gcc, so configuring glibc
5780 # with a fresh cross-compiler works.
5781 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5782 # <limits.h> exists even on freestanding compilers.
5783 # On the NeXT, cc -E runs the code through the compiler's parser,
5784 # not just through cpp. "Syntax error" is here to catch this case.
5785 cat >conftest.$ac_ext <<_ACEOF
5786/* confdefs.h. */
42ecbf5e 5787_ACEOF
d7040cdb
SE
5788cat confdefs.h >>conftest.$ac_ext
5789cat >>conftest.$ac_ext <<_ACEOF
5790/* end confdefs.h. */
5791#ifdef __STDC__
5792# include <limits.h>
5793#else
5794# include <assert.h>
5795#endif
5796 Syntax error
5797_ACEOF
5798if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42ecbf5e 5800 ac_status=$?
d7040cdb
SE
5801 grep -v '^ *+' conftest.er1 >conftest.err
5802 rm -f conftest.er1
5803 cat conftest.err >&5
42ecbf5e 5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
5805 (exit $ac_status); } >/dev/null; then
5806 if test -s conftest.err; then
5807 ac_cpp_err=$ac_c_preproc_warn_flag
5808 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5809 else
5810 ac_cpp_err=
5811 fi
e5a52504 5812else
d7040cdb 5813 ac_cpp_err=yes
e5a52504 5814fi
d7040cdb
SE
5815if test -z "$ac_cpp_err"; then
5816 :
5817else
5818 echo "$as_me: failed program was:" >&5
5819sed 's/^/| /' conftest.$ac_ext >&5
5820
5821 # Broken: fails on valid input.
5822continue
d15b04bd 5823fi
d7040cdb 5824rm -f conftest.err conftest.$ac_ext
d15b04bd 5825
d7040cdb
SE
5826 # OK, works on sane cases. Now check whether non-existent headers
5827 # can be detected and how.
5828 cat >conftest.$ac_ext <<_ACEOF
5829/* confdefs.h. */
5830_ACEOF
5831cat confdefs.h >>conftest.$ac_ext
5832cat >>conftest.$ac_ext <<_ACEOF
5833/* end confdefs.h. */
5834#include <ac_nonexistent.h>
5835_ACEOF
5836if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5837 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5838 ac_status=$?
5839 grep -v '^ *+' conftest.er1 >conftest.err
5840 rm -f conftest.er1
5841 cat conftest.err >&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); } >/dev/null; then
5844 if test -s conftest.err; then
5845 ac_cpp_err=$ac_c_preproc_warn_flag
5846 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5847 else
5848 ac_cpp_err=
5849 fi
5850else
5851 ac_cpp_err=yes
5852fi
5853if test -z "$ac_cpp_err"; then
5854 # Broken: success on invalid input.
5855continue
5856else
5857 echo "$as_me: failed program was:" >&5
5858sed 's/^/| /' conftest.$ac_ext >&5
5859
5860 # Passes both tests.
5861ac_preproc_ok=:
5862break
5863fi
5864rm -f conftest.err conftest.$ac_ext
5865
5866done
5867# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5868rm -f conftest.err conftest.$ac_ext
5869if $ac_preproc_ok; then
5870 break
5871fi
5872
5873 done
5874 ac_cv_prog_CPP=$CPP
5875
5876fi
5877 CPP=$ac_cv_prog_CPP
5878else
5879 ac_cv_prog_CPP=$CPP
5880fi
5881echo "$as_me:$LINENO: result: $CPP" >&5
5882echo "${ECHO_T}$CPP" >&6
5883ac_preproc_ok=false
5884for ac_c_preproc_warn_flag in '' yes
5885do
5886 # Use a header file that comes with gcc, so configuring glibc
5887 # with a fresh cross-compiler works.
5888 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5889 # <limits.h> exists even on freestanding compilers.
5890 # On the NeXT, cc -E runs the code through the compiler's parser,
5891 # not just through cpp. "Syntax error" is here to catch this case.
5892 cat >conftest.$ac_ext <<_ACEOF
5893/* confdefs.h. */
5894_ACEOF
5895cat confdefs.h >>conftest.$ac_ext
5896cat >>conftest.$ac_ext <<_ACEOF
5897/* end confdefs.h. */
5898#ifdef __STDC__
5899# include <limits.h>
5900#else
5901# include <assert.h>
5902#endif
5903 Syntax error
5904_ACEOF
5905if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5907 ac_status=$?
5908 grep -v '^ *+' conftest.er1 >conftest.err
5909 rm -f conftest.er1
5910 cat conftest.err >&5
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); } >/dev/null; then
5913 if test -s conftest.err; then
5914 ac_cpp_err=$ac_c_preproc_warn_flag
5915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5916 else
5917 ac_cpp_err=
5918 fi
5919else
5920 ac_cpp_err=yes
5921fi
5922if test -z "$ac_cpp_err"; then
5923 :
5924else
5925 echo "$as_me: failed program was:" >&5
5926sed 's/^/| /' conftest.$ac_ext >&5
5927
5928 # Broken: fails on valid input.
5929continue
5930fi
5931rm -f conftest.err conftest.$ac_ext
5932
5933 # OK, works on sane cases. Now check whether non-existent headers
5934 # can be detected and how.
5935 cat >conftest.$ac_ext <<_ACEOF
5936/* confdefs.h. */
5937_ACEOF
5938cat confdefs.h >>conftest.$ac_ext
5939cat >>conftest.$ac_ext <<_ACEOF
5940/* end confdefs.h. */
5941#include <ac_nonexistent.h>
5942_ACEOF
5943if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5945 ac_status=$?
5946 grep -v '^ *+' conftest.er1 >conftest.err
5947 rm -f conftest.er1
5948 cat conftest.err >&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); } >/dev/null; then
5951 if test -s conftest.err; then
5952 ac_cpp_err=$ac_c_preproc_warn_flag
5953 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5954 else
5955 ac_cpp_err=
5956 fi
5957else
5958 ac_cpp_err=yes
5959fi
5960if test -z "$ac_cpp_err"; then
5961 # Broken: success on invalid input.
5962continue
5963else
5964 echo "$as_me: failed program was:" >&5
5965sed 's/^/| /' conftest.$ac_ext >&5
5966
5967 # Passes both tests.
5968ac_preproc_ok=:
5969break
5970fi
5971rm -f conftest.err conftest.$ac_ext
5972
5973done
5974# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5975rm -f conftest.err conftest.$ac_ext
5976if $ac_preproc_ok; then
5977 :
5978else
5979 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5980See \`config.log' for more details." >&5
5981echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5982See \`config.log' for more details." >&2;}
5983 { (exit 1); exit 1; }; }
5984fi
5985
5986ac_ext=c
5987ac_cpp='$CPP $CPPFLAGS'
5988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5990ac_compiler_gnu=$ac_cv_c_compiler_gnu
5991
5992
5993echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5994echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5995if test "${ac_cv_header_stdc+set}" = set; then
42ecbf5e 5996 echo $ECHO_N "(cached) $ECHO_C" >&6
e5a52504 5997else
d7040cdb
SE
5998 cat >conftest.$ac_ext <<_ACEOF
5999/* confdefs.h. */
42ecbf5e 6000_ACEOF
d7040cdb
SE
6001cat confdefs.h >>conftest.$ac_ext
6002cat >>conftest.$ac_ext <<_ACEOF
6003/* end confdefs.h. */
6004#include <stdlib.h>
6005#include <stdarg.h>
6006#include <string.h>
6007#include <float.h>
6008
6009int
6010main ()
6011{
6012
6013 ;
6014 return 0;
6015}
6016_ACEOF
6017rm -f conftest.$ac_objext
6018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6019 (eval $ac_compile) 2>conftest.er1
42ecbf5e
DJ
6020 ac_status=$?
6021 grep -v '^ *+' conftest.er1 >conftest.err
6022 rm -f conftest.er1
6023 cat conftest.err >&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); } &&
b7d4af3a
JW
6026 { ac_try='test -z "$ac_c_werror_flag"
6027 || test ! -s conftest.err'
42ecbf5e
DJ
6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029 (eval $ac_try) 2>&5
6030 ac_status=$?
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; } &&
d7040cdb 6033 { ac_try='test -s conftest.$ac_objext'
42ecbf5e
DJ
6034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6035 (eval $ac_try) 2>&5
6036 ac_status=$?
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); }; }; then
d7040cdb 6039 ac_cv_header_stdc=yes
d15b04bd 6040else
42ecbf5e
DJ
6041 echo "$as_me: failed program was:" >&5
6042sed 's/^/| /' conftest.$ac_ext >&5
6043
d7040cdb 6044ac_cv_header_stdc=no
e5a52504 6045fi
d7040cdb 6046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 6047
d7040cdb
SE
6048if test $ac_cv_header_stdc = yes; then
6049 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6050 cat >conftest.$ac_ext <<_ACEOF
6051/* confdefs.h. */
42ecbf5e 6052_ACEOF
d7040cdb
SE
6053cat confdefs.h >>conftest.$ac_ext
6054cat >>conftest.$ac_ext <<_ACEOF
6055/* end confdefs.h. */
6056#include <string.h>
d15b04bd 6057
d7040cdb
SE
6058_ACEOF
6059if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6060 $EGREP "memchr" >/dev/null 2>&1; then
6061 :
6062else
6063 ac_cv_header_stdc=no
d15b04bd 6064fi
d7040cdb
SE
6065rm -f conftest*
6066
42ecbf5e 6067fi
e5a52504 6068
d7040cdb
SE
6069if test $ac_cv_header_stdc = yes; then
6070 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6071 cat >conftest.$ac_ext <<_ACEOF
6072/* confdefs.h. */
6073_ACEOF
6074cat confdefs.h >>conftest.$ac_ext
6075cat >>conftest.$ac_ext <<_ACEOF
6076/* end confdefs.h. */
6077#include <stdlib.h>
7148cc28 6078
d7040cdb
SE
6079_ACEOF
6080if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6081 $EGREP "free" >/dev/null 2>&1; then
6082 :
6083else
6084 ac_cv_header_stdc=no
20e95c23 6085fi
d7040cdb
SE
6086rm -f conftest*
6087
6088fi
6089
6090if test $ac_cv_header_stdc = yes; then
6091 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6092 if test "$cross_compiling" = yes; then
6093 :
e5a52504 6094else
d7040cdb
SE
6095 cat >conftest.$ac_ext <<_ACEOF
6096/* confdefs.h. */
6097_ACEOF
6098cat confdefs.h >>conftest.$ac_ext
6099cat >>conftest.$ac_ext <<_ACEOF
6100/* end confdefs.h. */
6101#include <ctype.h>
6102#if ((' ' & 0x0FF) == 0x020)
6103# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6104# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6105#else
6106# define ISLOWER(c) \
6107 (('a' <= (c) && (c) <= 'i') \
6108 || ('j' <= (c) && (c) <= 'r') \
6109 || ('s' <= (c) && (c) <= 'z'))
6110# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6111#endif
6112
6113#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6114int
6115main ()
6116{
6117 int i;
6118 for (i = 0; i < 256; i++)
6119 if (XOR (islower (i), ISLOWER (i))
6120 || toupper (i) != TOUPPER (i))
6121 exit(2);
6122 exit (0);
6123}
6124_ACEOF
6125rm -f conftest$ac_exeext
6126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6127 (eval $ac_link) 2>&5
6128 ac_status=$?
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6132 (eval $ac_try) 2>&5
6133 ac_status=$?
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); }; }; then
6136 :
6137else
6138 echo "$as_me: program exited with status $ac_status" >&5
6139echo "$as_me: failed program was:" >&5
6140sed 's/^/| /' conftest.$ac_ext >&5
6141
6142( exit $ac_status )
6143ac_cv_header_stdc=no
6144fi
6145rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6146fi
6147fi
6148fi
6149echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6150echo "${ECHO_T}$ac_cv_header_stdc" >&6
6151if test $ac_cv_header_stdc = yes; then
20e95c23
DJ
6152
6153cat >>confdefs.h <<\_ACEOF
d7040cdb 6154#define STDC_HEADERS 1
20e95c23
DJ
6155_ACEOF
6156
d7040cdb 6157fi
20e95c23 6158
d7040cdb 6159# On IRIX 5.3, sys/types and inttypes.h are conflicting.
20e95c23
DJ
6160
6161
20e95c23 6162
20e95c23 6163
20e95c23 6164
20e95c23 6165
20e95c23 6166
20e95c23
DJ
6167
6168
d7040cdb
SE
6169for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6170 inttypes.h stdint.h unistd.h
6171do
6172as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6173echo "$as_me:$LINENO: checking for $ac_header" >&5
6174echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6175if eval "test \"\${$as_ac_Header+set}\" = set"; then
6176 echo $ECHO_N "(cached) $ECHO_C" >&6
6177else
6178 cat >conftest.$ac_ext <<_ACEOF
6179/* confdefs.h. */
6180_ACEOF
6181cat confdefs.h >>conftest.$ac_ext
6182cat >>conftest.$ac_ext <<_ACEOF
6183/* end confdefs.h. */
6184$ac_includes_default
20e95c23 6185
d7040cdb
SE
6186#include <$ac_header>
6187_ACEOF
6188rm -f conftest.$ac_objext
6189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6190 (eval $ac_compile) 2>conftest.er1
6191 ac_status=$?
6192 grep -v '^ *+' conftest.er1 >conftest.err
6193 rm -f conftest.er1
6194 cat conftest.err >&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); } &&
6197 { ac_try='test -z "$ac_c_werror_flag"
6198 || test ! -s conftest.err'
6199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200 (eval $ac_try) 2>&5
6201 ac_status=$?
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); }; } &&
6204 { ac_try='test -s conftest.$ac_objext'
6205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6206 (eval $ac_try) 2>&5
6207 ac_status=$?
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); }; }; then
6210 eval "$as_ac_Header=yes"
d15b04bd 6211else
d7040cdb
SE
6212 echo "$as_me: failed program was:" >&5
6213sed 's/^/| /' conftest.$ac_ext >&5
20e95c23 6214
d7040cdb
SE
6215eval "$as_ac_Header=no"
6216fi
6217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6218fi
6219echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6220echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6221if test `eval echo '${'$as_ac_Header'}'` = yes; then
6222 cat >>confdefs.h <<_ACEOF
6223#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6224_ACEOF
20e95c23 6225
d7040cdb 6226fi
20e95c23 6227
d7040cdb 6228done
20e95c23
DJ
6229
6230
6231
d7040cdb
SE
6232for ac_header in dlfcn.h
6233do
6234as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6235echo "$as_me:$LINENO: checking for $ac_header" >&5
6236echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6237if eval "test \"\${$as_ac_Header+set}\" = set"; then
6238 echo $ECHO_N "(cached) $ECHO_C" >&6
6239else
6240 cat >conftest.$ac_ext <<_ACEOF
6241/* confdefs.h. */
6242_ACEOF
6243cat confdefs.h >>conftest.$ac_ext
6244cat >>conftest.$ac_ext <<_ACEOF
6245/* end confdefs.h. */
6246$ac_includes_default
42ecbf5e 6247
d7040cdb
SE
6248#include <$ac_header>
6249_ACEOF
6250rm -f conftest.$ac_objext
6251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6252 (eval $ac_compile) 2>conftest.er1
6253 ac_status=$?
6254 grep -v '^ *+' conftest.er1 >conftest.err
6255 rm -f conftest.er1
6256 cat conftest.err >&5
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); } &&
6259 { ac_try='test -z "$ac_c_werror_flag"
6260 || test ! -s conftest.err'
6261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6262 (eval $ac_try) 2>&5
6263 ac_status=$?
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); }; } &&
6266 { ac_try='test -s conftest.$ac_objext'
6267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6268 (eval $ac_try) 2>&5
6269 ac_status=$?
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); }; }; then
6272 eval "$as_ac_Header=yes"
20e95c23 6273else
d7040cdb
SE
6274 echo "$as_me: failed program was:" >&5
6275sed 's/^/| /' conftest.$ac_ext >&5
6276
6277eval "$as_ac_Header=no"
d15b04bd 6278fi
d7040cdb
SE
6279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6280fi
6281echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6282echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6283if test `eval echo '${'$as_ac_Header'}'` = yes; then
6284 cat >>confdefs.h <<_ACEOF
6285#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6286_ACEOF
20e95c23 6287
d7040cdb
SE
6288fi
6289
6290done
6291
6292
6293
6294# This can be used to rebuild libtool when needed
6295LIBTOOL_DEPS="$ltmain"
6296
6297# Always use our own libtool.
6298LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324test -z "$LN_S" && LN_S="ln -s"
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339if test -n "${ZSH_VERSION+set}" ; then
6340 setopt NO_GLOB_SUBST
6341fi
6342
6343echo "$as_me:$LINENO: checking for objdir" >&5
6344echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6345if test "${lt_cv_objdir+set}" = set; then
20e95c23
DJ
6346 echo $ECHO_N "(cached) $ECHO_C" >&6
6347else
d7040cdb
SE
6348 rm -f .libs 2>/dev/null
6349mkdir .libs 2>/dev/null
6350if test -d .libs; then
6351 lt_cv_objdir=.libs
42ecbf5e 6352else
d7040cdb
SE
6353 # MS-DOS does not allow filenames that begin with a dot.
6354 lt_cv_objdir=_libs
6355fi
6356rmdir .libs 2>/dev/null
42ecbf5e 6357fi
d7040cdb
SE
6358echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6359echo "${ECHO_T}$lt_cv_objdir" >&6
6360objdir=$lt_cv_objdir
42ecbf5e 6361
d7040cdb
SE
6362
6363
6364
6365
6366cat >>confdefs.h <<_ACEOF
6367#define LT_OBJDIR "$lt_cv_objdir/"
6368_ACEOF
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386case $host_os in
6387aix3*)
6388 # AIX sometimes has problems with the GCC collect2 program. For some
6389 # reason, if we set the COLLECT_NAMES environment variable, the problems
6390 # vanish in a puff of smoke.
6391 if test "X${COLLECT_NAMES+set}" != Xset; then
6392 COLLECT_NAMES=
6393 export COLLECT_NAMES
6394 fi
6395 ;;
6396esac
6397
6398# Sed substitution that helps us do robust quoting. It backslashifies
6399# metacharacters that are still active within double-quoted strings.
6400sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6401
6402# Same as above, but do not quote variable references.
6403double_quote_subst='s/\(["`\\]\)/\\\1/g'
6404
6405# Sed substitution to delay expansion of an escaped shell variable in a
6406# double_quote_subst'ed string.
6407delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6408
6409# Sed substitution to delay expansion of an escaped single quote.
6410delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6411
6412# Sed substitution to avoid accidental globbing in evaled expressions
6413no_glob_subst='s/\*/\\\*/g'
6414
6415# Global variables:
6416ofile=libtool
6417can_build_shared=yes
6418
6419# All known linkers require a `.a' archive for static linking (except MSVC,
6420# which needs '.lib').
6421libext=a
6422
6423with_gnu_ld="$lt_cv_prog_gnu_ld"
6424
6425old_CC="$CC"
6426old_CFLAGS="$CFLAGS"
6427
6428# Set sane defaults for various variables
6429test -z "$CC" && CC=cc
6430test -z "$LTCC" && LTCC=$CC
6431test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6432test -z "$LD" && LD=ld
6433test -z "$ac_objext" && ac_objext=o
6434
6435for cc_temp in $compiler""; do
6436 case $cc_temp in
6437 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6438 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6439 \-*) ;;
6440 *) break;;
6441 esac
6442done
6443cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6444
6445
6446# Only perform the check for file, if the check method requires it
6447test -z "$MAGIC_CMD" && MAGIC_CMD=file
6448case $deplibs_check_method in
6449file_magic*)
6450 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6451 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6452echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6453if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
42ecbf5e
DJ
6454 echo $ECHO_N "(cached) $ECHO_C" >&6
6455else
d7040cdb
SE
6456 case $MAGIC_CMD in
6457[\\/*] | ?:[\\/]*)
6458 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
20e95c23 6459 ;;
d7040cdb
SE
6460*)
6461 lt_save_MAGIC_CMD="$MAGIC_CMD"
6462 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6463 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6464 for ac_dir in $ac_dummy; do
6465 IFS="$lt_save_ifs"
6466 test -z "$ac_dir" && ac_dir=.
6467 if test -f $ac_dir/${ac_tool_prefix}file; then
6468 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6469 if test -n "$file_magic_test_file"; then
6470 case $deplibs_check_method in
6471 "file_magic "*)
6472 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6473 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6474 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6475 $EGREP "$file_magic_regex" > /dev/null; then
6476 :
6477 else
6478 cat <<_LT_EOF 1>&2
42ecbf5e 6479
d7040cdb
SE
6480*** Warning: the command libtool uses to detect shared libraries,
6481*** $file_magic_cmd, produces output that libtool cannot recognize.
6482*** The result is that libtool may fail to recognize shared libraries
6483*** as such. This will affect the creation of libtool libraries that
6484*** depend on shared libraries, but programs linked with such libtool
6485*** libraries will work regardless of this problem. Nevertheless, you
6486*** may want to report the problem to your system manager and/or to
6487*** bug-libtool@gnu.org
6488
6489_LT_EOF
6490 fi ;;
6491 esac
6492 fi
6493 break
6494 fi
6495 done
6496 IFS="$lt_save_ifs"
6497 MAGIC_CMD="$lt_save_MAGIC_CMD"
20e95c23
DJ
6498 ;;
6499esac
42ecbf5e 6500fi
20e95c23 6501
d7040cdb
SE
6502MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6503if test -n "$MAGIC_CMD"; then
6504 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6505echo "${ECHO_T}$MAGIC_CMD" >&6
42ecbf5e
DJ
6506else
6507 echo "$as_me:$LINENO: result: no" >&5
6508echo "${ECHO_T}no" >&6
6509fi
6510
20e95c23
DJ
6511
6512
42ecbf5e 6513
20e95c23 6514
d7040cdb
SE
6515if test -z "$lt_cv_path_MAGIC_CMD"; then
6516 if test -n "$ac_tool_prefix"; then
6517 echo "$as_me:$LINENO: checking for file" >&5
6518echo $ECHO_N "checking for file... $ECHO_C" >&6
6519if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
42ecbf5e
DJ
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6521else
d7040cdb
SE
6522 case $MAGIC_CMD in
6523[\\/*] | ?:[\\/]*)
6524 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6525 ;;
6526*)
6527 lt_save_MAGIC_CMD="$MAGIC_CMD"
6528 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6529 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6530 for ac_dir in $ac_dummy; do
6531 IFS="$lt_save_ifs"
6532 test -z "$ac_dir" && ac_dir=.
6533 if test -f $ac_dir/file; then
6534 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6535 if test -n "$file_magic_test_file"; then
6536 case $deplibs_check_method in
6537 "file_magic "*)
6538 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6539 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6540 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6541 $EGREP "$file_magic_regex" > /dev/null; then
6542 :
6543 else
6544 cat <<_LT_EOF 1>&2
6545
6546*** Warning: the command libtool uses to detect shared libraries,
6547*** $file_magic_cmd, produces output that libtool cannot recognize.
6548*** The result is that libtool may fail to recognize shared libraries
6549*** as such. This will affect the creation of libtool libraries that
6550*** depend on shared libraries, but programs linked with such libtool
6551*** libraries will work regardless of this problem. Nevertheless, you
6552*** may want to report the problem to your system manager and/or to
6553*** bug-libtool@gnu.org
6554
6555_LT_EOF
6556 fi ;;
6557 esac
6558 fi
6559 break
6560 fi
6561 done
6562 IFS="$lt_save_ifs"
6563 MAGIC_CMD="$lt_save_MAGIC_CMD"
6564 ;;
20e95c23
DJ
6565esac
6566fi
d7040cdb
SE
6567
6568MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6569if test -n "$MAGIC_CMD"; then
6570 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6571echo "${ECHO_T}$MAGIC_CMD" >&6
20e95c23
DJ
6572else
6573 echo "$as_me:$LINENO: result: no" >&5
6574echo "${ECHO_T}no" >&6
6575fi
6576
20e95c23 6577
42ecbf5e 6578 else
d7040cdb 6579 MAGIC_CMD=:
42ecbf5e 6580 fi
42ecbf5e 6581fi
42ecbf5e 6582
20e95c23 6583 fi
d7040cdb
SE
6584 ;;
6585esac
42ecbf5e 6586
d7040cdb 6587# Use C for the default configuration in the libtool script
42ecbf5e 6588
d7040cdb
SE
6589lt_save_CC="$CC"
6590ac_ext=c
6591ac_cpp='$CPP $CPPFLAGS'
6592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6594ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e 6595
42ecbf5e 6596
d7040cdb
SE
6597# Source file extension for C test sources.
6598ac_ext=c
42ecbf5e 6599
d7040cdb
SE
6600# Object file extension for compiled C test sources.
6601objext=o
6602objext=$objext
42ecbf5e 6603
d7040cdb
SE
6604# Code to be used in simple compile tests
6605lt_simple_compile_test_code="int some_variable = 0;"
42ecbf5e 6606
d7040cdb
SE
6607# Code to be used in simple link tests
6608lt_simple_link_test_code='int main(){return(0);}'
42ecbf5e 6609
ac48eca1 6610
42ecbf5e 6611
42ecbf5e 6612
d5fbea21 6613
d5fbea21
DJ
6614
6615
d7040cdb
SE
6616# If no C compiler was specified, use CC.
6617LTCC=${LTCC-"$CC"}
20e95c23 6618
d7040cdb
SE
6619# If no C compiler flags were specified, use CFLAGS.
6620LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
42ecbf5e 6621
d7040cdb
SE
6622# Allow CC to be a program name with arguments.
6623compiler=$CC
252b5132 6624
d7040cdb
SE
6625# Save the default compiler, since it gets overwritten when the other
6626# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6627compiler_DEFAULT=$CC
42ecbf5e 6628
d7040cdb
SE
6629# save warnings/boilerplate of simple test code
6630ac_outfile=conftest.$ac_objext
6631echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6632eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6633_lt_compiler_boilerplate=`cat conftest.err`
6634$RM conftest*
252b5132 6635
d7040cdb
SE
6636ac_outfile=conftest.$ac_objext
6637echo "$lt_simple_link_test_code" >conftest.$ac_ext
6638eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6639_lt_linker_boilerplate=`cat conftest.err`
6640$RM conftest*
252b5132 6641
42ecbf5e 6642
d7040cdb
SE
6643## CAVEAT EMPTOR:
6644## There is no encapsulation within the following macros, do not change
6645## the running order or otherwise move them around unless you know exactly
6646## what you are doing...
6647if test -n "$compiler"; then
252b5132 6648
d7040cdb 6649lt_prog_compiler_no_builtin_flag=
252b5132 6650
d7040cdb
SE
6651if test "$GCC" = yes; then
6652 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
d15b04bd 6653
d7040cdb
SE
6654 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6655echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6656if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20e95c23 6657 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6658else
d7040cdb
SE
6659 lt_cv_prog_compiler_rtti_exceptions=no
6660 ac_outfile=conftest.$ac_objext
6661 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6662 lt_compiler_flag="-fno-rtti -fno-exceptions"
6663 # Insert the option either (1) after the last *FLAGS variable, or
6664 # (2) before a word containing "conftest.", or (3) at the end.
6665 # Note that $ac_compile itself does not contain backslashes and begins
6666 # with a dollar sign (not a hyphen), so the echo should work correctly.
6667 # The option is referenced via a variable to avoid confusing sed.
6668 lt_compile=`echo "$ac_compile" | $SED \
6669 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6670 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6671 -e 's:$: $lt_compiler_flag:'`
58c85be7 6672 (eval echo "\"\$as_me:6672: $lt_compile\"" >&5)
d7040cdb
SE
6673 (eval "$lt_compile" 2>conftest.err)
6674 ac_status=$?
6675 cat conftest.err >&5
58c85be7 6676 echo "$as_me:6676: \$? = $ac_status" >&5
d7040cdb
SE
6677 if (exit $ac_status) && test -s "$ac_outfile"; then
6678 # The compiler can only warn and ignore the option if not recognized
6679 # So say no if there are warnings other than the usual output.
6680 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6681 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6682 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6683 lt_cv_prog_compiler_rtti_exceptions=yes
6684 fi
6685 fi
6686 $RM conftest*
42ecbf5e 6687
252b5132 6688fi
d7040cdb
SE
6689echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6690echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6691
6692if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6693 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
20e95c23 6694else
d7040cdb 6695 :
252b5132 6696fi
252b5132
RH
6697
6698fi
d7040cdb
SE
6699
6700
6701
6702
6703
6704
6705 lt_prog_compiler_wl=
6706lt_prog_compiler_pic=
6707lt_prog_compiler_static=
6708
6709echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6710echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6711
6712 if test "$GCC" = yes; then
6713 lt_prog_compiler_wl='-Wl,'
6714 lt_prog_compiler_static='-static'
6715
6716 case $host_os in
6717 aix*)
6718 # All AIX code is PIC.
6719 if test "$host_cpu" = ia64; then
6720 # AIX 5 now supports IA64 processor
6721 lt_prog_compiler_static='-Bstatic'
6722 fi
6723 ;;
6724
6725 amigaos*)
6726 if test "$host_cpu" = m68k; then
6727 # FIXME: we need at least 68020 code to build shared libraries, but
6728 # adding the `-m68020' flag to GCC prevents building anything better,
6729 # like `-m68040'.
6730 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6731 fi
6732 ;;
6733
6734 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6735 # PIC is the default for these OSes.
6736 ;;
6737
6738 mingw* | cygwin* | pw32* | os2*)
6739 # This hack is so that the source file can tell whether it is being
6740 # built for inclusion in a dll (and should export symbols for example).
6741 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6742 # (--disable-auto-import) libraries
6743 lt_prog_compiler_pic='-DDLL_EXPORT'
6744 ;;
6745
6746 darwin* | rhapsody*)
6747 # PIC is the default on this platform
6748 # Common symbols not allowed in MH_DYLIB files
6749 lt_prog_compiler_pic='-fno-common'
6750 ;;
6751
6752 hpux*)
6753 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6754 # not for PA HP-UX.
6755 case $host_cpu in
6756 hppa*64*|ia64*)
6757 # +Z the default
6758 ;;
6759 *)
6760 lt_prog_compiler_pic='-fPIC'
6761 ;;
6762 esac
6763 ;;
6764
6765 interix[3-9]*)
6766 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6767 # Instead, we relocate shared libraries at runtime.
6768 ;;
6769
6770 msdosdjgpp*)
6771 # Just because we use GCC doesn't mean we suddenly get shared libraries
6772 # on systems that don't support them.
6773 lt_prog_compiler_can_build_shared=no
6774 enable_shared=no
6775 ;;
6776
6777 *nto* | *qnx*)
6778 # QNX uses GNU C++, but need to define -shared option too, otherwise
6779 # it will coredump.
6780 lt_prog_compiler_pic='-fPIC -shared'
6781 ;;
6782
6783 sysv4*MP*)
6784 if test -d /usr/nec; then
6785 lt_prog_compiler_pic=-Kconform_pic
6786 fi
6787 ;;
6788
6789 *)
6790 lt_prog_compiler_pic='-fPIC'
6791 ;;
6792 esac
6793 else
6794 # PORTME Check for flag to pass linker flags through the system compiler.
6795 case $host_os in
6796 aix*)
6797 lt_prog_compiler_wl='-Wl,'
6798 if test "$host_cpu" = ia64; then
6799 # AIX 5 now supports IA64 processor
6800 lt_prog_compiler_static='-Bstatic'
6801 else
6802 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6803 fi
6804 ;;
6805 darwin*)
6806 # PIC is the default on this platform
6807 # Common symbols not allowed in MH_DYLIB files
6808 case $cc_basename in
6809 xlc*)
6810 lt_prog_compiler_pic='-qnocommon'
6811 lt_prog_compiler_wl='-Wl,'
6812 ;;
6813 esac
6814 ;;
6815
6816 mingw* | cygwin* | pw32* | os2*)
6817 # This hack is so that the source file can tell whether it is being
6818 # built for inclusion in a dll (and should export symbols for example).
6819 lt_prog_compiler_pic='-DDLL_EXPORT'
6820 ;;
6821
6822 hpux9* | hpux10* | hpux11*)
6823 lt_prog_compiler_wl='-Wl,'
6824 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6825 # not for PA HP-UX.
6826 case $host_cpu in
6827 hppa*64*|ia64*)
6828 # +Z the default
6829 ;;
6830 *)
6831 lt_prog_compiler_pic='+Z'
6832 ;;
6833 esac
6834 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6835 lt_prog_compiler_static='${wl}-a ${wl}archive'
6836 ;;
6837
6838 irix5* | irix6* | nonstopux*)
6839 lt_prog_compiler_wl='-Wl,'
6840 # PIC (with -KPIC) is the default.
6841 lt_prog_compiler_static='-non_shared'
6842 ;;
6843
6844 linux* | k*bsd*-gnu)
6845 case $cc_basename in
6846 icc* | ecc*)
6847 lt_prog_compiler_wl='-Wl,'
6848 lt_prog_compiler_pic='-KPIC'
6849 lt_prog_compiler_static='-static'
6850 ;;
6851 pgcc* | pgf77* | pgf90* | pgf95*)
6852 # Portland Group compilers (*not* the Pentium gcc compiler,
6853 # which looks to be a dead project)
6854 lt_prog_compiler_wl='-Wl,'
6855 lt_prog_compiler_pic='-fpic'
6856 lt_prog_compiler_static='-Bstatic'
6857 ;;
6858 ccc*)
6859 lt_prog_compiler_wl='-Wl,'
6860 # All Alpha code is PIC.
6861 lt_prog_compiler_static='-non_shared'
6862 ;;
6863 *)
6864 case `$CC -V 2>&1 | sed 5q` in
6865 *Sun\ C*)
6866 # Sun C 5.9
6867 lt_prog_compiler_pic='-KPIC'
6868 lt_prog_compiler_static='-Bstatic'
6869 lt_prog_compiler_wl='-Wl,'
6870 ;;
6871 *Sun\ F*)
6872 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6873 lt_prog_compiler_pic='-KPIC'
6874 lt_prog_compiler_static='-Bstatic'
6875 lt_prog_compiler_wl=''
6876 ;;
6877 esac
6878 ;;
6879 esac
6880 ;;
6881
6882 newsos6)
6883 lt_prog_compiler_pic='-KPIC'
6884 lt_prog_compiler_static='-Bstatic'
6885 ;;
6886
6887 *nto* | *qnx*)
6888 # QNX uses GNU C++, but need to define -shared option too, otherwise
6889 # it will coredump.
6890 lt_prog_compiler_pic='-fPIC -shared'
6891 ;;
6892
6893 osf3* | osf4* | osf5*)
6894 lt_prog_compiler_wl='-Wl,'
6895 # All OSF/1 code is PIC.
6896 lt_prog_compiler_static='-non_shared'
6897 ;;
6898
6899 rdos*)
6900 lt_prog_compiler_static='-non_shared'
6901 ;;
6902
6903 solaris*)
6904 lt_prog_compiler_pic='-KPIC'
6905 lt_prog_compiler_static='-Bstatic'
6906 case $cc_basename in
6907 f77* | f90* | f95*)
6908 lt_prog_compiler_wl='-Qoption ld ';;
6909 *)
6910 lt_prog_compiler_wl='-Wl,';;
6911 esac
6912 ;;
6913
6914 sunos4*)
6915 lt_prog_compiler_wl='-Qoption ld '
6916 lt_prog_compiler_pic='-PIC'
6917 lt_prog_compiler_static='-Bstatic'
6918 ;;
6919
6920 sysv4 | sysv4.2uw2* | sysv4.3*)
6921 lt_prog_compiler_wl='-Wl,'
6922 lt_prog_compiler_pic='-KPIC'
6923 lt_prog_compiler_static='-Bstatic'
6924 ;;
6925
6926 sysv4*MP*)
6927 if test -d /usr/nec ;then
6928 lt_prog_compiler_pic='-Kconform_pic'
6929 lt_prog_compiler_static='-Bstatic'
6930 fi
6931 ;;
6932
6933 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6934 lt_prog_compiler_wl='-Wl,'
6935 lt_prog_compiler_pic='-KPIC'
6936 lt_prog_compiler_static='-Bstatic'
6937 ;;
6938
6939 unicos*)
6940 lt_prog_compiler_wl='-Wl,'
6941 lt_prog_compiler_can_build_shared=no
6942 ;;
6943
6944 uts4*)
6945 lt_prog_compiler_pic='-pic'
6946 lt_prog_compiler_static='-Bstatic'
6947 ;;
6948
6949 *)
6950 lt_prog_compiler_can_build_shared=no
6951 ;;
6952 esac
6953 fi
6954
6955case $host_os in
6956 # For platforms which do not support PIC, -DPIC is meaningless:
6957 *djgpp*)
6958 lt_prog_compiler_pic=
6959 ;;
6960 *)
6961 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6962 ;;
6963esac
6964echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6965echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6966
6967
6968
6969
6970
6971
6972#
6973# Check to make sure the PIC flag actually works.
6974#
6975if test -n "$lt_prog_compiler_pic"; then
6976 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6977echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6978if test "${lt_prog_compiler_pic_works+set}" = set; then
42ecbf5e
DJ
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6980else
d7040cdb
SE
6981 lt_prog_compiler_pic_works=no
6982 ac_outfile=conftest.$ac_objext
6983 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6984 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6985 # Insert the option either (1) after the last *FLAGS variable, or
6986 # (2) before a word containing "conftest.", or (3) at the end.
6987 # Note that $ac_compile itself does not contain backslashes and begins
6988 # with a dollar sign (not a hyphen), so the echo should work correctly.
6989 # The option is referenced via a variable to avoid confusing sed.
6990 lt_compile=`echo "$ac_compile" | $SED \
6991 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6992 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6993 -e 's:$: $lt_compiler_flag:'`
58c85be7 6994 (eval echo "\"\$as_me:6994: $lt_compile\"" >&5)
d7040cdb
SE
6995 (eval "$lt_compile" 2>conftest.err)
6996 ac_status=$?
6997 cat conftest.err >&5
58c85be7 6998 echo "$as_me:6998: \$? = $ac_status" >&5
d7040cdb
SE
6999 if (exit $ac_status) && test -s "$ac_outfile"; then
7000 # The compiler can only warn and ignore the option if not recognized
7001 # So say no if there are warnings other than the usual output.
7002 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7003 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7004 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7005 lt_prog_compiler_pic_works=yes
7006 fi
7007 fi
7008 $RM conftest*
42ecbf5e 7009
252b5132 7010fi
d7040cdb
SE
7011echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7012echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7013
7014if test x"$lt_prog_compiler_pic_works" = xyes; then
7015 case $lt_prog_compiler_pic in
7016 "" | " "*) ;;
7017 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7018 esac
252b5132 7019else
d7040cdb
SE
7020 lt_prog_compiler_pic=
7021 lt_prog_compiler_can_build_shared=no
252b5132 7022fi
252b5132
RH
7023
7024fi
42ecbf5e 7025
d7040cdb
SE
7026
7027
7028
7029
7030
7031#
7032# Check to make sure the static flag actually works.
7033#
7034wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7035echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7036echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7037if test "${lt_prog_compiler_static_works+set}" = set; then
20e95c23 7038 echo $ECHO_N "(cached) $ECHO_C" >&6
42ecbf5e 7039else
d7040cdb
SE
7040 lt_prog_compiler_static_works=no
7041 save_LDFLAGS="$LDFLAGS"
7042 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7043 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7044 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7045 # The linker can only warn and ignore the option if not recognized
7046 # So say no if there are warnings
7047 if test -s conftest.err; then
7048 # Append any errors to the config.log.
7049 cat conftest.err 1>&5
7050 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7051 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7052 if diff conftest.exp conftest.er2 >/dev/null; then
7053 lt_prog_compiler_static_works=yes
7054 fi
7055 else
7056 lt_prog_compiler_static_works=yes
7057 fi
7058 fi
7059 $RM conftest*
7060 LDFLAGS="$save_LDFLAGS"
42ecbf5e 7061
42ecbf5e 7062fi
d7040cdb
SE
7063echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7064echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7065
7066if test x"$lt_prog_compiler_static_works" = xyes; then
7067 :
7068else
7069 lt_prog_compiler_static=
42ecbf5e 7070fi
42ecbf5e 7071
252b5132 7072
252b5132 7073
42ecbf5e 7074
252b5132 7075
20e95c23 7076
d7040cdb
SE
7077
7078 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7079echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7080if test "${lt_cv_prog_compiler_c_o+set}" = set; then
42ecbf5e 7081 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7082else
d7040cdb
SE
7083 lt_cv_prog_compiler_c_o=no
7084 $RM -r conftest 2>/dev/null
7085 mkdir conftest
7086 cd conftest
7087 mkdir out
7088 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7089
7090 lt_compiler_flag="-o out/conftest2.$ac_objext"
7091 # Insert the option either (1) after the last *FLAGS variable, or
7092 # (2) before a word containing "conftest.", or (3) at the end.
7093 # Note that $ac_compile itself does not contain backslashes and begins
7094 # with a dollar sign (not a hyphen), so the echo should work correctly.
7095 lt_compile=`echo "$ac_compile" | $SED \
7096 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7097 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7098 -e 's:$: $lt_compiler_flag:'`
58c85be7 7099 (eval echo "\"\$as_me:7099: $lt_compile\"" >&5)
d7040cdb
SE
7100 (eval "$lt_compile" 2>out/conftest.err)
7101 ac_status=$?
7102 cat out/conftest.err >&5
58c85be7 7103 echo "$as_me:7103: \$? = $ac_status" >&5
d7040cdb
SE
7104 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7105 then
7106 # The compiler can only warn and ignore the option if not recognized
7107 # So say no if there are warnings
7108 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7109 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7110 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7111 lt_cv_prog_compiler_c_o=yes
7112 fi
7113 fi
7114 chmod u+w . 2>&5
7115 $RM conftest*
7116 # SGI C++ compiler will create directory out/ii_files/ for
7117 # template instantiation
7118 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7119 $RM out/* && rmdir out
7120 cd ..
7121 $RM -r conftest
7122 $RM conftest*
7123
252b5132 7124fi
d7040cdb
SE
7125echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7126echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
42ecbf5e 7127
20e95c23 7128
20e95c23
DJ
7129
7130
d7040cdb
SE
7131
7132
7133 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7134echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7135if test "${lt_cv_prog_compiler_c_o+set}" = set; then
42ecbf5e
DJ
7136 echo $ECHO_N "(cached) $ECHO_C" >&6
7137else
d7040cdb
SE
7138 lt_cv_prog_compiler_c_o=no
7139 $RM -r conftest 2>/dev/null
7140 mkdir conftest
7141 cd conftest
7142 mkdir out
7143 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7144
7145 lt_compiler_flag="-o out/conftest2.$ac_objext"
7146 # Insert the option either (1) after the last *FLAGS variable, or
7147 # (2) before a word containing "conftest.", or (3) at the end.
7148 # Note that $ac_compile itself does not contain backslashes and begins
7149 # with a dollar sign (not a hyphen), so the echo should work correctly.
7150 lt_compile=`echo "$ac_compile" | $SED \
7151 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7152 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7153 -e 's:$: $lt_compiler_flag:'`
58c85be7 7154 (eval echo "\"\$as_me:7154: $lt_compile\"" >&5)
d7040cdb
SE
7155 (eval "$lt_compile" 2>out/conftest.err)
7156 ac_status=$?
7157 cat out/conftest.err >&5
58c85be7 7158 echo "$as_me:7158: \$? = $ac_status" >&5
d7040cdb
SE
7159 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7160 then
7161 # The compiler can only warn and ignore the option if not recognized
7162 # So say no if there are warnings
7163 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7164 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7165 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7166 lt_cv_prog_compiler_c_o=yes
7167 fi
7168 fi
7169 chmod u+w . 2>&5
7170 $RM conftest*
7171 # SGI C++ compiler will create directory out/ii_files/ for
7172 # template instantiation
7173 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7174 $RM out/* && rmdir out
7175 cd ..
7176 $RM -r conftest
7177 $RM conftest*
7178
7179fi
7180echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7181echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7182
7183
7184
7185
7186hard_links="nottested"
7187if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7188 # do not overwrite the value of need_locks provided by the user
7189 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7190echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7191 hard_links=yes
7192 $RM conftest*
7193 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7194 touch conftest.a
7195 ln conftest.a conftest.b 2>&5 || hard_links=no
7196 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7197 echo "$as_me:$LINENO: result: $hard_links" >&5
7198echo "${ECHO_T}$hard_links" >&6
7199 if test "$hard_links" = no; then
7200 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7201echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7202 need_locks=warn
7203 fi
7204else
7205 need_locks=no
7206fi
7207
7208
7209
7210
7211
7212
7213 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7214echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7215
7216 runpath_var=
7217 allow_undefined_flag=
7218 always_export_symbols=no
7219 archive_cmds=
7220 archive_expsym_cmds=
7221 compiler_needs_object=no
7222 enable_shared_with_static_runtimes=no
7223 export_dynamic_flag_spec=
7224 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7225 hardcode_automatic=no
7226 hardcode_direct=no
7227 hardcode_direct_absolute=no
7228 hardcode_libdir_flag_spec=
7229 hardcode_libdir_flag_spec_ld=
7230 hardcode_libdir_separator=
7231 hardcode_minus_L=no
7232 hardcode_shlibpath_var=unsupported
7233 inherit_rpath=no
7234 link_all_deplibs=unknown
7235 module_cmds=
7236 module_expsym_cmds=
7237 old_archive_from_new_cmds=
7238 old_archive_from_expsyms_cmds=
7239 thread_safe_flag_spec=
7240 whole_archive_flag_spec=
7241 # include_expsyms should be a list of space-separated symbols to be *always*
7242 # included in the symbol list
7243 include_expsyms=
7244 # exclude_expsyms can be an extended regexp of symbols to exclude
7245 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7246 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7247 # as well as any symbol that contains `d'.
7248 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7249 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7250 # platforms (ab)use it in PIC code, but their linkers get confused if
7251 # the symbol is explicitly referenced. Since portable code cannot
7252 # rely on this symbol name, it's probably fine to never include it in
7253 # preloaded symbol tables.
7254 extract_expsyms_cmds=
7255
7256 case $host_os in
7257 cygwin* | mingw* | pw32*)
7258 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7259 # When not using gcc, we currently assume that we are using
7260 # Microsoft Visual C++.
7261 if test "$GCC" != yes; then
7262 with_gnu_ld=no
7263 fi
7264 ;;
7265 interix*)
7266 # we just hope/assume this is gcc and not c89 (= MSVC++)
7267 with_gnu_ld=yes
7268 ;;
7269 openbsd*)
7270 with_gnu_ld=no
7271 ;;
7272 esac
7273
7274 ld_shlibs=yes
7275 if test "$with_gnu_ld" = yes; then
7276 # If archive_cmds runs LD, not CC, wlarc should be empty
7277 wlarc='${wl}'
7278
7279 # Set some defaults for GNU ld with shared library support. These
7280 # are reset later if shared libraries are not supported. Putting them
7281 # here allows them to be overridden if necessary.
7282 runpath_var=LD_RUN_PATH
7283 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7284 export_dynamic_flag_spec='${wl}--export-dynamic'
7285 # ancient GNU ld didn't support --whole-archive et. al.
7286 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7287 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7288 else
7289 whole_archive_flag_spec=
7290 fi
7291 supports_anon_versioning=no
7292 case `$LD -v 2>&1` in
7293 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7294 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7295 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7296 *\ 2.11.*) ;; # other 2.11 versions
7297 *) supports_anon_versioning=yes ;;
7298 esac
7299
7300 # See if GNU ld supports shared libraries.
7301 case $host_os in
50e7d84b 7302 aix[3-9]*)
d7040cdb
SE
7303 # On AIX/PPC, the GNU linker is very broken
7304 if test "$host_cpu" != ia64; then
7305 ld_shlibs=no
7306 cat <<_LT_EOF 1>&2
7307
7308*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7309*** to be unable to reliably create shared libraries on AIX.
7310*** Therefore, libtool is disabling shared libraries support. If you
7311*** really care for shared libraries, you may want to modify your PATH
7312*** so that a non-GNU linker is found, and then restart.
7313
7314_LT_EOF
7315 fi
7316 ;;
7317
7318 amigaos*)
7319 if test "$host_cpu" = m68k; then
7320 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)'
7321 hardcode_libdir_flag_spec='-L$libdir'
7322 hardcode_minus_L=yes
7323 fi
7324
7325 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7326 # that the semantics of dynamic libraries on AmigaOS, at least up
7327 # to version 4, is to share data among multiple programs linked
7328 # with the same dynamic library. Since this doesn't match the
7329 # behavior of shared libraries on other platforms, we can't use
7330 # them.
7331 ld_shlibs=no
7332 ;;
7333
7334 beos*)
7335 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7336 allow_undefined_flag=unsupported
7337 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7338 # support --undefined. This deserves some investigation. FIXME
7339 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7340 else
7341 ld_shlibs=no
7342 fi
7343 ;;
7344
7345 cygwin* | mingw* | pw32*)
7346 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7347 # as there is no search path for DLLs.
7348 hardcode_libdir_flag_spec='-L$libdir'
7349 allow_undefined_flag=unsupported
7350 always_export_symbols=no
7351 enable_shared_with_static_runtimes=yes
7352 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7353
7354 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7355 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7356 # If the export-symbols file already is a .def file (1st line
7357 # is EXPORTS), use it as is; otherwise, prepend...
7358 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7359 cp $export_symbols $output_objdir/$soname.def;
7360 else
7361 echo EXPORTS > $output_objdir/$soname.def;
7362 cat $export_symbols >> $output_objdir/$soname.def;
7363 fi~
7364 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7365 else
7366 ld_shlibs=no
7367 fi
7368 ;;
7369
7370 interix[3-9]*)
7371 hardcode_direct=no
7372 hardcode_shlibpath_var=no
7373 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7374 export_dynamic_flag_spec='${wl}-E'
7375 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7376 # Instead, shared libraries are loaded at an image base (0x10000000 by
7377 # default) and relocated if they conflict, which is a slow very memory
7378 # consuming and fragmenting process. To avoid this, we pick a random,
7379 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7380 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7381 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7382 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'
7383 ;;
7384
7385 gnu* | linux* | tpf* | k*bsd*-gnu)
7386 tmp_diet=no
7387 if test "$host_os" = linux-dietlibc; then
7388 case $cc_basename in
7389 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7390 esac
7391 fi
7392 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7393 && test "$tmp_diet" = no
7394 then
7395 tmp_addflag=
7396 case $cc_basename,$host_cpu in
7397 pgcc*) # Portland Group C compiler
7398 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'
7399 tmp_addflag=' $pic_flag'
7400 ;;
7401 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7402 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'
7403 tmp_addflag=' $pic_flag -Mnomain' ;;
7404 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7405 tmp_addflag=' -i_dynamic' ;;
7406 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7407 tmp_addflag=' -i_dynamic -nofor_main' ;;
7408 ifc* | ifort*) # Intel Fortran compiler
7409 tmp_addflag=' -nofor_main' ;;
7410 esac
7411 case `$CC -V 2>&1 | sed 5q` in
7412 *Sun\ C*) # Sun C 5.9
7413 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'
7414 compiler_needs_object=yes
7415 tmp_sharedflag='-G' ;;
7416 *Sun\ F*) # Sun Fortran 8.3
7417 tmp_sharedflag='-G' ;;
7418 *)
7419 tmp_sharedflag='-shared' ;;
7420 esac
7421 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7422
7423 if test "x$supports_anon_versioning" = xyes; then
7424 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7425 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7426 echo "local: *; };" >> $output_objdir/$libname.ver~
7427 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7428 fi
7429 else
7430 ld_shlibs=no
7431 fi
7432 ;;
7433
7434 netbsd*)
7435 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7436 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7437 wlarc=
7438 else
7439 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7440 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7441 fi
7442 ;;
7443
7444 solaris*)
7445 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7446 ld_shlibs=no
7447 cat <<_LT_EOF 1>&2
7448
7449*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7450*** create shared libraries on Solaris systems. Therefore, libtool
7451*** is disabling shared libraries support. We urge you to upgrade GNU
7452*** binutils to release 2.9.1 or newer. Another option is to modify
7453*** your PATH or compiler configuration so that the native linker is
7454*** used, and then restart.
7455
7456_LT_EOF
7457 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7458 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7459 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7460 else
7461 ld_shlibs=no
7462 fi
7463 ;;
7464
7465 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7466 case `$LD -v 2>&1` in
7467 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7468 ld_shlibs=no
7469 cat <<_LT_EOF 1>&2
7470
7471*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7472*** reliably create shared libraries on SCO systems. Therefore, libtool
7473*** is disabling shared libraries support. We urge you to upgrade GNU
7474*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7475*** your PATH or compiler configuration so that the native linker is
7476*** used, and then restart.
7477
7478_LT_EOF
7479 ;;
7480 *)
7481 # For security reasons, it is highly recommended that you always
7482 # use absolute paths for naming shared libraries, and exclude the
7483 # DT_RUNPATH tag from executables and libraries. But doing so
7484 # requires that you compile everything twice, which is a pain.
7485 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7486 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7487 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7488 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7489 else
7490 ld_shlibs=no
7491 fi
7492 ;;
7493 esac
7494 ;;
7495
7496 sunos4*)
7497 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7498 wlarc=
7499 hardcode_direct=yes
7500 hardcode_shlibpath_var=no
7501 ;;
7502
7503 *)
7504 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7505 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7506 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7507 else
7508 ld_shlibs=no
7509 fi
7510 ;;
7511 esac
7512
7513 if test "$ld_shlibs" = no; then
7514 runpath_var=
7515 hardcode_libdir_flag_spec=
7516 export_dynamic_flag_spec=
7517 whole_archive_flag_spec=
7518 fi
7519 else
7520 # PORTME fill in a description of your system's linker (not GNU ld)
7521 case $host_os in
7522 aix3*)
7523 allow_undefined_flag=unsupported
7524 always_export_symbols=yes
7525 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'
7526 # Note: this linker hardcodes the directories in LIBPATH if there
7527 # are no directories specified by -L.
7528 hardcode_minus_L=yes
7529 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7530 # Neither direct hardcoding nor static linking is supported with a
7531 # broken collect2.
7532 hardcode_direct=unsupported
7533 fi
7534 ;;
7535
50e7d84b 7536 aix[4-9]*)
d7040cdb
SE
7537 if test "$host_cpu" = ia64; then
7538 # On IA64, the linker does run time linking by default, so we don't
7539 # have to do anything special.
7540 aix_use_runtimelinking=no
7541 exp_sym_flag='-Bexport'
7542 no_entry_flag=""
7543 else
7544 # If we're using GNU nm, then we don't want the "-C" option.
7545 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7546 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7547 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'
7548 else
7549 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'
7550 fi
7551 aix_use_runtimelinking=no
7552
7553 # Test if we are trying to use run time linking or normal
7554 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7555 # need to do runtime linking.
50e7d84b 7556 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
d7040cdb
SE
7557 for ld_flag in $LDFLAGS; do
7558 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7559 aix_use_runtimelinking=yes
7560 break
7561 fi
7562 done
7563 ;;
7564 esac
7565
7566 exp_sym_flag='-bexport'
7567 no_entry_flag='-bnoentry'
7568 fi
7569
7570 # When large executables or shared objects are built, AIX ld can
7571 # have problems creating the table of contents. If linking a library
7572 # or program results in "error TOC overflow" add -mminimal-toc to
7573 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7574 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7575
7576 archive_cmds=''
7577 hardcode_direct=yes
7578 hardcode_direct_absolute=yes
7579 hardcode_libdir_separator=':'
7580 link_all_deplibs=yes
7581 file_list_spec='${wl}-f,'
7582
7583 if test "$GCC" = yes; then
7584 case $host_os in aix4.[012]|aix4.[012].*)
7585 # We only want to do this on AIX 4.2 and lower, the check
7586 # below for broken collect2 doesn't work under 4.3+
7587 collect2name=`${CC} -print-prog-name=collect2`
7588 if test -f "$collect2name" &&
7589 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7590 then
7591 # We have reworked collect2
7592 :
7593 else
7594 # We have old collect2
7595 hardcode_direct=unsupported
7596 # It fails to find uninstalled libraries when the uninstalled
7597 # path is not listed in the libpath. Setting hardcode_minus_L
7598 # to unsupported forces relinking
7599 hardcode_minus_L=yes
7600 hardcode_libdir_flag_spec='-L$libdir'
7601 hardcode_libdir_separator=
7602 fi
7603 ;;
7604 esac
7605 shared_flag='-shared'
7606 if test "$aix_use_runtimelinking" = yes; then
7607 shared_flag="$shared_flag "'${wl}-G'
7608 fi
7609 else
7610 # not using gcc
7611 if test "$host_cpu" = ia64; then
7612 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7613 # chokes on -Wl,-G. The following line is correct:
7614 shared_flag='-G'
7615 else
7616 if test "$aix_use_runtimelinking" = yes; then
7617 shared_flag='${wl}-G'
7618 else
7619 shared_flag='${wl}-bM:SRE'
7620 fi
7621 fi
7622 fi
7623
7624 # It seems that -bexpall does not export symbols beginning with
7625 # underscore (_), so it is better to generate a list of symbols to export.
7626 always_export_symbols=yes
7627 if test "$aix_use_runtimelinking" = yes; then
7628 # Warning - without using the other runtime loading flags (-brtl),
7629 # -berok will link without error, but may produce a broken library.
7630 allow_undefined_flag='-berok'
7631 # Determine the default libpath from the value encoded in an
7632 # empty executable.
7633 cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
7634/* confdefs.h. */
7635_ACEOF
7636cat confdefs.h >>conftest.$ac_ext
7637cat >>conftest.$ac_ext <<_ACEOF
7638/* end confdefs.h. */
d7040cdb
SE
7639
7640int
7641main ()
7642{
7643
7644 ;
7645 return 0;
7646}
42ecbf5e 7647_ACEOF
d7040cdb
SE
7648rm -f conftest.$ac_objext conftest$ac_exeext
7649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7650 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
7651 ac_status=$?
7652 grep -v '^ *+' conftest.er1 >conftest.err
7653 rm -f conftest.er1
7654 cat conftest.err >&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
7656 (exit $ac_status); } &&
7657 { ac_try='test -z "$ac_c_werror_flag"
7658 || test ! -s conftest.err'
7659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660 (eval $ac_try) 2>&5
7661 ac_status=$?
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); }; } &&
7664 { ac_try='test -s conftest$ac_exeext'
7665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666 (eval $ac_try) 2>&5
7667 ac_status=$?
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }; }; then
7670
7671lt_aix_libpath_sed='
7672 /Import File Strings/,/^$/ {
7673 /^0/ {
7674 s/^0 *\(.*\)$/\1/
7675 p
7676 }
7677 }'
7678aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7679# Check for a 64-bit object if we didn't find anything.
7680if test -z "$aix_libpath"; then
7681 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
252b5132 7682fi
252b5132 7683else
20e95c23
DJ
7684 echo "$as_me: failed program was:" >&5
7685sed 's/^/| /' conftest.$ac_ext >&5
7686
252b5132 7687fi
d7040cdb
SE
7688rm -f conftest.err conftest.$ac_objext \
7689 conftest$ac_exeext conftest.$ac_ext
7690if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
252b5132 7691
d7040cdb
SE
7692 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7693 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"
7694 else
7695 if test "$host_cpu" = ia64; then
7696 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7697 allow_undefined_flag="-z nodefs"
7698 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"
7699 else
7700 # Determine the default libpath from the value encoded in an
7701 # empty executable.
7702 cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
7703/* confdefs.h. */
7704_ACEOF
7705cat confdefs.h >>conftest.$ac_ext
7706cat >>conftest.$ac_ext <<_ACEOF
7707/* end confdefs.h. */
d7040cdb
SE
7708
7709int
7710main ()
7711{
7712
7713 ;
7714 return 0;
7715}
42ecbf5e 7716_ACEOF
d7040cdb
SE
7717rm -f conftest.$ac_objext conftest$ac_exeext
7718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7719 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
7720 ac_status=$?
7721 grep -v '^ *+' conftest.er1 >conftest.err
7722 rm -f conftest.er1
7723 cat conftest.err >&5
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
7725 (exit $ac_status); } &&
7726 { ac_try='test -z "$ac_c_werror_flag"
7727 || test ! -s conftest.err'
7728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7729 (eval $ac_try) 2>&5
7730 ac_status=$?
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); }; } &&
7733 { ac_try='test -s conftest$ac_exeext'
7734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7735 (eval $ac_try) 2>&5
7736 ac_status=$?
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); }; }; then
7739
7740lt_aix_libpath_sed='
7741 /Import File Strings/,/^$/ {
7742 /^0/ {
7743 s/^0 *\(.*\)$/\1/
7744 p
7745 }
7746 }'
7747aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7748# Check for a 64-bit object if we didn't find anything.
7749if test -z "$aix_libpath"; then
7750 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20e95c23 7751fi
252b5132 7752else
42ecbf5e
DJ
7753 echo "$as_me: failed program was:" >&5
7754sed 's/^/| /' conftest.$ac_ext >&5
7755
252b5132 7756fi
d7040cdb
SE
7757rm -f conftest.err conftest.$ac_objext \
7758 conftest$ac_exeext conftest.$ac_ext
7759if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7760
7761 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7762 # Warning - without using the other run time loading flags,
7763 # -berok will link without error, but may produce a broken library.
7764 no_undefined_flag=' ${wl}-bernotok'
7765 allow_undefined_flag=' ${wl}-berok'
7766 # Exported symbols can be pulled into shared objects from archives
7767 whole_archive_flag_spec='$convenience'
7768 archive_cmds_need_lc=yes
7769 # This is similar to how AIX traditionally builds its shared libraries.
7770 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'
7771 fi
7772 fi
7773 ;;
42ecbf5e 7774
d7040cdb
SE
7775 amigaos*)
7776 if test "$host_cpu" = m68k; then
7777 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)'
7778 hardcode_libdir_flag_spec='-L$libdir'
7779 hardcode_minus_L=yes
7780 fi
7781 # see comment about different semantics on the GNU ld section
7782 ld_shlibs=no
7783 ;;
252b5132 7784
d7040cdb
SE
7785 bsdi[45]*)
7786 export_dynamic_flag_spec=-rdynamic
7787 ;;
252b5132 7788
d7040cdb
SE
7789 cygwin* | mingw* | pw32*)
7790 # When not using gcc, we currently assume that we are using
7791 # Microsoft Visual C++.
7792 # hardcode_libdir_flag_spec is actually meaningless, as there is
7793 # no search path for DLLs.
7794 hardcode_libdir_flag_spec=' '
7795 allow_undefined_flag=unsupported
7796 # Tell ltmain to make .lib files, not .a files.
7797 libext=lib
7798 # Tell ltmain to make .dll files, not .so files.
7799 shrext_cmds=".dll"
7800 # FIXME: Setting linknames here is a bad hack.
7801 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7802 # The linker will automatically build a .lib file if we build a DLL.
7803 old_archive_from_new_cmds='true'
7804 # FIXME: Should let the user specify the lib program.
7805 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7806 fix_srcfile_path='`cygpath -w "$srcfile"`'
7807 enable_shared_with_static_runtimes=yes
7808 ;;
252b5132 7809
d7040cdb
SE
7810 darwin* | rhapsody*)
7811 case $host_os in
7812 rhapsody* | darwin1.[012])
7813 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7814 ;;
7815 *) # Darwin 1.3 on
7816 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7817 10.[012])
7818 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7819 ;;
7820 10.*)
7821 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7822 ;;
7823 esac
7824 ;;
7825 esac
7826 archive_cmds_need_lc=no
7827 hardcode_direct=no
7828 hardcode_automatic=yes
7829 hardcode_shlibpath_var=unsupported
7830 whole_archive_flag_spec=''
7831 link_all_deplibs=yes
7832 if test "$GCC" = yes ; then
7833 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7834 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7835else
d7040cdb
SE
7836 lt_cv_apple_cc_single_mod=no
7837 if test -z "${LT_MULTI_MODULE}"; then
7838 # By default we will add the -single_module flag. You can override
7839 # by either setting the environment variable LT_MULTI_MODULE
7840 # non-empty at configure time, or by adding -multi-module to the
7841 # link flags.
7842 echo "int foo(void){return 1;}" > conftest.c
7843 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7844 -dynamiclib ${wl}-single_module conftest.c
7845 if test -f libconftest.dylib; then
7846 lt_cv_apple_cc_single_mod=yes
7847 rm libconftest.dylib
7848 fi
7849 rm conftest.$ac_ext
7850 fi
252b5132 7851fi
c46f8c51 7852
d7040cdb
SE
7853 output_verbose_link_cmd=echo
7854 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7855 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7856 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}'
7857 else
7858 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7859 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}'
7860 fi
7861 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7862 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}'
7863 else
7864 case $cc_basename in
7865 xlc*)
7866 output_verbose_link_cmd=echo
7867 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7868 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7869 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7870 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}'
7871 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}'
7872 ;;
7873 *)
7874 ld_shlibs=no
7875 ;;
7876 esac
7877 fi
7878 ;;
42ecbf5e 7879
d7040cdb
SE
7880 dgux*)
7881 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7882 hardcode_libdir_flag_spec='-L$libdir'
7883 hardcode_shlibpath_var=no
7884 ;;
252b5132 7885
d7040cdb
SE
7886 freebsd1*)
7887 ld_shlibs=no
7888 ;;
252b5132 7889
d7040cdb
SE
7890 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7891 # support. Future versions do this automatically, but an explicit c++rt0.o
7892 # does not break anything, and helps significantly (at the cost of a little
7893 # extra space).
7894 freebsd2.2*)
7895 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7896 hardcode_libdir_flag_spec='-R$libdir'
7897 hardcode_direct=yes
7898 hardcode_shlibpath_var=no
7899 ;;
252b5132 7900
d7040cdb
SE
7901 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7902 freebsd2*)
7903 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7904 hardcode_direct=yes
7905 hardcode_minus_L=yes
7906 hardcode_shlibpath_var=no
7907 ;;
42ecbf5e 7908
d7040cdb
SE
7909 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7910 freebsd* | dragonfly*)
7911 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7912 hardcode_libdir_flag_spec='-R$libdir'
7913 hardcode_direct=yes
7914 hardcode_shlibpath_var=no
7915 ;;
252b5132 7916
d7040cdb
SE
7917 hpux9*)
7918 if test "$GCC" = yes; then
7919 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'
7920 else
7921 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'
7922 fi
7923 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7924 hardcode_libdir_separator=:
7925 hardcode_direct=yes
7926
7927 # hardcode_minus_L: Not really in the search PATH,
7928 # but as the default location of the library.
7929 hardcode_minus_L=yes
7930 export_dynamic_flag_spec='${wl}-E'
7931 ;;
20e95c23 7932
d7040cdb
SE
7933 hpux10*)
7934 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7935 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7936 else
7937 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7938 fi
7939 if test "$with_gnu_ld" = no; then
7940 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7941 hardcode_libdir_flag_spec_ld='+b $libdir'
7942 hardcode_libdir_separator=:
7943 hardcode_direct=yes
7944 hardcode_direct_absolute=yes
7945 export_dynamic_flag_spec='${wl}-E'
7946 # hardcode_minus_L: Not really in the search PATH,
7947 # but as the default location of the library.
7948 hardcode_minus_L=yes
7949 fi
7950 ;;
20e95c23 7951
d7040cdb
SE
7952 hpux11*)
7953 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7954 case $host_cpu in
7955 hppa*64*)
7956 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7957 ;;
7958 ia64*)
7959 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7960 ;;
7961 *)
7962 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7963 ;;
7964 esac
7965 else
7966 case $host_cpu in
7967 hppa*64*)
7968 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7969 ;;
7970 ia64*)
7971 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7972 ;;
7973 *)
7974 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7975 ;;
7976 esac
7977 fi
7978 if test "$with_gnu_ld" = no; then
7979 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7980 hardcode_libdir_separator=:
7981
7982 case $host_cpu in
7983 hppa*64*|ia64*)
7984 hardcode_direct=no
7985 hardcode_shlibpath_var=no
7986 ;;
7987 *)
7988 hardcode_direct=yes
7989 hardcode_direct_absolute=yes
7990 export_dynamic_flag_spec='${wl}-E'
7991
7992 # hardcode_minus_L: Not really in the search PATH,
7993 # but as the default location of the library.
7994 hardcode_minus_L=yes
7995 ;;
7996 esac
7997 fi
7998 ;;
7999
8000 irix5* | irix6* | nonstopux*)
8001 if test "$GCC" = yes; then
8002 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'
8003 # Try to use the -exported_symbol ld option, if it does not
8004 # work, assume that -exports_file does not work either and
8005 # implicitly export all symbols.
8006 save_LDFLAGS="$LDFLAGS"
8007 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8008 cat >conftest.$ac_ext <<_ACEOF
8009int foo(void) {}
42ecbf5e 8010_ACEOF
d7040cdb
SE
8011rm -f conftest.$ac_objext conftest$ac_exeext
8012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8013 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
8014 ac_status=$?
8015 grep -v '^ *+' conftest.er1 >conftest.err
8016 rm -f conftest.er1
8017 cat conftest.err >&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); } &&
b7d4af3a
JW
8020 { ac_try='test -z "$ac_c_werror_flag"
8021 || test ! -s conftest.err'
42ecbf5e
DJ
8022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8023 (eval $ac_try) 2>&5
8024 ac_status=$?
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); }; } &&
d7040cdb 8027 { ac_try='test -s conftest$ac_exeext'
42ecbf5e
DJ
8028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8029 (eval $ac_try) 2>&5
8030 ac_status=$?
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); }; }; then
d7040cdb
SE
8033 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'
8034
42ecbf5e
DJ
8035else
8036 echo "$as_me: failed program was:" >&5
8037sed 's/^/| /' conftest.$ac_ext >&5
8038
42ecbf5e 8039fi
d7040cdb
SE
8040rm -f conftest.err conftest.$ac_objext \
8041 conftest$ac_exeext conftest.$ac_ext
8042 LDFLAGS="$save_LDFLAGS"
8043 else
8044 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'
8045 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'
8046 fi
8047 archive_cmds_need_lc='no'
8048 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8049 hardcode_libdir_separator=:
8050 inherit_rpath=yes
8051 link_all_deplibs=yes
8052 ;;
42ecbf5e 8053
d7040cdb
SE
8054 netbsd*)
8055 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8056 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8057 else
8058 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8059 fi
8060 hardcode_libdir_flag_spec='-R$libdir'
8061 hardcode_direct=yes
8062 hardcode_shlibpath_var=no
8063 ;;
42ecbf5e 8064
d7040cdb
SE
8065 newsos6)
8066 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8067 hardcode_direct=yes
8068 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8069 hardcode_libdir_separator=:
8070 hardcode_shlibpath_var=no
8071 ;;
42ecbf5e 8072
d7040cdb
SE
8073 *nto* | *qnx*)
8074 ;;
252b5132 8075
d7040cdb
SE
8076 openbsd*)
8077 hardcode_direct=yes
8078 hardcode_shlibpath_var=no
8079 hardcode_direct_absolute=yes
8080 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8081 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8082 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8083 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8084 export_dynamic_flag_spec='${wl}-E'
8085 else
8086 case $host_os in
8087 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8088 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8089 hardcode_libdir_flag_spec='-R$libdir'
8090 ;;
8091 *)
8092 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8093 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8094 ;;
8095 esac
8096 fi
8097 ;;
252b5132 8098
d7040cdb
SE
8099 os2*)
8100 hardcode_libdir_flag_spec='-L$libdir'
8101 hardcode_minus_L=yes
8102 allow_undefined_flag=unsupported
8103 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'
8104 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8105 ;;
2481e6a2 8106
d7040cdb
SE
8107 osf3*)
8108 if test "$GCC" = yes; then
8109 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8110 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'
8111 else
8112 allow_undefined_flag=' -expect_unresolved \*'
8113 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'
8114 fi
8115 archive_cmds_need_lc='no'
8116 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8117 hardcode_libdir_separator=:
8118 ;;
42ecbf5e 8119
d7040cdb
SE
8120 osf4* | osf5*) # as osf3* with the addition of -msym flag
8121 if test "$GCC" = yes; then
8122 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8123 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'
8124 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8125 else
8126 allow_undefined_flag=' -expect_unresolved \*'
8127 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'
8128 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~
8129 $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 8130
d7040cdb
SE
8131 # Both c and cxx compiler support -rpath directly
8132 hardcode_libdir_flag_spec='-rpath $libdir'
8133 fi
8134 archive_cmds_need_lc='no'
8135 hardcode_libdir_separator=:
8136 ;;
8137
8138 solaris*)
8139 no_undefined_flag=' -z defs'
8140 if test "$GCC" = yes; then
8141 wlarc='${wl}'
8142 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8143 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8144 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8145 else
8146 case `$CC -V 2>&1` in
8147 *"Compilers 5.0"*)
8148 wlarc=''
8149 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8150 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8151 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8152 ;;
8153 *)
8154 wlarc='${wl}'
8155 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8156 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8157 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8158 ;;
8159 esac
8160 fi
8161 hardcode_libdir_flag_spec='-R$libdir'
8162 hardcode_shlibpath_var=no
8163 case $host_os in
8164 solaris2.[0-5] | solaris2.[0-5].*) ;;
8165 *)
8166 # The compiler driver will combine and reorder linker options,
8167 # but understands `-z linker_flag'. GCC discards it without `$wl',
8168 # but is careful enough not to reorder.
8169 # Supported since Solaris 2.6 (maybe 2.5.1?)
8170 if test "$GCC" = yes; then
8171 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8172 else
8173 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8174 fi
8175 ;;
8176 esac
8177 link_all_deplibs=yes
8178 ;;
8179
8180 sunos4*)
8181 if test "x$host_vendor" = xsequent; then
8182 # Use $CC to link under sequent, because it throws in some extra .o
8183 # files that make .init and .fini sections work.
8184 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8185 else
8186 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8187 fi
8188 hardcode_libdir_flag_spec='-L$libdir'
8189 hardcode_direct=yes
8190 hardcode_minus_L=yes
8191 hardcode_shlibpath_var=no
8192 ;;
8193
8194 sysv4)
8195 case $host_vendor in
8196 sni)
8197 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8198 hardcode_direct=yes # is this really true???
8199 ;;
8200 siemens)
8201 ## LD is ld it makes a PLAMLIB
8202 ## CC just makes a GrossModule.
8203 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8204 reload_cmds='$CC -r -o $output$reload_objs'
8205 hardcode_direct=no
8206 ;;
8207 motorola)
8208 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8209 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8210 ;;
8211 esac
8212 runpath_var='LD_RUN_PATH'
8213 hardcode_shlibpath_var=no
8214 ;;
8215
8216 sysv4.3*)
8217 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8218 hardcode_shlibpath_var=no
8219 export_dynamic_flag_spec='-Bexport'
8220 ;;
8221
8222 sysv4*MP*)
8223 if test -d /usr/nec; then
8224 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8225 hardcode_shlibpath_var=no
8226 runpath_var=LD_RUN_PATH
8227 hardcode_runpath_var=yes
8228 ld_shlibs=yes
8229 fi
8230 ;;
8231
8232 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8233 no_undefined_flag='${wl}-z,text'
8234 archive_cmds_need_lc=no
8235 hardcode_shlibpath_var=no
8236 runpath_var='LD_RUN_PATH'
8237
8238 if test "$GCC" = yes; then
8239 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8240 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8241 else
8242 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8243 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8244 fi
8245 ;;
8246
8247 sysv5* | sco3.2v5* | sco5v6*)
8248 # Note: We can NOT use -z defs as we might desire, because we do not
8249 # link with -lc, and that would cause any symbols used from libc to
8250 # always be unresolved, which means just about no library would
8251 # ever link correctly. If we're not using GNU ld we use -z text
8252 # though, which does catch some bad symbols but isn't as heavy-handed
8253 # as -z defs.
8254 no_undefined_flag='${wl}-z,text'
8255 allow_undefined_flag='${wl}-z,nodefs'
8256 archive_cmds_need_lc=no
8257 hardcode_shlibpath_var=no
8258 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8259 hardcode_libdir_separator=':'
8260 link_all_deplibs=yes
8261 export_dynamic_flag_spec='${wl}-Bexport'
8262 runpath_var='LD_RUN_PATH'
8263
8264 if test "$GCC" = yes; then
8265 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8266 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8267 else
8268 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8269 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8270 fi
8271 ;;
8272
8273 uts4*)
8274 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8275 hardcode_libdir_flag_spec='-L$libdir'
8276 hardcode_shlibpath_var=no
8277 ;;
8278
8279 *)
8280 ld_shlibs=no
8281 ;;
8282 esac
8283
8284 if test x$host_vendor = xsni; then
8285 case $host in
8286 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8287 export_dynamic_flag_spec='${wl}-Blargedynsym'
8288 ;;
8289 esac
8290 fi
8291 fi
8292
8293echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8294echo "${ECHO_T}$ld_shlibs" >&6
8295test "$ld_shlibs" = no && can_build_shared=no
8296
8297with_gnu_ld=$with_gnu_ld
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313#
8314# Do we need to explicitly link libc?
8315#
8316case "x$archive_cmds_need_lc" in
8317x|xyes)
8318 # Assume -lc should be added
8319 archive_cmds_need_lc=yes
8320
8321 if test "$enable_shared" = yes && test "$GCC" = yes; then
8322 case $archive_cmds in
8323 *'~'*)
8324 # FIXME: we may have to deal with multi-command sequences.
8325 ;;
8326 '$CC '*)
8327 # Test whether the compiler implicitly links with -lc since on some
8328 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8329 # to ld, don't add -lc before -lgcc.
8330 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8331echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8332 $RM conftest*
8333 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8334
8335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8336 (eval $ac_compile) 2>&5
20e95c23
DJ
8337 ac_status=$?
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8339 (exit $ac_status); } 2>conftest.err; then
8340 soname=conftest
8341 lib=conftest
8342 libobjs=conftest.$ac_objext
8343 deplibs=
8344 wl=$lt_prog_compiler_wl
8345 pic_flag=$lt_prog_compiler_pic
8346 compiler_flags=-v
8347 linker_flags=-v
8348 verstring=
8349 output_objdir=.
8350 libname=conftest
8351 lt_save_allow_undefined_flag=$allow_undefined_flag
8352 allow_undefined_flag=
8353 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8354 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20e95c23
DJ
8355 ac_status=$?
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8357 (exit $ac_status); }
8358 then
8359 archive_cmds_need_lc=no
8360 else
8361 archive_cmds_need_lc=yes
8362 fi
8363 allow_undefined_flag=$lt_save_allow_undefined_flag
8364 else
8365 cat conftest.err 1>&5
8366 fi
8367 $RM conftest*
8368 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8369echo "${ECHO_T}$archive_cmds_need_lc" >&6
8370 ;;
8371 esac
8372 fi
8373 ;;
8374esac
8375
8376
8377
8378
8379
8380
8381
8382
8383
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 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8533echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8534withGCC=$GCC
8535if test "$withGCC" = yes; then
8536 case $host_os in
8537 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8538 *) lt_awk_arg="/^libraries:/" ;;
8539 esac
8540 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8541 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8542 # if the path contains ";" then we assume it to be the separator
8543 # otherwise default to the standard path separator (i.e. ":") - it is
8544 # assumed that no part of a normal pathname contains ";" but that should
8545 # okay in the real world where ";" in dirpaths is itself problematic.
8546 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8547 else
8548 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8549 fi
8550 # Ok, now we have the path, separated by spaces, we can step through it
8551 # and add multilib dir if necessary.
8552 lt_tmp_lt_search_path_spec=
8553 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8554 for lt_sys_path in $lt_search_path_spec; do
8555 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8556 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8557 else
8558 test -d "$lt_sys_path" && \
8559 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8560 fi
8561 done
8562 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8563BEGIN {RS=" "; FS="/|\n";} {
8564 lt_foo="";
8565 lt_count=0;
8566 for (lt_i = NF; lt_i > 0; lt_i--) {
8567 if ($lt_i != "" && $lt_i != ".") {
8568 if ($lt_i == "..") {
8569 lt_count++;
8570 } else {
8571 if (lt_count == 0) {
8572 lt_foo="/" $lt_i lt_foo;
8573 } else {
8574 lt_count--;
8575 }
8576 }
8577 }
8578 }
8579 if (lt_foo != "") { lt_freq[lt_foo]++; }
8580 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8581}'`
8582 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8583else
8584 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8585fi
8586library_names_spec=
8587libname_spec='lib$name'
8588soname_spec=
8589shrext_cmds=".so"
8590postinstall_cmds=
8591postuninstall_cmds=
8592finish_cmds=
8593finish_eval=
8594shlibpath_var=
8595shlibpath_overrides_runpath=unknown
8596version_type=none
8597dynamic_linker="$host_os ld.so"
8598sys_lib_dlsearch_path_spec="/lib /usr/lib"
8599need_lib_prefix=unknown
8600hardcode_into_libs=no
8601
8602# when you set need_version to no, make sure it does not cause -set_version
8603# flags to be left without arguments
8604need_version=unknown
8605
8606case $host_os in
8607aix3*)
8608 version_type=linux
8609 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8610 shlibpath_var=LIBPATH
8611
8612 # AIX 3 has no versioning support, so we append a major version to the name.
8613 soname_spec='${libname}${release}${shared_ext}$major'
8614 ;;
8615
50e7d84b 8616aix[4-9]*)
d7040cdb
SE
8617 version_type=linux
8618 need_lib_prefix=no
8619 need_version=no
8620 hardcode_into_libs=yes
8621 if test "$host_cpu" = ia64; then
8622 # AIX 5 supports IA64
8623 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8624 shlibpath_var=LD_LIBRARY_PATH
8625 else
8626 # With GCC up to 2.95.x, collect2 would create an import file
8627 # for dependence libraries. The import file would start with
8628 # the line `#! .'. This would cause the generated library to
8629 # depend on `.', always an invalid library. This was fixed in
8630 # development snapshots of GCC prior to 3.0.
8631 case $host_os in
8632 aix4 | aix4.[01] | aix4.[01].*)
8633 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8634 echo ' yes '
8635 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8636 :
8637 else
8638 can_build_shared=no
8639 fi
8640 ;;
8641 esac
8642 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8643 # soname into executable. Probably we can add versioning support to
8644 # collect2, so additional links can be useful in future.
8645 if test "$aix_use_runtimelinking" = yes; then
8646 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8647 # instead of lib<name>.a to let people know that these are not
8648 # typical AIX shared libraries.
8649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8650 else
8651 # We preserve .a as extension for shared libraries through AIX4.2
8652 # and later when we are not doing run time linking.
8653 library_names_spec='${libname}${release}.a $libname.a'
8654 soname_spec='${libname}${release}${shared_ext}$major'
8655 fi
8656 shlibpath_var=LIBPATH
8657 fi
8658 ;;
8659
8660amigaos*)
8661 if test "$host_cpu" = m68k; then
8662 library_names_spec='$libname.ixlibrary $libname.a'
8663 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8664 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'
8665 else
8666 dynamic_linker=no
8667 fi
8668 ;;
8669
8670beos*)
8671 library_names_spec='${libname}${shared_ext}'
8672 dynamic_linker="$host_os ld.so"
8673 shlibpath_var=LIBRARY_PATH
8674 ;;
8675
8676bsdi[45]*)
8677 version_type=linux
8678 need_version=no
8679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8680 soname_spec='${libname}${release}${shared_ext}$major'
8681 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8682 shlibpath_var=LD_LIBRARY_PATH
8683 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8684 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8685 # the default ld.so.conf also contains /usr/contrib/lib and
8686 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8687 # libtool to hard-code these into programs
8688 ;;
8689
8690cygwin* | mingw* | pw32*)
8691 version_type=windows
8692 shrext_cmds=".dll"
8693 need_version=no
8694 need_lib_prefix=no
8695
8696 case $withGCC,$host_os in
8697 yes,cygwin* | yes,mingw* | yes,pw32*)
8698 library_names_spec='$libname.dll.a'
8699 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8700 postinstall_cmds='base_file=`basename \${file}`~
8701 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8702 dldir=$destdir/`dirname \$dlpath`~
8703 test -d \$dldir || mkdir -p \$dldir~
8704 $install_prog $dir/$dlname \$dldir/$dlname~
8705 chmod a+x \$dldir/$dlname~
8706 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8707 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8708 fi'
8709 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8710 dlpath=$dir/\$dldll~
8711 $RM \$dlpath'
8712 shlibpath_overrides_runpath=yes
8713
8714 case $host_os in
8715 cygwin*)
8716 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8717 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8718 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8719 ;;
8720 mingw*)
8721 # MinGW DLLs use traditional 'lib' prefix
8722 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8723 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8724 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8725 # It is most probably a Windows format PATH printed by
8726 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8727 # path with ; separators, and with drive letters. We can handle the
8728 # drive letters (cygwin fileutils understands them), so leave them,
8729 # especially as we might pass files found there to a mingw objdump,
8730 # which wouldn't understand a cygwinified path. Ahh.
8731 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8732 else
8733 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8734 fi
8735 ;;
8736 pw32*)
8737 # pw32 DLLs use 'pw' prefix rather than 'lib'
8738 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8739 ;;
8740 esac
8741 ;;
8742
8743 *)
8744 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8745 ;;
8746 esac
8747 dynamic_linker='Win32 ld.exe'
8748 # FIXME: first we should search . and the directory the executable is in
8749 shlibpath_var=PATH
8750 ;;
8751
8752darwin* | rhapsody*)
8753 dynamic_linker="$host_os dyld"
8754 version_type=darwin
8755 need_lib_prefix=no
8756 need_version=no
8757 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8758 soname_spec='${libname}${release}${major}$shared_ext'
8759 shlibpath_overrides_runpath=yes
8760 shlibpath_var=DYLD_LIBRARY_PATH
8761 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8762
8763 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8764 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8765 ;;
8766
8767dgux*)
8768 version_type=linux
8769 need_lib_prefix=no
8770 need_version=no
8771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8772 soname_spec='${libname}${release}${shared_ext}$major'
8773 shlibpath_var=LD_LIBRARY_PATH
8774 ;;
8775
8776freebsd1*)
8777 dynamic_linker=no
8778 ;;
8779
8780freebsd* | dragonfly*)
8781 # DragonFly does not have aout. When/if they implement a new
8782 # versioning mechanism, adjust this.
8783 if test -x /usr/bin/objformat; then
8784 objformat=`/usr/bin/objformat`
8785 else
8786 case $host_os in
8787 freebsd[123]*) objformat=aout ;;
8788 *) objformat=elf ;;
8789 esac
8790 fi
8791 version_type=freebsd-$objformat
8792 case $version_type in
8793 freebsd-elf*)
8794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8795 need_version=no
8796 need_lib_prefix=no
8797 ;;
8798 freebsd-*)
8799 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8800 need_version=yes
8801 ;;
8802 esac
8803 shlibpath_var=LD_LIBRARY_PATH
8804 case $host_os in
8805 freebsd2*)
8806 shlibpath_overrides_runpath=yes
8807 ;;
8808 freebsd3.[01]* | freebsdelf3.[01]*)
8809 shlibpath_overrides_runpath=yes
8810 hardcode_into_libs=yes
8811 ;;
8812 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8813 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8814 shlibpath_overrides_runpath=no
8815 hardcode_into_libs=yes
8816 ;;
8817 *) # from 4.6 on, and DragonFly
8818 shlibpath_overrides_runpath=yes
8819 hardcode_into_libs=yes
8820 ;;
8821 esac
8822 ;;
8823
8824gnu*)
8825 version_type=linux
8826 need_lib_prefix=no
8827 need_version=no
8828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8829 soname_spec='${libname}${release}${shared_ext}$major'
8830 shlibpath_var=LD_LIBRARY_PATH
8831 hardcode_into_libs=yes
8832 ;;
8833
8834hpux9* | hpux10* | hpux11*)
8835 # Give a soname corresponding to the major version so that dld.sl refuses to
8836 # link against other versions.
8837 version_type=sunos
8838 need_lib_prefix=no
8839 need_version=no
8840 case $host_cpu in
8841 ia64*)
8842 shrext_cmds='.so'
8843 hardcode_into_libs=yes
8844 dynamic_linker="$host_os dld.so"
8845 shlibpath_var=LD_LIBRARY_PATH
8846 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8848 soname_spec='${libname}${release}${shared_ext}$major'
8849 if test "X$HPUX_IA64_MODE" = X32; then
8850 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8851 else
8852 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8853 fi
8854 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8855 ;;
8856 hppa*64*)
8857 shrext_cmds='.sl'
8858 hardcode_into_libs=yes
8859 dynamic_linker="$host_os dld.sl"
8860 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8861 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8863 soname_spec='${libname}${release}${shared_ext}$major'
8864 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8865 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8866 ;;
8867 *)
8868 shrext_cmds='.sl'
8869 dynamic_linker="$host_os dld.sl"
8870 shlibpath_var=SHLIB_PATH
8871 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8873 soname_spec='${libname}${release}${shared_ext}$major'
8874 ;;
8875 esac
8876 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8877 postinstall_cmds='chmod 555 $lib'
8878 ;;
8879
8880interix[3-9]*)
8881 version_type=linux
8882 need_lib_prefix=no
8883 need_version=no
8884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8885 soname_spec='${libname}${release}${shared_ext}$major'
8886 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8887 shlibpath_var=LD_LIBRARY_PATH
8888 shlibpath_overrides_runpath=no
8889 hardcode_into_libs=yes
8890 ;;
8891
8892irix5* | irix6* | nonstopux*)
8893 case $host_os in
8894 nonstopux*) version_type=nonstopux ;;
8895 *)
8896 if test "$lt_cv_prog_gnu_ld" = yes; then
8897 version_type=linux
8898 else
8899 version_type=irix
8900 fi ;;
8901 esac
8902 need_lib_prefix=no
8903 need_version=no
8904 soname_spec='${libname}${release}${shared_ext}$major'
8905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8906 case $host_os in
8907 irix5* | nonstopux*)
8908 libsuff= shlibsuff=
8909 ;;
8910 *)
8911 case $LD in # libtool.m4 will add one of these switches to LD
8912 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8913 libsuff= shlibsuff= libmagic=32-bit;;
8914 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8915 libsuff=32 shlibsuff=N32 libmagic=N32;;
8916 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8917 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8918 *) libsuff= shlibsuff= libmagic=never-match;;
8919 esac
8920 ;;
8921 esac
8922 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8923 shlibpath_overrides_runpath=no
8924 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8925 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8926 hardcode_into_libs=yes
8927 ;;
8928
8929# No shared lib support for Linux oldld, aout, or coff.
8930linux*oldld* | linux*aout* | linux*coff*)
8931 dynamic_linker=no
8932 ;;
8933
8934# This must be Linux ELF.
8935linux* | k*bsd*-gnu)
8936 version_type=linux
8937 need_lib_prefix=no
8938 need_version=no
8939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8940 soname_spec='${libname}${release}${shared_ext}$major'
8941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8942 shlibpath_var=LD_LIBRARY_PATH
8943 shlibpath_overrides_runpath=no
8944 # Some binutils ld are patched to set DT_RUNPATH
8945 save_LDFLAGS=$LDFLAGS
8946 save_libdir=$libdir
8947 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8948 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8949 cat >conftest.$ac_ext <<_ACEOF
8950/* confdefs.h. */
8951_ACEOF
8952cat confdefs.h >>conftest.$ac_ext
8953cat >>conftest.$ac_ext <<_ACEOF
8954/* end confdefs.h. */
8955
8956int
8957main ()
8958{
8959
8960 ;
8961 return 0;
8962}
8963_ACEOF
8964rm -f conftest.$ac_objext conftest$ac_exeext
8965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8966 (eval $ac_link) 2>conftest.er1
8967 ac_status=$?
8968 grep -v '^ *+' conftest.er1 >conftest.err
8969 rm -f conftest.er1
8970 cat conftest.err >&5
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); } &&
8973 { ac_try='test -z "$ac_c_werror_flag"
8974 || test ! -s conftest.err'
8975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8976 (eval $ac_try) 2>&5
8977 ac_status=$?
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); }; } &&
8980 { ac_try='test -s conftest$ac_exeext'
8981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982 (eval $ac_try) 2>&5
8983 ac_status=$?
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); }; }; then
8986 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8987 shlibpath_overrides_runpath=yes
8988fi
8989
8990else
8991 echo "$as_me: failed program was:" >&5
8992sed 's/^/| /' conftest.$ac_ext >&5
8993
8994fi
8995rm -f conftest.err conftest.$ac_objext \
8996 conftest$ac_exeext conftest.$ac_ext
8997 LDFLAGS=$save_LDFLAGS
8998 libdir=$save_libdir
8999
9000 # This implies no fast_install, which is unacceptable.
9001 # Some rework will be needed to allow for fast_install
9002 # before this can be enabled.
9003 hardcode_into_libs=yes
9004
9005 # Append ld.so.conf contents to the search path
9006 if test -f /etc/ld.so.conf; then
9007 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' ' '`
9008 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9009 fi
9010
9011 # We used to test for /lib/ld.so.1 and disable shared libraries on
9012 # powerpc, because MkLinux only supported shared libraries with the
9013 # GNU dynamic linker. Since this was broken with cross compilers,
9014 # most powerpc-linux boxes support dynamic linking these days and
9015 # people can always --disable-shared, the test was removed, and we
9016 # assume the GNU/Linux dynamic linker is in use.
9017 dynamic_linker='GNU/Linux ld.so'
9018 ;;
9019
9020netbsd*)
9021 version_type=sunos
9022 need_lib_prefix=no
9023 need_version=no
9024 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9026 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9027 dynamic_linker='NetBSD (a.out) ld.so'
9028 else
9029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9030 soname_spec='${libname}${release}${shared_ext}$major'
9031 dynamic_linker='NetBSD ld.elf_so'
9032 fi
9033 shlibpath_var=LD_LIBRARY_PATH
9034 shlibpath_overrides_runpath=yes
9035 hardcode_into_libs=yes
9036 ;;
9037
9038newsos6)
9039 version_type=linux
9040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9041 shlibpath_var=LD_LIBRARY_PATH
9042 shlibpath_overrides_runpath=yes
9043 ;;
9044
9045*nto* | *qnx*)
9046 version_type=qnx
9047 need_lib_prefix=no
9048 need_version=no
9049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9050 soname_spec='${libname}${release}${shared_ext}$major'
9051 shlibpath_var=LD_LIBRARY_PATH
9052 shlibpath_overrides_runpath=no
9053 hardcode_into_libs=yes
9054 dynamic_linker='ldqnx.so'
9055 ;;
9056
9057openbsd*)
9058 version_type=sunos
9059 sys_lib_dlsearch_path_spec="/usr/lib"
9060 need_lib_prefix=no
9061 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9062 case $host_os in
9063 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9064 *) need_version=no ;;
9065 esac
9066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9067 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9068 shlibpath_var=LD_LIBRARY_PATH
9069 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9070 case $host_os in
9071 openbsd2.[89] | openbsd2.[89].*)
9072 shlibpath_overrides_runpath=no
9073 ;;
9074 *)
9075 shlibpath_overrides_runpath=yes
9076 ;;
9077 esac
9078 else
9079 shlibpath_overrides_runpath=yes
9080 fi
9081 ;;
9082
9083os2*)
9084 libname_spec='$name'
9085 shrext_cmds=".dll"
9086 need_lib_prefix=no
9087 library_names_spec='$libname${shared_ext} $libname.a'
9088 dynamic_linker='OS/2 ld.exe'
9089 shlibpath_var=LIBPATH
9090 ;;
9091
9092osf3* | osf4* | osf5*)
9093 version_type=osf
9094 need_lib_prefix=no
9095 need_version=no
9096 soname_spec='${libname}${release}${shared_ext}$major'
9097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9098 shlibpath_var=LD_LIBRARY_PATH
9099 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9100 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9101 ;;
9102
9103rdos*)
9104 dynamic_linker=no
9105 ;;
9106
9107solaris*)
9108 version_type=linux
9109 need_lib_prefix=no
9110 need_version=no
9111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9112 soname_spec='${libname}${release}${shared_ext}$major'
9113 shlibpath_var=LD_LIBRARY_PATH
9114 shlibpath_overrides_runpath=yes
9115 hardcode_into_libs=yes
9116 # ldd complains unless libraries are executable
9117 postinstall_cmds='chmod +x $lib'
9118 ;;
9119
9120sunos4*)
9121 version_type=sunos
9122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9123 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9124 shlibpath_var=LD_LIBRARY_PATH
9125 shlibpath_overrides_runpath=yes
9126 if test "$with_gnu_ld" = yes; then
9127 need_lib_prefix=no
9128 fi
9129 need_version=yes
9130 ;;
9131
9132sysv4 | sysv4.3*)
9133 version_type=linux
9134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9135 soname_spec='${libname}${release}${shared_ext}$major'
9136 shlibpath_var=LD_LIBRARY_PATH
9137 case $host_vendor in
9138 sni)
9139 shlibpath_overrides_runpath=no
9140 need_lib_prefix=no
9141 runpath_var=LD_RUN_PATH
9142 ;;
9143 siemens)
9144 need_lib_prefix=no
9145 ;;
9146 motorola)
9147 need_lib_prefix=no
9148 need_version=no
9149 shlibpath_overrides_runpath=no
9150 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9151 ;;
9152 esac
9153 ;;
9154
9155sysv4*MP*)
9156 if test -d /usr/nec ;then
9157 version_type=linux
9158 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9159 soname_spec='$libname${shared_ext}.$major'
9160 shlibpath_var=LD_LIBRARY_PATH
9161 fi
9162 ;;
9163
9164sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9165 version_type=freebsd-elf
9166 need_lib_prefix=no
9167 need_version=no
9168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9169 soname_spec='${libname}${release}${shared_ext}$major'
9170 shlibpath_var=LD_LIBRARY_PATH
9171 shlibpath_overrides_runpath=yes
9172 hardcode_into_libs=yes
9173 if test "$with_gnu_ld" = yes; then
9174 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9175 else
9176 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9177 case $host_os in
9178 sco3.2v5*)
9179 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9180 ;;
9181 esac
9182 fi
9183 sys_lib_dlsearch_path_spec='/usr/lib'
9184 ;;
9185
9186tpf*)
9187 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9188 version_type=linux
9189 need_lib_prefix=no
9190 need_version=no
9191 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9192 shlibpath_var=LD_LIBRARY_PATH
9193 shlibpath_overrides_runpath=no
9194 hardcode_into_libs=yes
9195 ;;
9196
9197uts4*)
9198 version_type=linux
9199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9200 soname_spec='${libname}${release}${shared_ext}$major'
9201 shlibpath_var=LD_LIBRARY_PATH
9202 ;;
9203
9204*)
9205 dynamic_linker=no
9206 ;;
9207esac
9208echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9209echo "${ECHO_T}$dynamic_linker" >&6
9210test "$dynamic_linker" = no && can_build_shared=no
9211
9212variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9213if test "$GCC" = yes; then
9214 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9215fi
9216
9217
9218
9219
9220
9221
9222
9223
9224
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 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9304echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9305hardcode_action=
9306if test -n "$hardcode_libdir_flag_spec" ||
9307 test -n "$runpath_var" ||
9308 test "X$hardcode_automatic" = "Xyes" ; then
9309
9310 # We can hardcode non-existent directories.
9311 if test "$hardcode_direct" != no &&
9312 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9313 # have to relink, otherwise we might link with an installed library
9314 # when we should be linking with a yet-to-be-installed one
9315 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9316 test "$hardcode_minus_L" != no; then
9317 # Linking always hardcodes the temporary library directory.
9318 hardcode_action=relink
9319 else
9320 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9321 hardcode_action=immediate
9322 fi
9323else
9324 # We cannot hardcode anything, or else we can only hardcode existing
9325 # directories.
9326 hardcode_action=unsupported
9327fi
9328echo "$as_me:$LINENO: result: $hardcode_action" >&5
9329echo "${ECHO_T}$hardcode_action" >&6
9330
9331if test "$hardcode_action" = relink ||
9332 test "$inherit_rpath" = yes; then
9333 # Fast installation is not supported
9334 enable_fast_install=no
9335elif test "$shlibpath_overrides_runpath" = yes ||
9336 test "$enable_shared" = no; then
9337 # Fast installation is not necessary
9338 enable_fast_install=needless
9339fi
9340
9341
9342
9343
9344
9345
9346 if test "x$enable_dlopen" != xyes; then
9347 enable_dlopen=unknown
9348 enable_dlopen_self=unknown
9349 enable_dlopen_self_static=unknown
9350else
9351 lt_cv_dlopen=no
9352 lt_cv_dlopen_libs=
9353
9354 case $host_os in
9355 beos*)
9356 lt_cv_dlopen="load_add_on"
9357 lt_cv_dlopen_libs=
9358 lt_cv_dlopen_self=yes
9359 ;;
9360
9361 mingw* | pw32*)
9362 lt_cv_dlopen="LoadLibrary"
9363 lt_cv_dlopen_libs=
9364 ;;
9365
9366 cygwin*)
9367 lt_cv_dlopen="dlopen"
9368 lt_cv_dlopen_libs=
9369 ;;
9370
9371 darwin*)
9372 # if libdl is installed we need to link against it
9373 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9374echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9375if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9376 echo $ECHO_N "(cached) $ECHO_C" >&6
9377else
9378 ac_check_lib_save_LIBS=$LIBS
9379LIBS="-ldl $LIBS"
9380cat >conftest.$ac_ext <<_ACEOF
9381/* confdefs.h. */
9382_ACEOF
9383cat confdefs.h >>conftest.$ac_ext
9384cat >>conftest.$ac_ext <<_ACEOF
9385/* end confdefs.h. */
9386
9387/* Override any gcc2 internal prototype to avoid an error. */
9388#ifdef __cplusplus
9389extern "C"
9390#endif
9391/* We use char because int might match the return type of a gcc2
9392 builtin and then its argument prototype would still apply. */
9393char dlopen ();
9394int
9395main ()
9396{
9397dlopen ();
9398 ;
9399 return 0;
9400}
9401_ACEOF
9402rm -f conftest.$ac_objext conftest$ac_exeext
9403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9404 (eval $ac_link) 2>conftest.er1
9405 ac_status=$?
9406 grep -v '^ *+' conftest.er1 >conftest.err
9407 rm -f conftest.er1
9408 cat conftest.err >&5
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); } &&
9411 { ac_try='test -z "$ac_c_werror_flag"
9412 || test ! -s conftest.err'
9413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9414 (eval $ac_try) 2>&5
9415 ac_status=$?
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); }; } &&
9418 { ac_try='test -s conftest$ac_exeext'
9419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9420 (eval $ac_try) 2>&5
9421 ac_status=$?
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); }; }; then
9424 ac_cv_lib_dl_dlopen=yes
9425else
9426 echo "$as_me: failed program was:" >&5
9427sed 's/^/| /' conftest.$ac_ext >&5
9428
9429ac_cv_lib_dl_dlopen=no
9430fi
9431rm -f conftest.err conftest.$ac_objext \
9432 conftest$ac_exeext conftest.$ac_ext
9433LIBS=$ac_check_lib_save_LIBS
9434fi
9435echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9436echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9437if test $ac_cv_lib_dl_dlopen = yes; then
9438 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9439else
9440
9441 lt_cv_dlopen="dyld"
9442 lt_cv_dlopen_libs=
9443 lt_cv_dlopen_self=yes
9444
9445fi
9446
9447 ;;
9448
9449 *)
9450 echo "$as_me:$LINENO: checking for shl_load" >&5
9451echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9452if test "${ac_cv_func_shl_load+set}" = set; then
9453 echo $ECHO_N "(cached) $ECHO_C" >&6
9454else
9455 cat >conftest.$ac_ext <<_ACEOF
9456/* confdefs.h. */
9457_ACEOF
9458cat confdefs.h >>conftest.$ac_ext
9459cat >>conftest.$ac_ext <<_ACEOF
9460/* end confdefs.h. */
9461/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9463#define shl_load innocuous_shl_load
9464
9465/* System header to define __stub macros and hopefully few prototypes,
9466 which can conflict with char shl_load (); below.
9467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9468 <limits.h> exists even on freestanding compilers. */
9469
9470#ifdef __STDC__
9471# include <limits.h>
9472#else
9473# include <assert.h>
9474#endif
9475
9476#undef shl_load
9477
9478/* Override any gcc2 internal prototype to avoid an error. */
9479#ifdef __cplusplus
9480extern "C"
9481{
9482#endif
9483/* We use char because int might match the return type of a gcc2
9484 builtin and then its argument prototype would still apply. */
9485char shl_load ();
9486/* The GNU C library defines this for functions which it implements
9487 to always fail with ENOSYS. Some functions are actually named
9488 something starting with __ and the normal name is an alias. */
9489#if defined (__stub_shl_load) || defined (__stub___shl_load)
9490choke me
9491#else
9492char (*f) () = shl_load;
9493#endif
9494#ifdef __cplusplus
9495}
9496#endif
9497
9498int
9499main ()
9500{
9501return f != shl_load;
9502 ;
9503 return 0;
9504}
9505_ACEOF
9506rm -f conftest.$ac_objext conftest$ac_exeext
9507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9508 (eval $ac_link) 2>conftest.er1
9509 ac_status=$?
9510 grep -v '^ *+' conftest.er1 >conftest.err
9511 rm -f conftest.er1
9512 cat conftest.err >&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); } &&
9515 { ac_try='test -z "$ac_c_werror_flag"
9516 || test ! -s conftest.err'
9517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9518 (eval $ac_try) 2>&5
9519 ac_status=$?
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); }; } &&
9522 { ac_try='test -s conftest$ac_exeext'
9523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9524 (eval $ac_try) 2>&5
9525 ac_status=$?
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); }; }; then
9528 ac_cv_func_shl_load=yes
9529else
9530 echo "$as_me: failed program was:" >&5
9531sed 's/^/| /' conftest.$ac_ext >&5
9532
9533ac_cv_func_shl_load=no
9534fi
9535rm -f conftest.err conftest.$ac_objext \
9536 conftest$ac_exeext conftest.$ac_ext
9537fi
9538echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9539echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9540if test $ac_cv_func_shl_load = yes; then
9541 lt_cv_dlopen="shl_load"
9542else
9543 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9544echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9545if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9547else
9548 ac_check_lib_save_LIBS=$LIBS
9549LIBS="-ldld $LIBS"
9550cat >conftest.$ac_ext <<_ACEOF
9551/* confdefs.h. */
9552_ACEOF
9553cat confdefs.h >>conftest.$ac_ext
9554cat >>conftest.$ac_ext <<_ACEOF
9555/* end confdefs.h. */
9556
9557/* Override any gcc2 internal prototype to avoid an error. */
9558#ifdef __cplusplus
9559extern "C"
9560#endif
9561/* We use char because int might match the return type of a gcc2
9562 builtin and then its argument prototype would still apply. */
9563char shl_load ();
9564int
9565main ()
9566{
9567shl_load ();
9568 ;
9569 return 0;
9570}
9571_ACEOF
9572rm -f conftest.$ac_objext conftest$ac_exeext
9573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9574 (eval $ac_link) 2>conftest.er1
9575 ac_status=$?
9576 grep -v '^ *+' conftest.er1 >conftest.err
9577 rm -f conftest.er1
9578 cat conftest.err >&5
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); } &&
9581 { ac_try='test -z "$ac_c_werror_flag"
9582 || test ! -s conftest.err'
9583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9584 (eval $ac_try) 2>&5
9585 ac_status=$?
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); }; } &&
9588 { ac_try='test -s conftest$ac_exeext'
9589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9590 (eval $ac_try) 2>&5
9591 ac_status=$?
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); }; }; then
9594 ac_cv_lib_dld_shl_load=yes
9595else
9596 echo "$as_me: failed program was:" >&5
9597sed 's/^/| /' conftest.$ac_ext >&5
9598
9599ac_cv_lib_dld_shl_load=no
9600fi
9601rm -f conftest.err conftest.$ac_objext \
9602 conftest$ac_exeext conftest.$ac_ext
9603LIBS=$ac_check_lib_save_LIBS
9604fi
9605echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9606echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9607if test $ac_cv_lib_dld_shl_load = yes; then
9608 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9609else
9610 echo "$as_me:$LINENO: checking for dlopen" >&5
9611echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9612if test "${ac_cv_func_dlopen+set}" = set; then
9613 echo $ECHO_N "(cached) $ECHO_C" >&6
9614else
9615 cat >conftest.$ac_ext <<_ACEOF
9616/* confdefs.h. */
9617_ACEOF
9618cat confdefs.h >>conftest.$ac_ext
9619cat >>conftest.$ac_ext <<_ACEOF
9620/* end confdefs.h. */
9621/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9623#define dlopen innocuous_dlopen
9624
9625/* System header to define __stub macros and hopefully few prototypes,
9626 which can conflict with char dlopen (); below.
9627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9628 <limits.h> exists even on freestanding compilers. */
9629
9630#ifdef __STDC__
9631# include <limits.h>
9632#else
9633# include <assert.h>
9634#endif
9635
9636#undef dlopen
9637
9638/* Override any gcc2 internal prototype to avoid an error. */
9639#ifdef __cplusplus
9640extern "C"
9641{
9642#endif
9643/* We use char because int might match the return type of a gcc2
9644 builtin and then its argument prototype would still apply. */
9645char dlopen ();
9646/* The GNU C library defines this for functions which it implements
9647 to always fail with ENOSYS. Some functions are actually named
9648 something starting with __ and the normal name is an alias. */
9649#if defined (__stub_dlopen) || defined (__stub___dlopen)
9650choke me
9651#else
9652char (*f) () = dlopen;
9653#endif
9654#ifdef __cplusplus
9655}
9656#endif
9657
9658int
9659main ()
9660{
9661return f != dlopen;
9662 ;
9663 return 0;
9664}
9665_ACEOF
9666rm -f conftest.$ac_objext conftest$ac_exeext
9667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9668 (eval $ac_link) 2>conftest.er1
9669 ac_status=$?
9670 grep -v '^ *+' conftest.er1 >conftest.err
9671 rm -f conftest.er1
9672 cat conftest.err >&5
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); } &&
9675 { ac_try='test -z "$ac_c_werror_flag"
9676 || test ! -s conftest.err'
9677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9678 (eval $ac_try) 2>&5
9679 ac_status=$?
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); }; } &&
9682 { ac_try='test -s conftest$ac_exeext'
9683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9684 (eval $ac_try) 2>&5
9685 ac_status=$?
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); }; }; then
9688 ac_cv_func_dlopen=yes
9689else
9690 echo "$as_me: failed program was:" >&5
9691sed 's/^/| /' conftest.$ac_ext >&5
9692
9693ac_cv_func_dlopen=no
9694fi
9695rm -f conftest.err conftest.$ac_objext \
9696 conftest$ac_exeext conftest.$ac_ext
9697fi
9698echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9699echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9700if test $ac_cv_func_dlopen = yes; then
9701 lt_cv_dlopen="dlopen"
9702else
9703 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9704echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9705if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9706 echo $ECHO_N "(cached) $ECHO_C" >&6
9707else
9708 ac_check_lib_save_LIBS=$LIBS
9709LIBS="-ldl $LIBS"
9710cat >conftest.$ac_ext <<_ACEOF
9711/* confdefs.h. */
9712_ACEOF
9713cat confdefs.h >>conftest.$ac_ext
9714cat >>conftest.$ac_ext <<_ACEOF
9715/* end confdefs.h. */
9716
9717/* Override any gcc2 internal prototype to avoid an error. */
9718#ifdef __cplusplus
9719extern "C"
9720#endif
9721/* We use char because int might match the return type of a gcc2
9722 builtin and then its argument prototype would still apply. */
9723char dlopen ();
9724int
9725main ()
9726{
9727dlopen ();
9728 ;
9729 return 0;
9730}
9731_ACEOF
9732rm -f conftest.$ac_objext conftest$ac_exeext
9733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9734 (eval $ac_link) 2>conftest.er1
9735 ac_status=$?
9736 grep -v '^ *+' conftest.er1 >conftest.err
9737 rm -f conftest.er1
9738 cat conftest.err >&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } &&
9741 { ac_try='test -z "$ac_c_werror_flag"
9742 || test ! -s conftest.err'
9743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9744 (eval $ac_try) 2>&5
9745 ac_status=$?
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); }; } &&
9748 { ac_try='test -s conftest$ac_exeext'
9749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9750 (eval $ac_try) 2>&5
9751 ac_status=$?
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); }; }; then
9754 ac_cv_lib_dl_dlopen=yes
9755else
9756 echo "$as_me: failed program was:" >&5
9757sed 's/^/| /' conftest.$ac_ext >&5
9758
9759ac_cv_lib_dl_dlopen=no
9760fi
9761rm -f conftest.err conftest.$ac_objext \
9762 conftest$ac_exeext conftest.$ac_ext
9763LIBS=$ac_check_lib_save_LIBS
9764fi
9765echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9766echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9767if test $ac_cv_lib_dl_dlopen = yes; then
9768 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9769else
9770 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9771echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9772if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9773 echo $ECHO_N "(cached) $ECHO_C" >&6
9774else
9775 ac_check_lib_save_LIBS=$LIBS
9776LIBS="-lsvld $LIBS"
9777cat >conftest.$ac_ext <<_ACEOF
9778/* confdefs.h. */
9779_ACEOF
9780cat confdefs.h >>conftest.$ac_ext
9781cat >>conftest.$ac_ext <<_ACEOF
9782/* end confdefs.h. */
9783
9784/* Override any gcc2 internal prototype to avoid an error. */
9785#ifdef __cplusplus
9786extern "C"
9787#endif
9788/* We use char because int might match the return type of a gcc2
9789 builtin and then its argument prototype would still apply. */
9790char dlopen ();
9791int
9792main ()
9793{
9794dlopen ();
9795 ;
9796 return 0;
9797}
9798_ACEOF
9799rm -f conftest.$ac_objext conftest$ac_exeext
9800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9801 (eval $ac_link) 2>conftest.er1
9802 ac_status=$?
9803 grep -v '^ *+' conftest.er1 >conftest.err
9804 rm -f conftest.er1
9805 cat conftest.err >&5
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); } &&
9808 { ac_try='test -z "$ac_c_werror_flag"
9809 || test ! -s conftest.err'
9810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9811 (eval $ac_try) 2>&5
9812 ac_status=$?
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); }; } &&
9815 { ac_try='test -s conftest$ac_exeext'
9816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9817 (eval $ac_try) 2>&5
9818 ac_status=$?
9819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820 (exit $ac_status); }; }; then
9821 ac_cv_lib_svld_dlopen=yes
9822else
9823 echo "$as_me: failed program was:" >&5
9824sed 's/^/| /' conftest.$ac_ext >&5
9825
9826ac_cv_lib_svld_dlopen=no
9827fi
9828rm -f conftest.err conftest.$ac_objext \
9829 conftest$ac_exeext conftest.$ac_ext
9830LIBS=$ac_check_lib_save_LIBS
9831fi
9832echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9833echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9834if test $ac_cv_lib_svld_dlopen = yes; then
9835 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9836else
9837 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9838echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9839if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
9841else
9842 ac_check_lib_save_LIBS=$LIBS
9843LIBS="-ldld $LIBS"
9844cat >conftest.$ac_ext <<_ACEOF
9845/* confdefs.h. */
9846_ACEOF
9847cat confdefs.h >>conftest.$ac_ext
9848cat >>conftest.$ac_ext <<_ACEOF
9849/* end confdefs.h. */
9850
9851/* Override any gcc2 internal prototype to avoid an error. */
9852#ifdef __cplusplus
9853extern "C"
9854#endif
9855/* We use char because int might match the return type of a gcc2
9856 builtin and then its argument prototype would still apply. */
9857char dld_link ();
9858int
9859main ()
9860{
9861dld_link ();
9862 ;
9863 return 0;
9864}
9865_ACEOF
9866rm -f conftest.$ac_objext conftest$ac_exeext
9867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9868 (eval $ac_link) 2>conftest.er1
9869 ac_status=$?
9870 grep -v '^ *+' conftest.er1 >conftest.err
9871 rm -f conftest.er1
9872 cat conftest.err >&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); } &&
9875 { ac_try='test -z "$ac_c_werror_flag"
9876 || test ! -s conftest.err'
9877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9878 (eval $ac_try) 2>&5
9879 ac_status=$?
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); }; } &&
9882 { ac_try='test -s conftest$ac_exeext'
9883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9884 (eval $ac_try) 2>&5
9885 ac_status=$?
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); }; }; then
9888 ac_cv_lib_dld_dld_link=yes
9889else
9890 echo "$as_me: failed program was:" >&5
9891sed 's/^/| /' conftest.$ac_ext >&5
9892
9893ac_cv_lib_dld_dld_link=no
9894fi
9895rm -f conftest.err conftest.$ac_objext \
9896 conftest$ac_exeext conftest.$ac_ext
9897LIBS=$ac_check_lib_save_LIBS
9898fi
9899echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9900echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9901if test $ac_cv_lib_dld_dld_link = yes; then
9902 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9903fi
9904
9905
9906fi
9907
9908
9909fi
9910
9911
9912fi
9913
9914
9915fi
9916
9917
9918fi
9919
9920 ;;
9921 esac
9922
9923 if test "x$lt_cv_dlopen" != xno; then
9924 enable_dlopen=yes
9925 else
9926 enable_dlopen=no
9927 fi
9928
9929 case $lt_cv_dlopen in
9930 dlopen)
9931 save_CPPFLAGS="$CPPFLAGS"
9932 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9933
9934 save_LDFLAGS="$LDFLAGS"
9935 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9936
9937 save_LIBS="$LIBS"
9938 LIBS="$lt_cv_dlopen_libs $LIBS"
9939
9940 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9941echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9942if test "${lt_cv_dlopen_self+set}" = set; then
9943 echo $ECHO_N "(cached) $ECHO_C" >&6
9944else
9945 if test "$cross_compiling" = yes; then :
9946 lt_cv_dlopen_self=cross
9947else
9948 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9949 lt_status=$lt_dlunknown
9950 cat > conftest.$ac_ext <<_LT_EOF
58c85be7 9951#line 9951 "configure"
d7040cdb
SE
9952#include "confdefs.h"
9953
9954#if HAVE_DLFCN_H
9955#include <dlfcn.h>
9956#endif
9957
9958#include <stdio.h>
9959
9960#ifdef RTLD_GLOBAL
9961# define LT_DLGLOBAL RTLD_GLOBAL
9962#else
9963# ifdef DL_GLOBAL
9964# define LT_DLGLOBAL DL_GLOBAL
9965# else
9966# define LT_DLGLOBAL 0
9967# endif
9968#endif
9969
9970/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9971 find out it does not work in some platform. */
9972#ifndef LT_DLLAZY_OR_NOW
9973# ifdef RTLD_LAZY
9974# define LT_DLLAZY_OR_NOW RTLD_LAZY
9975# else
9976# ifdef DL_LAZY
9977# define LT_DLLAZY_OR_NOW DL_LAZY
9978# else
9979# ifdef RTLD_NOW
9980# define LT_DLLAZY_OR_NOW RTLD_NOW
9981# else
9982# ifdef DL_NOW
9983# define LT_DLLAZY_OR_NOW DL_NOW
9984# else
9985# define LT_DLLAZY_OR_NOW 0
9986# endif
9987# endif
9988# endif
9989# endif
9990#endif
9991
9992#ifdef __cplusplus
9993extern "C" void exit (int);
9994#endif
9995
9996void fnord() { int i=42;}
9997int main ()
9998{
9999 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10000 int status = $lt_dlunknown;
10001
10002 if (self)
10003 {
10004 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10005 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10006 /* dlclose (self); */
10007 }
10008 else
10009 puts (dlerror ());
10010
10011 exit (status);
10012}
10013_LT_EOF
10014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10015 (eval $ac_link) 2>&5
10016 ac_status=$?
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10019 (./conftest; exit; ) >&5 2>/dev/null
10020 lt_status=$?
10021 case x$lt_status in
10022 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10023 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10024 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10025 esac
10026 else :
10027 # compilation failed
10028 lt_cv_dlopen_self=no
10029 fi
10030fi
10031rm -fr conftest*
10032
10033
10034fi
10035echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10036echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10037
10038 if test "x$lt_cv_dlopen_self" = xyes; then
10039 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10040 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10041echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10042if test "${lt_cv_dlopen_self_static+set}" = set; then
10043 echo $ECHO_N "(cached) $ECHO_C" >&6
10044else
10045 if test "$cross_compiling" = yes; then :
10046 lt_cv_dlopen_self_static=cross
10047else
10048 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10049 lt_status=$lt_dlunknown
10050 cat > conftest.$ac_ext <<_LT_EOF
58c85be7 10051#line 10051 "configure"
d7040cdb
SE
10052#include "confdefs.h"
10053
10054#if HAVE_DLFCN_H
10055#include <dlfcn.h>
10056#endif
10057
10058#include <stdio.h>
10059
10060#ifdef RTLD_GLOBAL
10061# define LT_DLGLOBAL RTLD_GLOBAL
10062#else
10063# ifdef DL_GLOBAL
10064# define LT_DLGLOBAL DL_GLOBAL
10065# else
10066# define LT_DLGLOBAL 0
10067# endif
10068#endif
10069
10070/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10071 find out it does not work in some platform. */
10072#ifndef LT_DLLAZY_OR_NOW
10073# ifdef RTLD_LAZY
10074# define LT_DLLAZY_OR_NOW RTLD_LAZY
10075# else
10076# ifdef DL_LAZY
10077# define LT_DLLAZY_OR_NOW DL_LAZY
10078# else
10079# ifdef RTLD_NOW
10080# define LT_DLLAZY_OR_NOW RTLD_NOW
10081# else
10082# ifdef DL_NOW
10083# define LT_DLLAZY_OR_NOW DL_NOW
10084# else
10085# define LT_DLLAZY_OR_NOW 0
10086# endif
10087# endif
10088# endif
10089# endif
10090#endif
10091
10092#ifdef __cplusplus
10093extern "C" void exit (int);
10094#endif
10095
10096void fnord() { int i=42;}
10097int main ()
10098{
10099 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10100 int status = $lt_dlunknown;
10101
10102 if (self)
10103 {
10104 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10105 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10106 /* dlclose (self); */
10107 }
10108 else
10109 puts (dlerror ());
10110
10111 exit (status);
10112}
10113_LT_EOF
10114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10115 (eval $ac_link) 2>&5
10116 ac_status=$?
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10119 (./conftest; exit; ) >&5 2>/dev/null
10120 lt_status=$?
10121 case x$lt_status in
10122 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10123 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10124 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10125 esac
10126 else :
10127 # compilation failed
10128 lt_cv_dlopen_self_static=no
10129 fi
10130fi
10131rm -fr conftest*
10132
10133
10134fi
10135echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10136echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10137 fi
10138
10139 CPPFLAGS="$save_CPPFLAGS"
10140 LDFLAGS="$save_LDFLAGS"
10141 LIBS="$save_LIBS"
10142 ;;
10143 esac
10144
10145 case $lt_cv_dlopen_self in
10146 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10147 *) enable_dlopen_self=unknown ;;
10148 esac
10149
10150 case $lt_cv_dlopen_self_static in
10151 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10152 *) enable_dlopen_self_static=unknown ;;
10153 esac
10154fi
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172striplib=
10173old_striplib=
10174echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10175echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10176if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10177 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10178 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10179 echo "$as_me:$LINENO: result: yes" >&5
10180echo "${ECHO_T}yes" >&6
10181else
10182# FIXME - insert some real tests, host_os isn't really good enough
10183 case $host_os in
10184 darwin*)
10185 if test -n "$STRIP" ; then
10186 striplib="$STRIP -x"
10187 old_striplib="$STRIP -S"
10188 echo "$as_me:$LINENO: result: yes" >&5
10189echo "${ECHO_T}yes" >&6
10190 else
10191 echo "$as_me:$LINENO: result: no" >&5
10192echo "${ECHO_T}no" >&6
10193 fi
10194 ;;
10195 *)
10196 echo "$as_me:$LINENO: result: no" >&5
10197echo "${ECHO_T}no" >&6
10198 ;;
10199 esac
10200fi
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213 # Report which library types will actually be built
10214 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10215echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10216 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10217echo "${ECHO_T}$can_build_shared" >&6
10218
10219 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10220echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10221 test "$can_build_shared" = "no" && enable_shared=no
10222
10223 # On AIX, shared libraries and static libraries use the same namespace, and
10224 # are all built from PIC.
10225 case $host_os in
10226 aix3*)
10227 test "$enable_shared" = yes && enable_static=no
10228 if test -n "$RANLIB"; then
10229 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10230 postinstall_cmds='$RANLIB $lib'
10231 fi
10232 ;;
10233
50e7d84b 10234 aix[4-9]*)
d7040cdb
SE
10235 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10236 test "$enable_shared" = yes && enable_static=no
10237 fi
10238 ;;
10239 esac
10240 echo "$as_me:$LINENO: result: $enable_shared" >&5
10241echo "${ECHO_T}$enable_shared" >&6
10242
10243 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10244echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10245 # Make sure either enable_shared or enable_static is yes.
10246 test "$enable_shared" = yes || enable_static=yes
10247 echo "$as_me:$LINENO: result: $enable_static" >&5
10248echo "${ECHO_T}$enable_static" >&6
10249
10250
10251
10252
10253fi
10254ac_ext=c
10255ac_cpp='$CPP $CPPFLAGS'
10256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10258ac_compiler_gnu=$ac_cv_c_compiler_gnu
10259
10260CC="$lt_save_CC"
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274 ac_config_commands="$ac_config_commands libtool"
10275
10276
10277
10278
10279# Only expand once:
10280
10281
10282
10283# Check whether --enable-targets or --disable-targets was given.
10284if test "${enable_targets+set}" = set; then
10285 enableval="$enable_targets"
10286 case "${enableval}" in
10287 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10288echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10289 { (exit 1); exit 1; }; }
10290 ;;
10291 no) enable_targets= ;;
10292 *) enable_targets=$enableval ;;
10293esac
10294fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10295if test "${enable_commonbfdlib+set}" = set; then
10296 enableval="$enable_commonbfdlib"
10297 case "${enableval}" in
10298 yes) commonbfdlib=true ;;
10299 no) commonbfdlib=false ;;
10300 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10301echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10302 { (exit 1); exit 1; }; } ;;
10303esac
10304fi;
10305
10306GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10307
10308# Check whether --enable-werror or --disable-werror was given.
10309if test "${enable_werror+set}" = set; then
10310 enableval="$enable_werror"
10311 case "${enableval}" in
10312 yes | y) ERROR_ON_WARNING="yes" ;;
10313 no | n) ERROR_ON_WARNING="no" ;;
10314 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10315echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10316 { (exit 1); exit 1; }; } ;;
10317 esac
10318fi;
10319
bb8541b9
L
10320# Enable -Wno-format by default when using gcc on mingw
10321case "${host}" in
10322 *-*-mingw32*)
10323 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10324 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10325 fi
10326 ;;
10327 *) ;;
10328esac
10329
d7040cdb
SE
10330# Enable -Werror by default when using gcc
10331if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10332 ERROR_ON_WARNING=yes
10333fi
10334
10335NO_WERROR=
10336if test "${ERROR_ON_WARNING}" = yes ; then
10337 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10338 NO_WERROR="-Wno-error"
10339fi
10340
10341if test "${GCC}" = yes ; then
10342 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10343fi
10344
10345# Check whether --enable-build-warnings or --disable-build-warnings was given.
10346if test "${enable_build_warnings+set}" = set; then
10347 enableval="$enable_build_warnings"
10348 case "${enableval}" in
10349 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10350 no) if test "${GCC}" = yes ; then
10351 WARN_CFLAGS="-w"
10352 fi;;
10353 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10354 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10355 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10356 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10357 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10358esac
10359fi;
10360
10361if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10362 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
10363fi
10364
10365
10366
10367
10368
10369 ac_config_headers="$ac_config_headers config.h:config.in"
10370
10371
10372if test -z "$target" ; then
10373 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
10374echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
10375 { (exit 1); exit 1; }; }
10376fi
10377if test -z "$host" ; then
10378 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
10379echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
10380 { (exit 1); exit 1; }; }
10381fi
10382
10383for ac_prog in 'bison -y' byacc
10384do
10385 # Extract the first word of "$ac_prog", so it can be a program name with args.
10386set dummy $ac_prog; ac_word=$2
10387echo "$as_me:$LINENO: checking for $ac_word" >&5
10388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10389if test "${ac_cv_prog_YACC+set}" = set; then
10390 echo $ECHO_N "(cached) $ECHO_C" >&6
10391else
10392 if test -n "$YACC"; then
10393 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10394else
10395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10396for as_dir in $PATH
10397do
10398 IFS=$as_save_IFS
10399 test -z "$as_dir" && as_dir=.
10400 for ac_exec_ext in '' $ac_executable_extensions; do
10401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10402 ac_cv_prog_YACC="$ac_prog"
10403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10404 break 2
10405 fi
10406done
10407done
10408
10409fi
10410fi
10411YACC=$ac_cv_prog_YACC
10412if test -n "$YACC"; then
10413 echo "$as_me:$LINENO: result: $YACC" >&5
10414echo "${ECHO_T}$YACC" >&6
10415else
10416 echo "$as_me:$LINENO: result: no" >&5
10417echo "${ECHO_T}no" >&6
10418fi
10419
10420 test -n "$YACC" && break
10421done
10422test -n "$YACC" || YACC="yacc"
10423
10424for ac_prog in flex lex
10425do
10426 # Extract the first word of "$ac_prog", so it can be a program name with args.
10427set dummy $ac_prog; ac_word=$2
10428echo "$as_me:$LINENO: checking for $ac_word" >&5
10429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10430if test "${ac_cv_prog_LEX+set}" = set; then
10431 echo $ECHO_N "(cached) $ECHO_C" >&6
10432else
10433 if test -n "$LEX"; then
10434 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10435else
10436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10437for as_dir in $PATH
10438do
10439 IFS=$as_save_IFS
10440 test -z "$as_dir" && as_dir=.
10441 for ac_exec_ext in '' $ac_executable_extensions; do
10442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10443 ac_cv_prog_LEX="$ac_prog"
10444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10445 break 2
10446 fi
10447done
10448done
10449
10450fi
10451fi
10452LEX=$ac_cv_prog_LEX
10453if test -n "$LEX"; then
10454 echo "$as_me:$LINENO: result: $LEX" >&5
10455echo "${ECHO_T}$LEX" >&6
10456else
10457 echo "$as_me:$LINENO: result: no" >&5
10458echo "${ECHO_T}no" >&6
10459fi
10460
10461 test -n "$LEX" && break
10462done
10463test -n "$LEX" || LEX=":"
10464
10465if test -z "$LEXLIB"
10466then
10467 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
10468echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
10469if test "${ac_cv_lib_fl_yywrap+set}" = set; then
10470 echo $ECHO_N "(cached) $ECHO_C" >&6
10471else
10472 ac_check_lib_save_LIBS=$LIBS
10473LIBS="-lfl $LIBS"
10474cat >conftest.$ac_ext <<_ACEOF
10475/* confdefs.h. */
10476_ACEOF
10477cat confdefs.h >>conftest.$ac_ext
10478cat >>conftest.$ac_ext <<_ACEOF
10479/* end confdefs.h. */
10480
10481/* Override any gcc2 internal prototype to avoid an error. */
10482#ifdef __cplusplus
10483extern "C"
10484#endif
10485/* We use char because int might match the return type of a gcc2
10486 builtin and then its argument prototype would still apply. */
10487char yywrap ();
10488int
10489main ()
10490{
10491yywrap ();
10492 ;
10493 return 0;
10494}
10495_ACEOF
10496rm -f conftest.$ac_objext conftest$ac_exeext
10497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10498 (eval $ac_link) 2>conftest.er1
10499 ac_status=$?
10500 grep -v '^ *+' conftest.er1 >conftest.err
10501 rm -f conftest.er1
10502 cat conftest.err >&5
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); } &&
10505 { ac_try='test -z "$ac_c_werror_flag"
10506 || test ! -s conftest.err'
10507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10508 (eval $ac_try) 2>&5
10509 ac_status=$?
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); }; } &&
10512 { ac_try='test -s conftest$ac_exeext'
10513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10514 (eval $ac_try) 2>&5
10515 ac_status=$?
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); }; }; then
10518 ac_cv_lib_fl_yywrap=yes
10519else
10520 echo "$as_me: failed program was:" >&5
10521sed 's/^/| /' conftest.$ac_ext >&5
10522
10523ac_cv_lib_fl_yywrap=no
10524fi
10525rm -f conftest.err conftest.$ac_objext \
10526 conftest$ac_exeext conftest.$ac_ext
10527LIBS=$ac_check_lib_save_LIBS
10528fi
10529echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
10530echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
10531if test $ac_cv_lib_fl_yywrap = yes; then
10532 LEXLIB="-lfl"
10533else
10534 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
10535echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
10536if test "${ac_cv_lib_l_yywrap+set}" = set; then
10537 echo $ECHO_N "(cached) $ECHO_C" >&6
10538else
10539 ac_check_lib_save_LIBS=$LIBS
10540LIBS="-ll $LIBS"
10541cat >conftest.$ac_ext <<_ACEOF
10542/* confdefs.h. */
10543_ACEOF
10544cat confdefs.h >>conftest.$ac_ext
10545cat >>conftest.$ac_ext <<_ACEOF
10546/* end confdefs.h. */
10547
10548/* Override any gcc2 internal prototype to avoid an error. */
10549#ifdef __cplusplus
10550extern "C"
10551#endif
10552/* We use char because int might match the return type of a gcc2
10553 builtin and then its argument prototype would still apply. */
10554char yywrap ();
10555int
10556main ()
10557{
10558yywrap ();
10559 ;
10560 return 0;
10561}
10562_ACEOF
10563rm -f conftest.$ac_objext conftest$ac_exeext
10564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10565 (eval $ac_link) 2>conftest.er1
10566 ac_status=$?
10567 grep -v '^ *+' conftest.er1 >conftest.err
10568 rm -f conftest.er1
10569 cat conftest.err >&5
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); } &&
10572 { ac_try='test -z "$ac_c_werror_flag"
10573 || test ! -s conftest.err'
10574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10575 (eval $ac_try) 2>&5
10576 ac_status=$?
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); }; } &&
10579 { ac_try='test -s conftest$ac_exeext'
10580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581 (eval $ac_try) 2>&5
10582 ac_status=$?
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); }; }; then
10585 ac_cv_lib_l_yywrap=yes
10586else
10587 echo "$as_me: failed program was:" >&5
10588sed 's/^/| /' conftest.$ac_ext >&5
10589
10590ac_cv_lib_l_yywrap=no
10591fi
10592rm -f conftest.err conftest.$ac_objext \
10593 conftest$ac_exeext conftest.$ac_ext
10594LIBS=$ac_check_lib_save_LIBS
10595fi
10596echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
10597echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
10598if test $ac_cv_lib_l_yywrap = yes; then
10599 LEXLIB="-ll"
10600fi
10601
10602fi
10603
10604fi
10605
10606if test "x$LEX" != "x:"; then
10607 echo "$as_me:$LINENO: checking lex output file root" >&5
10608echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
10609if test "${ac_cv_prog_lex_root+set}" = set; then
10610 echo $ECHO_N "(cached) $ECHO_C" >&6
10611else
10612 # The minimal lex program is just a single line: %%. But some broken lexes
10613# (Solaris, I think it was) want two %% lines, so accommodate them.
10614cat >conftest.l <<_ACEOF
10615%%
10616%%
10617_ACEOF
10618{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
10619 (eval $LEX conftest.l) 2>&5
10620 ac_status=$?
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); }
10623if test -f lex.yy.c; then
10624 ac_cv_prog_lex_root=lex.yy
10625elif test -f lexyy.c; then
10626 ac_cv_prog_lex_root=lexyy
10627else
10628 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
10629echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
10630 { (exit 1); exit 1; }; }
10631fi
10632fi
10633echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
10634echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
10635rm -f conftest.l
10636LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
10637
10638echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
10639echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
10640if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
10641 echo $ECHO_N "(cached) $ECHO_C" >&6
10642else
10643 # POSIX says lex can declare yytext either as a pointer or an array; the
10644# default is implementation-dependent. Figure out which it is, since
10645# not all implementations provide the %pointer and %array declarations.
10646ac_cv_prog_lex_yytext_pointer=no
10647echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
10648ac_save_LIBS=$LIBS
10649LIBS="$LIBS $LEXLIB"
10650cat >conftest.$ac_ext <<_ACEOF
10651`cat $LEX_OUTPUT_ROOT.c`
10652_ACEOF
10653rm -f conftest.$ac_objext conftest$ac_exeext
10654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10655 (eval $ac_link) 2>conftest.er1
10656 ac_status=$?
10657 grep -v '^ *+' conftest.er1 >conftest.err
10658 rm -f conftest.er1
10659 cat conftest.err >&5
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); } &&
10662 { ac_try='test -z "$ac_c_werror_flag"
10663 || test ! -s conftest.err'
10664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665 (eval $ac_try) 2>&5
10666 ac_status=$?
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); }; } &&
10669 { ac_try='test -s conftest$ac_exeext'
10670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671 (eval $ac_try) 2>&5
10672 ac_status=$?
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); }; }; then
10675 ac_cv_prog_lex_yytext_pointer=yes
10676else
10677 echo "$as_me: failed program was:" >&5
10678sed 's/^/| /' conftest.$ac_ext >&5
10679
10680fi
10681rm -f conftest.err conftest.$ac_objext \
10682 conftest$ac_exeext conftest.$ac_ext
10683LIBS=$ac_save_LIBS
10684rm -f "${LEX_OUTPUT_ROOT}.c"
10685
10686fi
10687echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
10688echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
10689if test $ac_cv_prog_lex_yytext_pointer = yes; then
10690
10691cat >>confdefs.h <<\_ACEOF
10692#define YYTEXT_POINTER 1
10693_ACEOF
10694
10695fi
10696
10697fi
10698if test "$LEX" = :; then
10699 LEX=${am_missing_run}flex
10700fi
10701
30b0f203 10702ALL_LINGUAS="fr tr ja es sv da zh_CN ru ro rw zh_TW fi vi uk sk"
d7040cdb
SE
10703# If we haven't got the data from the intl directory,
10704# assume NLS is disabled.
10705USE_NLS=no
10706LIBINTL=
10707LIBINTL_DEP=
10708INCINTL=
10709XGETTEXT=
10710GMSGFMT=
10711POSUB=
10712
10713if test -f ../intl/config.intl; then
10714 . ../intl/config.intl
10715fi
10716echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10717echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10718if test x"$USE_NLS" != xyes; then
10719 echo "$as_me:$LINENO: result: no" >&5
10720echo "${ECHO_T}no" >&6
10721else
10722 echo "$as_me:$LINENO: result: yes" >&5
10723echo "${ECHO_T}yes" >&6
10724
10725cat >>confdefs.h <<\_ACEOF
10726#define ENABLE_NLS 1
10727_ACEOF
10728
10729
10730 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10731echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10732 # Look for .po and .gmo files in the source directory.
10733 CATALOGS=
10734 XLINGUAS=
10735 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10736 # If there aren't any .gmo files the shell will give us the
10737 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10738 # weeded out.
10739 case "$cat" in *\**)
10740 continue;;
10741 esac
10742 # The quadruple backslash is collapsed to a double backslash
10743 # by the backticks, then collapsed again by the double quotes,
10744 # leaving us with one backslash in the sed expression (right
10745 # before the dot that mustn't act as a wildcard).
10746 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10747 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10748 # The user is allowed to set LINGUAS to a list of languages to
10749 # install catalogs for. If it's empty that means "all of them."
10750 if test "x$LINGUAS" = x; then
10751 CATALOGS="$CATALOGS $cat"
10752 XLINGUAS="$XLINGUAS $lang"
10753 else
10754 case "$LINGUAS" in *$lang*)
10755 CATALOGS="$CATALOGS $cat"
10756 XLINGUAS="$XLINGUAS $lang"
10757 ;;
10758 esac
10759 fi
10760 done
10761 LINGUAS="$XLINGUAS"
10762 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10763echo "${ECHO_T}$LINGUAS" >&6
10764
10765
10766 DATADIRNAME=share
10767
10768 INSTOBJEXT=.mo
10769
10770 GENCAT=gencat
10771
10772 CATOBJEXT=.gmo
10773
10774fi
10775
10776 MKINSTALLDIRS=
10777 if test -n "$ac_aux_dir"; then
10778 case "$ac_aux_dir" in
10779 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10780 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10781 esac
10782 fi
10783 if test -z "$MKINSTALLDIRS"; then
10784 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10785 fi
10786
10787
10788
10789 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10790echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10791 # Check whether --enable-nls or --disable-nls was given.
10792if test "${enable_nls+set}" = set; then
10793 enableval="$enable_nls"
10794 USE_NLS=$enableval
10795else
10796 USE_NLS=yes
10797fi;
10798 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10799echo "${ECHO_T}$USE_NLS" >&6
10800
10801
10802
10803
10804
10805
10806# Prepare PATH_SEPARATOR.
10807# The user is always right.
10808if test "${PATH_SEPARATOR+set}" != set; then
10809 echo "#! /bin/sh" >conf$$.sh
10810 echo "exit 0" >>conf$$.sh
10811 chmod +x conf$$.sh
10812 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10813 PATH_SEPARATOR=';'
10814 else
10815 PATH_SEPARATOR=:
10816 fi
10817 rm -f conf$$.sh
10818fi
10819
10820# Find out how to test for executable files. Don't use a zero-byte file,
10821# as systems may use methods other than mode bits to determine executability.
10822cat >conf$$.file <<_ASEOF
10823#! /bin/sh
10824exit 0
10825_ASEOF
10826chmod +x conf$$.file
10827if test -x conf$$.file >/dev/null 2>&1; then
10828 ac_executable_p="test -x"
10829else
10830 ac_executable_p="test -f"
10831fi
10832rm -f conf$$.file
10833
10834# Extract the first word of "msgfmt", so it can be a program name with args.
10835set dummy msgfmt; ac_word=$2
10836echo "$as_me:$LINENO: checking for $ac_word" >&5
10837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10838if test "${ac_cv_path_MSGFMT+set}" = set; then
10839 echo $ECHO_N "(cached) $ECHO_C" >&6
10840else
10841 case "$MSGFMT" in
10842 [\\/]* | ?:[\\/]*)
10843 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10844 ;;
10845 *)
10846 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10847 for ac_dir in $PATH; do
10848 IFS="$ac_save_IFS"
10849 test -z "$ac_dir" && ac_dir=.
10850 for ac_exec_ext in '' $ac_executable_extensions; do
10851 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10852 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10853 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10854 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10855 break 2
10856 fi
10857 fi
10858 done
10859 done
10860 IFS="$ac_save_IFS"
10861 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10862 ;;
10863esac
10864fi
10865MSGFMT="$ac_cv_path_MSGFMT"
10866if test "$MSGFMT" != ":"; then
10867 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10868echo "${ECHO_T}$MSGFMT" >&6
10869else
10870 echo "$as_me:$LINENO: result: no" >&5
10871echo "${ECHO_T}no" >&6
10872fi
10873
10874 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10875set dummy gmsgfmt; ac_word=$2
10876echo "$as_me:$LINENO: checking for $ac_word" >&5
10877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10878if test "${ac_cv_path_GMSGFMT+set}" = set; then
10879 echo $ECHO_N "(cached) $ECHO_C" >&6
10880else
10881 case $GMSGFMT in
10882 [\\/]* | ?:[\\/]*)
10883 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10884 ;;
10885 *)
10886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10887for as_dir in $PATH
10888do
10889 IFS=$as_save_IFS
10890 test -z "$as_dir" && as_dir=.
10891 for ac_exec_ext in '' $ac_executable_extensions; do
10892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10893 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10895 break 2
10896 fi
10897done
10898done
10899
10900 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10901 ;;
10902esac
10903fi
10904GMSGFMT=$ac_cv_path_GMSGFMT
10905
10906if test -n "$GMSGFMT"; then
10907 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10908echo "${ECHO_T}$GMSGFMT" >&6
10909else
10910 echo "$as_me:$LINENO: result: no" >&5
10911echo "${ECHO_T}no" >&6
10912fi
10913
10914
10915
10916# Prepare PATH_SEPARATOR.
10917# The user is always right.
10918if test "${PATH_SEPARATOR+set}" != set; then
10919 echo "#! /bin/sh" >conf$$.sh
10920 echo "exit 0" >>conf$$.sh
10921 chmod +x conf$$.sh
10922 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10923 PATH_SEPARATOR=';'
10924 else
10925 PATH_SEPARATOR=:
10926 fi
10927 rm -f conf$$.sh
10928fi
10929
10930# Find out how to test for executable files. Don't use a zero-byte file,
10931# as systems may use methods other than mode bits to determine executability.
10932cat >conf$$.file <<_ASEOF
10933#! /bin/sh
10934exit 0
10935_ASEOF
10936chmod +x conf$$.file
10937if test -x conf$$.file >/dev/null 2>&1; then
10938 ac_executable_p="test -x"
10939else
10940 ac_executable_p="test -f"
10941fi
10942rm -f conf$$.file
10943
10944# Extract the first word of "xgettext", so it can be a program name with args.
10945set dummy xgettext; ac_word=$2
10946echo "$as_me:$LINENO: checking for $ac_word" >&5
10947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10948if test "${ac_cv_path_XGETTEXT+set}" = set; then
10949 echo $ECHO_N "(cached) $ECHO_C" >&6
10950else
10951 case "$XGETTEXT" in
10952 [\\/]* | ?:[\\/]*)
10953 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10954 ;;
10955 *)
10956 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10957 for ac_dir in $PATH; do
10958 IFS="$ac_save_IFS"
10959 test -z "$ac_dir" && ac_dir=.
10960 for ac_exec_ext in '' $ac_executable_extensions; do
10961 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10962 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10963 (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
10964 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10965 break 2
10966 fi
10967 fi
10968 done
10969 done
10970 IFS="$ac_save_IFS"
10971 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10972 ;;
10973esac
10974fi
10975XGETTEXT="$ac_cv_path_XGETTEXT"
10976if test "$XGETTEXT" != ":"; then
10977 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10978echo "${ECHO_T}$XGETTEXT" >&6
10979else
10980 echo "$as_me:$LINENO: result: no" >&5
10981echo "${ECHO_T}no" >&6
10982fi
10983
10984 rm -f messages.po
10985
10986
10987# Prepare PATH_SEPARATOR.
10988# The user is always right.
10989if test "${PATH_SEPARATOR+set}" != set; then
10990 echo "#! /bin/sh" >conf$$.sh
10991 echo "exit 0" >>conf$$.sh
10992 chmod +x conf$$.sh
10993 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10994 PATH_SEPARATOR=';'
10995 else
10996 PATH_SEPARATOR=:
10997 fi
10998 rm -f conf$$.sh
10999fi
11000
11001# Find out how to test for executable files. Don't use a zero-byte file,
11002# as systems may use methods other than mode bits to determine executability.
11003cat >conf$$.file <<_ASEOF
11004#! /bin/sh
11005exit 0
11006_ASEOF
11007chmod +x conf$$.file
11008if test -x conf$$.file >/dev/null 2>&1; then
11009 ac_executable_p="test -x"
11010else
11011 ac_executable_p="test -f"
11012fi
11013rm -f conf$$.file
11014
11015# Extract the first word of "msgmerge", so it can be a program name with args.
11016set dummy msgmerge; ac_word=$2
11017echo "$as_me:$LINENO: checking for $ac_word" >&5
11018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11019if test "${ac_cv_path_MSGMERGE+set}" = set; then
11020 echo $ECHO_N "(cached) $ECHO_C" >&6
11021else
11022 case "$MSGMERGE" in
11023 [\\/]* | ?:[\\/]*)
11024 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11025 ;;
11026 *)
11027 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11028 for ac_dir in $PATH; do
11029 IFS="$ac_save_IFS"
11030 test -z "$ac_dir" && ac_dir=.
11031 for ac_exec_ext in '' $ac_executable_extensions; do
11032 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11033 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11034 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11035 break 2
11036 fi
11037 fi
11038 done
11039 done
11040 IFS="$ac_save_IFS"
11041 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11042 ;;
11043esac
11044fi
11045MSGMERGE="$ac_cv_path_MSGMERGE"
11046if test "$MSGMERGE" != ":"; then
11047 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11048echo "${ECHO_T}$MSGMERGE" >&6
11049else
11050 echo "$as_me:$LINENO: result: no" >&5
11051echo "${ECHO_T}no" >&6
11052fi
11053
11054
11055 if test "$GMSGFMT" != ":"; then
11056 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11057 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11058 : ;
11059 else
11060 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11061 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11062echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11063 GMSGFMT=":"
11064 fi
11065 fi
11066
11067 if test "$XGETTEXT" != ":"; then
11068 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11069 (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
11070 : ;
11071 else
11072 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11073echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11074 XGETTEXT=":"
11075 fi
11076 rm -f messages.po
11077 fi
11078
11079 ac_config_commands="$ac_config_commands default-1"
11080
11081
11082
11083echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11084echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11085 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11086if test "${enable_maintainer_mode+set}" = set; then
11087 enableval="$enable_maintainer_mode"
11088 USE_MAINTAINER_MODE=$enableval
42ecbf5e 11089else
d7040cdb
SE
11090 USE_MAINTAINER_MODE=no
11091fi;
11092 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11093echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
42ecbf5e 11094
d7040cdb
SE
11095
11096if test $USE_MAINTAINER_MODE = yes; then
11097 MAINTAINER_MODE_TRUE=
11098 MAINTAINER_MODE_FALSE='#'
11099else
11100 MAINTAINER_MODE_TRUE='#'
11101 MAINTAINER_MODE_FALSE=
42ecbf5e 11102fi
d7040cdb
SE
11103
11104 MAINT=$MAINTAINER_MODE_TRUE
11105
11106
11107
11108
11109if false; then
11110 GENINSRC_NEVER_TRUE=
11111 GENINSRC_NEVER_FALSE='#'
11112else
11113 GENINSRC_NEVER_TRUE='#'
11114 GENINSRC_NEVER_FALSE=
42ecbf5e 11115fi
d7040cdb
SE
11116
11117
11118if test -n "$EXEEXT"; then
20e95c23
DJ
11119
11120cat >>confdefs.h <<\_ACEOF
d7040cdb 11121#define HAVE_EXECUTABLE_SUFFIX 1
20e95c23 11122_ACEOF
42ecbf5e 11123
252b5132
RH
11124fi
11125
d7040cdb
SE
11126cat >>confdefs.h <<_ACEOF
11127#define EXECUTABLE_SUFFIX "${EXEEXT}"
11128_ACEOF
42ecbf5e 11129
252b5132 11130
d7040cdb 11131# host-specific stuff:
252b5132 11132
d7040cdb 11133HDEFINES=
252b5132 11134
d7040cdb 11135. ${srcdir}/../bfd/configure.host
252b5132 11136
252b5132 11137
d7040cdb 11138AR=${AR-ar}
252b5132 11139
d7040cdb
SE
11140if test -n "$ac_tool_prefix"; then
11141 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11142set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11143echo "$as_me:$LINENO: checking for $ac_word" >&5
11144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11145if test "${ac_cv_prog_RANLIB+set}" = set; then
11146 echo $ECHO_N "(cached) $ECHO_C" >&6
11147else
11148 if test -n "$RANLIB"; then
11149 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11150else
11151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11152for as_dir in $PATH
11153do
11154 IFS=$as_save_IFS
11155 test -z "$as_dir" && as_dir=.
11156 for ac_exec_ext in '' $ac_executable_extensions; do
11157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11158 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11160 break 2
11161 fi
11162done
11163done
252b5132 11164
d7040cdb
SE
11165fi
11166fi
11167RANLIB=$ac_cv_prog_RANLIB
11168if test -n "$RANLIB"; then
11169 echo "$as_me:$LINENO: result: $RANLIB" >&5
11170echo "${ECHO_T}$RANLIB" >&6
11171else
11172 echo "$as_me:$LINENO: result: no" >&5
11173echo "${ECHO_T}no" >&6
11174fi
20e95c23 11175
d7040cdb
SE
11176fi
11177if test -z "$ac_cv_prog_RANLIB"; then
11178 ac_ct_RANLIB=$RANLIB
11179 # Extract the first word of "ranlib", so it can be a program name with args.
11180set dummy ranlib; ac_word=$2
11181echo "$as_me:$LINENO: checking for $ac_word" >&5
11182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11183if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
42ecbf5e 11184 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11185else
d7040cdb
SE
11186 if test -n "$ac_ct_RANLIB"; then
11187 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11188else
11189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11190for as_dir in $PATH
11191do
11192 IFS=$as_save_IFS
11193 test -z "$as_dir" && as_dir=.
11194 for ac_exec_ext in '' $ac_executable_extensions; do
11195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11196 ac_cv_prog_ac_ct_RANLIB="ranlib"
11197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11198 break 2
11199 fi
11200done
11201done
20e95c23 11202
d7040cdb
SE
11203 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11204fi
11205fi
11206ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11207if test -n "$ac_ct_RANLIB"; then
11208 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11209echo "${ECHO_T}$ac_ct_RANLIB" >&6
20e95c23 11210else
d7040cdb
SE
11211 echo "$as_me:$LINENO: result: no" >&5
11212echo "${ECHO_T}no" >&6
11213fi
11214
11215 RANLIB=$ac_ct_RANLIB
11216else
11217 RANLIB="$ac_cv_prog_RANLIB"
11218fi
11219
11220# Find a good install program. We prefer a C program (faster),
11221# so one script is as good as another. But avoid the broken or
11222# incompatible versions:
11223# SysV /etc/install, /usr/sbin/install
11224# SunOS /usr/etc/install
11225# IRIX /sbin/install
11226# AIX /bin/install
11227# AmigaOS /C/install, which installs bootblocks on floppy discs
11228# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11229# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11230# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11231# OS/2's system install, which has a completely different semantic
11232# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 11233# Reject install programs that cannot install multiple files.
d7040cdb
SE
11234echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11235echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11236if test -z "$INSTALL"; then
11237if test "${ac_cv_path_install+set}" = set; then
11238 echo $ECHO_N "(cached) $ECHO_C" >&6
11239else
11240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11241for as_dir in $PATH
11242do
11243 IFS=$as_save_IFS
11244 test -z "$as_dir" && as_dir=.
11245 # Account for people who put trailing slashes in PATH elements.
11246case $as_dir/ in
11247 ./ | .// | /cC/* | \
11248 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11249 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11250 /usr/ucb/* ) ;;
11251 *)
11252 # OSF1 and SCO ODT 3.0 have their own names for install.
11253 # Don't use installbsd from OSF since it installs stuff as root
11254 # by default.
11255 for ac_prog in ginstall scoinst install; do
11256 for ac_exec_ext in '' $ac_executable_extensions; do
11257 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11258 if test $ac_prog = install &&
11259 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11260 # AIX install. It has an incompatible calling convention.
11261 :
11262 elif test $ac_prog = install &&
11263 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11264 # program-specific install script used by HP pwplus--don't use.
11265 :
11266 else
58c85be7
RW
11267 rm -rf conftest.one conftest.two conftest.dir
11268 echo one > conftest.one
11269 echo two > conftest.two
11270 mkdir conftest.dir
11271 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11272 test -s conftest.one && test -s conftest.two &&
11273 test -s conftest.dir/conftest.one &&
11274 test -s conftest.dir/conftest.two
11275 then
11276 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11277 break 3
11278 fi
d7040cdb
SE
11279 fi
11280 fi
11281 done
11282 done
11283 ;;
11284esac
11285done
11286
58c85be7 11287rm -rf conftest.one conftest.two conftest.dir
d7040cdb
SE
11288
11289fi
11290 if test "${ac_cv_path_install+set}" = set; then
11291 INSTALL=$ac_cv_path_install
11292 else
58c85be7
RW
11293 # As a last resort, use the slow shell script. Don't cache a
11294 # value for INSTALL within a source directory, because that will
d7040cdb 11295 # break other packages using the cache if that directory is
58c85be7 11296 # removed, or if the value is a relative name.
d7040cdb
SE
11297 INSTALL=$ac_install_sh
11298 fi
11299fi
11300echo "$as_me:$LINENO: result: $INSTALL" >&5
11301echo "${ECHO_T}$INSTALL" >&6
11302
11303# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11304# It thinks the first close brace ends the variable substitution.
11305test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11306
11307test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11308
11309test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11310
11311
11312# Put a plausible default for CC_FOR_BUILD in Makefile.
11313if test -z "$CC_FOR_BUILD"; then
11314 if test "x$cross_compiling" = "xno"; then
11315 CC_FOR_BUILD='$(CC)'
11316 else
11317 CC_FOR_BUILD=gcc
11318 fi
11319fi
20e95c23 11320
d7040cdb
SE
11321# Also set EXEEXT_FOR_BUILD.
11322if test "x$cross_compiling" = "xno"; then
11323 EXEEXT_FOR_BUILD='$(EXEEXT)'
11324else
11325 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
11326echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
11327if test "${bfd_cv_build_exeext+set}" = set; then
11328 echo $ECHO_N "(cached) $ECHO_C" >&6
11329else
11330 rm -f conftest*
11331 echo 'int main () { return 0; }' > conftest.c
11332 bfd_cv_build_exeext=
11333 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
11334 for file in conftest.*; do
11335 case $file in
11336 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
11337 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
11338 esac
11339 done
11340 rm -f conftest*
11341 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
252b5132 11342fi
d7040cdb
SE
11343echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
11344echo "${ECHO_T}$bfd_cv_build_exeext" >&6
11345 EXEEXT_FOR_BUILD=""
11346 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
252b5132
RH
11347fi
11348
11349
d7040cdb
SE
11350DEMANGLER_NAME=c++filt
11351case "${host}" in
11352 *-*-go32* | *-*-msdos*)
11353 DEMANGLER_NAME=cxxfilt
11354esac
8a965946
ILT
11355
11356
42ecbf5e
DJ
11357
11358
11359
11360
11361
11362
f8eae8b2
L
11363
11364
11365for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h
252b5132 11366do
42ecbf5e
DJ
11367as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11368if eval "test \"\${$as_ac_Header+set}\" = set"; then
11369 echo "$as_me:$LINENO: checking for $ac_header" >&5
11370echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11371if eval "test \"\${$as_ac_Header+set}\" = set"; then
11372 echo $ECHO_N "(cached) $ECHO_C" >&6
11373fi
11374echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11375echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11376else
11377 # Is the header compilable?
11378echo "$as_me:$LINENO: checking $ac_header usability" >&5
11379echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11380cat >conftest.$ac_ext <<_ACEOF
11381/* confdefs.h. */
11382_ACEOF
11383cat confdefs.h >>conftest.$ac_ext
11384cat >>conftest.$ac_ext <<_ACEOF
11385/* end confdefs.h. */
11386$ac_includes_default
11387#include <$ac_header>
11388_ACEOF
11389rm -f conftest.$ac_objext
11390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11391 (eval $ac_compile) 2>conftest.er1
11392 ac_status=$?
11393 grep -v '^ *+' conftest.er1 >conftest.err
11394 rm -f conftest.er1
11395 cat conftest.err >&5
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); } &&
b7d4af3a
JW
11398 { ac_try='test -z "$ac_c_werror_flag"
11399 || test ! -s conftest.err'
42ecbf5e
DJ
11400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11401 (eval $ac_try) 2>&5
11402 ac_status=$?
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); }; } &&
11405 { ac_try='test -s conftest.$ac_objext'
11406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11407 (eval $ac_try) 2>&5
11408 ac_status=$?
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); }; }; then
11411 ac_header_compiler=yes
11412else
11413 echo "$as_me: failed program was:" >&5
11414sed 's/^/| /' conftest.$ac_ext >&5
11415
11416ac_header_compiler=no
11417fi
11418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11419echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11420echo "${ECHO_T}$ac_header_compiler" >&6
11421
11422# Is the header present?
11423echo "$as_me:$LINENO: checking $ac_header presence" >&5
11424echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11425cat >conftest.$ac_ext <<_ACEOF
11426/* confdefs.h. */
11427_ACEOF
11428cat confdefs.h >>conftest.$ac_ext
11429cat >>conftest.$ac_ext <<_ACEOF
11430/* end confdefs.h. */
11431#include <$ac_header>
11432_ACEOF
11433if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11434 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11435 ac_status=$?
11436 grep -v '^ *+' conftest.er1 >conftest.err
11437 rm -f conftest.er1
11438 cat conftest.err >&5
11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440 (exit $ac_status); } >/dev/null; then
11441 if test -s conftest.err; then
11442 ac_cpp_err=$ac_c_preproc_warn_flag
11443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11444 else
11445 ac_cpp_err=
11446 fi
252b5132 11447else
42ecbf5e 11448 ac_cpp_err=yes
252b5132 11449fi
42ecbf5e
DJ
11450if test -z "$ac_cpp_err"; then
11451 ac_header_preproc=yes
11452else
11453 echo "$as_me: failed program was:" >&5
11454sed 's/^/| /' conftest.$ac_ext >&5
11455
11456 ac_header_preproc=no
252b5132 11457fi
42ecbf5e
DJ
11458rm -f conftest.err conftest.$ac_ext
11459echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11460echo "${ECHO_T}$ac_header_preproc" >&6
11461
11462# So? What about this header?
11463case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11464 yes:no: )
11465 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11466echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11468echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11469 ac_header_preproc=yes
11470 ;;
11471 no:yes:* )
11472 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11473echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11474 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11475echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11476 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11477echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11478 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11479echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11481echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11482 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11483echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11484 (
11485 cat <<\_ASBOX
11486## ------------------------------------------ ##
11487## Report this to the AC_PACKAGE_NAME lists. ##
11488## ------------------------------------------ ##
11489_ASBOX
11490 ) |
11491 sed "s/^/$as_me: WARNING: /" >&2
11492 ;;
11493esac
11494echo "$as_me:$LINENO: checking for $ac_header" >&5
11495echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11496if eval "test \"\${$as_ac_Header+set}\" = set"; then
11497 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11498else
42ecbf5e
DJ
11499 eval "$as_ac_Header=\$ac_header_preproc"
11500fi
11501echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11502echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11503
252b5132 11504fi
42ecbf5e
DJ
11505if test `eval echo '${'$as_ac_Header'}'` = yes; then
11506 cat >>confdefs.h <<_ACEOF
11507#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11508_ACEOF
11509
11510fi
11511
252b5132
RH
11512done
11513
42ecbf5e
DJ
11514echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11515echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
11516if test "${ac_cv_header_sys_wait_h+set}" = set; then
11517 echo $ECHO_N "(cached) $ECHO_C" >&6
11518else
11519 cat >conftest.$ac_ext <<_ACEOF
11520/* confdefs.h. */
11521_ACEOF
11522cat confdefs.h >>conftest.$ac_ext
11523cat >>conftest.$ac_ext <<_ACEOF
11524/* end confdefs.h. */
252b5132
RH
11525#include <sys/types.h>
11526#include <sys/wait.h>
11527#ifndef WEXITSTATUS
42ecbf5e 11528# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
252b5132
RH
11529#endif
11530#ifndef WIFEXITED
42ecbf5e 11531# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
252b5132 11532#endif
42ecbf5e
DJ
11533
11534int
11535main ()
11536{
11537 int s;
11538 wait (&s);
11539 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11540 ;
11541 return 0;
11542}
11543_ACEOF
11544rm -f conftest.$ac_objext
11545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11546 (eval $ac_compile) 2>conftest.er1
11547 ac_status=$?
11548 grep -v '^ *+' conftest.er1 >conftest.err
11549 rm -f conftest.er1
11550 cat conftest.err >&5
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); } &&
b7d4af3a
JW
11553 { ac_try='test -z "$ac_c_werror_flag"
11554 || test ! -s conftest.err'
42ecbf5e
DJ
11555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11556 (eval $ac_try) 2>&5
11557 ac_status=$?
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); }; } &&
11560 { ac_try='test -s conftest.$ac_objext'
11561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11562 (eval $ac_try) 2>&5
11563 ac_status=$?
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); }; }; then
252b5132
RH
11566 ac_cv_header_sys_wait_h=yes
11567else
42ecbf5e
DJ
11568 echo "$as_me: failed program was:" >&5
11569sed 's/^/| /' conftest.$ac_ext >&5
11570
11571ac_cv_header_sys_wait_h=no
252b5132 11572fi
42ecbf5e 11573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 11574fi
42ecbf5e
DJ
11575echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11576echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
d15b04bd 11577if test $ac_cv_header_sys_wait_h = yes; then
42ecbf5e
DJ
11578
11579cat >>confdefs.h <<\_ACEOF
252b5132 11580#define HAVE_SYS_WAIT_H 1
42ecbf5e 11581_ACEOF
252b5132
RH
11582
11583fi
11584
11585# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11586# for constant arguments. Useless!
42ecbf5e
DJ
11587echo "$as_me:$LINENO: checking for working alloca.h" >&5
11588echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11589if test "${ac_cv_working_alloca_h+set}" = set; then
11590 echo $ECHO_N "(cached) $ECHO_C" >&6
11591else
11592 cat >conftest.$ac_ext <<_ACEOF
11593/* confdefs.h. */
11594_ACEOF
11595cat confdefs.h >>conftest.$ac_ext
11596cat >>conftest.$ac_ext <<_ACEOF
11597/* end confdefs.h. */
252b5132 11598#include <alloca.h>
42ecbf5e
DJ
11599int
11600main ()
11601{
11602char *p = (char *) alloca (2 * sizeof (int));
11603 ;
11604 return 0;
11605}
11606_ACEOF
11607rm -f conftest.$ac_objext conftest$ac_exeext
11608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11609 (eval $ac_link) 2>conftest.er1
11610 ac_status=$?
11611 grep -v '^ *+' conftest.er1 >conftest.err
11612 rm -f conftest.er1
11613 cat conftest.err >&5
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); } &&
b7d4af3a
JW
11616 { ac_try='test -z "$ac_c_werror_flag"
11617 || test ! -s conftest.err'
42ecbf5e
DJ
11618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11619 (eval $ac_try) 2>&5
11620 ac_status=$?
11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); }; } &&
11623 { ac_try='test -s conftest$ac_exeext'
11624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11625 (eval $ac_try) 2>&5
11626 ac_status=$?
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); }; }; then
11629 ac_cv_working_alloca_h=yes
11630else
11631 echo "$as_me: failed program was:" >&5
11632sed 's/^/| /' conftest.$ac_ext >&5
11633
11634ac_cv_working_alloca_h=no
11635fi
11636rm -f conftest.err conftest.$ac_objext \
11637 conftest$ac_exeext conftest.$ac_ext
11638fi
11639echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11640echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11641if test $ac_cv_working_alloca_h = yes; then
11642
11643cat >>confdefs.h <<\_ACEOF
252b5132 11644#define HAVE_ALLOCA_H 1
42ecbf5e 11645_ACEOF
252b5132
RH
11646
11647fi
11648
42ecbf5e
DJ
11649echo "$as_me:$LINENO: checking for alloca" >&5
11650echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11651if test "${ac_cv_func_alloca_works+set}" = set; then
11652 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11653else
42ecbf5e
DJ
11654 cat >conftest.$ac_ext <<_ACEOF
11655/* confdefs.h. */
11656_ACEOF
11657cat confdefs.h >>conftest.$ac_ext
11658cat >>conftest.$ac_ext <<_ACEOF
11659/* end confdefs.h. */
252b5132
RH
11660#ifdef __GNUC__
11661# define alloca __builtin_alloca
11662#else
11663# ifdef _MSC_VER
11664# include <malloc.h>
11665# define alloca _alloca
11666# else
11667# if HAVE_ALLOCA_H
11668# include <alloca.h>
11669# else
11670# ifdef _AIX
11671 #pragma alloca
11672# else
11673# ifndef alloca /* predefined by HP cc +Olibcalls */
11674char *alloca ();
11675# endif
11676# endif
11677# endif
11678# endif
11679#endif
11680
42ecbf5e
DJ
11681int
11682main ()
11683{
11684char *p = (char *) alloca (1);
11685 ;
11686 return 0;
11687}
11688_ACEOF
11689rm -f conftest.$ac_objext conftest$ac_exeext
11690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11691 (eval $ac_link) 2>conftest.er1
11692 ac_status=$?
11693 grep -v '^ *+' conftest.er1 >conftest.err
11694 rm -f conftest.er1
11695 cat conftest.err >&5
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); } &&
b7d4af3a
JW
11698 { ac_try='test -z "$ac_c_werror_flag"
11699 || test ! -s conftest.err'
42ecbf5e
DJ
11700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11701 (eval $ac_try) 2>&5
11702 ac_status=$?
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); }; } &&
11705 { ac_try='test -s conftest$ac_exeext'
11706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11707 (eval $ac_try) 2>&5
11708 ac_status=$?
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); }; }; then
252b5132
RH
11711 ac_cv_func_alloca_works=yes
11712else
42ecbf5e
DJ
11713 echo "$as_me: failed program was:" >&5
11714sed 's/^/| /' conftest.$ac_ext >&5
11715
11716ac_cv_func_alloca_works=no
252b5132 11717fi
42ecbf5e
DJ
11718rm -f conftest.err conftest.$ac_objext \
11719 conftest$ac_exeext conftest.$ac_ext
252b5132 11720fi
42ecbf5e
DJ
11721echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11722echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 11723
252b5132 11724if test $ac_cv_func_alloca_works = yes; then
e5a52504 11725
42ecbf5e
DJ
11726cat >>confdefs.h <<\_ACEOF
11727#define HAVE_ALLOCA 1
11728_ACEOF
e5a52504 11729
42ecbf5e 11730else
d15b04bd 11731 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
42ecbf5e
DJ
11732# that cause trouble. Some versions do not even contain alloca or
11733# contain a buggy version. If you still want to use their alloca,
11734# use ar to extract alloca.o from them instead of compiling alloca.c.
11735
11736ALLOCA=alloca.$ac_objext
11737
11738cat >>confdefs.h <<\_ACEOF
252b5132 11739#define C_ALLOCA 1
42ecbf5e 11740_ACEOF
252b5132
RH
11741
11742
42ecbf5e
DJ
11743echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11744echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11745if test "${ac_cv_os_cray+set}" = set; then
11746 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11747else
42ecbf5e
DJ
11748 cat >conftest.$ac_ext <<_ACEOF
11749/* confdefs.h. */
11750_ACEOF
11751cat confdefs.h >>conftest.$ac_ext
11752cat >>conftest.$ac_ext <<_ACEOF
11753/* end confdefs.h. */
252b5132
RH
11754#if defined(CRAY) && ! defined(CRAY2)
11755webecray
11756#else
11757wenotbecray
11758#endif
11759
42ecbf5e 11760_ACEOF
252b5132 11761if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42ecbf5e 11762 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
11763 ac_cv_os_cray=yes
11764else
252b5132
RH
11765 ac_cv_os_cray=no
11766fi
11767rm -f conftest*
11768
11769fi
42ecbf5e
DJ
11770echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11771echo "${ECHO_T}$ac_cv_os_cray" >&6
d15b04bd 11772if test $ac_cv_os_cray = yes; then
42ecbf5e
DJ
11773 for ac_func in _getb67 GETB67 getb67; do
11774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11775echo "$as_me:$LINENO: checking for $ac_func" >&5
11776echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11777if eval "test \"\${$as_ac_var+set}\" = set"; then
11778 echo $ECHO_N "(cached) $ECHO_C" >&6
11779else
11780 cat >conftest.$ac_ext <<_ACEOF
11781/* confdefs.h. */
11782_ACEOF
11783cat confdefs.h >>conftest.$ac_ext
11784cat >>conftest.$ac_ext <<_ACEOF
11785/* end confdefs.h. */
11786/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11788#define $ac_func innocuous_$ac_func
11789
252b5132 11790/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
11791 which can conflict with char $ac_func (); below.
11792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11793 <limits.h> exists even on freestanding compilers. */
11794
11795#ifdef __STDC__
11796# include <limits.h>
11797#else
11798# include <assert.h>
11799#endif
d15b04bd 11800
42ecbf5e 11801#undef $ac_func
d15b04bd 11802
42ecbf5e
DJ
11803/* Override any gcc2 internal prototype to avoid an error. */
11804#ifdef __cplusplus
11805extern "C"
11806{
11807#endif
11808/* We use char because int might match the return type of a gcc2
11809 builtin and then its argument prototype would still apply. */
11810char $ac_func ();
252b5132
RH
11811/* The GNU C library defines this for functions which it implements
11812 to always fail with ENOSYS. Some functions are actually named
11813 something starting with __ and the normal name is an alias. */
11814#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11815choke me
11816#else
42ecbf5e
DJ
11817char (*f) () = $ac_func;
11818#endif
11819#ifdef __cplusplus
11820}
252b5132
RH
11821#endif
11822
42ecbf5e
DJ
11823int
11824main ()
11825{
11826return f != $ac_func;
11827 ;
11828 return 0;
11829}
11830_ACEOF
11831rm -f conftest.$ac_objext conftest$ac_exeext
11832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11833 (eval $ac_link) 2>conftest.er1
11834 ac_status=$?
11835 grep -v '^ *+' conftest.er1 >conftest.err
11836 rm -f conftest.er1
11837 cat conftest.err >&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } &&
b7d4af3a
JW
11840 { ac_try='test -z "$ac_c_werror_flag"
11841 || test ! -s conftest.err'
42ecbf5e
DJ
11842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11843 (eval $ac_try) 2>&5
11844 ac_status=$?
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); }; } &&
11847 { ac_try='test -s conftest$ac_exeext'
11848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11849 (eval $ac_try) 2>&5
11850 ac_status=$?
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); }; }; then
11853 eval "$as_ac_var=yes"
11854else
11855 echo "$as_me: failed program was:" >&5
11856sed 's/^/| /' conftest.$ac_ext >&5
11857
11858eval "$as_ac_var=no"
11859fi
11860rm -f conftest.err conftest.$ac_objext \
11861 conftest$ac_exeext conftest.$ac_ext
11862fi
11863echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11864echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11865if test `eval echo '${'$as_ac_var'}'` = yes; then
11866
11867cat >>confdefs.h <<_ACEOF
252b5132 11868#define CRAY_STACKSEG_END $ac_func
42ecbf5e 11869_ACEOF
252b5132 11870
42ecbf5e 11871 break
252b5132
RH
11872fi
11873
42ecbf5e 11874 done
252b5132
RH
11875fi
11876
42ecbf5e
DJ
11877echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11878echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11879if test "${ac_cv_c_stack_direction+set}" = set; then
11880 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
11881else
11882 if test "$cross_compiling" = yes; then
11883 ac_cv_c_stack_direction=0
11884else
42ecbf5e
DJ
11885 cat >conftest.$ac_ext <<_ACEOF
11886/* confdefs.h. */
11887_ACEOF
11888cat confdefs.h >>conftest.$ac_ext
11889cat >>conftest.$ac_ext <<_ACEOF
11890/* end confdefs.h. */
11891int
252b5132
RH
11892find_stack_direction ()
11893{
11894 static char *addr = 0;
11895 auto char dummy;
11896 if (addr == 0)
11897 {
11898 addr = &dummy;
11899 return find_stack_direction ();
11900 }
11901 else
11902 return (&dummy > addr) ? 1 : -1;
11903}
42ecbf5e
DJ
11904
11905int
252b5132
RH
11906main ()
11907{
42ecbf5e 11908 exit (find_stack_direction () < 0);
252b5132 11909}
42ecbf5e
DJ
11910_ACEOF
11911rm -f conftest$ac_exeext
11912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11913 (eval $ac_link) 2>&5
11914 ac_status=$?
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918 (eval $ac_try) 2>&5
11919 ac_status=$?
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; }; then
252b5132
RH
11922 ac_cv_c_stack_direction=1
11923else
42ecbf5e
DJ
11924 echo "$as_me: program exited with status $ac_status" >&5
11925echo "$as_me: failed program was:" >&5
11926sed 's/^/| /' conftest.$ac_ext >&5
11927
11928( exit $ac_status )
11929ac_cv_c_stack_direction=-1
252b5132 11930fi
42ecbf5e 11931rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 11932fi
252b5132 11933fi
42ecbf5e
DJ
11934echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11935echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 11936
42ecbf5e 11937cat >>confdefs.h <<_ACEOF
252b5132 11938#define STACK_DIRECTION $ac_cv_c_stack_direction
42ecbf5e
DJ
11939_ACEOF
11940
252b5132
RH
11941
11942fi
11943
42ecbf5e
DJ
11944
11945
11946
11947
11948
9710509e 11949for ac_func in sbrk utimes setmode getc_unlocked strcoll
252b5132 11950do
42ecbf5e
DJ
11951as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11952echo "$as_me:$LINENO: checking for $ac_func" >&5
11953echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11954if eval "test \"\${$as_ac_var+set}\" = set"; then
11955 echo $ECHO_N "(cached) $ECHO_C" >&6
11956else
11957 cat >conftest.$ac_ext <<_ACEOF
11958/* confdefs.h. */
11959_ACEOF
11960cat confdefs.h >>conftest.$ac_ext
11961cat >>conftest.$ac_ext <<_ACEOF
11962/* end confdefs.h. */
11963/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11965#define $ac_func innocuous_$ac_func
11966
252b5132 11967/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
11968 which can conflict with char $ac_func (); below.
11969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11970 <limits.h> exists even on freestanding compilers. */
11971
11972#ifdef __STDC__
11973# include <limits.h>
11974#else
11975# include <assert.h>
11976#endif
d15b04bd 11977
42ecbf5e 11978#undef $ac_func
d15b04bd 11979
42ecbf5e
DJ
11980/* Override any gcc2 internal prototype to avoid an error. */
11981#ifdef __cplusplus
11982extern "C"
11983{
11984#endif
11985/* We use char because int might match the return type of a gcc2
11986 builtin and then its argument prototype would still apply. */
11987char $ac_func ();
252b5132
RH
11988/* The GNU C library defines this for functions which it implements
11989 to always fail with ENOSYS. Some functions are actually named
11990 something starting with __ and the normal name is an alias. */
11991#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11992choke me
11993#else
42ecbf5e
DJ
11994char (*f) () = $ac_func;
11995#endif
11996#ifdef __cplusplus
11997}
252b5132
RH
11998#endif
11999
42ecbf5e
DJ
12000int
12001main ()
12002{
12003return f != $ac_func;
12004 ;
12005 return 0;
12006}
12007_ACEOF
12008rm -f conftest.$ac_objext conftest$ac_exeext
12009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12010 (eval $ac_link) 2>conftest.er1
12011 ac_status=$?
12012 grep -v '^ *+' conftest.er1 >conftest.err
12013 rm -f conftest.er1
12014 cat conftest.err >&5
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); } &&
b7d4af3a
JW
12017 { ac_try='test -z "$ac_c_werror_flag"
12018 || test ! -s conftest.err'
42ecbf5e
DJ
12019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12020 (eval $ac_try) 2>&5
12021 ac_status=$?
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); }; } &&
12024 { ac_try='test -s conftest$ac_exeext'
12025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12026 (eval $ac_try) 2>&5
12027 ac_status=$?
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); }; }; then
12030 eval "$as_ac_var=yes"
12031else
12032 echo "$as_me: failed program was:" >&5
12033sed 's/^/| /' conftest.$ac_ext >&5
12034
12035eval "$as_ac_var=no"
12036fi
12037rm -f conftest.err conftest.$ac_objext \
12038 conftest$ac_exeext conftest.$ac_ext
12039fi
12040echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12041echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12042if test `eval echo '${'$as_ac_var'}'` = yes; then
12043 cat >>confdefs.h <<_ACEOF
12044#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12045_ACEOF
252b5132 12046
252b5132
RH
12047fi
12048done
12049
f9c026a8
NC
12050echo "$as_me:$LINENO: checking for mkstemp" >&5
12051echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
12052if test "${ac_cv_func_mkstemp+set}" = set; then
12053 echo $ECHO_N "(cached) $ECHO_C" >&6
12054else
12055 cat >conftest.$ac_ext <<_ACEOF
12056/* confdefs.h. */
12057_ACEOF
12058cat confdefs.h >>conftest.$ac_ext
12059cat >>conftest.$ac_ext <<_ACEOF
12060/* end confdefs.h. */
12061/* Define mkstemp to an innocuous variant, in case <limits.h> declares mkstemp.
12062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12063#define mkstemp innocuous_mkstemp
12064
12065/* System header to define __stub macros and hopefully few prototypes,
12066 which can conflict with char mkstemp (); below.
12067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12068 <limits.h> exists even on freestanding compilers. */
12069
12070#ifdef __STDC__
12071# include <limits.h>
12072#else
12073# include <assert.h>
12074#endif
12075
12076#undef mkstemp
12077
12078/* Override any gcc2 internal prototype to avoid an error. */
12079#ifdef __cplusplus
12080extern "C"
12081{
12082#endif
12083/* We use char because int might match the return type of a gcc2
12084 builtin and then its argument prototype would still apply. */
12085char mkstemp ();
12086/* The GNU C library defines this for functions which it implements
12087 to always fail with ENOSYS. Some functions are actually named
12088 something starting with __ and the normal name is an alias. */
12089#if defined (__stub_mkstemp) || defined (__stub___mkstemp)
12090choke me
12091#else
12092char (*f) () = mkstemp;
12093#endif
12094#ifdef __cplusplus
12095}
12096#endif
12097
12098int
12099main ()
12100{
12101return f != mkstemp;
12102 ;
12103 return 0;
12104}
12105_ACEOF
12106rm -f conftest.$ac_objext conftest$ac_exeext
12107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12108 (eval $ac_link) 2>conftest.er1
12109 ac_status=$?
12110 grep -v '^ *+' conftest.er1 >conftest.err
12111 rm -f conftest.er1
12112 cat conftest.err >&5
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); } &&
12115 { ac_try='test -z "$ac_c_werror_flag"
12116 || test ! -s conftest.err'
12117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118 (eval $ac_try) 2>&5
12119 ac_status=$?
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; } &&
12122 { ac_try='test -s conftest$ac_exeext'
12123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12124 (eval $ac_try) 2>&5
12125 ac_status=$?
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }; }; then
12128 ac_cv_func_mkstemp=yes
12129else
12130 echo "$as_me: failed program was:" >&5
12131sed 's/^/| /' conftest.$ac_ext >&5
12132
12133ac_cv_func_mkstemp=no
12134fi
12135rm -f conftest.err conftest.$ac_objext \
12136 conftest$ac_exeext conftest.$ac_ext
12137fi
12138echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
12139echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
12140if test $ac_cv_func_mkstemp = yes; then
12141
12142cat >>confdefs.h <<\_ACEOF
12143#define HAVE_MKSTEMP 1
12144_ACEOF
12145
12146fi
12147
12148echo "$as_me:$LINENO: checking for mkdtemp" >&5
12149echo $ECHO_N "checking for mkdtemp... $ECHO_C" >&6
12150if test "${ac_cv_func_mkdtemp+set}" = set; then
12151 echo $ECHO_N "(cached) $ECHO_C" >&6
12152else
12153 cat >conftest.$ac_ext <<_ACEOF
12154/* confdefs.h. */
12155_ACEOF
12156cat confdefs.h >>conftest.$ac_ext
12157cat >>conftest.$ac_ext <<_ACEOF
12158/* end confdefs.h. */
12159/* Define mkdtemp to an innocuous variant, in case <limits.h> declares mkdtemp.
12160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12161#define mkdtemp innocuous_mkdtemp
12162
12163/* System header to define __stub macros and hopefully few prototypes,
12164 which can conflict with char mkdtemp (); below.
12165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12166 <limits.h> exists even on freestanding compilers. */
12167
12168#ifdef __STDC__
12169# include <limits.h>
12170#else
12171# include <assert.h>
12172#endif
12173
12174#undef mkdtemp
12175
12176/* Override any gcc2 internal prototype to avoid an error. */
12177#ifdef __cplusplus
12178extern "C"
12179{
12180#endif
12181/* We use char because int might match the return type of a gcc2
12182 builtin and then its argument prototype would still apply. */
12183char mkdtemp ();
12184/* The GNU C library defines this for functions which it implements
12185 to always fail with ENOSYS. Some functions are actually named
12186 something starting with __ and the normal name is an alias. */
12187#if defined (__stub_mkdtemp) || defined (__stub___mkdtemp)
12188choke me
12189#else
12190char (*f) () = mkdtemp;
12191#endif
12192#ifdef __cplusplus
12193}
12194#endif
12195
12196int
12197main ()
12198{
12199return f != mkdtemp;
12200 ;
12201 return 0;
12202}
12203_ACEOF
12204rm -f conftest.$ac_objext conftest$ac_exeext
12205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12206 (eval $ac_link) 2>conftest.er1
12207 ac_status=$?
12208 grep -v '^ *+' conftest.er1 >conftest.err
12209 rm -f conftest.er1
12210 cat conftest.err >&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); } &&
12213 { ac_try='test -z "$ac_c_werror_flag"
12214 || test ! -s conftest.err'
12215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12216 (eval $ac_try) 2>&5
12217 ac_status=$?
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); }; } &&
12220 { ac_try='test -s conftest$ac_exeext'
12221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12222 (eval $ac_try) 2>&5
12223 ac_status=$?
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); }; }; then
12226 ac_cv_func_mkdtemp=yes
12227else
12228 echo "$as_me: failed program was:" >&5
12229sed 's/^/| /' conftest.$ac_ext >&5
12230
12231ac_cv_func_mkdtemp=no
12232fi
12233rm -f conftest.err conftest.$ac_objext \
12234 conftest$ac_exeext conftest.$ac_ext
12235fi
12236echo "$as_me:$LINENO: result: $ac_cv_func_mkdtemp" >&5
12237echo "${ECHO_T}$ac_cv_func_mkdtemp" >&6
12238if test $ac_cv_func_mkdtemp = yes; then
12239
12240cat >>confdefs.h <<\_ACEOF
12241#define HAVE_MKDTEMP 1
12242_ACEOF
12243
12244fi
12245
252b5132 12246
cedd9a58
JJ
12247# Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
12248# needs to be defined for it
42ecbf5e
DJ
12249echo "$as_me:$LINENO: checking for fopen64" >&5
12250echo $ECHO_N "checking for fopen64... $ECHO_C" >&6
12251if test "${bu_cv_have_fopen64+set}" = set; then
12252 echo $ECHO_N "(cached) $ECHO_C" >&6
12253else
12254 cat >conftest.$ac_ext <<_ACEOF
12255/* confdefs.h. */
12256_ACEOF
12257cat confdefs.h >>conftest.$ac_ext
12258cat >>conftest.$ac_ext <<_ACEOF
12259/* end confdefs.h. */
cedd9a58 12260#include <stdio.h>
42ecbf5e
DJ
12261int
12262main ()
12263{
cedd9a58 12264FILE *f = fopen64 ("/tmp/foo","r");
42ecbf5e
DJ
12265 ;
12266 return 0;
12267}
12268_ACEOF
12269rm -f conftest.$ac_objext conftest$ac_exeext
12270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12271 (eval $ac_link) 2>conftest.er1
12272 ac_status=$?
12273 grep -v '^ *+' conftest.er1 >conftest.err
12274 rm -f conftest.er1
12275 cat conftest.err >&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); } &&
b7d4af3a
JW
12278 { ac_try='test -z "$ac_c_werror_flag"
12279 || test ! -s conftest.err'
42ecbf5e
DJ
12280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281 (eval $ac_try) 2>&5
12282 ac_status=$?
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); }; } &&
12285 { ac_try='test -s conftest$ac_exeext'
12286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12287 (eval $ac_try) 2>&5
12288 ac_status=$?
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); }; }; then
cedd9a58
JJ
12291 bu_cv_have_fopen64=yes
12292else
42ecbf5e
DJ
12293 echo "$as_me: failed program was:" >&5
12294sed 's/^/| /' conftest.$ac_ext >&5
12295
12296saved_CPPFLAGS=$CPPFLAGS
cedd9a58 12297 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
42ecbf5e
DJ
12298 cat >conftest.$ac_ext <<_ACEOF
12299/* confdefs.h. */
12300_ACEOF
12301cat confdefs.h >>conftest.$ac_ext
12302cat >>conftest.$ac_ext <<_ACEOF
12303/* end confdefs.h. */
cedd9a58 12304#include <stdio.h>
42ecbf5e
DJ
12305int
12306main ()
12307{
cedd9a58 12308FILE *f = fopen64 ("/tmp/foo","r");
42ecbf5e
DJ
12309 ;
12310 return 0;
12311}
12312_ACEOF
12313rm -f conftest.$ac_objext conftest$ac_exeext
12314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12315 (eval $ac_link) 2>conftest.er1
12316 ac_status=$?
12317 grep -v '^ *+' conftest.er1 >conftest.err
12318 rm -f conftest.er1
12319 cat conftest.err >&5
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); } &&
b7d4af3a
JW
12322 { ac_try='test -z "$ac_c_werror_flag"
12323 || test ! -s conftest.err'
42ecbf5e
DJ
12324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12325 (eval $ac_try) 2>&5
12326 ac_status=$?
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); }; } &&
12329 { ac_try='test -s conftest$ac_exeext'
12330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12331 (eval $ac_try) 2>&5
12332 ac_status=$?
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); }; }; then
cedd9a58
JJ
12335 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
12336else
42ecbf5e
DJ
12337 echo "$as_me: failed program was:" >&5
12338sed 's/^/| /' conftest.$ac_ext >&5
12339
12340bu_cv_have_fopen64=no
cedd9a58 12341fi
42ecbf5e
DJ
12342rm -f conftest.err conftest.$ac_objext \
12343 conftest$ac_exeext conftest.$ac_ext
17a5a5c3 12344 CPPFLAGS=$saved_CPPFLAGS
cedd9a58 12345fi
42ecbf5e
DJ
12346rm -f conftest.err conftest.$ac_objext \
12347 conftest$ac_exeext conftest.$ac_ext
cedd9a58 12348fi
cedd9a58 12349
42ecbf5e
DJ
12350echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
12351echo "${ECHO_T}$bu_cv_have_fopen64" >&6
6db7a086 12352if test "$bu_cv_have_fopen64" != no; then
42ecbf5e
DJ
12353
12354cat >>confdefs.h <<\_ACEOF
cedd9a58 12355#define HAVE_FOPEN64 1
42ecbf5e 12356_ACEOF
cedd9a58 12357
fb5b5478 12358fi
42ecbf5e
DJ
12359echo "$as_me:$LINENO: checking for stat64" >&5
12360echo $ECHO_N "checking for stat64... $ECHO_C" >&6
12361if test "${bu_cv_have_stat64+set}" = set; then
12362 echo $ECHO_N "(cached) $ECHO_C" >&6
fb5b5478 12363else
42ecbf5e
DJ
12364 cat >conftest.$ac_ext <<_ACEOF
12365/* confdefs.h. */
12366_ACEOF
12367cat confdefs.h >>conftest.$ac_ext
12368cat >>conftest.$ac_ext <<_ACEOF
12369/* end confdefs.h. */
fb5b5478 12370#include <sys/stat.h>
42ecbf5e
DJ
12371int
12372main ()
12373{
fb5b5478 12374struct stat64 st; stat64 ("/tmp/foo", &st);
42ecbf5e
DJ
12375 ;
12376 return 0;
12377}
12378_ACEOF
12379rm -f conftest.$ac_objext conftest$ac_exeext
12380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12381 (eval $ac_link) 2>conftest.er1
12382 ac_status=$?
12383 grep -v '^ *+' conftest.er1 >conftest.err
12384 rm -f conftest.er1
12385 cat conftest.err >&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); } &&
b7d4af3a
JW
12388 { ac_try='test -z "$ac_c_werror_flag"
12389 || test ! -s conftest.err'
42ecbf5e
DJ
12390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12391 (eval $ac_try) 2>&5
12392 ac_status=$?
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); }; } &&
12395 { ac_try='test -s conftest$ac_exeext'
12396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397 (eval $ac_try) 2>&5
12398 ac_status=$?
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }; }; then
fb5b5478
JJ
12401 bu_cv_have_stat64=yes
12402else
42ecbf5e
DJ
12403 echo "$as_me: failed program was:" >&5
12404sed 's/^/| /' conftest.$ac_ext >&5
12405
12406saved_CPPFLAGS=$CPPFLAGS
fb5b5478 12407 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
42ecbf5e
DJ
12408 cat >conftest.$ac_ext <<_ACEOF
12409/* confdefs.h. */
12410_ACEOF
12411cat confdefs.h >>conftest.$ac_ext
12412cat >>conftest.$ac_ext <<_ACEOF
12413/* end confdefs.h. */
fb5b5478 12414#include <sys/stat.h>
42ecbf5e
DJ
12415int
12416main ()
12417{
fb5b5478 12418struct stat64 st; stat64 ("/tmp/foo", &st);
42ecbf5e
DJ
12419 ;
12420 return 0;
12421}
12422_ACEOF
12423rm -f conftest.$ac_objext conftest$ac_exeext
12424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12425 (eval $ac_link) 2>conftest.er1
12426 ac_status=$?
12427 grep -v '^ *+' conftest.er1 >conftest.err
12428 rm -f conftest.er1
12429 cat conftest.err >&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); } &&
b7d4af3a
JW
12432 { ac_try='test -z "$ac_c_werror_flag"
12433 || test ! -s conftest.err'
42ecbf5e
DJ
12434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12435 (eval $ac_try) 2>&5
12436 ac_status=$?
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); }; } &&
12439 { ac_try='test -s conftest$ac_exeext'
12440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12441 (eval $ac_try) 2>&5
12442 ac_status=$?
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); }; }; then
fb5b5478
JJ
12445 bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
12446else
42ecbf5e
DJ
12447 echo "$as_me: failed program was:" >&5
12448sed 's/^/| /' conftest.$ac_ext >&5
12449
12450bu_cv_have_stat64=no
fb5b5478 12451fi
42ecbf5e
DJ
12452rm -f conftest.err conftest.$ac_objext \
12453 conftest$ac_exeext conftest.$ac_ext
fb5b5478
JJ
12454 CPPFLAGS=$saved_CPPFLAGS
12455fi
42ecbf5e
DJ
12456rm -f conftest.err conftest.$ac_objext \
12457 conftest$ac_exeext conftest.$ac_ext
fb5b5478
JJ
12458fi
12459
42ecbf5e
DJ
12460echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5
12461echo "${ECHO_T}$bu_cv_have_stat64" >&6
fb5b5478 12462if test "$bu_cv_have_stat64" != no; then
42ecbf5e
DJ
12463
12464cat >>confdefs.h <<\_ACEOF
fb5b5478 12465#define HAVE_STAT64 1
42ecbf5e 12466_ACEOF
fb5b5478
JJ
12467
12468fi
12469if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
12470 || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
42ecbf5e
DJ
12471
12472cat >>confdefs.h <<\_ACEOF
cedd9a58 12473#define _LARGEFILE64_SOURCE 1
42ecbf5e 12474_ACEOF
cedd9a58 12475
fb5b5478 12476 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
cedd9a58
JJ
12477fi
12478
f353eb8a 12479# Some systems have frexp only in -lm, not in -lc.
42ecbf5e
DJ
12480echo "$as_me:$LINENO: checking for library containing frexp" >&5
12481echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6
12482if test "${ac_cv_search_frexp+set}" = set; then
12483 echo $ECHO_N "(cached) $ECHO_C" >&6
12484else
12485 ac_func_search_save_LIBS=$LIBS
12486ac_cv_search_frexp=no
12487cat >conftest.$ac_ext <<_ACEOF
12488/* confdefs.h. */
12489_ACEOF
12490cat confdefs.h >>conftest.$ac_ext
12491cat >>conftest.$ac_ext <<_ACEOF
12492/* end confdefs.h. */
f353eb8a 12493
f353eb8a 12494/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
12495#ifdef __cplusplus
12496extern "C"
12497#endif
f353eb8a 12498/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
12499 builtin and then its argument prototype would still apply. */
12500char frexp ();
12501int
12502main ()
12503{
12504frexp ();
12505 ;
12506 return 0;
12507}
12508_ACEOF
12509rm -f conftest.$ac_objext conftest$ac_exeext
12510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12511 (eval $ac_link) 2>conftest.er1
12512 ac_status=$?
12513 grep -v '^ *+' conftest.er1 >conftest.err
12514 rm -f conftest.er1
12515 cat conftest.err >&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); } &&
b7d4af3a
JW
12518 { ac_try='test -z "$ac_c_werror_flag"
12519 || test ! -s conftest.err'
42ecbf5e
DJ
12520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521 (eval $ac_try) 2>&5
12522 ac_status=$?
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); }; } &&
12525 { ac_try='test -s conftest$ac_exeext'
12526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12527 (eval $ac_try) 2>&5
12528 ac_status=$?
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); }; }; then
f353eb8a
ILT
12531 ac_cv_search_frexp="none required"
12532else
42ecbf5e
DJ
12533 echo "$as_me: failed program was:" >&5
12534sed 's/^/| /' conftest.$ac_ext >&5
12535
f353eb8a 12536fi
42ecbf5e
DJ
12537rm -f conftest.err conftest.$ac_objext \
12538 conftest$ac_exeext conftest.$ac_ext
12539if test "$ac_cv_search_frexp" = no; then
12540 for ac_lib in m; do
12541 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12542 cat >conftest.$ac_ext <<_ACEOF
12543/* confdefs.h. */
12544_ACEOF
12545cat confdefs.h >>conftest.$ac_ext
12546cat >>conftest.$ac_ext <<_ACEOF
12547/* end confdefs.h. */
12548
f353eb8a 12549/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
12550#ifdef __cplusplus
12551extern "C"
12552#endif
f353eb8a 12553/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
12554 builtin and then its argument prototype would still apply. */
12555char frexp ();
12556int
12557main ()
12558{
12559frexp ();
12560 ;
12561 return 0;
12562}
12563_ACEOF
12564rm -f conftest.$ac_objext conftest$ac_exeext
12565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12566 (eval $ac_link) 2>conftest.er1
12567 ac_status=$?
12568 grep -v '^ *+' conftest.er1 >conftest.err
12569 rm -f conftest.er1
12570 cat conftest.err >&5
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); } &&
b7d4af3a
JW
12573 { ac_try='test -z "$ac_c_werror_flag"
12574 || test ! -s conftest.err'
42ecbf5e
DJ
12575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12576 (eval $ac_try) 2>&5
12577 ac_status=$?
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); }; } &&
12580 { ac_try='test -s conftest$ac_exeext'
12581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12582 (eval $ac_try) 2>&5
12583 ac_status=$?
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); }; }; then
12586 ac_cv_search_frexp="-l$ac_lib"
f353eb8a
ILT
12587break
12588else
42ecbf5e
DJ
12589 echo "$as_me: failed program was:" >&5
12590sed 's/^/| /' conftest.$ac_ext >&5
12591
f353eb8a 12592fi
42ecbf5e
DJ
12593rm -f conftest.err conftest.$ac_objext \
12594 conftest$ac_exeext conftest.$ac_ext
12595 done
e5a52504 12596fi
42ecbf5e
DJ
12597LIBS=$ac_func_search_save_LIBS
12598fi
12599echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
12600echo "${ECHO_T}$ac_cv_search_frexp" >&6
12601if test "$ac_cv_search_frexp" != no; then
d15b04bd 12602 test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
42ecbf5e 12603
f353eb8a
ILT
12604fi
12605
42ecbf5e
DJ
12606
12607echo "$as_me:$LINENO: checking for time_t in time.h" >&5
12608echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6
12609if test "${bu_cv_decl_time_t_time_h+set}" = set; then
12610 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12611else
42ecbf5e
DJ
12612 cat >conftest.$ac_ext <<_ACEOF
12613/* confdefs.h. */
12614_ACEOF
12615cat confdefs.h >>conftest.$ac_ext
12616cat >>conftest.$ac_ext <<_ACEOF
12617/* end confdefs.h. */
252b5132 12618#include <time.h>
42ecbf5e
DJ
12619int
12620main ()
12621{
252b5132 12622time_t i;
42ecbf5e
DJ
12623 ;
12624 return 0;
12625}
12626_ACEOF
12627rm -f conftest.$ac_objext
12628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12629 (eval $ac_compile) 2>conftest.er1
12630 ac_status=$?
12631 grep -v '^ *+' conftest.er1 >conftest.err
12632 rm -f conftest.er1
12633 cat conftest.err >&5
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); } &&
b7d4af3a
JW
12636 { ac_try='test -z "$ac_c_werror_flag"
12637 || test ! -s conftest.err'
42ecbf5e
DJ
12638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12639 (eval $ac_try) 2>&5
12640 ac_status=$?
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); }; } &&
12643 { ac_try='test -s conftest.$ac_objext'
12644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12645 (eval $ac_try) 2>&5
12646 ac_status=$?
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); }; }; then
252b5132
RH
12649 bu_cv_decl_time_t_time_h=yes
12650else
42ecbf5e
DJ
12651 echo "$as_me: failed program was:" >&5
12652sed 's/^/| /' conftest.$ac_ext >&5
12653
12654bu_cv_decl_time_t_time_h=no
252b5132 12655fi
42ecbf5e 12656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12657fi
12658
42ecbf5e
DJ
12659echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
12660echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6
252b5132 12661if test $bu_cv_decl_time_t_time_h = yes; then
42ecbf5e
DJ
12662
12663cat >>confdefs.h <<\_ACEOF
252b5132 12664#define HAVE_TIME_T_IN_TIME_H 1
42ecbf5e 12665_ACEOF
252b5132
RH
12666
12667fi
12668
42ecbf5e
DJ
12669echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
12670echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6
12671if test "${bu_cv_decl_time_t_types_h+set}" = set; then
12672 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12673else
42ecbf5e
DJ
12674 cat >conftest.$ac_ext <<_ACEOF
12675/* confdefs.h. */
12676_ACEOF
12677cat confdefs.h >>conftest.$ac_ext
12678cat >>conftest.$ac_ext <<_ACEOF
12679/* end confdefs.h. */
252b5132 12680#include <sys/types.h>
42ecbf5e
DJ
12681int
12682main ()
12683{
252b5132 12684time_t i;
42ecbf5e
DJ
12685 ;
12686 return 0;
12687}
12688_ACEOF
12689rm -f conftest.$ac_objext
12690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12691 (eval $ac_compile) 2>conftest.er1
12692 ac_status=$?
12693 grep -v '^ *+' conftest.er1 >conftest.err
12694 rm -f conftest.er1
12695 cat conftest.err >&5
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); } &&
b7d4af3a
JW
12698 { ac_try='test -z "$ac_c_werror_flag"
12699 || test ! -s conftest.err'
42ecbf5e
DJ
12700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12701 (eval $ac_try) 2>&5
12702 ac_status=$?
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); }; } &&
12705 { ac_try='test -s conftest.$ac_objext'
12706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12707 (eval $ac_try) 2>&5
12708 ac_status=$?
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); }; }; then
252b5132
RH
12711 bu_cv_decl_time_t_types_h=yes
12712else
42ecbf5e
DJ
12713 echo "$as_me: failed program was:" >&5
12714sed 's/^/| /' conftest.$ac_ext >&5
12715
12716bu_cv_decl_time_t_types_h=no
252b5132 12717fi
42ecbf5e 12718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12719fi
12720
42ecbf5e
DJ
12721echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
12722echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6
252b5132 12723if test $bu_cv_decl_time_t_types_h = yes; then
42ecbf5e
DJ
12724
12725cat >>confdefs.h <<\_ACEOF
252b5132 12726#define HAVE_TIME_T_IN_TYPES_H 1
42ecbf5e 12727_ACEOF
252b5132
RH
12728
12729fi
12730
42ecbf5e
DJ
12731echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
12732echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
12733if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then
12734 echo $ECHO_N "(cached) $ECHO_C" >&6
e46eba98 12735else
42ecbf5e
DJ
12736 cat >conftest.$ac_ext <<_ACEOF
12737/* confdefs.h. */
12738_ACEOF
12739cat confdefs.h >>conftest.$ac_ext
12740cat >>conftest.$ac_ext <<_ACEOF
12741/* end confdefs.h. */
e46eba98 12742#include <unistd.h>
42ecbf5e
DJ
12743int
12744main ()
12745{
e46eba98 12746extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
12747 ;
12748 return 0;
12749}
12750_ACEOF
12751rm -f conftest.$ac_objext
12752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12753 (eval $ac_compile) 2>conftest.er1
12754 ac_status=$?
12755 grep -v '^ *+' conftest.er1 >conftest.err
12756 rm -f conftest.er1
12757 cat conftest.err >&5
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); } &&
b7d4af3a
JW
12760 { ac_try='test -z "$ac_c_werror_flag"
12761 || test ! -s conftest.err'
42ecbf5e
DJ
12762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12763 (eval $ac_try) 2>&5
12764 ac_status=$?
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); }; } &&
12767 { ac_try='test -s conftest.$ac_objext'
12768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12769 (eval $ac_try) 2>&5
12770 ac_status=$?
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); }; }; then
e46eba98
NC
12773 bu_cv_decl_getopt_unistd_h=yes
12774else
42ecbf5e
DJ
12775 echo "$as_me: failed program was:" >&5
12776sed 's/^/| /' conftest.$ac_ext >&5
12777
12778bu_cv_decl_getopt_unistd_h=no
e46eba98 12779fi
42ecbf5e 12780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e46eba98
NC
12781fi
12782
42ecbf5e
DJ
12783echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5
12784echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6
e46eba98 12785if test $bu_cv_decl_getopt_unistd_h = yes; then
42ecbf5e
DJ
12786
12787cat >>confdefs.h <<\_ACEOF
e46eba98 12788#define HAVE_DECL_GETOPT 1
42ecbf5e 12789_ACEOF
e46eba98
NC
12790
12791fi
12792
252b5132
RH
12793# Under Next 3.2 <utime.h> apparently does not define struct utimbuf
12794# by default.
42ecbf5e
DJ
12795echo "$as_me:$LINENO: checking for utime.h" >&5
12796echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
12797if test "${bu_cv_header_utime_h+set}" = set; then
12798 echo $ECHO_N "(cached) $ECHO_C" >&6
12799else
12800 cat >conftest.$ac_ext <<_ACEOF
12801/* confdefs.h. */
12802_ACEOF
12803cat confdefs.h >>conftest.$ac_ext
12804cat >>conftest.$ac_ext <<_ACEOF
12805/* end confdefs.h. */
252b5132
RH
12806#include <sys/types.h>
12807#ifdef HAVE_TIME_H
12808#include <time.h>
12809#endif
12810#include <utime.h>
42ecbf5e
DJ
12811int
12812main ()
12813{
252b5132 12814struct utimbuf s;
42ecbf5e
DJ
12815 ;
12816 return 0;
12817}
12818_ACEOF
12819rm -f conftest.$ac_objext
12820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12821 (eval $ac_compile) 2>conftest.er1
12822 ac_status=$?
12823 grep -v '^ *+' conftest.er1 >conftest.err
12824 rm -f conftest.er1
12825 cat conftest.err >&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); } &&
b7d4af3a
JW
12828 { ac_try='test -z "$ac_c_werror_flag"
12829 || test ! -s conftest.err'
42ecbf5e
DJ
12830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12831 (eval $ac_try) 2>&5
12832 ac_status=$?
12833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); }; } &&
12835 { ac_try='test -s conftest.$ac_objext'
12836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12837 (eval $ac_try) 2>&5
12838 ac_status=$?
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); }; }; then
252b5132
RH
12841 bu_cv_header_utime_h=yes
12842else
42ecbf5e
DJ
12843 echo "$as_me: failed program was:" >&5
12844sed 's/^/| /' conftest.$ac_ext >&5
12845
12846bu_cv_header_utime_h=no
252b5132 12847fi
42ecbf5e 12848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12849fi
12850
42ecbf5e
DJ
12851echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
12852echo "${ECHO_T}$bu_cv_header_utime_h" >&6
252b5132 12853if test $bu_cv_header_utime_h = yes; then
42ecbf5e
DJ
12854
12855cat >>confdefs.h <<\_ACEOF
252b5132 12856#define HAVE_GOOD_UTIME_H 1
42ecbf5e 12857_ACEOF
252b5132
RH
12858
12859fi
12860
398ee8f1
SE
12861echo "$as_me:$LINENO: checking whether fprintf is declared" >&5
12862echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6
12863if test "${ac_cv_have_decl_fprintf+set}" = set; then
42ecbf5e 12864 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12865else
42ecbf5e
DJ
12866 cat >conftest.$ac_ext <<_ACEOF
12867/* confdefs.h. */
12868_ACEOF
12869cat confdefs.h >>conftest.$ac_ext
12870cat >>conftest.$ac_ext <<_ACEOF
12871/* end confdefs.h. */
398ee8f1 12872$ac_includes_default
42ecbf5e
DJ
12873int
12874main ()
12875{
398ee8f1
SE
12876#ifndef fprintf
12877 char *p = (char *) fprintf;
12878#endif
12879
42ecbf5e
DJ
12880 ;
12881 return 0;
12882}
12883_ACEOF
12884rm -f conftest.$ac_objext
12885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12886 (eval $ac_compile) 2>conftest.er1
12887 ac_status=$?
12888 grep -v '^ *+' conftest.er1 >conftest.err
12889 rm -f conftest.er1
12890 cat conftest.err >&5
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); } &&
b7d4af3a
JW
12893 { ac_try='test -z "$ac_c_werror_flag"
12894 || test ! -s conftest.err'
42ecbf5e
DJ
12895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12896 (eval $ac_try) 2>&5
12897 ac_status=$?
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); }; } &&
12900 { ac_try='test -s conftest.$ac_objext'
12901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12902 (eval $ac_try) 2>&5
12903 ac_status=$?
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; }; then
398ee8f1 12906 ac_cv_have_decl_fprintf=yes
252b5132 12907else
42ecbf5e
DJ
12908 echo "$as_me: failed program was:" >&5
12909sed 's/^/| /' conftest.$ac_ext >&5
12910
398ee8f1 12911ac_cv_have_decl_fprintf=no
252b5132 12912fi
42ecbf5e 12913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12914fi
398ee8f1
SE
12915echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5
12916echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6
12917if test $ac_cv_have_decl_fprintf = yes; then
252b5132 12918
398ee8f1
SE
12919cat >>confdefs.h <<_ACEOF
12920#define HAVE_DECL_FPRINTF 1
12921_ACEOF
42ecbf5e 12922
398ee8f1
SE
12923
12924else
12925 cat >>confdefs.h <<_ACEOF
12926#define HAVE_DECL_FPRINTF 0
42ecbf5e 12927_ACEOF
252b5132 12928
252b5132 12929
3e321448
L
12930fi
12931echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
12932echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
12933if test "${ac_cv_have_decl_stpcpy+set}" = set; then
12934 echo $ECHO_N "(cached) $ECHO_C" >&6
12935else
12936 cat >conftest.$ac_ext <<_ACEOF
12937/* confdefs.h. */
12938_ACEOF
12939cat confdefs.h >>conftest.$ac_ext
12940cat >>conftest.$ac_ext <<_ACEOF
12941/* end confdefs.h. */
12942$ac_includes_default
12943int
12944main ()
12945{
12946#ifndef stpcpy
12947 char *p = (char *) stpcpy;
12948#endif
12949
12950 ;
12951 return 0;
12952}
12953_ACEOF
12954rm -f conftest.$ac_objext
12955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12956 (eval $ac_compile) 2>conftest.er1
12957 ac_status=$?
12958 grep -v '^ *+' conftest.er1 >conftest.err
12959 rm -f conftest.er1
12960 cat conftest.err >&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); } &&
12963 { ac_try='test -z "$ac_c_werror_flag"
12964 || test ! -s conftest.err'
12965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12966 (eval $ac_try) 2>&5
12967 ac_status=$?
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); }; } &&
12970 { ac_try='test -s conftest.$ac_objext'
12971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12972 (eval $ac_try) 2>&5
12973 ac_status=$?
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); }; }; then
12976 ac_cv_have_decl_stpcpy=yes
12977else
12978 echo "$as_me: failed program was:" >&5
12979sed 's/^/| /' conftest.$ac_ext >&5
12980
12981ac_cv_have_decl_stpcpy=no
12982fi
12983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12984fi
12985echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
12986echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
12987if test $ac_cv_have_decl_stpcpy = yes; then
12988
12989cat >>confdefs.h <<_ACEOF
12990#define HAVE_DECL_STPCPY 1
12991_ACEOF
12992
12993
12994else
12995 cat >>confdefs.h <<_ACEOF
12996#define HAVE_DECL_STPCPY 0
12997_ACEOF
12998
12999
398ee8f1
SE
13000fi
13001echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13002echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13003if test "${ac_cv_have_decl_strstr+set}" = set; then
42ecbf5e 13004 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13005else
42ecbf5e
DJ
13006 cat >conftest.$ac_ext <<_ACEOF
13007/* confdefs.h. */
13008_ACEOF
13009cat confdefs.h >>conftest.$ac_ext
13010cat >>conftest.$ac_ext <<_ACEOF
13011/* end confdefs.h. */
398ee8f1 13012$ac_includes_default
42ecbf5e
DJ
13013int
13014main ()
13015{
398ee8f1
SE
13016#ifndef strstr
13017 char *p = (char *) strstr;
13018#endif
13019
42ecbf5e
DJ
13020 ;
13021 return 0;
13022}
13023_ACEOF
13024rm -f conftest.$ac_objext
13025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13026 (eval $ac_compile) 2>conftest.er1
13027 ac_status=$?
13028 grep -v '^ *+' conftest.er1 >conftest.err
13029 rm -f conftest.er1
13030 cat conftest.err >&5
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); } &&
b7d4af3a
JW
13033 { ac_try='test -z "$ac_c_werror_flag"
13034 || test ! -s conftest.err'
42ecbf5e
DJ
13035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13036 (eval $ac_try) 2>&5
13037 ac_status=$?
13038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039 (exit $ac_status); }; } &&
13040 { ac_try='test -s conftest.$ac_objext'
13041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13042 (eval $ac_try) 2>&5
13043 ac_status=$?
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); }; }; then
398ee8f1 13046 ac_cv_have_decl_strstr=yes
252b5132 13047else
42ecbf5e
DJ
13048 echo "$as_me: failed program was:" >&5
13049sed 's/^/| /' conftest.$ac_ext >&5
13050
398ee8f1 13051ac_cv_have_decl_strstr=no
252b5132 13052fi
42ecbf5e 13053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 13054fi
398ee8f1
SE
13055echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13056echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13057if test $ac_cv_have_decl_strstr = yes; then
252b5132 13058
398ee8f1
SE
13059cat >>confdefs.h <<_ACEOF
13060#define HAVE_DECL_STRSTR 1
13061_ACEOF
42ecbf5e 13062
398ee8f1
SE
13063
13064else
13065 cat >>confdefs.h <<_ACEOF
13066#define HAVE_DECL_STRSTR 0
42ecbf5e 13067_ACEOF
252b5132 13068
252b5132 13069
398ee8f1
SE
13070fi
13071echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
13072echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
13073if test "${ac_cv_have_decl_sbrk+set}" = set; then
42ecbf5e 13074 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13075else
42ecbf5e
DJ
13076 cat >conftest.$ac_ext <<_ACEOF
13077/* confdefs.h. */
13078_ACEOF
13079cat confdefs.h >>conftest.$ac_ext
13080cat >>conftest.$ac_ext <<_ACEOF
13081/* end confdefs.h. */
398ee8f1 13082$ac_includes_default
42ecbf5e
DJ
13083int
13084main ()
13085{
398ee8f1
SE
13086#ifndef sbrk
13087 char *p = (char *) sbrk;
13088#endif
13089
42ecbf5e
DJ
13090 ;
13091 return 0;
13092}
13093_ACEOF
13094rm -f conftest.$ac_objext
13095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13096 (eval $ac_compile) 2>conftest.er1
13097 ac_status=$?
13098 grep -v '^ *+' conftest.er1 >conftest.err
13099 rm -f conftest.er1
13100 cat conftest.err >&5
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); } &&
b7d4af3a
JW
13103 { ac_try='test -z "$ac_c_werror_flag"
13104 || test ! -s conftest.err'
42ecbf5e
DJ
13105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13106 (eval $ac_try) 2>&5
13107 ac_status=$?
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); }; } &&
13110 { ac_try='test -s conftest.$ac_objext'
13111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13112 (eval $ac_try) 2>&5
13113 ac_status=$?
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); }; }; then
398ee8f1 13116 ac_cv_have_decl_sbrk=yes
252b5132 13117else
42ecbf5e
DJ
13118 echo "$as_me: failed program was:" >&5
13119sed 's/^/| /' conftest.$ac_ext >&5
13120
398ee8f1 13121ac_cv_have_decl_sbrk=no
252b5132 13122fi
42ecbf5e 13123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 13124fi
398ee8f1
SE
13125echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
13126echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
13127if test $ac_cv_have_decl_sbrk = yes; then
252b5132 13128
398ee8f1
SE
13129cat >>confdefs.h <<_ACEOF
13130#define HAVE_DECL_SBRK 1
13131_ACEOF
42ecbf5e 13132
398ee8f1
SE
13133
13134else
13135 cat >>confdefs.h <<_ACEOF
13136#define HAVE_DECL_SBRK 0
42ecbf5e 13137_ACEOF
252b5132 13138
252b5132 13139
398ee8f1
SE
13140fi
13141echo "$as_me:$LINENO: checking whether getenv is declared" >&5
13142echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
13143if test "${ac_cv_have_decl_getenv+set}" = set; then
42ecbf5e 13144 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13145else
42ecbf5e
DJ
13146 cat >conftest.$ac_ext <<_ACEOF
13147/* confdefs.h. */
13148_ACEOF
13149cat confdefs.h >>conftest.$ac_ext
13150cat >>conftest.$ac_ext <<_ACEOF
13151/* end confdefs.h. */
398ee8f1 13152$ac_includes_default
42ecbf5e
DJ
13153int
13154main ()
13155{
398ee8f1
SE
13156#ifndef getenv
13157 char *p = (char *) getenv;
13158#endif
13159
42ecbf5e
DJ
13160 ;
13161 return 0;
13162}
13163_ACEOF
13164rm -f conftest.$ac_objext
13165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13166 (eval $ac_compile) 2>conftest.er1
13167 ac_status=$?
13168 grep -v '^ *+' conftest.er1 >conftest.err
13169 rm -f conftest.er1
13170 cat conftest.err >&5
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); } &&
b7d4af3a
JW
13173 { ac_try='test -z "$ac_c_werror_flag"
13174 || test ! -s conftest.err'
42ecbf5e
DJ
13175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13176 (eval $ac_try) 2>&5
13177 ac_status=$?
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); }; } &&
13180 { ac_try='test -s conftest.$ac_objext'
13181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13182 (eval $ac_try) 2>&5
13183 ac_status=$?
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); }; }; then
398ee8f1 13186 ac_cv_have_decl_getenv=yes
252b5132 13187else
42ecbf5e
DJ
13188 echo "$as_me: failed program was:" >&5
13189sed 's/^/| /' conftest.$ac_ext >&5
13190
398ee8f1 13191ac_cv_have_decl_getenv=no
252b5132 13192fi
42ecbf5e 13193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 13194fi
398ee8f1
SE
13195echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
13196echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
13197if test $ac_cv_have_decl_getenv = yes; then
252b5132 13198
398ee8f1
SE
13199cat >>confdefs.h <<_ACEOF
13200#define HAVE_DECL_GETENV 1
13201_ACEOF
42ecbf5e 13202
398ee8f1
SE
13203
13204else
13205 cat >>confdefs.h <<_ACEOF
13206#define HAVE_DECL_GETENV 0
42ecbf5e 13207_ACEOF
252b5132 13208
252b5132 13209
398ee8f1
SE
13210fi
13211echo "$as_me:$LINENO: checking whether environ is declared" >&5
13212echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
13213if test "${ac_cv_have_decl_environ+set}" = set; then
42ecbf5e 13214 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13215else
42ecbf5e
DJ
13216 cat >conftest.$ac_ext <<_ACEOF
13217/* confdefs.h. */
13218_ACEOF
13219cat confdefs.h >>conftest.$ac_ext
13220cat >>conftest.$ac_ext <<_ACEOF
13221/* end confdefs.h. */
398ee8f1 13222$ac_includes_default
42ecbf5e
DJ
13223int
13224main ()
13225{
398ee8f1
SE
13226#ifndef environ
13227 char *p = (char *) environ;
13228#endif
13229
42ecbf5e
DJ
13230 ;
13231 return 0;
13232}
13233_ACEOF
13234rm -f conftest.$ac_objext
13235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13236 (eval $ac_compile) 2>conftest.er1
13237 ac_status=$?
13238 grep -v '^ *+' conftest.er1 >conftest.err
13239 rm -f conftest.er1
13240 cat conftest.err >&5
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); } &&
b7d4af3a
JW
13243 { ac_try='test -z "$ac_c_werror_flag"
13244 || test ! -s conftest.err'
42ecbf5e
DJ
13245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13246 (eval $ac_try) 2>&5
13247 ac_status=$?
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); }; } &&
13250 { ac_try='test -s conftest.$ac_objext'
13251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13252 (eval $ac_try) 2>&5
13253 ac_status=$?
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); }; }; then
398ee8f1 13256 ac_cv_have_decl_environ=yes
252b5132 13257else
42ecbf5e
DJ
13258 echo "$as_me: failed program was:" >&5
13259sed 's/^/| /' conftest.$ac_ext >&5
13260
398ee8f1 13261ac_cv_have_decl_environ=no
252b5132 13262fi
42ecbf5e 13263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 13264fi
398ee8f1
SE
13265echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
13266echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
13267if test $ac_cv_have_decl_environ = yes; then
252b5132 13268
398ee8f1
SE
13269cat >>confdefs.h <<_ACEOF
13270#define HAVE_DECL_ENVIRON 1
13271_ACEOF
42ecbf5e 13272
398ee8f1
SE
13273
13274else
13275 cat >>confdefs.h <<_ACEOF
13276#define HAVE_DECL_ENVIRON 0
42ecbf5e 13277_ACEOF
252b5132 13278
252b5132 13279
398ee8f1 13280fi
b7d4af3a
JW
13281echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
13282echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
13283if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
13284 echo $ECHO_N "(cached) $ECHO_C" >&6
13285else
13286 cat >conftest.$ac_ext <<_ACEOF
13287/* confdefs.h. */
13288_ACEOF
13289cat confdefs.h >>conftest.$ac_ext
13290cat >>conftest.$ac_ext <<_ACEOF
13291/* end confdefs.h. */
13292$ac_includes_default
13293int
13294main ()
13295{
13296#ifndef getc_unlocked
13297 char *p = (char *) getc_unlocked;
13298#endif
13299
13300 ;
13301 return 0;
13302}
13303_ACEOF
13304rm -f conftest.$ac_objext
13305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13306 (eval $ac_compile) 2>conftest.er1
13307 ac_status=$?
13308 grep -v '^ *+' conftest.er1 >conftest.err
13309 rm -f conftest.er1
13310 cat conftest.err >&5
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); } &&
13313 { ac_try='test -z "$ac_c_werror_flag"
13314 || test ! -s conftest.err'
13315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13316 (eval $ac_try) 2>&5
13317 ac_status=$?
13318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); }; } &&
13320 { ac_try='test -s conftest.$ac_objext'
13321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13322 (eval $ac_try) 2>&5
13323 ac_status=$?
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); }; }; then
13326 ac_cv_have_decl_getc_unlocked=yes
13327else
13328 echo "$as_me: failed program was:" >&5
13329sed 's/^/| /' conftest.$ac_ext >&5
13330
13331ac_cv_have_decl_getc_unlocked=no
13332fi
13333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13334fi
13335echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
13336echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
13337if test $ac_cv_have_decl_getc_unlocked = yes; then
13338
13339cat >>confdefs.h <<_ACEOF
13340#define HAVE_DECL_GETC_UNLOCKED 1
13341_ACEOF
13342
13343
13344else
13345 cat >>confdefs.h <<_ACEOF
13346#define HAVE_DECL_GETC_UNLOCKED 0
13347_ACEOF
13348
13349
db50c840
EB
13350fi
13351echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13352echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13353if test "${ac_cv_have_decl_snprintf+set}" = set; then
13354 echo $ECHO_N "(cached) $ECHO_C" >&6
13355else
13356 cat >conftest.$ac_ext <<_ACEOF
13357/* confdefs.h. */
13358_ACEOF
13359cat confdefs.h >>conftest.$ac_ext
13360cat >>conftest.$ac_ext <<_ACEOF
13361/* end confdefs.h. */
13362$ac_includes_default
13363int
13364main ()
13365{
13366#ifndef snprintf
13367 char *p = (char *) snprintf;
13368#endif
13369
13370 ;
13371 return 0;
13372}
13373_ACEOF
13374rm -f conftest.$ac_objext
13375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13376 (eval $ac_compile) 2>conftest.er1
13377 ac_status=$?
13378 grep -v '^ *+' conftest.er1 >conftest.err
13379 rm -f conftest.er1
13380 cat conftest.err >&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } &&
13383 { ac_try='test -z "$ac_c_werror_flag"
13384 || test ! -s conftest.err'
13385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13386 (eval $ac_try) 2>&5
13387 ac_status=$?
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); }; } &&
13390 { ac_try='test -s conftest.$ac_objext'
13391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13392 (eval $ac_try) 2>&5
13393 ac_status=$?
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); }; }; then
13396 ac_cv_have_decl_snprintf=yes
13397else
13398 echo "$as_me: failed program was:" >&5
13399sed 's/^/| /' conftest.$ac_ext >&5
13400
13401ac_cv_have_decl_snprintf=no
13402fi
13403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13404fi
13405echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13406echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13407if test $ac_cv_have_decl_snprintf = yes; then
13408
13409cat >>confdefs.h <<_ACEOF
13410#define HAVE_DECL_SNPRINTF 1
13411_ACEOF
13412
13413
13414else
13415 cat >>confdefs.h <<_ACEOF
13416#define HAVE_DECL_SNPRINTF 0
13417_ACEOF
13418
13419
13420fi
13421echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13422echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13423if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13424 echo $ECHO_N "(cached) $ECHO_C" >&6
13425else
13426 cat >conftest.$ac_ext <<_ACEOF
13427/* confdefs.h. */
13428_ACEOF
13429cat confdefs.h >>conftest.$ac_ext
13430cat >>conftest.$ac_ext <<_ACEOF
13431/* end confdefs.h. */
13432$ac_includes_default
13433int
13434main ()
13435{
13436#ifndef vsnprintf
13437 char *p = (char *) vsnprintf;
13438#endif
13439
13440 ;
13441 return 0;
13442}
13443_ACEOF
13444rm -f conftest.$ac_objext
13445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13446 (eval $ac_compile) 2>conftest.er1
13447 ac_status=$?
13448 grep -v '^ *+' conftest.er1 >conftest.err
13449 rm -f conftest.er1
13450 cat conftest.err >&5
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); } &&
13453 { ac_try='test -z "$ac_c_werror_flag"
13454 || test ! -s conftest.err'
13455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13456 (eval $ac_try) 2>&5
13457 ac_status=$?
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); }; } &&
13460 { ac_try='test -s conftest.$ac_objext'
13461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13462 (eval $ac_try) 2>&5
13463 ac_status=$?
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); }; }; then
13466 ac_cv_have_decl_vsnprintf=yes
13467else
13468 echo "$as_me: failed program was:" >&5
13469sed 's/^/| /' conftest.$ac_ext >&5
13470
13471ac_cv_have_decl_vsnprintf=no
13472fi
13473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13474fi
13475echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13476echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13477if test $ac_cv_have_decl_vsnprintf = yes; then
13478
13479cat >>confdefs.h <<_ACEOF
13480#define HAVE_DECL_VSNPRINTF 1
13481_ACEOF
13482
13483
13484else
13485 cat >>confdefs.h <<_ACEOF
13486#define HAVE_DECL_VSNPRINTF 0
13487_ACEOF
13488
13489
b7d4af3a
JW
13490fi
13491
13492
252b5132
RH
13493
13494
13495case "${host}" in
8a965946 13496*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e
DJ
13497
13498cat >>confdefs.h <<\_ACEOF
252b5132 13499#define USE_BINARY_FOPEN 1
42ecbf5e 13500_ACEOF
252b5132
RH
13501 ;;
13502esac
13503
13504# target-specific stuff:
13505
13506# Canonicalize the secondary target names.
13507if test -n "$enable_targets"; then
13508 for targ in `echo $enable_targets | sed 's/,/ /g'`
13509 do
6d83c84b 13510 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
13511 if test -n "$result"; then
13512 canon_targets="$canon_targets $result"
13513 else
13514 # Allow targets that config.sub doesn't recognize, like "all".
13515 canon_targets="$canon_targets $targ"
13516 fi
13517 done
13518fi
13519
5ba684e2
NC
13520if test "${ac_cv_header_iconv_h+set}" = set; then
13521 echo "$as_me:$LINENO: checking for iconv.h" >&5
13522echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
13523if test "${ac_cv_header_iconv_h+set}" = set; then
13524 echo $ECHO_N "(cached) $ECHO_C" >&6
13525fi
13526echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
13527echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
13528else
13529 # Is the header compilable?
13530echo "$as_me:$LINENO: checking iconv.h usability" >&5
13531echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
13532cat >conftest.$ac_ext <<_ACEOF
13533/* confdefs.h. */
13534_ACEOF
13535cat confdefs.h >>conftest.$ac_ext
13536cat >>conftest.$ac_ext <<_ACEOF
13537/* end confdefs.h. */
13538$ac_includes_default
13539#include <iconv.h>
13540_ACEOF
13541rm -f conftest.$ac_objext
13542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13543 (eval $ac_compile) 2>conftest.er1
13544 ac_status=$?
13545 grep -v '^ *+' conftest.er1 >conftest.err
13546 rm -f conftest.er1
13547 cat conftest.err >&5
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); } &&
13550 { ac_try='test -z "$ac_c_werror_flag"
13551 || test ! -s conftest.err'
13552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553 (eval $ac_try) 2>&5
13554 ac_status=$?
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); }; } &&
13557 { ac_try='test -s conftest.$ac_objext'
13558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559 (eval $ac_try) 2>&5
13560 ac_status=$?
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); }; }; then
13563 ac_header_compiler=yes
13564else
13565 echo "$as_me: failed program was:" >&5
13566sed 's/^/| /' conftest.$ac_ext >&5
13567
13568ac_header_compiler=no
13569fi
13570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13571echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13572echo "${ECHO_T}$ac_header_compiler" >&6
13573
13574# Is the header present?
13575echo "$as_me:$LINENO: checking iconv.h presence" >&5
13576echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
13577cat >conftest.$ac_ext <<_ACEOF
13578/* confdefs.h. */
13579_ACEOF
13580cat confdefs.h >>conftest.$ac_ext
13581cat >>conftest.$ac_ext <<_ACEOF
13582/* end confdefs.h. */
13583#include <iconv.h>
13584_ACEOF
13585if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13586 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13587 ac_status=$?
13588 grep -v '^ *+' conftest.er1 >conftest.err
13589 rm -f conftest.er1
13590 cat conftest.err >&5
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); } >/dev/null; then
13593 if test -s conftest.err; then
13594 ac_cpp_err=$ac_c_preproc_warn_flag
13595 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13596 else
13597 ac_cpp_err=
13598 fi
13599else
13600 ac_cpp_err=yes
13601fi
13602if test -z "$ac_cpp_err"; then
13603 ac_header_preproc=yes
13604else
13605 echo "$as_me: failed program was:" >&5
13606sed 's/^/| /' conftest.$ac_ext >&5
13607
13608 ac_header_preproc=no
13609fi
13610rm -f conftest.err conftest.$ac_ext
13611echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13612echo "${ECHO_T}$ac_header_preproc" >&6
13613
13614# So? What about this header?
13615case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13616 yes:no: )
13617 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
13618echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13619 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
13620echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
13621 ac_header_preproc=yes
13622 ;;
13623 no:yes:* )
13624 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
13625echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
13626 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
13627echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
13628 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
13629echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
13630 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
13631echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
13632 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
13633echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
13634 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
13635echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
13636 (
13637 cat <<\_ASBOX
13638## ------------------------------------------ ##
13639## Report this to the AC_PACKAGE_NAME lists. ##
13640## ------------------------------------------ ##
13641_ASBOX
13642 ) |
13643 sed "s/^/$as_me: WARNING: /" >&2
13644 ;;
13645esac
13646echo "$as_me:$LINENO: checking for iconv.h" >&5
13647echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
13648if test "${ac_cv_header_iconv_h+set}" = set; then
13649 echo $ECHO_N "(cached) $ECHO_C" >&6
13650else
13651 ac_cv_header_iconv_h=$ac_header_preproc
13652fi
13653echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
13654echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
13655
13656fi
13657
13658
13659
13660 if test "X$prefix" = "XNONE"; then
13661 acl_final_prefix="$ac_default_prefix"
13662 else
13663 acl_final_prefix="$prefix"
13664 fi
13665 if test "X$exec_prefix" = "XNONE"; then
13666 acl_final_exec_prefix='${prefix}'
13667 else
13668 acl_final_exec_prefix="$exec_prefix"
13669 fi
13670 acl_save_prefix="$prefix"
13671 prefix="$acl_final_prefix"
13672 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13673 prefix="$acl_save_prefix"
13674
13675
13676# Check whether --with-gnu-ld or --without-gnu-ld was given.
13677if test "${with_gnu_ld+set}" = set; then
13678 withval="$with_gnu_ld"
13679 test "$withval" = no || with_gnu_ld=yes
13680else
13681 with_gnu_ld=no
13682fi;
13683# Prepare PATH_SEPARATOR.
13684# The user is always right.
13685if test "${PATH_SEPARATOR+set}" != set; then
13686 echo "#! /bin/sh" >conf$$.sh
13687 echo "exit 0" >>conf$$.sh
13688 chmod +x conf$$.sh
13689 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13690 PATH_SEPARATOR=';'
13691 else
13692 PATH_SEPARATOR=:
13693 fi
13694 rm -f conf$$.sh
13695fi
13696ac_prog=ld
13697if test "$GCC" = yes; then
13698 # Check if gcc -print-prog-name=ld gives a path.
13699 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
13700echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
13701 case $host in
13702 *-*-mingw*)
13703 # gcc leaves a trailing carriage return which upsets mingw
13704 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13705 *)
13706 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13707 esac
13708 case $ac_prog in
13709 # Accept absolute paths.
13710 [\\/]* | [A-Za-z]:[\\/]*)
13711 re_direlt='/[^/][^/]*/\.\./'
13712 # Canonicalize the path of ld
13713 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13714 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13715 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13716 done
13717 test -z "$LD" && LD="$ac_prog"
13718 ;;
13719 "")
13720 # If it fails, then pretend we aren't using GCC.
13721 ac_prog=ld
13722 ;;
13723 *)
13724 # If it is relative, then search for the first ld in PATH.
13725 with_gnu_ld=unknown
13726 ;;
13727 esac
13728elif test "$with_gnu_ld" = yes; then
13729 echo "$as_me:$LINENO: checking for GNU ld" >&5
13730echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
13731else
13732 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13733echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
13734fi
13735if test "${acl_cv_path_LD+set}" = set; then
13736 echo $ECHO_N "(cached) $ECHO_C" >&6
13737else
13738 if test -z "$LD"; then
13739 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13740 for ac_dir in $PATH; do
13741 test -z "$ac_dir" && ac_dir=.
13742 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13743 acl_cv_path_LD="$ac_dir/$ac_prog"
13744 # Check to see if the program is GNU ld. I'd rather use --version,
13745 # but apparently some GNU ld's only accept -v.
13746 # Break only if it was the GNU/non-GNU ld that we prefer.
13747 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
13748 test "$with_gnu_ld" != no && break
13749 else
13750 test "$with_gnu_ld" != yes && break
13751 fi
13752 fi
13753 done
13754 IFS="$ac_save_ifs"
13755else
13756 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13757fi
13758fi
13759
13760LD="$acl_cv_path_LD"
13761if test -n "$LD"; then
13762 echo "$as_me:$LINENO: result: $LD" >&5
13763echo "${ECHO_T}$LD" >&6
13764else
13765 echo "$as_me:$LINENO: result: no" >&5
13766echo "${ECHO_T}no" >&6
13767fi
13768test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13769echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13770 { (exit 1); exit 1; }; }
13771echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13772echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
13773if test "${acl_cv_prog_gnu_ld+set}" = set; then
13774 echo $ECHO_N "(cached) $ECHO_C" >&6
13775else
13776 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13777if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
13778 acl_cv_prog_gnu_ld=yes
13779else
13780 acl_cv_prog_gnu_ld=no
13781fi
13782fi
13783echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
13784echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
13785with_gnu_ld=$acl_cv_prog_gnu_ld
13786
13787
13788
13789 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
13790echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
13791if test "${acl_cv_rpath+set}" = set; then
13792 echo $ECHO_N "(cached) $ECHO_C" >&6
13793else
13794
13795 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13796 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13797 . ./conftest.sh
13798 rm -f ./conftest.sh
13799 acl_cv_rpath=done
13800
13801fi
13802echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
13803echo "${ECHO_T}$acl_cv_rpath" >&6
13804 wl="$acl_cv_wl"
13805 libext="$acl_cv_libext"
13806 shlibext="$acl_cv_shlibext"
13807 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13808 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13809 hardcode_direct="$acl_cv_hardcode_direct"
13810 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13811 # Check whether --enable-rpath or --disable-rpath was given.
13812if test "${enable_rpath+set}" = set; then
13813 enableval="$enable_rpath"
13814 :
13815else
13816 enable_rpath=yes
13817fi;
13818
13819
13820
13821
13822
13823
13824
13825 use_additional=yes
13826
13827 acl_save_prefix="$prefix"
13828 prefix="$acl_final_prefix"
13829 acl_save_exec_prefix="$exec_prefix"
13830 exec_prefix="$acl_final_exec_prefix"
13831
13832 eval additional_includedir=\"$includedir\"
13833 eval additional_libdir=\"$libdir\"
13834
13835 exec_prefix="$acl_save_exec_prefix"
13836 prefix="$acl_save_prefix"
13837
13838
13839# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
13840if test "${with_libiconv_prefix+set}" = set; then
13841 withval="$with_libiconv_prefix"
13842
13843 if test "X$withval" = "Xno"; then
13844 use_additional=no
13845 else
13846 if test "X$withval" = "X"; then
13847
13848 acl_save_prefix="$prefix"
13849 prefix="$acl_final_prefix"
13850 acl_save_exec_prefix="$exec_prefix"
13851 exec_prefix="$acl_final_exec_prefix"
13852
13853 eval additional_includedir=\"$includedir\"
13854 eval additional_libdir=\"$libdir\"
13855
13856 exec_prefix="$acl_save_exec_prefix"
13857 prefix="$acl_save_prefix"
13858
13859 else
13860 additional_includedir="$withval/include"
13861 additional_libdir="$withval/lib"
13862 fi
13863 fi
13864
13865fi;
13866 LIBICONV=
13867 LTLIBICONV=
13868 INCICONV=
13869 rpathdirs=
13870 ltrpathdirs=
13871 names_already_handled=
13872 names_next_round='iconv '
13873 while test -n "$names_next_round"; do
13874 names_this_round="$names_next_round"
13875 names_next_round=
13876 for name in $names_this_round; do
13877 already_handled=
13878 for n in $names_already_handled; do
13879 if test "$n" = "$name"; then
13880 already_handled=yes
13881 break
13882 fi
13883 done
13884 if test -z "$already_handled"; then
13885 names_already_handled="$names_already_handled $name"
13886 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13887 eval value=\"\$HAVE_LIB$uppername\"
13888 if test -n "$value"; then
13889 if test "$value" = yes; then
13890 eval value=\"\$LIB$uppername\"
13891 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13892 eval value=\"\$LTLIB$uppername\"
13893 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13894 else
13895 :
13896 fi
13897 else
13898 found_dir=
13899 found_la=
13900 found_so=
13901 found_a=
13902 if test $use_additional = yes; then
13903 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13904 found_dir="$additional_libdir"
13905 found_so="$additional_libdir/lib$name.$shlibext"
13906 if test -f "$additional_libdir/lib$name.la"; then
13907 found_la="$additional_libdir/lib$name.la"
13908 fi
13909 else
13910 if test -f "$additional_libdir/lib$name.$libext"; then
13911 found_dir="$additional_libdir"
13912 found_a="$additional_libdir/lib$name.$libext"
13913 if test -f "$additional_libdir/lib$name.la"; then
13914 found_la="$additional_libdir/lib$name.la"
13915 fi
13916 fi
13917 fi
13918 fi
13919 if test "X$found_dir" = "X"; then
13920 for x in $LDFLAGS $LTLIBICONV; do
13921
13922 acl_save_prefix="$prefix"
13923 prefix="$acl_final_prefix"
13924 acl_save_exec_prefix="$exec_prefix"
13925 exec_prefix="$acl_final_exec_prefix"
13926 eval x=\"$x\"
13927 exec_prefix="$acl_save_exec_prefix"
13928 prefix="$acl_save_prefix"
13929
13930 case "$x" in
13931 -L*)
13932 dir=`echo "X$x" | sed -e 's/^X-L//'`
13933 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13934 found_dir="$dir"
13935 found_so="$dir/lib$name.$shlibext"
13936 if test -f "$dir/lib$name.la"; then
13937 found_la="$dir/lib$name.la"
13938 fi
13939 else
13940 if test -f "$dir/lib$name.$libext"; then
13941 found_dir="$dir"
13942 found_a="$dir/lib$name.$libext"
13943 if test -f "$dir/lib$name.la"; then
13944 found_la="$dir/lib$name.la"
13945 fi
13946 fi
13947 fi
13948 ;;
13949 esac
13950 if test "X$found_dir" != "X"; then
13951 break
13952 fi
13953 done
13954 fi
13955 if test "X$found_dir" != "X"; then
13956 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13957 if test "X$found_so" != "X"; then
13958 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13959 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13960 else
13961 haveit=
13962 for x in $ltrpathdirs; do
13963 if test "X$x" = "X$found_dir"; then
13964 haveit=yes
13965 break
13966 fi
13967 done
13968 if test -z "$haveit"; then
13969 ltrpathdirs="$ltrpathdirs $found_dir"
13970 fi
13971 if test "$hardcode_direct" = yes; then
13972 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13973 else
13974 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13975 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13976 haveit=
13977 for x in $rpathdirs; do
13978 if test "X$x" = "X$found_dir"; then
13979 haveit=yes
13980 break
13981 fi
13982 done
13983 if test -z "$haveit"; then
13984 rpathdirs="$rpathdirs $found_dir"
13985 fi
13986 else
13987 haveit=
13988 for x in $LDFLAGS $LIBICONV; do
13989
13990 acl_save_prefix="$prefix"
13991 prefix="$acl_final_prefix"
13992 acl_save_exec_prefix="$exec_prefix"
13993 exec_prefix="$acl_final_exec_prefix"
13994 eval x=\"$x\"
13995 exec_prefix="$acl_save_exec_prefix"
13996 prefix="$acl_save_prefix"
13997
13998 if test "X$x" = "X-L$found_dir"; then
13999 haveit=yes
14000 break
14001 fi
14002 done
14003 if test -z "$haveit"; then
14004 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14005 fi
14006 if test "$hardcode_minus_L" != no; then
14007 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14008 else
14009 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14010 fi
14011 fi
14012 fi
14013 fi
14014 else
14015 if test "X$found_a" != "X"; then
14016 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14017 else
14018 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14019 fi
14020 fi
14021 additional_includedir=
14022 case "$found_dir" in
14023 */lib | */lib/)
14024 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14025 additional_includedir="$basedir/include"
14026 ;;
14027 esac
14028 if test "X$additional_includedir" != "X"; then
14029 if test "X$additional_includedir" != "X/usr/include"; then
14030 haveit=
14031 if test "X$additional_includedir" = "X/usr/local/include"; then
14032 if test -n "$GCC"; then
14033 case $host_os in
14034 linux*) haveit=yes;;
14035 esac
14036 fi
14037 fi
14038 if test -z "$haveit"; then
14039 for x in $CPPFLAGS $INCICONV; do
14040
14041 acl_save_prefix="$prefix"
14042 prefix="$acl_final_prefix"
14043 acl_save_exec_prefix="$exec_prefix"
14044 exec_prefix="$acl_final_exec_prefix"
14045 eval x=\"$x\"
14046 exec_prefix="$acl_save_exec_prefix"
14047 prefix="$acl_save_prefix"
14048
14049 if test "X$x" = "X-I$additional_includedir"; then
14050 haveit=yes
14051 break
14052 fi
14053 done
14054 if test -z "$haveit"; then
14055 if test -d "$additional_includedir"; then
14056 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14057 fi
14058 fi
14059 fi
14060 fi
14061 fi
14062 if test -n "$found_la"; then
14063 save_libdir="$libdir"
14064 case "$found_la" in
14065 */* | *\\*) . "$found_la" ;;
14066 *) . "./$found_la" ;;
14067 esac
14068 libdir="$save_libdir"
14069 for dep in $dependency_libs; do
14070 case "$dep" in
14071 -L*)
14072 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14073 if test "X$additional_libdir" != "X/usr/lib"; then
14074 haveit=
14075 if test "X$additional_libdir" = "X/usr/local/lib"; then
14076 if test -n "$GCC"; then
14077 case $host_os in
14078 linux*) haveit=yes;;
14079 esac
14080 fi
14081 fi
14082 if test -z "$haveit"; then
14083 haveit=
14084 for x in $LDFLAGS $LIBICONV; do
14085
14086 acl_save_prefix="$prefix"
14087 prefix="$acl_final_prefix"
14088 acl_save_exec_prefix="$exec_prefix"
14089 exec_prefix="$acl_final_exec_prefix"
14090 eval x=\"$x\"
14091 exec_prefix="$acl_save_exec_prefix"
14092 prefix="$acl_save_prefix"
14093
14094 if test "X$x" = "X-L$additional_libdir"; then
14095 haveit=yes
14096 break
14097 fi
14098 done
14099 if test -z "$haveit"; then
14100 if test -d "$additional_libdir"; then
14101 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14102 fi
14103 fi
14104 haveit=
14105 for x in $LDFLAGS $LTLIBICONV; do
14106
14107 acl_save_prefix="$prefix"
14108 prefix="$acl_final_prefix"
14109 acl_save_exec_prefix="$exec_prefix"
14110 exec_prefix="$acl_final_exec_prefix"
14111 eval x=\"$x\"
14112 exec_prefix="$acl_save_exec_prefix"
14113 prefix="$acl_save_prefix"
14114
14115 if test "X$x" = "X-L$additional_libdir"; then
14116 haveit=yes
14117 break
14118 fi
14119 done
14120 if test -z "$haveit"; then
14121 if test -d "$additional_libdir"; then
14122 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14123 fi
14124 fi
14125 fi
14126 fi
14127 ;;
14128 -R*)
14129 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14130 if test "$enable_rpath" != no; then
14131 haveit=
14132 for x in $rpathdirs; do
14133 if test "X$x" = "X$dir"; then
14134 haveit=yes
14135 break
14136 fi
14137 done
14138 if test -z "$haveit"; then
14139 rpathdirs="$rpathdirs $dir"
14140 fi
14141 haveit=
14142 for x in $ltrpathdirs; do
14143 if test "X$x" = "X$dir"; then
14144 haveit=yes
14145 break
14146 fi
14147 done
14148 if test -z "$haveit"; then
14149 ltrpathdirs="$ltrpathdirs $dir"
14150 fi
14151 fi
14152 ;;
14153 -l*)
14154 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14155 ;;
14156 *.la)
14157 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14158 ;;
14159 *)
14160 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14161 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14162 ;;
14163 esac
14164 done
14165 fi
14166 else
14167 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14168 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14169 fi
14170 fi
14171 fi
14172 done
14173 done
14174 if test "X$rpathdirs" != "X"; then
14175 if test -n "$hardcode_libdir_separator"; then
14176 alldirs=
14177 for found_dir in $rpathdirs; do
14178 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14179 done
14180 acl_save_libdir="$libdir"
14181 libdir="$alldirs"
14182 eval flag=\"$hardcode_libdir_flag_spec\"
14183 libdir="$acl_save_libdir"
14184 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14185 else
14186 for found_dir in $rpathdirs; do
14187 acl_save_libdir="$libdir"
14188 libdir="$found_dir"
14189 eval flag=\"$hardcode_libdir_flag_spec\"
14190 libdir="$acl_save_libdir"
14191 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14192 done
14193 fi
14194 fi
14195 if test "X$ltrpathdirs" != "X"; then
14196 for found_dir in $ltrpathdirs; do
14197 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14198 done
14199 fi
14200
14201
14202
14203
14204
14205
14206
14207 am_save_CPPFLAGS="$CPPFLAGS"
14208
14209 for element in $INCICONV; do
14210 haveit=
14211 for x in $CPPFLAGS; do
14212
14213 acl_save_prefix="$prefix"
14214 prefix="$acl_final_prefix"
14215 acl_save_exec_prefix="$exec_prefix"
14216 exec_prefix="$acl_final_exec_prefix"
14217 eval x=\"$x\"
14218 exec_prefix="$acl_save_exec_prefix"
14219 prefix="$acl_save_prefix"
14220
14221 if test "X$x" = "X$element"; then
14222 haveit=yes
14223 break
14224 fi
14225 done
14226 if test -z "$haveit"; then
14227 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14228 fi
14229 done
14230
14231
14232 echo "$as_me:$LINENO: checking for iconv" >&5
14233echo $ECHO_N "checking for iconv... $ECHO_C" >&6
14234if test "${am_cv_func_iconv+set}" = set; then
14235 echo $ECHO_N "(cached) $ECHO_C" >&6
14236else
14237
14238 am_cv_func_iconv="no, consider installing GNU libiconv"
14239 am_cv_lib_iconv=no
14240 cat >conftest.$ac_ext <<_ACEOF
14241/* confdefs.h. */
14242_ACEOF
14243cat confdefs.h >>conftest.$ac_ext
14244cat >>conftest.$ac_ext <<_ACEOF
14245/* end confdefs.h. */
14246#include <stdlib.h>
14247#include <iconv.h>
14248int
14249main ()
14250{
14251iconv_t cd = iconv_open("","");
14252 iconv(cd,NULL,NULL,NULL,NULL);
14253 iconv_close(cd);
14254 ;
14255 return 0;
14256}
14257_ACEOF
14258rm -f conftest.$ac_objext conftest$ac_exeext
14259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14260 (eval $ac_link) 2>conftest.er1
14261 ac_status=$?
14262 grep -v '^ *+' conftest.er1 >conftest.err
14263 rm -f conftest.er1
14264 cat conftest.err >&5
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); } &&
14267 { ac_try='test -z "$ac_c_werror_flag"
14268 || test ! -s conftest.err'
14269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14270 (eval $ac_try) 2>&5
14271 ac_status=$?
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); }; } &&
14274 { ac_try='test -s conftest$ac_exeext'
14275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14276 (eval $ac_try) 2>&5
14277 ac_status=$?
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); }; }; then
14280 am_cv_func_iconv=yes
14281else
14282 echo "$as_me: failed program was:" >&5
14283sed 's/^/| /' conftest.$ac_ext >&5
14284
14285fi
14286rm -f conftest.err conftest.$ac_objext \
14287 conftest$ac_exeext conftest.$ac_ext
14288 if test "$am_cv_func_iconv" != yes; then
14289 am_save_LIBS="$LIBS"
14290 LIBS="$LIBS $LIBICONV"
14291 cat >conftest.$ac_ext <<_ACEOF
14292/* confdefs.h. */
14293_ACEOF
14294cat confdefs.h >>conftest.$ac_ext
14295cat >>conftest.$ac_ext <<_ACEOF
14296/* end confdefs.h. */
14297#include <stdlib.h>
14298#include <iconv.h>
14299int
14300main ()
14301{
14302iconv_t cd = iconv_open("","");
14303 iconv(cd,NULL,NULL,NULL,NULL);
14304 iconv_close(cd);
14305 ;
14306 return 0;
14307}
14308_ACEOF
14309rm -f conftest.$ac_objext conftest$ac_exeext
14310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14311 (eval $ac_link) 2>conftest.er1
14312 ac_status=$?
14313 grep -v '^ *+' conftest.er1 >conftest.err
14314 rm -f conftest.er1
14315 cat conftest.err >&5
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); } &&
14318 { ac_try='test -z "$ac_c_werror_flag"
14319 || test ! -s conftest.err'
14320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14321 (eval $ac_try) 2>&5
14322 ac_status=$?
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); }; } &&
14325 { ac_try='test -s conftest$ac_exeext'
14326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14327 (eval $ac_try) 2>&5
14328 ac_status=$?
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); }; }; then
14331 am_cv_lib_iconv=yes
14332 am_cv_func_iconv=yes
14333else
14334 echo "$as_me: failed program was:" >&5
14335sed 's/^/| /' conftest.$ac_ext >&5
14336
14337fi
14338rm -f conftest.err conftest.$ac_objext \
14339 conftest$ac_exeext conftest.$ac_ext
14340 LIBS="$am_save_LIBS"
14341 fi
14342
14343fi
14344echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
14345echo "${ECHO_T}$am_cv_func_iconv" >&6
14346 if test "$am_cv_func_iconv" = yes; then
14347
14348cat >>confdefs.h <<\_ACEOF
14349#define HAVE_ICONV 1
14350_ACEOF
14351
14352 fi
14353 if test "$am_cv_lib_iconv" = yes; then
14354 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
14355echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
14356 echo "$as_me:$LINENO: result: $LIBICONV" >&5
14357echo "${ECHO_T}$LIBICONV" >&6
14358 else
14359 CPPFLAGS="$am_save_CPPFLAGS"
14360 LIBICONV=
14361 LTLIBICONV=
14362 fi
14363
14364
14365
14366 if test "$am_cv_func_iconv" = yes; then
14367 echo "$as_me:$LINENO: checking for iconv declaration" >&5
14368echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
14369 if test "${am_cv_proto_iconv+set}" = set; then
14370 echo $ECHO_N "(cached) $ECHO_C" >&6
14371else
14372
14373 cat >conftest.$ac_ext <<_ACEOF
14374/* confdefs.h. */
14375_ACEOF
14376cat confdefs.h >>conftest.$ac_ext
14377cat >>conftest.$ac_ext <<_ACEOF
14378/* end confdefs.h. */
14379
14380#include <stdlib.h>
14381#include <iconv.h>
14382extern
14383#ifdef __cplusplus
14384"C"
14385#endif
14386#if defined(__STDC__) || defined(__cplusplus)
14387size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14388#else
14389size_t iconv();
14390#endif
14391
14392int
14393main ()
14394{
14395
14396 ;
14397 return 0;
14398}
14399_ACEOF
14400rm -f conftest.$ac_objext
14401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14402 (eval $ac_compile) 2>conftest.er1
14403 ac_status=$?
14404 grep -v '^ *+' conftest.er1 >conftest.err
14405 rm -f conftest.er1
14406 cat conftest.err >&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); } &&
14409 { ac_try='test -z "$ac_c_werror_flag"
14410 || test ! -s conftest.err'
14411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14412 (eval $ac_try) 2>&5
14413 ac_status=$?
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); }; } &&
14416 { ac_try='test -s conftest.$ac_objext'
14417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14418 (eval $ac_try) 2>&5
14419 ac_status=$?
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); }; }; then
14422 am_cv_proto_iconv_arg1=""
14423else
14424 echo "$as_me: failed program was:" >&5
14425sed 's/^/| /' conftest.$ac_ext >&5
14426
14427am_cv_proto_iconv_arg1="const"
14428fi
14429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14430 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);"
14431fi
14432
14433 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14434 echo "$as_me:$LINENO: result: ${ac_t:-
14435 }$am_cv_proto_iconv" >&5
14436echo "${ECHO_T}${ac_t:-
14437 }$am_cv_proto_iconv" >&6
14438
14439cat >>confdefs.h <<_ACEOF
14440#define ICONV_CONST $am_cv_proto_iconv_arg1
14441_ACEOF
14442
14443 fi
14444
14445
252b5132
RH
14446all_targets=false
14447BUILD_NLMCONV=
14448NLMCONV_DEFS=
14449BUILD_SRCONV=
14450BUILD_DLLTOOL=
14451DLLTOOL_DEFS=
7aad4c3d 14452DLLTOOL_DEFAULT=
252b5132 14453BUILD_WINDRES=
692ed3e7 14454BUILD_WINDMC=
252b5132
RH
14455BUILD_DLLWRAP=
14456BUILD_MISC=
1d97d67f 14457BUILD_INSTALL_MISC=
8b1e6df3 14458OBJDUMP_DEFS=
252b5132
RH
14459
14460for targ in $target $canon_targets
14461do
14462 if test "x$targ" = "xall"; then
14463 all_targets=true
14464 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14465 BUILD_SRCONV='$(SRCONV_PROG)'
14466 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
1d97d67f 14467 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
003bc0ba
NC
14468 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14469 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14470 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14471 if test -z "$DLLTOOL_DEFAULT"; then
14472 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14473 fi
14474 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14475 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
252b5132
RH
14476 else
14477 case $targ in
42ecbf5e 14478 i[3-7]86*-*-netware*)
252b5132
RH
14479 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14480 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
14481 ;;
14482 alpha*-*-netware*)
14483 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14484 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
14485 ;;
14486 powerpc*-*-netware*)
14487 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14488 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
14489 ;;
14490 sparc*-*-netware*)
14491 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14492 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
14493 ;;
14494 esac
14495 case $targ in
14496 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
14497 esac
14498 case $targ in
a8c548cb
NC
14499 arm-epoc-pe*)
14500 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14501 if test -z "$DLLTOOL_DEFAULT"; then
14502 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
14503 fi
a8c548cb
NC
14504 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
14505 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14506 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
a8c548cb 14507 ;;
7148cc28
NC
14508 arm-wince-pe* | arm-*-wince)
14509 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14510 if test -z "$DLLTOOL_DEFAULT"; then
14511 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
14512 fi
7148cc28
NC
14513 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
14514 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14515 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7148cc28
NC
14516 ;;
14517 arm-*-pe*)
252b5132 14518 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14519 if test -z "$DLLTOOL_DEFAULT"; then
14520 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
14521 fi
252b5132
RH
14522 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
14523 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14524 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 14525 ;;
27a710e5 14526 thumb-*-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 ;;
42037fe5 14535 x86_64-*-mingw*)
99ad8390 14536 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14537 if test -z "$DLLTOOL_DEFAULT"; then
14538 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
14539 fi
99ad8390
NC
14540 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
14541 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14542 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
99ad8390
NC
14543 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14544 ;;
80c7c40a 14545 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
252b5132 14546 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14547 if test -z "$DLLTOOL_DEFAULT"; then
14548 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14549 fi
252b5132
RH
14550 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14551 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14552 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
252b5132 14553 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
7a7b06ef 14554 ;;
80c7c40a 14555 i[3-7]86-*-interix)
7a7b06ef 14556 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
7aad4c3d
L
14557 if test -z "$DLLTOOL_DEFAULT"; then
14558 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14559 fi
7a7b06ef
ILT
14560 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14561 ;;
f0660b73
NC
14562 powerpc*-aix5.[01])
14563 ;;
14564 powerpc*-aix5.*)
14565 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
14566 ;;
e1d5b1e7 14567 powerpc*-*-pe* | powerpc*-*-cygwin*)
252b5132 14568 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14569 if test -z "$DLLTOOL_DEFAULT"; then
14570 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
14571 fi
252b5132
RH
14572 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
14573 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14574 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
8a0e0f38 14575 ;;
59678365 14576 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
1d97d67f 14577 BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
669a9a2a 14578 ;;
e1d5b1e7 14579 sh*-*-pe)
8a0e0f38 14580 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14581 if test -z "$DLLTOOL_DEFAULT"; then
14582 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
14583 fi
8a0e0f38
NC
14584 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
14585 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14586 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
8a0e0f38 14587 ;;
cd14b966 14588 spu-*-*)
1d97d67f 14589 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
cd14b966 14590 ;;
e1d5b1e7 14591 mips*-*-pe)
8a0e0f38 14592 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14593 if test -z "$DLLTOOL_DEFAULT"; then
14594 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
14595 fi
8a0e0f38
NC
14596 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
14597 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14598 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 14599 ;;
27a710e5 14600 mcore-*-pe)
661016bb 14601 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14602 if test -z "$DLLTOOL_DEFAULT"; then
14603 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
14604 fi
661016bb
NC
14605 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
14606 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14607 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 14608 ;;
27a710e5 14609 mcore-*-elf)
661016bb 14610 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14611 if test -z "$DLLTOOL_DEFAULT"; then
14612 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
14613 fi
661016bb 14614 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
7a7b06ef 14615 ;;
15ab5209
DB
14616 mep-*)
14617 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
14618 ;;
252b5132
RH
14619 esac
14620 fi
14621done
14622
7aad4c3d
L
14623DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
14624
42ecbf5e
DJ
14625if test "${with_windres+set}" = set; then
14626 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14627fi
14628
692ed3e7
NC
14629if test "${with_windmc+set}" = set; then
14630 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14631fi
14632
14633
42ecbf5e
DJ
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
1d97d67f 14645
42ecbf5e
DJ
14646cat >>confdefs.h <<_ACEOF
14647#define TARGET "${target}"
14648_ACEOF
14649
14650
14651targ=$target
14652. $srcdir/../bfd/config.bfd
14653if test "x$targ_underscore" = "xyes"; then
14654 UNDERSCORE=1
14655else
14656 UNDERSCORE=0
14657fi
14658
14659cat >>confdefs.h <<_ACEOF
14660#define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
14661_ACEOF
14662
14663
14664# Emulation
14665for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
14666do
14667 # Canonicalize the secondary target names.
14668 result=`$ac_config_sub $targ_alias 2>/dev/null`
14669 if test -n "$result"; then
14670 targ=$result
14671 else
14672 targ=$targ_alias
14673 fi
14674
14675 . ${srcdir}/configure.tgt
14676
14677 EMULATION=$targ_emul
14678 EMULATION_VECTOR=$targ_emul_vector
14679done
14680
14681
14682
14683
108a6f8e
CD
14684# Required for html and install-html
14685
14686
14687
14688
42ecbf5e 14689 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
42ecbf5e
DJ
14690cat >confcache <<\_ACEOF
14691# This file is a shell script that caches the results of configure
14692# tests run on this system so they can be shared between configure
14693# scripts and configure runs, see configure's option --config-cache.
14694# It is not useful on other systems. If it contains results you don't
14695# want to keep, you may remove or edit it.
14696#
14697# config.status only pays attention to the cache file if you give it
14698# the --recheck option to rerun configure.
14699#
14700# `ac_cv_env_foo' variables (set or unset) will be overridden when
14701# loading this file, other *unset* `ac_cv_foo' will be assigned the
14702# following values.
14703
14704_ACEOF
14705
14706# The following way of writing the cache mishandles newlines in values,
14707# but we know of no workaround that is simple, portable, and efficient.
14708# So, don't put newlines in cache variables' values.
14709# Ultrix sh set writes to stderr and can't be redirected directly,
14710# and sets the high bit in the cache file unless we assign to the vars.
14711{
14712 (set) 2>&1 |
14713 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14714 *ac_space=\ *)
14715 # `set' does not quote correctly, so add quotes (double-quote
14716 # substitution turns \\\\ into \\, and sed turns \\ into \).
14717 sed -n \
14718 "s/'/'\\\\''/g;
14719 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14720 ;;
14721 *)
14722 # `set' quotes correctly as required by POSIX, so do not add quotes.
14723 sed -n \
14724 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14725 ;;
14726 esac;
14727} |
14728 sed '
14729 t clear
14730 : clear
14731 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14732 t end
14733 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14734 : end' >>confcache
14735if diff $cache_file confcache >/dev/null 2>&1; then :; else
14736 if test -w $cache_file; then
14737 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14738 cat confcache >$cache_file
14739 else
14740 echo "not updating unwritable cache $cache_file"
14741 fi
14742fi
14743rm -f confcache
14744
14745test "x$prefix" = xNONE && prefix=$ac_default_prefix
14746# Let make expand exec_prefix.
14747test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14748
14749# VPATH may cause trouble with some makes, so we remove $(srcdir),
14750# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14751# trailing colons and then remove the whole line if VPATH becomes empty
14752# (actually we leave an empty line to preserve line numbers).
14753if test "x$srcdir" = x.; then
14754 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14755s/:*\$(srcdir):*/:/;
14756s/:*\${srcdir}:*/:/;
14757s/:*@srcdir@:*/:/;
14758s/^\([^=]*=[ ]*\):*/\1/;
14759s/:*$//;
14760s/^[^=]*=[ ]*$//;
14761}'
14762fi
14763
14764DEFS=-DHAVE_CONFIG_H
14765
14766ac_libobjs=
14767ac_ltlibobjs=
14768for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14769 # 1. Remove the extension, and $U if already installed.
14770 ac_i=`echo "$ac_i" |
14771 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14772 # 2. Add them.
14773 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14774 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14775done
14776LIBOBJS=$ac_libobjs
14777
14778LTLIBOBJS=$ac_ltlibobjs
14779
14780
14781if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14782 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14783Usually this means the macro was only invoked conditionally." >&5
14784echo "$as_me: error: conditional \"AMDEP\" was never defined.
14785Usually this means the macro was only invoked conditionally." >&2;}
14786 { (exit 1); exit 1; }; }
14787fi
14788if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14789 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14790Usually this means the macro was only invoked conditionally." >&5
14791echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14792Usually this means the macro was only invoked conditionally." >&2;}
14793 { (exit 1); exit 1; }; }
14794fi
14795if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14796 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14797Usually this means the macro was only invoked conditionally." >&5
14798echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14799Usually this means the macro was only invoked conditionally." >&2;}
14800 { (exit 1); exit 1; }; }
14801fi
d5fbea21
DJ
14802if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
14803 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
14804Usually this means the macro was only invoked conditionally." >&5
14805echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
14806Usually this means the macro was only invoked conditionally." >&2;}
14807 { (exit 1); exit 1; }; }
14808fi
42ecbf5e
DJ
14809
14810: ${CONFIG_STATUS=./config.status}
14811ac_clean_files_save=$ac_clean_files
14812ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14813{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14814echo "$as_me: creating $CONFIG_STATUS" >&6;}
14815cat >$CONFIG_STATUS <<_ACEOF
14816#! $SHELL
14817# Generated by $as_me.
14818# Run this file to recreate the current configuration.
14819# Compiler output produced by configure, useful for debugging
14820# configure, is in config.log if it exists.
14821
14822debug=false
14823ac_cs_recheck=false
14824ac_cs_silent=false
14825SHELL=\${CONFIG_SHELL-$SHELL}
14826_ACEOF
252b5132 14827
42ecbf5e
DJ
14828cat >>$CONFIG_STATUS <<\_ACEOF
14829## --------------------- ##
14830## M4sh Initialization. ##
14831## --------------------- ##
252b5132 14832
42ecbf5e
DJ
14833# Be Bourne compatible
14834if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14835 emulate sh
14836 NULLCMD=:
14837 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14838 # is contrary to our usage. Disable this feature.
14839 alias -g '${1+"$@"}'='"$@"'
14840elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14841 set -o posix
14842fi
14843DUALCASE=1; export DUALCASE # for MKS sh
252b5132 14844
42ecbf5e
DJ
14845# Support unset when possible.
14846if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14847 as_unset=unset
14848else
14849 as_unset=false
14850fi
252b5132
RH
14851
14852
42ecbf5e
DJ
14853# Work around bugs in pre-3.0 UWIN ksh.
14854$as_unset ENV MAIL MAILPATH
14855PS1='$ '
14856PS2='> '
14857PS4='+ '
252b5132 14858
42ecbf5e
DJ
14859# NLS nuisances.
14860for as_var in \
14861 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14862 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14863 LC_TELEPHONE LC_TIME
14864do
14865 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14866 eval $as_var=C; export $as_var
14867 else
14868 $as_unset $as_var
14869 fi
14870done
252b5132 14871
42ecbf5e
DJ
14872# Required to use basename.
14873if expr a : '\(a\)' >/dev/null 2>&1; then
14874 as_expr=expr
14875else
14876 as_expr=false
14877fi
252b5132 14878
42ecbf5e
DJ
14879if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14880 as_basename=basename
14881else
14882 as_basename=false
14883fi
252b5132 14884
8b1e6df3 14885
42ecbf5e
DJ
14886# Name of the executable.
14887as_me=`$as_basename "$0" ||
14888$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14889 X"$0" : 'X\(//\)$' \| \
14890 X"$0" : 'X\(/\)$' \| \
14891 . : '\(.\)' 2>/dev/null ||
14892echo X/"$0" |
14893 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14894 /^X\/\(\/\/\)$/{ s//\1/; q; }
14895 /^X\/\(\/\).*/{ s//\1/; q; }
14896 s/.*/./; q'`
0218d1e4 14897
252b5132 14898
42ecbf5e
DJ
14899# PATH needs CR, and LINENO needs CR and PATH.
14900# Avoid depending upon Character Ranges.
14901as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14902as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14903as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14904as_cr_digits='0123456789'
14905as_cr_alnum=$as_cr_Letters$as_cr_digits
252b5132 14906
42ecbf5e
DJ
14907# The user is always right.
14908if test "${PATH_SEPARATOR+set}" != set; then
14909 echo "#! /bin/sh" >conf$$.sh
14910 echo "exit 0" >>conf$$.sh
14911 chmod +x conf$$.sh
14912 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14913 PATH_SEPARATOR=';'
14914 else
14915 PATH_SEPARATOR=:
14916 fi
14917 rm -f conf$$.sh
252b5132
RH
14918fi
14919
14920
42ecbf5e
DJ
14921 as_lineno_1=$LINENO
14922 as_lineno_2=$LINENO
14923 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14924 test "x$as_lineno_1" != "x$as_lineno_2" &&
14925 test "x$as_lineno_3" = "x$as_lineno_2" || {
14926 # Find who we are. Look in the path if we contain no path at all
14927 # relative or not.
14928 case $0 in
14929 *[\\/]* ) as_myself=$0 ;;
14930 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14931for as_dir in $PATH
eb1e0e80 14932do
42ecbf5e
DJ
14933 IFS=$as_save_IFS
14934 test -z "$as_dir" && as_dir=.
14935 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14936done
eb1e0e80 14937
42ecbf5e
DJ
14938 ;;
14939 esac
14940 # We did not find ourselves, most probably we were run as `sh COMMAND'
14941 # in which case we are not to be found in the path.
14942 if test "x$as_myself" = x; then
14943 as_myself=$0
14944 fi
14945 if test ! -f "$as_myself"; then
14946 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14947echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14948 { (exit 1); exit 1; }; }
14949 fi
14950 case $CONFIG_SHELL in
14951 '')
14952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14953for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14954do
14955 IFS=$as_save_IFS
14956 test -z "$as_dir" && as_dir=.
14957 for as_base in sh bash ksh sh5; do
14958 case $as_dir in
14959 /*)
14960 if ("$as_dir/$as_base" -c '
14961 as_lineno_1=$LINENO
14962 as_lineno_2=$LINENO
14963 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14964 test "x$as_lineno_1" != "x$as_lineno_2" &&
14965 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14966 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14967 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14968 CONFIG_SHELL=$as_dir/$as_base
14969 export CONFIG_SHELL
14970 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14971 fi;;
14972 esac
14973 done
eb1e0e80 14974done
42ecbf5e
DJ
14975;;
14976 esac
eb1e0e80 14977
42ecbf5e
DJ
14978 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14979 # uniformly replaced by the line number. The first 'sed' inserts a
14980 # line-number line before each line; the second 'sed' does the real
14981 # work. The second script uses 'N' to pair each line-number line
14982 # with the numbered line, and appends trailing '-' during
14983 # substitution so that $LINENO is not a special case at line end.
14984 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14985 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14986 sed '=' <$as_myself |
14987 sed '
14988 N
14989 s,$,-,
14990 : loop
14991 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14992 t loop
14993 s,-$,,
14994 s,^['$as_cr_digits']*\n,,
14995 ' >$as_me.lineno &&
14996 chmod +x $as_me.lineno ||
14997 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14998echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14999 { (exit 1); exit 1; }; }
15000
15001 # Don't try to exec as it changes $[0], causing all sort of problems
15002 # (the dirname of $[0] is not the place where we might find the
15003 # original and so on. Autoconf is especially sensible to this).
15004 . ./$as_me.lineno
15005 # Exit status is that of the last command.
15006 exit
15007}
eb1e0e80
NC
15008
15009
42ecbf5e
DJ
15010case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15011 *c*,-n*) ECHO_N= ECHO_C='
15012' ECHO_T=' ' ;;
15013 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15014 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15015esac
eb1e0e80 15016
42ecbf5e
DJ
15017if expr a : '\(a\)' >/dev/null 2>&1; then
15018 as_expr=expr
d15b04bd 15019else
42ecbf5e
DJ
15020 as_expr=false
15021fi
15022
15023rm -f conf$$ conf$$.exe conf$$.file
15024echo >conf$$.file
15025if ln -s conf$$.file conf$$ 2>/dev/null; then
15026 # We could just check for DJGPP; but this test a) works b) is more generic
15027 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15028 if test -f conf$$.exe; then
15029 # Don't use ln at all; we don't have any links
15030 as_ln_s='cp -p'
252b5132 15031 else
42ecbf5e 15032 as_ln_s='ln -s'
252b5132 15033 fi
42ecbf5e
DJ
15034elif ln conf$$.file conf$$ 2>/dev/null; then
15035 as_ln_s=ln
15036else
15037 as_ln_s='cp -p'
252b5132 15038fi
42ecbf5e 15039rm -f conf$$ conf$$.exe conf$$.file
252b5132 15040
42ecbf5e
DJ
15041if mkdir -p . 2>/dev/null; then
15042 as_mkdir_p=:
15043else
15044 test -d ./-p && rmdir ./-p
15045 as_mkdir_p=false
15046fi
d15b04bd 15047
42ecbf5e 15048as_executable_p="test -f"
252b5132 15049
42ecbf5e
DJ
15050# Sed expression to map a string onto a valid CPP name.
15051as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15052
15053# Sed expression to map a string onto a valid variable name.
15054as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15055
15056
15057# IFS
15058# We need space, tab and new line, in precisely that order.
15059as_nl='
15060'
15061IFS=" $as_nl"
15062
15063# CDPATH.
15064$as_unset CDPATH
15065
15066exec 6>&1
15067
15068# Open the log real soon, to keep \$[0] and so on meaningful, and to
15069# report actual input values of CONFIG_FILES etc. instead of their
15070# values after options handling. Logging --version etc. is OK.
15071exec 5>>config.log
15072{
15073 echo
15074 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15075## Running $as_me. ##
15076_ASBOX
15077} >&5
15078cat >&5 <<_CSEOF
15079
15080This file was extended by $as_me, which was
15081generated by GNU Autoconf 2.59. Invocation command line was
15082
15083 CONFIG_FILES = $CONFIG_FILES
15084 CONFIG_HEADERS = $CONFIG_HEADERS
15085 CONFIG_LINKS = $CONFIG_LINKS
15086 CONFIG_COMMANDS = $CONFIG_COMMANDS
15087 $ $0 $@
15088
15089_CSEOF
15090echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15091echo >&5
15092_ACEOF
15093
15094# Files that config.status was made for.
15095if test -n "$ac_config_files"; then
15096 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
252b5132
RH
15097fi
15098
42ecbf5e
DJ
15099if test -n "$ac_config_headers"; then
15100 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15101fi
e5a52504 15102
42ecbf5e
DJ
15103if test -n "$ac_config_links"; then
15104 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15105fi
e5a52504 15106
42ecbf5e
DJ
15107if test -n "$ac_config_commands"; then
15108 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15109fi
d15b04bd 15110
42ecbf5e
DJ
15111cat >>$CONFIG_STATUS <<\_ACEOF
15112
15113ac_cs_usage="\
15114\`$as_me' instantiates files from templates according to the
15115current configuration.
15116
15117Usage: $0 [OPTIONS] [FILE]...
15118
15119 -h, --help print this help, then exit
15120 -V, --version print version number, then exit
15121 -q, --quiet do not print progress messages
15122 -d, --debug don't remove temporary files
15123 --recheck update $as_me by reconfiguring in the same conditions
15124 --file=FILE[:TEMPLATE]
15125 instantiate the configuration file FILE
15126 --header=FILE[:TEMPLATE]
15127 instantiate the configuration header FILE
15128
15129Configuration files:
15130$config_files
15131
15132Configuration headers:
15133$config_headers
15134
15135Configuration commands:
15136$config_commands
15137
15138Report bugs to <bug-autoconf@gnu.org>."
15139_ACEOF
15140
15141cat >>$CONFIG_STATUS <<_ACEOF
15142ac_cs_version="\\
15143config.status
15144configured by $0, generated by GNU Autoconf 2.59,
15145 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15146
15147Copyright (C) 2003 Free Software Foundation, Inc.
15148This config.status script is free software; the Free Software Foundation
15149gives unlimited permission to copy, distribute and modify it."
15150srcdir=$srcdir
15151INSTALL="$INSTALL"
15152_ACEOF
15153
15154cat >>$CONFIG_STATUS <<\_ACEOF
15155# If no file are specified by the user, then we need to provide default
15156# value. By we need to know if files were specified by the user.
15157ac_need_defaults=:
15158while test $# != 0
15159do
15160 case $1 in
15161 --*=*)
15162 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15163 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15164 ac_shift=:
15165 ;;
15166 -*)
15167 ac_option=$1
15168 ac_optarg=$2
15169 ac_shift=shift
15170 ;;
15171 *) # This is not an option, so the user has probably given explicit
15172 # arguments.
15173 ac_option=$1
15174 ac_need_defaults=false;;
15175 esac
15176
15177 case $ac_option in
15178 # Handling of the options.
15179_ACEOF
15180cat >>$CONFIG_STATUS <<\_ACEOF
15181 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15182 ac_cs_recheck=: ;;
15183 --version | --vers* | -V )
15184 echo "$ac_cs_version"; exit 0 ;;
15185 --he | --h)
15186 # Conflict between --help and --header
15187 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15188Try \`$0 --help' for more information." >&5
15189echo "$as_me: error: ambiguous option: $1
15190Try \`$0 --help' for more information." >&2;}
15191 { (exit 1); exit 1; }; };;
15192 --help | --hel | -h )
15193 echo "$ac_cs_usage"; exit 0 ;;
15194 --debug | --d* | -d )
15195 debug=: ;;
15196 --file | --fil | --fi | --f )
15197 $ac_shift
15198 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15199 ac_need_defaults=false;;
15200 --header | --heade | --head | --hea )
15201 $ac_shift
15202 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15203 ac_need_defaults=false;;
15204 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15205 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15206 ac_cs_silent=: ;;
15207
15208 # This is an error.
15209 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15210Try \`$0 --help' for more information." >&5
15211echo "$as_me: error: unrecognized option: $1
15212Try \`$0 --help' for more information." >&2;}
15213 { (exit 1); exit 1; }; } ;;
15214
15215 *) ac_config_targets="$ac_config_targets $1" ;;
15216
15217 esac
15218 shift
15219done
15220
15221ac_configure_extra_args=
15222
15223if $ac_cs_silent; then
15224 exec 6>/dev/null
15225 ac_configure_extra_args="$ac_configure_extra_args --silent"
15226fi
15227
15228_ACEOF
15229cat >>$CONFIG_STATUS <<_ACEOF
15230if \$ac_cs_recheck; then
15231 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15232 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15233fi
15234
15235_ACEOF
15236
15237cat >>$CONFIG_STATUS <<_ACEOF
d15b04bd 15238#
42ecbf5e 15239# INIT-COMMANDS section.
d15b04bd 15240#
e5a52504 15241
42ecbf5e 15242AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
15243
15244
15245# The HP-UX ksh and POSIX shell print the target directory to stdout
15246# if CDPATH is set.
15247(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15248
15249sed_quote_subst='$sed_quote_subst'
15250double_quote_subst='$double_quote_subst'
15251delay_variable_subst='$delay_variable_subst'
15252macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15253macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15254enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15255enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15256pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15257enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15258host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15259host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15260host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15261build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15262build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15263build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15264SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15265Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15266GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15267EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15268FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15269LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15270NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15271LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15272max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15273ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15274exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15275lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15276lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15277lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15278reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15279reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15280deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15281file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15282AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15283AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15284STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15285RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15286old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15287old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15288old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15289CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15290CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15291compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15292GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15293lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15294lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15295lt_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"`'
15296objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15297SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15298ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15299MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15300lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15301lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15302lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15303lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15304lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15305need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15306libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15307shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15308extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15309archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15310enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15311export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15312whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15313compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15314old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15315old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15316archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15317archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15318module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15319module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15320with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15321allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15322no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15323hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15324hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15325hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15326hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15327hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15328hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15329hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15330hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15331inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15332link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15333fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15334always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15335export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15336exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15337include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15338prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15339file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15340variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15341need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15342need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15343version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15344runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15345shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15346shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15347libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15348library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15349soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15350postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15351postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15352finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15353finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15354hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15355sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15356sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15357hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15358enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15359enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15360enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15361old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15362striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15363
15364LTCC='$LTCC'
15365LTCFLAGS='$LTCFLAGS'
15366compiler='$compiler_DEFAULT'
15367
15368# Quote evaled strings.
15369for var in SED \
15370GREP \
15371EGREP \
15372FGREP \
15373LD \
15374NM \
15375LN_S \
15376lt_SP2NL \
15377lt_NL2SP \
15378reload_flag \
15379deplibs_check_method \
15380file_magic_cmd \
15381AR \
15382AR_FLAGS \
15383STRIP \
15384RANLIB \
15385CC \
15386CFLAGS \
15387compiler \
15388lt_cv_sys_global_symbol_pipe \
15389lt_cv_sys_global_symbol_to_cdecl \
15390lt_cv_sys_global_symbol_to_c_name_address \
15391SHELL \
15392ECHO \
15393lt_prog_compiler_no_builtin_flag \
15394lt_prog_compiler_wl \
15395lt_prog_compiler_pic \
15396lt_prog_compiler_static \
15397lt_cv_prog_compiler_c_o \
15398need_locks \
15399shrext_cmds \
15400export_dynamic_flag_spec \
15401whole_archive_flag_spec \
15402compiler_needs_object \
15403with_gnu_ld \
15404allow_undefined_flag \
15405no_undefined_flag \
15406hardcode_libdir_flag_spec \
15407hardcode_libdir_flag_spec_ld \
15408hardcode_libdir_separator \
15409fix_srcfile_path \
15410exclude_expsyms \
15411include_expsyms \
15412file_list_spec \
15413variables_saved_for_relink \
15414libname_spec \
15415library_names_spec \
15416soname_spec \
15417finish_eval \
15418old_striplib \
15419striplib; do
15420 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15421 *[\\\\\\\`\\"\\\$]*)
15422 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15423 ;;
15424 *)
15425 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15426 ;;
15427 esac
15428done
15429
15430# Double-quote double-evaled strings.
15431for var in reload_cmds \
15432old_postinstall_cmds \
15433old_postuninstall_cmds \
15434old_archive_cmds \
15435extract_expsyms_cmds \
15436old_archive_from_new_cmds \
15437old_archive_from_expsyms_cmds \
15438archive_cmds \
15439archive_expsym_cmds \
15440module_cmds \
15441module_expsym_cmds \
15442export_symbols_cmds \
15443prelink_cmds \
15444postinstall_cmds \
15445postuninstall_cmds \
15446finish_cmds \
15447sys_lib_search_path_spec \
15448sys_lib_dlsearch_path_spec; do
15449 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15450 *[\\\\\\\`\\"\\\$]*)
15451 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15452 ;;
15453 *)
15454 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15455 ;;
15456 esac
15457done
15458
15459# Fix-up fallback echo if it was mangled by the above quoting rules.
15460case \$lt_ECHO in
15461*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15462 ;;
15463esac
15464
15465ac_aux_dir='$ac_aux_dir'
15466xsi_shell='$xsi_shell'
15467lt_shell_append='$lt_shell_append'
15468
15469# See if we are running on zsh, and set the options which allow our
15470# commands through without removal of \ escapes INIT.
15471if test -n "\${ZSH_VERSION+set}" ; then
15472 setopt NO_GLOB_SUBST
15473fi
15474
15475
15476 PACKAGE='$PACKAGE'
15477 VERSION='$VERSION'
15478 TIMESTAMP='$TIMESTAMP'
15479 RM='$RM'
15480 ofile='$ofile'
15481
15482
15483
20e95c23
DJ
15484# Capture the value of obsolete ALL_LINGUAS because we need it to compute
15485 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15486 # from automake.
15487 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15488 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15489 LINGUAS="${LINGUAS-%UNSET%}"
15490
42ecbf5e
DJ
15491
15492_ACEOF
15493
15494
15495
15496cat >>$CONFIG_STATUS <<\_ACEOF
15497for ac_config_target in $ac_config_targets
252b5132 15498do
42ecbf5e
DJ
15499 case "$ac_config_target" in
15500 # Handling of arguments.
15501 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15502 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15503 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15504 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 15505 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 15506 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42ecbf5e
DJ
15507 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15508 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15509echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15510 { (exit 1); exit 1; }; };;
d15b04bd 15511 esac
252b5132
RH
15512done
15513
42ecbf5e
DJ
15514# If the user did not use the arguments to specify the items to instantiate,
15515# then the envvar interface is used. Set only those that are not.
15516# We use the long form for the default assignment because of an extremely
15517# bizarre bug on SunOS 4.1.3.
15518if $ac_need_defaults; then
15519 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15520 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15521 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15522fi
15523
15524# Have a temporary directory for convenience. Make it in the build tree
15525# simply because there is no reason to put it here, and in addition,
15526# creating and moving files from /tmp can sometimes cause problems.
15527# Create a temporary directory, and hook for its removal unless debugging.
15528$debug ||
15529{
15530 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15531 trap '{ (exit 1); exit 1; }' 1 2 13 15
15532}
252b5132 15533
42ecbf5e 15534# Create a (secure) tmp directory for tmp files.
e5a52504 15535
42ecbf5e
DJ
15536{
15537 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15538 test -n "$tmp" && test -d "$tmp"
15539} ||
15540{
15541 tmp=./confstat$$-$RANDOM
15542 (umask 077 && mkdir $tmp)
15543} ||
15544{
15545 echo "$me: cannot create a temporary directory in ." >&2
15546 { (exit 1); exit 1; }
15547}
15548
15549_ACEOF
15550
15551cat >>$CONFIG_STATUS <<_ACEOF
15552
15553#
15554# CONFIG_FILES section.
15555#
e5a52504 15556
42ecbf5e
DJ
15557# No need to generate the scripts if there are no CONFIG_FILES.
15558# This happens for instance when ./config.status config.h
15559if test -n "\$CONFIG_FILES"; then
15560 # Protect against being on the right side of a sed subst in config.status.
15561 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15562 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15563s,@SHELL@,$SHELL,;t t
15564s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15565s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15566s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15567s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15568s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15569s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15570s,@exec_prefix@,$exec_prefix,;t t
15571s,@prefix@,$prefix,;t t
15572s,@program_transform_name@,$program_transform_name,;t t
15573s,@bindir@,$bindir,;t t
15574s,@sbindir@,$sbindir,;t t
15575s,@libexecdir@,$libexecdir,;t t
15576s,@datadir@,$datadir,;t t
15577s,@sysconfdir@,$sysconfdir,;t t
15578s,@sharedstatedir@,$sharedstatedir,;t t
15579s,@localstatedir@,$localstatedir,;t t
15580s,@libdir@,$libdir,;t t
15581s,@includedir@,$includedir,;t t
15582s,@oldincludedir@,$oldincludedir,;t t
15583s,@infodir@,$infodir,;t t
15584s,@mandir@,$mandir,;t t
15585s,@build_alias@,$build_alias,;t t
15586s,@host_alias@,$host_alias,;t t
15587s,@target_alias@,$target_alias,;t t
15588s,@DEFS@,$DEFS,;t t
15589s,@ECHO_C@,$ECHO_C,;t t
15590s,@ECHO_N@,$ECHO_N,;t t
15591s,@ECHO_T@,$ECHO_T,;t t
15592s,@LIBS@,$LIBS,;t t
15593s,@build@,$build,;t t
15594s,@build_cpu@,$build_cpu,;t t
15595s,@build_vendor@,$build_vendor,;t t
15596s,@build_os@,$build_os,;t t
15597s,@host@,$host,;t t
15598s,@host_cpu@,$host_cpu,;t t
15599s,@host_vendor@,$host_vendor,;t t
15600s,@host_os@,$host_os,;t t
15601s,@target@,$target,;t t
15602s,@target_cpu@,$target_cpu,;t t
15603s,@target_vendor@,$target_vendor,;t t
15604s,@target_os@,$target_os,;t t
15605s,@CC@,$CC,;t t
15606s,@CFLAGS@,$CFLAGS,;t t
15607s,@LDFLAGS@,$LDFLAGS,;t t
15608s,@CPPFLAGS@,$CPPFLAGS,;t t
15609s,@ac_ct_CC@,$ac_ct_CC,;t t
15610s,@EXEEXT@,$EXEEXT,;t t
15611s,@OBJEXT@,$OBJEXT,;t t
15612s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15613s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15614s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15615s,@CYGPATH_W@,$CYGPATH_W,;t t
15616s,@PACKAGE@,$PACKAGE,;t t
15617s,@VERSION@,$VERSION,;t t
15618s,@ACLOCAL@,$ACLOCAL,;t t
15619s,@AUTOCONF@,$AUTOCONF,;t t
15620s,@AUTOMAKE@,$AUTOMAKE,;t t
15621s,@AUTOHEADER@,$AUTOHEADER,;t t
15622s,@MAKEINFO@,$MAKEINFO,;t t
15623s,@install_sh@,$install_sh,;t t
15624s,@STRIP@,$STRIP,;t t
15625s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15626s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15627s,@mkdir_p@,$mkdir_p,;t t
15628s,@AWK@,$AWK,;t t
15629s,@SET_MAKE@,$SET_MAKE,;t t
15630s,@am__leading_dot@,$am__leading_dot,;t t
15631s,@AMTAR@,$AMTAR,;t t
15632s,@am__tar@,$am__tar,;t t
15633s,@am__untar@,$am__untar,;t t
15634s,@DEPDIR@,$DEPDIR,;t t
15635s,@am__include@,$am__include,;t t
15636s,@am__quote@,$am__quote,;t t
15637s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15638s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15639s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15640s,@CCDEPMODE@,$CCDEPMODE,;t t
15641s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
15642s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
d7040cdb
SE
15643s,@LIBTOOL@,$LIBTOOL,;t t
15644s,@SED@,$SED,;t t
15645s,@EGREP@,$EGREP,;t t
15646s,@FGREP@,$FGREP,;t t
15647s,@GREP@,$GREP,;t t
15648s,@LD@,$LD,;t t
15649s,@DUMPBIN@,$DUMPBIN,;t t
15650s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
15651s,@NM@,$NM,;t t
42ecbf5e 15652s,@LN_S@,$LN_S,;t t
d7040cdb
SE
15653s,@AR@,$AR,;t t
15654s,@ac_ct_AR@,$ac_ct_AR,;t t
42ecbf5e
DJ
15655s,@RANLIB@,$RANLIB,;t t
15656s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
d7040cdb
SE
15657s,@lt_ECHO@,$lt_ECHO,;t t
15658s,@CPP@,$CPP,;t t
42ecbf5e
DJ
15659s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
15660s,@NO_WERROR@,$NO_WERROR,;t t
15661s,@YACC@,$YACC,;t t
15662s,@LEX@,$LEX,;t t
15663s,@LEXLIB@,$LEXLIB,;t t
15664s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
42ecbf5e 15665s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
15666s,@LIBINTL@,$LIBINTL,;t t
15667s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
15668s,@INCINTL@,$INCINTL,;t t
42ecbf5e 15669s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
15670s,@GMSGFMT@,$GMSGFMT,;t t
15671s,@POSUB@,$POSUB,;t t
42ecbf5e 15672s,@CATALOGS@,$CATALOGS,;t t
42ecbf5e 15673s,@DATADIRNAME@,$DATADIRNAME,;t t
42ecbf5e 15674s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
15675s,@GENCAT@,$GENCAT,;t t
15676s,@CATOBJEXT@,$CATOBJEXT,;t t
42ecbf5e 15677s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
15678s,@MSGFMT@,$MSGFMT,;t t
15679s,@MSGMERGE@,$MSGMERGE,;t t
42ecbf5e
DJ
15680s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15681s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15682s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
15683s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
15684s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
42ecbf5e 15685s,@HDEFINES@,$HDEFINES,;t t
42ecbf5e
DJ
15686s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
15687s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
15688s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t
20e95c23 15689s,@ALLOCA@,$ALLOCA,;t t
5ba684e2
NC
15690s,@LIBICONV@,$LIBICONV,;t t
15691s,@LTLIBICONV@,$LTLIBICONV,;t t
42ecbf5e
DJ
15692s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t
15693s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t
15694s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t
15695s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t
15696s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t
15697s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t
692ed3e7 15698s,@BUILD_WINDMC@,$BUILD_WINDMC,;t t
42ecbf5e
DJ
15699s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t
15700s,@BUILD_MISC@,$BUILD_MISC,;t t
1d97d67f 15701s,@BUILD_INSTALL_MISC@,$BUILD_INSTALL_MISC,;t t
42ecbf5e
DJ
15702s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t
15703s,@EMULATION@,$EMULATION,;t t
15704s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t
108a6f8e
CD
15705s,@datarootdir@,$datarootdir,;t t
15706s,@docdir@,$docdir,;t t
15707s,@htmldir@,$htmldir,;t t
42ecbf5e
DJ
15708s,@LIBOBJS@,$LIBOBJS,;t t
15709s,@LTLIBOBJS@,$LTLIBOBJS,;t t
d15b04bd 15710CEOF
252b5132 15711
42ecbf5e
DJ
15712_ACEOF
15713
15714 cat >>$CONFIG_STATUS <<\_ACEOF
15715 # Split the substitutions into bite-sized pieces for seds with
15716 # small command number limits, like on Digital OSF/1 and HP-UX.
15717 ac_max_sed_lines=48
15718 ac_sed_frag=1 # Number of current file.
15719 ac_beg=1 # First line for current file.
15720 ac_end=$ac_max_sed_lines # Line after last line for current file.
15721 ac_more_lines=:
15722 ac_sed_cmds=
15723 while $ac_more_lines; do
15724 if test $ac_beg -gt 1; then
15725 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15726 else
15727 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15728 fi
15729 if test ! -s $tmp/subs.frag; then
15730 ac_more_lines=false
d15b04bd 15731 else
42ecbf5e
DJ
15732 # The purpose of the label and of the branching condition is to
15733 # speed up the sed processing (if there are no `@' at all, there
15734 # is no need to browse any of the substitutions).
15735 # These are the two extra sed commands mentioned above.
15736 (echo ':t
15737 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15738 if test -z "$ac_sed_cmds"; then
15739 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15740 else
15741 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15742 fi
15743 ac_sed_frag=`expr $ac_sed_frag + 1`
15744 ac_beg=$ac_end
15745 ac_end=`expr $ac_end + $ac_max_sed_lines`
d15b04bd 15746 fi
42ecbf5e
DJ
15747 done
15748 if test -z "$ac_sed_cmds"; then
15749 ac_sed_cmds=cat
252b5132 15750 fi
42ecbf5e 15751fi # test -n "$CONFIG_FILES"
252b5132 15752
42ecbf5e
DJ
15753_ACEOF
15754cat >>$CONFIG_STATUS <<\_ACEOF
15755for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
e5a52504 15756 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
15757 case $ac_file in
15758 - | *:- | *:-:* ) # input from stdin
15759 cat >$tmp/stdin
15760 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15761 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15762 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15763 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15764 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
15765 esac
15766
42ecbf5e
DJ
15767 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15768 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15769$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15770 X"$ac_file" : 'X\(//\)[^/]' \| \
15771 X"$ac_file" : 'X\(//\)$' \| \
15772 X"$ac_file" : 'X\(/\)' \| \
15773 . : '\(.\)' 2>/dev/null ||
15774echo X"$ac_file" |
15775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15776 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15777 /^X\(\/\/\)$/{ s//\1/; q; }
15778 /^X\(\/\).*/{ s//\1/; q; }
15779 s/.*/./; q'`
15780 { if $as_mkdir_p; then
15781 mkdir -p "$ac_dir"
d15b04bd 15782 else
42ecbf5e
DJ
15783 as_dir="$ac_dir"
15784 as_dirs=
15785 while test ! -d "$as_dir"; do
15786 as_dirs="$as_dir $as_dirs"
15787 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15788$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15789 X"$as_dir" : 'X\(//\)[^/]' \| \
15790 X"$as_dir" : 'X\(//\)$' \| \
15791 X"$as_dir" : 'X\(/\)' \| \
15792 . : '\(.\)' 2>/dev/null ||
15793echo X"$as_dir" |
15794 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15795 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15796 /^X\(\/\/\)$/{ s//\1/; q; }
15797 /^X\(\/\).*/{ s//\1/; q; }
15798 s/.*/./; q'`
15799 done
15800 test ! -n "$as_dirs" || mkdir $as_dirs
15801 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15802echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15803 { (exit 1); exit 1; }; }; }
15804
15805 ac_builddir=.
e5a52504 15806
42ecbf5e
DJ
15807if test "$ac_dir" != .; then
15808 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15809 # A "../" for each directory in $ac_dir_suffix.
15810 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15811else
15812 ac_dir_suffix= ac_top_builddir=
15813fi
15814
15815case $srcdir in
15816 .) # No --srcdir option. We are building in place.
15817 ac_srcdir=.
15818 if test -z "$ac_top_builddir"; then
15819 ac_top_srcdir=.
15820 else
15821 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15822 fi ;;
15823 [\\/]* | ?:[\\/]* ) # Absolute path.
15824 ac_srcdir=$srcdir$ac_dir_suffix;
15825 ac_top_srcdir=$srcdir ;;
e5a52504 15826 *) # Relative path.
42ecbf5e
DJ
15827 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15828 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15829esac
252b5132 15830
42ecbf5e
DJ
15831# Do not use `cd foo && pwd` to compute absolute paths, because
15832# the directories may not exist.
15833case `pwd` in
15834.) ac_abs_builddir="$ac_dir";;
15835*)
15836 case "$ac_dir" in
15837 .) ac_abs_builddir=`pwd`;;
15838 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15839 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15840 esac;;
15841esac
15842case $ac_abs_builddir in
15843.) ac_abs_top_builddir=${ac_top_builddir}.;;
15844*)
15845 case ${ac_top_builddir}. in
15846 .) ac_abs_top_builddir=$ac_abs_builddir;;
15847 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15848 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15849 esac;;
15850esac
15851case $ac_abs_builddir in
15852.) ac_abs_srcdir=$ac_srcdir;;
15853*)
15854 case $ac_srcdir in
15855 .) ac_abs_srcdir=$ac_abs_builddir;;
15856 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15857 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15858 esac;;
15859esac
15860case $ac_abs_builddir in
15861.) ac_abs_top_srcdir=$ac_top_srcdir;;
15862*)
15863 case $ac_top_srcdir in
15864 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15865 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15866 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15867 esac;;
15868esac
e5a52504 15869
42ecbf5e
DJ
15870
15871 case $INSTALL in
15872 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15873 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
d15b04bd 15874 esac
e5a52504 15875
b7d4af3a
JW
15876 if test x"$ac_file" != x-; then
15877 { echo "$as_me:$LINENO: creating $ac_file" >&5
15878echo "$as_me: creating $ac_file" >&6;}
15879 rm -f "$ac_file"
15880 fi
42ecbf5e
DJ
15881 # Let's still pretend it is `configure' which instantiates (i.e., don't
15882 # use $as_me), people would be surprised to read:
15883 # /* config.h. Generated by config.status. */
15884 if test x"$ac_file" = x-; then
15885 configure_input=
15886 else
15887 configure_input="$ac_file. "
15888 fi
15889 configure_input=$configure_input"Generated from `echo $ac_file_in |
15890 sed 's,.*/,,'` by configure."
15891
15892 # First look for the input files in the build tree, otherwise in the
15893 # src tree.
15894 ac_file_inputs=`IFS=:
15895 for f in $ac_file_in; do
15896 case $f in
15897 -) echo $tmp/stdin ;;
15898 [\\/$]*)
15899 # Absolute (can't be DOS-style, as IFS=:)
15900 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15901echo "$as_me: error: cannot find input file: $f" >&2;}
15902 { (exit 1); exit 1; }; }
15903 echo "$f";;
15904 *) # Relative
15905 if test -f "$f"; then
15906 # Build tree
15907 echo "$f"
15908 elif test -f "$srcdir/$f"; then
15909 # Source tree
15910 echo "$srcdir/$f"
15911 else
15912 # /dev/null tree
15913 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15914echo "$as_me: error: cannot find input file: $f" >&2;}
15915 { (exit 1); exit 1; }; }
15916 fi;;
15917 esac
15918 done` || { (exit 1); exit 1; }
42ecbf5e
DJ
15919_ACEOF
15920cat >>$CONFIG_STATUS <<_ACEOF
15921 sed "$ac_vpsub
15922$extrasub
15923_ACEOF
15924cat >>$CONFIG_STATUS <<\_ACEOF
15925:t
15926/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15927s,@configure_input@,$configure_input,;t t
15928s,@srcdir@,$ac_srcdir,;t t
15929s,@abs_srcdir@,$ac_abs_srcdir,;t t
15930s,@top_srcdir@,$ac_top_srcdir,;t t
15931s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15932s,@builddir@,$ac_builddir,;t t
15933s,@abs_builddir@,$ac_abs_builddir,;t t
15934s,@top_builddir@,$ac_top_builddir,;t t
15935s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15936s,@INSTALL@,$ac_INSTALL,;t t
15937" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15938 rm -f $tmp/stdin
15939 if test x"$ac_file" != x-; then
15940 mv $tmp/out $ac_file
15941 else
15942 cat $tmp/out
15943 rm -f $tmp/out
15944 fi
15945
15946done
15947_ACEOF
15948cat >>$CONFIG_STATUS <<\_ACEOF
15949
15950#
15951# CONFIG_HEADER section.
15952#
252b5132
RH
15953
15954# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15955# NAME is the cpp macro being defined and VALUE is the value it is being given.
15956#
15957# ac_d sets the value in "#define NAME VALUE" lines.
42ecbf5e
DJ
15958ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15959ac_dB='[ ].*$,\1#\2'
15960ac_dC=' '
15961ac_dD=',;t'
15962# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15963ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15964ac_uB='$,\1#\2define\3'
252b5132 15965ac_uC=' '
42ecbf5e
DJ
15966ac_uD=',;t'
15967
15968for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 15969 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
15970 case $ac_file in
15971 - | *:- | *:-:* ) # input from stdin
15972 cat >$tmp/stdin
15973 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15974 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15975 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15976 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15977 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
15978 esac
15979
42ecbf5e
DJ
15980 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15981echo "$as_me: creating $ac_file" >&6;}
15982
15983 # First look for the input files in the build tree, otherwise in the
15984 # src tree.
15985 ac_file_inputs=`IFS=:
15986 for f in $ac_file_in; do
15987 case $f in
15988 -) echo $tmp/stdin ;;
15989 [\\/$]*)
15990 # Absolute (can't be DOS-style, as IFS=:)
15991 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15992echo "$as_me: error: cannot find input file: $f" >&2;}
15993 { (exit 1); exit 1; }; }
15994 # Do quote $f, to prevent DOS paths from being IFS'd.
15995 echo "$f";;
15996 *) # Relative
15997 if test -f "$f"; then
15998 # Build tree
15999 echo "$f"
16000 elif test -f "$srcdir/$f"; then
16001 # Source tree
16002 echo "$srcdir/$f"
16003 else
16004 # /dev/null tree
16005 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16006echo "$as_me: error: cannot find input file: $f" >&2;}
16007 { (exit 1); exit 1; }; }
16008 fi;;
16009 esac
16010 done` || { (exit 1); exit 1; }
16011 # Remove the trailing spaces.
16012 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16013
16014_ACEOF
16015
16016# Transform confdefs.h into two sed scripts, `conftest.defines' and
16017# `conftest.undefs', that substitutes the proper values into
16018# config.h.in to produce config.h. The first handles `#define'
16019# templates, and the second `#undef' templates.
16020# And first: Protect against being on the right side of a sed subst in
16021# config.status. Protect against being in an unquoted here document
16022# in config.status.
16023rm -f conftest.defines conftest.undefs
16024# Using a here document instead of a string reduces the quoting nightmare.
16025# Putting comments in sed scripts is not portable.
16026#
16027# `end' is used to avoid that the second main sed command (meant for
16028# 0-ary CPP macros) applies to n-ary macro definitions.
16029# See the Autoconf documentation for `clear'.
16030cat >confdef2sed.sed <<\_ACEOF
16031s/[\\&,]/\\&/g
16032s,[\\$`],\\&,g
16033t clear
16034: clear
16035s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16036t end
16037s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16038: end
16039_ACEOF
16040# If some macros were called several times there might be several times
16041# the same #defines, which is useless. Nevertheless, we may not want to
16042# sort them, since we want the *last* AC-DEFINE to be honored.
16043uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16044sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16045rm -f confdef2sed.sed
252b5132
RH
16046
16047# This sed command replaces #undef with comments. This is necessary, for
16048# example, in the case of _POSIX_SOURCE, which is predefined and required
16049# on some systems where configure will not decide to define it.
42ecbf5e
DJ
16050cat >>conftest.undefs <<\_ACEOF
16051s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16052_ACEOF
16053
16054# Break up conftest.defines because some shells have a limit on the size
16055# of here documents, and old seds have small limits too (100 cmds).
16056echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16057echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16058echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16059echo ' :' >>$CONFIG_STATUS
16060rm -f conftest.tail
16061while grep . conftest.defines >/dev/null
16062do
16063 # Write a limited-size here document to $tmp/defines.sed.
16064 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16065 # Speed up: don't consider the non `#define' lines.
16066 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16067 # Work around the forget-to-reset-the-flag bug.
16068 echo 't clr' >>$CONFIG_STATUS
16069 echo ': clr' >>$CONFIG_STATUS
16070 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16071 echo 'CEOF
16072 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16073 rm -f $tmp/in
16074 mv $tmp/out $tmp/in
16075' >>$CONFIG_STATUS
16076 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16077 rm -f conftest.defines
16078 mv conftest.tail conftest.defines
16079done
16080rm -f conftest.defines
16081echo ' fi # grep' >>$CONFIG_STATUS
16082echo >>$CONFIG_STATUS
252b5132 16083
42ecbf5e
DJ
16084# Break up conftest.undefs because some shells have a limit on the size
16085# of here documents, and old seds have small limits too (100 cmds).
16086echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 16087rm -f conftest.tail
42ecbf5e 16088while grep . conftest.undefs >/dev/null
252b5132 16089do
42ecbf5e
DJ
16090 # Write a limited-size here document to $tmp/undefs.sed.
16091 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16092 # Speed up: don't consider the non `#undef'
16093 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16094 # Work around the forget-to-reset-the-flag bug.
16095 echo 't clr' >>$CONFIG_STATUS
16096 echo ': clr' >>$CONFIG_STATUS
16097 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 16098 echo 'CEOF
42ecbf5e
DJ
16099 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16100 rm -f $tmp/in
16101 mv $tmp/out $tmp/in
16102' >>$CONFIG_STATUS
16103 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16104 rm -f conftest.undefs
16105 mv conftest.tail conftest.undefs
252b5132 16106done
42ecbf5e
DJ
16107rm -f conftest.undefs
16108
16109cat >>$CONFIG_STATUS <<\_ACEOF
16110 # Let's still pretend it is `configure' which instantiates (i.e., don't
16111 # use $as_me), people would be surprised to read:
16112 # /* config.h. Generated by config.status. */
16113 if test x"$ac_file" = x-; then
16114 echo "/* Generated by configure. */" >$tmp/config.h
16115 else
16116 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16117 fi
16118 cat $tmp/in >>$tmp/config.h
16119 rm -f $tmp/in
16120 if test x"$ac_file" != x-; then
16121 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16122 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16123echo "$as_me: $ac_file is unchanged" >&6;}
16124 else
16125 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16126$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16127 X"$ac_file" : 'X\(//\)[^/]' \| \
16128 X"$ac_file" : 'X\(//\)$' \| \
16129 X"$ac_file" : 'X\(/\)' \| \
16130 . : '\(.\)' 2>/dev/null ||
16131echo X"$ac_file" |
16132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16133 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16134 /^X\(\/\/\)$/{ s//\1/; q; }
16135 /^X\(\/\).*/{ s//\1/; q; }
16136 s/.*/./; q'`
16137 { if $as_mkdir_p; then
16138 mkdir -p "$ac_dir"
252b5132 16139 else
42ecbf5e
DJ
16140 as_dir="$ac_dir"
16141 as_dirs=
16142 while test ! -d "$as_dir"; do
16143 as_dirs="$as_dir $as_dirs"
16144 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16145$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16146 X"$as_dir" : 'X\(//\)[^/]' \| \
16147 X"$as_dir" : 'X\(//\)$' \| \
16148 X"$as_dir" : 'X\(/\)' \| \
16149 . : '\(.\)' 2>/dev/null ||
16150echo X"$as_dir" |
16151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16152 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16153 /^X\(\/\/\)$/{ s//\1/; q; }
16154 /^X\(\/\).*/{ s//\1/; q; }
16155 s/.*/./; q'`
16156 done
16157 test ! -n "$as_dirs" || mkdir $as_dirs
16158 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16159echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16160 { (exit 1); exit 1; }; }; }
16161
16162 rm -f $ac_file
16163 mv $tmp/config.h $ac_file
252b5132 16164 fi
42ecbf5e
DJ
16165 else
16166 cat $tmp/config.h
16167 rm -f $tmp/config.h
252b5132 16168 fi
42ecbf5e
DJ
16169# Compute $ac_file's index in $config_headers.
16170_am_stamp_count=1
16171for _am_header in $config_headers :; do
16172 case $_am_header in
16173 $ac_file | $ac_file:* )
16174 break ;;
16175 * )
16176 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16177 esac
16178done
16179echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
16180$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16181 X$ac_file : 'X\(//\)[^/]' \| \
16182 X$ac_file : 'X\(//\)$' \| \
16183 X$ac_file : 'X\(/\)' \| \
16184 . : '\(.\)' 2>/dev/null ||
16185echo X$ac_file |
16186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16187 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16188 /^X\(\/\/\)$/{ s//\1/; q; }
16189 /^X\(\/\).*/{ s//\1/; q; }
16190 s/.*/./; q'`/stamp-h$_am_stamp_count
16191done
16192_ACEOF
16193cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 16194
42ecbf5e
DJ
16195#
16196# CONFIG_COMMANDS section.
16197#
16198for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16199 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16200 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16201 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16202$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16203 X"$ac_dest" : 'X\(//\)[^/]' \| \
16204 X"$ac_dest" : 'X\(//\)$' \| \
16205 X"$ac_dest" : 'X\(/\)' \| \
16206 . : '\(.\)' 2>/dev/null ||
16207echo X"$ac_dest" |
16208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16209 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16210 /^X\(\/\/\)$/{ s//\1/; q; }
16211 /^X\(\/\).*/{ s//\1/; q; }
16212 s/.*/./; q'`
16213 { if $as_mkdir_p; then
16214 mkdir -p "$ac_dir"
16215 else
16216 as_dir="$ac_dir"
16217 as_dirs=
16218 while test ! -d "$as_dir"; do
16219 as_dirs="$as_dir $as_dirs"
16220 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16221$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16222 X"$as_dir" : 'X\(//\)[^/]' \| \
16223 X"$as_dir" : 'X\(//\)$' \| \
16224 X"$as_dir" : 'X\(/\)' \| \
16225 . : '\(.\)' 2>/dev/null ||
16226echo X"$as_dir" |
16227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16228 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16229 /^X\(\/\/\)$/{ s//\1/; q; }
16230 /^X\(\/\).*/{ s//\1/; q; }
16231 s/.*/./; q'`
16232 done
16233 test ! -n "$as_dirs" || mkdir $as_dirs
16234 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16235echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16236 { (exit 1); exit 1; }; }; }
252b5132 16237
42ecbf5e 16238 ac_builddir=.
e5a52504 16239
42ecbf5e
DJ
16240if test "$ac_dir" != .; then
16241 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16242 # A "../" for each directory in $ac_dir_suffix.
16243 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16244else
16245 ac_dir_suffix= ac_top_builddir=
16246fi
16247
16248case $srcdir in
16249 .) # No --srcdir option. We are building in place.
16250 ac_srcdir=.
16251 if test -z "$ac_top_builddir"; then
16252 ac_top_srcdir=.
16253 else
16254 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16255 fi ;;
16256 [\\/]* | ?:[\\/]* ) # Absolute path.
16257 ac_srcdir=$srcdir$ac_dir_suffix;
16258 ac_top_srcdir=$srcdir ;;
16259 *) # Relative path.
16260 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16261 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16262esac
16263
16264# Do not use `cd foo && pwd` to compute absolute paths, because
16265# the directories may not exist.
16266case `pwd` in
16267.) ac_abs_builddir="$ac_dir";;
16268*)
16269 case "$ac_dir" in
16270 .) ac_abs_builddir=`pwd`;;
16271 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16272 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16273 esac;;
16274esac
16275case $ac_abs_builddir in
16276.) ac_abs_top_builddir=${ac_top_builddir}.;;
16277*)
16278 case ${ac_top_builddir}. in
16279 .) ac_abs_top_builddir=$ac_abs_builddir;;
16280 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16281 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16282 esac;;
16283esac
16284case $ac_abs_builddir in
16285.) ac_abs_srcdir=$ac_srcdir;;
16286*)
16287 case $ac_srcdir in
16288 .) ac_abs_srcdir=$ac_abs_builddir;;
16289 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16290 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16291 esac;;
16292esac
16293case $ac_abs_builddir in
16294.) ac_abs_top_srcdir=$ac_top_srcdir;;
16295*)
16296 case $ac_top_srcdir in
16297 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16298 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16299 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16300 esac;;
16301esac
e5a52504 16302
42ecbf5e
DJ
16303
16304 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16305echo "$as_me: executing $ac_dest commands" >&6;}
16306 case $ac_dest in
16307 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16308 # Strip MF so we end up with the name of the file.
16309 mf=`echo "$mf" | sed -e 's/:.*$//'`
16310 # Check whether this is an Automake generated Makefile or not.
16311 # We used to match only the files named `Makefile.in', but
16312 # some people rename them; so instead we look at the file content.
16313 # Grep'ing the first line is not enough: some people post-process
16314 # each Makefile.in and add a new line on top of each file to say so.
16315 # So let's grep whole file.
16316 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
16317 dirpart=`(dirname "$mf") 2>/dev/null ||
16318$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16319 X"$mf" : 'X\(//\)[^/]' \| \
16320 X"$mf" : 'X\(//\)$' \| \
16321 X"$mf" : 'X\(/\)' \| \
16322 . : '\(.\)' 2>/dev/null ||
16323echo X"$mf" |
16324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16325 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16326 /^X\(\/\/\)$/{ s//\1/; q; }
16327 /^X\(\/\).*/{ s//\1/; q; }
16328 s/.*/./; q'`
16329 else
16330 continue
16331 fi
16332 # Extract the definition of DEPDIR, am__include, and am__quote
16333 # from the Makefile without running `make'.
16334 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16335 test -z "$DEPDIR" && continue
16336 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16337 test -z "am__include" && continue
16338 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16339 # When using ansi2knr, U may be empty or an underscore; expand it
16340 U=`sed -n 's/^U = //p' < "$mf"`
16341 # Find all dependency output files, they are included files with
16342 # $(DEPDIR) in their names. We invoke sed twice because it is the
16343 # simplest approach to changing $(DEPDIR) to its actual value in the
16344 # expansion.
16345 for file in `sed -n "
16346 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16347 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16348 # Make sure the directory exists.
16349 test -f "$dirpart/$file" && continue
16350 fdir=`(dirname "$file") 2>/dev/null ||
16351$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16352 X"$file" : 'X\(//\)[^/]' \| \
16353 X"$file" : 'X\(//\)$' \| \
16354 X"$file" : 'X\(/\)' \| \
16355 . : '\(.\)' 2>/dev/null ||
16356echo X"$file" |
16357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16358 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16359 /^X\(\/\/\)$/{ s//\1/; q; }
16360 /^X\(\/\).*/{ s//\1/; q; }
16361 s/.*/./; q'`
16362 { if $as_mkdir_p; then
16363 mkdir -p $dirpart/$fdir
16364 else
16365 as_dir=$dirpart/$fdir
16366 as_dirs=
16367 while test ! -d "$as_dir"; do
16368 as_dirs="$as_dir $as_dirs"
16369 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16370$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16371 X"$as_dir" : 'X\(//\)[^/]' \| \
16372 X"$as_dir" : 'X\(//\)$' \| \
16373 X"$as_dir" : 'X\(/\)' \| \
16374 . : '\(.\)' 2>/dev/null ||
16375echo X"$as_dir" |
16376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16377 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16378 /^X\(\/\/\)$/{ s//\1/; q; }
16379 /^X\(\/\).*/{ s//\1/; q; }
16380 s/.*/./; q'`
16381 done
16382 test ! -n "$as_dirs" || mkdir $as_dirs
16383 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
16384echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
16385 { (exit 1); exit 1; }; }; }
16386
16387 # echo "creating $dirpart/$file"
16388 echo '# dummy' > "$dirpart/$file"
16389 done
16390done
d7040cdb
SE
16391 ;;
16392 libtool )
16393
16394 # See if we are running on zsh, and set the options which allow our
16395 # commands through without removal of \ escapes.
16396 if test -n "${ZSH_VERSION+set}" ; then
16397 setopt NO_GLOB_SUBST
16398 fi
16399
16400 cfgfile="${ofile}T"
16401 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16402 $RM "$cfgfile"
16403
16404 cat <<_LT_EOF >> "$cfgfile"
16405#! $SHELL
16406
16407# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16408# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
16409# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16410# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16411#
16412# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16413# 2006, 2007 Free Software Foundation, Inc.
16414#
16415# This file is part of GNU Libtool:
16416# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
16417#
16418# This program is free software; you can redistribute it and/or modify
16419# it under the terms of the GNU General Public License as published by
16420# the Free Software Foundation; either version 2 of the License, or
16421# (at your option) any later version.
16422#
16423# This program is distributed in the hope that it will be useful, but
16424# WITHOUT ANY WARRANTY; without even the implied warranty of
16425# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16426# General Public License for more details.
16427#
16428# You should have received a copy of the GNU General Public License
16429# along with this program; if not, a copy can be downloaded from
16430# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
16431# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16432# MA 02110-1301, USA.
16433#
16434# As a special exception to the GNU General Public License, if you
16435# distribute this file as part of a program that contains a
16436# configuration script generated by Autoconf, you may include it under
16437# the same distribution terms that you use for the rest of that program.
16438
16439
16440# The names of the tagged configurations supported by this script.
16441available_tags=""
16442
16443# ### BEGIN LIBTOOL CONFIG
16444
16445# Which release of libtool.m4 was used?
16446macro_version=$macro_version
16447macro_revision=$macro_revision
16448
16449# Whether or not to build shared libraries.
16450build_libtool_libs=$enable_shared
16451
16452# Whether or not to build static libraries.
16453build_old_libs=$enable_static
16454
16455# What type of objects to build.
16456pic_mode=$pic_mode
16457
16458# Whether or not to optimize for fast installation.
16459fast_install=$enable_fast_install
16460
16461# The host system.
16462host_alias=$host_alias
16463host=$host
16464host_os=$host_os
16465
16466# The build system.
16467build_alias=$build_alias
16468build=$build
16469build_os=$build_os
16470
16471# A sed program that does not truncate output.
16472SED=$lt_SED
16473
16474# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16475Xsed="\$SED -e 1s/^X//"
16476
16477# A grep program that handles long lines.
16478GREP=$lt_GREP
16479
16480# An ERE matcher.
16481EGREP=$lt_EGREP
16482
16483# A literal string matcher.
16484FGREP=$lt_FGREP
16485
16486# A BSD- or MS-compatible name lister.
16487NM=$lt_NM
16488
16489# Whether we need soft or hard links.
16490LN_S=$lt_LN_S
16491
16492# What is the maximum length of a command?
16493max_cmd_len=$max_cmd_len
16494
16495# Object file suffix (normally "o").
16496objext=$ac_objext
16497
16498# Executable file suffix (normally "").
16499exeext=$exeext
16500
16501# whether the shell understands "unset".
16502lt_unset=$lt_unset
16503
16504# turn spaces into newlines.
16505SP2NL=$lt_lt_SP2NL
16506
16507# turn newlines into spaces.
16508NL2SP=$lt_lt_NL2SP
16509
16510# How to create reloadable object files.
16511reload_flag=$lt_reload_flag
16512reload_cmds=$lt_reload_cmds
16513
16514# Method to check whether dependent libraries are shared objects.
16515deplibs_check_method=$lt_deplibs_check_method
16516
16517# Command to use when deplibs_check_method == "file_magic".
16518file_magic_cmd=$lt_file_magic_cmd
16519
16520# The archiver.
16521AR=$lt_AR
16522AR_FLAGS=$lt_AR_FLAGS
16523
16524# A symbol stripping program.
16525STRIP=$lt_STRIP
16526
16527# Commands used to install an old-style archive.
16528RANLIB=$lt_RANLIB
16529old_postinstall_cmds=$lt_old_postinstall_cmds
16530old_postuninstall_cmds=$lt_old_postuninstall_cmds
16531
16532# A C compiler.
16533LTCC=$lt_CC
16534
16535# LTCC compiler flags.
16536LTCFLAGS=$lt_CFLAGS
16537
16538# Take the output of nm and produce a listing of raw symbols and C names.
16539global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16540
16541# Transform the output of nm in a proper C declaration.
16542global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16543
16544# Transform the output of nm in a C name address pair.
16545global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16546
16547# The name of the directory that contains temporary libtool files.
16548objdir=$objdir
16549
16550# Shell to use when invoking shell scripts.
16551SHELL=$lt_SHELL
16552
16553# An echo program that does not interpret backslashes.
16554ECHO=$lt_ECHO
16555
16556# Used to examine libraries when file_magic_cmd begins with "file".
16557MAGIC_CMD=$MAGIC_CMD
16558
16559# Must we lock files when doing compilation?
16560need_locks=$lt_need_locks
16561
16562# Old archive suffix (normally "a").
16563libext=$libext
16564
16565# Shared library suffix (normally ".so").
16566shrext_cmds=$lt_shrext_cmds
16567
16568# The commands to extract the exported symbol list from a shared archive.
16569extract_expsyms_cmds=$lt_extract_expsyms_cmds
16570
16571# Variables whose values should be saved in libtool wrapper scripts and
16572# restored at link time.
16573variables_saved_for_relink=$lt_variables_saved_for_relink
16574
16575# Do we need the "lib" prefix for modules?
16576need_lib_prefix=$need_lib_prefix
16577
16578# Do we need a version for libraries?
16579need_version=$need_version
16580
16581# Library versioning type.
16582version_type=$version_type
16583
16584# Shared library runtime path variable.
16585runpath_var=$runpath_var
16586
16587# Shared library path variable.
16588shlibpath_var=$shlibpath_var
16589
16590# Is shlibpath searched before the hard-coded library search path?
16591shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16592
16593# Format of library name prefix.
16594libname_spec=$lt_libname_spec
16595
16596# List of archive names. First name is the real one, the rest are links.
16597# The last name is the one that the linker finds with -lNAME
16598library_names_spec=$lt_library_names_spec
16599
16600# The coded name of the library, if different from the real name.
16601soname_spec=$lt_soname_spec
16602
16603# Command to use after installation of a shared archive.
16604postinstall_cmds=$lt_postinstall_cmds
16605
16606# Command to use after uninstallation of a shared archive.
16607postuninstall_cmds=$lt_postuninstall_cmds
16608
16609# Commands used to finish a libtool library installation in a directory.
16610finish_cmds=$lt_finish_cmds
16611
16612# As "finish_cmds", except a single script fragment to be evaled but
16613# not shown.
16614finish_eval=$lt_finish_eval
16615
16616# Whether we should hardcode library paths into libraries.
16617hardcode_into_libs=$hardcode_into_libs
16618
16619# Compile-time system search path for libraries.
16620sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16621
16622# Run-time system search path for libraries.
16623sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16624
16625# Whether dlopen is supported.
16626dlopen_support=$enable_dlopen
16627
16628# Whether dlopen of programs is supported.
16629dlopen_self=$enable_dlopen_self
16630
16631# Whether dlopen of statically linked programs is supported.
16632dlopen_self_static=$enable_dlopen_self_static
16633
16634# Commands to strip libraries.
16635old_striplib=$lt_old_striplib
16636striplib=$lt_striplib
16637
16638
16639# The linker used to build libraries.
16640LD=$lt_LD
16641
16642# Commands used to build an old-style archive.
16643old_archive_cmds=$lt_old_archive_cmds
16644
16645# A language specific compiler.
16646CC=$lt_compiler
16647
16648# Is the compiler the GNU compiler?
16649with_gcc=$GCC
16650
16651# Compiler flag to turn off builtin functions.
16652no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16653
16654# How to pass a linker flag through the compiler.
16655wl=$lt_lt_prog_compiler_wl
16656
16657# Additional compiler flags for building library objects.
16658pic_flag=$lt_lt_prog_compiler_pic
16659
16660# Compiler flag to prevent dynamic linking.
16661link_static_flag=$lt_lt_prog_compiler_static
16662
16663# Does compiler simultaneously support -c and -o options?
16664compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16665
16666# Whether or not to add -lc for building shared libraries.
16667build_libtool_need_lc=$archive_cmds_need_lc
16668
16669# Whether or not to disallow shared libs when runtime libs are static.
16670allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16671
16672# Compiler flag to allow reflexive dlopens.
16673export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16674
16675# Compiler flag to generate shared objects directly from archives.
16676whole_archive_flag_spec=$lt_whole_archive_flag_spec
16677
16678# Whether the compiler copes with passing no objects directly.
16679compiler_needs_object=$lt_compiler_needs_object
16680
16681# Create an old-style archive from a shared archive.
16682old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16683
16684# Create a temporary old-style archive to link instead of a shared archive.
16685old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16686
16687# Commands used to build a shared archive.
16688archive_cmds=$lt_archive_cmds
16689archive_expsym_cmds=$lt_archive_expsym_cmds
16690
16691# Commands used to build a loadable module if different from building
16692# a shared archive.
16693module_cmds=$lt_module_cmds
16694module_expsym_cmds=$lt_module_expsym_cmds
16695
16696# Whether we are building with GNU ld or not.
16697with_gnu_ld=$lt_with_gnu_ld
16698
16699# Flag that allows shared libraries with undefined symbols to be built.
16700allow_undefined_flag=$lt_allow_undefined_flag
16701
16702# Flag that enforces no undefined symbols.
16703no_undefined_flag=$lt_no_undefined_flag
16704
16705# Flag to hardcode \$libdir into a binary during linking.
16706# This must work even if \$libdir does not exist
16707hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16708
16709# If ld is used when linking, flag to hardcode \$libdir into a binary
16710# during linking. This must work even if \$libdir does not exist.
16711hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16712
16713# Whether we need a single "-rpath" flag with a separated argument.
16714hardcode_libdir_separator=$lt_hardcode_libdir_separator
16715
16716# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16717# DIR into the resulting binary.
16718hardcode_direct=$hardcode_direct
16719
16720# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16721# DIR into the resulting binary and the resulting library dependency is
16722# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16723# library is relocated.
16724hardcode_direct_absolute=$hardcode_direct_absolute
16725
16726# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16727# into the resulting binary.
16728hardcode_minus_L=$hardcode_minus_L
16729
16730# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16731# into the resulting binary.
16732hardcode_shlibpath_var=$hardcode_shlibpath_var
16733
16734# Set to "yes" if building a shared library automatically hardcodes DIR
16735# into the library and all subsequent libraries and executables linked
16736# against it.
16737hardcode_automatic=$hardcode_automatic
16738
16739# Set to yes if linker adds runtime paths of dependent libraries
16740# to runtime path list.
16741inherit_rpath=$inherit_rpath
16742
16743# Whether libtool must link a program against all its dependency libraries.
16744link_all_deplibs=$link_all_deplibs
16745
16746# Fix the shell variable \$srcfile for the compiler.
16747fix_srcfile_path=$lt_fix_srcfile_path
16748
16749# Set to "yes" if exported symbols are required.
16750always_export_symbols=$always_export_symbols
16751
16752# The commands to list exported symbols.
16753export_symbols_cmds=$lt_export_symbols_cmds
16754
16755# Symbols that should not be listed in the preloaded symbols.
16756exclude_expsyms=$lt_exclude_expsyms
16757
16758# Symbols that must always be exported.
16759include_expsyms=$lt_include_expsyms
16760
16761# Commands necessary for linking programs (against libraries) with templates.
16762prelink_cmds=$lt_prelink_cmds
16763
16764# Specify filename containing input files.
16765file_list_spec=$lt_file_list_spec
16766
16767# How to hardcode a shared library path into an executable.
16768hardcode_action=$hardcode_action
16769
16770# ### END LIBTOOL CONFIG
16771
16772_LT_EOF
16773
16774 case $host_os in
16775 aix3*)
16776 cat <<\_LT_EOF >> "$cfgfile"
16777# AIX sometimes has problems with the GCC collect2 program. For some
16778# reason, if we set the COLLECT_NAMES environment variable, the problems
16779# vanish in a puff of smoke.
16780if test "X${COLLECT_NAMES+set}" != Xset; then
16781 COLLECT_NAMES=
16782 export COLLECT_NAMES
16783fi
16784_LT_EOF
16785 ;;
16786 esac
16787
16788
16789ltmain="$ac_aux_dir/ltmain.sh"
16790
16791
16792 # We use sed instead of cat because bash on DJGPP gets confused if
16793 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16794 # text mode, it properly converts lines to CR/LF. This bash problem
16795 # is reportedly fixed, but why not run on old versions too?
16796 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16797 || (rm -f "$cfgfile"; exit 1)
16798
16799 case $xsi_shell in
16800 yes)
16801 cat << \_LT_EOF >> "$cfgfile"
16802# func_dirname file append nondir_replacement
16803# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16804# otherwise set result to NONDIR_REPLACEMENT.
16805func_dirname ()
16806{
16807 case ${1} in
16808 */*) func_dirname_result="${1%/*}${2}" ;;
16809 * ) func_dirname_result="${3}" ;;
16810 esac
16811}
16812
16813# func_basename file
16814func_basename ()
16815{
16816 func_basename_result="${1##*/}"
16817}
16818
16819# func_stripname prefix suffix name
16820# strip PREFIX and SUFFIX off of NAME.
16821# PREFIX and SUFFIX must not contain globbing or regex special
16822# characters, hashes, percent signs, but SUFFIX may contain a leading
16823# dot (in which case that matches only a dot).
16824func_stripname ()
16825{
16826 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16827 # positional parameters, so assign one to ordinary parameter first.
16828 func_stripname_result=${3}
16829 func_stripname_result=${func_stripname_result#"${1}"}
16830 func_stripname_result=${func_stripname_result%"${2}"}
16831}
16832
16833# func_opt_split
16834func_opt_split ()
16835{
16836 func_opt_split_opt=${1%%=*}
16837 func_opt_split_arg=${1#*=}
16838}
16839
16840# func_lo2o object
16841func_lo2o ()
16842{
16843 case ${1} in
16844 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16845 *) func_lo2o_result=${1} ;;
16846 esac
16847}
16848_LT_EOF
16849 ;;
16850 *) # Bourne compatible functions.
16851 cat << \_LT_EOF >> "$cfgfile"
16852# func_dirname file append nondir_replacement
16853# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16854# otherwise set result to NONDIR_REPLACEMENT.
16855func_dirname ()
16856{
16857 # Extract subdirectory from the argument.
16858 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16859 if test "X$func_dirname_result" = "X${1}"; then
16860 func_dirname_result="${3}"
16861 else
16862 func_dirname_result="$func_dirname_result${2}"
16863 fi
16864}
16865
16866# func_basename file
16867func_basename ()
16868{
16869 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16870}
16871
16872# func_stripname prefix suffix name
16873# strip PREFIX and SUFFIX off of NAME.
16874# PREFIX and SUFFIX must not contain globbing or regex special
16875# characters, hashes, percent signs, but SUFFIX may contain a leading
16876# dot (in which case that matches only a dot).
16877# func_strip_suffix prefix name
16878func_stripname ()
16879{
16880 case ${2} in
16881 .*) func_stripname_result=`$ECHO "X${3}" \
16882 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16883 *) func_stripname_result=`$ECHO "X${3}" \
16884 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16885 esac
16886}
16887
16888# sed scripts:
16889my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16890my_sed_long_arg='1s/^-[^=]*=//'
16891
16892# func_opt_split
16893func_opt_split ()
16894{
16895 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16896 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16897}
16898
16899# func_lo2o object
16900func_lo2o ()
16901{
16902 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16903}
16904_LT_EOF
16905esac
16906
16907case $lt_shell_append in
16908 yes)
16909 cat << \_LT_EOF >> "$cfgfile"
16910
16911# func_append var value
16912# Append VALUE to the end of shell variable VAR.
16913func_append ()
16914{
16915 eval "$1+=\$2"
16916}
16917_LT_EOF
16918 ;;
16919 *)
16920 cat << \_LT_EOF >> "$cfgfile"
16921
16922# func_append var value
16923# Append VALUE to the end of shell variable VAR.
16924func_append ()
16925{
16926 eval "$1=\$$1\$2"
16927}
16928_LT_EOF
16929 ;;
16930 esac
16931
16932
16933 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16934 || (rm -f "$cfgfile"; exit 1)
16935
16936 mv -f "$cfgfile" "$ofile" ||
16937 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16938 chmod +x "$ofile"
16939
42ecbf5e 16940 ;;
20e95c23
DJ
16941 default-1 )
16942 for ac_file in $CONFIG_FILES; do
16943 # Support "outfile[:infile[:infile...]]"
16944 case "$ac_file" in
16945 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16946 esac
16947 # PO directories have a Makefile.in generated from Makefile.in.in.
16948 case "$ac_file" in */Makefile.in)
16949 # Adjust a relative srcdir.
16950 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16951 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16952 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16953 # In autoconf-2.13 it is called $ac_given_srcdir.
16954 # In autoconf-2.50 it is called $srcdir.
16955 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16956 case "$ac_given_srcdir" in
16957 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16958 /*) top_srcdir="$ac_given_srcdir" ;;
16959 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16960 esac
16961 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16962 rm -f "$ac_dir/POTFILES"
16963 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16964 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16965 POMAKEFILEDEPS="POTFILES.in"
16966 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16967 # on $ac_dir but don't depend on user-specified configuration
16968 # parameters.
16969 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16970 # The LINGUAS file contains the set of available languages.
16971 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16972 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16973 fi
16974 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16975 # Hide the ALL_LINGUAS assigment from automake.
16976 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16977 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16978 else
16979 # The set of available languages was given in configure.in.
16980 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16981 fi
16982 case "$ac_given_srcdir" in
16983 .) srcdirpre= ;;
16984 *) srcdirpre='$(srcdir)/' ;;
16985 esac
16986 POFILES=
16987 GMOFILES=
16988 UPDATEPOFILES=
16989 DUMMYPOFILES=
16990 for lang in $ALL_LINGUAS; do
16991 POFILES="$POFILES $srcdirpre$lang.po"
16992 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16993 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16994 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16995 done
16996 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16997 # environment variable.
16998 INST_LINGUAS=
16999 if test -n "$ALL_LINGUAS"; then
17000 for presentlang in $ALL_LINGUAS; do
17001 useit=no
17002 if test "%UNSET%" != "$LINGUAS"; then
17003 desiredlanguages="$LINGUAS"
17004 else
17005 desiredlanguages="$ALL_LINGUAS"
17006 fi
17007 for desiredlang in $desiredlanguages; do
17008 # Use the presentlang catalog if desiredlang is
17009 # a. equal to presentlang, or
17010 # b. a variant of presentlang (because in this case,
17011 # presentlang can be used as a fallback for messages
17012 # which are not translated in the desiredlang catalog).
17013 case "$desiredlang" in
17014 "$presentlang"*) useit=yes;;
17015 esac
17016 done
17017 if test $useit = yes; then
17018 INST_LINGUAS="$INST_LINGUAS $presentlang"
17019 fi
17020 done
17021 fi
17022 CATALOGS=
17023 if test -n "$INST_LINGUAS"; then
17024 for lang in $INST_LINGUAS; do
17025 CATALOGS="$CATALOGS $lang.gmo"
17026 done
17027 fi
17028 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17029 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"
17030 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17031 if test -f "$f"; then
17032 case "$f" in
17033 *.orig | *.bak | *~) ;;
17034 *) cat "$f" >> "$ac_dir/Makefile" ;;
17035 esac
17036 fi
17037 done
17038 fi
17039 ;;
17040 esac
17041 done ;;
42ecbf5e
DJ
17042 esac
17043done
17044_ACEOF
e5a52504 17045
42ecbf5e
DJ
17046cat >>$CONFIG_STATUS <<\_ACEOF
17047
17048{ (exit 0); exit 0; }
17049_ACEOF
252b5132 17050chmod +x $CONFIG_STATUS
42ecbf5e
DJ
17051ac_clean_files=$ac_clean_files_save
17052
17053
17054# configure is writing to config.log, and then calls config.status.
17055# config.status does its own redirection, appending to config.log.
17056# Unfortunately, on DOS this fails, as config.log is still kept open
17057# by configure, so config.status won't be able to write to it; its
17058# output is simply discarded. So we exec the FD to /dev/null,
17059# effectively closing config.log, so it can be properly (re)opened and
17060# appended to by config.status. When coming back to configure, we
17061# need to make the FD available again.
17062if test "$no_create" != yes; then
17063 ac_cs_success=:
17064 ac_config_status_args=
17065 test "$silent" = yes &&
17066 ac_config_status_args="$ac_config_status_args --quiet"
17067 exec 5>/dev/null
17068 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17069 exec 5>>config.log
17070 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17071 # would make configure fail if this is the last instruction.
17072 $ac_cs_success || { (exit 1); exit 1; }
17073fi
252b5132 17074
This page took 1.161625 seconds and 4 git commands to generate.