* Makefile.in (ALLDEPFILES): Remove duplicate entries for
[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
31dd3154 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 CPP EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 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 pdfdir LIBOBJS LTLIBOBJS'
42ecbf5e 462ac_subst_files=''
7a283e07 463ac_pwd=`pwd`
252b5132
RH
464
465# Initialize some variables set by options.
42ecbf5e
DJ
466ac_init_help=
467ac_init_version=false
252b5132
RH
468# The variables have the same names as the options, with
469# dashes changed to underlines.
42ecbf5e 470cache_file=/dev/null
252b5132 471exec_prefix=NONE
252b5132 472no_create=
252b5132
RH
473no_recursion=
474prefix=NONE
475program_prefix=NONE
476program_suffix=NONE
477program_transform_name=s,x,x,
478silent=
479site=
480srcdir=
252b5132
RH
481verbose=
482x_includes=NONE
483x_libraries=NONE
42ecbf5e
DJ
484
485# Installation directory options.
486# These are left unexpanded so users can "make install exec_prefix=/foo"
487# and all the variables that are supposed to be based on exec_prefix
488# by default will actually change.
489# Use braces instead of parens because sh, perl, etc. also accept them.
252b5132
RH
490bindir='${exec_prefix}/bin'
491sbindir='${exec_prefix}/sbin'
492libexecdir='${exec_prefix}/libexec'
493datadir='${prefix}/share'
494sysconfdir='${prefix}/etc'
495sharedstatedir='${prefix}/com'
496localstatedir='${prefix}/var'
497libdir='${exec_prefix}/lib'
498includedir='${prefix}/include'
499oldincludedir='/usr/include'
500infodir='${prefix}/info'
501mandir='${prefix}/man'
502
252b5132
RH
503ac_prev=
504for ac_option
505do
252b5132
RH
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
511 fi
512
42ecbf5e 513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
514
515 # Accept the important Cygnus configure options, so we can diagnose typos.
516
42ecbf5e 517 case $ac_option in
252b5132
RH
518
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
42ecbf5e 522 bindir=$ac_optarg ;;
252b5132
RH
523
524 -build | --build | --buil | --bui | --bu)
42ecbf5e 525 ac_prev=build_alias ;;
252b5132 526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 527 build_alias=$ac_optarg ;;
252b5132
RH
528
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
42ecbf5e
DJ
534 cache_file=$ac_optarg ;;
535
536 --config-cache | -C)
537 cache_file=config.cache ;;
252b5132
RH
538
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
42ecbf5e 543 datadir=$ac_optarg ;;
252b5132
RH
544
545 -disable-* | --disable-*)
42ecbf5e 546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 547 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
252b5132
RH
553
554 -enable-* | --enable-*)
42ecbf5e 555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 556 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
563 *) ac_optarg=yes ;;
564 esac
42ecbf5e 565 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
566
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
42ecbf5e 574 exec_prefix=$ac_optarg ;;
252b5132
RH
575
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
579
42ecbf5e
DJ
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
252b5132
RH
586
587 -host | --host | --hos | --ho)
42ecbf5e 588 ac_prev=host_alias ;;
252b5132 589 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 590 host_alias=$ac_optarg ;;
252b5132
RH
591
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
42ecbf5e 597 includedir=$ac_optarg ;;
252b5132
RH
598
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
42ecbf5e 602 infodir=$ac_optarg ;;
252b5132
RH
603
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 607 libdir=$ac_optarg ;;
252b5132
RH
608
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
42ecbf5e 614 libexecdir=$ac_optarg ;;
252b5132
RH
615
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
42ecbf5e 623 localstatedir=$ac_optarg ;;
252b5132
RH
624
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
42ecbf5e 628 mandir=$ac_optarg ;;
252b5132
RH
629
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
633
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
42ecbf5e 635 | --no-cr | --no-c | -n)
252b5132
RH
636 no_create=yes ;;
637
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
641
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
42ecbf5e 649 oldincludedir=$ac_optarg ;;
252b5132
RH
650
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42ecbf5e 654 prefix=$ac_optarg ;;
252b5132
RH
655
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
42ecbf5e 661 program_prefix=$ac_optarg ;;
252b5132
RH
662
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
42ecbf5e 668 program_suffix=$ac_optarg ;;
252b5132
RH
669
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
42ecbf5e 685 program_transform_name=$ac_optarg ;;
252b5132
RH
686
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
690
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
42ecbf5e 695 sbindir=$ac_optarg ;;
252b5132
RH
696
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
42ecbf5e 706 sharedstatedir=$ac_optarg ;;
252b5132
RH
707
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
42ecbf5e 711 site=$ac_optarg ;;
252b5132
RH
712
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 716 srcdir=$ac_optarg ;;
252b5132
RH
717
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
42ecbf5e 723 sysconfdir=$ac_optarg ;;
252b5132
RH
724
725 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 726 ac_prev=target_alias ;;
252b5132 727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 728 target_alias=$ac_optarg ;;
252b5132
RH
729
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
732
42ecbf5e
DJ
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
252b5132
RH
735
736 -with-* | --with-*)
42ecbf5e 737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 738 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
252b5132 742 ac_package=`echo $ac_package| sed 's/-/_/g'`
42ecbf5e
DJ
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
745 *) ac_optarg=yes ;;
746 esac
42ecbf5e 747 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
748
749 -without-* | --without-*)
42ecbf5e 750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 751 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
252b5132
RH
757
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
761
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
42ecbf5e 767 x_includes=$ac_optarg ;;
252b5132
RH
768
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
42ecbf5e 774 x_libraries=$ac_optarg ;;
252b5132 775
42ecbf5e
DJ
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
252b5132
RH
779 ;;
780
42ecbf5e
DJ
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
789 export $ac_envvar ;;
790
252b5132 791 *)
42ecbf5e
DJ
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
797 ;;
798
799 esac
800done
801
802if test -n "$ac_prev"; then
42ecbf5e
DJ
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
252b5132
RH
806fi
807
42ecbf5e
DJ
808# Be sure to have absolute paths.
809for ac_var in exec_prefix prefix
810do
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817done
252b5132 818
42ecbf5e
DJ
819# Be sure to have absolute paths.
820for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 822do
42ecbf5e
DJ
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
252b5132
RH
828 esac
829done
830
42ecbf5e
DJ
831# There might be people who depend on the old broken behavior: `$host'
832# used to hold the argument of --host etc.
833# FIXME: To remove some day.
834build=$build_alias
835host=$host_alias
836target=$target_alias
837
838# FIXME: To remove some day.
839if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
846 fi
847fi
e5a52504 848
42ecbf5e
DJ
849ac_tool_prefix=
850test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852test "$silent" = yes && exec 6>/dev/null
252b5132 853
252b5132
RH
854
855# Find the source files, if location was not specified.
856if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
42ecbf5e
DJ
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
865echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
252b5132
RH
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
874 fi
875else
876 ac_srcdir_defaulted=no
877fi
878if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
42ecbf5e
DJ
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
252b5132 882 else
42ecbf5e
DJ
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
252b5132
RH
885 fi
886fi
42ecbf5e
DJ
887(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891ac_env_build_alias_set=${build_alias+set}
892ac_env_build_alias_value=$build_alias
893ac_cv_env_build_alias_set=${build_alias+set}
894ac_cv_env_build_alias_value=$build_alias
895ac_env_host_alias_set=${host_alias+set}
896ac_env_host_alias_value=$host_alias
897ac_cv_env_host_alias_set=${host_alias+set}
898ac_cv_env_host_alias_value=$host_alias
899ac_env_target_alias_set=${target_alias+set}
900ac_env_target_alias_value=$target_alias
901ac_cv_env_target_alias_set=${target_alias+set}
902ac_cv_env_target_alias_value=$target_alias
903ac_env_CC_set=${CC+set}
904ac_env_CC_value=$CC
905ac_cv_env_CC_set=${CC+set}
906ac_cv_env_CC_value=$CC
907ac_env_CFLAGS_set=${CFLAGS+set}
908ac_env_CFLAGS_value=$CFLAGS
909ac_cv_env_CFLAGS_set=${CFLAGS+set}
910ac_cv_env_CFLAGS_value=$CFLAGS
911ac_env_LDFLAGS_set=${LDFLAGS+set}
912ac_env_LDFLAGS_value=$LDFLAGS
913ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914ac_cv_env_LDFLAGS_value=$LDFLAGS
915ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916ac_env_CPPFLAGS_value=$CPPFLAGS
917ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919ac_env_CPP_set=${CPP+set}
920ac_env_CPP_value=$CPP
921ac_cv_env_CPP_set=${CPP+set}
922ac_cv_env_CPP_value=$CPP
252b5132 923
42ecbf5e
DJ
924#
925# Report the --help message.
926#
927if test "$ac_init_help" = "long"; then
928 # Omit some internal or obsolete options to make the list less imposing.
929 # This message is too long to be a string in the A/UX 3.1 sh.
930 cat <<_ACEOF
931\`configure' configures this package to adapt to many kinds of systems.
252b5132 932
42ecbf5e 933Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 934
42ecbf5e
DJ
935To assign environment variables (e.g., CC, CFLAGS...), specify them as
936VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 937
42ecbf5e 938Defaults for the options are specified in brackets.
ac48eca1 939
42ecbf5e
DJ
940Configuration:
941 -h, --help display this help and exit
942 --help=short display options specific to this package
943 --help=recursive display the short help of all the included packages
944 -V, --version display version information and exit
945 -q, --quiet, --silent do not print \`checking...' messages
946 --cache-file=FILE cache test results in FILE [disabled]
947 -C, --config-cache alias for \`--cache-file=config.cache'
948 -n, --no-create do not create output files
949 --srcdir=DIR find the sources in DIR [configure dir or \`..']
950
951_ACEOF
952
953 cat <<_ACEOF
954Installation directories:
955 --prefix=PREFIX install architecture-independent files in PREFIX
956 [$ac_default_prefix]
957 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
958 [PREFIX]
ac48eca1 959
42ecbf5e
DJ
960By default, \`make install' will install all the files in
961\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
962an installation prefix other than \`$ac_default_prefix' using \`--prefix',
963for instance \`--prefix=\$HOME'.
ac48eca1 964
42ecbf5e 965For better control, use the options below.
ac48eca1 966
42ecbf5e
DJ
967Fine tuning of the installation directories:
968 --bindir=DIR user executables [EPREFIX/bin]
969 --sbindir=DIR system admin executables [EPREFIX/sbin]
970 --libexecdir=DIR program executables [EPREFIX/libexec]
971 --datadir=DIR read-only architecture-independent data [PREFIX/share]
972 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
973 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
974 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
975 --libdir=DIR object code libraries [EPREFIX/lib]
976 --includedir=DIR C header files [PREFIX/include]
977 --oldincludedir=DIR C header files for non-gcc [/usr/include]
978 --infodir=DIR info documentation [PREFIX/info]
979 --mandir=DIR man documentation [PREFIX/man]
980_ACEOF
ac48eca1 981
42ecbf5e 982 cat <<\_ACEOF
252b5132 983
42ecbf5e
DJ
984Program names:
985 --program-prefix=PREFIX prepend PREFIX to installed program names
986 --program-suffix=SUFFIX append SUFFIX to installed program names
987 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 988
42ecbf5e
DJ
989System types:
990 --build=BUILD configure for building on BUILD [guessed]
991 --host=HOST cross-compile to build programs to run on HOST [BUILD]
992 --target=TARGET configure for building compilers for TARGET [HOST]
993_ACEOF
252b5132 994fi
252b5132 995
42ecbf5e 996if test -n "$ac_init_help"; then
252b5132 997
42ecbf5e 998 cat <<\_ACEOF
252b5132 999
42ecbf5e
DJ
1000Optional Features:
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1003 --disable-dependency-tracking speeds up one-time build
1004 --enable-dependency-tracking do not reject slow dependency extractors
d053aef8 1005 --disable-largefile omit support for large files
d7040cdb
SE
1006 --enable-shared[=PKGS]
1007 build shared libraries [default=yes]
1008 --enable-static[=PKGS]
1009 build static libraries [default=yes]
1010 --enable-fast-install[=PKGS]
1011 optimize for fast installation [default=yes]
42ecbf5e
DJ
1012 --disable-libtool-lock avoid locking (might break parallel builds)
1013 --enable-targets alternative target configurations
241a6c40
AM
1014 --enable-werror treat compile warnings as errors
1015 --enable-build-warnings enable build-time compiler warnings
42ecbf5e
DJ
1016 --disable-nls do not use Native Language Support
1017 --enable-maintainer-mode enable make rules and dependencies not useful
1018 (and sometimes confusing) to the casual installer
5ba684e2 1019 --disable-rpath do not hardcode runtime library paths
42ecbf5e
DJ
1020
1021Optional Packages:
1022 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1023 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1024 --with-pic try to use only PIC/non-PIC objects [default=use
1025 both]
1026 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
5ba684e2
NC
1027 --with-gnu-ld assume the C compiler uses GNU ld default=no
1028 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1029 --without-libiconv-prefix don't search for libiconv in includedir and libdir
252b5132 1030
42ecbf5e
DJ
1031Some influential environment variables:
1032 CC C compiler command
1033 CFLAGS C compiler flags
1034 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1035 nonstandard directory <lib dir>
1036 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1037 headers in a nonstandard directory <include dir>
1038 CPP C preprocessor
e5a52504 1039
42ecbf5e
DJ
1040Use these variables to override the choices made by `configure' or to help
1041it to find libraries and programs with nonstandard names/locations.
1042
1043_ACEOF
252b5132
RH
1044fi
1045
42ecbf5e
DJ
1046if test "$ac_init_help" = "recursive"; then
1047 # If there are subdirs, report their specific --help.
1048 ac_popdir=`pwd`
1049 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1050 test -d $ac_dir || continue
1051 ac_builddir=.
1052
1053if test "$ac_dir" != .; then
1054 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1055 # A "../" for each directory in $ac_dir_suffix.
1056 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1057else
1058 ac_dir_suffix= ac_top_builddir=
1059fi
252b5132 1060
42ecbf5e
DJ
1061case $srcdir in
1062 .) # No --srcdir option. We are building in place.
1063 ac_srcdir=.
1064 if test -z "$ac_top_builddir"; then
1065 ac_top_srcdir=.
1066 else
1067 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
252b5132 1068 fi ;;
42ecbf5e
DJ
1069 [\\/]* | ?:[\\/]* ) # Absolute path.
1070 ac_srcdir=$srcdir$ac_dir_suffix;
1071 ac_top_srcdir=$srcdir ;;
1072 *) # Relative path.
1073 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1074 ac_top_srcdir=$ac_top_builddir$srcdir ;;
252b5132
RH
1075esac
1076
42ecbf5e
DJ
1077# Do not use `cd foo && pwd` to compute absolute paths, because
1078# the directories may not exist.
1079case `pwd` in
1080.) ac_abs_builddir="$ac_dir";;
1081*)
1082 case "$ac_dir" in
1083 .) ac_abs_builddir=`pwd`;;
1084 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1085 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1086 esac;;
252b5132 1087esac
42ecbf5e
DJ
1088case $ac_abs_builddir in
1089.) ac_abs_top_builddir=${ac_top_builddir}.;;
1090*)
1091 case ${ac_top_builddir}. in
1092 .) ac_abs_top_builddir=$ac_abs_builddir;;
1093 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1094 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1095 esac;;
1096esac
1097case $ac_abs_builddir in
1098.) ac_abs_srcdir=$ac_srcdir;;
1099*)
1100 case $ac_srcdir in
1101 .) ac_abs_srcdir=$ac_abs_builddir;;
1102 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1103 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1104 esac;;
1105esac
1106case $ac_abs_builddir in
1107.) ac_abs_top_srcdir=$ac_top_srcdir;;
1108*)
1109 case $ac_top_srcdir in
1110 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1111 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1112 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1113 esac;;
d15b04bd 1114esac
5d64ca4e 1115
42ecbf5e
DJ
1116 cd $ac_dir
1117 # Check for guested configure; otherwise get Cygnus style configure.
1118 if test -f $ac_srcdir/configure.gnu; then
1119 echo
1120 $SHELL $ac_srcdir/configure.gnu --help=recursive
1121 elif test -f $ac_srcdir/configure; then
1122 echo
1123 $SHELL $ac_srcdir/configure --help=recursive
1124 elif test -f $ac_srcdir/configure.ac ||
1125 test -f $ac_srcdir/configure.in; then
1126 echo
1127 $ac_configure --help
1128 else
1129 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1130 fi
7357c5b6 1131 cd $ac_popdir
42ecbf5e
DJ
1132 done
1133fi
5d64ca4e 1134
42ecbf5e
DJ
1135test -n "$ac_init_help" && exit 0
1136if $ac_init_version; then
1137 cat <<\_ACEOF
5d64ca4e 1138
42ecbf5e
DJ
1139Copyright (C) 2003 Free Software Foundation, Inc.
1140This configure script is free software; the Free Software Foundation
1141gives unlimited permission to copy, distribute and modify it.
1142_ACEOF
1143 exit 0
1144fi
1145exec 5>config.log
1146cat >&5 <<_ACEOF
1147This file contains any messages produced by compilers while
1148running configure, to aid debugging if configure makes a mistake.
429cc0ae 1149
42ecbf5e
DJ
1150It was created by $as_me, which was
1151generated by GNU Autoconf 2.59. Invocation command line was
252b5132 1152
42ecbf5e 1153 $ $0 $@
e5a52504 1154
42ecbf5e
DJ
1155_ACEOF
1156{
1157cat <<_ASUNAME
1158## --------- ##
1159## Platform. ##
1160## --------- ##
1161
1162hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1163uname -m = `(uname -m) 2>/dev/null || echo unknown`
1164uname -r = `(uname -r) 2>/dev/null || echo unknown`
1165uname -s = `(uname -s) 2>/dev/null || echo unknown`
1166uname -v = `(uname -v) 2>/dev/null || echo unknown`
1167
1168/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1169/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1170
1171/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1172/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1173/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1174hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1175/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1176/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1177/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1178
1179_ASUNAME
1180
1181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1182for as_dir in $PATH
1183do
1184 IFS=$as_save_IFS
1185 test -z "$as_dir" && as_dir=.
1186 echo "PATH: $as_dir"
1187done
e5a52504 1188
42ecbf5e 1189} >&5
ceae3e33 1190
42ecbf5e 1191cat >&5 <<_ACEOF
e5a52504 1192
42ecbf5e
DJ
1193
1194## ----------- ##
1195## Core tests. ##
1196## ----------- ##
1197
1198_ACEOF
1199
1200
1201# Keep a trace of the command line.
1202# Strip out --no-create and --no-recursion so they do not pile up.
1203# Strip out --silent because we don't want to record it for future runs.
1204# Also quote any args containing shell meta-characters.
1205# Make two passes to allow for proper duplicate-argument suppression.
1206ac_configure_args=
1207ac_configure_args0=
1208ac_configure_args1=
1209ac_sep=
1210ac_must_keep_next=false
1211for ac_pass in 1 2
1212do
1213 for ac_arg
1214 do
1215 case $ac_arg in
1216 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218 | -silent | --silent | --silen | --sile | --sil)
1219 continue ;;
1220 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1221 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1222 esac
1223 case $ac_pass in
1224 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1225 2)
1226 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1227 if test $ac_must_keep_next = true; then
1228 ac_must_keep_next=false # Got value, back to normal.
1229 else
1230 case $ac_arg in
1231 *=* | --config-cache | -C | -disable-* | --disable-* \
1232 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1233 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1234 | -with-* | --with-* | -without-* | --without-* | --x)
1235 case "$ac_configure_args0 " in
1236 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1237 esac
1238 ;;
1239 -* ) ac_must_keep_next=true ;;
1240 esac
1241 fi
1242 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1243 # Get rid of the leading space.
1244 ac_sep=" "
1245 ;;
1246 esac
1247 done
1248done
1249$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1250$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1251
1252# When interrupted or exit'd, cleanup temporary files, and complete
1253# config.log. We remove comments because anyway the quotes in there
1254# would cause problems or look ugly.
1255# WARNING: Be sure not to use single quotes in there, as some shells,
1256# such as our DU 5.0 friend, will then `close' the trap.
1257trap 'exit_status=$?
1258 # Save into config.log some information that might help in debugging.
1259 {
1260 echo
1261
1262 cat <<\_ASBOX
1263## ---------------- ##
1264## Cache variables. ##
1265## ---------------- ##
1266_ASBOX
1267 echo
1268 # The following way of writing the cache mishandles newlines in values,
1269{
1270 (set) 2>&1 |
1271 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1272 *ac_space=\ *)
1273 sed -n \
1274 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1276 ;;
1277 *)
1278 sed -n \
1279 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1280 ;;
1281 esac;
1282}
1283 echo
1284
1285 cat <<\_ASBOX
1286## ----------------- ##
1287## Output variables. ##
1288## ----------------- ##
1289_ASBOX
1290 echo
1291 for ac_var in $ac_subst_vars
1292 do
1293 eval ac_val=$`echo $ac_var`
1294 echo "$ac_var='"'"'$ac_val'"'"'"
1295 done | sort
1296 echo
1297
1298 if test -n "$ac_subst_files"; then
1299 cat <<\_ASBOX
1300## ------------- ##
1301## Output files. ##
1302## ------------- ##
1303_ASBOX
1304 echo
1305 for ac_var in $ac_subst_files
1306 do
1307 eval ac_val=$`echo $ac_var`
1308 echo "$ac_var='"'"'$ac_val'"'"'"
1309 done | sort
1310 echo
1311 fi
1312
1313 if test -s confdefs.h; then
1314 cat <<\_ASBOX
1315## ----------- ##
1316## confdefs.h. ##
1317## ----------- ##
1318_ASBOX
1319 echo
1320 sed "/^$/d" confdefs.h | sort
1321 echo
1322 fi
1323 test "$ac_signal" != 0 &&
1324 echo "$as_me: caught signal $ac_signal"
1325 echo "$as_me: exit $exit_status"
1326 } >&5
1327 rm -f core *.core &&
1328 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1329 exit $exit_status
1330 ' 0
1331for ac_signal in 1 2 13 15; do
1332 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1333done
1334ac_signal=0
1335
1336# confdefs.h avoids OS command line length limits that DEFS can exceed.
1337rm -rf conftest* confdefs.h
1338# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1339echo >confdefs.h
1340
1341# Predefined preprocessor variables.
1342
1343cat >>confdefs.h <<_ACEOF
1344#define PACKAGE_NAME "$PACKAGE_NAME"
1345_ACEOF
1346
1347
1348cat >>confdefs.h <<_ACEOF
1349#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1350_ACEOF
1351
1352
1353cat >>confdefs.h <<_ACEOF
1354#define PACKAGE_VERSION "$PACKAGE_VERSION"
1355_ACEOF
1356
1357
1358cat >>confdefs.h <<_ACEOF
1359#define PACKAGE_STRING "$PACKAGE_STRING"
1360_ACEOF
1361
1362
1363cat >>confdefs.h <<_ACEOF
1364#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1365_ACEOF
1366
1367
1368# Let the site file select an alternate cache file if it wants to.
1369# Prefer explicitly selected file to automatically selected ones.
1370if test -z "$CONFIG_SITE"; then
1371 if test "x$prefix" != xNONE; then
1372 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1373 else
1374 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1375 fi
1376fi
1377for ac_site_file in $CONFIG_SITE; do
1378 if test -r "$ac_site_file"; then
1379 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1380echo "$as_me: loading site script $ac_site_file" >&6;}
1381 sed 's/^/| /' "$ac_site_file" >&5
1382 . "$ac_site_file"
1383 fi
1384done
1385
1386if test -r "$cache_file"; then
1387 # Some versions of bash will fail to source /dev/null (special
1388 # files actually), so we avoid doing that.
1389 if test -f "$cache_file"; then
1390 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1391echo "$as_me: loading cache $cache_file" >&6;}
1392 case $cache_file in
1393 [\\/]* | ?:[\\/]* ) . $cache_file;;
1394 *) . ./$cache_file;;
1395 esac
1396 fi
1397else
1398 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1399echo "$as_me: creating cache $cache_file" >&6;}
1400 >$cache_file
1401fi
1402
1403# Check that the precious variables saved in the cache have kept the same
1404# value.
1405ac_cache_corrupted=false
1406for ac_var in `(set) 2>&1 |
1407 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1408 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1409 eval ac_new_set=\$ac_env_${ac_var}_set
1410 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1411 eval ac_new_val="\$ac_env_${ac_var}_value"
1412 case $ac_old_set,$ac_new_set in
1413 set,)
1414 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1415echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1416 ac_cache_corrupted=: ;;
1417 ,set)
1418 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1419echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1420 ac_cache_corrupted=: ;;
1421 ,);;
1422 *)
1423 if test "x$ac_old_val" != "x$ac_new_val"; then
6194aaab
L
1424 # differences in whitespace do not lead to failure.
1425 ac_old_val_w=`echo x $ac_old_val`
1426 ac_new_val_w=`echo x $ac_new_val`
1427 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1428 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
42ecbf5e 1429echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
6194aaab
L
1430 ac_cache_corrupted=:
1431 else
1432 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1433echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1434 eval $ac_var=\$ac_old_val
1435 fi
1436 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1437echo "$as_me: former value: \`$ac_old_val'" >&2;}
1438 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1439echo "$as_me: current value: \`$ac_new_val'" >&2;}
42ecbf5e
DJ
1440 fi;;
1441 esac
1442 # Pass precious variables to config.status.
1443 if test "$ac_new_set" = set; then
1444 case $ac_new_val in
1445 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1446 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1447 *) ac_arg=$ac_var=$ac_new_val ;;
1448 esac
1449 case " $ac_configure_args " in
1450 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1451 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1452 esac
1453 fi
1454done
1455if $ac_cache_corrupted; then
7a283e07
RW
1456 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1457echo "$as_me: error: in \`$ac_pwd':" >&2;}
42ecbf5e
DJ
1458 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1459echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1460 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1461echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1462 { (exit 1); exit 1; }; }
1463fi
1464
1465ac_ext=c
1466ac_cpp='$CPP $CPPFLAGS'
1467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1469ac_compiler_gnu=$ac_cv_c_compiler_gnu
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
7a283e07
RW
1487
1488
1489
42ecbf5e 1490
da594c4a 1491
42ecbf5e
DJ
1492
1493
1494ac_aux_dir=
1495for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1496 if test -f $ac_dir/install-sh; then
1497 ac_aux_dir=$ac_dir
1498 ac_install_sh="$ac_aux_dir/install-sh -c"
1499 break
1500 elif test -f $ac_dir/install.sh; then
1501 ac_aux_dir=$ac_dir
1502 ac_install_sh="$ac_aux_dir/install.sh -c"
1503 break
1504 elif test -f $ac_dir/shtool; then
1505 ac_aux_dir=$ac_dir
1506 ac_install_sh="$ac_aux_dir/shtool install -c"
1507 break
1508 fi
1509done
1510if test -z "$ac_aux_dir"; then
1511 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1512echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1513 { (exit 1); exit 1; }; }
1514fi
1515ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1516ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1517ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1518
1519# Make sure we can run config.sub.
1520$ac_config_sub sun4 >/dev/null 2>&1 ||
1521 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1522echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1523 { (exit 1); exit 1; }; }
1524
1525echo "$as_me:$LINENO: checking build system type" >&5
1526echo $ECHO_N "checking build system type... $ECHO_C" >&6
1527if test "${ac_cv_build+set}" = set; then
1528 echo $ECHO_N "(cached) $ECHO_C" >&6
1529else
1530 ac_cv_build_alias=$build_alias
1531test -z "$ac_cv_build_alias" &&
1532 ac_cv_build_alias=`$ac_config_guess`
1533test -z "$ac_cv_build_alias" &&
1534 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1535echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1536 { (exit 1); exit 1; }; }
1537ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1538 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1539echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1540 { (exit 1); exit 1; }; }
1541
1542fi
1543echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1544echo "${ECHO_T}$ac_cv_build" >&6
1545build=$ac_cv_build
1546build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1547build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1548build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1549
1550
1551echo "$as_me:$LINENO: checking host system type" >&5
1552echo $ECHO_N "checking host system type... $ECHO_C" >&6
1553if test "${ac_cv_host+set}" = set; then
1554 echo $ECHO_N "(cached) $ECHO_C" >&6
1555else
1556 ac_cv_host_alias=$host_alias
1557test -z "$ac_cv_host_alias" &&
1558 ac_cv_host_alias=$ac_cv_build_alias
1559ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1560 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1561echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1562 { (exit 1); exit 1; }; }
1563
1564fi
1565echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1566echo "${ECHO_T}$ac_cv_host" >&6
1567host=$ac_cv_host
1568host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1569host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1570host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1571
1572
1573echo "$as_me:$LINENO: checking target system type" >&5
1574echo $ECHO_N "checking target system type... $ECHO_C" >&6
1575if test "${ac_cv_target+set}" = set; then
1576 echo $ECHO_N "(cached) $ECHO_C" >&6
1577else
1578 ac_cv_target_alias=$target_alias
1579test "x$ac_cv_target_alias" = "x" &&
1580 ac_cv_target_alias=$ac_cv_host_alias
1581ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1582 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1583echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1584 { (exit 1); exit 1; }; }
1585
1586fi
1587echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1588echo "${ECHO_T}$ac_cv_target" >&6
1589target=$ac_cv_target
1590target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1591target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1592target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1593
1594
1595# The aliases save the names the user supplied, while $host etc.
1596# will get canonicalized.
1597test -n "$target_alias" &&
1598 test "$program_prefix$program_suffix$program_transform_name" = \
1599 NONENONEs,x,x, &&
1600 program_prefix=${target_alias}-
1601ac_ext=c
1602ac_cpp='$CPP $CPPFLAGS'
1603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1605ac_compiler_gnu=$ac_cv_c_compiler_gnu
1606if test -n "$ac_tool_prefix"; then
1607 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1608set dummy ${ac_tool_prefix}gcc; ac_word=$2
1609echo "$as_me:$LINENO: checking for $ac_word" >&5
1610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1611if test "${ac_cv_prog_CC+set}" = set; then
1612 echo $ECHO_N "(cached) $ECHO_C" >&6
1613else
1614 if test -n "$CC"; then
1615 ac_cv_prog_CC="$CC" # Let the user override the test.
1616else
1617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618for as_dir in $PATH
1619do
1620 IFS=$as_save_IFS
1621 test -z "$as_dir" && as_dir=.
1622 for ac_exec_ext in '' $ac_executable_extensions; do
1623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1624 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1626 break 2
1627 fi
1628done
1629done
1630
1631fi
1632fi
1633CC=$ac_cv_prog_CC
1634if test -n "$CC"; then
1635 echo "$as_me:$LINENO: result: $CC" >&5
1636echo "${ECHO_T}$CC" >&6
1637else
1638 echo "$as_me:$LINENO: result: no" >&5
1639echo "${ECHO_T}no" >&6
1640fi
1641
1642fi
1643if test -z "$ac_cv_prog_CC"; then
1644 ac_ct_CC=$CC
1645 # Extract the first word of "gcc", so it can be a program name with args.
1646set dummy gcc; ac_word=$2
1647echo "$as_me:$LINENO: checking for $ac_word" >&5
1648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1649if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1650 echo $ECHO_N "(cached) $ECHO_C" >&6
1651else
1652 if test -n "$ac_ct_CC"; then
1653 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1654else
1655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656for as_dir in $PATH
1657do
1658 IFS=$as_save_IFS
1659 test -z "$as_dir" && as_dir=.
1660 for ac_exec_ext in '' $ac_executable_extensions; do
1661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1662 ac_cv_prog_ac_ct_CC="gcc"
1663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1664 break 2
1665 fi
1666done
1667done
1668
1669fi
1670fi
1671ac_ct_CC=$ac_cv_prog_ac_ct_CC
1672if test -n "$ac_ct_CC"; then
1673 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1674echo "${ECHO_T}$ac_ct_CC" >&6
1675else
1676 echo "$as_me:$LINENO: result: no" >&5
1677echo "${ECHO_T}no" >&6
1678fi
1679
1680 CC=$ac_ct_CC
1681else
1682 CC="$ac_cv_prog_CC"
1683fi
1684
1685if test -z "$CC"; then
1686 if test -n "$ac_tool_prefix"; then
1687 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1688set dummy ${ac_tool_prefix}cc; ac_word=$2
1689echo "$as_me:$LINENO: checking for $ac_word" >&5
1690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1691if test "${ac_cv_prog_CC+set}" = set; then
1692 echo $ECHO_N "(cached) $ECHO_C" >&6
1693else
1694 if test -n "$CC"; then
1695 ac_cv_prog_CC="$CC" # Let the user override the test.
1696else
1697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1698for as_dir in $PATH
1699do
1700 IFS=$as_save_IFS
1701 test -z "$as_dir" && as_dir=.
1702 for ac_exec_ext in '' $ac_executable_extensions; do
1703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1704 ac_cv_prog_CC="${ac_tool_prefix}cc"
1705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1706 break 2
1707 fi
1708done
1709done
1710
1711fi
1712fi
1713CC=$ac_cv_prog_CC
1714if test -n "$CC"; then
1715 echo "$as_me:$LINENO: result: $CC" >&5
1716echo "${ECHO_T}$CC" >&6
1717else
1718 echo "$as_me:$LINENO: result: no" >&5
1719echo "${ECHO_T}no" >&6
1720fi
1721
1722fi
1723if test -z "$ac_cv_prog_CC"; then
1724 ac_ct_CC=$CC
1725 # Extract the first word of "cc", so it can be a program name with args.
1726set dummy cc; ac_word=$2
1727echo "$as_me:$LINENO: checking for $ac_word" >&5
1728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1729if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1730 echo $ECHO_N "(cached) $ECHO_C" >&6
1731else
1732 if test -n "$ac_ct_CC"; then
1733 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1734else
1735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1736for as_dir in $PATH
1737do
1738 IFS=$as_save_IFS
1739 test -z "$as_dir" && as_dir=.
1740 for ac_exec_ext in '' $ac_executable_extensions; do
1741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1742 ac_cv_prog_ac_ct_CC="cc"
1743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1744 break 2
1745 fi
1746done
1747done
1748
1749fi
1750fi
1751ac_ct_CC=$ac_cv_prog_ac_ct_CC
1752if test -n "$ac_ct_CC"; then
1753 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1754echo "${ECHO_T}$ac_ct_CC" >&6
1755else
1756 echo "$as_me:$LINENO: result: no" >&5
1757echo "${ECHO_T}no" >&6
1758fi
1759
1760 CC=$ac_ct_CC
1761else
1762 CC="$ac_cv_prog_CC"
1763fi
1764
1765fi
1766if test -z "$CC"; then
1767 # Extract the first word of "cc", so it can be a program name with args.
1768set dummy cc; ac_word=$2
1769echo "$as_me:$LINENO: checking for $ac_word" >&5
1770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1771if test "${ac_cv_prog_CC+set}" = set; then
1772 echo $ECHO_N "(cached) $ECHO_C" >&6
1773else
1774 if test -n "$CC"; then
1775 ac_cv_prog_CC="$CC" # Let the user override the test.
1776else
1777 ac_prog_rejected=no
1778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779for as_dir in $PATH
1780do
1781 IFS=$as_save_IFS
1782 test -z "$as_dir" && as_dir=.
1783 for ac_exec_ext in '' $ac_executable_extensions; do
1784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1785 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1786 ac_prog_rejected=yes
1787 continue
1788 fi
1789 ac_cv_prog_CC="cc"
1790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1791 break 2
1792 fi
1793done
1794done
1795
1796if test $ac_prog_rejected = yes; then
1797 # We found a bogon in the path, so make sure we never use it.
1798 set dummy $ac_cv_prog_CC
1799 shift
1800 if test $# != 0; then
1801 # We chose a different compiler from the bogus one.
1802 # However, it has the same basename, so the bogon will be chosen
1803 # first if we set CC to just the basename; use the full file name.
1804 shift
1805 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1806 fi
1807fi
1808fi
1809fi
1810CC=$ac_cv_prog_CC
1811if test -n "$CC"; then
1812 echo "$as_me:$LINENO: result: $CC" >&5
1813echo "${ECHO_T}$CC" >&6
1814else
1815 echo "$as_me:$LINENO: result: no" >&5
1816echo "${ECHO_T}no" >&6
1817fi
1818
1819fi
1820if test -z "$CC"; then
1821 if test -n "$ac_tool_prefix"; then
1822 for ac_prog in cl
1823 do
1824 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1825set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1826echo "$as_me:$LINENO: checking for $ac_word" >&5
1827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1828if test "${ac_cv_prog_CC+set}" = set; then
1829 echo $ECHO_N "(cached) $ECHO_C" >&6
1830else
1831 if test -n "$CC"; then
1832 ac_cv_prog_CC="$CC" # Let the user override the test.
1833else
1834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835for as_dir in $PATH
1836do
1837 IFS=$as_save_IFS
1838 test -z "$as_dir" && as_dir=.
1839 for ac_exec_ext in '' $ac_executable_extensions; do
1840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1841 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1843 break 2
1844 fi
1845done
1846done
1847
1848fi
1849fi
1850CC=$ac_cv_prog_CC
1851if test -n "$CC"; then
1852 echo "$as_me:$LINENO: result: $CC" >&5
1853echo "${ECHO_T}$CC" >&6
1854else
1855 echo "$as_me:$LINENO: result: no" >&5
1856echo "${ECHO_T}no" >&6
1857fi
1858
1859 test -n "$CC" && break
1860 done
1861fi
1862if test -z "$CC"; then
1863 ac_ct_CC=$CC
1864 for ac_prog in cl
1865do
1866 # Extract the first word of "$ac_prog", so it can be a program name with args.
1867set dummy $ac_prog; ac_word=$2
1868echo "$as_me:$LINENO: checking for $ac_word" >&5
1869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1870if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1871 echo $ECHO_N "(cached) $ECHO_C" >&6
1872else
1873 if test -n "$ac_ct_CC"; then
1874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1875else
1876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877for as_dir in $PATH
1878do
1879 IFS=$as_save_IFS
1880 test -z "$as_dir" && as_dir=.
1881 for ac_exec_ext in '' $ac_executable_extensions; do
1882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1883 ac_cv_prog_ac_ct_CC="$ac_prog"
1884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1885 break 2
1886 fi
1887done
1888done
1889
1890fi
1891fi
1892ac_ct_CC=$ac_cv_prog_ac_ct_CC
1893if test -n "$ac_ct_CC"; then
1894 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1895echo "${ECHO_T}$ac_ct_CC" >&6
1896else
1897 echo "$as_me:$LINENO: result: no" >&5
1898echo "${ECHO_T}no" >&6
1899fi
1900
1901 test -n "$ac_ct_CC" && break
1902done
1903
1904 CC=$ac_ct_CC
1905fi
1906
1907fi
1908
1909
7a283e07
RW
1910test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1911echo "$as_me: error: in \`$ac_pwd':" >&2;}
1912{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
42ecbf5e
DJ
1913See \`config.log' for more details." >&5
1914echo "$as_me: error: no acceptable C compiler found in \$PATH
1915See \`config.log' for more details." >&2;}
7a283e07 1916 { (exit 1); exit 1; }; }; }
42ecbf5e
DJ
1917
1918# Provide some information about the compiler.
1919echo "$as_me:$LINENO:" \
1920 "checking for C compiler version" >&5
1921ac_compiler=`set X $ac_compile; echo $2`
1922{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1923 (eval $ac_compiler --version </dev/null >&5) 2>&5
1924 ac_status=$?
1925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926 (exit $ac_status); }
1927{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1928 (eval $ac_compiler -v </dev/null >&5) 2>&5
1929 ac_status=$?
1930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1931 (exit $ac_status); }
1932{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1933 (eval $ac_compiler -V </dev/null >&5) 2>&5
1934 ac_status=$?
1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936 (exit $ac_status); }
1937
1938cat >conftest.$ac_ext <<_ACEOF
1939/* confdefs.h. */
1940_ACEOF
1941cat confdefs.h >>conftest.$ac_ext
1942cat >>conftest.$ac_ext <<_ACEOF
1943/* end confdefs.h. */
1944
1945int
1946main ()
1947{
1948
1949 ;
1950 return 0;
1951}
1952_ACEOF
1953ac_clean_files_save=$ac_clean_files
1954ac_clean_files="$ac_clean_files a.out a.exe b.out"
1955# Try to create an executable without -o first, disregard a.out.
1956# It will help us diagnose broken compilers, and finding out an intuition
1957# of exeext.
1958echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1959echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1960ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1961if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1962 (eval $ac_link_default) 2>&5
1963 ac_status=$?
1964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1965 (exit $ac_status); }; then
1966 # Find the output, starting from the most likely. This scheme is
1967# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1968# resort.
1969
1970# Be careful to initialize this variable, since it used to be cached.
1971# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1972ac_cv_exeext=
1973# b.out is created by i960 compilers.
1974for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1975do
1976 test -f "$ac_file" || continue
1977 case $ac_file in
1978 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1979 ;;
1980 conftest.$ac_ext )
1981 # This is the source file.
1982 ;;
1983 [ab].out )
1984 # We found the default executable, but exeext='' is most
1985 # certainly right.
1986 break;;
1987 *.* )
1988 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1989 # FIXME: I believe we export ac_cv_exeext for Libtool,
1990 # but it would be cool to find out if it's true. Does anybody
1991 # maintain Libtool? --akim.
1992 export ac_cv_exeext
1993 break;;
1994 * )
1995 break;;
1996 esac
1997done
1998else
1999 echo "$as_me: failed program was:" >&5
2000sed 's/^/| /' conftest.$ac_ext >&5
2001
7a283e07
RW
2002{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2003echo "$as_me: error: in \`$ac_pwd':" >&2;}
42ecbf5e
DJ
2004{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2005See \`config.log' for more details." >&5
2006echo "$as_me: error: C compiler cannot create executables
2007See \`config.log' for more details." >&2;}
7a283e07 2008 { (exit 77); exit 77; }; }; }
42ecbf5e
DJ
2009fi
2010
2011ac_exeext=$ac_cv_exeext
2012echo "$as_me:$LINENO: result: $ac_file" >&5
2013echo "${ECHO_T}$ac_file" >&6
2014
2015# Check the compiler produces executables we can run. If not, either
2016# the compiler is broken, or we cross compile.
2017echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2018echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2019# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2020# If not cross compiling, check that we can run a simple program.
2021if test "$cross_compiling" != yes; then
2022 if { ac_try='./$ac_file'
2023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2024 (eval $ac_try) 2>&5
2025 ac_status=$?
2026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027 (exit $ac_status); }; }; then
2028 cross_compiling=no
2029 else
2030 if test "$cross_compiling" = maybe; then
2031 cross_compiling=yes
2032 else
7a283e07
RW
2033 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2034echo "$as_me: error: in \`$ac_pwd':" >&2;}
2035{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
42ecbf5e
DJ
2036If you meant to cross compile, use \`--host'.
2037See \`config.log' for more details." >&5
2038echo "$as_me: error: cannot run C compiled programs.
2039If you meant to cross compile, use \`--host'.
2040See \`config.log' for more details." >&2;}
7a283e07 2041 { (exit 1); exit 1; }; }; }
42ecbf5e
DJ
2042 fi
2043 fi
2044fi
2045echo "$as_me:$LINENO: result: yes" >&5
2046echo "${ECHO_T}yes" >&6
2047
2048rm -f a.out a.exe conftest$ac_cv_exeext b.out
2049ac_clean_files=$ac_clean_files_save
2050# Check the compiler produces executables we can run. If not, either
2051# the compiler is broken, or we cross compile.
2052echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2053echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2054echo "$as_me:$LINENO: result: $cross_compiling" >&5
2055echo "${ECHO_T}$cross_compiling" >&6
2056
2057echo "$as_me:$LINENO: checking for suffix of executables" >&5
2058echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2060 (eval $ac_link) 2>&5
2061 ac_status=$?
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }; then
2064 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2065# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2066# work properly (i.e., refer to `conftest.exe'), while it won't with
2067# `rm'.
2068for ac_file in conftest.exe conftest conftest.*; do
2069 test -f "$ac_file" || continue
2070 case $ac_file in
2071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2072 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2073 export ac_cv_exeext
2074 break;;
2075 * ) break;;
2076 esac
2077done
2078else
7a283e07
RW
2079 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2080echo "$as_me: error: in \`$ac_pwd':" >&2;}
2081{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
42ecbf5e
DJ
2082See \`config.log' for more details." >&5
2083echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2084See \`config.log' for more details." >&2;}
7a283e07 2085 { (exit 1); exit 1; }; }; }
42ecbf5e
DJ
2086fi
2087
2088rm -f conftest$ac_cv_exeext
2089echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2090echo "${ECHO_T}$ac_cv_exeext" >&6
2091
2092rm -f conftest.$ac_ext
2093EXEEXT=$ac_cv_exeext
2094ac_exeext=$EXEEXT
2095echo "$as_me:$LINENO: checking for suffix of object files" >&5
2096echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2097if test "${ac_cv_objext+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2099else
2100 cat >conftest.$ac_ext <<_ACEOF
2101/* confdefs.h. */
2102_ACEOF
2103cat confdefs.h >>conftest.$ac_ext
2104cat >>conftest.$ac_ext <<_ACEOF
2105/* end confdefs.h. */
2106
2107int
2108main ()
2109{
2110
2111 ;
2112 return 0;
2113}
2114_ACEOF
2115rm -f conftest.o conftest.obj
2116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2117 (eval $ac_compile) 2>&5
2118 ac_status=$?
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }; then
2121 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2122 case $ac_file in
2123 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2124 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2125 break;;
2126 esac
2127done
2128else
2129 echo "$as_me: failed program was:" >&5
2130sed 's/^/| /' conftest.$ac_ext >&5
2131
7a283e07
RW
2132{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2133echo "$as_me: error: in \`$ac_pwd':" >&2;}
42ecbf5e
DJ
2134{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2135See \`config.log' for more details." >&5
2136echo "$as_me: error: cannot compute suffix of object files: cannot compile
2137See \`config.log' for more details." >&2;}
7a283e07 2138 { (exit 1); exit 1; }; }; }
42ecbf5e
DJ
2139fi
2140
2141rm -f conftest.$ac_cv_objext conftest.$ac_ext
2142fi
2143echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2144echo "${ECHO_T}$ac_cv_objext" >&6
2145OBJEXT=$ac_cv_objext
2146ac_objext=$OBJEXT
2147echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2148echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2149if test "${ac_cv_c_compiler_gnu+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
2151else
2152 cat >conftest.$ac_ext <<_ACEOF
2153/* confdefs.h. */
2154_ACEOF
2155cat confdefs.h >>conftest.$ac_ext
2156cat >>conftest.$ac_ext <<_ACEOF
2157/* end confdefs.h. */
2158
2159int
2160main ()
2161{
2162#ifndef __GNUC__
2163 choke me
2164#endif
2165
2166 ;
2167 return 0;
2168}
2169_ACEOF
2170rm -f conftest.$ac_objext
2171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2172 (eval $ac_compile) 2>conftest.er1
2173 ac_status=$?
2174 grep -v '^ *+' conftest.er1 >conftest.err
2175 rm -f conftest.er1
2176 cat conftest.err >&5
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); } &&
7357c5b6
AM
2179 { ac_try='test -z "$ac_c_werror_flag"
2180 || test ! -s conftest.err'
42ecbf5e
DJ
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 (eval $ac_try) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; } &&
2186 { ac_try='test -s conftest.$ac_objext'
2187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188 (eval $ac_try) 2>&5
2189 ac_status=$?
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; }; then
2192 ac_compiler_gnu=yes
2193else
2194 echo "$as_me: failed program was:" >&5
2195sed 's/^/| /' conftest.$ac_ext >&5
2196
2197ac_compiler_gnu=no
2198fi
2199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2200ac_cv_c_compiler_gnu=$ac_compiler_gnu
2201
2202fi
2203echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2204echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2205GCC=`test $ac_compiler_gnu = yes && echo yes`
2206ac_test_CFLAGS=${CFLAGS+set}
2207ac_save_CFLAGS=$CFLAGS
2208CFLAGS="-g"
2209echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2210echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2211if test "${ac_cv_prog_cc_g+set}" = set; then
2212 echo $ECHO_N "(cached) $ECHO_C" >&6
2213else
2214 cat >conftest.$ac_ext <<_ACEOF
2215/* confdefs.h. */
2216_ACEOF
2217cat confdefs.h >>conftest.$ac_ext
2218cat >>conftest.$ac_ext <<_ACEOF
2219/* end confdefs.h. */
2220
2221int
2222main ()
2223{
2224
2225 ;
2226 return 0;
2227}
2228_ACEOF
2229rm -f conftest.$ac_objext
2230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2231 (eval $ac_compile) 2>conftest.er1
2232 ac_status=$?
2233 grep -v '^ *+' conftest.er1 >conftest.err
2234 rm -f conftest.er1
2235 cat conftest.err >&5
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); } &&
7357c5b6
AM
2238 { ac_try='test -z "$ac_c_werror_flag"
2239 || test ! -s conftest.err'
42ecbf5e
DJ
2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241 (eval $ac_try) 2>&5
2242 ac_status=$?
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; } &&
2245 { ac_try='test -s conftest.$ac_objext'
2246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2247 (eval $ac_try) 2>&5
2248 ac_status=$?
2249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250 (exit $ac_status); }; }; then
2251 ac_cv_prog_cc_g=yes
2252else
2253 echo "$as_me: failed program was:" >&5
2254sed 's/^/| /' conftest.$ac_ext >&5
2255
2256ac_cv_prog_cc_g=no
2257fi
2258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2259fi
2260echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2261echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2262if test "$ac_test_CFLAGS" = set; then
2263 CFLAGS=$ac_save_CFLAGS
2264elif test $ac_cv_prog_cc_g = yes; then
2265 if test "$GCC" = yes; then
2266 CFLAGS="-g -O2"
2267 else
2268 CFLAGS="-g"
2269 fi
2270else
2271 if test "$GCC" = yes; then
2272 CFLAGS="-O2"
2273 else
2274 CFLAGS=
2275 fi
2276fi
2277echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2278echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2279if test "${ac_cv_prog_cc_stdc+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2281else
2282 ac_cv_prog_cc_stdc=no
2283ac_save_CC=$CC
2284cat >conftest.$ac_ext <<_ACEOF
2285/* confdefs.h. */
2286_ACEOF
2287cat confdefs.h >>conftest.$ac_ext
2288cat >>conftest.$ac_ext <<_ACEOF
2289/* end confdefs.h. */
2290#include <stdarg.h>
2291#include <stdio.h>
2292#include <sys/types.h>
2293#include <sys/stat.h>
2294/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2295struct buf { int x; };
2296FILE * (*rcsopen) (struct buf *, struct stat *, int);
2297static char *e (p, i)
2298 char **p;
2299 int i;
2300{
2301 return p[i];
2302}
2303static char *f (char * (*g) (char **, int), char **p, ...)
2304{
2305 char *s;
2306 va_list v;
2307 va_start (v,p);
2308 s = g (p, va_arg (v,int));
2309 va_end (v);
2310 return s;
2311}
2312
2313/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2314 function prototypes and stuff, but not '\xHH' hex character constants.
2315 These don't provoke an error unfortunately, instead are silently treated
2316 as 'x'. The following induces an error, until -std1 is added to get
2317 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2318 array size at least. It's necessary to write '\x00'==0 to get something
2319 that's true only with -std1. */
2320int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2321
2322int test (int i, double x);
2323struct s1 {int (*f) (int a);};
2324struct s2 {int (*f) (double a);};
2325int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2326int argc;
2327char **argv;
2328int
2329main ()
2330{
2331return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2332 ;
2333 return 0;
2334}
2335_ACEOF
2336# Don't try gcc -ansi; that turns off useful extensions and
2337# breaks some systems' header files.
2338# AIX -qlanglvl=ansi
2339# Ultrix and OSF/1 -std1
2340# HP-UX 10.20 and later -Ae
2341# HP-UX older versions -Aa -D_HPUX_SOURCE
2342# SVR4 -Xc -D__EXTENSIONS__
2343for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2344do
2345 CC="$ac_save_CC $ac_arg"
2346 rm -f conftest.$ac_objext
2347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2348 (eval $ac_compile) 2>conftest.er1
2349 ac_status=$?
2350 grep -v '^ *+' conftest.er1 >conftest.err
2351 rm -f conftest.er1
2352 cat conftest.err >&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); } &&
7357c5b6
AM
2355 { ac_try='test -z "$ac_c_werror_flag"
2356 || test ! -s conftest.err'
42ecbf5e
DJ
2357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358 (eval $ac_try) 2>&5
2359 ac_status=$?
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }; } &&
2362 { ac_try='test -s conftest.$ac_objext'
2363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364 (eval $ac_try) 2>&5
2365 ac_status=$?
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }; }; then
2368 ac_cv_prog_cc_stdc=$ac_arg
2369break
2370else
2371 echo "$as_me: failed program was:" >&5
2372sed 's/^/| /' conftest.$ac_ext >&5
2373
2374fi
2375rm -f conftest.err conftest.$ac_objext
2376done
2377rm -f conftest.$ac_ext conftest.$ac_objext
2378CC=$ac_save_CC
2379
2380fi
2381
2382case "x$ac_cv_prog_cc_stdc" in
2383 x|xno)
2384 echo "$as_me:$LINENO: result: none needed" >&5
2385echo "${ECHO_T}none needed" >&6 ;;
2386 *)
2387 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2388echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2389 CC="$CC $ac_cv_prog_cc_stdc" ;;
2390esac
2391
2392# Some people use a C++ compiler to compile C. Since we use `exit',
2393# in C++ we need to declare it. In case someone uses the same compiler
2394# for both compiling C and C++ we need to have the C++ compiler decide
2395# the declaration of exit, since it's the most demanding environment.
2396cat >conftest.$ac_ext <<_ACEOF
2397#ifndef __cplusplus
2398 choke me
2399#endif
2400_ACEOF
2401rm -f conftest.$ac_objext
2402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2403 (eval $ac_compile) 2>conftest.er1
2404 ac_status=$?
2405 grep -v '^ *+' conftest.er1 >conftest.err
2406 rm -f conftest.er1
2407 cat conftest.err >&5
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); } &&
7357c5b6
AM
2410 { ac_try='test -z "$ac_c_werror_flag"
2411 || test ! -s conftest.err'
42ecbf5e
DJ
2412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413 (eval $ac_try) 2>&5
2414 ac_status=$?
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; } &&
2417 { ac_try='test -s conftest.$ac_objext'
2418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419 (eval $ac_try) 2>&5
2420 ac_status=$?
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }; }; then
2423 for ac_declaration in \
2424 '' \
2425 'extern "C" void std::exit (int) throw (); using std::exit;' \
2426 'extern "C" void std::exit (int); using std::exit;' \
2427 'extern "C" void exit (int) throw ();' \
2428 'extern "C" void exit (int);' \
2429 'void exit (int);'
2430do
2431 cat >conftest.$ac_ext <<_ACEOF
2432/* confdefs.h. */
2433_ACEOF
2434cat confdefs.h >>conftest.$ac_ext
2435cat >>conftest.$ac_ext <<_ACEOF
2436/* end confdefs.h. */
2437$ac_declaration
2438#include <stdlib.h>
2439int
2440main ()
2441{
2442exit (42);
2443 ;
2444 return 0;
2445}
2446_ACEOF
2447rm -f conftest.$ac_objext
2448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2449 (eval $ac_compile) 2>conftest.er1
2450 ac_status=$?
2451 grep -v '^ *+' conftest.er1 >conftest.err
2452 rm -f conftest.er1
2453 cat conftest.err >&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); } &&
7357c5b6
AM
2456 { ac_try='test -z "$ac_c_werror_flag"
2457 || test ! -s conftest.err'
42ecbf5e
DJ
2458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459 (eval $ac_try) 2>&5
2460 ac_status=$?
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); }; } &&
2463 { ac_try='test -s conftest.$ac_objext'
2464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465 (eval $ac_try) 2>&5
2466 ac_status=$?
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; }; then
2469 :
2470else
2471 echo "$as_me: failed program was:" >&5
2472sed 's/^/| /' conftest.$ac_ext >&5
2473
2474continue
2475fi
2476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2477 cat >conftest.$ac_ext <<_ACEOF
2478/* confdefs.h. */
2479_ACEOF
2480cat confdefs.h >>conftest.$ac_ext
2481cat >>conftest.$ac_ext <<_ACEOF
2482/* end confdefs.h. */
2483$ac_declaration
2484int
2485main ()
2486{
2487exit (42);
2488 ;
2489 return 0;
2490}
2491_ACEOF
2492rm -f conftest.$ac_objext
2493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2494 (eval $ac_compile) 2>conftest.er1
2495 ac_status=$?
2496 grep -v '^ *+' conftest.er1 >conftest.err
2497 rm -f conftest.er1
2498 cat conftest.err >&5
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); } &&
7357c5b6
AM
2501 { ac_try='test -z "$ac_c_werror_flag"
2502 || test ! -s conftest.err'
42ecbf5e
DJ
2503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504 (eval $ac_try) 2>&5
2505 ac_status=$?
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }; } &&
2508 { ac_try='test -s conftest.$ac_objext'
2509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510 (eval $ac_try) 2>&5
2511 ac_status=$?
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; }; then
2514 break
2515else
2516 echo "$as_me: failed program was:" >&5
2517sed 's/^/| /' conftest.$ac_ext >&5
2518
2519fi
2520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2521done
2522rm -f conftest*
2523if test -n "$ac_declaration"; then
2524 echo '#ifdef __cplusplus' >>confdefs.h
2525 echo $ac_declaration >>confdefs.h
2526 echo '#endif' >>confdefs.h
2527fi
2528
2529else
2530 echo "$as_me: failed program was:" >&5
2531sed 's/^/| /' conftest.$ac_ext >&5
2532
2533fi
2534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2535ac_ext=c
2536ac_cpp='$CPP $CPPFLAGS'
2537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2539ac_compiler_gnu=$ac_cv_c_compiler_gnu
2540
2541
2542echo "$as_me:$LINENO: checking for library containing strerror" >&5
2543echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2544if test "${ac_cv_search_strerror+set}" = set; then
2545 echo $ECHO_N "(cached) $ECHO_C" >&6
2546else
2547 ac_func_search_save_LIBS=$LIBS
2548ac_cv_search_strerror=no
2549cat >conftest.$ac_ext <<_ACEOF
2550/* confdefs.h. */
2551_ACEOF
2552cat confdefs.h >>conftest.$ac_ext
2553cat >>conftest.$ac_ext <<_ACEOF
2554/* end confdefs.h. */
2555
2556/* Override any gcc2 internal prototype to avoid an error. */
2557#ifdef __cplusplus
2558extern "C"
2559#endif
2560/* We use char because int might match the return type of a gcc2
2561 builtin and then its argument prototype would still apply. */
2562char strerror ();
2563int
2564main ()
2565{
2566strerror ();
2567 ;
2568 return 0;
2569}
2570_ACEOF
2571rm -f conftest.$ac_objext conftest$ac_exeext
2572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2573 (eval $ac_link) 2>conftest.er1
2574 ac_status=$?
2575 grep -v '^ *+' conftest.er1 >conftest.err
2576 rm -f conftest.er1
2577 cat conftest.err >&5
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); } &&
7357c5b6
AM
2580 { ac_try='test -z "$ac_c_werror_flag"
2581 || test ! -s conftest.err'
42ecbf5e
DJ
2582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583 (eval $ac_try) 2>&5
2584 ac_status=$?
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; } &&
2587 { ac_try='test -s conftest$ac_exeext'
2588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589 (eval $ac_try) 2>&5
2590 ac_status=$?
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; }; then
2593 ac_cv_search_strerror="none required"
2594else
2595 echo "$as_me: failed program was:" >&5
2596sed 's/^/| /' conftest.$ac_ext >&5
2597
2598fi
2599rm -f conftest.err conftest.$ac_objext \
2600 conftest$ac_exeext conftest.$ac_ext
2601if test "$ac_cv_search_strerror" = no; then
2602 for ac_lib in cposix; do
2603 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2604 cat >conftest.$ac_ext <<_ACEOF
2605/* confdefs.h. */
2606_ACEOF
2607cat confdefs.h >>conftest.$ac_ext
2608cat >>conftest.$ac_ext <<_ACEOF
2609/* end confdefs.h. */
2610
2611/* Override any gcc2 internal prototype to avoid an error. */
2612#ifdef __cplusplus
2613extern "C"
2614#endif
2615/* We use char because int might match the return type of a gcc2
2616 builtin and then its argument prototype would still apply. */
2617char strerror ();
2618int
2619main ()
2620{
2621strerror ();
2622 ;
2623 return 0;
2624}
2625_ACEOF
2626rm -f conftest.$ac_objext conftest$ac_exeext
2627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2628 (eval $ac_link) 2>conftest.er1
2629 ac_status=$?
2630 grep -v '^ *+' conftest.er1 >conftest.err
2631 rm -f conftest.er1
2632 cat conftest.err >&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); } &&
7357c5b6
AM
2635 { ac_try='test -z "$ac_c_werror_flag"
2636 || test ! -s conftest.err'
42ecbf5e
DJ
2637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638 (eval $ac_try) 2>&5
2639 ac_status=$?
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }; } &&
2642 { ac_try='test -s conftest$ac_exeext'
2643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644 (eval $ac_try) 2>&5
2645 ac_status=$?
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); }; }; then
2648 ac_cv_search_strerror="-l$ac_lib"
2649break
2650else
2651 echo "$as_me: failed program was:" >&5
2652sed 's/^/| /' conftest.$ac_ext >&5
2653
2654fi
2655rm -f conftest.err conftest.$ac_objext \
2656 conftest$ac_exeext conftest.$ac_ext
2657 done
2658fi
2659LIBS=$ac_func_search_save_LIBS
2660fi
2661echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2662echo "${ECHO_T}$ac_cv_search_strerror" >&6
2663if test "$ac_cv_search_strerror" != no; then
2664 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2665
2666fi
2667
2668
2669BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2670am__api_version="1.9"
2671# Find a good install program. We prefer a C program (faster),
2672# so one script is as good as another. But avoid the broken or
2673# incompatible versions:
2674# SysV /etc/install, /usr/sbin/install
2675# SunOS /usr/etc/install
2676# IRIX /sbin/install
2677# AIX /bin/install
2678# AmigaOS /C/install, which installs bootblocks on floppy discs
2679# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2680# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2681# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2682# OS/2's system install, which has a completely different semantic
2683# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2684# Reject install programs that cannot install multiple files.
42ecbf5e
DJ
2685echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2686echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2687if test -z "$INSTALL"; then
2688if test "${ac_cv_path_install+set}" = set; then
2689 echo $ECHO_N "(cached) $ECHO_C" >&6
2690else
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692for as_dir in $PATH
2693do
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
2696 # Account for people who put trailing slashes in PATH elements.
2697case $as_dir/ in
2698 ./ | .// | /cC/* | \
2699 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2700 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2701 /usr/ucb/* ) ;;
2702 *)
2703 # OSF1 and SCO ODT 3.0 have their own names for install.
2704 # Don't use installbsd from OSF since it installs stuff as root
2705 # by default.
2706 for ac_prog in ginstall scoinst install; do
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2709 if test $ac_prog = install &&
2710 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2711 # AIX install. It has an incompatible calling convention.
2712 :
42ecbf5e
DJ
2713 elif test $ac_prog = install &&
2714 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2715 # program-specific install script used by HP pwplus--don't use.
2716 :
252b5132 2717 else
58c85be7
RW
2718 rm -rf conftest.one conftest.two conftest.dir
2719 echo one > conftest.one
2720 echo two > conftest.two
2721 mkdir conftest.dir
2722 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2723 test -s conftest.one && test -s conftest.two &&
2724 test -s conftest.dir/conftest.one &&
2725 test -s conftest.dir/conftest.two
2726 then
2727 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2728 break 3
2729 fi
252b5132
RH
2730 fi
2731 fi
d15b04bd 2732 done
42ecbf5e
DJ
2733 done
2734 ;;
2735esac
2736done
2737
58c85be7 2738rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
2739
2740fi
2741 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 2742 INSTALL=$ac_cv_path_install
252b5132 2743 else
58c85be7
RW
2744 # As a last resort, use the slow shell script. Don't cache a
2745 # value for INSTALL within a source directory, because that will
252b5132 2746 # break other packages using the cache if that directory is
58c85be7 2747 # removed, or if the value is a relative name.
42ecbf5e 2748 INSTALL=$ac_install_sh
252b5132
RH
2749 fi
2750fi
42ecbf5e
DJ
2751echo "$as_me:$LINENO: result: $INSTALL" >&5
2752echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2753
2754# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2755# It thinks the first close brace ends the variable substitution.
2756test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2757
42ecbf5e 2758test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2759
2760test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2761
42ecbf5e
DJ
2762echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2763echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2764# Just in case
2765sleep 1
42ecbf5e 2766echo timestamp > conftest.file
252b5132
RH
2767# Do `set' in a subshell so we don't clobber the current shell's
2768# arguments. Must try -L first in case configure is actually a
2769# symlink; some systems play weird games with the mod time of symlinks
2770# (eg FreeBSD returns the mod time of the symlink's containing
2771# directory).
2772if (
42ecbf5e 2773 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2774 if test "$*" = "X"; then
2775 # -L didn't work.
42ecbf5e 2776 set X `ls -t $srcdir/configure conftest.file`
252b5132 2777 fi
42ecbf5e
DJ
2778 rm -f conftest.file
2779 if test "$*" != "X $srcdir/configure conftest.file" \
2780 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2781
2782 # If neither matched, then we have a broken ls. This can happen
2783 # if, for instance, CONFIG_SHELL is bash and it inherits a
2784 # broken ls alias from the environment. This has actually
2785 # happened. Such a system could not be considered "sane".
42ecbf5e
DJ
2786 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2787alias in your environment" >&5
2788echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2789alias in your environment" >&2;}
2790 { (exit 1); exit 1; }; }
252b5132
RH
2791 fi
2792
42ecbf5e 2793 test "$2" = conftest.file
252b5132
RH
2794 )
2795then
2796 # Ok.
2797 :
2798else
42ecbf5e
DJ
2799 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2800Check your system clock" >&5
2801echo "$as_me: error: newly created file is older than distributed files!
2802Check your system clock" >&2;}
2803 { (exit 1); exit 1; }; }
2804fi
2805echo "$as_me:$LINENO: result: yes" >&5
2806echo "${ECHO_T}yes" >&6
2807test "$program_prefix" != NONE &&
2808 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2809# Use a double $ so make ignores it.
2810test "$program_suffix" != NONE &&
2811 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2812# Double any \ or $. echo might interpret backslashes.
2813# By default was `s,x,x', remove it if useless.
2814cat <<\_ACEOF >conftest.sed
2815s/[\\$]/&&/g;s/;s,x,x,$//
2816_ACEOF
2817program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2818rm conftest.sed
2819
2820# expand $ac_aux_dir to an absolute path
2821am_aux_dir=`cd $ac_aux_dir && pwd`
2822
2823test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2824# Use eval to expand $SHELL
2825if eval "$MISSING --run true"; then
2826 am_missing_run="$MISSING --run "
2827else
2828 am_missing_run=
2829 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2830echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2831fi
2832
2833if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2834 # We used to keeping the `.' as first argument, in order to
2835 # allow $(mkdir_p) to be used without argument. As in
2836 # $(mkdir_p) $(somedir)
2837 # where $(somedir) is conditionally defined. However this is wrong
2838 # for two reasons:
2839 # 1. if the package is installed by a user who cannot write `.'
2840 # make install will fail,
2841 # 2. the above comment should most certainly read
2842 # $(mkdir_p) $(DESTDIR)$(somedir)
2843 # so it does not work when $(somedir) is undefined and
2844 # $(DESTDIR) is not.
2845 # To support the latter case, we have to write
2846 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2847 # so the `.' trick is pointless.
2848 mkdir_p='mkdir -p --'
2849else
2850 # On NextStep and OpenStep, the `mkdir' command does not
2851 # recognize any option. It will interpret all options as
2852 # directories to create, and then abort because `.' already
2853 # exists.
2854 for d in ./-p ./--version;
2855 do
2856 test -d $d && rmdir $d
2857 done
2858 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2859 if test -f "$ac_aux_dir/mkinstalldirs"; then
2860 mkdir_p='$(mkinstalldirs)'
2861 else
2862 mkdir_p='$(install_sh) -d'
2863 fi
2864fi
2865
2866for ac_prog in gawk mawk nawk awk
2867do
2868 # Extract the first word of "$ac_prog", so it can be a program name with args.
2869set dummy $ac_prog; ac_word=$2
2870echo "$as_me:$LINENO: checking for $ac_word" >&5
2871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2872if test "${ac_cv_prog_AWK+set}" = set; then
2873 echo $ECHO_N "(cached) $ECHO_C" >&6
2874else
2875 if test -n "$AWK"; then
2876 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2877else
2878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879for as_dir in $PATH
2880do
2881 IFS=$as_save_IFS
2882 test -z "$as_dir" && as_dir=.
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2885 ac_cv_prog_AWK="$ac_prog"
2886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2887 break 2
2888 fi
2889done
2890done
2891
2892fi
2893fi
2894AWK=$ac_cv_prog_AWK
2895if test -n "$AWK"; then
2896 echo "$as_me:$LINENO: result: $AWK" >&5
2897echo "${ECHO_T}$AWK" >&6
2898else
2899 echo "$as_me:$LINENO: result: no" >&5
2900echo "${ECHO_T}no" >&6
2901fi
2902
2903 test -n "$AWK" && break
2904done
2905
2906echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2907echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2908set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2909if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2911else
2912 cat >conftest.make <<\_ACEOF
2913all:
2914 @echo 'ac_maketemp="$(MAKE)"'
2915_ACEOF
2916# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2917eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2918if test -n "$ac_maketemp"; then
2919 eval ac_cv_prog_make_${ac_make}_set=yes
2920else
2921 eval ac_cv_prog_make_${ac_make}_set=no
2922fi
2923rm -f conftest.make
2924fi
2925if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2926 echo "$as_me:$LINENO: result: yes" >&5
2927echo "${ECHO_T}yes" >&6
2928 SET_MAKE=
2929else
2930 echo "$as_me:$LINENO: result: no" >&5
2931echo "${ECHO_T}no" >&6
2932 SET_MAKE="MAKE=${MAKE-make}"
2933fi
2934
2935rm -rf .tst 2>/dev/null
2936mkdir .tst 2>/dev/null
2937if test -d .tst; then
2938 am__leading_dot=.
2939else
2940 am__leading_dot=_
2941fi
2942rmdir .tst 2>/dev/null
2943
2944DEPDIR="${am__leading_dot}deps"
2945
2946 ac_config_commands="$ac_config_commands depfiles"
2947
2948
2949am_make=${MAKE-make}
2950cat > confinc << 'END'
2951am__doit:
2952 @echo done
2953.PHONY: am__doit
2954END
2955# If we don't find an include directive, just comment out the code.
2956echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2957echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2958am__include="#"
2959am__quote=
2960_am_result=none
2961# First try GNU make style include.
2962echo "include confinc" > confmf
2963# We grep out `Entering directory' and `Leaving directory'
2964# messages which can occur if `w' ends up in MAKEFLAGS.
2965# In particular we don't look at `^make:' because GNU make might
2966# be invoked under some other name (usually "gmake"), in which
2967# case it prints its new name instead of `make'.
2968if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2969 am__include=include
2970 am__quote=
2971 _am_result=GNU
2972fi
2973# Now try BSD make style include.
2974if test "$am__include" = "#"; then
2975 echo '.include "confinc"' > confmf
2976 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2977 am__include=.include
2978 am__quote="\""
2979 _am_result=BSD
2980 fi
2981fi
2982
2983
2984echo "$as_me:$LINENO: result: $_am_result" >&5
2985echo "${ECHO_T}$_am_result" >&6
2986rm -f confinc confmf
2987
2988# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2989if test "${enable_dependency_tracking+set}" = set; then
2990 enableval="$enable_dependency_tracking"
2991
2992fi;
2993if test "x$enable_dependency_tracking" != xno; then
2994 am_depcomp="$ac_aux_dir/depcomp"
2995 AMDEPBACKSLASH='\'
2996fi
2997
2998
2999if test "x$enable_dependency_tracking" != xno; then
3000 AMDEP_TRUE=
3001 AMDEP_FALSE='#'
3002else
3003 AMDEP_TRUE='#'
3004 AMDEP_FALSE=
3005fi
3006
3007
3008
3009# test to see if srcdir already configured
3010if test "`cd $srcdir && pwd`" != "`pwd`" &&
3011 test -f $srcdir/config.status; then
3012 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3013echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3014 { (exit 1); exit 1; }; }
3015fi
3016
3017# test whether we have cygpath
3018if test -z "$CYGPATH_W"; then
3019 if (cygpath --version) >/dev/null 2>/dev/null; then
3020 CYGPATH_W='cygpath -w'
3021 else
3022 CYGPATH_W=echo
3023 fi
3024fi
3025
3026
3027# Define the identity of the package.
3028 PACKAGE=binutils
3029 VERSION=${BFD_VERSION}
3030
3031
3032cat >>confdefs.h <<_ACEOF
3033#define PACKAGE "$PACKAGE"
3034_ACEOF
3035
3036
3037cat >>confdefs.h <<_ACEOF
3038#define VERSION "$VERSION"
3039_ACEOF
3040
3041# Some tools Automake needs.
3042
3043ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3044
3045
3046AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3047
3048
3049AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3050
3051
3052AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3053
3054
3055MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3056
3057install_sh=${install_sh-"$am_aux_dir/install-sh"}
3058
3059# Installed binaries are usually stripped using `strip' when the user
3060# run `make install-strip'. However `strip' might not be the right
3061# tool to use in cross-compilation environments, therefore Automake
3062# will honor the `STRIP' environment variable to overrule this program.
3063if test "$cross_compiling" != no; then
3064 if test -n "$ac_tool_prefix"; then
3065 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3066set dummy ${ac_tool_prefix}strip; ac_word=$2
3067echo "$as_me:$LINENO: checking for $ac_word" >&5
3068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3069if test "${ac_cv_prog_STRIP+set}" = set; then
3070 echo $ECHO_N "(cached) $ECHO_C" >&6
3071else
3072 if test -n "$STRIP"; then
3073 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3074else
3075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076for as_dir in $PATH
3077do
3078 IFS=$as_save_IFS
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3082 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 break 2
3085 fi
3086done
3087done
3088
252b5132 3089fi
42ecbf5e
DJ
3090fi
3091STRIP=$ac_cv_prog_STRIP
3092if test -n "$STRIP"; then
3093 echo "$as_me:$LINENO: result: $STRIP" >&5
3094echo "${ECHO_T}$STRIP" >&6
d15b04bd 3095else
42ecbf5e
DJ
3096 echo "$as_me:$LINENO: result: no" >&5
3097echo "${ECHO_T}no" >&6
d15b04bd 3098fi
d15b04bd 3099
42ecbf5e
DJ
3100fi
3101if test -z "$ac_cv_prog_STRIP"; then
3102 ac_ct_STRIP=$STRIP
3103 # Extract the first word of "strip", so it can be a program name with args.
3104set dummy strip; ac_word=$2
3105echo "$as_me:$LINENO: checking for $ac_word" >&5
3106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3107if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
d15b04bd 3109else
42ecbf5e
DJ
3110 if test -n "$ac_ct_STRIP"; then
3111 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
252b5132 3112else
42ecbf5e
DJ
3113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114for as_dir in $PATH
3115do
3116 IFS=$as_save_IFS
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3120 ac_cv_prog_ac_ct_STRIP="strip"
3121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 break 2
3123 fi
3124done
3125done
3126
3127 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
252b5132 3128fi
252b5132 3129fi
42ecbf5e
DJ
3130ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3131if test -n "$ac_ct_STRIP"; then
3132 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3133echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 3134else
42ecbf5e
DJ
3135 echo "$as_me:$LINENO: result: no" >&5
3136echo "${ECHO_T}no" >&6
252b5132
RH
3137fi
3138
42ecbf5e
DJ
3139 STRIP=$ac_ct_STRIP
3140else
3141 STRIP="$ac_cv_prog_STRIP"
3142fi
252b5132 3143
42ecbf5e
DJ
3144fi
3145INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
252b5132 3146
42ecbf5e
DJ
3147# We need awk for the "check" target. The system "awk" is bad on
3148# some platforms.
3149# Always define AMTAR for backward compatibility.
252b5132 3150
42ecbf5e 3151AMTAR=${AMTAR-"${am_missing_run}tar"}
252b5132 3152
42ecbf5e 3153am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
252b5132
RH
3154
3155
3156
252b5132 3157
42ecbf5e
DJ
3158depcc="$CC" am_compiler_list=
3159
3160echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3161echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3162if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3163 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3164else
42ecbf5e
DJ
3165 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3166 # We make a subdir and do the tests there. Otherwise we can end up
3167 # making bogus files that we don't know about and never remove. For
3168 # instance it was reported that on HP-UX the gcc test will end up
3169 # making a dummy file named `D' -- because `-MD' means `put the output
3170 # in D'.
3171 mkdir conftest.dir
3172 # Copy depcomp to subdir because otherwise we won't find it if we're
3173 # using a relative directory.
3174 cp "$am_depcomp" conftest.dir
3175 cd conftest.dir
3176 # We will build objects and dependencies in a subdirectory because
3177 # it helps to detect inapplicable dependency modes. For instance
3178 # both Tru64's cc and ICC support -MD to output dependencies as a
3179 # side effect of compilation, but ICC will put the dependencies in
3180 # the current directory while Tru64 will put them in the object
3181 # directory.
3182 mkdir sub
252b5132 3183
42ecbf5e
DJ
3184 am_cv_CC_dependencies_compiler_type=none
3185 if test "$am_compiler_list" = ""; then
3186 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3187 fi
3188 for depmode in $am_compiler_list; do
3189 # Setup a source with many dependencies, because some compilers
3190 # like to wrap large dependency lists on column 80 (with \), and
3191 # we should not choose a depcomp mode which is confused by this.
3192 #
3193 # We need to recreate these files for each test, as the compiler may
3194 # overwrite some of them when testing with obscure command lines.
3195 # This happens at least with the AIX C compiler.
3196 : > sub/conftest.c
3197 for i in 1 2 3 4 5 6; do
3198 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3199 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3200 # Solaris 8's {/usr,}/bin/sh.
3201 touch sub/conftst$i.h
3202 done
3203 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3204
3205 case $depmode in
3206 nosideeffect)
3207 # after this tag, mechanisms are not by side-effect, so they'll
3208 # only be used when explicitly requested
3209 if test "x$enable_dependency_tracking" = xyes; then
3210 continue
3211 else
3212 break
3213 fi
3214 ;;
3215 none) break ;;
3216 esac
3217 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3218 # mode. It turns out that the SunPro C++ compiler does not properly
3219 # handle `-M -o', and we need to detect this.
3220 if depmode=$depmode \
3221 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3222 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3223 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3224 >/dev/null 2>conftest.err &&
3225 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3226 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3227 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3228 # icc doesn't choke on unknown options, it will just issue warnings
3229 # or remarks (even with -Werror). So we grep stderr for any message
3230 # that says an option was ignored or not supported.
3231 # When given -MP, icc 7.0 and 7.1 complain thusly:
3232 # icc: Command line warning: ignoring option '-M'; no argument required
3233 # The diagnosis changed in icc 8.0:
3234 # icc: Command line remark: option '-MP' not supported
3235 if (grep 'ignoring option' conftest.err ||
3236 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3237 am_cv_CC_dependencies_compiler_type=$depmode
3238 break
3239 fi
3240 fi
3241 done
3242
3243 cd ..
3244 rm -rf conftest.dir
252b5132 3245else
42ecbf5e 3246 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3247fi
3248
252b5132 3249fi
42ecbf5e
DJ
3250echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3251echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3252CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3253
3254
252b5132 3255
42ecbf5e
DJ
3256if
3257 test "x$enable_dependency_tracking" != xno \
3258 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3259 am__fastdepCC_TRUE=
3260 am__fastdepCC_FALSE='#'
252b5132 3261else
42ecbf5e
DJ
3262 am__fastdepCC_TRUE='#'
3263 am__fastdepCC_FALSE=
252b5132
RH
3264fi
3265
3266
3267
42ecbf5e 3268
d45dc31f
SE
3269ac_ext=c
3270ac_cpp='$CPP $CPPFLAGS'
3271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3273ac_compiler_gnu=$ac_cv_c_compiler_gnu
3274if test -n "$ac_tool_prefix"; then
3275 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3276set dummy ${ac_tool_prefix}gcc; ac_word=$2
3277echo "$as_me:$LINENO: checking for $ac_word" >&5
3278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3279if test "${ac_cv_prog_CC+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3281else
d45dc31f
SE
3282 if test -n "$CC"; then
3283 ac_cv_prog_CC="$CC" # Let the user override the test.
1a09a22c 3284else
d45dc31f
SE
3285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286for as_dir in $PATH
3287do
3288 IFS=$as_save_IFS
3289 test -z "$as_dir" && as_dir=.
3290 for ac_exec_ext in '' $ac_executable_extensions; do
3291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3292 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3294 break 2
3295 fi
3296done
3297done
ceae3e33 3298
d45dc31f
SE
3299fi
3300fi
3301CC=$ac_cv_prog_CC
3302if test -n "$CC"; then
3303 echo "$as_me:$LINENO: result: $CC" >&5
3304echo "${ECHO_T}$CC" >&6
252b5132 3305else
d45dc31f
SE
3306 echo "$as_me:$LINENO: result: no" >&5
3307echo "${ECHO_T}no" >&6
252b5132 3308fi
d45dc31f
SE
3309
3310fi
3311if test -z "$ac_cv_prog_CC"; then
3312 ac_ct_CC=$CC
3313 # Extract the first word of "gcc", so it can be a program name with args.
3314set dummy gcc; ac_word=$2
3315echo "$as_me:$LINENO: checking for $ac_word" >&5
3316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3317if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
42ecbf5e 3318 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3319else
d45dc31f
SE
3320 if test -n "$ac_ct_CC"; then
3321 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3322else
d45dc31f
SE
3323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324for as_dir in $PATH
3325do
3326 IFS=$as_save_IFS
3327 test -z "$as_dir" && as_dir=.
3328 for ac_exec_ext in '' $ac_executable_extensions; do
3329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3330 ac_cv_prog_ac_ct_CC="gcc"
3331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3332 break 2
3333 fi
3334done
3335done
3336
252b5132
RH
3337fi
3338fi
d45dc31f
SE
3339ac_ct_CC=$ac_cv_prog_ac_ct_CC
3340if test -n "$ac_ct_CC"; then
3341 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3342echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 3343else
42ecbf5e
DJ
3344 echo "$as_me:$LINENO: result: no" >&5
3345echo "${ECHO_T}no" >&6
252b5132 3346fi
d45dc31f
SE
3347
3348 CC=$ac_ct_CC
3349else
3350 CC="$ac_cv_prog_CC"
3351fi
3352
3353if test -z "$CC"; then
3354 if test -n "$ac_tool_prefix"; then
3355 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3356set dummy ${ac_tool_prefix}cc; ac_word=$2
3357echo "$as_me:$LINENO: checking for $ac_word" >&5
3358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3359if test "${ac_cv_prog_CC+set}" = set; then
42ecbf5e 3360 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3361else
d45dc31f
SE
3362 if test -n "$CC"; then
3363 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3364else
d45dc31f
SE
3365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366for as_dir in $PATH
3367do
3368 IFS=$as_save_IFS
3369 test -z "$as_dir" && as_dir=.
3370 for ac_exec_ext in '' $ac_executable_extensions; do
3371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3372 ac_cv_prog_CC="${ac_tool_prefix}cc"
3373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3374 break 2
3375 fi
3376done
3377done
3378
252b5132
RH
3379fi
3380fi
d45dc31f
SE
3381CC=$ac_cv_prog_CC
3382if test -n "$CC"; then
3383 echo "$as_me:$LINENO: result: $CC" >&5
3384echo "${ECHO_T}$CC" >&6
ac48eca1 3385else
d45dc31f
SE
3386 echo "$as_me:$LINENO: result: no" >&5
3387echo "${ECHO_T}no" >&6
ac48eca1 3388fi
ac48eca1 3389
d45dc31f
SE
3390fi
3391if test -z "$ac_cv_prog_CC"; then
3392 ac_ct_CC=$CC
3393 # Extract the first word of "cc", so it can be a program name with args.
3394set dummy cc; ac_word=$2
3395echo "$as_me:$LINENO: checking for $ac_word" >&5
3396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3397if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
42ecbf5e 3398 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3399else
d45dc31f
SE
3400 if test -n "$ac_ct_CC"; then
3401 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3402else
d45dc31f
SE
3403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404for as_dir in $PATH
3405do
3406 IFS=$as_save_IFS
3407 test -z "$as_dir" && as_dir=.
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3410 ac_cv_prog_ac_ct_CC="cc"
3411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3412 break 2
3413 fi
3414done
3415done
3416
252b5132 3417fi
d45dc31f
SE
3418fi
3419ac_ct_CC=$ac_cv_prog_ac_ct_CC
3420if test -n "$ac_ct_CC"; then
3421 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3422echo "${ECHO_T}$ac_ct_CC" >&6
3423else
3424 echo "$as_me:$LINENO: result: no" >&5
3425echo "${ECHO_T}no" >&6
252b5132
RH
3426fi
3427
d45dc31f
SE
3428 CC=$ac_ct_CC
3429else
3430 CC="$ac_cv_prog_CC"
3431fi
252b5132 3432
d45dc31f
SE
3433fi
3434if test -z "$CC"; then
3435 # Extract the first word of "cc", so it can be a program name with args.
3436set dummy cc; ac_word=$2
3437echo "$as_me:$LINENO: checking for $ac_word" >&5
3438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3439if test "${ac_cv_prog_CC+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3441else
d45dc31f
SE
3442 if test -n "$CC"; then
3443 ac_cv_prog_CC="$CC" # Let the user override the test.
3444else
3445 ac_prog_rejected=no
3446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447for as_dir in $PATH
3448do
3449 IFS=$as_save_IFS
3450 test -z "$as_dir" && as_dir=.
3451 for ac_exec_ext in '' $ac_executable_extensions; do
3452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3453 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3454 ac_prog_rejected=yes
3455 continue
3456 fi
3457 ac_cv_prog_CC="cc"
3458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3459 break 2
3460 fi
3461done
3462done
3463
3464if test $ac_prog_rejected = yes; then
3465 # We found a bogon in the path, so make sure we never use it.
3466 set dummy $ac_cv_prog_CC
3467 shift
3468 if test $# != 0; then
3469 # We chose a different compiler from the bogus one.
3470 # However, it has the same basename, so the bogon will be chosen
3471 # first if we set CC to just the basename; use the full file name.
3472 shift
3473 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3474 fi
3475fi
3476fi
3477fi
3478CC=$ac_cv_prog_CC
3479if test -n "$CC"; then
3480 echo "$as_me:$LINENO: result: $CC" >&5
3481echo "${ECHO_T}$CC" >&6
3482else
3483 echo "$as_me:$LINENO: result: no" >&5
3484echo "${ECHO_T}no" >&6
252b5132
RH
3485fi
3486
d45dc31f
SE
3487fi
3488if test -z "$CC"; then
3489 if test -n "$ac_tool_prefix"; then
3490 for ac_prog in cl
3491 do
3492 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3493set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3494echo "$as_me:$LINENO: checking for $ac_word" >&5
3495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3496if test "${ac_cv_prog_CC+set}" = set; then
42ecbf5e 3497 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3498else
d45dc31f
SE
3499 if test -n "$CC"; then
3500 ac_cv_prog_CC="$CC" # Let the user override the test.
3501else
3502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503for as_dir in $PATH
3504do
3505 IFS=$as_save_IFS
3506 test -z "$as_dir" && as_dir=.
3507 for ac_exec_ext in '' $ac_executable_extensions; do
3508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3509 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3511 break 2
3512 fi
3513done
3514done
ac48eca1 3515
d45dc31f
SE
3516fi
3517fi
3518CC=$ac_cv_prog_CC
3519if test -n "$CC"; then
3520 echo "$as_me:$LINENO: result: $CC" >&5
3521echo "${ECHO_T}$CC" >&6
3522else
3523 echo "$as_me:$LINENO: result: no" >&5
3524echo "${ECHO_T}no" >&6
3525fi
ac48eca1 3526
d45dc31f
SE
3527 test -n "$CC" && break
3528 done
3529fi
3530if test -z "$CC"; then
3531 ac_ct_CC=$CC
3532 for ac_prog in cl
3533do
3534 # Extract the first word of "$ac_prog", so it can be a program name with args.
3535set dummy $ac_prog; ac_word=$2
3536echo "$as_me:$LINENO: checking for $ac_word" >&5
3537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3538if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3539 echo $ECHO_N "(cached) $ECHO_C" >&6
3540else
3541 if test -n "$ac_ct_CC"; then
3542 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3543else
3544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545for as_dir in $PATH
3546do
3547 IFS=$as_save_IFS
3548 test -z "$as_dir" && as_dir=.
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3551 ac_cv_prog_ac_ct_CC="$ac_prog"
3552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3553 break 2
3554 fi
3555done
3556done
ac48eca1 3557
d45dc31f
SE
3558fi
3559fi
3560ac_ct_CC=$ac_cv_prog_ac_ct_CC
3561if test -n "$ac_ct_CC"; then
3562 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3563echo "${ECHO_T}$ac_ct_CC" >&6
3564else
3565 echo "$as_me:$LINENO: result: no" >&5
3566echo "${ECHO_T}no" >&6
3567fi
ac48eca1 3568
d45dc31f
SE
3569 test -n "$ac_ct_CC" && break
3570done
ac48eca1 3571
d45dc31f
SE
3572 CC=$ac_ct_CC
3573fi
ac48eca1
AO
3574
3575fi
ac48eca1 3576
ac48eca1 3577
7a283e07
RW
3578test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3579echo "$as_me: error: in \`$ac_pwd':" >&2;}
3580{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
d45dc31f
SE
3581See \`config.log' for more details." >&5
3582echo "$as_me: error: no acceptable C compiler found in \$PATH
3583See \`config.log' for more details." >&2;}
7a283e07 3584 { (exit 1); exit 1; }; }; }
ac48eca1 3585
d45dc31f
SE
3586# Provide some information about the compiler.
3587echo "$as_me:$LINENO:" \
3588 "checking for C compiler version" >&5
3589ac_compiler=`set X $ac_compile; echo $2`
3590{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3591 (eval $ac_compiler --version </dev/null >&5) 2>&5
3592 ac_status=$?
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); }
3595{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3596 (eval $ac_compiler -v </dev/null >&5) 2>&5
3597 ac_status=$?
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); }
3600{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3601 (eval $ac_compiler -V </dev/null >&5) 2>&5
3602 ac_status=$?
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); }
ac48eca1 3605
d45dc31f
SE
3606echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3607echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3608if test "${ac_cv_c_compiler_gnu+set}" = set; then
bdcfeba5
NC
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3610else
d45dc31f
SE
3611 cat >conftest.$ac_ext <<_ACEOF
3612/* confdefs.h. */
3613_ACEOF
3614cat confdefs.h >>conftest.$ac_ext
3615cat >>conftest.$ac_ext <<_ACEOF
3616/* end confdefs.h. */
bdcfeba5 3617
d45dc31f
SE
3618int
3619main ()
3620{
3621#ifndef __GNUC__
3622 choke me
3623#endif
bdcfeba5 3624
d45dc31f
SE
3625 ;
3626 return 0;
3627}
3628_ACEOF
3629rm -f conftest.$ac_objext
3630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3631 (eval $ac_compile) 2>conftest.er1
3632 ac_status=$?
3633 grep -v '^ *+' conftest.er1 >conftest.err
3634 rm -f conftest.er1
3635 cat conftest.err >&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); } &&
7357c5b6
AM
3638 { ac_try='test -z "$ac_c_werror_flag"
3639 || test ! -s conftest.err'
d45dc31f
SE
3640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3641 (eval $ac_try) 2>&5
3642 ac_status=$?
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); }; } &&
3645 { ac_try='test -s conftest.$ac_objext'
3646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3647 (eval $ac_try) 2>&5
3648 ac_status=$?
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); }; }; then
3651 ac_compiler_gnu=yes
3652else
3653 echo "$as_me: failed program was:" >&5
3654sed 's/^/| /' conftest.$ac_ext >&5
bdcfeba5 3655
d45dc31f 3656ac_compiler_gnu=no
bdcfeba5 3657fi
d45dc31f
SE
3658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3659ac_cv_c_compiler_gnu=$ac_compiler_gnu
bdcfeba5 3660
bdcfeba5 3661fi
d45dc31f
SE
3662echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3663echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3664GCC=`test $ac_compiler_gnu = yes && echo yes`
3665ac_test_CFLAGS=${CFLAGS+set}
3666ac_save_CFLAGS=$CFLAGS
3667CFLAGS="-g"
3668echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3669echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3670if test "${ac_cv_prog_cc_g+set}" = set; then
42ecbf5e 3671 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3672else
d45dc31f
SE
3673 cat >conftest.$ac_ext <<_ACEOF
3674/* confdefs.h. */
3675_ACEOF
3676cat confdefs.h >>conftest.$ac_ext
3677cat >>conftest.$ac_ext <<_ACEOF
3678/* end confdefs.h. */
ac48eca1 3679
d45dc31f
SE
3680int
3681main ()
3682{
ac48eca1 3683
d45dc31f
SE
3684 ;
3685 return 0;
3686}
3687_ACEOF
3688rm -f conftest.$ac_objext
3689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3690 (eval $ac_compile) 2>conftest.er1
3691 ac_status=$?
3692 grep -v '^ *+' conftest.er1 >conftest.err
3693 rm -f conftest.er1
3694 cat conftest.err >&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); } &&
7357c5b6
AM
3697 { ac_try='test -z "$ac_c_werror_flag"
3698 || test ! -s conftest.err'
d45dc31f
SE
3699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3700 (eval $ac_try) 2>&5
3701 ac_status=$?
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; } &&
3704 { ac_try='test -s conftest.$ac_objext'
3705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3706 (eval $ac_try) 2>&5
3707 ac_status=$?
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); }; }; then
3710 ac_cv_prog_cc_g=yes
ac48eca1 3711else
d45dc31f
SE
3712 echo "$as_me: failed program was:" >&5
3713sed 's/^/| /' conftest.$ac_ext >&5
ac48eca1 3714
d45dc31f 3715ac_cv_prog_cc_g=no
ac48eca1 3716fi
d45dc31f 3717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 3718fi
d45dc31f
SE
3719echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3720echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3721if test "$ac_test_CFLAGS" = set; then
3722 CFLAGS=$ac_save_CFLAGS
3723elif test $ac_cv_prog_cc_g = yes; then
3724 if test "$GCC" = yes; then
3725 CFLAGS="-g -O2"
ac48eca1 3726 else
d45dc31f 3727 CFLAGS="-g"
42ecbf5e 3728 fi
ac48eca1 3729else
d45dc31f
SE
3730 if test "$GCC" = yes; then
3731 CFLAGS="-O2"
3732 else
3733 CFLAGS=
42ecbf5e 3734 fi
ac48eca1 3735fi
d45dc31f
SE
3736echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3737echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3738if test "${ac_cv_prog_cc_stdc+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3740else
3741 ac_cv_prog_cc_stdc=no
3742ac_save_CC=$CC
3743cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
3744/* confdefs.h. */
3745_ACEOF
3746cat confdefs.h >>conftest.$ac_ext
3747cat >>conftest.$ac_ext <<_ACEOF
3748/* end confdefs.h. */
d45dc31f
SE
3749#include <stdarg.h>
3750#include <stdio.h>
3751#include <sys/types.h>
3752#include <sys/stat.h>
3753/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3754struct buf { int x; };
3755FILE * (*rcsopen) (struct buf *, struct stat *, int);
3756static char *e (p, i)
3757 char **p;
3758 int i;
3759{
3760 return p[i];
3761}
3762static char *f (char * (*g) (char **, int), char **p, ...)
3763{
3764 char *s;
3765 va_list v;
3766 va_start (v,p);
3767 s = g (p, va_arg (v,int));
3768 va_end (v);
3769 return s;
3770}
3771
3772/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3773 function prototypes and stuff, but not '\xHH' hex character constants.
3774 These don't provoke an error unfortunately, instead are silently treated
3775 as 'x'. The following induces an error, until -std1 is added to get
3776 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3777 array size at least. It's necessary to write '\x00'==0 to get something
3778 that's true only with -std1. */
3779int osf4_cc_array ['\x00' == 0 ? 1 : -1];
252b5132 3780
d45dc31f
SE
3781int test (int i, double x);
3782struct s1 {int (*f) (int a);};
3783struct s2 {int (*f) (double a);};
3784int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3785int argc;
3786char **argv;
42ecbf5e
DJ
3787int
3788main ()
3789{
d45dc31f 3790return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
42ecbf5e
DJ
3791 ;
3792 return 0;
3793}
3794_ACEOF
d45dc31f
SE
3795# Don't try gcc -ansi; that turns off useful extensions and
3796# breaks some systems' header files.
3797# AIX -qlanglvl=ansi
3798# Ultrix and OSF/1 -std1
3799# HP-UX 10.20 and later -Ae
3800# HP-UX older versions -Aa -D_HPUX_SOURCE
3801# SVR4 -Xc -D__EXTENSIONS__
3802for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3803do
3804 CC="$ac_save_CC $ac_arg"
3805 rm -f conftest.$ac_objext
3806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3807 (eval $ac_compile) 2>conftest.er1
42ecbf5e
DJ
3808 ac_status=$?
3809 grep -v '^ *+' conftest.er1 >conftest.err
3810 rm -f conftest.er1
3811 cat conftest.err >&5
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); } &&
7357c5b6
AM
3814 { ac_try='test -z "$ac_c_werror_flag"
3815 || test ! -s conftest.err'
42ecbf5e
DJ
3816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3817 (eval $ac_try) 2>&5
3818 ac_status=$?
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); }; } &&
d45dc31f 3821 { ac_try='test -s conftest.$ac_objext'
42ecbf5e
DJ
3822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3823 (eval $ac_try) 2>&5
3824 ac_status=$?
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); }; }; then
d45dc31f
SE
3827 ac_cv_prog_cc_stdc=$ac_arg
3828break
252b5132 3829else
42ecbf5e
DJ
3830 echo "$as_me: failed program was:" >&5
3831sed 's/^/| /' conftest.$ac_ext >&5
3832
252b5132 3833fi
d45dc31f
SE
3834rm -f conftest.err conftest.$ac_objext
3835done
3836rm -f conftest.$ac_ext conftest.$ac_objext
3837CC=$ac_save_CC
ac48eca1 3838
252b5132 3839fi
252b5132 3840
d45dc31f
SE
3841case "x$ac_cv_prog_cc_stdc" in
3842 x|xno)
3843 echo "$as_me:$LINENO: result: none needed" >&5
3844echo "${ECHO_T}none needed" >&6 ;;
3845 *)
3846 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3847echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3848 CC="$CC $ac_cv_prog_cc_stdc" ;;
252b5132
RH
3849esac
3850
d45dc31f
SE
3851# Some people use a C++ compiler to compile C. Since we use `exit',
3852# in C++ we need to declare it. In case someone uses the same compiler
3853# for both compiling C and C++ we need to have the C++ compiler decide
3854# the declaration of exit, since it's the most demanding environment.
3855cat >conftest.$ac_ext <<_ACEOF
3856#ifndef __cplusplus
3857 choke me
3858#endif
42ecbf5e 3859_ACEOF
d45dc31f
SE
3860rm -f conftest.$ac_objext
3861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3862 (eval $ac_compile) 2>conftest.er1
3863 ac_status=$?
3864 grep -v '^ *+' conftest.er1 >conftest.err
3865 rm -f conftest.er1
3866 cat conftest.err >&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } &&
7357c5b6
AM
3869 { ac_try='test -z "$ac_c_werror_flag"
3870 || test ! -s conftest.err'
d45dc31f
SE
3871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3872 (eval $ac_try) 2>&5
3873 ac_status=$?
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); }; } &&
3876 { ac_try='test -s conftest.$ac_objext'
3877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3878 (eval $ac_try) 2>&5
3879 ac_status=$?
3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); }; }; then
3882 for ac_declaration in \
3883 '' \
3884 'extern "C" void std::exit (int) throw (); using std::exit;' \
3885 'extern "C" void std::exit (int); using std::exit;' \
3886 'extern "C" void exit (int) throw ();' \
3887 'extern "C" void exit (int);' \
3888 'void exit (int);'
3889do
3890 cat >conftest.$ac_ext <<_ACEOF
3891/* confdefs.h. */
3892_ACEOF
3893cat confdefs.h >>conftest.$ac_ext
3894cat >>conftest.$ac_ext <<_ACEOF
3895/* end confdefs.h. */
3896$ac_declaration
3897#include <stdlib.h>
3898int
3899main ()
42ecbf5e 3900{
d45dc31f
SE
3901exit (42);
3902 ;
3903 return 0;
3904}
3905_ACEOF
3906rm -f conftest.$ac_objext
3907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3908 (eval $ac_compile) 2>conftest.er1
3909 ac_status=$?
3910 grep -v '^ *+' conftest.er1 >conftest.err
3911 rm -f conftest.er1
3912 cat conftest.err >&5
3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); } &&
7357c5b6
AM
3915 { ac_try='test -z "$ac_c_werror_flag"
3916 || test ! -s conftest.err'
d45dc31f
SE
3917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918 (eval $ac_try) 2>&5
3919 ac_status=$?
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); }; } &&
3922 { ac_try='test -s conftest.$ac_objext'
3923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924 (eval $ac_try) 2>&5
3925 ac_status=$?
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); }; }; then
3928 :
3929else
3930 echo "$as_me: failed program was:" >&5
3931sed 's/^/| /' conftest.$ac_ext >&5
252b5132 3932
d45dc31f
SE
3933continue
3934fi
3935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3936 cat >conftest.$ac_ext <<_ACEOF
3937/* confdefs.h. */
3938_ACEOF
3939cat confdefs.h >>conftest.$ac_ext
3940cat >>conftest.$ac_ext <<_ACEOF
3941/* end confdefs.h. */
3942$ac_declaration
3943int
3944main ()
3945{
3946exit (42);
3947 ;
3948 return 0;
3949}
3950_ACEOF
3951rm -f conftest.$ac_objext
3952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3953 (eval $ac_compile) 2>conftest.er1
3954 ac_status=$?
3955 grep -v '^ *+' conftest.er1 >conftest.err
3956 rm -f conftest.er1
3957 cat conftest.err >&5
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); } &&
7357c5b6
AM
3960 { ac_try='test -z "$ac_c_werror_flag"
3961 || test ! -s conftest.err'
d45dc31f
SE
3962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3963 (eval $ac_try) 2>&5
3964 ac_status=$?
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); }; } &&
3967 { ac_try='test -s conftest.$ac_objext'
3968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3969 (eval $ac_try) 2>&5
3970 ac_status=$?
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); }; }; then
3973 break
3974else
3975 echo "$as_me: failed program was:" >&5
3976sed 's/^/| /' conftest.$ac_ext >&5
252b5132 3977
d45dc31f
SE
3978fi
3979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3980done
3981rm -f conftest*
3982if test -n "$ac_declaration"; then
3983 echo '#ifdef __cplusplus' >>confdefs.h
3984 echo $ac_declaration >>confdefs.h
3985 echo '#endif' >>confdefs.h
3986fi
ac48eca1 3987
d45dc31f
SE
3988else
3989 echo "$as_me: failed program was:" >&5
3990sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 3991
d45dc31f
SE
3992fi
3993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3994ac_ext=c
3995ac_cpp='$CPP $CPPFLAGS'
3996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3998ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e
DJ
3999
4000
d45dc31f
SE
4001cat >>confdefs.h <<\_ACEOF
4002#define _GNU_SOURCE 1
4003_ACEOF
42ecbf5e 4004
ac48eca1 4005
7357c5b6
AM
4006ac_ext=c
4007ac_cpp='$CPP $CPPFLAGS'
4008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4010ac_compiler_gnu=$ac_cv_c_compiler_gnu
4011echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4012echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4013# On Suns, sometimes $CPP names a directory.
4014if test -n "$CPP" && test -d "$CPP"; then
4015 CPP=
4016fi
4017if test -z "$CPP"; then
4018 if test "${ac_cv_prog_CPP+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4020else
4021 # Double quotes because CPP needs to be expanded
4022 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4023 do
4024 ac_preproc_ok=false
4025for ac_c_preproc_warn_flag in '' yes
4026do
4027 # Use a header file that comes with gcc, so configuring glibc
4028 # with a fresh cross-compiler works.
4029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4030 # <limits.h> exists even on freestanding compilers.
4031 # On the NeXT, cc -E runs the code through the compiler's parser,
4032 # not just through cpp. "Syntax error" is here to catch this case.
4033 cat >conftest.$ac_ext <<_ACEOF
4034/* confdefs.h. */
4035_ACEOF
4036cat confdefs.h >>conftest.$ac_ext
4037cat >>conftest.$ac_ext <<_ACEOF
4038/* end confdefs.h. */
4039#ifdef __STDC__
4040# include <limits.h>
4041#else
4042# include <assert.h>
4043#endif
4044 Syntax error
4045_ACEOF
4046if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4048 ac_status=$?
4049 grep -v '^ *+' conftest.er1 >conftest.err
4050 rm -f conftest.er1
4051 cat conftest.err >&5
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); } >/dev/null; then
4054 if test -s conftest.err; then
4055 ac_cpp_err=$ac_c_preproc_warn_flag
4056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4057 else
4058 ac_cpp_err=
4059 fi
4060else
4061 ac_cpp_err=yes
4062fi
4063if test -z "$ac_cpp_err"; then
4064 :
4065else
4066 echo "$as_me: failed program was:" >&5
4067sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4068
7357c5b6
AM
4069 # Broken: fails on valid input.
4070continue
4071fi
4072rm -f conftest.err conftest.$ac_ext
d7040cdb 4073
7357c5b6
AM
4074 # OK, works on sane cases. Now check whether non-existent headers
4075 # can be detected and how.
4076 cat >conftest.$ac_ext <<_ACEOF
4077/* confdefs.h. */
4078_ACEOF
4079cat confdefs.h >>conftest.$ac_ext
4080cat >>conftest.$ac_ext <<_ACEOF
4081/* end confdefs.h. */
4082#include <ac_nonexistent.h>
4083_ACEOF
4084if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4086 ac_status=$?
4087 grep -v '^ *+' conftest.er1 >conftest.err
4088 rm -f conftest.er1
4089 cat conftest.err >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } >/dev/null; then
4092 if test -s conftest.err; then
4093 ac_cpp_err=$ac_c_preproc_warn_flag
4094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4095 else
4096 ac_cpp_err=
4097 fi
4098else
4099 ac_cpp_err=yes
4100fi
4101if test -z "$ac_cpp_err"; then
4102 # Broken: success on invalid input.
4103continue
4104else
4105 echo "$as_me: failed program was:" >&5
4106sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4107
7357c5b6
AM
4108 # Passes both tests.
4109ac_preproc_ok=:
4110break
4111fi
4112rm -f conftest.err conftest.$ac_ext
d7040cdb 4113
7357c5b6
AM
4114done
4115# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4116rm -f conftest.err conftest.$ac_ext
4117if $ac_preproc_ok; then
4118 break
4119fi
d7040cdb 4120
7357c5b6
AM
4121 done
4122 ac_cv_prog_CPP=$CPP
d7040cdb 4123
7357c5b6
AM
4124fi
4125 CPP=$ac_cv_prog_CPP
4126else
4127 ac_cv_prog_CPP=$CPP
4128fi
4129echo "$as_me:$LINENO: result: $CPP" >&5
4130echo "${ECHO_T}$CPP" >&6
4131ac_preproc_ok=false
4132for ac_c_preproc_warn_flag in '' yes
4133do
4134 # Use a header file that comes with gcc, so configuring glibc
4135 # with a fresh cross-compiler works.
4136 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4137 # <limits.h> exists even on freestanding compilers.
4138 # On the NeXT, cc -E runs the code through the compiler's parser,
4139 # not just through cpp. "Syntax error" is here to catch this case.
4140 cat >conftest.$ac_ext <<_ACEOF
4141/* confdefs.h. */
4142_ACEOF
4143cat confdefs.h >>conftest.$ac_ext
4144cat >>conftest.$ac_ext <<_ACEOF
4145/* end confdefs.h. */
4146#ifdef __STDC__
4147# include <limits.h>
4148#else
4149# include <assert.h>
4150#endif
4151 Syntax error
4152_ACEOF
4153if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4155 ac_status=$?
4156 grep -v '^ *+' conftest.er1 >conftest.err
4157 rm -f conftest.er1
4158 cat conftest.err >&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); } >/dev/null; then
4161 if test -s conftest.err; then
4162 ac_cpp_err=$ac_c_preproc_warn_flag
4163 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4164 else
4165 ac_cpp_err=
4166 fi
4167else
4168 ac_cpp_err=yes
4169fi
4170if test -z "$ac_cpp_err"; then
4171 :
4172else
4173 echo "$as_me: failed program was:" >&5
4174sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4175
7357c5b6
AM
4176 # Broken: fails on valid input.
4177continue
4178fi
4179rm -f conftest.err conftest.$ac_ext
d7040cdb 4180
7357c5b6
AM
4181 # OK, works on sane cases. Now check whether non-existent headers
4182 # can be detected and how.
4183 cat >conftest.$ac_ext <<_ACEOF
4184/* confdefs.h. */
4185_ACEOF
4186cat confdefs.h >>conftest.$ac_ext
4187cat >>conftest.$ac_ext <<_ACEOF
4188/* end confdefs.h. */
4189#include <ac_nonexistent.h>
4190_ACEOF
4191if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4193 ac_status=$?
4194 grep -v '^ *+' conftest.er1 >conftest.err
4195 rm -f conftest.er1
4196 cat conftest.err >&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); } >/dev/null; then
4199 if test -s conftest.err; then
4200 ac_cpp_err=$ac_c_preproc_warn_flag
4201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4202 else
4203 ac_cpp_err=
4204 fi
4205else
4206 ac_cpp_err=yes
4207fi
4208if test -z "$ac_cpp_err"; then
4209 # Broken: success on invalid input.
4210continue
4211else
4212 echo "$as_me: failed program was:" >&5
4213sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4214
7357c5b6
AM
4215 # Passes both tests.
4216ac_preproc_ok=:
4217break
4218fi
4219rm -f conftest.err conftest.$ac_ext
d7040cdb 4220
7357c5b6
AM
4221done
4222# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4223rm -f conftest.err conftest.$ac_ext
4224if $ac_preproc_ok; then
4225 :
4226else
4227 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4228echo "$as_me: error: in \`$ac_pwd':" >&2;}
4229{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4230See \`config.log' for more details." >&5
4231echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4232See \`config.log' for more details." >&2;}
4233 { (exit 1); exit 1; }; }; }
4234fi
d7040cdb 4235
7357c5b6
AM
4236ac_ext=c
4237ac_cpp='$CPP $CPPFLAGS'
4238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4240ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
4241
4242
7357c5b6
AM
4243echo "$as_me:$LINENO: checking for egrep" >&5
4244echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4245if test "${ac_cv_prog_egrep+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4247else
4248 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4249 then ac_cv_prog_egrep='grep -E'
4250 else ac_cv_prog_egrep='egrep'
4251 fi
4252fi
4253echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4254echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4255 EGREP=$ac_cv_prog_egrep
d7040cdb 4256
d7040cdb 4257
7357c5b6
AM
4258echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4259echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4260if test "${ac_cv_header_stdc+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4262else
4263 cat >conftest.$ac_ext <<_ACEOF
4264/* confdefs.h. */
4265_ACEOF
4266cat confdefs.h >>conftest.$ac_ext
4267cat >>conftest.$ac_ext <<_ACEOF
4268/* end confdefs.h. */
4269#include <stdlib.h>
4270#include <stdarg.h>
4271#include <string.h>
4272#include <float.h>
d7040cdb 4273
7357c5b6
AM
4274int
4275main ()
4276{
d7040cdb 4277
7357c5b6
AM
4278 ;
4279 return 0;
4280}
4281_ACEOF
4282rm -f conftest.$ac_objext
4283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4284 (eval $ac_compile) 2>conftest.er1
4285 ac_status=$?
4286 grep -v '^ *+' conftest.er1 >conftest.err
4287 rm -f conftest.er1
4288 cat conftest.err >&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); } &&
4291 { ac_try='test -z "$ac_c_werror_flag"
4292 || test ! -s conftest.err'
4293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4294 (eval $ac_try) 2>&5
4295 ac_status=$?
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); }; } &&
4298 { ac_try='test -s conftest.$ac_objext'
4299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4300 (eval $ac_try) 2>&5
4301 ac_status=$?
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; }; then
4304 ac_cv_header_stdc=yes
4305else
4306 echo "$as_me: failed program was:" >&5
4307sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4308
7357c5b6
AM
4309ac_cv_header_stdc=no
4310fi
4311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4312
7357c5b6
AM
4313if test $ac_cv_header_stdc = yes; then
4314 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4315 cat >conftest.$ac_ext <<_ACEOF
4316/* confdefs.h. */
4317_ACEOF
4318cat confdefs.h >>conftest.$ac_ext
4319cat >>conftest.$ac_ext <<_ACEOF
4320/* end confdefs.h. */
4321#include <string.h>
d7040cdb 4322
7357c5b6
AM
4323_ACEOF
4324if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4325 $EGREP "memchr" >/dev/null 2>&1; then
4326 :
d45dc31f 4327else
7357c5b6
AM
4328 ac_cv_header_stdc=no
4329fi
4330rm -f conftest*
d7040cdb 4331
7357c5b6 4332fi
d7040cdb 4333
7357c5b6
AM
4334if test $ac_cv_header_stdc = yes; then
4335 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4336 cat >conftest.$ac_ext <<_ACEOF
4337/* confdefs.h. */
4338_ACEOF
4339cat confdefs.h >>conftest.$ac_ext
4340cat >>conftest.$ac_ext <<_ACEOF
4341/* end confdefs.h. */
4342#include <stdlib.h>
d7040cdb 4343
7357c5b6
AM
4344_ACEOF
4345if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4346 $EGREP "free" >/dev/null 2>&1; then
4347 :
4348else
4349 ac_cv_header_stdc=no
4350fi
4351rm -f conftest*
d7040cdb 4352
7357c5b6 4353fi
d7040cdb 4354
7357c5b6
AM
4355if test $ac_cv_header_stdc = yes; then
4356 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4357 if test "$cross_compiling" = yes; then
4358 :
4359else
4360 cat >conftest.$ac_ext <<_ACEOF
4361/* confdefs.h. */
4362_ACEOF
4363cat confdefs.h >>conftest.$ac_ext
4364cat >>conftest.$ac_ext <<_ACEOF
4365/* end confdefs.h. */
4366#include <ctype.h>
4367#if ((' ' & 0x0FF) == 0x020)
4368# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4369# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4370#else
4371# define ISLOWER(c) \
4372 (('a' <= (c) && (c) <= 'i') \
4373 || ('j' <= (c) && (c) <= 'r') \
4374 || ('s' <= (c) && (c) <= 'z'))
4375# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4376#endif
d7040cdb 4377
7357c5b6
AM
4378#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4379int
4380main ()
4381{
4382 int i;
4383 for (i = 0; i < 256; i++)
4384 if (XOR (islower (i), ISLOWER (i))
4385 || toupper (i) != TOUPPER (i))
4386 exit(2);
4387 exit (0);
4388}
4389_ACEOF
4390rm -f conftest$ac_exeext
4391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4392 (eval $ac_link) 2>&5
4393 ac_status=$?
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397 (eval $ac_try) 2>&5
4398 ac_status=$?
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }; }; then
4401 :
4402else
4403 echo "$as_me: program exited with status $ac_status" >&5
4404echo "$as_me: failed program was:" >&5
4405sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4406
7357c5b6
AM
4407( exit $ac_status )
4408ac_cv_header_stdc=no
4409fi
4410rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4411fi
4412fi
4413fi
4414echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4415echo "${ECHO_T}$ac_cv_header_stdc" >&6
4416if test $ac_cv_header_stdc = yes; then
d7040cdb 4417
7357c5b6
AM
4418cat >>confdefs.h <<\_ACEOF
4419#define STDC_HEADERS 1
4420_ACEOF
d7040cdb 4421
7357c5b6 4422fi
d7040cdb 4423
7357c5b6 4424# On IRIX 5.3, sys/types and inttypes.h are conflicting.
d7040cdb
SE
4425
4426
4427
4428
4429
4430
4431
d7040cdb 4432
d7040cdb 4433
7357c5b6
AM
4434for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4435 inttypes.h stdint.h unistd.h
4436do
4437as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4438echo "$as_me:$LINENO: checking for $ac_header" >&5
4439echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4440if eval "test \"\${$as_ac_Header+set}\" = set"; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4442else
4443 cat >conftest.$ac_ext <<_ACEOF
4444/* confdefs.h. */
4445_ACEOF
4446cat confdefs.h >>conftest.$ac_ext
4447cat >>conftest.$ac_ext <<_ACEOF
4448/* end confdefs.h. */
4449$ac_includes_default
d7040cdb 4450
7357c5b6
AM
4451#include <$ac_header>
4452_ACEOF
4453rm -f conftest.$ac_objext
4454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4455 (eval $ac_compile) 2>conftest.er1
4456 ac_status=$?
4457 grep -v '^ *+' conftest.er1 >conftest.err
4458 rm -f conftest.er1
4459 cat conftest.err >&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); } &&
4462 { ac_try='test -z "$ac_c_werror_flag"
4463 || test ! -s conftest.err'
4464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465 (eval $ac_try) 2>&5
4466 ac_status=$?
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); }; } &&
4469 { ac_try='test -s conftest.$ac_objext'
4470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4471 (eval $ac_try) 2>&5
4472 ac_status=$?
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); }; }; then
4475 eval "$as_ac_Header=yes"
4476else
4477 echo "$as_me: failed program was:" >&5
4478sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4479
7357c5b6
AM
4480eval "$as_ac_Header=no"
4481fi
4482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4483fi
4484echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4485echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4486if test `eval echo '${'$as_ac_Header'}'` = yes; then
4487 cat >>confdefs.h <<_ACEOF
4488#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4489_ACEOF
d7040cdb 4490
7357c5b6 4491fi
d7040cdb 4492
7357c5b6 4493done
d7040cdb
SE
4494
4495
4496
7357c5b6
AM
4497 if test "${ac_cv_header_minix_config_h+set}" = set; then
4498 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4499echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4500if test "${ac_cv_header_minix_config_h+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4502fi
4503echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4504echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4505else
4506 # Is the header compilable?
4507echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4508echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4509cat >conftest.$ac_ext <<_ACEOF
4510/* confdefs.h. */
4511_ACEOF
4512cat confdefs.h >>conftest.$ac_ext
4513cat >>conftest.$ac_ext <<_ACEOF
4514/* end confdefs.h. */
4515$ac_includes_default
4516#include <minix/config.h>
4517_ACEOF
4518rm -f conftest.$ac_objext
4519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4520 (eval $ac_compile) 2>conftest.er1
4521 ac_status=$?
4522 grep -v '^ *+' conftest.er1 >conftest.err
4523 rm -f conftest.er1
4524 cat conftest.err >&5
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); } &&
4527 { ac_try='test -z "$ac_c_werror_flag"
4528 || test ! -s conftest.err'
4529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4530 (eval $ac_try) 2>&5
4531 ac_status=$?
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; } &&
4534 { ac_try='test -s conftest.$ac_objext'
4535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536 (eval $ac_try) 2>&5
4537 ac_status=$?
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; }; then
4540 ac_header_compiler=yes
4541else
4542 echo "$as_me: failed program was:" >&5
4543sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4544
7357c5b6
AM
4545ac_header_compiler=no
4546fi
4547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4548echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4549echo "${ECHO_T}$ac_header_compiler" >&6
d7040cdb 4550
7357c5b6
AM
4551# Is the header present?
4552echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4553echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4554cat >conftest.$ac_ext <<_ACEOF
4555/* confdefs.h. */
4556_ACEOF
4557cat confdefs.h >>conftest.$ac_ext
4558cat >>conftest.$ac_ext <<_ACEOF
4559/* end confdefs.h. */
4560#include <minix/config.h>
4561_ACEOF
4562if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4563 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4564 ac_status=$?
4565 grep -v '^ *+' conftest.er1 >conftest.err
4566 rm -f conftest.er1
4567 cat conftest.err >&5
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); } >/dev/null; then
4570 if test -s conftest.err; then
4571 ac_cpp_err=$ac_c_preproc_warn_flag
4572 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4573 else
4574 ac_cpp_err=
4575 fi
4576else
4577 ac_cpp_err=yes
4578fi
4579if test -z "$ac_cpp_err"; then
4580 ac_header_preproc=yes
4581else
4582 echo "$as_me: failed program was:" >&5
4583sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4584
7357c5b6
AM
4585 ac_header_preproc=no
4586fi
4587rm -f conftest.err conftest.$ac_ext
4588echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4589echo "${ECHO_T}$ac_header_preproc" >&6
d7040cdb 4590
7357c5b6
AM
4591# So? What about this header?
4592case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4593 yes:no: )
4594 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4595echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4596 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4597echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4598 ac_header_preproc=yes
4599 ;;
4600 no:yes:* )
4601 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4602echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4603 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4604echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4605 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4606echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4607 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4608echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4609 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4610echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4611 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4612echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4613 (
4614 cat <<\_ASBOX
4615## ------------------------------------------ ##
4616## Report this to the AC_PACKAGE_NAME lists. ##
4617## ------------------------------------------ ##
4618_ASBOX
4619 ) |
4620 sed "s/^/$as_me: WARNING: /" >&2
4621 ;;
4622esac
4623echo "$as_me:$LINENO: checking for minix/config.h" >&5
4624echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4625if test "${ac_cv_header_minix_config_h+set}" = set; then
d7040cdb
SE
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4627else
7357c5b6 4628 ac_cv_header_minix_config_h=$ac_header_preproc
d7040cdb 4629fi
7357c5b6
AM
4630echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4631echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
d7040cdb 4632
7357c5b6
AM
4633fi
4634if test $ac_cv_header_minix_config_h = yes; then
4635 MINIX=yes
4636else
4637 MINIX=
4638fi
d7040cdb
SE
4639
4640
7357c5b6 4641 if test "$MINIX" = yes; then
d7040cdb 4642
7357c5b6
AM
4643cat >>confdefs.h <<\_ACEOF
4644#define _POSIX_SOURCE 1
4645_ACEOF
d7040cdb
SE
4646
4647
7357c5b6
AM
4648cat >>confdefs.h <<\_ACEOF
4649#define _POSIX_1_SOURCE 2
4650_ACEOF
d7040cdb
SE
4651
4652
7357c5b6
AM
4653cat >>confdefs.h <<\_ACEOF
4654#define _MINIX 1
4655_ACEOF
d7040cdb 4656
7357c5b6 4657 fi
d7040cdb
SE
4658
4659
4660
7357c5b6
AM
4661 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4662echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4663if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
d7040cdb
SE
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4665else
7357c5b6
AM
4666 cat >conftest.$ac_ext <<_ACEOF
4667/* confdefs.h. */
4668_ACEOF
4669cat confdefs.h >>conftest.$ac_ext
4670cat >>conftest.$ac_ext <<_ACEOF
4671/* end confdefs.h. */
d7040cdb 4672
7357c5b6
AM
4673# define __EXTENSIONS__ 1
4674 $ac_includes_default
4675int
4676main ()
4677{
d7040cdb 4678
7357c5b6
AM
4679 ;
4680 return 0;
4681}
4682_ACEOF
4683rm -f conftest.$ac_objext
4684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4685 (eval $ac_compile) 2>conftest.er1
4686 ac_status=$?
4687 grep -v '^ *+' conftest.er1 >conftest.err
4688 rm -f conftest.er1
4689 cat conftest.err >&5
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); } &&
4692 { ac_try='test -z "$ac_c_werror_flag"
4693 || test ! -s conftest.err'
4694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695 (eval $ac_try) 2>&5
4696 ac_status=$?
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); }; } &&
4699 { ac_try='test -s conftest.$ac_objext'
4700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4701 (eval $ac_try) 2>&5
4702 ac_status=$?
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); }; }; then
4705 ac_cv_safe_to_define___extensions__=yes
d7040cdb 4706else
7357c5b6
AM
4707 echo "$as_me: failed program was:" >&5
4708sed 's/^/| /' conftest.$ac_ext >&5
4709
4710ac_cv_safe_to_define___extensions__=no
d7040cdb 4711fi
7357c5b6
AM
4712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4713fi
4714echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4715echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4716 test $ac_cv_safe_to_define___extensions__ = yes &&
4717 cat >>confdefs.h <<\_ACEOF
4718#define __EXTENSIONS__ 1
4719_ACEOF
d7040cdb 4720
7357c5b6
AM
4721 cat >>confdefs.h <<\_ACEOF
4722#define _ALL_SOURCE 1
4723_ACEOF
d7040cdb 4724
7357c5b6
AM
4725 cat >>confdefs.h <<\_ACEOF
4726#define _GNU_SOURCE 1
4727_ACEOF
d7040cdb 4728
7357c5b6
AM
4729 cat >>confdefs.h <<\_ACEOF
4730#define _POSIX_PTHREAD_SEMANTICS 1
4731_ACEOF
d7040cdb 4732
7357c5b6
AM
4733 cat >>confdefs.h <<\_ACEOF
4734#define _TANDEM_SOURCE 1
4735_ACEOF
d7040cdb
SE
4736
4737
e3525117
NC
4738
4739case "${target}" in
4740 sparc-*-solaris*|i[3-7]86-*-solaris*)
4741 # See comment in bfd/configure.in for the reason for this test.
4742 # PR 9992/binutils: We have to duplicate the behaviour of bfd's
4743 # configure script so that the utilities in this directory agree
4744 # on the size of structures used to describe files.
4745 if test "${target}" = "${host}" -a "$enable_largefile" != 'yes'; then
4746 enable_largefile="no"
4747 fi
4748 ;;
4749esac
4750
d053aef8
JK
4751# Check whether --enable-largefile or --disable-largefile was given.
4752if test "${enable_largefile+set}" = set; then
4753 enableval="$enable_largefile"
4754
4755fi;
4756if test "$enable_largefile" != no; then
4757
4758 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4759echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4760if test "${ac_cv_sys_largefile_CC+set}" = set; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4762else
4763 ac_cv_sys_largefile_CC=no
4764 if test "$GCC" != yes; then
4765 ac_save_CC=$CC
4766 while :; do
4767 # IRIX 6.2 and later do not support large files by default,
4768 # so use the C compiler's -n32 option if that helps.
4769 cat >conftest.$ac_ext <<_ACEOF
4770/* confdefs.h. */
4771_ACEOF
4772cat confdefs.h >>conftest.$ac_ext
4773cat >>conftest.$ac_ext <<_ACEOF
4774/* end confdefs.h. */
4775#include <sys/types.h>
4776 /* Check that off_t can represent 2**63 - 1 correctly.
4777 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4778 since some C++ compilers masquerading as C compilers
4779 incorrectly reject 9223372036854775807. */
4780#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4781 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4782 && LARGE_OFF_T % 2147483647 == 1)
4783 ? 1 : -1];
4784int
4785main ()
4786{
4787
4788 ;
4789 return 0;
4790}
4791_ACEOF
4792 rm -f conftest.$ac_objext
4793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4794 (eval $ac_compile) 2>conftest.er1
4795 ac_status=$?
4796 grep -v '^ *+' conftest.er1 >conftest.err
4797 rm -f conftest.er1
4798 cat conftest.err >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } &&
4801 { ac_try='test -z "$ac_c_werror_flag"
4802 || test ! -s conftest.err'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 (eval $ac_try) 2>&5
4805 ac_status=$?
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; } &&
4808 { ac_try='test -s conftest.$ac_objext'
4809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810 (eval $ac_try) 2>&5
4811 ac_status=$?
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); }; }; then
4814 break
4815else
4816 echo "$as_me: failed program was:" >&5
4817sed 's/^/| /' conftest.$ac_ext >&5
4818
4819fi
4820rm -f conftest.err conftest.$ac_objext
4821 CC="$CC -n32"
4822 rm -f conftest.$ac_objext
4823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4824 (eval $ac_compile) 2>conftest.er1
4825 ac_status=$?
4826 grep -v '^ *+' conftest.er1 >conftest.err
4827 rm -f conftest.er1
4828 cat conftest.err >&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } &&
4831 { ac_try='test -z "$ac_c_werror_flag"
4832 || test ! -s conftest.err'
4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834 (eval $ac_try) 2>&5
4835 ac_status=$?
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; } &&
4838 { ac_try='test -s conftest.$ac_objext'
4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840 (eval $ac_try) 2>&5
4841 ac_status=$?
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; }; then
4844 ac_cv_sys_largefile_CC=' -n32'; break
4845else
4846 echo "$as_me: failed program was:" >&5
4847sed 's/^/| /' conftest.$ac_ext >&5
4848
4849fi
4850rm -f conftest.err conftest.$ac_objext
4851 break
4852 done
4853 CC=$ac_save_CC
4854 rm -f conftest.$ac_ext
4855 fi
4856fi
4857echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4858echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4859 if test "$ac_cv_sys_largefile_CC" != no; then
4860 CC=$CC$ac_cv_sys_largefile_CC
4861 fi
4862
4863 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4864echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4865if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4867else
4868 while :; do
4869 ac_cv_sys_file_offset_bits=no
4870 cat >conftest.$ac_ext <<_ACEOF
4871/* confdefs.h. */
4872_ACEOF
4873cat confdefs.h >>conftest.$ac_ext
4874cat >>conftest.$ac_ext <<_ACEOF
4875/* end confdefs.h. */
4876#include <sys/types.h>
4877 /* Check that off_t can represent 2**63 - 1 correctly.
4878 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4879 since some C++ compilers masquerading as C compilers
4880 incorrectly reject 9223372036854775807. */
4881#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4882 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4883 && LARGE_OFF_T % 2147483647 == 1)
4884 ? 1 : -1];
4885int
4886main ()
4887{
4888
4889 ;
4890 return 0;
4891}
4892_ACEOF
4893rm -f conftest.$ac_objext
4894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4895 (eval $ac_compile) 2>conftest.er1
4896 ac_status=$?
4897 grep -v '^ *+' conftest.er1 >conftest.err
4898 rm -f conftest.er1
4899 cat conftest.err >&5
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); } &&
4902 { ac_try='test -z "$ac_c_werror_flag"
4903 || test ! -s conftest.err'
4904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4905 (eval $ac_try) 2>&5
4906 ac_status=$?
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); }; } &&
4909 { ac_try='test -s conftest.$ac_objext'
4910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4911 (eval $ac_try) 2>&5
4912 ac_status=$?
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); }; }; then
4915 break
4916else
4917 echo "$as_me: failed program was:" >&5
4918sed 's/^/| /' conftest.$ac_ext >&5
4919
4920fi
4921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4922 cat >conftest.$ac_ext <<_ACEOF
4923/* confdefs.h. */
4924_ACEOF
4925cat confdefs.h >>conftest.$ac_ext
4926cat >>conftest.$ac_ext <<_ACEOF
4927/* end confdefs.h. */
4928#define _FILE_OFFSET_BITS 64
4929#include <sys/types.h>
4930 /* Check that off_t can represent 2**63 - 1 correctly.
4931 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4932 since some C++ compilers masquerading as C compilers
4933 incorrectly reject 9223372036854775807. */
4934#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4935 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4936 && LARGE_OFF_T % 2147483647 == 1)
4937 ? 1 : -1];
4938int
4939main ()
4940{
4941
4942 ;
4943 return 0;
4944}
4945_ACEOF
4946rm -f conftest.$ac_objext
4947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4948 (eval $ac_compile) 2>conftest.er1
4949 ac_status=$?
4950 grep -v '^ *+' conftest.er1 >conftest.err
4951 rm -f conftest.er1
4952 cat conftest.err >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } &&
4955 { ac_try='test -z "$ac_c_werror_flag"
4956 || test ! -s conftest.err'
4957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4958 (eval $ac_try) 2>&5
4959 ac_status=$?
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); }; } &&
4962 { ac_try='test -s conftest.$ac_objext'
4963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4964 (eval $ac_try) 2>&5
4965 ac_status=$?
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); }; }; then
4968 ac_cv_sys_file_offset_bits=64; break
4969else
4970 echo "$as_me: failed program was:" >&5
4971sed 's/^/| /' conftest.$ac_ext >&5
4972
4973fi
4974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4975 break
4976done
4977fi
4978echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4979echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4980if test "$ac_cv_sys_file_offset_bits" != no; then
4981
4982cat >>confdefs.h <<_ACEOF
4983#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4984_ACEOF
4985
4986fi
4987rm -f conftest*
4988 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4989echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4990if test "${ac_cv_sys_large_files+set}" = set; then
4991 echo $ECHO_N "(cached) $ECHO_C" >&6
4992else
4993 while :; do
4994 ac_cv_sys_large_files=no
4995 cat >conftest.$ac_ext <<_ACEOF
4996/* confdefs.h. */
4997_ACEOF
4998cat confdefs.h >>conftest.$ac_ext
4999cat >>conftest.$ac_ext <<_ACEOF
5000/* end confdefs.h. */
5001#include <sys/types.h>
5002 /* Check that off_t can represent 2**63 - 1 correctly.
5003 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5004 since some C++ compilers masquerading as C compilers
5005 incorrectly reject 9223372036854775807. */
5006#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5007 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5008 && LARGE_OFF_T % 2147483647 == 1)
5009 ? 1 : -1];
5010int
5011main ()
5012{
5013
5014 ;
5015 return 0;
5016}
5017_ACEOF
5018rm -f conftest.$ac_objext
5019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5020 (eval $ac_compile) 2>conftest.er1
5021 ac_status=$?
5022 grep -v '^ *+' conftest.er1 >conftest.err
5023 rm -f conftest.er1
5024 cat conftest.err >&5
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); } &&
5027 { ac_try='test -z "$ac_c_werror_flag"
5028 || test ! -s conftest.err'
5029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5030 (eval $ac_try) 2>&5
5031 ac_status=$?
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); }; } &&
5034 { ac_try='test -s conftest.$ac_objext'
5035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5036 (eval $ac_try) 2>&5
5037 ac_status=$?
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); }; }; then
5040 break
5041else
5042 echo "$as_me: failed program was:" >&5
5043sed 's/^/| /' conftest.$ac_ext >&5
5044
5045fi
5046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5047 cat >conftest.$ac_ext <<_ACEOF
5048/* confdefs.h. */
5049_ACEOF
5050cat confdefs.h >>conftest.$ac_ext
5051cat >>conftest.$ac_ext <<_ACEOF
5052/* end confdefs.h. */
5053#define _LARGE_FILES 1
5054#include <sys/types.h>
5055 /* Check that off_t can represent 2**63 - 1 correctly.
5056 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5057 since some C++ compilers masquerading as C compilers
5058 incorrectly reject 9223372036854775807. */
5059#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5060 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5061 && LARGE_OFF_T % 2147483647 == 1)
5062 ? 1 : -1];
5063int
5064main ()
5065{
5066
5067 ;
5068 return 0;
5069}
5070_ACEOF
5071rm -f conftest.$ac_objext
5072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5073 (eval $ac_compile) 2>conftest.er1
5074 ac_status=$?
5075 grep -v '^ *+' conftest.er1 >conftest.err
5076 rm -f conftest.er1
5077 cat conftest.err >&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); } &&
5080 { ac_try='test -z "$ac_c_werror_flag"
5081 || test ! -s conftest.err'
5082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083 (eval $ac_try) 2>&5
5084 ac_status=$?
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); }; } &&
5087 { ac_try='test -s conftest.$ac_objext'
5088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089 (eval $ac_try) 2>&5
5090 ac_status=$?
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); }; }; then
5093 ac_cv_sys_large_files=1; break
5094else
5095 echo "$as_me: failed program was:" >&5
5096sed 's/^/| /' conftest.$ac_ext >&5
5097
5098fi
5099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5100 break
5101done
5102fi
5103echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5104echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5105if test "$ac_cv_sys_large_files" != no; then
5106
5107cat >>confdefs.h <<_ACEOF
5108#define _LARGE_FILES $ac_cv_sys_large_files
5109_ACEOF
5110
5111fi
5112rm -f conftest*
5113fi
5114
718a6fd8
SE
5115case `pwd` in
5116 *\ * | *\ *)
5117 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5118echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5119esac
d7040cdb
SE
5120
5121
7357c5b6 5122
718a6fd8
SE
5123macro_version='2.2.6'
5124macro_revision='1.3012'
7357c5b6
AM
5125
5126
5127
5128
5129
5130
7357c5b6
AM
5131
5132
5133
5134
5135
5136
5137
718a6fd8 5138ltmain="$ac_aux_dir/ltmain.sh"
7357c5b6
AM
5139
5140echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5141echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5142if test "${lt_cv_path_SED+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5144else
5145 # Loop through the user's path and test for sed and gsed.
5146# Then use that list of sed's as ones to test for truncation.
5147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148for as_dir in $PATH
5149do
5150 IFS=$as_save_IFS
5151 test -z "$as_dir" && as_dir=.
5152 for lt_ac_prog in sed gsed; do
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5155 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5156 fi
5157 done
5158 done
5159done
5160IFS=$as_save_IFS
5161lt_ac_max=0
5162lt_ac_count=0
5163# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5164# along with /bin/sed that truncates output.
5165for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5166 test ! -f $lt_ac_sed && continue
5167 cat /dev/null > conftest.in
5168 lt_ac_count=0
5169 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5170 # Check for GNU sed and select it if it is found.
5171 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5172 lt_cv_path_SED=$lt_ac_sed
5173 break
5174 fi
5175 while true; do
5176 cat conftest.in conftest.in >conftest.tmp
5177 mv conftest.tmp conftest.in
5178 cp conftest.in conftest.nl
5179 echo >>conftest.nl
5180 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5181 cmp -s conftest.out conftest.nl || break
5182 # 10000 chars as input seems more than enough
5183 test $lt_ac_count -gt 10 && break
5184 lt_ac_count=`expr $lt_ac_count + 1`
5185 if test $lt_ac_count -gt $lt_ac_max; then
5186 lt_ac_max=$lt_ac_count
5187 lt_cv_path_SED=$lt_ac_sed
5188 fi
5189 done
5190done
5191
5192fi
5193
5194SED=$lt_cv_path_SED
5195
5196echo "$as_me:$LINENO: result: $SED" >&5
5197echo "${ECHO_T}$SED" >&6
5198
5199test -z "$SED" && SED=sed
5200Xsed="$SED -e 1s/^X//"
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212echo "$as_me:$LINENO: checking for fgrep" >&5
5213echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5214if test "${ac_cv_prog_fgrep+set}" = set; then
5215 echo $ECHO_N "(cached) $ECHO_C" >&6
5216else
5217 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5218 then ac_cv_prog_fgrep='grep -F'
5219 else ac_cv_prog_fgrep='fgrep'
5220 fi
5221fi
5222echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5223echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5224 FGREP=$ac_cv_prog_fgrep
5225
5226
5227test -z "$GREP" && GREP=grep
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247# Check whether --with-gnu-ld or --without-gnu-ld was given.
5248if test "${with_gnu_ld+set}" = set; then
5249 withval="$with_gnu_ld"
5250 test "$withval" = no || with_gnu_ld=yes
5251else
5252 with_gnu_ld=no
5253fi;
5254ac_prog=ld
5255if test "$GCC" = yes; then
5256 # Check if gcc -print-prog-name=ld gives a path.
5257 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5258echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5259 case $host in
5260 *-*-mingw*)
d45dc31f
SE
5261 # gcc leaves a trailing carriage return which upsets mingw
5262 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5263 *)
5264 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5265 esac
5266 case $ac_prog in
5267 # Accept absolute paths.
d7040cdb 5268 [\\/]* | ?:[\\/]*)
d45dc31f 5269 re_direlt='/[^/][^/]*/\.\./'
d7040cdb
SE
5270 # Canonicalize the pathname of ld
5271 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5272 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5273 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
d45dc31f
SE
5274 done
5275 test -z "$LD" && LD="$ac_prog"
5276 ;;
5277 "")
5278 # If it fails, then pretend we aren't using GCC.
5279 ac_prog=ld
5280 ;;
5281 *)
5282 # If it is relative, then search for the first ld in PATH.
5283 with_gnu_ld=unknown
5284 ;;
5285 esac
5286elif test "$with_gnu_ld" = yes; then
5287 echo "$as_me:$LINENO: checking for GNU ld" >&5
5288echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5289else
5290 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5291echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5292fi
5293if test "${lt_cv_path_LD+set}" = set; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
5295else
5296 if test -z "$LD"; then
d7040cdb 5297 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
d45dc31f 5298 for ac_dir in $PATH; do
d7040cdb 5299 IFS="$lt_save_ifs"
d45dc31f
SE
5300 test -z "$ac_dir" && ac_dir=.
5301 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5302 lt_cv_path_LD="$ac_dir/$ac_prog"
5303 # Check to see if the program is GNU ld. I'd rather use --version,
d7040cdb 5304 # but apparently some variants of GNU ld only accept -v.
d45dc31f 5305 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
5306 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5307 *GNU* | *'with BFD'*)
d45dc31f 5308 test "$with_gnu_ld" != no && break
d7040cdb
SE
5309 ;;
5310 *)
d45dc31f 5311 test "$with_gnu_ld" != yes && break
d7040cdb
SE
5312 ;;
5313 esac
d45dc31f
SE
5314 fi
5315 done
d7040cdb 5316 IFS="$lt_save_ifs"
d45dc31f
SE
5317else
5318 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5319fi
5320fi
1ad12f97 5321
d45dc31f
SE
5322LD="$lt_cv_path_LD"
5323if test -n "$LD"; then
5324 echo "$as_me:$LINENO: result: $LD" >&5
5325echo "${ECHO_T}$LD" >&6
5326else
5327 echo "$as_me:$LINENO: result: no" >&5
5328echo "${ECHO_T}no" >&6
5329fi
5330test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5331echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5332 { (exit 1); exit 1; }; }
5333echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5334echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5335if test "${lt_cv_prog_gnu_ld+set}" = set; then
5336 echo $ECHO_N "(cached) $ECHO_C" >&6
5337else
d7040cdb
SE
5338 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5339case `$LD -v 2>&1 </dev/null` in
5340*GNU* | *'with BFD'*)
d45dc31f 5341 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
5342 ;;
5343*)
d45dc31f 5344 lt_cv_prog_gnu_ld=no
d7040cdb
SE
5345 ;;
5346esac
d45dc31f
SE
5347fi
5348echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5349echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5350with_gnu_ld=$lt_cv_prog_gnu_ld
569acd2c 5351
d45dc31f 5352
42ecbf5e 5353
d7040cdb
SE
5354
5355
5356
5357
5358
5359
d7040cdb
SE
5360echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5361echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
d45dc31f
SE
5362if test "${lt_cv_path_NM+set}" = set; then
5363 echo $ECHO_N "(cached) $ECHO_C" >&6
5364else
5365 if test -n "$NM"; then
5366 # Let the user override the test.
5367 lt_cv_path_NM="$NM"
5368else
d7040cdb
SE
5369 lt_nm_to_check="${ac_tool_prefix}nm"
5370 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5371 lt_nm_to_check="$lt_nm_to_check nm"
5372 fi
5373 for lt_tmp_nm in $lt_nm_to_check; do
5374 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5375 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5376 IFS="$lt_save_ifs"
5377 test -z "$ac_dir" && ac_dir=.
5378 tmp_nm="$ac_dir/$lt_tmp_nm"
5379 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5380 # Check to see if the nm accepts a BSD-compat flag.
5381 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5382 # nm: unknown option "B" ignored
5383 # Tru64's nm complains that /dev/null is an invalid object file
5384 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5385 */dev/null* | *'Invalid file or object type'*)
5386 lt_cv_path_NM="$tmp_nm -B"
5387 break
5388 ;;
5389 *)
5390 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5391 */dev/null*)
5392 lt_cv_path_NM="$tmp_nm -p"
5393 break
5394 ;;
5395 *)
5396 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5397 continue # so that we can try to find one that supports BSD flags
5398 ;;
5399 esac
5400 ;;
5401 esac
d45dc31f 5402 fi
d7040cdb
SE
5403 done
5404 IFS="$lt_save_ifs"
d45dc31f 5405 done
d7040cdb 5406 : ${lt_cv_path_NM=no}
d45dc31f 5407fi
a541e3ce 5408fi
d7040cdb
SE
5409echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5410echo "${ECHO_T}$lt_cv_path_NM" >&6
5411if test "$lt_cv_path_NM" != "no"; then
5412 NM="$lt_cv_path_NM"
d45dc31f 5413else
d7040cdb
SE
5414 # Didn't find any BSD compatible name lister, look for dumpbin.
5415 if test -n "$ac_tool_prefix"; then
5416 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5417 do
5418 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5419set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5420echo "$as_me:$LINENO: checking for $ac_word" >&5
5421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5422if test "${ac_cv_prog_DUMPBIN+set}" = set; then
d45dc31f
SE
5423 echo $ECHO_N "(cached) $ECHO_C" >&6
5424else
d7040cdb
SE
5425 if test -n "$DUMPBIN"; then
5426 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5427else
5428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429for as_dir in $PATH
5430do
5431 IFS=$as_save_IFS
5432 test -z "$as_dir" && as_dir=.
5433 for ac_exec_ext in '' $ac_executable_extensions; do
5434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5435 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5437 break 2
5438 fi
5439done
5440done
398ee8f1 5441
d7040cdb
SE
5442fi
5443fi
5444DUMPBIN=$ac_cv_prog_DUMPBIN
5445if test -n "$DUMPBIN"; then
5446 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5447echo "${ECHO_T}$DUMPBIN" >&6
5448else
5449 echo "$as_me:$LINENO: result: no" >&5
5450echo "${ECHO_T}no" >&6
5451fi
d15b04bd 5452
d7040cdb
SE
5453 test -n "$DUMPBIN" && break
5454 done
5455fi
5456if test -z "$DUMPBIN"; then
5457 ac_ct_DUMPBIN=$DUMPBIN
5458 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5459do
5460 # Extract the first word of "$ac_prog", so it can be a program name with args.
5461set dummy $ac_prog; ac_word=$2
5462echo "$as_me:$LINENO: checking for $ac_word" >&5
5463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5464if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5465 echo $ECHO_N "(cached) $ECHO_C" >&6
5466else
5467 if test -n "$ac_ct_DUMPBIN"; then
5468 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5469else
5470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471for as_dir in $PATH
5472do
5473 IFS=$as_save_IFS
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5477 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5479 break 2
d45dc31f 5480 fi
d7040cdb
SE
5481done
5482done
d15b04bd 5483
d7040cdb
SE
5484fi
5485fi
5486ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5487if test -n "$ac_ct_DUMPBIN"; then
5488 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5489echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5490else
5491 echo "$as_me:$LINENO: result: no" >&5
5492echo "${ECHO_T}no" >&6
5493fi
42ecbf5e 5494
d7040cdb
SE
5495 test -n "$ac_ct_DUMPBIN" && break
5496done
5497test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
d45dc31f 5498
d7040cdb
SE
5499 DUMPBIN=$ac_ct_DUMPBIN
5500fi
d45dc31f 5501
d45dc31f 5502
d7040cdb
SE
5503 if test "$DUMPBIN" != ":"; then
5504 NM="$DUMPBIN"
42ecbf5e 5505 fi
d7040cdb
SE
5506fi
5507test -z "$NM" && NM=nm
d45dc31f 5508
42ecbf5e 5509
d15b04bd 5510
42ecbf5e 5511
d45dc31f 5512
42ecbf5e 5513
d7040cdb
SE
5514echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5515echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5516if test "${lt_cv_nm_interface+set}" = set; then
5517 echo $ECHO_N "(cached) $ECHO_C" >&6
5518else
5519 lt_cv_nm_interface="BSD nm"
5520 echo "int some_variable = 0;" > conftest.$ac_ext
e3525117 5521 (eval echo "\"\$as_me:5521: $ac_compile\"" >&5)
d7040cdb
SE
5522 (eval "$ac_compile" 2>conftest.err)
5523 cat conftest.err >&5
e3525117 5524 (eval echo "\"\$as_me:5524: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
d7040cdb
SE
5525 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5526 cat conftest.err >&5
e3525117 5527 (eval echo "\"\$as_me:5527: output\"" >&5)
d7040cdb
SE
5528 cat conftest.out >&5
5529 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5530 lt_cv_nm_interface="MS dumpbin"
5531 fi
5532 rm -f conftest*
42ecbf5e 5533fi
d7040cdb
SE
5534echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5535echo "${ECHO_T}$lt_cv_nm_interface" >&6
42ecbf5e 5536
d7040cdb
SE
5537echo "$as_me:$LINENO: checking whether ln -s works" >&5
5538echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5539LN_S=$as_ln_s
5540if test "$LN_S" = "ln -s"; then
5541 echo "$as_me:$LINENO: result: yes" >&5
5542echo "${ECHO_T}yes" >&6
5543else
5544 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5545echo "${ECHO_T}no, using $LN_S" >&6
5546fi
d45dc31f
SE
5547
5548# find the maximum length of command line arguments
5549echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5550echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5551if test "${lt_cv_sys_max_cmd_len+set}" = set; then
42ecbf5e
DJ
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5553else
d45dc31f
SE
5554 i=0
5555 teststring="ABCD"
5556
5557 case $build_os in
5558 msdosdjgpp*)
5559 # On DJGPP, this test can blow up pretty badly due to problems in libc
5560 # (any single argument exceeding 2000 bytes causes a buffer overrun
5561 # during glob expansion). Even if it were fixed, the result of this
5562 # check would be larger than it should be.
5563 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5564 ;;
5565
d7040cdb
SE
5566 gnu*)
5567 # Under GNU Hurd, this test is not required because there is
5568 # no limit to the length of command line arguments.
5569 # Libtool will interpret -1 as no limit whatsoever
5570 lt_cv_sys_max_cmd_len=-1;
5571 ;;
5572
718a6fd8 5573 cygwin* | mingw* | cegcc*)
d45dc31f
SE
5574 # On Win9x/ME, this test blows up -- it succeeds, but takes
5575 # about 5 minutes as the teststring grows exponentially.
5576 # Worse, since 9x/ME are not pre-emptively multitasking,
5577 # you end up with a "frozen" computer, even though with patience
5578 # the test eventually succeeds (with a max line length of 256k).
5579 # Instead, let's just punt: use the minimum linelength reported by
5580 # all of the supported platforms: 8192 (on NT/2K/XP).
5581 lt_cv_sys_max_cmd_len=8192;
5582 ;;
5583
5584 amigaos*)
5585 # On AmigaOS with pdksh, this test takes hours, literally.
5586 # So we just punt and use a minimum line length of 8192.
5587 lt_cv_sys_max_cmd_len=8192;
5588 ;;
5589
5590 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5591 # This has been around since 386BSD, at least. Likely further.
5592 if test -x /sbin/sysctl; then
5593 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5594 elif test -x /usr/sbin/sysctl; then
5595 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5596 else
d7040cdb 5597 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
d45dc31f
SE
5598 fi
5599 # And add a safety zone
5600 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5601 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5602 ;;
d7040cdb
SE
5603
5604 interix*)
5605 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5606 lt_cv_sys_max_cmd_len=196608
5607 ;;
5608
5609 osf*)
5610 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5611 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5612 # nice to cause kernel panics so lets avoid the loop below.
5613 # First set a reasonable default.
5614 lt_cv_sys_max_cmd_len=16384
5615 #
5616 if test -x /sbin/sysconfig; then
5617 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5618 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5619 esac
5620 fi
5621 ;;
5622 sco3.2v5*)
5623 lt_cv_sys_max_cmd_len=102400
5624 ;;
5625 sysv5* | sco5v6* | sysv4.2uw2*)
5626 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5627 if test -n "$kargmax"; then
5628 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5629 else
5630 lt_cv_sys_max_cmd_len=32768
5631 fi
5632 ;;
5633 *)
718a6fd8
SE
5634 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5635 if test -n "$lt_cv_sys_max_cmd_len"; then
5ba684e2
NC
5636 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5637 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5638 else
5639 # Make teststring a little bigger before we do anything with it.
5640 # a 1K string should be a reasonable start.
5641 for i in 1 2 3 4 5 6 7 8 ; do
5642 teststring=$teststring$teststring
5643 done
5644 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5645 # If test is not a shell built-in, we'll probably end up computing a
5646 # maximum length that is only half of the actual maximum length, but
5647 # we can't tell.
5648 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5649 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5650 test $i != 17 # 1/2 MB should be enough
5651 do
5652 i=`expr $i + 1`
5653 teststring=$teststring$teststring
5654 done
5655 # Only check the string length outside the loop.
5656 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5657 teststring=
5658 # Add a significant safety factor because C++ compilers can tack on
5659 # massive amounts of additional arguments before passing them to the
5660 # linker. It appears as though 1/2 is a usable value.
5661 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5662 fi
d7040cdb 5663 ;;
d45dc31f 5664 esac
42ecbf5e 5665
42ecbf5e
DJ
5666fi
5667
d7040cdb 5668if test -n $lt_cv_sys_max_cmd_len ; then
d45dc31f
SE
5669 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5670echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
252b5132 5671else
d45dc31f
SE
5672 echo "$as_me:$LINENO: result: none" >&5
5673echo "${ECHO_T}none" >&6
252b5132 5674fi
d7040cdb 5675max_cmd_len=$lt_cv_sys_max_cmd_len
e5a52504 5676
d45dc31f 5677
42ecbf5e 5678
d45dc31f 5679
d45dc31f 5680
d7040cdb 5681
d7040cdb
SE
5682: ${CP="cp -f"}
5683: ${MV="mv -f"}
5684: ${RM="rm -f"}
5685
5686echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5687echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5688# Try some XSI features
5689xsi_shell=no
5690( _lt_dummy="a/b/c"
5691 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
718a6fd8
SE
5692 = c,a/b,, \
5693 && eval 'test $(( 1 + 1 )) -eq 2 \
5694 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
d7040cdb
SE
5695 && xsi_shell=yes
5696echo "$as_me:$LINENO: result: $xsi_shell" >&5
5697echo "${ECHO_T}$xsi_shell" >&6
5698
5699
5700echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5701echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5702lt_shell_append=no
5703( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5704 >/dev/null 2>&1 \
5705 && lt_shell_append=yes
5706echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5707echo "${ECHO_T}$lt_shell_append" >&6
5708
5709
5710if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5711 lt_unset=unset
252b5132 5712else
d7040cdb 5713 lt_unset=false
252b5132
RH
5714fi
5715
d7040cdb
SE
5716
5717
5718
5719
5720# test EBCDIC or ASCII
5721case `echo X|tr X '\101'` in
5722 A) # ASCII based system
5723 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5724 lt_SP2NL='tr \040 \012'
5725 lt_NL2SP='tr \015\012 \040\040'
5726 ;;
5727 *) # EBCDIC based system
5728 lt_SP2NL='tr \100 \n'
5729 lt_NL2SP='tr \r\n \100\100'
5730 ;;
5731esac
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5742echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5743if test "${lt_cv_ld_reload_flag+set}" = set; then
42ecbf5e 5744 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5745else
d7040cdb
SE
5746 lt_cv_ld_reload_flag='-r'
5747fi
5748echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5749echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5750reload_flag=$lt_cv_ld_reload_flag
5751case $reload_flag in
5752"" | " "*) ;;
5753*) reload_flag=" $reload_flag" ;;
5754esac
5755reload_cmds='$LD$reload_flag -o $output$reload_objs'
5756case $host_os in
5757 darwin*)
5758 if test "$GCC" = yes; then
5759 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5760 else
5761 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5762 fi
5763 ;;
5764esac
5765
5766
5767
5768
5769
5770
5771
5772
5773
718a6fd8
SE
5774if test -n "$ac_tool_prefix"; then
5775 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5776set dummy ${ac_tool_prefix}objdump; ac_word=$2
5777echo "$as_me:$LINENO: checking for $ac_word" >&5
5778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5779if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5780 echo $ECHO_N "(cached) $ECHO_C" >&6
5781else
5782 if test -n "$OBJDUMP"; then
5783 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5784else
5785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786for as_dir in $PATH
5787do
5788 IFS=$as_save_IFS
5789 test -z "$as_dir" && as_dir=.
5790 for ac_exec_ext in '' $ac_executable_extensions; do
5791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5792 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5794 break 2
5795 fi
5796done
5797done
5798
5799fi
5800fi
5801OBJDUMP=$ac_cv_prog_OBJDUMP
5802if test -n "$OBJDUMP"; then
5803 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5804echo "${ECHO_T}$OBJDUMP" >&6
5805else
5806 echo "$as_me:$LINENO: result: no" >&5
5807echo "${ECHO_T}no" >&6
5808fi
5809
5810fi
5811if test -z "$ac_cv_prog_OBJDUMP"; then
5812 ac_ct_OBJDUMP=$OBJDUMP
5813 # Extract the first word of "objdump", so it can be a program name with args.
5814set dummy objdump; ac_word=$2
5815echo "$as_me:$LINENO: checking for $ac_word" >&5
5816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5817if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5818 echo $ECHO_N "(cached) $ECHO_C" >&6
5819else
5820 if test -n "$ac_ct_OBJDUMP"; then
5821 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5822else
5823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824for as_dir in $PATH
5825do
5826 IFS=$as_save_IFS
5827 test -z "$as_dir" && as_dir=.
5828 for ac_exec_ext in '' $ac_executable_extensions; do
5829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5830 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5832 break 2
5833 fi
5834done
5835done
5836
5837 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5838fi
5839fi
5840ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5841if test -n "$ac_ct_OBJDUMP"; then
5842 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5843echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5844else
5845 echo "$as_me:$LINENO: result: no" >&5
5846echo "${ECHO_T}no" >&6
5847fi
5848
5849 OBJDUMP=$ac_ct_OBJDUMP
5850else
5851 OBJDUMP="$ac_cv_prog_OBJDUMP"
5852fi
5853
5854test -z "$OBJDUMP" && OBJDUMP=objdump
5855
5856
5857
5858
5859
5860
5861
5862
d7040cdb
SE
5863
5864echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5865echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5866if test "${lt_cv_deplibs_check_method+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5868else
5869 lt_cv_file_magic_cmd='$MAGIC_CMD'
5870lt_cv_file_magic_test_file=
5871lt_cv_deplibs_check_method='unknown'
5872# Need to set the preceding variable on all platforms that support
5873# interlibrary dependencies.
5874# 'none' -- dependencies not supported.
5875# `unknown' -- same as none, but documents that we really don't know.
5876# 'pass_all' -- all dependencies passed with no checks.
5877# 'test_compile' -- check by making test program.
5878# 'file_magic [[regex]]' -- check by looking for files in library path
5879# which responds to the $file_magic_cmd with a given extended regex.
5880# If you have `file' or equivalent on your system and you're not sure
5881# whether `pass_all' will *always* work, you probably want this one.
5882
5883case $host_os in
50e7d84b 5884aix[4-9]*)
d7040cdb
SE
5885 lt_cv_deplibs_check_method=pass_all
5886 ;;
5887
5888beos*)
5889 lt_cv_deplibs_check_method=pass_all
5890 ;;
5891
5892bsdi[45]*)
5893 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5894 lt_cv_file_magic_cmd='/usr/bin/file -L'
5895 lt_cv_file_magic_test_file=/shlib/libc.so
5896 ;;
5897
5898cygwin*)
5899 # func_win32_libid is a shell function defined in ltmain.sh
5900 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5901 lt_cv_file_magic_cmd='func_win32_libid'
5902 ;;
5903
5904mingw* | pw32*)
5905 # Base MSYS/MinGW do not provide the 'file' command needed by
5906 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5907 # unless we find 'file', for example because we are cross-compiling.
5908 if ( file / ) >/dev/null 2>&1; then
5909 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5910 lt_cv_file_magic_cmd='func_win32_libid'
5911 else
5912 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5913 lt_cv_file_magic_cmd='$OBJDUMP -f'
5914 fi
5915 ;;
5916
718a6fd8
SE
5917cegcc)
5918 # use the weaker test based on 'objdump'. See mingw*.
5919 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5920 lt_cv_file_magic_cmd='$OBJDUMP -f'
5921 ;;
5922
d7040cdb
SE
5923darwin* | rhapsody*)
5924 lt_cv_deplibs_check_method=pass_all
d45dc31f 5925 ;;
d7040cdb
SE
5926
5927freebsd* | dragonfly*)
5928 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5929 case $host_cpu in
5930 i*86 )
5931 # Not sure whether the presence of OpenBSD here was a mistake.
5932 # Let's accept both of them until this is cleared up.
5933 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5934 lt_cv_file_magic_cmd=/usr/bin/file
5935 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5936 ;;
5937 esac
5938 else
5939 lt_cv_deplibs_check_method=pass_all
5940 fi
5941 ;;
5942
5943gnu*)
5944 lt_cv_deplibs_check_method=pass_all
d45dc31f 5945 ;;
d7040cdb
SE
5946
5947hpux10.20* | hpux11*)
5948 lt_cv_file_magic_cmd=/usr/bin/file
5949 case $host_cpu in
5950 ia64*)
5951 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5952 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5953 ;;
5954 hppa*64*)
5955 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]'
5956 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5957 ;;
d45dc31f 5958 *)
d7040cdb
SE
5959 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5960 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5961 ;;
5962 esac
5963 ;;
42ecbf5e 5964
d7040cdb
SE
5965interix[3-9]*)
5966 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5967 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5968 ;;
42ecbf5e 5969
d7040cdb
SE
5970irix5* | irix6* | nonstopux*)
5971 case $LD in
5972 *-32|*"-32 ") libmagic=32-bit;;
5973 *-n32|*"-n32 ") libmagic=N32;;
5974 *-64|*"-64 ") libmagic=64-bit;;
5975 *) libmagic=never-match;;
5976 esac
5977 lt_cv_deplibs_check_method=pass_all
d45dc31f 5978 ;;
42ecbf5e 5979
d7040cdb 5980# This must be Linux ELF.
58e24671 5981linux* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb
SE
5982 lt_cv_deplibs_check_method=pass_all
5983 ;;
252b5132 5984
d7040cdb
SE
5985netbsd*)
5986 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5987 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d45dc31f 5988 else
d7040cdb 5989 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
d45dc31f 5990 fi
d7040cdb
SE
5991 ;;
5992
5993newos6*)
5994 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5995 lt_cv_file_magic_cmd=/usr/bin/file
5996 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5997 ;;
5998
5999*nto* | *qnx*)
6000 lt_cv_deplibs_check_method=pass_all
6001 ;;
42ecbf5e 6002
d7040cdb
SE
6003openbsd*)
6004 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6005 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6006 else
6007 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d45dc31f
SE
6008 fi
6009 ;;
d7040cdb
SE
6010
6011osf3* | osf4* | osf5*)
6012 lt_cv_deplibs_check_method=pass_all
6013 ;;
6014
6015rdos*)
6016 lt_cv_deplibs_check_method=pass_all
6017 ;;
6018
6019solaris*)
6020 lt_cv_deplibs_check_method=pass_all
6021 ;;
6022
6023sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6024 lt_cv_deplibs_check_method=pass_all
6025 ;;
6026
6027sysv4 | sysv4.3*)
6028 case $host_vendor in
6029 motorola)
6030 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]'
6031 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6032 ;;
6033 ncr)
6034 lt_cv_deplibs_check_method=pass_all
6035 ;;
6036 sequent)
6037 lt_cv_file_magic_cmd='/bin/file'
6038 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6039 ;;
6040 sni)
6041 lt_cv_file_magic_cmd='/bin/file'
6042 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6043 lt_cv_file_magic_test_file=/lib/libc.so
6044 ;;
6045 siemens)
6046 lt_cv_deplibs_check_method=pass_all
6047 ;;
6048 pc)
6049 lt_cv_deplibs_check_method=pass_all
6050 ;;
6051 esac
6052 ;;
6053
6054tpf*)
6055 lt_cv_deplibs_check_method=pass_all
6056 ;;
d45dc31f 6057esac
42ecbf5e 6058
d7040cdb
SE
6059fi
6060echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6061echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6062file_magic_cmd=$lt_cv_file_magic_cmd
6063deplibs_check_method=$lt_cv_deplibs_check_method
6064test -z "$deplibs_check_method" && deplibs_check_method=unknown
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
d45dc31f 6077if test -n "$ac_tool_prefix"; then
d7040cdb
SE
6078 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6079set dummy ${ac_tool_prefix}ar; ac_word=$2
d45dc31f
SE
6080echo "$as_me:$LINENO: checking for $ac_word" >&5
6081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 6082if test "${ac_cv_prog_AR+set}" = set; then
d45dc31f 6083 echo $ECHO_N "(cached) $ECHO_C" >&6
42ecbf5e 6084else
d7040cdb
SE
6085 if test -n "$AR"; then
6086 ac_cv_prog_AR="$AR" # Let the user override the test.
d45dc31f
SE
6087else
6088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089for as_dir in $PATH
6090do
6091 IFS=$as_save_IFS
6092 test -z "$as_dir" && as_dir=.
6093 for ac_exec_ext in '' $ac_executable_extensions; do
6094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 6095 ac_cv_prog_AR="${ac_tool_prefix}ar"
d45dc31f
SE
6096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6097 break 2
6098 fi
6099done
6100done
42ecbf5e 6101
42ecbf5e 6102fi
d45dc31f 6103fi
d7040cdb
SE
6104AR=$ac_cv_prog_AR
6105if test -n "$AR"; then
6106 echo "$as_me:$LINENO: result: $AR" >&5
6107echo "${ECHO_T}$AR" >&6
d45dc31f
SE
6108else
6109 echo "$as_me:$LINENO: result: no" >&5
6110echo "${ECHO_T}no" >&6
6111fi
42ecbf5e
DJ
6112
6113fi
d7040cdb
SE
6114if test -z "$ac_cv_prog_AR"; then
6115 ac_ct_AR=$AR
6116 # Extract the first word of "ar", so it can be a program name with args.
6117set dummy ar; ac_word=$2
d45dc31f
SE
6118echo "$as_me:$LINENO: checking for $ac_word" >&5
6119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 6120if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
42ecbf5e
DJ
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6122else
d7040cdb
SE
6123 if test -n "$ac_ct_AR"; then
6124 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
42ecbf5e 6125else
d45dc31f
SE
6126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127for as_dir in $PATH
6128do
6129 IFS=$as_save_IFS
6130 test -z "$as_dir" && as_dir=.
6131 for ac_exec_ext in '' $ac_executable_extensions; do
6132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 6133 ac_cv_prog_ac_ct_AR="ar"
d45dc31f
SE
6134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6135 break 2
6136 fi
6137done
6138done
42ecbf5e 6139
d7040cdb 6140 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
42ecbf5e 6141fi
42ecbf5e 6142fi
d7040cdb
SE
6143ac_ct_AR=$ac_cv_prog_ac_ct_AR
6144if test -n "$ac_ct_AR"; then
6145 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6146echo "${ECHO_T}$ac_ct_AR" >&6
252b5132 6147else
d45dc31f
SE
6148 echo "$as_me:$LINENO: result: no" >&5
6149echo "${ECHO_T}no" >&6
252b5132 6150fi
252b5132 6151
d7040cdb 6152 AR=$ac_ct_AR
d45dc31f 6153else
d7040cdb 6154 AR="$ac_cv_prog_AR"
d45dc31f 6155fi
42ecbf5e 6156
d7040cdb
SE
6157test -z "$AR" && AR=ar
6158test -z "$AR_FLAGS" && AR_FLAGS=cru
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
d45dc31f
SE
6170if test -n "$ac_tool_prefix"; then
6171 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6172set dummy ${ac_tool_prefix}strip; ac_word=$2
6173echo "$as_me:$LINENO: checking for $ac_word" >&5
6174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6175if test "${ac_cv_prog_STRIP+set}" = set; then
6176 echo $ECHO_N "(cached) $ECHO_C" >&6
6177else
6178 if test -n "$STRIP"; then
6179 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6180else
6181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182for as_dir in $PATH
42ecbf5e 6183do
d45dc31f
SE
6184 IFS=$as_save_IFS
6185 test -z "$as_dir" && as_dir=.
6186 for ac_exec_ext in '' $ac_executable_extensions; do
6187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6188 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6190 break 2
6191 fi
6192done
6193done
6194
6195fi
6196fi
6197STRIP=$ac_cv_prog_STRIP
6198if test -n "$STRIP"; then
6199 echo "$as_me:$LINENO: result: $STRIP" >&5
6200echo "${ECHO_T}$STRIP" >&6
252b5132 6201else
d45dc31f
SE
6202 echo "$as_me:$LINENO: result: no" >&5
6203echo "${ECHO_T}no" >&6
6204fi
42ecbf5e 6205
252b5132 6206fi
d45dc31f
SE
6207if test -z "$ac_cv_prog_STRIP"; then
6208 ac_ct_STRIP=$STRIP
6209 # Extract the first word of "strip", so it can be a program name with args.
6210set dummy strip; ac_word=$2
6211echo "$as_me:$LINENO: checking for $ac_word" >&5
6212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6213if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6215else
6216 if test -n "$ac_ct_STRIP"; then
6217 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6218else
6219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220for as_dir in $PATH
6221do
6222 IFS=$as_save_IFS
6223 test -z "$as_dir" && as_dir=.
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6226 ac_cv_prog_ac_ct_STRIP="strip"
6227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6228 break 2
6229 fi
6230done
42ecbf5e 6231done
42ecbf5e 6232
d45dc31f
SE
6233 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6234fi
6235fi
6236ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6237if test -n "$ac_ct_STRIP"; then
6238 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6239echo "${ECHO_T}$ac_ct_STRIP" >&6
6240else
6241 echo "$as_me:$LINENO: result: no" >&5
6242echo "${ECHO_T}no" >&6
252b5132 6243fi
e5a52504 6244
d45dc31f
SE
6245 STRIP=$ac_ct_STRIP
6246else
6247 STRIP="$ac_cv_prog_STRIP"
6248fi
e5a52504 6249
d7040cdb 6250test -z "$STRIP" && STRIP=:
d45dc31f 6251
d45dc31f
SE
6252
6253
d45dc31f 6254
d45dc31f
SE
6255
6256
d7040cdb
SE
6257if test -n "$ac_tool_prefix"; then
6258 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6259set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6260echo "$as_me:$LINENO: checking for $ac_word" >&5
6261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6262if test "${ac_cv_prog_RANLIB+set}" = set; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
d45dc31f 6264else
d7040cdb
SE
6265 if test -n "$RANLIB"; then
6266 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6267else
6268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269for as_dir in $PATH
6270do
6271 IFS=$as_save_IFS
6272 test -z "$as_dir" && as_dir=.
6273 for ac_exec_ext in '' $ac_executable_extensions; do
6274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6275 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6277 break 2
d45dc31f 6278 fi
d7040cdb
SE
6279done
6280done
d45dc31f 6281
d7040cdb
SE
6282fi
6283fi
6284RANLIB=$ac_cv_prog_RANLIB
6285if test -n "$RANLIB"; then
6286 echo "$as_me:$LINENO: result: $RANLIB" >&5
6287echo "${ECHO_T}$RANLIB" >&6
6288else
6289 echo "$as_me:$LINENO: result: no" >&5
6290echo "${ECHO_T}no" >&6
6291fi
d45dc31f 6292
d7040cdb
SE
6293fi
6294if test -z "$ac_cv_prog_RANLIB"; then
6295 ac_ct_RANLIB=$RANLIB
6296 # Extract the first word of "ranlib", so it can be a program name with args.
6297set dummy ranlib; ac_word=$2
6298echo "$as_me:$LINENO: checking for $ac_word" >&5
6299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6300if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6301 echo $ECHO_N "(cached) $ECHO_C" >&6
6302else
6303 if test -n "$ac_ct_RANLIB"; then
6304 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6305else
6306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307for as_dir in $PATH
6308do
6309 IFS=$as_save_IFS
6310 test -z "$as_dir" && as_dir=.
6311 for ac_exec_ext in '' $ac_executable_extensions; do
6312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6313 ac_cv_prog_ac_ct_RANLIB="ranlib"
6314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6315 break 2
d45dc31f 6316 fi
d7040cdb
SE
6317done
6318done
d45dc31f 6319
d7040cdb
SE
6320 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6321fi
6322fi
6323ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6324if test -n "$ac_ct_RANLIB"; then
6325 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6326echo "${ECHO_T}$ac_ct_RANLIB" >&6
d15b04bd 6327else
d7040cdb
SE
6328 echo "$as_me:$LINENO: result: no" >&5
6329echo "${ECHO_T}no" >&6
6330fi
252b5132 6331
d7040cdb
SE
6332 RANLIB=$ac_ct_RANLIB
6333else
6334 RANLIB="$ac_cv_prog_RANLIB"
6335fi
d45dc31f 6336
d7040cdb 6337test -z "$RANLIB" && RANLIB=:
d45dc31f 6338
d45dc31f 6339
d45dc31f 6340
42ecbf5e 6341
e5a52504 6342
d7040cdb
SE
6343
6344# Determine commands to create old-style static archives.
718a6fd8 6345old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
d7040cdb
SE
6346old_postinstall_cmds='chmod 644 $oldlib'
6347old_postuninstall_cmds=
6348
6349if test -n "$RANLIB"; then
6350 case $host_os in
6351 openbsd*)
6352 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6353 ;;
6354 *)
6355 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6356 ;;
6357 esac
6358 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d45dc31f 6359fi
d45dc31f
SE
6360
6361
d45dc31f
SE
6362
6363
d15b04bd 6364
3e321448 6365
d45dc31f 6366
d45dc31f 6367
d45dc31f
SE
6368
6369
d45dc31f 6370
d45dc31f 6371
d45dc31f
SE
6372
6373
6374
6375
6376
6377
6378
d45dc31f 6379
d45dc31f 6380
d45dc31f 6381
d45dc31f 6382
d45dc31f 6383
d45dc31f 6384
d45dc31f 6385
d45dc31f 6386
3e321448
L
6387
6388
d45dc31f
SE
6389
6390
d45dc31f
SE
6391
6392
d45dc31f 6393
d7040cdb
SE
6394# If no C compiler was specified, use CC.
6395LTCC=${LTCC-"$CC"}
42ecbf5e 6396
d7040cdb
SE
6397# If no C compiler flags were specified, use CFLAGS.
6398LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
e5a52504 6399
d7040cdb
SE
6400# Allow CC to be a program name with arguments.
6401compiler=$CC
d15b04bd 6402
d7040cdb
SE
6403
6404# Check for command to grab the raw symbol name followed by C symbol from nm.
6405echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6406echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6407if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
42ecbf5e 6408 echo $ECHO_N "(cached) $ECHO_C" >&6
d15b04bd 6409else
d7040cdb
SE
6410
6411# These are sane defaults that work on at least a few old systems.
6412# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6413
6414# Character class describing NM global symbol codes.
6415symcode='[BCDEGRST]'
6416
6417# Regexp to match symbols that can be accessed directly from C.
6418sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6419
6420# Define system-specific variables.
6421case $host_os in
6422aix*)
6423 symcode='[BCDT]'
6424 ;;
718a6fd8 6425cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
6426 symcode='[ABCDGISTW]'
6427 ;;
6428hpux*)
6429 if test "$host_cpu" = ia64; then
6430 symcode='[ABCDEGRST]'
42ecbf5e 6431 fi
d7040cdb
SE
6432 ;;
6433irix* | nonstopux*)
6434 symcode='[BCDEGRST]'
6435 ;;
6436osf*)
6437 symcode='[BCDEGQRST]'
6438 ;;
6439solaris*)
6440 symcode='[BDRT]'
6441 ;;
6442sco3.2v5*)
6443 symcode='[DT]'
6444 ;;
6445sysv4.2uw2*)
6446 symcode='[DT]'
6447 ;;
6448sysv5* | sco5v6* | unixware* | OpenUNIX*)
6449 symcode='[ABDT]'
6450 ;;
6451sysv4)
6452 symcode='[DFNSTU]'
6453 ;;
6454esac
d15b04bd 6455
d7040cdb
SE
6456# If we're using GNU nm, then use its standard symbol codes.
6457case `$NM -V 2>&1` in
6458*GNU* | *'with BFD'*)
6459 symcode='[ABCDGIRSTW]' ;;
6460esac
e5a52504 6461
d7040cdb
SE
6462# Transform an extracted symbol line into a proper C declaration.
6463# Some systems (esp. on ia64) link data and code symbols differently,
7357c5b6
AM
6464# so use this general approach.
6465lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
d7040cdb 6466
7357c5b6
AM
6467# Transform an extracted symbol line into symbol name and symbol address
6468lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
718a6fd8 6469lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
d7040cdb 6470
7357c5b6
AM
6471# Handle CRLF in mingw tool chain
6472opt_cr=
6473case $build_os in
6474mingw*)
6475 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6476 ;;
6477esac
d7040cdb 6478
7357c5b6
AM
6479# Try without a prefix underscore, then with it.
6480for ac_symprfx in "" "_"; do
d7040cdb 6481
7357c5b6
AM
6482 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6483 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 6484
7357c5b6
AM
6485 # Write the raw and C identifiers.
6486 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6487 # Fake it for dumpbin and say T for any non-static function
6488 # and D for any global variable.
6489 # Also find C++ and __fastcall symbols from MSVC++,
6490 # which start with @ or ?.
6491 lt_cv_sys_global_symbol_pipe="$AWK '"\
6492" {last_section=section; section=\$ 3};"\
6493" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6494" \$ 0!~/External *\|/{next};"\
6495" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6496" {if(hide[section]) next};"\
6497" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6498" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6499" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6500" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6501" ' prfx=^$ac_symprfx"
6502 else
6503 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6504 fi
6505
6506 # Check to see that the pipe works correctly.
6507 pipe_works=no
6508
6509 rm -f conftest*
6510 cat > conftest.$ac_ext <<_LT_EOF
6511#ifdef __cplusplus
6512extern "C" {
6513#endif
6514char nm_test_var;
6515void nm_test_func(void);
6516void nm_test_func(void){}
6517#ifdef __cplusplus
d7040cdb 6518}
7357c5b6
AM
6519#endif
6520int main(){nm_test_var='a';nm_test_func();return(0);}
6521_LT_EOF
6522
6523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6524 (eval $ac_compile) 2>&5
42ecbf5e
DJ
6525 ac_status=$?
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357c5b6
AM
6527 (exit $ac_status); }; then
6528 # Now try to grab the symbols.
6529 nlist=conftest.nm
6530 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6531 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
42ecbf5e
DJ
6532 ac_status=$?
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357c5b6
AM
6534 (exit $ac_status); } && test -s "$nlist"; then
6535 # Try sorting and uniquifying the output.
6536 if sort "$nlist" | uniq > "$nlist"T; then
6537 mv -f "$nlist"T "$nlist"
6538 else
6539 rm -f "$nlist"T
6540 fi
d7040cdb 6541
7357c5b6
AM
6542 # Make sure that we snagged all the symbols we need.
6543 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6544 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6545 cat <<_LT_EOF > conftest.$ac_ext
6546#ifdef __cplusplus
6547extern "C" {
6548#endif
e5a52504 6549
7357c5b6
AM
6550_LT_EOF
6551 # Now generate the symbol file.
6552 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7148cc28 6553
7357c5b6 6554 cat <<_LT_EOF >> conftest.$ac_ext
d7040cdb 6555
7357c5b6
AM
6556/* The mapping between symbol names and symbols. */
6557const struct {
6558 const char *name;
6559 void *address;
6560}
6561lt__PROGRAM__LTX_preloaded_symbols[] =
6562{
6563 { "@PROGRAM@", (void *) 0 },
6564_LT_EOF
6565 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6566 cat <<\_LT_EOF >> conftest.$ac_ext
6567 {0, (void *) 0}
6568};
d7040cdb 6569
7357c5b6
AM
6570/* This works around a problem in FreeBSD linker */
6571#ifdef FREEBSD_WORKAROUND
6572static const void *lt_preloaded_setup() {
6573 return lt__PROGRAM__LTX_preloaded_symbols;
6574}
d7040cdb
SE
6575#endif
6576
7357c5b6 6577#ifdef __cplusplus
d7040cdb 6578}
7357c5b6
AM
6579#endif
6580_LT_EOF
6581 # Now try linking the two files.
6582 mv conftest.$ac_objext conftstm.$ac_objext
6583 lt_save_LIBS="$LIBS"
6584 lt_save_CFLAGS="$CFLAGS"
6585 LIBS="conftstm.$ac_objext"
6586 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
d7040cdb
SE
6588 (eval $ac_link) 2>&5
6589 ac_status=$?
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357c5b6
AM
6591 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6592 pipe_works=yes
6593 fi
6594 LIBS="$lt_save_LIBS"
6595 CFLAGS="$lt_save_CFLAGS"
6596 else
6597 echo "cannot find nm_test_func in $nlist" >&5
6598 fi
6599 else
6600 echo "cannot find nm_test_var in $nlist" >&5
6601 fi
6602 else
6603 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6604 fi
6605 else
6606 echo "$progname: failed program was:" >&5
6607 cat conftest.$ac_ext >&5
6608 fi
718a6fd8 6609 rm -rf conftest* conftst*
7357c5b6
AM
6610
6611 # Do not use the global_symbol_pipe unless it works.
6612 if test "$pipe_works" = yes; then
6613 break
6614 else
6615 lt_cv_sys_global_symbol_pipe=
6616 fi
6617done
d7040cdb 6618
d7040cdb 6619fi
7357c5b6
AM
6620
6621if test -z "$lt_cv_sys_global_symbol_pipe"; then
6622 lt_cv_sys_global_symbol_to_cdecl=
d7040cdb 6623fi
7357c5b6
AM
6624if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6625 echo "$as_me:$LINENO: result: failed" >&5
6626echo "${ECHO_T}failed" >&6
6627else
6628 echo "$as_me:$LINENO: result: ok" >&5
6629echo "${ECHO_T}ok" >&6
d7040cdb 6630fi
20e95c23 6631
20e95c23
DJ
6632
6633
20e95c23
DJ
6634
6635
20e95c23 6636
20e95c23 6637
20e95c23 6638
20e95c23 6639
20e95c23 6640
20e95c23
DJ
6641
6642
7357c5b6
AM
6643
6644
6645
718a6fd8
SE
6646
6647
6648
6649
6650
7357c5b6
AM
6651
6652
6653# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6654if test "${enable_libtool_lock+set}" = set; then
6655 enableval="$enable_libtool_lock"
6656
6657fi;
6658test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6659
6660# Some flags need to be propagated to the compiler or linker for good
6661# libtool support.
6662case $host in
6663ia64-*-hpux*)
6664 # Find out which ABI we are using.
6665 echo 'int i;' > conftest.$ac_ext
6666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6667 (eval $ac_compile) 2>&5
6668 ac_status=$?
6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); }; then
6671 case `/usr/bin/file conftest.$ac_objext` in
6672 *ELF-32*)
6673 HPUX_IA64_MODE="32"
6674 ;;
6675 *ELF-64*)
6676 HPUX_IA64_MODE="64"
6677 ;;
6678 esac
6679 fi
6680 rm -rf conftest*
6681 ;;
6682*-*-irix6*)
6683 # Find out which ABI we are using.
e3525117 6684 echo '#line 6684 "configure"' > conftest.$ac_ext
7357c5b6
AM
6685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6686 (eval $ac_compile) 2>&5
6687 ac_status=$?
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); }; then
6690 if test "$lt_cv_prog_gnu_ld" = yes; then
6691 case `/usr/bin/file conftest.$ac_objext` in
6692 *32-bit*)
6693 LD="${LD-ld} -melf32bsmip"
6694 ;;
6695 *N32*)
6696 LD="${LD-ld} -melf32bmipn32"
6697 ;;
6698 *64-bit*)
6699 LD="${LD-ld} -melf64bmip"
6700 ;;
6701 esac
6702 else
6703 case `/usr/bin/file conftest.$ac_objext` in
6704 *32-bit*)
6705 LD="${LD-ld} -32"
6706 ;;
6707 *N32*)
6708 LD="${LD-ld} -n32"
6709 ;;
6710 *64-bit*)
6711 LD="${LD-ld} -64"
6712 ;;
6713 esac
6714 fi
6715 fi
6716 rm -rf conftest*
6717 ;;
6718
6719x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6720s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6721 # Find out which ABI we are using.
6722 echo 'int i;' > conftest.$ac_ext
6723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6724 (eval $ac_compile) 2>&5
6725 ac_status=$?
6726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); }; then
6728 case `/usr/bin/file conftest.o` in
6729 *32-bit*)
6730 case $host in
6731 x86_64-*kfreebsd*-gnu)
6732 LD="${LD-ld} -m elf_i386_fbsd"
6733 ;;
6734 x86_64-*linux*)
6735 LD="${LD-ld} -m elf_i386"
6736 ;;
6737 ppc64-*linux*|powerpc64-*linux*)
6738 LD="${LD-ld} -m elf32ppclinux"
6739 ;;
6740 s390x-*linux*)
6741 LD="${LD-ld} -m elf_s390"
6742 ;;
6743 sparc64-*linux*)
6744 LD="${LD-ld} -m elf32_sparc"
6745 ;;
6746 esac
6747 ;;
6748 *64-bit*)
6749 case $host in
6750 x86_64-*kfreebsd*-gnu)
6751 LD="${LD-ld} -m elf_x86_64_fbsd"
6752 ;;
6753 x86_64-*linux*)
6754 LD="${LD-ld} -m elf_x86_64"
6755 ;;
6756 ppc*-*linux*|powerpc*-*linux*)
6757 LD="${LD-ld} -m elf64ppc"
6758 ;;
6759 s390*-*linux*|s390*-*tpf*)
6760 LD="${LD-ld} -m elf64_s390"
6761 ;;
6762 sparc*-*linux*)
6763 LD="${LD-ld} -m elf64_sparc"
6764 ;;
6765 esac
6766 ;;
6767 esac
6768 fi
6769 rm -rf conftest*
6770 ;;
6771
6772*-*-sco3.2v5*)
6773 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6774 SAVE_CFLAGS="$CFLAGS"
6775 CFLAGS="$CFLAGS -belf"
6776 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6777echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6778if test "${lt_cv_cc_needs_belf+set}" = set; then
d7040cdb
SE
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
6780else
7357c5b6
AM
6781 ac_ext=c
6782ac_cpp='$CPP $CPPFLAGS'
6783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6785ac_compiler_gnu=$ac_cv_c_compiler_gnu
6786
6787 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
6788/* confdefs.h. */
6789_ACEOF
6790cat confdefs.h >>conftest.$ac_ext
6791cat >>conftest.$ac_ext <<_ACEOF
6792/* end confdefs.h. */
20e95c23 6793
7357c5b6
AM
6794int
6795main ()
6796{
6797
6798 ;
6799 return 0;
6800}
d7040cdb 6801_ACEOF
7357c5b6
AM
6802rm -f conftest.$ac_objext conftest$ac_exeext
6803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6804 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
6805 ac_status=$?
6806 grep -v '^ *+' conftest.er1 >conftest.err
6807 rm -f conftest.er1
6808 cat conftest.err >&5
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); } &&
7357c5b6
AM
6811 { ac_try='test -z "$ac_c_werror_flag"
6812 || test ! -s conftest.err'
d7040cdb
SE
6813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6814 (eval $ac_try) 2>&5
6815 ac_status=$?
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); }; } &&
7357c5b6 6818 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
6819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820 (eval $ac_try) 2>&5
6821 ac_status=$?
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); }; }; then
7357c5b6 6824 lt_cv_cc_needs_belf=yes
d15b04bd 6825else
d7040cdb
SE
6826 echo "$as_me: failed program was:" >&5
6827sed 's/^/| /' conftest.$ac_ext >&5
20e95c23 6828
7357c5b6 6829lt_cv_cc_needs_belf=no
d7040cdb 6830fi
7357c5b6
AM
6831rm -f conftest.err conftest.$ac_objext \
6832 conftest$ac_exeext conftest.$ac_ext
6833 ac_ext=c
6834ac_cpp='$CPP $CPPFLAGS'
6835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6837ac_compiler_gnu=$ac_cv_c_compiler_gnu
20e95c23 6838
718a6fd8
SE
6839fi
6840echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6841echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6842 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6843 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6844 CFLAGS="$SAVE_CFLAGS"
6845 fi
6846 ;;
6847sparc*-*solaris*)
6848 # Find out which ABI we are using.
6849 echo 'int i;' > conftest.$ac_ext
6850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6851 (eval $ac_compile) 2>&5
6852 ac_status=$?
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); }; then
6855 case `/usr/bin/file conftest.o` in
6856 *64-bit*)
6857 case $lt_cv_prog_gnu_ld in
6858 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6859 *)
6860 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6861 LD="${LD-ld} -64"
6862 fi
6863 ;;
6864 esac
6865 ;;
6866 esac
6867 fi
6868 rm -rf conftest*
6869 ;;
6870esac
6871
6872need_locks="$enable_libtool_lock"
6873
6874
6875 case $host_os in
6876 rhapsody* | darwin*)
6877 if test -n "$ac_tool_prefix"; then
6878 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6879set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6880echo "$as_me:$LINENO: checking for $ac_word" >&5
6881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6882if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6884else
6885 if test -n "$DSYMUTIL"; then
6886 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6887else
6888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889for as_dir in $PATH
6890do
6891 IFS=$as_save_IFS
6892 test -z "$as_dir" && as_dir=.
6893 for ac_exec_ext in '' $ac_executable_extensions; do
6894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6895 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6897 break 2
6898 fi
6899done
6900done
6901
6902fi
6903fi
6904DSYMUTIL=$ac_cv_prog_DSYMUTIL
6905if test -n "$DSYMUTIL"; then
6906 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6907echo "${ECHO_T}$DSYMUTIL" >&6
6908else
6909 echo "$as_me:$LINENO: result: no" >&5
6910echo "${ECHO_T}no" >&6
6911fi
6912
6913fi
6914if test -z "$ac_cv_prog_DSYMUTIL"; then
6915 ac_ct_DSYMUTIL=$DSYMUTIL
6916 # Extract the first word of "dsymutil", so it can be a program name with args.
6917set dummy dsymutil; ac_word=$2
6918echo "$as_me:$LINENO: checking for $ac_word" >&5
6919echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6920if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6921 echo $ECHO_N "(cached) $ECHO_C" >&6
6922else
6923 if test -n "$ac_ct_DSYMUTIL"; then
6924 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6925else
6926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927for as_dir in $PATH
6928do
6929 IFS=$as_save_IFS
6930 test -z "$as_dir" && as_dir=.
6931 for ac_exec_ext in '' $ac_executable_extensions; do
6932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6933 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6935 break 2
6936 fi
6937done
6938done
6939
6940 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6941fi
6942fi
6943ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6944if test -n "$ac_ct_DSYMUTIL"; then
6945 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6946echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6947else
6948 echo "$as_me:$LINENO: result: no" >&5
6949echo "${ECHO_T}no" >&6
6950fi
6951
6952 DSYMUTIL=$ac_ct_DSYMUTIL
6953else
6954 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6955fi
6956
6957 if test -n "$ac_tool_prefix"; then
6958 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6959set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6960echo "$as_me:$LINENO: checking for $ac_word" >&5
6961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6962if test "${ac_cv_prog_NMEDIT+set}" = set; then
6963 echo $ECHO_N "(cached) $ECHO_C" >&6
6964else
6965 if test -n "$NMEDIT"; then
6966 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6967else
6968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6969for as_dir in $PATH
6970do
6971 IFS=$as_save_IFS
6972 test -z "$as_dir" && as_dir=.
6973 for ac_exec_ext in '' $ac_executable_extensions; do
6974 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6975 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6977 break 2
6978 fi
6979done
6980done
6981
6982fi
6983fi
6984NMEDIT=$ac_cv_prog_NMEDIT
6985if test -n "$NMEDIT"; then
6986 echo "$as_me:$LINENO: result: $NMEDIT" >&5
6987echo "${ECHO_T}$NMEDIT" >&6
6988else
6989 echo "$as_me:$LINENO: result: no" >&5
6990echo "${ECHO_T}no" >&6
6991fi
6992
6993fi
6994if test -z "$ac_cv_prog_NMEDIT"; then
6995 ac_ct_NMEDIT=$NMEDIT
6996 # Extract the first word of "nmedit", so it can be a program name with args.
6997set dummy nmedit; ac_word=$2
6998echo "$as_me:$LINENO: checking for $ac_word" >&5
6999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7000if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
7002else
7003 if test -n "$ac_ct_NMEDIT"; then
7004 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7005else
7006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007for as_dir in $PATH
7008do
7009 IFS=$as_save_IFS
7010 test -z "$as_dir" && as_dir=.
7011 for ac_exec_ext in '' $ac_executable_extensions; do
7012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7013 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7015 break 2
7016 fi
7017done
7018done
7019
7020 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
7021fi
7022fi
7023ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7024if test -n "$ac_ct_NMEDIT"; then
7025 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7026echo "${ECHO_T}$ac_ct_NMEDIT" >&6
7027else
7028 echo "$as_me:$LINENO: result: no" >&5
7029echo "${ECHO_T}no" >&6
7030fi
7031
7032 NMEDIT=$ac_ct_NMEDIT
7033else
7034 NMEDIT="$ac_cv_prog_NMEDIT"
7035fi
7036
7037 if test -n "$ac_tool_prefix"; then
7038 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7039set dummy ${ac_tool_prefix}lipo; ac_word=$2
7040echo "$as_me:$LINENO: checking for $ac_word" >&5
7041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7042if test "${ac_cv_prog_LIPO+set}" = set; then
7043 echo $ECHO_N "(cached) $ECHO_C" >&6
7044else
7045 if test -n "$LIPO"; then
7046 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7047else
7048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049for as_dir in $PATH
7050do
7051 IFS=$as_save_IFS
7052 test -z "$as_dir" && as_dir=.
7053 for ac_exec_ext in '' $ac_executable_extensions; do
7054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7055 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7057 break 2
7058 fi
7059done
7060done
7061
7062fi
7063fi
7064LIPO=$ac_cv_prog_LIPO
7065if test -n "$LIPO"; then
7066 echo "$as_me:$LINENO: result: $LIPO" >&5
7067echo "${ECHO_T}$LIPO" >&6
7068else
7069 echo "$as_me:$LINENO: result: no" >&5
7070echo "${ECHO_T}no" >&6
7071fi
7072
7073fi
7074if test -z "$ac_cv_prog_LIPO"; then
7075 ac_ct_LIPO=$LIPO
7076 # Extract the first word of "lipo", so it can be a program name with args.
7077set dummy lipo; ac_word=$2
7078echo "$as_me:$LINENO: checking for $ac_word" >&5
7079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7080if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7081 echo $ECHO_N "(cached) $ECHO_C" >&6
7082else
7083 if test -n "$ac_ct_LIPO"; then
7084 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7085else
7086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087for as_dir in $PATH
7088do
7089 IFS=$as_save_IFS
7090 test -z "$as_dir" && as_dir=.
7091 for ac_exec_ext in '' $ac_executable_extensions; do
7092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7093 ac_cv_prog_ac_ct_LIPO="lipo"
7094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7095 break 2
7096 fi
7097done
7098done
7099
7100 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
7101fi
7102fi
7103ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7104if test -n "$ac_ct_LIPO"; then
7105 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7106echo "${ECHO_T}$ac_ct_LIPO" >&6
7107else
7108 echo "$as_me:$LINENO: result: no" >&5
7109echo "${ECHO_T}no" >&6
7110fi
7111
7112 LIPO=$ac_ct_LIPO
7113else
7114 LIPO="$ac_cv_prog_LIPO"
7115fi
7116
7117 if test -n "$ac_tool_prefix"; then
7118 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7119set dummy ${ac_tool_prefix}otool; ac_word=$2
7120echo "$as_me:$LINENO: checking for $ac_word" >&5
7121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7122if test "${ac_cv_prog_OTOOL+set}" = set; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7124else
7125 if test -n "$OTOOL"; then
7126 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7127else
7128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129for as_dir in $PATH
7130do
7131 IFS=$as_save_IFS
7132 test -z "$as_dir" && as_dir=.
7133 for ac_exec_ext in '' $ac_executable_extensions; do
7134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7135 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7137 break 2
7138 fi
7139done
7140done
7141
7142fi
7143fi
7144OTOOL=$ac_cv_prog_OTOOL
7145if test -n "$OTOOL"; then
7146 echo "$as_me:$LINENO: result: $OTOOL" >&5
7147echo "${ECHO_T}$OTOOL" >&6
7148else
7149 echo "$as_me:$LINENO: result: no" >&5
7150echo "${ECHO_T}no" >&6
7151fi
7152
7153fi
7154if test -z "$ac_cv_prog_OTOOL"; then
7155 ac_ct_OTOOL=$OTOOL
7156 # Extract the first word of "otool", so it can be a program name with args.
7157set dummy otool; ac_word=$2
7158echo "$as_me:$LINENO: checking for $ac_word" >&5
7159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7160if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7161 echo $ECHO_N "(cached) $ECHO_C" >&6
7162else
7163 if test -n "$ac_ct_OTOOL"; then
7164 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7165else
7166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167for as_dir in $PATH
7168do
7169 IFS=$as_save_IFS
7170 test -z "$as_dir" && as_dir=.
7171 for ac_exec_ext in '' $ac_executable_extensions; do
7172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7173 ac_cv_prog_ac_ct_OTOOL="otool"
7174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7175 break 2
7176 fi
7177done
7178done
7179
7180 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
7181fi
7182fi
7183ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7184if test -n "$ac_ct_OTOOL"; then
7185 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7186echo "${ECHO_T}$ac_ct_OTOOL" >&6
7187else
7188 echo "$as_me:$LINENO: result: no" >&5
7189echo "${ECHO_T}no" >&6
7190fi
7191
7192 OTOOL=$ac_ct_OTOOL
7193else
7194 OTOOL="$ac_cv_prog_OTOOL"
7195fi
7196
7197 if test -n "$ac_tool_prefix"; then
7198 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7199set dummy ${ac_tool_prefix}otool64; ac_word=$2
7200echo "$as_me:$LINENO: checking for $ac_word" >&5
7201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7202if test "${ac_cv_prog_OTOOL64+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
7204else
7205 if test -n "$OTOOL64"; then
7206 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7207else
7208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209for as_dir in $PATH
7210do
7211 IFS=$as_save_IFS
7212 test -z "$as_dir" && as_dir=.
7213 for ac_exec_ext in '' $ac_executable_extensions; do
7214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7215 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7217 break 2
7218 fi
7219done
7220done
7221
7222fi
7223fi
7224OTOOL64=$ac_cv_prog_OTOOL64
7225if test -n "$OTOOL64"; then
7226 echo "$as_me:$LINENO: result: $OTOOL64" >&5
7227echo "${ECHO_T}$OTOOL64" >&6
7228else
7229 echo "$as_me:$LINENO: result: no" >&5
7230echo "${ECHO_T}no" >&6
7231fi
7232
7233fi
7234if test -z "$ac_cv_prog_OTOOL64"; then
7235 ac_ct_OTOOL64=$OTOOL64
7236 # Extract the first word of "otool64", so it can be a program name with args.
7237set dummy otool64; ac_word=$2
7238echo "$as_me:$LINENO: checking for $ac_word" >&5
7239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7240if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7241 echo $ECHO_N "(cached) $ECHO_C" >&6
7242else
7243 if test -n "$ac_ct_OTOOL64"; then
7244 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7245else
7246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247for as_dir in $PATH
7248do
7249 IFS=$as_save_IFS
7250 test -z "$as_dir" && as_dir=.
7251 for ac_exec_ext in '' $ac_executable_extensions; do
7252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7253 ac_cv_prog_ac_ct_OTOOL64="otool64"
7254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7255 break 2
7256 fi
7257done
7258done
7259
7260 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
7261fi
7262fi
7263ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7264if test -n "$ac_ct_OTOOL64"; then
7265 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7266echo "${ECHO_T}$ac_ct_OTOOL64" >&6
7267else
7268 echo "$as_me:$LINENO: result: no" >&5
7269echo "${ECHO_T}no" >&6
7270fi
7271
7272 OTOOL64=$ac_ct_OTOOL64
7273else
7274 OTOOL64="$ac_cv_prog_OTOOL64"
7275fi
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7304echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
7305if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7307else
7308 lt_cv_apple_cc_single_mod=no
7309 if test -z "${LT_MULTI_MODULE}"; then
7310 # By default we will add the -single_module flag. You can override
7311 # by either setting the environment variable LT_MULTI_MODULE
7312 # non-empty at configure time, or by adding -multi_module to the
7313 # link flags.
7314 rm -rf libconftest.dylib*
7315 echo "int foo(void){return 1;}" > conftest.c
7316 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7317-dynamiclib -Wl,-single_module conftest.c" >&5
7318 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7319 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7320 _lt_result=$?
7321 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7322 lt_cv_apple_cc_single_mod=yes
7323 else
7324 cat conftest.err >&5
7325 fi
7326 rm -rf libconftest.dylib*
7327 rm -f conftest.*
7328 fi
7329fi
7330echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7331echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
7332 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7333echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
7334if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7335 echo $ECHO_N "(cached) $ECHO_C" >&6
7336else
7337 lt_cv_ld_exported_symbols_list=no
7338 save_LDFLAGS=$LDFLAGS
7339 echo "_main" > conftest.sym
7340 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7341 cat >conftest.$ac_ext <<_ACEOF
7342/* confdefs.h. */
7343_ACEOF
7344cat confdefs.h >>conftest.$ac_ext
7345cat >>conftest.$ac_ext <<_ACEOF
7346/* end confdefs.h. */
7347
7348int
7349main ()
7350{
7351
7352 ;
7353 return 0;
7354}
7355_ACEOF
7356rm -f conftest.$ac_objext conftest$ac_exeext
7357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7358 (eval $ac_link) 2>conftest.er1
7359 ac_status=$?
7360 grep -v '^ *+' conftest.er1 >conftest.err
7361 rm -f conftest.er1
7362 cat conftest.err >&5
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); } &&
7365 { ac_try='test -z "$ac_c_werror_flag"
7366 || test ! -s conftest.err'
7367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7368 (eval $ac_try) 2>&5
7369 ac_status=$?
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); }; } &&
7372 { ac_try='test -s conftest$ac_exeext'
7373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7374 (eval $ac_try) 2>&5
7375 ac_status=$?
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); }; }; then
7378 lt_cv_ld_exported_symbols_list=yes
7379else
7380 echo "$as_me: failed program was:" >&5
7381sed 's/^/| /' conftest.$ac_ext >&5
7382
7383lt_cv_ld_exported_symbols_list=no
7384fi
7385rm -f conftest.err conftest.$ac_objext \
7386 conftest$ac_exeext conftest.$ac_ext
7387 LDFLAGS="$save_LDFLAGS"
7388
7389fi
7390echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7391echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
7392 case $host_os in
7393 rhapsody* | darwin1.[012])
7394 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7395 darwin1.*)
7396 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7397 darwin*) # darwin 5.x on
7398 # if running on 10.5 or later, the deployment target defaults
7399 # to the OS version, if on x86, and 10.4, the deployment
7400 # target defaults to 10.4. Don't you love it?
7401 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7402 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7403 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7404 10.[012]*)
7405 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7406 10.*)
7407 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7408 esac
7409 ;;
7410 esac
7411 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7412 _lt_dar_single_mod='$single_module'
7413 fi
7414 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7415 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7416 else
7417 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7418 fi
7419 if test "$DSYMUTIL" != ":"; then
7420 _lt_dsymutil='~$DSYMUTIL $lib || :'
7421 else
7422 _lt_dsymutil=
7423 fi
7424 ;;
7425 esac
7426
7427
7428for ac_header in dlfcn.h
7429do
7430as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7431echo "$as_me:$LINENO: checking for $ac_header" >&5
7432echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7433if eval "test \"\${$as_ac_Header+set}\" = set"; then
7434 echo $ECHO_N "(cached) $ECHO_C" >&6
7435else
7436 cat >conftest.$ac_ext <<_ACEOF
7437/* confdefs.h. */
7438_ACEOF
7439cat confdefs.h >>conftest.$ac_ext
7440cat >>conftest.$ac_ext <<_ACEOF
7441/* end confdefs.h. */
7442$ac_includes_default
7443
7444#include <$ac_header>
7445_ACEOF
7446rm -f conftest.$ac_objext
7447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7448 (eval $ac_compile) 2>conftest.er1
7449 ac_status=$?
7450 grep -v '^ *+' conftest.er1 >conftest.err
7451 rm -f conftest.er1
7452 cat conftest.err >&5
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); } &&
7455 { ac_try='test -z "$ac_c_werror_flag"
7456 || test ! -s conftest.err'
7457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7458 (eval $ac_try) 2>&5
7459 ac_status=$?
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); }; } &&
7462 { ac_try='test -s conftest.$ac_objext'
7463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7464 (eval $ac_try) 2>&5
7465 ac_status=$?
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); }; }; then
7468 eval "$as_ac_Header=yes"
7469else
7470 echo "$as_me: failed program was:" >&5
7471sed 's/^/| /' conftest.$ac_ext >&5
7472
7473eval "$as_ac_Header=no"
7474fi
7475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7476fi
7477echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7478echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7479if test `eval echo '${'$as_ac_Header'}'` = yes; then
7480 cat >>confdefs.h <<_ACEOF
7481#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7482_ACEOF
7483
7484fi
7485
7486done
7487
7488
7489
7490# Set options
7491
7492
7493
7494 enable_dlopen=no
7495
7496
7497 enable_win32_dll=no
7498
7499
7500 # Check whether --enable-shared or --disable-shared was given.
7501if test "${enable_shared+set}" = set; then
7502 enableval="$enable_shared"
7503 p=${PACKAGE-default}
7504 case $enableval in
7505 yes) enable_shared=yes ;;
7506 no) enable_shared=no ;;
7507 *)
7508 enable_shared=no
7509 # Look at the argument we got. We use all the common list separators.
7510 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7511 for pkg in $enableval; do
7512 IFS="$lt_save_ifs"
7513 if test "X$pkg" = "X$p"; then
7514 enable_shared=yes
7515 fi
7516 done
7517 IFS="$lt_save_ifs"
7518 ;;
7519 esac
7520else
7521 enable_shared=yes
7522fi;
7523
7524
7525
7526
7527
7528
7529
7530
7531 # Check whether --enable-static or --disable-static was given.
7532if test "${enable_static+set}" = set; then
7533 enableval="$enable_static"
7534 p=${PACKAGE-default}
7535 case $enableval in
7536 yes) enable_static=yes ;;
7537 no) enable_static=no ;;
7538 *)
7539 enable_static=no
7540 # Look at the argument we got. We use all the common list separators.
7541 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7542 for pkg in $enableval; do
7543 IFS="$lt_save_ifs"
7544 if test "X$pkg" = "X$p"; then
7545 enable_static=yes
7546 fi
7547 done
7548 IFS="$lt_save_ifs"
7549 ;;
7550 esac
7551else
7552 enable_static=yes
7553fi;
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563# Check whether --with-pic or --without-pic was given.
7564if test "${with_pic+set}" = set; then
7565 withval="$with_pic"
7566 pic_mode="$withval"
7567else
7568 pic_mode=default
7569fi;
7570
7571test -z "$pic_mode" && pic_mode=default
7572
7573
7574
7575
7576
7577
7578
7579 # Check whether --enable-fast-install or --disable-fast-install was given.
7580if test "${enable_fast_install+set}" = set; then
7581 enableval="$enable_fast_install"
7582 p=${PACKAGE-default}
7583 case $enableval in
7584 yes) enable_fast_install=yes ;;
7585 no) enable_fast_install=no ;;
7586 *)
7587 enable_fast_install=no
7588 # Look at the argument we got. We use all the common list separators.
7589 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7590 for pkg in $enableval; do
7591 IFS="$lt_save_ifs"
7592 if test "X$pkg" = "X$p"; then
7593 enable_fast_install=yes
7594 fi
7595 done
7596 IFS="$lt_save_ifs"
7357c5b6
AM
7597 ;;
7598 esac
718a6fd8
SE
7599else
7600 enable_fast_install=yes
7601fi;
20e95c23 7602
20e95c23
DJ
7603
7604
42ecbf5e 7605
d7040cdb 7606
20e95c23 7607
d7040cdb 7608
d7040cdb
SE
7609
7610
7611
7612# This can be used to rebuild libtool when needed
7613LIBTOOL_DEPS="$ltmain"
7614
7615# Always use our own libtool.
7616LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642test -z "$LN_S" && LN_S="ln -s"
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657if test -n "${ZSH_VERSION+set}" ; then
7658 setopt NO_GLOB_SUBST
7659fi
7660
7661echo "$as_me:$LINENO: checking for objdir" >&5
7662echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7663if test "${lt_cv_objdir+set}" = set; then
20e95c23
DJ
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7665else
d7040cdb
SE
7666 rm -f .libs 2>/dev/null
7667mkdir .libs 2>/dev/null
7668if test -d .libs; then
7669 lt_cv_objdir=.libs
42ecbf5e 7670else
d7040cdb
SE
7671 # MS-DOS does not allow filenames that begin with a dot.
7672 lt_cv_objdir=_libs
7673fi
7674rmdir .libs 2>/dev/null
42ecbf5e 7675fi
d7040cdb
SE
7676echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7677echo "${ECHO_T}$lt_cv_objdir" >&6
7678objdir=$lt_cv_objdir
42ecbf5e 7679
d7040cdb
SE
7680
7681
7682
7683
7684cat >>confdefs.h <<_ACEOF
7685#define LT_OBJDIR "$lt_cv_objdir/"
7686_ACEOF
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704case $host_os in
7705aix3*)
7706 # AIX sometimes has problems with the GCC collect2 program. For some
7707 # reason, if we set the COLLECT_NAMES environment variable, the problems
7708 # vanish in a puff of smoke.
7709 if test "X${COLLECT_NAMES+set}" != Xset; then
7710 COLLECT_NAMES=
7711 export COLLECT_NAMES
7712 fi
7713 ;;
7714esac
7715
7716# Sed substitution that helps us do robust quoting. It backslashifies
7717# metacharacters that are still active within double-quoted strings.
7718sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7719
7720# Same as above, but do not quote variable references.
7721double_quote_subst='s/\(["`\\]\)/\\\1/g'
7722
7723# Sed substitution to delay expansion of an escaped shell variable in a
7724# double_quote_subst'ed string.
7725delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7726
7727# Sed substitution to delay expansion of an escaped single quote.
7728delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7729
7730# Sed substitution to avoid accidental globbing in evaled expressions
7731no_glob_subst='s/\*/\\\*/g'
7732
7733# Global variables:
7734ofile=libtool
7735can_build_shared=yes
7736
7737# All known linkers require a `.a' archive for static linking (except MSVC,
7738# which needs '.lib').
7739libext=a
7740
7741with_gnu_ld="$lt_cv_prog_gnu_ld"
7742
7743old_CC="$CC"
7744old_CFLAGS="$CFLAGS"
7745
7746# Set sane defaults for various variables
7747test -z "$CC" && CC=cc
7748test -z "$LTCC" && LTCC=$CC
7749test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7750test -z "$LD" && LD=ld
7751test -z "$ac_objext" && ac_objext=o
7752
7753for cc_temp in $compiler""; do
7754 case $cc_temp in
7755 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7756 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7757 \-*) ;;
7758 *) break;;
7759 esac
7760done
7761cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7762
7763
7764# Only perform the check for file, if the check method requires it
7765test -z "$MAGIC_CMD" && MAGIC_CMD=file
7766case $deplibs_check_method in
7767file_magic*)
7768 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7769 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7770echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7771if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
42ecbf5e
DJ
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7773else
d7040cdb
SE
7774 case $MAGIC_CMD in
7775[\\/*] | ?:[\\/]*)
7776 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
20e95c23 7777 ;;
d7040cdb
SE
7778*)
7779 lt_save_MAGIC_CMD="$MAGIC_CMD"
7780 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7781 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7782 for ac_dir in $ac_dummy; do
7783 IFS="$lt_save_ifs"
7784 test -z "$ac_dir" && ac_dir=.
7785 if test -f $ac_dir/${ac_tool_prefix}file; then
7786 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7787 if test -n "$file_magic_test_file"; then
7788 case $deplibs_check_method in
7789 "file_magic "*)
7790 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7791 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7792 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7793 $EGREP "$file_magic_regex" > /dev/null; then
7794 :
7795 else
7796 cat <<_LT_EOF 1>&2
42ecbf5e 7797
d7040cdb
SE
7798*** Warning: the command libtool uses to detect shared libraries,
7799*** $file_magic_cmd, produces output that libtool cannot recognize.
7800*** The result is that libtool may fail to recognize shared libraries
7801*** as such. This will affect the creation of libtool libraries that
7802*** depend on shared libraries, but programs linked with such libtool
7803*** libraries will work regardless of this problem. Nevertheless, you
7804*** may want to report the problem to your system manager and/or to
7805*** bug-libtool@gnu.org
7806
7807_LT_EOF
7808 fi ;;
7809 esac
7810 fi
7811 break
7812 fi
7813 done
7814 IFS="$lt_save_ifs"
7815 MAGIC_CMD="$lt_save_MAGIC_CMD"
20e95c23
DJ
7816 ;;
7817esac
42ecbf5e 7818fi
20e95c23 7819
d7040cdb
SE
7820MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7821if test -n "$MAGIC_CMD"; then
7822 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7823echo "${ECHO_T}$MAGIC_CMD" >&6
42ecbf5e
DJ
7824else
7825 echo "$as_me:$LINENO: result: no" >&5
7826echo "${ECHO_T}no" >&6
7827fi
7828
20e95c23
DJ
7829
7830
42ecbf5e 7831
20e95c23 7832
d7040cdb
SE
7833if test -z "$lt_cv_path_MAGIC_CMD"; then
7834 if test -n "$ac_tool_prefix"; then
7835 echo "$as_me:$LINENO: checking for file" >&5
7836echo $ECHO_N "checking for file... $ECHO_C" >&6
7837if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
42ecbf5e
DJ
7838 echo $ECHO_N "(cached) $ECHO_C" >&6
7839else
d7040cdb
SE
7840 case $MAGIC_CMD in
7841[\\/*] | ?:[\\/]*)
7842 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7843 ;;
7844*)
7845 lt_save_MAGIC_CMD="$MAGIC_CMD"
7846 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7847 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7848 for ac_dir in $ac_dummy; do
7849 IFS="$lt_save_ifs"
7850 test -z "$ac_dir" && ac_dir=.
7851 if test -f $ac_dir/file; then
7852 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7853 if test -n "$file_magic_test_file"; then
7854 case $deplibs_check_method in
7855 "file_magic "*)
7856 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7857 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7858 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7859 $EGREP "$file_magic_regex" > /dev/null; then
7860 :
7861 else
7862 cat <<_LT_EOF 1>&2
7863
7864*** Warning: the command libtool uses to detect shared libraries,
7865*** $file_magic_cmd, produces output that libtool cannot recognize.
7866*** The result is that libtool may fail to recognize shared libraries
7867*** as such. This will affect the creation of libtool libraries that
7868*** depend on shared libraries, but programs linked with such libtool
7869*** libraries will work regardless of this problem. Nevertheless, you
7870*** may want to report the problem to your system manager and/or to
7871*** bug-libtool@gnu.org
7872
7873_LT_EOF
7874 fi ;;
7875 esac
7876 fi
7877 break
7878 fi
7879 done
7880 IFS="$lt_save_ifs"
7881 MAGIC_CMD="$lt_save_MAGIC_CMD"
7882 ;;
20e95c23
DJ
7883esac
7884fi
d7040cdb
SE
7885
7886MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7887if test -n "$MAGIC_CMD"; then
7888 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7889echo "${ECHO_T}$MAGIC_CMD" >&6
20e95c23
DJ
7890else
7891 echo "$as_me:$LINENO: result: no" >&5
7892echo "${ECHO_T}no" >&6
7893fi
7894
20e95c23 7895
42ecbf5e 7896 else
d7040cdb 7897 MAGIC_CMD=:
42ecbf5e 7898 fi
42ecbf5e 7899fi
42ecbf5e 7900
20e95c23 7901 fi
d7040cdb
SE
7902 ;;
7903esac
42ecbf5e 7904
d7040cdb 7905# Use C for the default configuration in the libtool script
42ecbf5e 7906
d7040cdb
SE
7907lt_save_CC="$CC"
7908ac_ext=c
7909ac_cpp='$CPP $CPPFLAGS'
7910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7912ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e 7913
42ecbf5e 7914
d7040cdb
SE
7915# Source file extension for C test sources.
7916ac_ext=c
42ecbf5e 7917
d7040cdb
SE
7918# Object file extension for compiled C test sources.
7919objext=o
7920objext=$objext
42ecbf5e 7921
d7040cdb
SE
7922# Code to be used in simple compile tests
7923lt_simple_compile_test_code="int some_variable = 0;"
42ecbf5e 7924
d7040cdb
SE
7925# Code to be used in simple link tests
7926lt_simple_link_test_code='int main(){return(0);}'
42ecbf5e 7927
ac48eca1 7928
42ecbf5e 7929
42ecbf5e 7930
d5fbea21 7931
d5fbea21
DJ
7932
7933
d7040cdb
SE
7934# If no C compiler was specified, use CC.
7935LTCC=${LTCC-"$CC"}
20e95c23 7936
d7040cdb
SE
7937# If no C compiler flags were specified, use CFLAGS.
7938LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
42ecbf5e 7939
d7040cdb
SE
7940# Allow CC to be a program name with arguments.
7941compiler=$CC
252b5132 7942
d7040cdb
SE
7943# Save the default compiler, since it gets overwritten when the other
7944# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7945compiler_DEFAULT=$CC
42ecbf5e 7946
d7040cdb
SE
7947# save warnings/boilerplate of simple test code
7948ac_outfile=conftest.$ac_objext
7949echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7950eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7951_lt_compiler_boilerplate=`cat conftest.err`
7952$RM conftest*
252b5132 7953
d7040cdb
SE
7954ac_outfile=conftest.$ac_objext
7955echo "$lt_simple_link_test_code" >conftest.$ac_ext
7956eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7957_lt_linker_boilerplate=`cat conftest.err`
718a6fd8 7958$RM -r conftest*
252b5132 7959
42ecbf5e 7960
d7040cdb
SE
7961## CAVEAT EMPTOR:
7962## There is no encapsulation within the following macros, do not change
7963## the running order or otherwise move them around unless you know exactly
7964## what you are doing...
7965if test -n "$compiler"; then
252b5132 7966
d7040cdb 7967lt_prog_compiler_no_builtin_flag=
252b5132 7968
d7040cdb
SE
7969if test "$GCC" = yes; then
7970 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
d15b04bd 7971
d7040cdb
SE
7972 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7973echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7974if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20e95c23 7975 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7976else
d7040cdb
SE
7977 lt_cv_prog_compiler_rtti_exceptions=no
7978 ac_outfile=conftest.$ac_objext
7979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7980 lt_compiler_flag="-fno-rtti -fno-exceptions"
7981 # Insert the option either (1) after the last *FLAGS variable, or
7982 # (2) before a word containing "conftest.", or (3) at the end.
7983 # Note that $ac_compile itself does not contain backslashes and begins
7984 # with a dollar sign (not a hyphen), so the echo should work correctly.
7985 # The option is referenced via a variable to avoid confusing sed.
7986 lt_compile=`echo "$ac_compile" | $SED \
7987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7989 -e 's:$: $lt_compiler_flag:'`
e3525117 7990 (eval echo "\"\$as_me:7990: $lt_compile\"" >&5)
d7040cdb
SE
7991 (eval "$lt_compile" 2>conftest.err)
7992 ac_status=$?
7993 cat conftest.err >&5
e3525117 7994 echo "$as_me:7994: \$? = $ac_status" >&5
d7040cdb
SE
7995 if (exit $ac_status) && test -s "$ac_outfile"; then
7996 # The compiler can only warn and ignore the option if not recognized
7997 # So say no if there are warnings other than the usual output.
7998 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7999 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8000 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8001 lt_cv_prog_compiler_rtti_exceptions=yes
8002 fi
8003 fi
8004 $RM conftest*
42ecbf5e 8005
252b5132 8006fi
d7040cdb
SE
8007echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8008echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8009
8010if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8011 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
20e95c23 8012else
d7040cdb 8013 :
252b5132 8014fi
252b5132
RH
8015
8016fi
d7040cdb
SE
8017
8018
8019
8020
8021
8022
8023 lt_prog_compiler_wl=
8024lt_prog_compiler_pic=
8025lt_prog_compiler_static=
8026
8027echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8028echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8029
8030 if test "$GCC" = yes; then
8031 lt_prog_compiler_wl='-Wl,'
8032 lt_prog_compiler_static='-static'
8033
8034 case $host_os in
8035 aix*)
8036 # All AIX code is PIC.
8037 if test "$host_cpu" = ia64; then
8038 # AIX 5 now supports IA64 processor
8039 lt_prog_compiler_static='-Bstatic'
8040 fi
8041 ;;
8042
8043 amigaos*)
718a6fd8
SE
8044 case $host_cpu in
8045 powerpc)
8046 # see comment about AmigaOS4 .so support
8047 lt_prog_compiler_pic='-fPIC'
8048 ;;
8049 m68k)
8050 # FIXME: we need at least 68020 code to build shared libraries, but
8051 # adding the `-m68020' flag to GCC prevents building anything better,
8052 # like `-m68040'.
8053 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8054 ;;
8055 esac
d7040cdb
SE
8056 ;;
8057
8058 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8059 # PIC is the default for these OSes.
8060 ;;
8061
718a6fd8 8062 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
8063 # This hack is so that the source file can tell whether it is being
8064 # built for inclusion in a dll (and should export symbols for example).
8065 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8066 # (--disable-auto-import) libraries
8067 lt_prog_compiler_pic='-DDLL_EXPORT'
8068 ;;
8069
8070 darwin* | rhapsody*)
8071 # PIC is the default on this platform
8072 # Common symbols not allowed in MH_DYLIB files
8073 lt_prog_compiler_pic='-fno-common'
8074 ;;
8075
8076 hpux*)
718a6fd8
SE
8077 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8078 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8079 # sets the default TLS model and affects inlining.
d7040cdb 8080 case $host_cpu in
718a6fd8 8081 hppa*64*)
d7040cdb
SE
8082 # +Z the default
8083 ;;
8084 *)
8085 lt_prog_compiler_pic='-fPIC'
8086 ;;
8087 esac
8088 ;;
8089
8090 interix[3-9]*)
8091 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8092 # Instead, we relocate shared libraries at runtime.
8093 ;;
8094
8095 msdosdjgpp*)
8096 # Just because we use GCC doesn't mean we suddenly get shared libraries
8097 # on systems that don't support them.
8098 lt_prog_compiler_can_build_shared=no
8099 enable_shared=no
8100 ;;
8101
8102 *nto* | *qnx*)
8103 # QNX uses GNU C++, but need to define -shared option too, otherwise
8104 # it will coredump.
8105 lt_prog_compiler_pic='-fPIC -shared'
8106 ;;
8107
8108 sysv4*MP*)
8109 if test -d /usr/nec; then
8110 lt_prog_compiler_pic=-Kconform_pic
8111 fi
8112 ;;
8113
8114 *)
8115 lt_prog_compiler_pic='-fPIC'
8116 ;;
8117 esac
8118 else
8119 # PORTME Check for flag to pass linker flags through the system compiler.
8120 case $host_os in
8121 aix*)
8122 lt_prog_compiler_wl='-Wl,'
8123 if test "$host_cpu" = ia64; then
8124 # AIX 5 now supports IA64 processor
8125 lt_prog_compiler_static='-Bstatic'
8126 else
8127 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8128 fi
8129 ;;
d7040cdb 8130
718a6fd8 8131 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
8132 # This hack is so that the source file can tell whether it is being
8133 # built for inclusion in a dll (and should export symbols for example).
8134 lt_prog_compiler_pic='-DDLL_EXPORT'
8135 ;;
8136
8137 hpux9* | hpux10* | hpux11*)
8138 lt_prog_compiler_wl='-Wl,'
8139 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8140 # not for PA HP-UX.
8141 case $host_cpu in
8142 hppa*64*|ia64*)
8143 # +Z the default
8144 ;;
8145 *)
8146 lt_prog_compiler_pic='+Z'
8147 ;;
8148 esac
8149 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8150 lt_prog_compiler_static='${wl}-a ${wl}archive'
8151 ;;
8152
8153 irix5* | irix6* | nonstopux*)
8154 lt_prog_compiler_wl='-Wl,'
8155 # PIC (with -KPIC) is the default.
8156 lt_prog_compiler_static='-non_shared'
8157 ;;
8158
58e24671 8159 linux* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb 8160 case $cc_basename in
718a6fd8
SE
8161 # old Intel for x86_64 which still supported -KPIC.
8162 ecc*)
d7040cdb
SE
8163 lt_prog_compiler_wl='-Wl,'
8164 lt_prog_compiler_pic='-KPIC'
8165 lt_prog_compiler_static='-static'
8166 ;;
718a6fd8
SE
8167 # icc used to be incompatible with GCC.
8168 # ICC 10 doesn't accept -KPIC any more.
8169 icc* | ifort*)
8170 lt_prog_compiler_wl='-Wl,'
8171 lt_prog_compiler_pic='-fPIC'
8172 lt_prog_compiler_static='-static'
8173 ;;
8174 # Lahey Fortran 8.1.
8175 lf95*)
8176 lt_prog_compiler_wl='-Wl,'
8177 lt_prog_compiler_pic='--shared'
8178 lt_prog_compiler_static='--static'
8179 ;;
d7040cdb
SE
8180 pgcc* | pgf77* | pgf90* | pgf95*)
8181 # Portland Group compilers (*not* the Pentium gcc compiler,
8182 # which looks to be a dead project)
8183 lt_prog_compiler_wl='-Wl,'
8184 lt_prog_compiler_pic='-fpic'
8185 lt_prog_compiler_static='-Bstatic'
8186 ;;
8187 ccc*)
8188 lt_prog_compiler_wl='-Wl,'
8189 # All Alpha code is PIC.
8190 lt_prog_compiler_static='-non_shared'
8191 ;;
718a6fd8
SE
8192 xl*)
8193 # IBM XL C 8.0/Fortran 10.1 on PPC
8194 lt_prog_compiler_wl='-Wl,'
8195 lt_prog_compiler_pic='-qpic'
8196 lt_prog_compiler_static='-qstaticlink'
8197 ;;
d7040cdb
SE
8198 *)
8199 case `$CC -V 2>&1 | sed 5q` in
8200 *Sun\ C*)
8201 # Sun C 5.9
8202 lt_prog_compiler_pic='-KPIC'
8203 lt_prog_compiler_static='-Bstatic'
8204 lt_prog_compiler_wl='-Wl,'
8205 ;;
8206 *Sun\ F*)
8207 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8208 lt_prog_compiler_pic='-KPIC'
8209 lt_prog_compiler_static='-Bstatic'
8210 lt_prog_compiler_wl=''
8211 ;;
8212 esac
8213 ;;
8214 esac
8215 ;;
8216
8217 newsos6)
8218 lt_prog_compiler_pic='-KPIC'
8219 lt_prog_compiler_static='-Bstatic'
8220 ;;
8221
8222 *nto* | *qnx*)
8223 # QNX uses GNU C++, but need to define -shared option too, otherwise
8224 # it will coredump.
8225 lt_prog_compiler_pic='-fPIC -shared'
8226 ;;
8227
8228 osf3* | osf4* | osf5*)
8229 lt_prog_compiler_wl='-Wl,'
8230 # All OSF/1 code is PIC.
8231 lt_prog_compiler_static='-non_shared'
8232 ;;
8233
8234 rdos*)
8235 lt_prog_compiler_static='-non_shared'
8236 ;;
8237
8238 solaris*)
8239 lt_prog_compiler_pic='-KPIC'
8240 lt_prog_compiler_static='-Bstatic'
8241 case $cc_basename in
8242 f77* | f90* | f95*)
8243 lt_prog_compiler_wl='-Qoption ld ';;
8244 *)
8245 lt_prog_compiler_wl='-Wl,';;
8246 esac
8247 ;;
8248
8249 sunos4*)
8250 lt_prog_compiler_wl='-Qoption ld '
8251 lt_prog_compiler_pic='-PIC'
8252 lt_prog_compiler_static='-Bstatic'
8253 ;;
8254
8255 sysv4 | sysv4.2uw2* | sysv4.3*)
8256 lt_prog_compiler_wl='-Wl,'
8257 lt_prog_compiler_pic='-KPIC'
8258 lt_prog_compiler_static='-Bstatic'
8259 ;;
8260
8261 sysv4*MP*)
8262 if test -d /usr/nec ;then
8263 lt_prog_compiler_pic='-Kconform_pic'
8264 lt_prog_compiler_static='-Bstatic'
8265 fi
8266 ;;
8267
8268 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8269 lt_prog_compiler_wl='-Wl,'
8270 lt_prog_compiler_pic='-KPIC'
8271 lt_prog_compiler_static='-Bstatic'
8272 ;;
8273
8274 unicos*)
8275 lt_prog_compiler_wl='-Wl,'
8276 lt_prog_compiler_can_build_shared=no
8277 ;;
8278
8279 uts4*)
8280 lt_prog_compiler_pic='-pic'
8281 lt_prog_compiler_static='-Bstatic'
8282 ;;
8283
8284 *)
8285 lt_prog_compiler_can_build_shared=no
8286 ;;
8287 esac
8288 fi
8289
8290case $host_os in
8291 # For platforms which do not support PIC, -DPIC is meaningless:
8292 *djgpp*)
8293 lt_prog_compiler_pic=
8294 ;;
8295 *)
8296 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8297 ;;
8298esac
8299echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8300echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8301
8302
8303
8304
8305
8306
8307#
8308# Check to make sure the PIC flag actually works.
8309#
8310if test -n "$lt_prog_compiler_pic"; then
8311 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8312echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
718a6fd8 8313if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
42ecbf5e
DJ
8314 echo $ECHO_N "(cached) $ECHO_C" >&6
8315else
718a6fd8 8316 lt_cv_prog_compiler_pic_works=no
d7040cdb
SE
8317 ac_outfile=conftest.$ac_objext
8318 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8319 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8320 # Insert the option either (1) after the last *FLAGS variable, or
8321 # (2) before a word containing "conftest.", or (3) at the end.
8322 # Note that $ac_compile itself does not contain backslashes and begins
8323 # with a dollar sign (not a hyphen), so the echo should work correctly.
8324 # The option is referenced via a variable to avoid confusing sed.
8325 lt_compile=`echo "$ac_compile" | $SED \
8326 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8328 -e 's:$: $lt_compiler_flag:'`
e3525117 8329 (eval echo "\"\$as_me:8329: $lt_compile\"" >&5)
d7040cdb
SE
8330 (eval "$lt_compile" 2>conftest.err)
8331 ac_status=$?
8332 cat conftest.err >&5
e3525117 8333 echo "$as_me:8333: \$? = $ac_status" >&5
d7040cdb
SE
8334 if (exit $ac_status) && test -s "$ac_outfile"; then
8335 # The compiler can only warn and ignore the option if not recognized
8336 # So say no if there are warnings other than the usual output.
8337 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8338 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8339 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8340 lt_cv_prog_compiler_pic_works=yes
d7040cdb
SE
8341 fi
8342 fi
8343 $RM conftest*
42ecbf5e 8344
252b5132 8345fi
718a6fd8
SE
8346echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8347echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
d7040cdb 8348
718a6fd8 8349if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
d7040cdb
SE
8350 case $lt_prog_compiler_pic in
8351 "" | " "*) ;;
8352 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8353 esac
252b5132 8354else
d7040cdb
SE
8355 lt_prog_compiler_pic=
8356 lt_prog_compiler_can_build_shared=no
252b5132 8357fi
252b5132
RH
8358
8359fi
42ecbf5e 8360
d7040cdb
SE
8361
8362
8363
8364
8365
8366#
8367# Check to make sure the static flag actually works.
8368#
8369wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8370echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8371echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
718a6fd8 8372if test "${lt_cv_prog_compiler_static_works+set}" = set; then
20e95c23 8373 echo $ECHO_N "(cached) $ECHO_C" >&6
42ecbf5e 8374else
718a6fd8 8375 lt_cv_prog_compiler_static_works=no
d7040cdb
SE
8376 save_LDFLAGS="$LDFLAGS"
8377 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8378 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8379 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8380 # The linker can only warn and ignore the option if not recognized
8381 # So say no if there are warnings
8382 if test -s conftest.err; then
8383 # Append any errors to the config.log.
8384 cat conftest.err 1>&5
8385 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8386 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8387 if diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8388 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8389 fi
8390 else
718a6fd8 8391 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8392 fi
8393 fi
718a6fd8 8394 $RM -r conftest*
d7040cdb 8395 LDFLAGS="$save_LDFLAGS"
42ecbf5e 8396
42ecbf5e 8397fi
718a6fd8
SE
8398echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8399echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
d7040cdb 8400
718a6fd8 8401if test x"$lt_cv_prog_compiler_static_works" = xyes; then
d7040cdb
SE
8402 :
8403else
8404 lt_prog_compiler_static=
42ecbf5e 8405fi
42ecbf5e 8406
252b5132 8407
252b5132 8408
42ecbf5e 8409
252b5132 8410
20e95c23 8411
d7040cdb
SE
8412
8413 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8414echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8415if test "${lt_cv_prog_compiler_c_o+set}" = set; then
42ecbf5e 8416 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8417else
d7040cdb
SE
8418 lt_cv_prog_compiler_c_o=no
8419 $RM -r conftest 2>/dev/null
8420 mkdir conftest
8421 cd conftest
8422 mkdir out
8423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8424
8425 lt_compiler_flag="-o out/conftest2.$ac_objext"
8426 # Insert the option either (1) after the last *FLAGS variable, or
8427 # (2) before a word containing "conftest.", or (3) at the end.
8428 # Note that $ac_compile itself does not contain backslashes and begins
8429 # with a dollar sign (not a hyphen), so the echo should work correctly.
8430 lt_compile=`echo "$ac_compile" | $SED \
8431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8433 -e 's:$: $lt_compiler_flag:'`
e3525117 8434 (eval echo "\"\$as_me:8434: $lt_compile\"" >&5)
d7040cdb
SE
8435 (eval "$lt_compile" 2>out/conftest.err)
8436 ac_status=$?
8437 cat out/conftest.err >&5
e3525117 8438 echo "$as_me:8438: \$? = $ac_status" >&5
d7040cdb
SE
8439 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8440 then
8441 # The compiler can only warn and ignore the option if not recognized
8442 # So say no if there are warnings
8443 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8444 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8445 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8446 lt_cv_prog_compiler_c_o=yes
8447 fi
8448 fi
8449 chmod u+w . 2>&5
8450 $RM conftest*
8451 # SGI C++ compiler will create directory out/ii_files/ for
8452 # template instantiation
8453 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8454 $RM out/* && rmdir out
8455 cd ..
8456 $RM -r conftest
8457 $RM conftest*
8458
252b5132 8459fi
d7040cdb
SE
8460echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8461echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
42ecbf5e 8462
20e95c23 8463
20e95c23
DJ
8464
8465
d7040cdb
SE
8466
8467
8468 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8469echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8470if test "${lt_cv_prog_compiler_c_o+set}" = set; then
42ecbf5e
DJ
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8472else
d7040cdb
SE
8473 lt_cv_prog_compiler_c_o=no
8474 $RM -r conftest 2>/dev/null
8475 mkdir conftest
8476 cd conftest
8477 mkdir out
8478 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8479
8480 lt_compiler_flag="-o out/conftest2.$ac_objext"
8481 # Insert the option either (1) after the last *FLAGS variable, or
8482 # (2) before a word containing "conftest.", or (3) at the end.
8483 # Note that $ac_compile itself does not contain backslashes and begins
8484 # with a dollar sign (not a hyphen), so the echo should work correctly.
8485 lt_compile=`echo "$ac_compile" | $SED \
8486 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8487 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8488 -e 's:$: $lt_compiler_flag:'`
e3525117 8489 (eval echo "\"\$as_me:8489: $lt_compile\"" >&5)
d7040cdb
SE
8490 (eval "$lt_compile" 2>out/conftest.err)
8491 ac_status=$?
8492 cat out/conftest.err >&5
e3525117 8493 echo "$as_me:8493: \$? = $ac_status" >&5
d7040cdb
SE
8494 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8495 then
8496 # The compiler can only warn and ignore the option if not recognized
8497 # So say no if there are warnings
8498 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8499 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8500 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8501 lt_cv_prog_compiler_c_o=yes
8502 fi
8503 fi
8504 chmod u+w . 2>&5
8505 $RM conftest*
8506 # SGI C++ compiler will create directory out/ii_files/ for
8507 # template instantiation
8508 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8509 $RM out/* && rmdir out
8510 cd ..
8511 $RM -r conftest
8512 $RM conftest*
8513
8514fi
8515echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8516echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8517
8518
8519
8520
8521hard_links="nottested"
8522if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8523 # do not overwrite the value of need_locks provided by the user
8524 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8525echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8526 hard_links=yes
8527 $RM conftest*
8528 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8529 touch conftest.a
8530 ln conftest.a conftest.b 2>&5 || hard_links=no
8531 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8532 echo "$as_me:$LINENO: result: $hard_links" >&5
8533echo "${ECHO_T}$hard_links" >&6
8534 if test "$hard_links" = no; then
8535 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8536echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8537 need_locks=warn
8538 fi
8539else
8540 need_locks=no
8541fi
8542
8543
8544
8545
8546
8547
8548 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8549echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8550
8551 runpath_var=
8552 allow_undefined_flag=
8553 always_export_symbols=no
8554 archive_cmds=
8555 archive_expsym_cmds=
8556 compiler_needs_object=no
8557 enable_shared_with_static_runtimes=no
8558 export_dynamic_flag_spec=
8559 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8560 hardcode_automatic=no
8561 hardcode_direct=no
8562 hardcode_direct_absolute=no
8563 hardcode_libdir_flag_spec=
8564 hardcode_libdir_flag_spec_ld=
8565 hardcode_libdir_separator=
8566 hardcode_minus_L=no
8567 hardcode_shlibpath_var=unsupported
8568 inherit_rpath=no
8569 link_all_deplibs=unknown
8570 module_cmds=
8571 module_expsym_cmds=
8572 old_archive_from_new_cmds=
8573 old_archive_from_expsyms_cmds=
8574 thread_safe_flag_spec=
8575 whole_archive_flag_spec=
8576 # include_expsyms should be a list of space-separated symbols to be *always*
8577 # included in the symbol list
8578 include_expsyms=
8579 # exclude_expsyms can be an extended regexp of symbols to exclude
8580 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8581 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8582 # as well as any symbol that contains `d'.
718a6fd8 8583 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
d7040cdb
SE
8584 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8585 # platforms (ab)use it in PIC code, but their linkers get confused if
8586 # the symbol is explicitly referenced. Since portable code cannot
8587 # rely on this symbol name, it's probably fine to never include it in
8588 # preloaded symbol tables.
718a6fd8 8589 # Exclude shared library initialization/finalization symbols.
d7040cdb
SE
8590 extract_expsyms_cmds=
8591
8592 case $host_os in
718a6fd8 8593 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
8594 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8595 # When not using gcc, we currently assume that we are using
8596 # Microsoft Visual C++.
8597 if test "$GCC" != yes; then
8598 with_gnu_ld=no
8599 fi
8600 ;;
8601 interix*)
8602 # we just hope/assume this is gcc and not c89 (= MSVC++)
8603 with_gnu_ld=yes
8604 ;;
8605 openbsd*)
8606 with_gnu_ld=no
8607 ;;
8608 esac
8609
8610 ld_shlibs=yes
8611 if test "$with_gnu_ld" = yes; then
8612 # If archive_cmds runs LD, not CC, wlarc should be empty
8613 wlarc='${wl}'
8614
8615 # Set some defaults for GNU ld with shared library support. These
8616 # are reset later if shared libraries are not supported. Putting them
8617 # here allows them to be overridden if necessary.
8618 runpath_var=LD_RUN_PATH
8619 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8620 export_dynamic_flag_spec='${wl}--export-dynamic'
8621 # ancient GNU ld didn't support --whole-archive et. al.
8622 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8623 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8624 else
8625 whole_archive_flag_spec=
8626 fi
8627 supports_anon_versioning=no
8628 case `$LD -v 2>&1` in
8629 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8630 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8631 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8632 *\ 2.11.*) ;; # other 2.11 versions
8633 *) supports_anon_versioning=yes ;;
8634 esac
8635
8636 # See if GNU ld supports shared libraries.
8637 case $host_os in
50e7d84b 8638 aix[3-9]*)
d7040cdb
SE
8639 # On AIX/PPC, the GNU linker is very broken
8640 if test "$host_cpu" != ia64; then
8641 ld_shlibs=no
8642 cat <<_LT_EOF 1>&2
8643
8644*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8645*** to be unable to reliably create shared libraries on AIX.
8646*** Therefore, libtool is disabling shared libraries support. If you
8647*** really care for shared libraries, you may want to modify your PATH
8648*** so that a non-GNU linker is found, and then restart.
8649
8650_LT_EOF
8651 fi
8652 ;;
8653
8654 amigaos*)
718a6fd8
SE
8655 case $host_cpu in
8656 powerpc)
8657 # see comment about AmigaOS4 .so support
8658 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8659 archive_expsym_cmds=''
8660 ;;
8661 m68k)
8662 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)'
8663 hardcode_libdir_flag_spec='-L$libdir'
8664 hardcode_minus_L=yes
8665 ;;
8666 esac
d7040cdb
SE
8667 ;;
8668
8669 beos*)
8670 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8671 allow_undefined_flag=unsupported
8672 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8673 # support --undefined. This deserves some investigation. FIXME
8674 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8675 else
8676 ld_shlibs=no
8677 fi
8678 ;;
8679
718a6fd8 8680 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
8681 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8682 # as there is no search path for DLLs.
8683 hardcode_libdir_flag_spec='-L$libdir'
8684 allow_undefined_flag=unsupported
8685 always_export_symbols=no
8686 enable_shared_with_static_runtimes=yes
8687 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8688
8689 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8690 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8691 # If the export-symbols file already is a .def file (1st line
8692 # is EXPORTS), use it as is; otherwise, prepend...
8693 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8694 cp $export_symbols $output_objdir/$soname.def;
8695 else
8696 echo EXPORTS > $output_objdir/$soname.def;
8697 cat $export_symbols >> $output_objdir/$soname.def;
8698 fi~
8699 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8700 else
8701 ld_shlibs=no
8702 fi
8703 ;;
8704
8705 interix[3-9]*)
8706 hardcode_direct=no
8707 hardcode_shlibpath_var=no
8708 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8709 export_dynamic_flag_spec='${wl}-E'
8710 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8711 # Instead, shared libraries are loaded at an image base (0x10000000 by
8712 # default) and relocated if they conflict, which is a slow very memory
8713 # consuming and fragmenting process. To avoid this, we pick a random,
8714 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8715 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8716 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8717 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'
8718 ;;
8719
58e24671 8720 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb
SE
8721 tmp_diet=no
8722 if test "$host_os" = linux-dietlibc; then
8723 case $cc_basename in
8724 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8725 esac
8726 fi
8727 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8728 && test "$tmp_diet" = no
8729 then
8730 tmp_addflag=
718a6fd8 8731 tmp_sharedflag='-shared'
d7040cdb
SE
8732 case $cc_basename,$host_cpu in
8733 pgcc*) # Portland Group C compiler
8734 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'
8735 tmp_addflag=' $pic_flag'
8736 ;;
8737 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8738 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'
8739 tmp_addflag=' $pic_flag -Mnomain' ;;
8740 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8741 tmp_addflag=' -i_dynamic' ;;
8742 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8743 tmp_addflag=' -i_dynamic -nofor_main' ;;
8744 ifc* | ifort*) # Intel Fortran compiler
8745 tmp_addflag=' -nofor_main' ;;
718a6fd8
SE
8746 lf95*) # Lahey Fortran 8.1
8747 whole_archive_flag_spec=
8748 tmp_sharedflag='--shared' ;;
8749 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8750 tmp_sharedflag='-qmkshrobj'
8751 tmp_addflag= ;;
d7040cdb
SE
8752 esac
8753 case `$CC -V 2>&1 | sed 5q` in
8754 *Sun\ C*) # Sun C 5.9
8755 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'
8756 compiler_needs_object=yes
8757 tmp_sharedflag='-G' ;;
8758 *Sun\ F*) # Sun Fortran 8.3
8759 tmp_sharedflag='-G' ;;
d7040cdb
SE
8760 esac
8761 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8762
8763 if test "x$supports_anon_versioning" = xyes; then
8764 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8765 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8766 echo "local: *; };" >> $output_objdir/$libname.ver~
8767 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8768 fi
718a6fd8
SE
8769
8770 case $cc_basename in
8771 xlf*)
8772 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8773 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8774 hardcode_libdir_flag_spec=
8775 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8776 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8777 if test "x$supports_anon_versioning" = xyes; then
8778 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8779 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8780 echo "local: *; };" >> $output_objdir/$libname.ver~
8781 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8782 fi
8783 ;;
8784 esac
d7040cdb
SE
8785 else
8786 ld_shlibs=no
8787 fi
8788 ;;
8789
8790 netbsd*)
8791 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8792 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8793 wlarc=
8794 else
8795 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8796 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8797 fi
8798 ;;
8799
8800 solaris*)
8801 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8802 ld_shlibs=no
8803 cat <<_LT_EOF 1>&2
8804
8805*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8806*** create shared libraries on Solaris systems. Therefore, libtool
8807*** is disabling shared libraries support. We urge you to upgrade GNU
8808*** binutils to release 2.9.1 or newer. Another option is to modify
8809*** your PATH or compiler configuration so that the native linker is
8810*** used, and then restart.
8811
8812_LT_EOF
8813 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8814 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8815 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8816 else
8817 ld_shlibs=no
8818 fi
8819 ;;
8820
8821 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8822 case `$LD -v 2>&1` in
8823 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8824 ld_shlibs=no
8825 cat <<_LT_EOF 1>&2
8826
8827*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8828*** reliably create shared libraries on SCO systems. Therefore, libtool
8829*** is disabling shared libraries support. We urge you to upgrade GNU
8830*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8831*** your PATH or compiler configuration so that the native linker is
8832*** used, and then restart.
8833
8834_LT_EOF
8835 ;;
8836 *)
8837 # For security reasons, it is highly recommended that you always
8838 # use absolute paths for naming shared libraries, and exclude the
8839 # DT_RUNPATH tag from executables and libraries. But doing so
8840 # requires that you compile everything twice, which is a pain.
8841 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8842 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8843 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8844 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8845 else
8846 ld_shlibs=no
8847 fi
8848 ;;
8849 esac
8850 ;;
8851
8852 sunos4*)
8853 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8854 wlarc=
8855 hardcode_direct=yes
8856 hardcode_shlibpath_var=no
8857 ;;
8858
8859 *)
8860 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8861 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8862 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8863 else
8864 ld_shlibs=no
8865 fi
8866 ;;
8867 esac
8868
8869 if test "$ld_shlibs" = no; then
8870 runpath_var=
8871 hardcode_libdir_flag_spec=
8872 export_dynamic_flag_spec=
8873 whole_archive_flag_spec=
8874 fi
8875 else
8876 # PORTME fill in a description of your system's linker (not GNU ld)
8877 case $host_os in
8878 aix3*)
8879 allow_undefined_flag=unsupported
8880 always_export_symbols=yes
8881 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'
8882 # Note: this linker hardcodes the directories in LIBPATH if there
8883 # are no directories specified by -L.
8884 hardcode_minus_L=yes
8885 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8886 # Neither direct hardcoding nor static linking is supported with a
8887 # broken collect2.
8888 hardcode_direct=unsupported
8889 fi
8890 ;;
8891
50e7d84b 8892 aix[4-9]*)
d7040cdb
SE
8893 if test "$host_cpu" = ia64; then
8894 # On IA64, the linker does run time linking by default, so we don't
8895 # have to do anything special.
8896 aix_use_runtimelinking=no
8897 exp_sym_flag='-Bexport'
8898 no_entry_flag=""
8899 else
8900 # If we're using GNU nm, then we don't want the "-C" option.
8901 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8902 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8903 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'
8904 else
8905 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'
8906 fi
8907 aix_use_runtimelinking=no
8908
8909 # Test if we are trying to use run time linking or normal
8910 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8911 # need to do runtime linking.
50e7d84b 8912 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
d7040cdb
SE
8913 for ld_flag in $LDFLAGS; do
8914 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8915 aix_use_runtimelinking=yes
8916 break
8917 fi
8918 done
8919 ;;
8920 esac
8921
8922 exp_sym_flag='-bexport'
8923 no_entry_flag='-bnoentry'
8924 fi
8925
8926 # When large executables or shared objects are built, AIX ld can
8927 # have problems creating the table of contents. If linking a library
8928 # or program results in "error TOC overflow" add -mminimal-toc to
8929 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8930 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8931
8932 archive_cmds=''
8933 hardcode_direct=yes
8934 hardcode_direct_absolute=yes
8935 hardcode_libdir_separator=':'
8936 link_all_deplibs=yes
8937 file_list_spec='${wl}-f,'
8938
8939 if test "$GCC" = yes; then
8940 case $host_os in aix4.[012]|aix4.[012].*)
8941 # We only want to do this on AIX 4.2 and lower, the check
8942 # below for broken collect2 doesn't work under 4.3+
8943 collect2name=`${CC} -print-prog-name=collect2`
8944 if test -f "$collect2name" &&
8945 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8946 then
8947 # We have reworked collect2
8948 :
8949 else
8950 # We have old collect2
8951 hardcode_direct=unsupported
8952 # It fails to find uninstalled libraries when the uninstalled
8953 # path is not listed in the libpath. Setting hardcode_minus_L
8954 # to unsupported forces relinking
8955 hardcode_minus_L=yes
8956 hardcode_libdir_flag_spec='-L$libdir'
8957 hardcode_libdir_separator=
8958 fi
8959 ;;
8960 esac
8961 shared_flag='-shared'
8962 if test "$aix_use_runtimelinking" = yes; then
8963 shared_flag="$shared_flag "'${wl}-G'
8964 fi
8965 else
8966 # not using gcc
8967 if test "$host_cpu" = ia64; then
8968 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8969 # chokes on -Wl,-G. The following line is correct:
8970 shared_flag='-G'
8971 else
8972 if test "$aix_use_runtimelinking" = yes; then
8973 shared_flag='${wl}-G'
8974 else
8975 shared_flag='${wl}-bM:SRE'
8976 fi
8977 fi
8978 fi
8979
718a6fd8 8980 export_dynamic_flag_spec='${wl}-bexpall'
d7040cdb
SE
8981 # It seems that -bexpall does not export symbols beginning with
8982 # underscore (_), so it is better to generate a list of symbols to export.
8983 always_export_symbols=yes
8984 if test "$aix_use_runtimelinking" = yes; then
8985 # Warning - without using the other runtime loading flags (-brtl),
8986 # -berok will link without error, but may produce a broken library.
8987 allow_undefined_flag='-berok'
8988 # Determine the default libpath from the value encoded in an
8989 # empty executable.
8990 cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
8991/* confdefs.h. */
8992_ACEOF
8993cat confdefs.h >>conftest.$ac_ext
8994cat >>conftest.$ac_ext <<_ACEOF
8995/* end confdefs.h. */
d7040cdb
SE
8996
8997int
8998main ()
8999{
9000
9001 ;
9002 return 0;
9003}
42ecbf5e 9004_ACEOF
d7040cdb
SE
9005rm -f conftest.$ac_objext conftest$ac_exeext
9006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9007 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
9008 ac_status=$?
9009 grep -v '^ *+' conftest.er1 >conftest.err
9010 rm -f conftest.er1
9011 cat conftest.err >&5
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb 9013 (exit $ac_status); } &&
7357c5b6
AM
9014 { ac_try='test -z "$ac_c_werror_flag"
9015 || test ! -s conftest.err'
d7040cdb
SE
9016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9017 (eval $ac_try) 2>&5
9018 ac_status=$?
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); }; } &&
9021 { ac_try='test -s conftest$ac_exeext'
9022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023 (eval $ac_try) 2>&5
9024 ac_status=$?
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); }; }; then
9027
9028lt_aix_libpath_sed='
9029 /Import File Strings/,/^$/ {
9030 /^0/ {
9031 s/^0 *\(.*\)$/\1/
9032 p
9033 }
9034 }'
9035aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9036# Check for a 64-bit object if we didn't find anything.
9037if test -z "$aix_libpath"; then
9038 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
252b5132 9039fi
252b5132 9040else
20e95c23
DJ
9041 echo "$as_me: failed program was:" >&5
9042sed 's/^/| /' conftest.$ac_ext >&5
9043
252b5132 9044fi
d7040cdb
SE
9045rm -f conftest.err conftest.$ac_objext \
9046 conftest$ac_exeext conftest.$ac_ext
9047if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
252b5132 9048
d7040cdb
SE
9049 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9050 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"
9051 else
9052 if test "$host_cpu" = ia64; then
9053 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9054 allow_undefined_flag="-z nodefs"
9055 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"
9056 else
9057 # Determine the default libpath from the value encoded in an
9058 # empty executable.
9059 cat >conftest.$ac_ext <<_ACEOF
42ecbf5e
DJ
9060/* confdefs.h. */
9061_ACEOF
9062cat confdefs.h >>conftest.$ac_ext
9063cat >>conftest.$ac_ext <<_ACEOF
9064/* end confdefs.h. */
d7040cdb
SE
9065
9066int
9067main ()
9068{
9069
9070 ;
9071 return 0;
9072}
42ecbf5e 9073_ACEOF
d7040cdb
SE
9074rm -f conftest.$ac_objext conftest$ac_exeext
9075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9076 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
9077 ac_status=$?
9078 grep -v '^ *+' conftest.er1 >conftest.err
9079 rm -f conftest.er1
9080 cat conftest.err >&5
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb 9082 (exit $ac_status); } &&
7357c5b6
AM
9083 { ac_try='test -z "$ac_c_werror_flag"
9084 || test ! -s conftest.err'
d7040cdb
SE
9085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9086 (eval $ac_try) 2>&5
9087 ac_status=$?
9088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089 (exit $ac_status); }; } &&
9090 { ac_try='test -s conftest$ac_exeext'
9091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092 (eval $ac_try) 2>&5
9093 ac_status=$?
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); }; }; then
9096
9097lt_aix_libpath_sed='
9098 /Import File Strings/,/^$/ {
9099 /^0/ {
9100 s/^0 *\(.*\)$/\1/
9101 p
9102 }
9103 }'
9104aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9105# Check for a 64-bit object if we didn't find anything.
9106if test -z "$aix_libpath"; then
9107 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20e95c23 9108fi
252b5132 9109else
42ecbf5e
DJ
9110 echo "$as_me: failed program was:" >&5
9111sed 's/^/| /' conftest.$ac_ext >&5
9112
252b5132 9113fi
d7040cdb
SE
9114rm -f conftest.err conftest.$ac_objext \
9115 conftest$ac_exeext conftest.$ac_ext
9116if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9117
9118 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9119 # Warning - without using the other run time loading flags,
9120 # -berok will link without error, but may produce a broken library.
9121 no_undefined_flag=' ${wl}-bernotok'
9122 allow_undefined_flag=' ${wl}-berok'
9123 # Exported symbols can be pulled into shared objects from archives
9124 whole_archive_flag_spec='$convenience'
9125 archive_cmds_need_lc=yes
9126 # This is similar to how AIX traditionally builds its shared libraries.
9127 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'
9128 fi
9129 fi
9130 ;;
42ecbf5e 9131
d7040cdb 9132 amigaos*)
718a6fd8
SE
9133 case $host_cpu in
9134 powerpc)
9135 # see comment about AmigaOS4 .so support
9136 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9137 archive_expsym_cmds=''
9138 ;;
9139 m68k)
9140 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)'
9141 hardcode_libdir_flag_spec='-L$libdir'
9142 hardcode_minus_L=yes
9143 ;;
9144 esac
d7040cdb 9145 ;;
252b5132 9146
d7040cdb
SE
9147 bsdi[45]*)
9148 export_dynamic_flag_spec=-rdynamic
9149 ;;
252b5132 9150
718a6fd8 9151 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
9152 # When not using gcc, we currently assume that we are using
9153 # Microsoft Visual C++.
9154 # hardcode_libdir_flag_spec is actually meaningless, as there is
9155 # no search path for DLLs.
9156 hardcode_libdir_flag_spec=' '
9157 allow_undefined_flag=unsupported
9158 # Tell ltmain to make .lib files, not .a files.
9159 libext=lib
9160 # Tell ltmain to make .dll files, not .so files.
9161 shrext_cmds=".dll"
9162 # FIXME: Setting linknames here is a bad hack.
9163 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9164 # The linker will automatically build a .lib file if we build a DLL.
9165 old_archive_from_new_cmds='true'
9166 # FIXME: Should let the user specify the lib program.
9167 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9168 fix_srcfile_path='`cygpath -w "$srcfile"`'
9169 enable_shared_with_static_runtimes=yes
9170 ;;
252b5132 9171
d7040cdb 9172 darwin* | rhapsody*)
c46f8c51 9173
718a6fd8
SE
9174
9175 archive_cmds_need_lc=no
9176 hardcode_direct=no
9177 hardcode_automatic=yes
9178 hardcode_shlibpath_var=unsupported
9179 whole_archive_flag_spec=''
9180 link_all_deplibs=yes
9181 allow_undefined_flag="$_lt_dar_allow_undefined"
9182 case $cc_basename in
9183 ifort*) _lt_dar_can_shared=yes ;;
9184 *) _lt_dar_can_shared=$GCC ;;
9185 esac
9186 if test "$_lt_dar_can_shared" = "yes"; then
9187 output_verbose_link_cmd=echo
9188 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9189 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9190 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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9191 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9192
9193 else
9194 ld_shlibs=no
9195 fi
9196
d7040cdb 9197 ;;
42ecbf5e 9198
d7040cdb
SE
9199 dgux*)
9200 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9201 hardcode_libdir_flag_spec='-L$libdir'
9202 hardcode_shlibpath_var=no
9203 ;;
252b5132 9204
d7040cdb
SE
9205 freebsd1*)
9206 ld_shlibs=no
9207 ;;
252b5132 9208
d7040cdb
SE
9209 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9210 # support. Future versions do this automatically, but an explicit c++rt0.o
9211 # does not break anything, and helps significantly (at the cost of a little
9212 # extra space).
9213 freebsd2.2*)
9214 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9215 hardcode_libdir_flag_spec='-R$libdir'
9216 hardcode_direct=yes
9217 hardcode_shlibpath_var=no
9218 ;;
252b5132 9219
d7040cdb
SE
9220 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9221 freebsd2*)
9222 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9223 hardcode_direct=yes
9224 hardcode_minus_L=yes
9225 hardcode_shlibpath_var=no
9226 ;;
42ecbf5e 9227
d7040cdb
SE
9228 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9229 freebsd* | dragonfly*)
9230 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9231 hardcode_libdir_flag_spec='-R$libdir'
9232 hardcode_direct=yes
9233 hardcode_shlibpath_var=no
9234 ;;
252b5132 9235
d7040cdb
SE
9236 hpux9*)
9237 if test "$GCC" = yes; then
9238 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'
9239 else
9240 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'
9241 fi
9242 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9243 hardcode_libdir_separator=:
9244 hardcode_direct=yes
9245
9246 # hardcode_minus_L: Not really in the search PATH,
9247 # but as the default location of the library.
9248 hardcode_minus_L=yes
9249 export_dynamic_flag_spec='${wl}-E'
9250 ;;
20e95c23 9251
d7040cdb
SE
9252 hpux10*)
9253 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9254 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9255 else
9256 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9257 fi
9258 if test "$with_gnu_ld" = no; then
9259 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9260 hardcode_libdir_flag_spec_ld='+b $libdir'
9261 hardcode_libdir_separator=:
9262 hardcode_direct=yes
9263 hardcode_direct_absolute=yes
9264 export_dynamic_flag_spec='${wl}-E'
9265 # hardcode_minus_L: Not really in the search PATH,
9266 # but as the default location of the library.
9267 hardcode_minus_L=yes
9268 fi
9269 ;;
20e95c23 9270
d7040cdb
SE
9271 hpux11*)
9272 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9273 case $host_cpu in
9274 hppa*64*)
9275 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9276 ;;
9277 ia64*)
718a6fd8 9278 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9279 ;;
9280 *)
9281 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9282 ;;
9283 esac
9284 else
9285 case $host_cpu in
9286 hppa*64*)
9287 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9288 ;;
9289 ia64*)
9290 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9291 ;;
9292 *)
9293 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9294 ;;
9295 esac
9296 fi
9297 if test "$with_gnu_ld" = no; then
9298 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9299 hardcode_libdir_separator=:
9300
9301 case $host_cpu in
9302 hppa*64*|ia64*)
9303 hardcode_direct=no
9304 hardcode_shlibpath_var=no
9305 ;;
9306 *)
9307 hardcode_direct=yes
9308 hardcode_direct_absolute=yes
9309 export_dynamic_flag_spec='${wl}-E'
9310
9311 # hardcode_minus_L: Not really in the search PATH,
9312 # but as the default location of the library.
9313 hardcode_minus_L=yes
9314 ;;
9315 esac
9316 fi
9317 ;;
9318
9319 irix5* | irix6* | nonstopux*)
9320 if test "$GCC" = yes; then
9321 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'
9322 # Try to use the -exported_symbol ld option, if it does not
9323 # work, assume that -exports_file does not work either and
9324 # implicitly export all symbols.
9325 save_LDFLAGS="$LDFLAGS"
9326 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9327 cat >conftest.$ac_ext <<_ACEOF
9328int foo(void) {}
42ecbf5e 9329_ACEOF
d7040cdb
SE
9330rm -f conftest.$ac_objext conftest$ac_exeext
9331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9332 (eval $ac_link) 2>conftest.er1
42ecbf5e
DJ
9333 ac_status=$?
9334 grep -v '^ *+' conftest.er1 >conftest.err
9335 rm -f conftest.er1
9336 cat conftest.err >&5
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); } &&
7357c5b6
AM
9339 { ac_try='test -z "$ac_c_werror_flag"
9340 || test ! -s conftest.err'
42ecbf5e
DJ
9341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9342 (eval $ac_try) 2>&5
9343 ac_status=$?
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); }; } &&
d7040cdb 9346 { ac_try='test -s conftest$ac_exeext'
42ecbf5e
DJ
9347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9348 (eval $ac_try) 2>&5
9349 ac_status=$?
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); }; }; then
d7040cdb
SE
9352 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'
9353
42ecbf5e
DJ
9354else
9355 echo "$as_me: failed program was:" >&5
9356sed 's/^/| /' conftest.$ac_ext >&5
9357
42ecbf5e 9358fi
d7040cdb
SE
9359rm -f conftest.err conftest.$ac_objext \
9360 conftest$ac_exeext conftest.$ac_ext
9361 LDFLAGS="$save_LDFLAGS"
9362 else
9363 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'
9364 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'
9365 fi
9366 archive_cmds_need_lc='no'
9367 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9368 hardcode_libdir_separator=:
9369 inherit_rpath=yes
9370 link_all_deplibs=yes
9371 ;;
42ecbf5e 9372
d7040cdb
SE
9373 netbsd*)
9374 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9375 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9376 else
9377 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9378 fi
9379 hardcode_libdir_flag_spec='-R$libdir'
9380 hardcode_direct=yes
9381 hardcode_shlibpath_var=no
9382 ;;
42ecbf5e 9383
d7040cdb
SE
9384 newsos6)
9385 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9386 hardcode_direct=yes
9387 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9388 hardcode_libdir_separator=:
9389 hardcode_shlibpath_var=no
9390 ;;
42ecbf5e 9391
d7040cdb
SE
9392 *nto* | *qnx*)
9393 ;;
252b5132 9394
d7040cdb 9395 openbsd*)
718a6fd8
SE
9396 if test -f /usr/libexec/ld.so; then
9397 hardcode_direct=yes
9398 hardcode_shlibpath_var=no
9399 hardcode_direct_absolute=yes
9400 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d7040cdb 9401 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
718a6fd8 9402 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
d7040cdb 9403 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
718a6fd8
SE
9404 export_dynamic_flag_spec='${wl}-E'
9405 else
9406 case $host_os in
9407 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9408 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9409 hardcode_libdir_flag_spec='-R$libdir'
9410 ;;
9411 *)
9412 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9413 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9414 ;;
9415 esac
9416 fi
9417 else
9418 ld_shlibs=no
d7040cdb
SE
9419 fi
9420 ;;
252b5132 9421
d7040cdb
SE
9422 os2*)
9423 hardcode_libdir_flag_spec='-L$libdir'
9424 hardcode_minus_L=yes
9425 allow_undefined_flag=unsupported
9426 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'
9427 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9428 ;;
2481e6a2 9429
d7040cdb
SE
9430 osf3*)
9431 if test "$GCC" = yes; then
9432 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9433 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'
9434 else
9435 allow_undefined_flag=' -expect_unresolved \*'
9436 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'
9437 fi
9438 archive_cmds_need_lc='no'
9439 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9440 hardcode_libdir_separator=:
9441 ;;
42ecbf5e 9442
d7040cdb
SE
9443 osf4* | osf5*) # as osf3* with the addition of -msym flag
9444 if test "$GCC" = yes; then
9445 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9446 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'
9447 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9448 else
9449 allow_undefined_flag=' -expect_unresolved \*'
9450 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'
9451 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~
9452 $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 9453
d7040cdb
SE
9454 # Both c and cxx compiler support -rpath directly
9455 hardcode_libdir_flag_spec='-rpath $libdir'
9456 fi
9457 archive_cmds_need_lc='no'
9458 hardcode_libdir_separator=:
9459 ;;
9460
9461 solaris*)
9462 no_undefined_flag=' -z defs'
9463 if test "$GCC" = yes; then
9464 wlarc='${wl}'
9465 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9466 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9467 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9468 else
9469 case `$CC -V 2>&1` in
9470 *"Compilers 5.0"*)
9471 wlarc=''
9472 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9473 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9474 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9475 ;;
9476 *)
9477 wlarc='${wl}'
9478 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9479 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9480 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9481 ;;
9482 esac
9483 fi
9484 hardcode_libdir_flag_spec='-R$libdir'
9485 hardcode_shlibpath_var=no
9486 case $host_os in
9487 solaris2.[0-5] | solaris2.[0-5].*) ;;
9488 *)
9489 # The compiler driver will combine and reorder linker options,
9490 # but understands `-z linker_flag'. GCC discards it without `$wl',
9491 # but is careful enough not to reorder.
9492 # Supported since Solaris 2.6 (maybe 2.5.1?)
9493 if test "$GCC" = yes; then
9494 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9495 else
9496 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9497 fi
9498 ;;
9499 esac
9500 link_all_deplibs=yes
9501 ;;
9502
9503 sunos4*)
9504 if test "x$host_vendor" = xsequent; then
9505 # Use $CC to link under sequent, because it throws in some extra .o
9506 # files that make .init and .fini sections work.
9507 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9508 else
9509 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9510 fi
9511 hardcode_libdir_flag_spec='-L$libdir'
9512 hardcode_direct=yes
9513 hardcode_minus_L=yes
9514 hardcode_shlibpath_var=no
9515 ;;
9516
9517 sysv4)
9518 case $host_vendor in
9519 sni)
9520 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9521 hardcode_direct=yes # is this really true???
9522 ;;
9523 siemens)
9524 ## LD is ld it makes a PLAMLIB
9525 ## CC just makes a GrossModule.
9526 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9527 reload_cmds='$CC -r -o $output$reload_objs'
9528 hardcode_direct=no
9529 ;;
9530 motorola)
9531 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9532 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9533 ;;
9534 esac
9535 runpath_var='LD_RUN_PATH'
9536 hardcode_shlibpath_var=no
9537 ;;
9538
9539 sysv4.3*)
9540 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9541 hardcode_shlibpath_var=no
9542 export_dynamic_flag_spec='-Bexport'
9543 ;;
9544
9545 sysv4*MP*)
9546 if test -d /usr/nec; then
9547 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9548 hardcode_shlibpath_var=no
9549 runpath_var=LD_RUN_PATH
9550 hardcode_runpath_var=yes
9551 ld_shlibs=yes
9552 fi
9553 ;;
9554
9555 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9556 no_undefined_flag='${wl}-z,text'
9557 archive_cmds_need_lc=no
9558 hardcode_shlibpath_var=no
9559 runpath_var='LD_RUN_PATH'
9560
9561 if test "$GCC" = yes; then
9562 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9563 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9564 else
9565 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9566 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9567 fi
9568 ;;
9569
9570 sysv5* | sco3.2v5* | sco5v6*)
9571 # Note: We can NOT use -z defs as we might desire, because we do not
9572 # link with -lc, and that would cause any symbols used from libc to
9573 # always be unresolved, which means just about no library would
9574 # ever link correctly. If we're not using GNU ld we use -z text
9575 # though, which does catch some bad symbols but isn't as heavy-handed
9576 # as -z defs.
9577 no_undefined_flag='${wl}-z,text'
9578 allow_undefined_flag='${wl}-z,nodefs'
9579 archive_cmds_need_lc=no
9580 hardcode_shlibpath_var=no
9581 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9582 hardcode_libdir_separator=':'
9583 link_all_deplibs=yes
9584 export_dynamic_flag_spec='${wl}-Bexport'
9585 runpath_var='LD_RUN_PATH'
9586
9587 if test "$GCC" = yes; then
9588 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9589 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9590 else
9591 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9592 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9593 fi
9594 ;;
9595
9596 uts4*)
9597 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9598 hardcode_libdir_flag_spec='-L$libdir'
9599 hardcode_shlibpath_var=no
9600 ;;
9601
9602 *)
9603 ld_shlibs=no
9604 ;;
9605 esac
9606
9607 if test x$host_vendor = xsni; then
9608 case $host in
9609 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9610 export_dynamic_flag_spec='${wl}-Blargedynsym'
9611 ;;
9612 esac
9613 fi
9614 fi
9615
9616echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9617echo "${ECHO_T}$ld_shlibs" >&6
9618test "$ld_shlibs" = no && can_build_shared=no
9619
9620with_gnu_ld=$with_gnu_ld
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636#
9637# Do we need to explicitly link libc?
9638#
9639case "x$archive_cmds_need_lc" in
9640x|xyes)
9641 # Assume -lc should be added
9642 archive_cmds_need_lc=yes
9643
9644 if test "$enable_shared" = yes && test "$GCC" = yes; then
9645 case $archive_cmds in
9646 *'~'*)
9647 # FIXME: we may have to deal with multi-command sequences.
9648 ;;
9649 '$CC '*)
9650 # Test whether the compiler implicitly links with -lc since on some
9651 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9652 # to ld, don't add -lc before -lgcc.
9653 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9654echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
39144654
RW
9655if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9656 echo $ECHO_N "(cached) $ECHO_C" >&6
9657else
9658 $RM conftest*
9659 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9660
39144654 9661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
d7040cdb 9662 (eval $ac_compile) 2>&5
20e95c23
DJ
9663 ac_status=$?
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb 9665 (exit $ac_status); } 2>conftest.err; then
39144654
RW
9666 soname=conftest
9667 lib=conftest
9668 libobjs=conftest.$ac_objext
9669 deplibs=
9670 wl=$lt_prog_compiler_wl
9671 pic_flag=$lt_prog_compiler_pic
9672 compiler_flags=-v
9673 linker_flags=-v
9674 verstring=
9675 output_objdir=.
9676 libname=conftest
9677 lt_save_allow_undefined_flag=$allow_undefined_flag
9678 allow_undefined_flag=
9679 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
d7040cdb 9680 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20e95c23
DJ
9681 ac_status=$?
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb 9683 (exit $ac_status); }
39144654
RW
9684 then
9685 lt_cv_archive_cmds_need_lc=no
9686 else
9687 lt_cv_archive_cmds_need_lc=yes
9688 fi
9689 allow_undefined_flag=$lt_save_allow_undefined_flag
9690 else
9691 cat conftest.err 1>&5
9692 fi
9693 $RM conftest*
9694
9695fi
9696echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
9697echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
9698 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
d7040cdb
SE
9699 ;;
9700 esac
9701 fi
9702 ;;
9703esac
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9862echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
718a6fd8
SE
9863
9864if test "$GCC" = yes; then
d7040cdb
SE
9865 case $host_os in
9866 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9867 *) lt_awk_arg="/^libraries:/" ;;
9868 esac
9869 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9870 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9871 # if the path contains ";" then we assume it to be the separator
9872 # otherwise default to the standard path separator (i.e. ":") - it is
9873 # assumed that no part of a normal pathname contains ";" but that should
9874 # okay in the real world where ";" in dirpaths is itself problematic.
9875 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9876 else
9877 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9878 fi
9879 # Ok, now we have the path, separated by spaces, we can step through it
9880 # and add multilib dir if necessary.
9881 lt_tmp_lt_search_path_spec=
9882 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9883 for lt_sys_path in $lt_search_path_spec; do
9884 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9885 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9886 else
9887 test -d "$lt_sys_path" && \
9888 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9889 fi
9890 done
9891 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9892BEGIN {RS=" "; FS="/|\n";} {
9893 lt_foo="";
9894 lt_count=0;
9895 for (lt_i = NF; lt_i > 0; lt_i--) {
9896 if ($lt_i != "" && $lt_i != ".") {
9897 if ($lt_i == "..") {
9898 lt_count++;
9899 } else {
9900 if (lt_count == 0) {
9901 lt_foo="/" $lt_i lt_foo;
9902 } else {
9903 lt_count--;
9904 }
9905 }
9906 }
9907 }
9908 if (lt_foo != "") { lt_freq[lt_foo]++; }
9909 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9910}'`
9911 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9912else
9913 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9914fi
9915library_names_spec=
9916libname_spec='lib$name'
9917soname_spec=
9918shrext_cmds=".so"
9919postinstall_cmds=
9920postuninstall_cmds=
9921finish_cmds=
9922finish_eval=
9923shlibpath_var=
9924shlibpath_overrides_runpath=unknown
9925version_type=none
9926dynamic_linker="$host_os ld.so"
9927sys_lib_dlsearch_path_spec="/lib /usr/lib"
9928need_lib_prefix=unknown
9929hardcode_into_libs=no
9930
9931# when you set need_version to no, make sure it does not cause -set_version
9932# flags to be left without arguments
9933need_version=unknown
9934
9935case $host_os in
9936aix3*)
9937 version_type=linux
9938 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9939 shlibpath_var=LIBPATH
9940
9941 # AIX 3 has no versioning support, so we append a major version to the name.
9942 soname_spec='${libname}${release}${shared_ext}$major'
9943 ;;
9944
50e7d84b 9945aix[4-9]*)
d7040cdb
SE
9946 version_type=linux
9947 need_lib_prefix=no
9948 need_version=no
9949 hardcode_into_libs=yes
9950 if test "$host_cpu" = ia64; then
9951 # AIX 5 supports IA64
9952 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9953 shlibpath_var=LD_LIBRARY_PATH
9954 else
9955 # With GCC up to 2.95.x, collect2 would create an import file
9956 # for dependence libraries. The import file would start with
9957 # the line `#! .'. This would cause the generated library to
9958 # depend on `.', always an invalid library. This was fixed in
9959 # development snapshots of GCC prior to 3.0.
9960 case $host_os in
9961 aix4 | aix4.[01] | aix4.[01].*)
9962 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9963 echo ' yes '
9964 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9965 :
9966 else
9967 can_build_shared=no
9968 fi
9969 ;;
9970 esac
9971 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9972 # soname into executable. Probably we can add versioning support to
9973 # collect2, so additional links can be useful in future.
9974 if test "$aix_use_runtimelinking" = yes; then
9975 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9976 # instead of lib<name>.a to let people know that these are not
9977 # typical AIX shared libraries.
9978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9979 else
9980 # We preserve .a as extension for shared libraries through AIX4.2
9981 # and later when we are not doing run time linking.
9982 library_names_spec='${libname}${release}.a $libname.a'
9983 soname_spec='${libname}${release}${shared_ext}$major'
9984 fi
9985 shlibpath_var=LIBPATH
9986 fi
9987 ;;
9988
9989amigaos*)
718a6fd8
SE
9990 case $host_cpu in
9991 powerpc)
9992 # Since July 2007 AmigaOS4 officially supports .so libraries.
9993 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9995 ;;
9996 m68k)
d7040cdb
SE
9997 library_names_spec='$libname.ixlibrary $libname.a'
9998 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9999 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'
718a6fd8
SE
10000 ;;
10001 esac
d7040cdb
SE
10002 ;;
10003
10004beos*)
10005 library_names_spec='${libname}${shared_ext}'
10006 dynamic_linker="$host_os ld.so"
10007 shlibpath_var=LIBRARY_PATH
10008 ;;
10009
10010bsdi[45]*)
10011 version_type=linux
10012 need_version=no
10013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10014 soname_spec='${libname}${release}${shared_ext}$major'
10015 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10016 shlibpath_var=LD_LIBRARY_PATH
10017 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10018 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10019 # the default ld.so.conf also contains /usr/contrib/lib and
10020 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10021 # libtool to hard-code these into programs
10022 ;;
10023
718a6fd8 10024cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
10025 version_type=windows
10026 shrext_cmds=".dll"
10027 need_version=no
10028 need_lib_prefix=no
10029
718a6fd8
SE
10030 case $GCC,$host_os in
10031 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
d7040cdb
SE
10032 library_names_spec='$libname.dll.a'
10033 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10034 postinstall_cmds='base_file=`basename \${file}`~
10035 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10036 dldir=$destdir/`dirname \$dlpath`~
10037 test -d \$dldir || mkdir -p \$dldir~
10038 $install_prog $dir/$dlname \$dldir/$dlname~
10039 chmod a+x \$dldir/$dlname~
10040 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10041 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10042 fi'
10043 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10044 dlpath=$dir/\$dldll~
10045 $RM \$dlpath'
10046 shlibpath_overrides_runpath=yes
10047
10048 case $host_os in
10049 cygwin*)
10050 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10051 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10052 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10053 ;;
718a6fd8 10054 mingw* | cegcc*)
d7040cdb
SE
10055 # MinGW DLLs use traditional 'lib' prefix
10056 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10057 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10058 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10059 # It is most probably a Windows format PATH printed by
10060 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10061 # path with ; separators, and with drive letters. We can handle the
10062 # drive letters (cygwin fileutils understands them), so leave them,
10063 # especially as we might pass files found there to a mingw objdump,
10064 # which wouldn't understand a cygwinified path. Ahh.
10065 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10066 else
10067 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10068 fi
10069 ;;
10070 pw32*)
10071 # pw32 DLLs use 'pw' prefix rather than 'lib'
10072 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10073 ;;
10074 esac
10075 ;;
10076
10077 *)
10078 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10079 ;;
10080 esac
10081 dynamic_linker='Win32 ld.exe'
10082 # FIXME: first we should search . and the directory the executable is in
10083 shlibpath_var=PATH
10084 ;;
10085
10086darwin* | rhapsody*)
10087 dynamic_linker="$host_os dyld"
10088 version_type=darwin
10089 need_lib_prefix=no
10090 need_version=no
10091 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10092 soname_spec='${libname}${release}${major}$shared_ext'
10093 shlibpath_overrides_runpath=yes
10094 shlibpath_var=DYLD_LIBRARY_PATH
10095 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10096
10097 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10098 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10099 ;;
10100
10101dgux*)
10102 version_type=linux
10103 need_lib_prefix=no
10104 need_version=no
10105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10106 soname_spec='${libname}${release}${shared_ext}$major'
10107 shlibpath_var=LD_LIBRARY_PATH
10108 ;;
10109
10110freebsd1*)
10111 dynamic_linker=no
10112 ;;
10113
10114freebsd* | dragonfly*)
10115 # DragonFly does not have aout. When/if they implement a new
10116 # versioning mechanism, adjust this.
10117 if test -x /usr/bin/objformat; then
10118 objformat=`/usr/bin/objformat`
10119 else
10120 case $host_os in
10121 freebsd[123]*) objformat=aout ;;
10122 *) objformat=elf ;;
10123 esac
10124 fi
10125 version_type=freebsd-$objformat
10126 case $version_type in
10127 freebsd-elf*)
10128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10129 need_version=no
10130 need_lib_prefix=no
10131 ;;
10132 freebsd-*)
10133 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10134 need_version=yes
10135 ;;
10136 esac
10137 shlibpath_var=LD_LIBRARY_PATH
10138 case $host_os in
10139 freebsd2*)
10140 shlibpath_overrides_runpath=yes
10141 ;;
10142 freebsd3.[01]* | freebsdelf3.[01]*)
10143 shlibpath_overrides_runpath=yes
10144 hardcode_into_libs=yes
10145 ;;
10146 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10147 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10148 shlibpath_overrides_runpath=no
10149 hardcode_into_libs=yes
10150 ;;
10151 *) # from 4.6 on, and DragonFly
10152 shlibpath_overrides_runpath=yes
10153 hardcode_into_libs=yes
10154 ;;
10155 esac
10156 ;;
10157
10158gnu*)
10159 version_type=linux
10160 need_lib_prefix=no
10161 need_version=no
10162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10163 soname_spec='${libname}${release}${shared_ext}$major'
10164 shlibpath_var=LD_LIBRARY_PATH
10165 hardcode_into_libs=yes
10166 ;;
10167
10168hpux9* | hpux10* | hpux11*)
10169 # Give a soname corresponding to the major version so that dld.sl refuses to
10170 # link against other versions.
10171 version_type=sunos
10172 need_lib_prefix=no
10173 need_version=no
10174 case $host_cpu in
10175 ia64*)
10176 shrext_cmds='.so'
10177 hardcode_into_libs=yes
10178 dynamic_linker="$host_os dld.so"
10179 shlibpath_var=LD_LIBRARY_PATH
10180 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182 soname_spec='${libname}${release}${shared_ext}$major'
10183 if test "X$HPUX_IA64_MODE" = X32; then
10184 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10185 else
10186 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10187 fi
10188 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10189 ;;
10190 hppa*64*)
10191 shrext_cmds='.sl'
10192 hardcode_into_libs=yes
10193 dynamic_linker="$host_os dld.sl"
10194 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10195 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10197 soname_spec='${libname}${release}${shared_ext}$major'
10198 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10199 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10200 ;;
10201 *)
10202 shrext_cmds='.sl'
10203 dynamic_linker="$host_os dld.sl"
10204 shlibpath_var=SHLIB_PATH
10205 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10207 soname_spec='${libname}${release}${shared_ext}$major'
10208 ;;
10209 esac
10210 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10211 postinstall_cmds='chmod 555 $lib'
10212 ;;
10213
10214interix[3-9]*)
10215 version_type=linux
10216 need_lib_prefix=no
10217 need_version=no
10218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10219 soname_spec='${libname}${release}${shared_ext}$major'
10220 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10221 shlibpath_var=LD_LIBRARY_PATH
10222 shlibpath_overrides_runpath=no
10223 hardcode_into_libs=yes
10224 ;;
10225
10226irix5* | irix6* | nonstopux*)
10227 case $host_os in
10228 nonstopux*) version_type=nonstopux ;;
10229 *)
10230 if test "$lt_cv_prog_gnu_ld" = yes; then
10231 version_type=linux
10232 else
10233 version_type=irix
10234 fi ;;
10235 esac
10236 need_lib_prefix=no
10237 need_version=no
10238 soname_spec='${libname}${release}${shared_ext}$major'
10239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10240 case $host_os in
10241 irix5* | nonstopux*)
10242 libsuff= shlibsuff=
10243 ;;
10244 *)
10245 case $LD in # libtool.m4 will add one of these switches to LD
10246 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10247 libsuff= shlibsuff= libmagic=32-bit;;
10248 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10249 libsuff=32 shlibsuff=N32 libmagic=N32;;
10250 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10251 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10252 *) libsuff= shlibsuff= libmagic=never-match;;
10253 esac
10254 ;;
10255 esac
10256 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10257 shlibpath_overrides_runpath=no
10258 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10259 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10260 hardcode_into_libs=yes
10261 ;;
10262
10263# No shared lib support for Linux oldld, aout, or coff.
10264linux*oldld* | linux*aout* | linux*coff*)
10265 dynamic_linker=no
10266 ;;
10267
10268# This must be Linux ELF.
58e24671 10269linux* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb
SE
10270 version_type=linux
10271 need_lib_prefix=no
10272 need_version=no
10273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10274 soname_spec='${libname}${release}${shared_ext}$major'
10275 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10276 shlibpath_var=LD_LIBRARY_PATH
10277 shlibpath_overrides_runpath=no
39144654 10278
d7040cdb 10279 # Some binutils ld are patched to set DT_RUNPATH
39144654
RW
10280 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10281 echo $ECHO_N "(cached) $ECHO_C" >&6
10282else
10283 lt_cv_shlibpath_overrides_runpath=no
10284 save_LDFLAGS=$LDFLAGS
10285 save_libdir=$libdir
10286 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10287 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10288 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
10289/* confdefs.h. */
10290_ACEOF
10291cat confdefs.h >>conftest.$ac_ext
10292cat >>conftest.$ac_ext <<_ACEOF
10293/* end confdefs.h. */
10294
10295int
10296main ()
10297{
10298
10299 ;
10300 return 0;
10301}
10302_ACEOF
10303rm -f conftest.$ac_objext conftest$ac_exeext
10304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10305 (eval $ac_link) 2>conftest.er1
10306 ac_status=$?
10307 grep -v '^ *+' conftest.er1 >conftest.err
10308 rm -f conftest.er1
10309 cat conftest.err >&5
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); } &&
7357c5b6
AM
10312 { ac_try='test -z "$ac_c_werror_flag"
10313 || test ! -s conftest.err'
d7040cdb
SE
10314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10315 (eval $ac_try) 2>&5
10316 ac_status=$?
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); }; } &&
10319 { ac_try='test -s conftest$ac_exeext'
10320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10321 (eval $ac_try) 2>&5
10322 ac_status=$?
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); }; }; then
718a6fd8 10325 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
39144654 10326 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb
SE
10327fi
10328
10329else
10330 echo "$as_me: failed program was:" >&5
10331sed 's/^/| /' conftest.$ac_ext >&5
10332
10333fi
10334rm -f conftest.err conftest.$ac_objext \
10335 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10336 LDFLAGS=$save_LDFLAGS
10337 libdir=$save_libdir
10338
10339fi
10340
10341 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb
SE
10342
10343 # This implies no fast_install, which is unacceptable.
10344 # Some rework will be needed to allow for fast_install
10345 # before this can be enabled.
10346 hardcode_into_libs=yes
10347
10348 # Append ld.so.conf contents to the search path
10349 if test -f /etc/ld.so.conf; then
718a6fd8 10350 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
d7040cdb
SE
10351 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10352 fi
10353
10354 # We used to test for /lib/ld.so.1 and disable shared libraries on
10355 # powerpc, because MkLinux only supported shared libraries with the
10356 # GNU dynamic linker. Since this was broken with cross compilers,
10357 # most powerpc-linux boxes support dynamic linking these days and
10358 # people can always --disable-shared, the test was removed, and we
10359 # assume the GNU/Linux dynamic linker is in use.
10360 dynamic_linker='GNU/Linux ld.so'
10361 ;;
10362
10363netbsd*)
10364 version_type=sunos
10365 need_lib_prefix=no
10366 need_version=no
10367 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10369 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10370 dynamic_linker='NetBSD (a.out) ld.so'
10371 else
10372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10373 soname_spec='${libname}${release}${shared_ext}$major'
10374 dynamic_linker='NetBSD ld.elf_so'
10375 fi
10376 shlibpath_var=LD_LIBRARY_PATH
10377 shlibpath_overrides_runpath=yes
10378 hardcode_into_libs=yes
10379 ;;
10380
10381newsos6)
10382 version_type=linux
10383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10384 shlibpath_var=LD_LIBRARY_PATH
10385 shlibpath_overrides_runpath=yes
10386 ;;
10387
10388*nto* | *qnx*)
10389 version_type=qnx
10390 need_lib_prefix=no
10391 need_version=no
10392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10393 soname_spec='${libname}${release}${shared_ext}$major'
10394 shlibpath_var=LD_LIBRARY_PATH
10395 shlibpath_overrides_runpath=no
10396 hardcode_into_libs=yes
10397 dynamic_linker='ldqnx.so'
10398 ;;
10399
10400openbsd*)
10401 version_type=sunos
10402 sys_lib_dlsearch_path_spec="/usr/lib"
10403 need_lib_prefix=no
10404 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10405 case $host_os in
10406 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10407 *) need_version=no ;;
10408 esac
10409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10410 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10411 shlibpath_var=LD_LIBRARY_PATH
10412 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10413 case $host_os in
10414 openbsd2.[89] | openbsd2.[89].*)
10415 shlibpath_overrides_runpath=no
10416 ;;
10417 *)
10418 shlibpath_overrides_runpath=yes
10419 ;;
10420 esac
10421 else
10422 shlibpath_overrides_runpath=yes
10423 fi
10424 ;;
10425
10426os2*)
10427 libname_spec='$name'
10428 shrext_cmds=".dll"
10429 need_lib_prefix=no
10430 library_names_spec='$libname${shared_ext} $libname.a'
10431 dynamic_linker='OS/2 ld.exe'
10432 shlibpath_var=LIBPATH
10433 ;;
10434
10435osf3* | osf4* | osf5*)
10436 version_type=osf
10437 need_lib_prefix=no
10438 need_version=no
10439 soname_spec='${libname}${release}${shared_ext}$major'
10440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10441 shlibpath_var=LD_LIBRARY_PATH
10442 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10443 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10444 ;;
10445
10446rdos*)
10447 dynamic_linker=no
10448 ;;
10449
10450solaris*)
10451 version_type=linux
10452 need_lib_prefix=no
10453 need_version=no
10454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10455 soname_spec='${libname}${release}${shared_ext}$major'
10456 shlibpath_var=LD_LIBRARY_PATH
10457 shlibpath_overrides_runpath=yes
10458 hardcode_into_libs=yes
10459 # ldd complains unless libraries are executable
10460 postinstall_cmds='chmod +x $lib'
10461 ;;
10462
10463sunos4*)
10464 version_type=sunos
10465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10466 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10467 shlibpath_var=LD_LIBRARY_PATH
10468 shlibpath_overrides_runpath=yes
10469 if test "$with_gnu_ld" = yes; then
10470 need_lib_prefix=no
10471 fi
10472 need_version=yes
10473 ;;
10474
10475sysv4 | sysv4.3*)
10476 version_type=linux
10477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10478 soname_spec='${libname}${release}${shared_ext}$major'
10479 shlibpath_var=LD_LIBRARY_PATH
10480 case $host_vendor in
10481 sni)
10482 shlibpath_overrides_runpath=no
10483 need_lib_prefix=no
10484 runpath_var=LD_RUN_PATH
10485 ;;
10486 siemens)
10487 need_lib_prefix=no
10488 ;;
10489 motorola)
10490 need_lib_prefix=no
10491 need_version=no
10492 shlibpath_overrides_runpath=no
10493 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10494 ;;
10495 esac
10496 ;;
10497
10498sysv4*MP*)
10499 if test -d /usr/nec ;then
10500 version_type=linux
10501 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10502 soname_spec='$libname${shared_ext}.$major'
10503 shlibpath_var=LD_LIBRARY_PATH
10504 fi
10505 ;;
10506
10507sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10508 version_type=freebsd-elf
10509 need_lib_prefix=no
10510 need_version=no
10511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10512 soname_spec='${libname}${release}${shared_ext}$major'
10513 shlibpath_var=LD_LIBRARY_PATH
10514 shlibpath_overrides_runpath=yes
10515 hardcode_into_libs=yes
10516 if test "$with_gnu_ld" = yes; then
10517 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10518 else
10519 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10520 case $host_os in
10521 sco3.2v5*)
10522 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10523 ;;
10524 esac
10525 fi
10526 sys_lib_dlsearch_path_spec='/usr/lib'
10527 ;;
10528
10529tpf*)
10530 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10531 version_type=linux
10532 need_lib_prefix=no
10533 need_version=no
718a6fd8 10534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
d7040cdb
SE
10535 shlibpath_var=LD_LIBRARY_PATH
10536 shlibpath_overrides_runpath=no
10537 hardcode_into_libs=yes
10538 ;;
10539
10540uts4*)
10541 version_type=linux
10542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10543 soname_spec='${libname}${release}${shared_ext}$major'
10544 shlibpath_var=LD_LIBRARY_PATH
10545 ;;
10546
10547*)
10548 dynamic_linker=no
10549 ;;
10550esac
10551echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10552echo "${ECHO_T}$dynamic_linker" >&6
10553test "$dynamic_linker" = no && can_build_shared=no
10554
10555variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10556if test "$GCC" = yes; then
10557 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10558fi
10559
718a6fd8
SE
10560if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10561 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10562fi
10563if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10564 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10565fi
10566
d7040cdb
SE
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10654echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10655hardcode_action=
10656if test -n "$hardcode_libdir_flag_spec" ||
10657 test -n "$runpath_var" ||
10658 test "X$hardcode_automatic" = "Xyes" ; then
10659
10660 # We can hardcode non-existent directories.
10661 if test "$hardcode_direct" != no &&
10662 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10663 # have to relink, otherwise we might link with an installed library
10664 # when we should be linking with a yet-to-be-installed one
10665 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10666 test "$hardcode_minus_L" != no; then
10667 # Linking always hardcodes the temporary library directory.
10668 hardcode_action=relink
10669 else
10670 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10671 hardcode_action=immediate
10672 fi
10673else
10674 # We cannot hardcode anything, or else we can only hardcode existing
10675 # directories.
10676 hardcode_action=unsupported
10677fi
10678echo "$as_me:$LINENO: result: $hardcode_action" >&5
10679echo "${ECHO_T}$hardcode_action" >&6
10680
10681if test "$hardcode_action" = relink ||
10682 test "$inherit_rpath" = yes; then
10683 # Fast installation is not supported
10684 enable_fast_install=no
10685elif test "$shlibpath_overrides_runpath" = yes ||
10686 test "$enable_shared" = no; then
10687 # Fast installation is not necessary
10688 enable_fast_install=needless
10689fi
10690
10691
10692
10693
10694
10695
10696 if test "x$enable_dlopen" != xyes; then
10697 enable_dlopen=unknown
10698 enable_dlopen_self=unknown
10699 enable_dlopen_self_static=unknown
10700else
10701 lt_cv_dlopen=no
10702 lt_cv_dlopen_libs=
10703
10704 case $host_os in
10705 beos*)
10706 lt_cv_dlopen="load_add_on"
10707 lt_cv_dlopen_libs=
10708 lt_cv_dlopen_self=yes
10709 ;;
10710
718a6fd8 10711 mingw* | pw32* | cegcc*)
d7040cdb
SE
10712 lt_cv_dlopen="LoadLibrary"
10713 lt_cv_dlopen_libs=
10714 ;;
10715
10716 cygwin*)
10717 lt_cv_dlopen="dlopen"
10718 lt_cv_dlopen_libs=
10719 ;;
10720
10721 darwin*)
10722 # if libdl is installed we need to link against it
10723 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10724echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10725if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10726 echo $ECHO_N "(cached) $ECHO_C" >&6
10727else
10728 ac_check_lib_save_LIBS=$LIBS
10729LIBS="-ldl $LIBS"
10730cat >conftest.$ac_ext <<_ACEOF
10731/* confdefs.h. */
10732_ACEOF
10733cat confdefs.h >>conftest.$ac_ext
10734cat >>conftest.$ac_ext <<_ACEOF
10735/* end confdefs.h. */
10736
10737/* Override any gcc2 internal prototype to avoid an error. */
10738#ifdef __cplusplus
10739extern "C"
10740#endif
10741/* We use char because int might match the return type of a gcc2
10742 builtin and then its argument prototype would still apply. */
10743char dlopen ();
10744int
10745main ()
10746{
10747dlopen ();
10748 ;
10749 return 0;
10750}
10751_ACEOF
10752rm -f conftest.$ac_objext conftest$ac_exeext
10753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10754 (eval $ac_link) 2>conftest.er1
10755 ac_status=$?
10756 grep -v '^ *+' conftest.er1 >conftest.err
10757 rm -f conftest.er1
10758 cat conftest.err >&5
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); } &&
7357c5b6
AM
10761 { ac_try='test -z "$ac_c_werror_flag"
10762 || test ! -s conftest.err'
d7040cdb
SE
10763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10764 (eval $ac_try) 2>&5
10765 ac_status=$?
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); }; } &&
10768 { ac_try='test -s conftest$ac_exeext'
10769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10770 (eval $ac_try) 2>&5
10771 ac_status=$?
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); }; }; then
10774 ac_cv_lib_dl_dlopen=yes
10775else
10776 echo "$as_me: failed program was:" >&5
10777sed 's/^/| /' conftest.$ac_ext >&5
10778
10779ac_cv_lib_dl_dlopen=no
10780fi
10781rm -f conftest.err conftest.$ac_objext \
10782 conftest$ac_exeext conftest.$ac_ext
10783LIBS=$ac_check_lib_save_LIBS
10784fi
10785echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10786echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10787if test $ac_cv_lib_dl_dlopen = yes; then
10788 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10789else
10790
10791 lt_cv_dlopen="dyld"
10792 lt_cv_dlopen_libs=
10793 lt_cv_dlopen_self=yes
10794
10795fi
10796
10797 ;;
10798
10799 *)
10800 echo "$as_me:$LINENO: checking for shl_load" >&5
10801echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10802if test "${ac_cv_func_shl_load+set}" = set; then
10803 echo $ECHO_N "(cached) $ECHO_C" >&6
10804else
10805 cat >conftest.$ac_ext <<_ACEOF
10806/* confdefs.h. */
10807_ACEOF
10808cat confdefs.h >>conftest.$ac_ext
10809cat >>conftest.$ac_ext <<_ACEOF
10810/* end confdefs.h. */
10811/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10813#define shl_load innocuous_shl_load
10814
10815/* System header to define __stub macros and hopefully few prototypes,
10816 which can conflict with char shl_load (); below.
10817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10818 <limits.h> exists even on freestanding compilers. */
10819
10820#ifdef __STDC__
10821# include <limits.h>
10822#else
10823# include <assert.h>
10824#endif
10825
10826#undef shl_load
10827
10828/* Override any gcc2 internal prototype to avoid an error. */
10829#ifdef __cplusplus
10830extern "C"
10831{
10832#endif
10833/* We use char because int might match the return type of a gcc2
10834 builtin and then its argument prototype would still apply. */
10835char shl_load ();
10836/* The GNU C library defines this for functions which it implements
10837 to always fail with ENOSYS. Some functions are actually named
10838 something starting with __ and the normal name is an alias. */
10839#if defined (__stub_shl_load) || defined (__stub___shl_load)
10840choke me
10841#else
10842char (*f) () = shl_load;
10843#endif
10844#ifdef __cplusplus
10845}
10846#endif
10847
10848int
10849main ()
10850{
10851return f != shl_load;
10852 ;
10853 return 0;
10854}
10855_ACEOF
10856rm -f conftest.$ac_objext conftest$ac_exeext
10857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10858 (eval $ac_link) 2>conftest.er1
10859 ac_status=$?
10860 grep -v '^ *+' conftest.er1 >conftest.err
10861 rm -f conftest.er1
10862 cat conftest.err >&5
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); } &&
7357c5b6
AM
10865 { ac_try='test -z "$ac_c_werror_flag"
10866 || test ! -s conftest.err'
d7040cdb
SE
10867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10868 (eval $ac_try) 2>&5
10869 ac_status=$?
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); }; } &&
10872 { ac_try='test -s conftest$ac_exeext'
10873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10874 (eval $ac_try) 2>&5
10875 ac_status=$?
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); }; }; then
10878 ac_cv_func_shl_load=yes
10879else
10880 echo "$as_me: failed program was:" >&5
10881sed 's/^/| /' conftest.$ac_ext >&5
10882
10883ac_cv_func_shl_load=no
10884fi
10885rm -f conftest.err conftest.$ac_objext \
10886 conftest$ac_exeext conftest.$ac_ext
10887fi
10888echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10889echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10890if test $ac_cv_func_shl_load = yes; then
10891 lt_cv_dlopen="shl_load"
10892else
10893 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10894echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10895if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10896 echo $ECHO_N "(cached) $ECHO_C" >&6
10897else
10898 ac_check_lib_save_LIBS=$LIBS
10899LIBS="-ldld $LIBS"
10900cat >conftest.$ac_ext <<_ACEOF
10901/* confdefs.h. */
10902_ACEOF
10903cat confdefs.h >>conftest.$ac_ext
10904cat >>conftest.$ac_ext <<_ACEOF
10905/* end confdefs.h. */
10906
10907/* Override any gcc2 internal prototype to avoid an error. */
10908#ifdef __cplusplus
10909extern "C"
10910#endif
10911/* We use char because int might match the return type of a gcc2
10912 builtin and then its argument prototype would still apply. */
10913char shl_load ();
10914int
10915main ()
10916{
10917shl_load ();
10918 ;
10919 return 0;
10920}
10921_ACEOF
10922rm -f conftest.$ac_objext conftest$ac_exeext
10923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10924 (eval $ac_link) 2>conftest.er1
10925 ac_status=$?
10926 grep -v '^ *+' conftest.er1 >conftest.err
10927 rm -f conftest.er1
10928 cat conftest.err >&5
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); } &&
7357c5b6
AM
10931 { ac_try='test -z "$ac_c_werror_flag"
10932 || test ! -s conftest.err'
d7040cdb
SE
10933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10934 (eval $ac_try) 2>&5
10935 ac_status=$?
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); }; } &&
10938 { ac_try='test -s conftest$ac_exeext'
10939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10940 (eval $ac_try) 2>&5
10941 ac_status=$?
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); }; }; then
10944 ac_cv_lib_dld_shl_load=yes
10945else
10946 echo "$as_me: failed program was:" >&5
10947sed 's/^/| /' conftest.$ac_ext >&5
10948
10949ac_cv_lib_dld_shl_load=no
10950fi
10951rm -f conftest.err conftest.$ac_objext \
10952 conftest$ac_exeext conftest.$ac_ext
10953LIBS=$ac_check_lib_save_LIBS
10954fi
10955echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10956echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10957if test $ac_cv_lib_dld_shl_load = yes; then
718a6fd8 10958 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
d7040cdb
SE
10959else
10960 echo "$as_me:$LINENO: checking for dlopen" >&5
10961echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10962if test "${ac_cv_func_dlopen+set}" = set; then
10963 echo $ECHO_N "(cached) $ECHO_C" >&6
10964else
10965 cat >conftest.$ac_ext <<_ACEOF
10966/* confdefs.h. */
10967_ACEOF
10968cat confdefs.h >>conftest.$ac_ext
10969cat >>conftest.$ac_ext <<_ACEOF
10970/* end confdefs.h. */
10971/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10973#define dlopen innocuous_dlopen
10974
10975/* System header to define __stub macros and hopefully few prototypes,
10976 which can conflict with char dlopen (); below.
10977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10978 <limits.h> exists even on freestanding compilers. */
10979
10980#ifdef __STDC__
10981# include <limits.h>
10982#else
10983# include <assert.h>
10984#endif
10985
10986#undef dlopen
10987
10988/* Override any gcc2 internal prototype to avoid an error. */
10989#ifdef __cplusplus
10990extern "C"
10991{
10992#endif
10993/* We use char because int might match the return type of a gcc2
10994 builtin and then its argument prototype would still apply. */
10995char dlopen ();
10996/* The GNU C library defines this for functions which it implements
10997 to always fail with ENOSYS. Some functions are actually named
10998 something starting with __ and the normal name is an alias. */
10999#if defined (__stub_dlopen) || defined (__stub___dlopen)
11000choke me
11001#else
11002char (*f) () = dlopen;
11003#endif
11004#ifdef __cplusplus
11005}
11006#endif
11007
11008int
11009main ()
11010{
11011return f != dlopen;
11012 ;
11013 return 0;
11014}
11015_ACEOF
11016rm -f conftest.$ac_objext conftest$ac_exeext
11017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11018 (eval $ac_link) 2>conftest.er1
11019 ac_status=$?
11020 grep -v '^ *+' conftest.er1 >conftest.err
11021 rm -f conftest.er1
11022 cat conftest.err >&5
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); } &&
7357c5b6
AM
11025 { ac_try='test -z "$ac_c_werror_flag"
11026 || test ! -s conftest.err'
d7040cdb
SE
11027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11028 (eval $ac_try) 2>&5
11029 ac_status=$?
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); }; } &&
11032 { ac_try='test -s conftest$ac_exeext'
11033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11034 (eval $ac_try) 2>&5
11035 ac_status=$?
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); }; }; then
11038 ac_cv_func_dlopen=yes
11039else
11040 echo "$as_me: failed program was:" >&5
11041sed 's/^/| /' conftest.$ac_ext >&5
11042
11043ac_cv_func_dlopen=no
11044fi
11045rm -f conftest.err conftest.$ac_objext \
11046 conftest$ac_exeext conftest.$ac_ext
11047fi
11048echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11049echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11050if test $ac_cv_func_dlopen = yes; then
11051 lt_cv_dlopen="dlopen"
11052else
11053 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11054echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11055if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11056 echo $ECHO_N "(cached) $ECHO_C" >&6
11057else
11058 ac_check_lib_save_LIBS=$LIBS
11059LIBS="-ldl $LIBS"
11060cat >conftest.$ac_ext <<_ACEOF
11061/* confdefs.h. */
11062_ACEOF
11063cat confdefs.h >>conftest.$ac_ext
11064cat >>conftest.$ac_ext <<_ACEOF
11065/* end confdefs.h. */
11066
11067/* Override any gcc2 internal prototype to avoid an error. */
11068#ifdef __cplusplus
11069extern "C"
11070#endif
11071/* We use char because int might match the return type of a gcc2
11072 builtin and then its argument prototype would still apply. */
11073char dlopen ();
11074int
11075main ()
11076{
11077dlopen ();
11078 ;
11079 return 0;
11080}
11081_ACEOF
11082rm -f conftest.$ac_objext conftest$ac_exeext
11083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11084 (eval $ac_link) 2>conftest.er1
11085 ac_status=$?
11086 grep -v '^ *+' conftest.er1 >conftest.err
11087 rm -f conftest.er1
11088 cat conftest.err >&5
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); } &&
7357c5b6
AM
11091 { ac_try='test -z "$ac_c_werror_flag"
11092 || test ! -s conftest.err'
d7040cdb
SE
11093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11094 (eval $ac_try) 2>&5
11095 ac_status=$?
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); }; } &&
11098 { ac_try='test -s conftest$ac_exeext'
11099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11100 (eval $ac_try) 2>&5
11101 ac_status=$?
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; }; then
11104 ac_cv_lib_dl_dlopen=yes
11105else
11106 echo "$as_me: failed program was:" >&5
11107sed 's/^/| /' conftest.$ac_ext >&5
11108
11109ac_cv_lib_dl_dlopen=no
11110fi
11111rm -f conftest.err conftest.$ac_objext \
11112 conftest$ac_exeext conftest.$ac_ext
11113LIBS=$ac_check_lib_save_LIBS
11114fi
11115echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11116echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11117if test $ac_cv_lib_dl_dlopen = yes; then
11118 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11119else
11120 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11121echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11122if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11123 echo $ECHO_N "(cached) $ECHO_C" >&6
11124else
11125 ac_check_lib_save_LIBS=$LIBS
11126LIBS="-lsvld $LIBS"
11127cat >conftest.$ac_ext <<_ACEOF
11128/* confdefs.h. */
11129_ACEOF
11130cat confdefs.h >>conftest.$ac_ext
11131cat >>conftest.$ac_ext <<_ACEOF
11132/* end confdefs.h. */
11133
11134/* Override any gcc2 internal prototype to avoid an error. */
11135#ifdef __cplusplus
11136extern "C"
11137#endif
11138/* We use char because int might match the return type of a gcc2
11139 builtin and then its argument prototype would still apply. */
11140char dlopen ();
11141int
11142main ()
11143{
11144dlopen ();
11145 ;
11146 return 0;
11147}
11148_ACEOF
11149rm -f conftest.$ac_objext conftest$ac_exeext
11150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11151 (eval $ac_link) 2>conftest.er1
11152 ac_status=$?
11153 grep -v '^ *+' conftest.er1 >conftest.err
11154 rm -f conftest.er1
11155 cat conftest.err >&5
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); } &&
7357c5b6
AM
11158 { ac_try='test -z "$ac_c_werror_flag"
11159 || test ! -s conftest.err'
d7040cdb
SE
11160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11161 (eval $ac_try) 2>&5
11162 ac_status=$?
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); }; } &&
11165 { ac_try='test -s conftest$ac_exeext'
11166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167 (eval $ac_try) 2>&5
11168 ac_status=$?
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); }; }; then
11171 ac_cv_lib_svld_dlopen=yes
11172else
11173 echo "$as_me: failed program was:" >&5
11174sed 's/^/| /' conftest.$ac_ext >&5
11175
11176ac_cv_lib_svld_dlopen=no
11177fi
11178rm -f conftest.err conftest.$ac_objext \
11179 conftest$ac_exeext conftest.$ac_ext
11180LIBS=$ac_check_lib_save_LIBS
11181fi
11182echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11183echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11184if test $ac_cv_lib_svld_dlopen = yes; then
11185 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11186else
11187 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11188echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11189if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11190 echo $ECHO_N "(cached) $ECHO_C" >&6
11191else
11192 ac_check_lib_save_LIBS=$LIBS
11193LIBS="-ldld $LIBS"
11194cat >conftest.$ac_ext <<_ACEOF
11195/* confdefs.h. */
11196_ACEOF
11197cat confdefs.h >>conftest.$ac_ext
11198cat >>conftest.$ac_ext <<_ACEOF
11199/* end confdefs.h. */
11200
11201/* Override any gcc2 internal prototype to avoid an error. */
11202#ifdef __cplusplus
11203extern "C"
11204#endif
11205/* We use char because int might match the return type of a gcc2
11206 builtin and then its argument prototype would still apply. */
11207char dld_link ();
11208int
11209main ()
11210{
11211dld_link ();
11212 ;
11213 return 0;
11214}
11215_ACEOF
11216rm -f conftest.$ac_objext conftest$ac_exeext
11217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11218 (eval $ac_link) 2>conftest.er1
11219 ac_status=$?
11220 grep -v '^ *+' conftest.er1 >conftest.err
11221 rm -f conftest.er1
11222 cat conftest.err >&5
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); } &&
7357c5b6
AM
11225 { ac_try='test -z "$ac_c_werror_flag"
11226 || test ! -s conftest.err'
d7040cdb
SE
11227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11228 (eval $ac_try) 2>&5
11229 ac_status=$?
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); }; } &&
11232 { ac_try='test -s conftest$ac_exeext'
11233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11234 (eval $ac_try) 2>&5
11235 ac_status=$?
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); }; }; then
11238 ac_cv_lib_dld_dld_link=yes
11239else
11240 echo "$as_me: failed program was:" >&5
11241sed 's/^/| /' conftest.$ac_ext >&5
11242
11243ac_cv_lib_dld_dld_link=no
11244fi
11245rm -f conftest.err conftest.$ac_objext \
11246 conftest$ac_exeext conftest.$ac_ext
11247LIBS=$ac_check_lib_save_LIBS
11248fi
11249echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11250echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11251if test $ac_cv_lib_dld_dld_link = yes; then
718a6fd8 11252 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
d7040cdb
SE
11253fi
11254
11255
11256fi
11257
11258
11259fi
11260
11261
11262fi
11263
11264
11265fi
11266
11267
11268fi
11269
11270 ;;
11271 esac
11272
11273 if test "x$lt_cv_dlopen" != xno; then
11274 enable_dlopen=yes
11275 else
11276 enable_dlopen=no
11277 fi
11278
11279 case $lt_cv_dlopen in
11280 dlopen)
11281 save_CPPFLAGS="$CPPFLAGS"
11282 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11283
11284 save_LDFLAGS="$LDFLAGS"
11285 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11286
11287 save_LIBS="$LIBS"
11288 LIBS="$lt_cv_dlopen_libs $LIBS"
11289
11290 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11291echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11292if test "${lt_cv_dlopen_self+set}" = set; then
11293 echo $ECHO_N "(cached) $ECHO_C" >&6
11294else
11295 if test "$cross_compiling" = yes; then :
11296 lt_cv_dlopen_self=cross
11297else
11298 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11299 lt_status=$lt_dlunknown
11300 cat > conftest.$ac_ext <<_LT_EOF
e3525117 11301#line 11301 "configure"
d7040cdb
SE
11302#include "confdefs.h"
11303
11304#if HAVE_DLFCN_H
11305#include <dlfcn.h>
11306#endif
11307
11308#include <stdio.h>
11309
11310#ifdef RTLD_GLOBAL
11311# define LT_DLGLOBAL RTLD_GLOBAL
11312#else
11313# ifdef DL_GLOBAL
11314# define LT_DLGLOBAL DL_GLOBAL
11315# else
11316# define LT_DLGLOBAL 0
11317# endif
11318#endif
11319
11320/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11321 find out it does not work in some platform. */
11322#ifndef LT_DLLAZY_OR_NOW
11323# ifdef RTLD_LAZY
11324# define LT_DLLAZY_OR_NOW RTLD_LAZY
11325# else
11326# ifdef DL_LAZY
11327# define LT_DLLAZY_OR_NOW DL_LAZY
11328# else
11329# ifdef RTLD_NOW
11330# define LT_DLLAZY_OR_NOW RTLD_NOW
11331# else
11332# ifdef DL_NOW
11333# define LT_DLLAZY_OR_NOW DL_NOW
11334# else
11335# define LT_DLLAZY_OR_NOW 0
11336# endif
11337# endif
11338# endif
11339# endif
11340#endif
11341
d7040cdb
SE
11342void fnord() { int i=42;}
11343int main ()
11344{
11345 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11346 int status = $lt_dlunknown;
11347
11348 if (self)
11349 {
11350 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11351 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11352 /* dlclose (self); */
11353 }
11354 else
11355 puts (dlerror ());
11356
718a6fd8 11357 return status;
d7040cdb
SE
11358}
11359_LT_EOF
11360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11361 (eval $ac_link) 2>&5
11362 ac_status=$?
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11365 (./conftest; exit; ) >&5 2>/dev/null
11366 lt_status=$?
11367 case x$lt_status in
11368 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11369 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11370 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11371 esac
11372 else :
11373 # compilation failed
11374 lt_cv_dlopen_self=no
11375 fi
11376fi
11377rm -fr conftest*
11378
11379
11380fi
11381echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11382echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11383
11384 if test "x$lt_cv_dlopen_self" = xyes; then
11385 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11386 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11387echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11388if test "${lt_cv_dlopen_self_static+set}" = set; then
11389 echo $ECHO_N "(cached) $ECHO_C" >&6
11390else
11391 if test "$cross_compiling" = yes; then :
11392 lt_cv_dlopen_self_static=cross
11393else
11394 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11395 lt_status=$lt_dlunknown
11396 cat > conftest.$ac_ext <<_LT_EOF
e3525117 11397#line 11397 "configure"
d7040cdb
SE
11398#include "confdefs.h"
11399
11400#if HAVE_DLFCN_H
11401#include <dlfcn.h>
11402#endif
11403
11404#include <stdio.h>
11405
11406#ifdef RTLD_GLOBAL
11407# define LT_DLGLOBAL RTLD_GLOBAL
11408#else
11409# ifdef DL_GLOBAL
11410# define LT_DLGLOBAL DL_GLOBAL
11411# else
11412# define LT_DLGLOBAL 0
11413# endif
11414#endif
11415
11416/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11417 find out it does not work in some platform. */
11418#ifndef LT_DLLAZY_OR_NOW
11419# ifdef RTLD_LAZY
11420# define LT_DLLAZY_OR_NOW RTLD_LAZY
11421# else
11422# ifdef DL_LAZY
11423# define LT_DLLAZY_OR_NOW DL_LAZY
11424# else
11425# ifdef RTLD_NOW
11426# define LT_DLLAZY_OR_NOW RTLD_NOW
11427# else
11428# ifdef DL_NOW
11429# define LT_DLLAZY_OR_NOW DL_NOW
11430# else
11431# define LT_DLLAZY_OR_NOW 0
11432# endif
11433# endif
11434# endif
11435# endif
11436#endif
11437
d7040cdb
SE
11438void fnord() { int i=42;}
11439int main ()
11440{
11441 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11442 int status = $lt_dlunknown;
11443
11444 if (self)
11445 {
11446 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11447 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11448 /* dlclose (self); */
11449 }
11450 else
11451 puts (dlerror ());
11452
718a6fd8 11453 return status;
d7040cdb
SE
11454}
11455_LT_EOF
11456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11457 (eval $ac_link) 2>&5
11458 ac_status=$?
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11461 (./conftest; exit; ) >&5 2>/dev/null
11462 lt_status=$?
11463 case x$lt_status in
11464 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11465 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11466 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11467 esac
11468 else :
11469 # compilation failed
11470 lt_cv_dlopen_self_static=no
11471 fi
11472fi
11473rm -fr conftest*
11474
11475
11476fi
11477echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11478echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11479 fi
11480
11481 CPPFLAGS="$save_CPPFLAGS"
11482 LDFLAGS="$save_LDFLAGS"
11483 LIBS="$save_LIBS"
11484 ;;
11485 esac
11486
11487 case $lt_cv_dlopen_self in
11488 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11489 *) enable_dlopen_self=unknown ;;
11490 esac
11491
11492 case $lt_cv_dlopen_self_static in
11493 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11494 *) enable_dlopen_self_static=unknown ;;
11495 esac
11496fi
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514striplib=
11515old_striplib=
11516echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11517echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11518if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11519 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11520 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11521 echo "$as_me:$LINENO: result: yes" >&5
11522echo "${ECHO_T}yes" >&6
11523else
11524# FIXME - insert some real tests, host_os isn't really good enough
11525 case $host_os in
11526 darwin*)
11527 if test -n "$STRIP" ; then
11528 striplib="$STRIP -x"
11529 old_striplib="$STRIP -S"
11530 echo "$as_me:$LINENO: result: yes" >&5
11531echo "${ECHO_T}yes" >&6
11532 else
11533 echo "$as_me:$LINENO: result: no" >&5
11534echo "${ECHO_T}no" >&6
11535 fi
11536 ;;
11537 *)
11538 echo "$as_me:$LINENO: result: no" >&5
11539echo "${ECHO_T}no" >&6
11540 ;;
11541 esac
11542fi
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555 # Report which library types will actually be built
11556 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11557echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11558 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11559echo "${ECHO_T}$can_build_shared" >&6
11560
11561 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11562echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11563 test "$can_build_shared" = "no" && enable_shared=no
11564
11565 # On AIX, shared libraries and static libraries use the same namespace, and
11566 # are all built from PIC.
11567 case $host_os in
11568 aix3*)
11569 test "$enable_shared" = yes && enable_static=no
11570 if test -n "$RANLIB"; then
11571 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11572 postinstall_cmds='$RANLIB $lib'
11573 fi
11574 ;;
11575
50e7d84b 11576 aix[4-9]*)
d7040cdb
SE
11577 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11578 test "$enable_shared" = yes && enable_static=no
11579 fi
11580 ;;
11581 esac
11582 echo "$as_me:$LINENO: result: $enable_shared" >&5
11583echo "${ECHO_T}$enable_shared" >&6
11584
11585 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11586echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11587 # Make sure either enable_shared or enable_static is yes.
11588 test "$enable_shared" = yes || enable_static=yes
11589 echo "$as_me:$LINENO: result: $enable_static" >&5
11590echo "${ECHO_T}$enable_static" >&6
11591
11592
11593
11594
11595fi
11596ac_ext=c
11597ac_cpp='$CPP $CPPFLAGS'
11598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11600ac_compiler_gnu=$ac_cv_c_compiler_gnu
11601
11602CC="$lt_save_CC"
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616 ac_config_commands="$ac_config_commands libtool"
11617
11618
11619
11620
11621# Only expand once:
11622
11623
11624
11625# Check whether --enable-targets or --disable-targets was given.
11626if test "${enable_targets+set}" = set; then
11627 enableval="$enable_targets"
11628 case "${enableval}" in
11629 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
11630echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
11631 { (exit 1); exit 1; }; }
11632 ;;
11633 no) enable_targets= ;;
11634 *) enable_targets=$enableval ;;
11635esac
d7040cdb
SE
11636fi;
11637
11638GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11639
11640# Check whether --enable-werror or --disable-werror was given.
11641if test "${enable_werror+set}" = set; then
11642 enableval="$enable_werror"
11643 case "${enableval}" in
11644 yes | y) ERROR_ON_WARNING="yes" ;;
11645 no | n) ERROR_ON_WARNING="no" ;;
11646 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
11647echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
11648 { (exit 1); exit 1; }; } ;;
11649 esac
11650fi;
11651
bb8541b9
L
11652# Enable -Wno-format by default when using gcc on mingw
11653case "${host}" in
11654 *-*-mingw32*)
11655 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11656 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11657 fi
11658 ;;
11659 *) ;;
11660esac
11661
d7040cdb
SE
11662# Enable -Werror by default when using gcc
11663if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11664 ERROR_ON_WARNING=yes
11665fi
11666
11667NO_WERROR=
11668if test "${ERROR_ON_WARNING}" = yes ; then
11669 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11670 NO_WERROR="-Wno-error"
11671fi
11672
11673if test "${GCC}" = yes ; then
11674 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11675fi
11676
11677# Check whether --enable-build-warnings or --disable-build-warnings was given.
11678if test "${enable_build_warnings+set}" = set; then
11679 enableval="$enable_build_warnings"
11680 case "${enableval}" in
11681 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11682 no) if test "${GCC}" = yes ; then
11683 WARN_CFLAGS="-w"
11684 fi;;
11685 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11686 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11687 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11688 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11689 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11690esac
11691fi;
11692
11693if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11694 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11695fi
11696
11697
11698
11699
11700
11701 ac_config_headers="$ac_config_headers config.h:config.in"
11702
11703
11704if test -z "$target" ; then
11705 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
11706echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
11707 { (exit 1); exit 1; }; }
11708fi
11709if test -z "$host" ; then
11710 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
11711echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
11712 { (exit 1); exit 1; }; }
11713fi
11714
11715for ac_prog in 'bison -y' byacc
11716do
11717 # Extract the first word of "$ac_prog", so it can be a program name with args.
11718set dummy $ac_prog; ac_word=$2
11719echo "$as_me:$LINENO: checking for $ac_word" >&5
11720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11721if test "${ac_cv_prog_YACC+set}" = set; then
11722 echo $ECHO_N "(cached) $ECHO_C" >&6
11723else
11724 if test -n "$YACC"; then
11725 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11726else
11727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11728for as_dir in $PATH
11729do
11730 IFS=$as_save_IFS
11731 test -z "$as_dir" && as_dir=.
11732 for ac_exec_ext in '' $ac_executable_extensions; do
11733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11734 ac_cv_prog_YACC="$ac_prog"
11735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11736 break 2
11737 fi
11738done
11739done
11740
11741fi
11742fi
11743YACC=$ac_cv_prog_YACC
11744if test -n "$YACC"; then
11745 echo "$as_me:$LINENO: result: $YACC" >&5
11746echo "${ECHO_T}$YACC" >&6
11747else
11748 echo "$as_me:$LINENO: result: no" >&5
11749echo "${ECHO_T}no" >&6
11750fi
11751
11752 test -n "$YACC" && break
11753done
11754test -n "$YACC" || YACC="yacc"
11755
11756for ac_prog in flex lex
11757do
11758 # Extract the first word of "$ac_prog", so it can be a program name with args.
11759set dummy $ac_prog; ac_word=$2
11760echo "$as_me:$LINENO: checking for $ac_word" >&5
11761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11762if test "${ac_cv_prog_LEX+set}" = set; then
11763 echo $ECHO_N "(cached) $ECHO_C" >&6
11764else
11765 if test -n "$LEX"; then
11766 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11767else
11768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11769for as_dir in $PATH
11770do
11771 IFS=$as_save_IFS
11772 test -z "$as_dir" && as_dir=.
11773 for ac_exec_ext in '' $ac_executable_extensions; do
11774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11775 ac_cv_prog_LEX="$ac_prog"
11776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11777 break 2
11778 fi
11779done
11780done
11781
11782fi
11783fi
11784LEX=$ac_cv_prog_LEX
11785if test -n "$LEX"; then
11786 echo "$as_me:$LINENO: result: $LEX" >&5
11787echo "${ECHO_T}$LEX" >&6
11788else
11789 echo "$as_me:$LINENO: result: no" >&5
11790echo "${ECHO_T}no" >&6
11791fi
11792
11793 test -n "$LEX" && break
11794done
11795test -n "$LEX" || LEX=":"
11796
11797if test -z "$LEXLIB"
11798then
11799 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11800echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11801if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11802 echo $ECHO_N "(cached) $ECHO_C" >&6
11803else
11804 ac_check_lib_save_LIBS=$LIBS
11805LIBS="-lfl $LIBS"
11806cat >conftest.$ac_ext <<_ACEOF
11807/* confdefs.h. */
11808_ACEOF
11809cat confdefs.h >>conftest.$ac_ext
11810cat >>conftest.$ac_ext <<_ACEOF
11811/* end confdefs.h. */
11812
11813/* Override any gcc2 internal prototype to avoid an error. */
11814#ifdef __cplusplus
11815extern "C"
11816#endif
11817/* We use char because int might match the return type of a gcc2
11818 builtin and then its argument prototype would still apply. */
11819char yywrap ();
11820int
11821main ()
11822{
11823yywrap ();
11824 ;
11825 return 0;
11826}
11827_ACEOF
11828rm -f conftest.$ac_objext conftest$ac_exeext
11829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11830 (eval $ac_link) 2>conftest.er1
11831 ac_status=$?
11832 grep -v '^ *+' conftest.er1 >conftest.err
11833 rm -f conftest.er1
11834 cat conftest.err >&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); } &&
7357c5b6
AM
11837 { ac_try='test -z "$ac_c_werror_flag"
11838 || test ! -s conftest.err'
d7040cdb
SE
11839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11840 (eval $ac_try) 2>&5
11841 ac_status=$?
11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); }; } &&
11844 { ac_try='test -s conftest$ac_exeext'
11845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11846 (eval $ac_try) 2>&5
11847 ac_status=$?
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); }; }; then
11850 ac_cv_lib_fl_yywrap=yes
11851else
11852 echo "$as_me: failed program was:" >&5
11853sed 's/^/| /' conftest.$ac_ext >&5
11854
11855ac_cv_lib_fl_yywrap=no
11856fi
11857rm -f conftest.err conftest.$ac_objext \
11858 conftest$ac_exeext conftest.$ac_ext
11859LIBS=$ac_check_lib_save_LIBS
11860fi
11861echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11862echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11863if test $ac_cv_lib_fl_yywrap = yes; then
11864 LEXLIB="-lfl"
11865else
11866 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11867echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11868if test "${ac_cv_lib_l_yywrap+set}" = set; then
11869 echo $ECHO_N "(cached) $ECHO_C" >&6
11870else
11871 ac_check_lib_save_LIBS=$LIBS
11872LIBS="-ll $LIBS"
11873cat >conftest.$ac_ext <<_ACEOF
11874/* confdefs.h. */
11875_ACEOF
11876cat confdefs.h >>conftest.$ac_ext
11877cat >>conftest.$ac_ext <<_ACEOF
11878/* end confdefs.h. */
11879
11880/* Override any gcc2 internal prototype to avoid an error. */
11881#ifdef __cplusplus
11882extern "C"
11883#endif
11884/* We use char because int might match the return type of a gcc2
11885 builtin and then its argument prototype would still apply. */
11886char yywrap ();
11887int
11888main ()
11889{
11890yywrap ();
11891 ;
11892 return 0;
11893}
11894_ACEOF
11895rm -f conftest.$ac_objext conftest$ac_exeext
11896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11897 (eval $ac_link) 2>conftest.er1
11898 ac_status=$?
11899 grep -v '^ *+' conftest.er1 >conftest.err
11900 rm -f conftest.er1
11901 cat conftest.err >&5
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); } &&
7357c5b6
AM
11904 { ac_try='test -z "$ac_c_werror_flag"
11905 || test ! -s conftest.err'
d7040cdb
SE
11906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11907 (eval $ac_try) 2>&5
11908 ac_status=$?
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); }; } &&
11911 { ac_try='test -s conftest$ac_exeext'
11912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11913 (eval $ac_try) 2>&5
11914 ac_status=$?
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); }; }; then
11917 ac_cv_lib_l_yywrap=yes
11918else
11919 echo "$as_me: failed program was:" >&5
11920sed 's/^/| /' conftest.$ac_ext >&5
11921
11922ac_cv_lib_l_yywrap=no
11923fi
11924rm -f conftest.err conftest.$ac_objext \
11925 conftest$ac_exeext conftest.$ac_ext
11926LIBS=$ac_check_lib_save_LIBS
11927fi
11928echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11929echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11930if test $ac_cv_lib_l_yywrap = yes; then
11931 LEXLIB="-ll"
11932fi
11933
11934fi
11935
11936fi
11937
11938if test "x$LEX" != "x:"; then
11939 echo "$as_me:$LINENO: checking lex output file root" >&5
11940echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11941if test "${ac_cv_prog_lex_root+set}" = set; then
11942 echo $ECHO_N "(cached) $ECHO_C" >&6
11943else
11944 # The minimal lex program is just a single line: %%. But some broken lexes
11945# (Solaris, I think it was) want two %% lines, so accommodate them.
11946cat >conftest.l <<_ACEOF
11947%%
11948%%
11949_ACEOF
11950{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11951 (eval $LEX conftest.l) 2>&5
11952 ac_status=$?
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }
11955if test -f lex.yy.c; then
11956 ac_cv_prog_lex_root=lex.yy
11957elif test -f lexyy.c; then
11958 ac_cv_prog_lex_root=lexyy
11959else
11960 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11961echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11962 { (exit 1); exit 1; }; }
11963fi
11964fi
11965echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11966echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11967rm -f conftest.l
11968LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11969
11970echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11971echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11972if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11973 echo $ECHO_N "(cached) $ECHO_C" >&6
11974else
11975 # POSIX says lex can declare yytext either as a pointer or an array; the
11976# default is implementation-dependent. Figure out which it is, since
11977# not all implementations provide the %pointer and %array declarations.
11978ac_cv_prog_lex_yytext_pointer=no
11979echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11980ac_save_LIBS=$LIBS
11981LIBS="$LIBS $LEXLIB"
11982cat >conftest.$ac_ext <<_ACEOF
11983`cat $LEX_OUTPUT_ROOT.c`
11984_ACEOF
11985rm -f conftest.$ac_objext conftest$ac_exeext
11986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11987 (eval $ac_link) 2>conftest.er1
11988 ac_status=$?
11989 grep -v '^ *+' conftest.er1 >conftest.err
11990 rm -f conftest.er1
11991 cat conftest.err >&5
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); } &&
7357c5b6
AM
11994 { ac_try='test -z "$ac_c_werror_flag"
11995 || test ! -s conftest.err'
d7040cdb
SE
11996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11997 (eval $ac_try) 2>&5
11998 ac_status=$?
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); }; } &&
12001 { ac_try='test -s conftest$ac_exeext'
12002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12003 (eval $ac_try) 2>&5
12004 ac_status=$?
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); }; }; then
12007 ac_cv_prog_lex_yytext_pointer=yes
12008else
12009 echo "$as_me: failed program was:" >&5
12010sed 's/^/| /' conftest.$ac_ext >&5
12011
12012fi
12013rm -f conftest.err conftest.$ac_objext \
12014 conftest$ac_exeext conftest.$ac_ext
12015LIBS=$ac_save_LIBS
12016rm -f "${LEX_OUTPUT_ROOT}.c"
12017
12018fi
12019echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
12020echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
12021if test $ac_cv_prog_lex_yytext_pointer = yes; then
12022
12023cat >>confdefs.h <<\_ACEOF
12024#define YYTEXT_POINTER 1
12025_ACEOF
12026
12027fi
12028
12029fi
12030if test "$LEX" = :; then
12031 LEX=${am_missing_run}flex
12032fi
12033
ac5d747e 12034ALL_LINGUAS="da es fi fr id ja ro ru rw sk sv tr uk vi zh_CN zh_TW"
d7040cdb
SE
12035# If we haven't got the data from the intl directory,
12036# assume NLS is disabled.
12037USE_NLS=no
12038LIBINTL=
12039LIBINTL_DEP=
12040INCINTL=
12041XGETTEXT=
12042GMSGFMT=
12043POSUB=
12044
12045if test -f ../intl/config.intl; then
12046 . ../intl/config.intl
12047fi
12048echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12049echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12050if test x"$USE_NLS" != xyes; then
12051 echo "$as_me:$LINENO: result: no" >&5
12052echo "${ECHO_T}no" >&6
12053else
12054 echo "$as_me:$LINENO: result: yes" >&5
12055echo "${ECHO_T}yes" >&6
12056
12057cat >>confdefs.h <<\_ACEOF
12058#define ENABLE_NLS 1
12059_ACEOF
12060
12061
12062 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12063echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12064 # Look for .po and .gmo files in the source directory.
12065 CATALOGS=
12066 XLINGUAS=
12067 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12068 # If there aren't any .gmo files the shell will give us the
12069 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12070 # weeded out.
12071 case "$cat" in *\**)
12072 continue;;
12073 esac
12074 # The quadruple backslash is collapsed to a double backslash
12075 # by the backticks, then collapsed again by the double quotes,
12076 # leaving us with one backslash in the sed expression (right
12077 # before the dot that mustn't act as a wildcard).
12078 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12079 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12080 # The user is allowed to set LINGUAS to a list of languages to
12081 # install catalogs for. If it's empty that means "all of them."
12082 if test "x$LINGUAS" = x; then
12083 CATALOGS="$CATALOGS $cat"
12084 XLINGUAS="$XLINGUAS $lang"
12085 else
12086 case "$LINGUAS" in *$lang*)
12087 CATALOGS="$CATALOGS $cat"
12088 XLINGUAS="$XLINGUAS $lang"
12089 ;;
12090 esac
12091 fi
12092 done
12093 LINGUAS="$XLINGUAS"
12094 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12095echo "${ECHO_T}$LINGUAS" >&6
12096
12097
12098 DATADIRNAME=share
12099
12100 INSTOBJEXT=.mo
12101
12102 GENCAT=gencat
12103
12104 CATOBJEXT=.gmo
12105
12106fi
12107
12108 MKINSTALLDIRS=
12109 if test -n "$ac_aux_dir"; then
12110 case "$ac_aux_dir" in
12111 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12112 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12113 esac
12114 fi
12115 if test -z "$MKINSTALLDIRS"; then
12116 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12117 fi
12118
12119
12120
12121 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12122echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12123 # Check whether --enable-nls or --disable-nls was given.
12124if test "${enable_nls+set}" = set; then
12125 enableval="$enable_nls"
12126 USE_NLS=$enableval
12127else
12128 USE_NLS=yes
12129fi;
12130 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12131echo "${ECHO_T}$USE_NLS" >&6
12132
12133
12134
12135
12136
12137
12138# Prepare PATH_SEPARATOR.
12139# The user is always right.
12140if test "${PATH_SEPARATOR+set}" != set; then
12141 echo "#! /bin/sh" >conf$$.sh
12142 echo "exit 0" >>conf$$.sh
12143 chmod +x conf$$.sh
12144 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12145 PATH_SEPARATOR=';'
12146 else
12147 PATH_SEPARATOR=:
12148 fi
12149 rm -f conf$$.sh
12150fi
12151
12152# Find out how to test for executable files. Don't use a zero-byte file,
12153# as systems may use methods other than mode bits to determine executability.
12154cat >conf$$.file <<_ASEOF
12155#! /bin/sh
12156exit 0
12157_ASEOF
12158chmod +x conf$$.file
12159if test -x conf$$.file >/dev/null 2>&1; then
12160 ac_executable_p="test -x"
12161else
12162 ac_executable_p="test -f"
12163fi
12164rm -f conf$$.file
12165
12166# Extract the first word of "msgfmt", so it can be a program name with args.
12167set dummy msgfmt; ac_word=$2
12168echo "$as_me:$LINENO: checking for $ac_word" >&5
12169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12170if test "${ac_cv_path_MSGFMT+set}" = set; then
12171 echo $ECHO_N "(cached) $ECHO_C" >&6
12172else
12173 case "$MSGFMT" in
12174 [\\/]* | ?:[\\/]*)
12175 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12176 ;;
12177 *)
12178 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12179 for ac_dir in $PATH; do
12180 IFS="$ac_save_IFS"
12181 test -z "$ac_dir" && ac_dir=.
12182 for ac_exec_ext in '' $ac_executable_extensions; do
12183 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12184 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12185 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12186 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12187 break 2
12188 fi
12189 fi
12190 done
12191 done
12192 IFS="$ac_save_IFS"
12193 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12194 ;;
12195esac
12196fi
12197MSGFMT="$ac_cv_path_MSGFMT"
12198if test "$MSGFMT" != ":"; then
12199 echo "$as_me:$LINENO: result: $MSGFMT" >&5
12200echo "${ECHO_T}$MSGFMT" >&6
12201else
12202 echo "$as_me:$LINENO: result: no" >&5
12203echo "${ECHO_T}no" >&6
12204fi
12205
12206 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12207set dummy gmsgfmt; ac_word=$2
12208echo "$as_me:$LINENO: checking for $ac_word" >&5
12209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12210if test "${ac_cv_path_GMSGFMT+set}" = set; then
12211 echo $ECHO_N "(cached) $ECHO_C" >&6
12212else
12213 case $GMSGFMT in
12214 [\\/]* | ?:[\\/]*)
12215 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12216 ;;
12217 *)
12218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12219for as_dir in $PATH
12220do
12221 IFS=$as_save_IFS
12222 test -z "$as_dir" && as_dir=.
12223 for ac_exec_ext in '' $ac_executable_extensions; do
12224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12225 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12227 break 2
12228 fi
12229done
12230done
12231
12232 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12233 ;;
12234esac
12235fi
12236GMSGFMT=$ac_cv_path_GMSGFMT
12237
12238if test -n "$GMSGFMT"; then
12239 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
12240echo "${ECHO_T}$GMSGFMT" >&6
12241else
12242 echo "$as_me:$LINENO: result: no" >&5
12243echo "${ECHO_T}no" >&6
12244fi
12245
12246
12247
12248# Prepare PATH_SEPARATOR.
12249# The user is always right.
12250if test "${PATH_SEPARATOR+set}" != set; then
12251 echo "#! /bin/sh" >conf$$.sh
12252 echo "exit 0" >>conf$$.sh
12253 chmod +x conf$$.sh
12254 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12255 PATH_SEPARATOR=';'
12256 else
12257 PATH_SEPARATOR=:
12258 fi
12259 rm -f conf$$.sh
12260fi
12261
12262# Find out how to test for executable files. Don't use a zero-byte file,
12263# as systems may use methods other than mode bits to determine executability.
12264cat >conf$$.file <<_ASEOF
12265#! /bin/sh
12266exit 0
12267_ASEOF
12268chmod +x conf$$.file
12269if test -x conf$$.file >/dev/null 2>&1; then
12270 ac_executable_p="test -x"
12271else
12272 ac_executable_p="test -f"
12273fi
12274rm -f conf$$.file
12275
12276# Extract the first word of "xgettext", so it can be a program name with args.
12277set dummy xgettext; ac_word=$2
12278echo "$as_me:$LINENO: checking for $ac_word" >&5
12279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12280if test "${ac_cv_path_XGETTEXT+set}" = set; then
12281 echo $ECHO_N "(cached) $ECHO_C" >&6
12282else
12283 case "$XGETTEXT" in
12284 [\\/]* | ?:[\\/]*)
12285 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12286 ;;
12287 *)
12288 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12289 for ac_dir in $PATH; do
12290 IFS="$ac_save_IFS"
12291 test -z "$ac_dir" && ac_dir=.
12292 for ac_exec_ext in '' $ac_executable_extensions; do
12293 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12294 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12295 (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
12296 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12297 break 2
12298 fi
12299 fi
12300 done
12301 done
12302 IFS="$ac_save_IFS"
12303 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12304 ;;
12305esac
12306fi
12307XGETTEXT="$ac_cv_path_XGETTEXT"
12308if test "$XGETTEXT" != ":"; then
12309 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
12310echo "${ECHO_T}$XGETTEXT" >&6
12311else
12312 echo "$as_me:$LINENO: result: no" >&5
12313echo "${ECHO_T}no" >&6
12314fi
12315
12316 rm -f messages.po
12317
12318
12319# Prepare PATH_SEPARATOR.
12320# The user is always right.
12321if test "${PATH_SEPARATOR+set}" != set; then
12322 echo "#! /bin/sh" >conf$$.sh
12323 echo "exit 0" >>conf$$.sh
12324 chmod +x conf$$.sh
12325 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12326 PATH_SEPARATOR=';'
12327 else
12328 PATH_SEPARATOR=:
12329 fi
12330 rm -f conf$$.sh
12331fi
12332
12333# Find out how to test for executable files. Don't use a zero-byte file,
12334# as systems may use methods other than mode bits to determine executability.
12335cat >conf$$.file <<_ASEOF
12336#! /bin/sh
12337exit 0
12338_ASEOF
12339chmod +x conf$$.file
12340if test -x conf$$.file >/dev/null 2>&1; then
12341 ac_executable_p="test -x"
12342else
12343 ac_executable_p="test -f"
12344fi
12345rm -f conf$$.file
12346
12347# Extract the first word of "msgmerge", so it can be a program name with args.
12348set dummy msgmerge; ac_word=$2
12349echo "$as_me:$LINENO: checking for $ac_word" >&5
12350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12351if test "${ac_cv_path_MSGMERGE+set}" = set; then
12352 echo $ECHO_N "(cached) $ECHO_C" >&6
12353else
12354 case "$MSGMERGE" in
12355 [\\/]* | ?:[\\/]*)
12356 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12357 ;;
12358 *)
12359 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12360 for ac_dir in $PATH; do
12361 IFS="$ac_save_IFS"
12362 test -z "$ac_dir" && ac_dir=.
12363 for ac_exec_ext in '' $ac_executable_extensions; do
12364 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12365 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12366 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12367 break 2
12368 fi
12369 fi
12370 done
12371 done
12372 IFS="$ac_save_IFS"
12373 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12374 ;;
12375esac
12376fi
12377MSGMERGE="$ac_cv_path_MSGMERGE"
12378if test "$MSGMERGE" != ":"; then
12379 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
12380echo "${ECHO_T}$MSGMERGE" >&6
12381else
12382 echo "$as_me:$LINENO: result: no" >&5
12383echo "${ECHO_T}no" >&6
12384fi
12385
12386
12387 if test "$GMSGFMT" != ":"; then
12388 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12389 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12390 : ;
12391 else
12392 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12393 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12394echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
12395 GMSGFMT=":"
12396 fi
12397 fi
12398
12399 if test "$XGETTEXT" != ":"; then
12400 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12401 (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
12402 : ;
12403 else
12404 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
12405echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
12406 XGETTEXT=":"
12407 fi
12408 rm -f messages.po
12409 fi
12410
12411 ac_config_commands="$ac_config_commands default-1"
12412
12413
12414
12415echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12416echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12417 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12418if test "${enable_maintainer_mode+set}" = set; then
12419 enableval="$enable_maintainer_mode"
12420 USE_MAINTAINER_MODE=$enableval
42ecbf5e 12421else
d7040cdb
SE
12422 USE_MAINTAINER_MODE=no
12423fi;
12424 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12425echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
42ecbf5e 12426
d7040cdb
SE
12427
12428if test $USE_MAINTAINER_MODE = yes; then
12429 MAINTAINER_MODE_TRUE=
12430 MAINTAINER_MODE_FALSE='#'
12431else
12432 MAINTAINER_MODE_TRUE='#'
12433 MAINTAINER_MODE_FALSE=
42ecbf5e 12434fi
d7040cdb
SE
12435
12436 MAINT=$MAINTAINER_MODE_TRUE
12437
12438
12439
12440
12441if false; then
12442 GENINSRC_NEVER_TRUE=
12443 GENINSRC_NEVER_FALSE='#'
12444else
12445 GENINSRC_NEVER_TRUE='#'
12446 GENINSRC_NEVER_FALSE=
42ecbf5e 12447fi
d7040cdb
SE
12448
12449
12450if test -n "$EXEEXT"; then
20e95c23
DJ
12451
12452cat >>confdefs.h <<\_ACEOF
d7040cdb 12453#define HAVE_EXECUTABLE_SUFFIX 1
20e95c23 12454_ACEOF
42ecbf5e 12455
252b5132
RH
12456fi
12457
d7040cdb
SE
12458cat >>confdefs.h <<_ACEOF
12459#define EXECUTABLE_SUFFIX "${EXEEXT}"
12460_ACEOF
42ecbf5e 12461
252b5132 12462
d7040cdb 12463# host-specific stuff:
252b5132 12464
d7040cdb 12465HDEFINES=
252b5132 12466
d7040cdb 12467. ${srcdir}/../bfd/configure.host
252b5132 12468
252b5132 12469
d7040cdb 12470AR=${AR-ar}
252b5132 12471
d7040cdb
SE
12472if test -n "$ac_tool_prefix"; then
12473 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12474set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12475echo "$as_me:$LINENO: checking for $ac_word" >&5
12476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12477if test "${ac_cv_prog_RANLIB+set}" = set; then
12478 echo $ECHO_N "(cached) $ECHO_C" >&6
12479else
12480 if test -n "$RANLIB"; then
12481 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12482else
12483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12484for as_dir in $PATH
12485do
12486 IFS=$as_save_IFS
12487 test -z "$as_dir" && as_dir=.
12488 for ac_exec_ext in '' $ac_executable_extensions; do
12489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12490 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12492 break 2
12493 fi
12494done
12495done
252b5132 12496
d7040cdb
SE
12497fi
12498fi
12499RANLIB=$ac_cv_prog_RANLIB
12500if test -n "$RANLIB"; then
12501 echo "$as_me:$LINENO: result: $RANLIB" >&5
12502echo "${ECHO_T}$RANLIB" >&6
12503else
12504 echo "$as_me:$LINENO: result: no" >&5
12505echo "${ECHO_T}no" >&6
12506fi
20e95c23 12507
d7040cdb
SE
12508fi
12509if test -z "$ac_cv_prog_RANLIB"; then
12510 ac_ct_RANLIB=$RANLIB
12511 # Extract the first word of "ranlib", so it can be a program name with args.
12512set dummy ranlib; ac_word=$2
12513echo "$as_me:$LINENO: checking for $ac_word" >&5
12514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12515if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
42ecbf5e 12516 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12517else
d7040cdb
SE
12518 if test -n "$ac_ct_RANLIB"; then
12519 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12520else
12521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12522for as_dir in $PATH
12523do
12524 IFS=$as_save_IFS
12525 test -z "$as_dir" && as_dir=.
12526 for ac_exec_ext in '' $ac_executable_extensions; do
12527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12528 ac_cv_prog_ac_ct_RANLIB="ranlib"
12529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12530 break 2
12531 fi
12532done
12533done
20e95c23 12534
d7040cdb
SE
12535 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12536fi
12537fi
12538ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12539if test -n "$ac_ct_RANLIB"; then
12540 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12541echo "${ECHO_T}$ac_ct_RANLIB" >&6
20e95c23 12542else
d7040cdb
SE
12543 echo "$as_me:$LINENO: result: no" >&5
12544echo "${ECHO_T}no" >&6
12545fi
12546
12547 RANLIB=$ac_ct_RANLIB
12548else
12549 RANLIB="$ac_cv_prog_RANLIB"
12550fi
12551
12552# Find a good install program. We prefer a C program (faster),
12553# so one script is as good as another. But avoid the broken or
12554# incompatible versions:
12555# SysV /etc/install, /usr/sbin/install
12556# SunOS /usr/etc/install
12557# IRIX /sbin/install
12558# AIX /bin/install
12559# AmigaOS /C/install, which installs bootblocks on floppy discs
12560# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12561# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12562# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12563# OS/2's system install, which has a completely different semantic
12564# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 12565# Reject install programs that cannot install multiple files.
d7040cdb
SE
12566echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12567echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12568if test -z "$INSTALL"; then
12569if test "${ac_cv_path_install+set}" = set; then
12570 echo $ECHO_N "(cached) $ECHO_C" >&6
12571else
12572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12573for as_dir in $PATH
12574do
12575 IFS=$as_save_IFS
12576 test -z "$as_dir" && as_dir=.
12577 # Account for people who put trailing slashes in PATH elements.
12578case $as_dir/ in
12579 ./ | .// | /cC/* | \
12580 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12581 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12582 /usr/ucb/* ) ;;
12583 *)
12584 # OSF1 and SCO ODT 3.0 have their own names for install.
12585 # Don't use installbsd from OSF since it installs stuff as root
12586 # by default.
12587 for ac_prog in ginstall scoinst install; do
12588 for ac_exec_ext in '' $ac_executable_extensions; do
12589 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12590 if test $ac_prog = install &&
12591 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12592 # AIX install. It has an incompatible calling convention.
12593 :
12594 elif test $ac_prog = install &&
12595 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12596 # program-specific install script used by HP pwplus--don't use.
12597 :
12598 else
58c85be7
RW
12599 rm -rf conftest.one conftest.two conftest.dir
12600 echo one > conftest.one
12601 echo two > conftest.two
12602 mkdir conftest.dir
12603 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12604 test -s conftest.one && test -s conftest.two &&
12605 test -s conftest.dir/conftest.one &&
12606 test -s conftest.dir/conftest.two
12607 then
12608 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12609 break 3
12610 fi
d7040cdb
SE
12611 fi
12612 fi
12613 done
12614 done
12615 ;;
12616esac
12617done
12618
58c85be7 12619rm -rf conftest.one conftest.two conftest.dir
d7040cdb
SE
12620
12621fi
12622 if test "${ac_cv_path_install+set}" = set; then
12623 INSTALL=$ac_cv_path_install
12624 else
58c85be7
RW
12625 # As a last resort, use the slow shell script. Don't cache a
12626 # value for INSTALL within a source directory, because that will
d7040cdb 12627 # break other packages using the cache if that directory is
58c85be7 12628 # removed, or if the value is a relative name.
d7040cdb
SE
12629 INSTALL=$ac_install_sh
12630 fi
12631fi
12632echo "$as_me:$LINENO: result: $INSTALL" >&5
12633echo "${ECHO_T}$INSTALL" >&6
12634
12635# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12636# It thinks the first close brace ends the variable substitution.
12637test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12638
12639test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12640
12641test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12642
12643
12644# Put a plausible default for CC_FOR_BUILD in Makefile.
12645if test -z "$CC_FOR_BUILD"; then
12646 if test "x$cross_compiling" = "xno"; then
12647 CC_FOR_BUILD='$(CC)'
12648 else
12649 CC_FOR_BUILD=gcc
12650 fi
12651fi
20e95c23 12652
d7040cdb
SE
12653# Also set EXEEXT_FOR_BUILD.
12654if test "x$cross_compiling" = "xno"; then
12655 EXEEXT_FOR_BUILD='$(EXEEXT)'
12656else
12657 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
12658echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
12659if test "${bfd_cv_build_exeext+set}" = set; then
12660 echo $ECHO_N "(cached) $ECHO_C" >&6
12661else
12662 rm -f conftest*
12663 echo 'int main () { return 0; }' > conftest.c
12664 bfd_cv_build_exeext=
12665 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12666 for file in conftest.*; do
12667 case $file in
12668 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12669 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12670 esac
12671 done
12672 rm -f conftest*
12673 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
252b5132 12674fi
d7040cdb
SE
12675echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
12676echo "${ECHO_T}$bfd_cv_build_exeext" >&6
12677 EXEEXT_FOR_BUILD=""
12678 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
252b5132
RH
12679fi
12680
12681
d7040cdb
SE
12682DEMANGLER_NAME=c++filt
12683case "${host}" in
12684 *-*-go32* | *-*-msdos*)
12685 DEMANGLER_NAME=cxxfilt
12686esac
8a965946
ILT
12687
12688
42ecbf5e
DJ
12689
12690
12691
12692
12693
12694
f8eae8b2
L
12695
12696
12697for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h
252b5132 12698do
42ecbf5e
DJ
12699as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12700if eval "test \"\${$as_ac_Header+set}\" = set"; then
12701 echo "$as_me:$LINENO: checking for $ac_header" >&5
12702echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12703if eval "test \"\${$as_ac_Header+set}\" = set"; then
12704 echo $ECHO_N "(cached) $ECHO_C" >&6
12705fi
12706echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12707echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12708else
12709 # Is the header compilable?
12710echo "$as_me:$LINENO: checking $ac_header usability" >&5
12711echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12712cat >conftest.$ac_ext <<_ACEOF
12713/* confdefs.h. */
12714_ACEOF
12715cat confdefs.h >>conftest.$ac_ext
12716cat >>conftest.$ac_ext <<_ACEOF
12717/* end confdefs.h. */
12718$ac_includes_default
12719#include <$ac_header>
12720_ACEOF
12721rm -f conftest.$ac_objext
12722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12723 (eval $ac_compile) 2>conftest.er1
12724 ac_status=$?
12725 grep -v '^ *+' conftest.er1 >conftest.err
12726 rm -f conftest.er1
12727 cat conftest.err >&5
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); } &&
7357c5b6
AM
12730 { ac_try='test -z "$ac_c_werror_flag"
12731 || test ! -s conftest.err'
42ecbf5e
DJ
12732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12733 (eval $ac_try) 2>&5
12734 ac_status=$?
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); }; } &&
12737 { ac_try='test -s conftest.$ac_objext'
12738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12739 (eval $ac_try) 2>&5
12740 ac_status=$?
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); }; }; then
12743 ac_header_compiler=yes
12744else
12745 echo "$as_me: failed program was:" >&5
12746sed 's/^/| /' conftest.$ac_ext >&5
12747
12748ac_header_compiler=no
12749fi
12750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12751echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12752echo "${ECHO_T}$ac_header_compiler" >&6
12753
12754# Is the header present?
12755echo "$as_me:$LINENO: checking $ac_header presence" >&5
12756echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12757cat >conftest.$ac_ext <<_ACEOF
12758/* confdefs.h. */
12759_ACEOF
12760cat confdefs.h >>conftest.$ac_ext
12761cat >>conftest.$ac_ext <<_ACEOF
12762/* end confdefs.h. */
12763#include <$ac_header>
12764_ACEOF
12765if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12767 ac_status=$?
12768 grep -v '^ *+' conftest.er1 >conftest.err
12769 rm -f conftest.er1
12770 cat conftest.err >&5
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); } >/dev/null; then
12773 if test -s conftest.err; then
12774 ac_cpp_err=$ac_c_preproc_warn_flag
12775 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12776 else
12777 ac_cpp_err=
12778 fi
252b5132 12779else
42ecbf5e 12780 ac_cpp_err=yes
252b5132 12781fi
42ecbf5e
DJ
12782if test -z "$ac_cpp_err"; then
12783 ac_header_preproc=yes
12784else
12785 echo "$as_me: failed program was:" >&5
12786sed 's/^/| /' conftest.$ac_ext >&5
12787
12788 ac_header_preproc=no
252b5132 12789fi
42ecbf5e
DJ
12790rm -f conftest.err conftest.$ac_ext
12791echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12792echo "${ECHO_T}$ac_header_preproc" >&6
12793
12794# So? What about this header?
12795case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12796 yes:no: )
12797 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12798echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12800echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12801 ac_header_preproc=yes
12802 ;;
12803 no:yes:* )
12804 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12805echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12806 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12807echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12808 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12809echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12810 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12811echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12813echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12814 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12815echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12816 (
12817 cat <<\_ASBOX
12818## ------------------------------------------ ##
12819## Report this to the AC_PACKAGE_NAME lists. ##
12820## ------------------------------------------ ##
12821_ASBOX
12822 ) |
12823 sed "s/^/$as_me: WARNING: /" >&2
12824 ;;
12825esac
12826echo "$as_me:$LINENO: checking for $ac_header" >&5
12827echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12828if eval "test \"\${$as_ac_Header+set}\" = set"; then
12829 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12830else
42ecbf5e
DJ
12831 eval "$as_ac_Header=\$ac_header_preproc"
12832fi
12833echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12834echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12835
252b5132 12836fi
42ecbf5e
DJ
12837if test `eval echo '${'$as_ac_Header'}'` = yes; then
12838 cat >>confdefs.h <<_ACEOF
12839#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12840_ACEOF
12841
12842fi
12843
252b5132
RH
12844done
12845
42ecbf5e
DJ
12846echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
12847echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
12848if test "${ac_cv_header_sys_wait_h+set}" = set; then
12849 echo $ECHO_N "(cached) $ECHO_C" >&6
12850else
12851 cat >conftest.$ac_ext <<_ACEOF
12852/* confdefs.h. */
12853_ACEOF
12854cat confdefs.h >>conftest.$ac_ext
12855cat >>conftest.$ac_ext <<_ACEOF
12856/* end confdefs.h. */
252b5132
RH
12857#include <sys/types.h>
12858#include <sys/wait.h>
12859#ifndef WEXITSTATUS
42ecbf5e 12860# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
252b5132
RH
12861#endif
12862#ifndef WIFEXITED
42ecbf5e 12863# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
252b5132 12864#endif
42ecbf5e
DJ
12865
12866int
12867main ()
12868{
12869 int s;
12870 wait (&s);
12871 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12872 ;
12873 return 0;
12874}
12875_ACEOF
12876rm -f conftest.$ac_objext
12877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12878 (eval $ac_compile) 2>conftest.er1
12879 ac_status=$?
12880 grep -v '^ *+' conftest.er1 >conftest.err
12881 rm -f conftest.er1
12882 cat conftest.err >&5
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); } &&
7357c5b6
AM
12885 { ac_try='test -z "$ac_c_werror_flag"
12886 || test ! -s conftest.err'
42ecbf5e
DJ
12887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12888 (eval $ac_try) 2>&5
12889 ac_status=$?
12890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891 (exit $ac_status); }; } &&
12892 { ac_try='test -s conftest.$ac_objext'
12893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12894 (eval $ac_try) 2>&5
12895 ac_status=$?
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); }; }; then
252b5132
RH
12898 ac_cv_header_sys_wait_h=yes
12899else
42ecbf5e
DJ
12900 echo "$as_me: failed program was:" >&5
12901sed 's/^/| /' conftest.$ac_ext >&5
12902
12903ac_cv_header_sys_wait_h=no
252b5132 12904fi
42ecbf5e 12905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12906fi
42ecbf5e
DJ
12907echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
12908echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
d15b04bd 12909if test $ac_cv_header_sys_wait_h = yes; then
42ecbf5e
DJ
12910
12911cat >>confdefs.h <<\_ACEOF
252b5132 12912#define HAVE_SYS_WAIT_H 1
42ecbf5e 12913_ACEOF
252b5132
RH
12914
12915fi
12916
12917# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12918# for constant arguments. Useless!
42ecbf5e
DJ
12919echo "$as_me:$LINENO: checking for working alloca.h" >&5
12920echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12921if test "${ac_cv_working_alloca_h+set}" = set; then
12922 echo $ECHO_N "(cached) $ECHO_C" >&6
12923else
12924 cat >conftest.$ac_ext <<_ACEOF
12925/* confdefs.h. */
12926_ACEOF
12927cat confdefs.h >>conftest.$ac_ext
12928cat >>conftest.$ac_ext <<_ACEOF
12929/* end confdefs.h. */
252b5132 12930#include <alloca.h>
42ecbf5e
DJ
12931int
12932main ()
12933{
12934char *p = (char *) alloca (2 * sizeof (int));
12935 ;
12936 return 0;
12937}
12938_ACEOF
12939rm -f conftest.$ac_objext conftest$ac_exeext
12940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12941 (eval $ac_link) 2>conftest.er1
12942 ac_status=$?
12943 grep -v '^ *+' conftest.er1 >conftest.err
12944 rm -f conftest.er1
12945 cat conftest.err >&5
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); } &&
7357c5b6
AM
12948 { ac_try='test -z "$ac_c_werror_flag"
12949 || test ! -s conftest.err'
42ecbf5e
DJ
12950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12951 (eval $ac_try) 2>&5
12952 ac_status=$?
12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); }; } &&
12955 { ac_try='test -s conftest$ac_exeext'
12956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12957 (eval $ac_try) 2>&5
12958 ac_status=$?
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); }; }; then
12961 ac_cv_working_alloca_h=yes
12962else
12963 echo "$as_me: failed program was:" >&5
12964sed 's/^/| /' conftest.$ac_ext >&5
12965
12966ac_cv_working_alloca_h=no
12967fi
12968rm -f conftest.err conftest.$ac_objext \
12969 conftest$ac_exeext conftest.$ac_ext
12970fi
12971echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12972echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12973if test $ac_cv_working_alloca_h = yes; then
12974
12975cat >>confdefs.h <<\_ACEOF
252b5132 12976#define HAVE_ALLOCA_H 1
42ecbf5e 12977_ACEOF
252b5132
RH
12978
12979fi
12980
42ecbf5e
DJ
12981echo "$as_me:$LINENO: checking for alloca" >&5
12982echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12983if test "${ac_cv_func_alloca_works+set}" = set; then
12984 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12985else
42ecbf5e
DJ
12986 cat >conftest.$ac_ext <<_ACEOF
12987/* confdefs.h. */
12988_ACEOF
12989cat confdefs.h >>conftest.$ac_ext
12990cat >>conftest.$ac_ext <<_ACEOF
12991/* end confdefs.h. */
252b5132
RH
12992#ifdef __GNUC__
12993# define alloca __builtin_alloca
12994#else
12995# ifdef _MSC_VER
12996# include <malloc.h>
12997# define alloca _alloca
12998# else
12999# if HAVE_ALLOCA_H
13000# include <alloca.h>
13001# else
13002# ifdef _AIX
13003 #pragma alloca
13004# else
13005# ifndef alloca /* predefined by HP cc +Olibcalls */
13006char *alloca ();
13007# endif
13008# endif
13009# endif
13010# endif
13011#endif
13012
42ecbf5e
DJ
13013int
13014main ()
13015{
13016char *p = (char *) alloca (1);
13017 ;
13018 return 0;
13019}
13020_ACEOF
13021rm -f conftest.$ac_objext conftest$ac_exeext
13022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13023 (eval $ac_link) 2>conftest.er1
13024 ac_status=$?
13025 grep -v '^ *+' conftest.er1 >conftest.err
13026 rm -f conftest.er1
13027 cat conftest.err >&5
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); } &&
7357c5b6
AM
13030 { ac_try='test -z "$ac_c_werror_flag"
13031 || test ! -s conftest.err'
42ecbf5e
DJ
13032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033 (eval $ac_try) 2>&5
13034 ac_status=$?
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; } &&
13037 { ac_try='test -s conftest$ac_exeext'
13038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13039 (eval $ac_try) 2>&5
13040 ac_status=$?
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); }; }; then
252b5132
RH
13043 ac_cv_func_alloca_works=yes
13044else
42ecbf5e
DJ
13045 echo "$as_me: failed program was:" >&5
13046sed 's/^/| /' conftest.$ac_ext >&5
13047
13048ac_cv_func_alloca_works=no
252b5132 13049fi
42ecbf5e
DJ
13050rm -f conftest.err conftest.$ac_objext \
13051 conftest$ac_exeext conftest.$ac_ext
252b5132 13052fi
42ecbf5e
DJ
13053echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13054echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 13055
252b5132 13056if test $ac_cv_func_alloca_works = yes; then
e5a52504 13057
42ecbf5e
DJ
13058cat >>confdefs.h <<\_ACEOF
13059#define HAVE_ALLOCA 1
13060_ACEOF
e5a52504 13061
42ecbf5e 13062else
d15b04bd 13063 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
42ecbf5e
DJ
13064# that cause trouble. Some versions do not even contain alloca or
13065# contain a buggy version. If you still want to use their alloca,
13066# use ar to extract alloca.o from them instead of compiling alloca.c.
13067
13068ALLOCA=alloca.$ac_objext
13069
13070cat >>confdefs.h <<\_ACEOF
252b5132 13071#define C_ALLOCA 1
42ecbf5e 13072_ACEOF
252b5132
RH
13073
13074
42ecbf5e
DJ
13075echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13076echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13077if test "${ac_cv_os_cray+set}" = set; then
13078 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13079else
42ecbf5e
DJ
13080 cat >conftest.$ac_ext <<_ACEOF
13081/* confdefs.h. */
13082_ACEOF
13083cat confdefs.h >>conftest.$ac_ext
13084cat >>conftest.$ac_ext <<_ACEOF
13085/* end confdefs.h. */
252b5132
RH
13086#if defined(CRAY) && ! defined(CRAY2)
13087webecray
13088#else
13089wenotbecray
13090#endif
13091
42ecbf5e 13092_ACEOF
252b5132 13093if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42ecbf5e 13094 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
13095 ac_cv_os_cray=yes
13096else
252b5132
RH
13097 ac_cv_os_cray=no
13098fi
13099rm -f conftest*
13100
13101fi
42ecbf5e
DJ
13102echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13103echo "${ECHO_T}$ac_cv_os_cray" >&6
d15b04bd 13104if test $ac_cv_os_cray = yes; then
42ecbf5e
DJ
13105 for ac_func in _getb67 GETB67 getb67; do
13106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13107echo "$as_me:$LINENO: checking for $ac_func" >&5
13108echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13109if eval "test \"\${$as_ac_var+set}\" = set"; then
13110 echo $ECHO_N "(cached) $ECHO_C" >&6
13111else
13112 cat >conftest.$ac_ext <<_ACEOF
13113/* confdefs.h. */
13114_ACEOF
13115cat confdefs.h >>conftest.$ac_ext
13116cat >>conftest.$ac_ext <<_ACEOF
13117/* end confdefs.h. */
13118/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13120#define $ac_func innocuous_$ac_func
13121
252b5132 13122/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
13123 which can conflict with char $ac_func (); below.
13124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13125 <limits.h> exists even on freestanding compilers. */
13126
13127#ifdef __STDC__
13128# include <limits.h>
13129#else
13130# include <assert.h>
13131#endif
d15b04bd 13132
42ecbf5e 13133#undef $ac_func
d15b04bd 13134
42ecbf5e
DJ
13135/* Override any gcc2 internal prototype to avoid an error. */
13136#ifdef __cplusplus
13137extern "C"
13138{
13139#endif
13140/* We use char because int might match the return type of a gcc2
13141 builtin and then its argument prototype would still apply. */
13142char $ac_func ();
252b5132
RH
13143/* The GNU C library defines this for functions which it implements
13144 to always fail with ENOSYS. Some functions are actually named
13145 something starting with __ and the normal name is an alias. */
13146#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13147choke me
13148#else
42ecbf5e
DJ
13149char (*f) () = $ac_func;
13150#endif
13151#ifdef __cplusplus
13152}
252b5132
RH
13153#endif
13154
42ecbf5e
DJ
13155int
13156main ()
13157{
13158return f != $ac_func;
13159 ;
13160 return 0;
13161}
13162_ACEOF
13163rm -f conftest.$ac_objext conftest$ac_exeext
13164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13165 (eval $ac_link) 2>conftest.er1
13166 ac_status=$?
13167 grep -v '^ *+' conftest.er1 >conftest.err
13168 rm -f conftest.er1
13169 cat conftest.err >&5
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); } &&
7357c5b6
AM
13172 { ac_try='test -z "$ac_c_werror_flag"
13173 || test ! -s conftest.err'
42ecbf5e
DJ
13174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13175 (eval $ac_try) 2>&5
13176 ac_status=$?
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); }; } &&
13179 { ac_try='test -s conftest$ac_exeext'
13180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13181 (eval $ac_try) 2>&5
13182 ac_status=$?
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); }; }; then
13185 eval "$as_ac_var=yes"
13186else
13187 echo "$as_me: failed program was:" >&5
13188sed 's/^/| /' conftest.$ac_ext >&5
13189
13190eval "$as_ac_var=no"
13191fi
13192rm -f conftest.err conftest.$ac_objext \
13193 conftest$ac_exeext conftest.$ac_ext
13194fi
13195echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13196echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13197if test `eval echo '${'$as_ac_var'}'` = yes; then
13198
13199cat >>confdefs.h <<_ACEOF
252b5132 13200#define CRAY_STACKSEG_END $ac_func
42ecbf5e 13201_ACEOF
252b5132 13202
42ecbf5e 13203 break
252b5132
RH
13204fi
13205
42ecbf5e 13206 done
252b5132
RH
13207fi
13208
42ecbf5e
DJ
13209echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13210echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13211if test "${ac_cv_c_stack_direction+set}" = set; then
13212 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
13213else
13214 if test "$cross_compiling" = yes; then
13215 ac_cv_c_stack_direction=0
13216else
42ecbf5e
DJ
13217 cat >conftest.$ac_ext <<_ACEOF
13218/* confdefs.h. */
13219_ACEOF
13220cat confdefs.h >>conftest.$ac_ext
13221cat >>conftest.$ac_ext <<_ACEOF
13222/* end confdefs.h. */
13223int
252b5132
RH
13224find_stack_direction ()
13225{
13226 static char *addr = 0;
13227 auto char dummy;
13228 if (addr == 0)
13229 {
13230 addr = &dummy;
13231 return find_stack_direction ();
13232 }
13233 else
13234 return (&dummy > addr) ? 1 : -1;
13235}
42ecbf5e
DJ
13236
13237int
252b5132
RH
13238main ()
13239{
42ecbf5e 13240 exit (find_stack_direction () < 0);
252b5132 13241}
42ecbf5e
DJ
13242_ACEOF
13243rm -f conftest$ac_exeext
13244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13245 (eval $ac_link) 2>&5
13246 ac_status=$?
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250 (eval $ac_try) 2>&5
13251 ac_status=$?
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; }; then
252b5132
RH
13254 ac_cv_c_stack_direction=1
13255else
42ecbf5e
DJ
13256 echo "$as_me: program exited with status $ac_status" >&5
13257echo "$as_me: failed program was:" >&5
13258sed 's/^/| /' conftest.$ac_ext >&5
13259
13260( exit $ac_status )
13261ac_cv_c_stack_direction=-1
252b5132 13262fi
42ecbf5e 13263rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 13264fi
252b5132 13265fi
42ecbf5e
DJ
13266echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13267echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 13268
42ecbf5e 13269cat >>confdefs.h <<_ACEOF
252b5132 13270#define STACK_DIRECTION $ac_cv_c_stack_direction
42ecbf5e
DJ
13271_ACEOF
13272
252b5132
RH
13273
13274fi
13275
42ecbf5e
DJ
13276
13277
13278
13279
13280
9710509e 13281for ac_func in sbrk utimes setmode getc_unlocked strcoll
252b5132 13282do
42ecbf5e
DJ
13283as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13284echo "$as_me:$LINENO: checking for $ac_func" >&5
13285echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13286if eval "test \"\${$as_ac_var+set}\" = set"; then
13287 echo $ECHO_N "(cached) $ECHO_C" >&6
13288else
13289 cat >conftest.$ac_ext <<_ACEOF
13290/* confdefs.h. */
13291_ACEOF
13292cat confdefs.h >>conftest.$ac_ext
13293cat >>conftest.$ac_ext <<_ACEOF
13294/* end confdefs.h. */
13295/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13297#define $ac_func innocuous_$ac_func
13298
252b5132 13299/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
13300 which can conflict with char $ac_func (); below.
13301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13302 <limits.h> exists even on freestanding compilers. */
13303
13304#ifdef __STDC__
13305# include <limits.h>
13306#else
13307# include <assert.h>
13308#endif
d15b04bd 13309
42ecbf5e 13310#undef $ac_func
d15b04bd 13311
42ecbf5e
DJ
13312/* Override any gcc2 internal prototype to avoid an error. */
13313#ifdef __cplusplus
13314extern "C"
13315{
13316#endif
13317/* We use char because int might match the return type of a gcc2
13318 builtin and then its argument prototype would still apply. */
13319char $ac_func ();
252b5132
RH
13320/* The GNU C library defines this for functions which it implements
13321 to always fail with ENOSYS. Some functions are actually named
13322 something starting with __ and the normal name is an alias. */
13323#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13324choke me
13325#else
42ecbf5e
DJ
13326char (*f) () = $ac_func;
13327#endif
13328#ifdef __cplusplus
13329}
252b5132
RH
13330#endif
13331
42ecbf5e
DJ
13332int
13333main ()
13334{
13335return f != $ac_func;
13336 ;
13337 return 0;
13338}
13339_ACEOF
13340rm -f conftest.$ac_objext conftest$ac_exeext
13341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13342 (eval $ac_link) 2>conftest.er1
13343 ac_status=$?
13344 grep -v '^ *+' conftest.er1 >conftest.err
13345 rm -f conftest.er1
13346 cat conftest.err >&5
13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); } &&
7357c5b6
AM
13349 { ac_try='test -z "$ac_c_werror_flag"
13350 || test ! -s conftest.err'
42ecbf5e
DJ
13351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13352 (eval $ac_try) 2>&5
13353 ac_status=$?
13354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); }; } &&
13356 { ac_try='test -s conftest$ac_exeext'
13357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13358 (eval $ac_try) 2>&5
13359 ac_status=$?
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); }; }; then
13362 eval "$as_ac_var=yes"
13363else
13364 echo "$as_me: failed program was:" >&5
13365sed 's/^/| /' conftest.$ac_ext >&5
13366
13367eval "$as_ac_var=no"
13368fi
13369rm -f conftest.err conftest.$ac_objext \
13370 conftest$ac_exeext conftest.$ac_ext
13371fi
13372echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13373echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13374if test `eval echo '${'$as_ac_var'}'` = yes; then
13375 cat >>confdefs.h <<_ACEOF
13376#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13377_ACEOF
252b5132 13378
252b5132
RH
13379fi
13380done
13381
f9c026a8
NC
13382echo "$as_me:$LINENO: checking for mkstemp" >&5
13383echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
13384if test "${ac_cv_func_mkstemp+set}" = set; then
13385 echo $ECHO_N "(cached) $ECHO_C" >&6
13386else
13387 cat >conftest.$ac_ext <<_ACEOF
13388/* confdefs.h. */
13389_ACEOF
13390cat confdefs.h >>conftest.$ac_ext
13391cat >>conftest.$ac_ext <<_ACEOF
13392/* end confdefs.h. */
13393/* Define mkstemp to an innocuous variant, in case <limits.h> declares mkstemp.
13394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13395#define mkstemp innocuous_mkstemp
13396
13397/* System header to define __stub macros and hopefully few prototypes,
13398 which can conflict with char mkstemp (); below.
13399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13400 <limits.h> exists even on freestanding compilers. */
13401
13402#ifdef __STDC__
13403# include <limits.h>
13404#else
13405# include <assert.h>
13406#endif
13407
13408#undef mkstemp
13409
13410/* Override any gcc2 internal prototype to avoid an error. */
13411#ifdef __cplusplus
13412extern "C"
13413{
13414#endif
13415/* We use char because int might match the return type of a gcc2
13416 builtin and then its argument prototype would still apply. */
13417char mkstemp ();
13418/* The GNU C library defines this for functions which it implements
13419 to always fail with ENOSYS. Some functions are actually named
13420 something starting with __ and the normal name is an alias. */
13421#if defined (__stub_mkstemp) || defined (__stub___mkstemp)
13422choke me
13423#else
13424char (*f) () = mkstemp;
13425#endif
13426#ifdef __cplusplus
13427}
13428#endif
13429
13430int
13431main ()
13432{
13433return f != mkstemp;
13434 ;
13435 return 0;
13436}
13437_ACEOF
13438rm -f conftest.$ac_objext conftest$ac_exeext
13439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13440 (eval $ac_link) 2>conftest.er1
13441 ac_status=$?
13442 grep -v '^ *+' conftest.er1 >conftest.err
13443 rm -f conftest.er1
13444 cat conftest.err >&5
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); } &&
7357c5b6
AM
13447 { ac_try='test -z "$ac_c_werror_flag"
13448 || test ! -s conftest.err'
f9c026a8
NC
13449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450 (eval $ac_try) 2>&5
13451 ac_status=$?
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); }; } &&
13454 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13460 ac_cv_func_mkstemp=yes
13461else
13462 echo "$as_me: failed program was:" >&5
13463sed 's/^/| /' conftest.$ac_ext >&5
13464
13465ac_cv_func_mkstemp=no
13466fi
13467rm -f conftest.err conftest.$ac_objext \
13468 conftest$ac_exeext conftest.$ac_ext
13469fi
13470echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
13471echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
13472if test $ac_cv_func_mkstemp = yes; then
13473
13474cat >>confdefs.h <<\_ACEOF
13475#define HAVE_MKSTEMP 1
13476_ACEOF
13477
13478fi
13479
13480echo "$as_me:$LINENO: checking for mkdtemp" >&5
13481echo $ECHO_N "checking for mkdtemp... $ECHO_C" >&6
13482if test "${ac_cv_func_mkdtemp+set}" = set; then
13483 echo $ECHO_N "(cached) $ECHO_C" >&6
13484else
13485 cat >conftest.$ac_ext <<_ACEOF
13486/* confdefs.h. */
13487_ACEOF
13488cat confdefs.h >>conftest.$ac_ext
13489cat >>conftest.$ac_ext <<_ACEOF
13490/* end confdefs.h. */
13491/* Define mkdtemp to an innocuous variant, in case <limits.h> declares mkdtemp.
13492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13493#define mkdtemp innocuous_mkdtemp
13494
13495/* System header to define __stub macros and hopefully few prototypes,
13496 which can conflict with char mkdtemp (); below.
13497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13498 <limits.h> exists even on freestanding compilers. */
13499
13500#ifdef __STDC__
13501# include <limits.h>
13502#else
13503# include <assert.h>
13504#endif
13505
13506#undef mkdtemp
13507
13508/* Override any gcc2 internal prototype to avoid an error. */
13509#ifdef __cplusplus
13510extern "C"
13511{
13512#endif
13513/* We use char because int might match the return type of a gcc2
13514 builtin and then its argument prototype would still apply. */
13515char mkdtemp ();
13516/* The GNU C library defines this for functions which it implements
13517 to always fail with ENOSYS. Some functions are actually named
13518 something starting with __ and the normal name is an alias. */
13519#if defined (__stub_mkdtemp) || defined (__stub___mkdtemp)
13520choke me
13521#else
13522char (*f) () = mkdtemp;
13523#endif
13524#ifdef __cplusplus
13525}
13526#endif
13527
13528int
13529main ()
13530{
13531return f != mkdtemp;
13532 ;
13533 return 0;
13534}
13535_ACEOF
13536rm -f conftest.$ac_objext conftest$ac_exeext
13537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13538 (eval $ac_link) 2>conftest.er1
13539 ac_status=$?
13540 grep -v '^ *+' conftest.er1 >conftest.err
13541 rm -f conftest.er1
13542 cat conftest.err >&5
13543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544 (exit $ac_status); } &&
7357c5b6
AM
13545 { ac_try='test -z "$ac_c_werror_flag"
13546 || test ! -s conftest.err'
f9c026a8
NC
13547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13548 (eval $ac_try) 2>&5
13549 ac_status=$?
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); }; } &&
13552 { ac_try='test -s conftest$ac_exeext'
13553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13554 (eval $ac_try) 2>&5
13555 ac_status=$?
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); }; }; then
13558 ac_cv_func_mkdtemp=yes
13559else
13560 echo "$as_me: failed program was:" >&5
13561sed 's/^/| /' conftest.$ac_ext >&5
13562
13563ac_cv_func_mkdtemp=no
13564fi
13565rm -f conftest.err conftest.$ac_objext \
13566 conftest$ac_exeext conftest.$ac_ext
13567fi
13568echo "$as_me:$LINENO: result: $ac_cv_func_mkdtemp" >&5
13569echo "${ECHO_T}$ac_cv_func_mkdtemp" >&6
13570if test $ac_cv_func_mkdtemp = yes; then
13571
13572cat >>confdefs.h <<\_ACEOF
13573#define HAVE_MKDTEMP 1
13574_ACEOF
13575
13576fi
13577
252b5132 13578
cedd9a58
JJ
13579# Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
13580# needs to be defined for it
42ecbf5e
DJ
13581echo "$as_me:$LINENO: checking for fopen64" >&5
13582echo $ECHO_N "checking for fopen64... $ECHO_C" >&6
13583if test "${bu_cv_have_fopen64+set}" = set; then
13584 echo $ECHO_N "(cached) $ECHO_C" >&6
13585else
13586 cat >conftest.$ac_ext <<_ACEOF
13587/* confdefs.h. */
13588_ACEOF
13589cat confdefs.h >>conftest.$ac_ext
13590cat >>conftest.$ac_ext <<_ACEOF
13591/* end confdefs.h. */
cedd9a58 13592#include <stdio.h>
42ecbf5e
DJ
13593int
13594main ()
13595{
cedd9a58 13596FILE *f = fopen64 ("/tmp/foo","r");
42ecbf5e
DJ
13597 ;
13598 return 0;
13599}
13600_ACEOF
13601rm -f conftest.$ac_objext conftest$ac_exeext
13602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13603 (eval $ac_link) 2>conftest.er1
13604 ac_status=$?
13605 grep -v '^ *+' conftest.er1 >conftest.err
13606 rm -f conftest.er1
13607 cat conftest.err >&5
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); } &&
7357c5b6
AM
13610 { ac_try='test -z "$ac_c_werror_flag"
13611 || test ! -s conftest.err'
42ecbf5e
DJ
13612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13613 (eval $ac_try) 2>&5
13614 ac_status=$?
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); }; } &&
13617 { ac_try='test -s conftest$ac_exeext'
13618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13619 (eval $ac_try) 2>&5
13620 ac_status=$?
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); }; }; then
cedd9a58
JJ
13623 bu_cv_have_fopen64=yes
13624else
42ecbf5e
DJ
13625 echo "$as_me: failed program was:" >&5
13626sed 's/^/| /' conftest.$ac_ext >&5
13627
13628saved_CPPFLAGS=$CPPFLAGS
cedd9a58 13629 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
42ecbf5e
DJ
13630 cat >conftest.$ac_ext <<_ACEOF
13631/* confdefs.h. */
13632_ACEOF
13633cat confdefs.h >>conftest.$ac_ext
13634cat >>conftest.$ac_ext <<_ACEOF
13635/* end confdefs.h. */
cedd9a58 13636#include <stdio.h>
42ecbf5e
DJ
13637int
13638main ()
13639{
cedd9a58 13640FILE *f = fopen64 ("/tmp/foo","r");
42ecbf5e
DJ
13641 ;
13642 return 0;
13643}
13644_ACEOF
13645rm -f conftest.$ac_objext conftest$ac_exeext
13646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13647 (eval $ac_link) 2>conftest.er1
13648 ac_status=$?
13649 grep -v '^ *+' conftest.er1 >conftest.err
13650 rm -f conftest.er1
13651 cat conftest.err >&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); } &&
7357c5b6
AM
13654 { ac_try='test -z "$ac_c_werror_flag"
13655 || test ! -s conftest.err'
42ecbf5e
DJ
13656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13657 (eval $ac_try) 2>&5
13658 ac_status=$?
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); }; } &&
13661 { ac_try='test -s conftest$ac_exeext'
13662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13663 (eval $ac_try) 2>&5
13664 ac_status=$?
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); }; }; then
cedd9a58
JJ
13667 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
13668else
42ecbf5e
DJ
13669 echo "$as_me: failed program was:" >&5
13670sed 's/^/| /' conftest.$ac_ext >&5
13671
13672bu_cv_have_fopen64=no
cedd9a58 13673fi
42ecbf5e
DJ
13674rm -f conftest.err conftest.$ac_objext \
13675 conftest$ac_exeext conftest.$ac_ext
17a5a5c3 13676 CPPFLAGS=$saved_CPPFLAGS
cedd9a58 13677fi
42ecbf5e
DJ
13678rm -f conftest.err conftest.$ac_objext \
13679 conftest$ac_exeext conftest.$ac_ext
cedd9a58 13680fi
cedd9a58 13681
42ecbf5e
DJ
13682echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
13683echo "${ECHO_T}$bu_cv_have_fopen64" >&6
6db7a086 13684if test "$bu_cv_have_fopen64" != no; then
42ecbf5e
DJ
13685
13686cat >>confdefs.h <<\_ACEOF
cedd9a58 13687#define HAVE_FOPEN64 1
42ecbf5e 13688_ACEOF
cedd9a58 13689
fb5b5478 13690fi
42ecbf5e
DJ
13691echo "$as_me:$LINENO: checking for stat64" >&5
13692echo $ECHO_N "checking for stat64... $ECHO_C" >&6
13693if test "${bu_cv_have_stat64+set}" = set; then
13694 echo $ECHO_N "(cached) $ECHO_C" >&6
fb5b5478 13695else
42ecbf5e
DJ
13696 cat >conftest.$ac_ext <<_ACEOF
13697/* confdefs.h. */
13698_ACEOF
13699cat confdefs.h >>conftest.$ac_ext
13700cat >>conftest.$ac_ext <<_ACEOF
13701/* end confdefs.h. */
fb5b5478 13702#include <sys/stat.h>
42ecbf5e
DJ
13703int
13704main ()
13705{
fb5b5478 13706struct stat64 st; stat64 ("/tmp/foo", &st);
42ecbf5e
DJ
13707 ;
13708 return 0;
13709}
13710_ACEOF
13711rm -f conftest.$ac_objext conftest$ac_exeext
13712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13713 (eval $ac_link) 2>conftest.er1
13714 ac_status=$?
13715 grep -v '^ *+' conftest.er1 >conftest.err
13716 rm -f conftest.er1
13717 cat conftest.err >&5
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); } &&
7357c5b6
AM
13720 { ac_try='test -z "$ac_c_werror_flag"
13721 || test ! -s conftest.err'
42ecbf5e
DJ
13722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723 (eval $ac_try) 2>&5
13724 ac_status=$?
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); }; } &&
13727 { ac_try='test -s conftest$ac_exeext'
13728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13729 (eval $ac_try) 2>&5
13730 ac_status=$?
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); }; }; then
fb5b5478
JJ
13733 bu_cv_have_stat64=yes
13734else
42ecbf5e
DJ
13735 echo "$as_me: failed program was:" >&5
13736sed 's/^/| /' conftest.$ac_ext >&5
13737
13738saved_CPPFLAGS=$CPPFLAGS
fb5b5478 13739 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
42ecbf5e
DJ
13740 cat >conftest.$ac_ext <<_ACEOF
13741/* confdefs.h. */
13742_ACEOF
13743cat confdefs.h >>conftest.$ac_ext
13744cat >>conftest.$ac_ext <<_ACEOF
13745/* end confdefs.h. */
fb5b5478 13746#include <sys/stat.h>
42ecbf5e
DJ
13747int
13748main ()
13749{
fb5b5478 13750struct stat64 st; stat64 ("/tmp/foo", &st);
42ecbf5e
DJ
13751 ;
13752 return 0;
13753}
13754_ACEOF
13755rm -f conftest.$ac_objext conftest$ac_exeext
13756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13757 (eval $ac_link) 2>conftest.er1
13758 ac_status=$?
13759 grep -v '^ *+' conftest.er1 >conftest.err
13760 rm -f conftest.er1
13761 cat conftest.err >&5
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); } &&
7357c5b6
AM
13764 { ac_try='test -z "$ac_c_werror_flag"
13765 || test ! -s conftest.err'
42ecbf5e
DJ
13766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13767 (eval $ac_try) 2>&5
13768 ac_status=$?
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); }; } &&
13771 { ac_try='test -s conftest$ac_exeext'
13772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13773 (eval $ac_try) 2>&5
13774 ac_status=$?
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); }; }; then
fb5b5478
JJ
13777 bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
13778else
42ecbf5e
DJ
13779 echo "$as_me: failed program was:" >&5
13780sed 's/^/| /' conftest.$ac_ext >&5
13781
13782bu_cv_have_stat64=no
fb5b5478 13783fi
42ecbf5e
DJ
13784rm -f conftest.err conftest.$ac_objext \
13785 conftest$ac_exeext conftest.$ac_ext
fb5b5478
JJ
13786 CPPFLAGS=$saved_CPPFLAGS
13787fi
42ecbf5e
DJ
13788rm -f conftest.err conftest.$ac_objext \
13789 conftest$ac_exeext conftest.$ac_ext
fb5b5478
JJ
13790fi
13791
42ecbf5e
DJ
13792echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5
13793echo "${ECHO_T}$bu_cv_have_stat64" >&6
fb5b5478 13794if test "$bu_cv_have_stat64" != no; then
42ecbf5e
DJ
13795
13796cat >>confdefs.h <<\_ACEOF
fb5b5478 13797#define HAVE_STAT64 1
42ecbf5e 13798_ACEOF
fb5b5478
JJ
13799
13800fi
13801if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
13802 || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
42ecbf5e
DJ
13803
13804cat >>confdefs.h <<\_ACEOF
cedd9a58 13805#define _LARGEFILE64_SOURCE 1
42ecbf5e 13806_ACEOF
cedd9a58 13807
fb5b5478 13808 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
cedd9a58
JJ
13809fi
13810
f353eb8a 13811# Some systems have frexp only in -lm, not in -lc.
42ecbf5e
DJ
13812echo "$as_me:$LINENO: checking for library containing frexp" >&5
13813echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6
13814if test "${ac_cv_search_frexp+set}" = set; then
13815 echo $ECHO_N "(cached) $ECHO_C" >&6
13816else
13817 ac_func_search_save_LIBS=$LIBS
13818ac_cv_search_frexp=no
13819cat >conftest.$ac_ext <<_ACEOF
13820/* confdefs.h. */
13821_ACEOF
13822cat confdefs.h >>conftest.$ac_ext
13823cat >>conftest.$ac_ext <<_ACEOF
13824/* end confdefs.h. */
f353eb8a 13825
f353eb8a 13826/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
13827#ifdef __cplusplus
13828extern "C"
13829#endif
f353eb8a 13830/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
13831 builtin and then its argument prototype would still apply. */
13832char frexp ();
13833int
13834main ()
13835{
13836frexp ();
13837 ;
13838 return 0;
13839}
13840_ACEOF
13841rm -f conftest.$ac_objext conftest$ac_exeext
13842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13843 (eval $ac_link) 2>conftest.er1
13844 ac_status=$?
13845 grep -v '^ *+' conftest.er1 >conftest.err
13846 rm -f conftest.er1
13847 cat conftest.err >&5
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); } &&
7357c5b6
AM
13850 { ac_try='test -z "$ac_c_werror_flag"
13851 || test ! -s conftest.err'
42ecbf5e
DJ
13852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13853 (eval $ac_try) 2>&5
13854 ac_status=$?
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); }; } &&
13857 { ac_try='test -s conftest$ac_exeext'
13858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13859 (eval $ac_try) 2>&5
13860 ac_status=$?
13861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); }; }; then
f353eb8a
ILT
13863 ac_cv_search_frexp="none required"
13864else
42ecbf5e
DJ
13865 echo "$as_me: failed program was:" >&5
13866sed 's/^/| /' conftest.$ac_ext >&5
13867
f353eb8a 13868fi
42ecbf5e
DJ
13869rm -f conftest.err conftest.$ac_objext \
13870 conftest$ac_exeext conftest.$ac_ext
13871if test "$ac_cv_search_frexp" = no; then
13872 for ac_lib in m; do
13873 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13874 cat >conftest.$ac_ext <<_ACEOF
13875/* confdefs.h. */
13876_ACEOF
13877cat confdefs.h >>conftest.$ac_ext
13878cat >>conftest.$ac_ext <<_ACEOF
13879/* end confdefs.h. */
13880
f353eb8a 13881/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
13882#ifdef __cplusplus
13883extern "C"
13884#endif
f353eb8a 13885/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
13886 builtin and then its argument prototype would still apply. */
13887char frexp ();
13888int
13889main ()
13890{
13891frexp ();
13892 ;
13893 return 0;
13894}
13895_ACEOF
13896rm -f conftest.$ac_objext conftest$ac_exeext
13897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13898 (eval $ac_link) 2>conftest.er1
13899 ac_status=$?
13900 grep -v '^ *+' conftest.er1 >conftest.err
13901 rm -f conftest.er1
13902 cat conftest.err >&5
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); } &&
7357c5b6
AM
13905 { ac_try='test -z "$ac_c_werror_flag"
13906 || test ! -s conftest.err'
42ecbf5e
DJ
13907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13908 (eval $ac_try) 2>&5
13909 ac_status=$?
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); }; } &&
13912 { ac_try='test -s conftest$ac_exeext'
13913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13914 (eval $ac_try) 2>&5
13915 ac_status=$?
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); }; }; then
13918 ac_cv_search_frexp="-l$ac_lib"
f353eb8a
ILT
13919break
13920else
42ecbf5e
DJ
13921 echo "$as_me: failed program was:" >&5
13922sed 's/^/| /' conftest.$ac_ext >&5
13923
f353eb8a 13924fi
42ecbf5e
DJ
13925rm -f conftest.err conftest.$ac_objext \
13926 conftest$ac_exeext conftest.$ac_ext
13927 done
e5a52504 13928fi
42ecbf5e
DJ
13929LIBS=$ac_func_search_save_LIBS
13930fi
13931echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
13932echo "${ECHO_T}$ac_cv_search_frexp" >&6
13933if test "$ac_cv_search_frexp" != no; then
d15b04bd 13934 test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
42ecbf5e 13935
f353eb8a
ILT
13936fi
13937
42ecbf5e
DJ
13938
13939echo "$as_me:$LINENO: checking for time_t in time.h" >&5
13940echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6
13941if test "${bu_cv_decl_time_t_time_h+set}" = set; then
13942 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 13943else
42ecbf5e
DJ
13944 cat >conftest.$ac_ext <<_ACEOF
13945/* confdefs.h. */
13946_ACEOF
13947cat confdefs.h >>conftest.$ac_ext
13948cat >>conftest.$ac_ext <<_ACEOF
13949/* end confdefs.h. */
252b5132 13950#include <time.h>
42ecbf5e
DJ
13951int
13952main ()
13953{
252b5132 13954time_t i;
42ecbf5e
DJ
13955 ;
13956 return 0;
13957}
13958_ACEOF
13959rm -f conftest.$ac_objext
13960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13961 (eval $ac_compile) 2>conftest.er1
13962 ac_status=$?
13963 grep -v '^ *+' conftest.er1 >conftest.err
13964 rm -f conftest.er1
13965 cat conftest.err >&5
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); } &&
7357c5b6
AM
13968 { ac_try='test -z "$ac_c_werror_flag"
13969 || test ! -s conftest.err'
42ecbf5e
DJ
13970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13971 (eval $ac_try) 2>&5
13972 ac_status=$?
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); }; } &&
13975 { ac_try='test -s conftest.$ac_objext'
13976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13977 (eval $ac_try) 2>&5
13978 ac_status=$?
13979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980 (exit $ac_status); }; }; then
252b5132
RH
13981 bu_cv_decl_time_t_time_h=yes
13982else
42ecbf5e
DJ
13983 echo "$as_me: failed program was:" >&5
13984sed 's/^/| /' conftest.$ac_ext >&5
13985
13986bu_cv_decl_time_t_time_h=no
252b5132 13987fi
42ecbf5e 13988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
13989fi
13990
42ecbf5e
DJ
13991echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
13992echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6
252b5132 13993if test $bu_cv_decl_time_t_time_h = yes; then
42ecbf5e
DJ
13994
13995cat >>confdefs.h <<\_ACEOF
252b5132 13996#define HAVE_TIME_T_IN_TIME_H 1
42ecbf5e 13997_ACEOF
252b5132
RH
13998
13999fi
14000
42ecbf5e
DJ
14001echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
14002echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6
14003if test "${bu_cv_decl_time_t_types_h+set}" = set; then
14004 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 14005else
42ecbf5e
DJ
14006 cat >conftest.$ac_ext <<_ACEOF
14007/* confdefs.h. */
14008_ACEOF
14009cat confdefs.h >>conftest.$ac_ext
14010cat >>conftest.$ac_ext <<_ACEOF
14011/* end confdefs.h. */
252b5132 14012#include <sys/types.h>
42ecbf5e
DJ
14013int
14014main ()
14015{
252b5132 14016time_t i;
42ecbf5e
DJ
14017 ;
14018 return 0;
14019}
14020_ACEOF
14021rm -f conftest.$ac_objext
14022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14023 (eval $ac_compile) 2>conftest.er1
14024 ac_status=$?
14025 grep -v '^ *+' conftest.er1 >conftest.err
14026 rm -f conftest.er1
14027 cat conftest.err >&5
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); } &&
7357c5b6
AM
14030 { ac_try='test -z "$ac_c_werror_flag"
14031 || test ! -s conftest.err'
42ecbf5e
DJ
14032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14033 (eval $ac_try) 2>&5
14034 ac_status=$?
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); }; } &&
14037 { ac_try='test -s conftest.$ac_objext'
14038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14039 (eval $ac_try) 2>&5
14040 ac_status=$?
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); }; }; then
252b5132
RH
14043 bu_cv_decl_time_t_types_h=yes
14044else
42ecbf5e
DJ
14045 echo "$as_me: failed program was:" >&5
14046sed 's/^/| /' conftest.$ac_ext >&5
14047
14048bu_cv_decl_time_t_types_h=no
252b5132 14049fi
42ecbf5e 14050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
14051fi
14052
42ecbf5e
DJ
14053echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
14054echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6
252b5132 14055if test $bu_cv_decl_time_t_types_h = yes; then
42ecbf5e
DJ
14056
14057cat >>confdefs.h <<\_ACEOF
252b5132 14058#define HAVE_TIME_T_IN_TYPES_H 1
42ecbf5e 14059_ACEOF
252b5132
RH
14060
14061fi
14062
42ecbf5e
DJ
14063echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
14064echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
14065if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then
14066 echo $ECHO_N "(cached) $ECHO_C" >&6
e46eba98 14067else
42ecbf5e
DJ
14068 cat >conftest.$ac_ext <<_ACEOF
14069/* confdefs.h. */
14070_ACEOF
14071cat confdefs.h >>conftest.$ac_ext
14072cat >>conftest.$ac_ext <<_ACEOF
14073/* end confdefs.h. */
e46eba98 14074#include <unistd.h>
42ecbf5e
DJ
14075int
14076main ()
14077{
e46eba98 14078extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
14079 ;
14080 return 0;
14081}
14082_ACEOF
14083rm -f conftest.$ac_objext
14084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14085 (eval $ac_compile) 2>conftest.er1
14086 ac_status=$?
14087 grep -v '^ *+' conftest.er1 >conftest.err
14088 rm -f conftest.er1
14089 cat conftest.err >&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); } &&
7357c5b6
AM
14092 { ac_try='test -z "$ac_c_werror_flag"
14093 || test ! -s conftest.err'
42ecbf5e
DJ
14094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14095 (eval $ac_try) 2>&5
14096 ac_status=$?
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); }; } &&
14099 { ac_try='test -s conftest.$ac_objext'
14100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14101 (eval $ac_try) 2>&5
14102 ac_status=$?
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; }; then
e46eba98
NC
14105 bu_cv_decl_getopt_unistd_h=yes
14106else
42ecbf5e
DJ
14107 echo "$as_me: failed program was:" >&5
14108sed 's/^/| /' conftest.$ac_ext >&5
14109
14110bu_cv_decl_getopt_unistd_h=no
e46eba98 14111fi
42ecbf5e 14112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e46eba98
NC
14113fi
14114
42ecbf5e
DJ
14115echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5
14116echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6
e46eba98 14117if test $bu_cv_decl_getopt_unistd_h = yes; then
42ecbf5e
DJ
14118
14119cat >>confdefs.h <<\_ACEOF
e46eba98 14120#define HAVE_DECL_GETOPT 1
42ecbf5e 14121_ACEOF
e46eba98
NC
14122
14123fi
14124
252b5132
RH
14125# Under Next 3.2 <utime.h> apparently does not define struct utimbuf
14126# by default.
42ecbf5e
DJ
14127echo "$as_me:$LINENO: checking for utime.h" >&5
14128echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
14129if test "${bu_cv_header_utime_h+set}" = set; then
14130 echo $ECHO_N "(cached) $ECHO_C" >&6
14131else
14132 cat >conftest.$ac_ext <<_ACEOF
14133/* confdefs.h. */
14134_ACEOF
14135cat confdefs.h >>conftest.$ac_ext
14136cat >>conftest.$ac_ext <<_ACEOF
14137/* end confdefs.h. */
252b5132
RH
14138#include <sys/types.h>
14139#ifdef HAVE_TIME_H
14140#include <time.h>
14141#endif
14142#include <utime.h>
42ecbf5e
DJ
14143int
14144main ()
14145{
252b5132 14146struct utimbuf s;
42ecbf5e
DJ
14147 ;
14148 return 0;
14149}
14150_ACEOF
14151rm -f conftest.$ac_objext
14152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14153 (eval $ac_compile) 2>conftest.er1
14154 ac_status=$?
14155 grep -v '^ *+' conftest.er1 >conftest.err
14156 rm -f conftest.er1
14157 cat conftest.err >&5
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); } &&
7357c5b6
AM
14160 { ac_try='test -z "$ac_c_werror_flag"
14161 || test ! -s conftest.err'
42ecbf5e
DJ
14162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14163 (eval $ac_try) 2>&5
14164 ac_status=$?
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); }; } &&
14167 { ac_try='test -s conftest.$ac_objext'
14168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14169 (eval $ac_try) 2>&5
14170 ac_status=$?
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); }; }; then
252b5132
RH
14173 bu_cv_header_utime_h=yes
14174else
42ecbf5e
DJ
14175 echo "$as_me: failed program was:" >&5
14176sed 's/^/| /' conftest.$ac_ext >&5
14177
14178bu_cv_header_utime_h=no
252b5132 14179fi
42ecbf5e 14180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
14181fi
14182
42ecbf5e
DJ
14183echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
14184echo "${ECHO_T}$bu_cv_header_utime_h" >&6
252b5132 14185if test $bu_cv_header_utime_h = yes; then
42ecbf5e
DJ
14186
14187cat >>confdefs.h <<\_ACEOF
252b5132 14188#define HAVE_GOOD_UTIME_H 1
42ecbf5e 14189_ACEOF
252b5132
RH
14190
14191fi
14192
398ee8f1
SE
14193echo "$as_me:$LINENO: checking whether fprintf is declared" >&5
14194echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6
14195if test "${ac_cv_have_decl_fprintf+set}" = set; then
42ecbf5e 14196 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 14197else
42ecbf5e
DJ
14198 cat >conftest.$ac_ext <<_ACEOF
14199/* confdefs.h. */
14200_ACEOF
14201cat confdefs.h >>conftest.$ac_ext
14202cat >>conftest.$ac_ext <<_ACEOF
14203/* end confdefs.h. */
398ee8f1 14204$ac_includes_default
42ecbf5e
DJ
14205int
14206main ()
14207{
398ee8f1
SE
14208#ifndef fprintf
14209 char *p = (char *) fprintf;
14210#endif
14211
42ecbf5e
DJ
14212 ;
14213 return 0;
14214}
14215_ACEOF
14216rm -f conftest.$ac_objext
14217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14218 (eval $ac_compile) 2>conftest.er1
14219 ac_status=$?
14220 grep -v '^ *+' conftest.er1 >conftest.err
14221 rm -f conftest.er1
14222 cat conftest.err >&5
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); } &&
7357c5b6
AM
14225 { ac_try='test -z "$ac_c_werror_flag"
14226 || test ! -s conftest.err'
42ecbf5e
DJ
14227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14228 (eval $ac_try) 2>&5
14229 ac_status=$?
14230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231 (exit $ac_status); }; } &&
14232 { ac_try='test -s conftest.$ac_objext'
14233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14234 (eval $ac_try) 2>&5
14235 ac_status=$?
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); }; }; then
398ee8f1 14238 ac_cv_have_decl_fprintf=yes
252b5132 14239else
42ecbf5e
DJ
14240 echo "$as_me: failed program was:" >&5
14241sed 's/^/| /' conftest.$ac_ext >&5
14242
398ee8f1 14243ac_cv_have_decl_fprintf=no
252b5132 14244fi
42ecbf5e 14245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 14246fi
398ee8f1
SE
14247echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5
14248echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6
14249if test $ac_cv_have_decl_fprintf = yes; then
252b5132 14250
398ee8f1
SE
14251cat >>confdefs.h <<_ACEOF
14252#define HAVE_DECL_FPRINTF 1
14253_ACEOF
42ecbf5e 14254
398ee8f1
SE
14255
14256else
14257 cat >>confdefs.h <<_ACEOF
14258#define HAVE_DECL_FPRINTF 0
42ecbf5e 14259_ACEOF
252b5132 14260
252b5132 14261
3e321448
L
14262fi
14263echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
14264echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
14265if test "${ac_cv_have_decl_stpcpy+set}" = set; then
14266 echo $ECHO_N "(cached) $ECHO_C" >&6
14267else
14268 cat >conftest.$ac_ext <<_ACEOF
14269/* confdefs.h. */
14270_ACEOF
14271cat confdefs.h >>conftest.$ac_ext
14272cat >>conftest.$ac_ext <<_ACEOF
14273/* end confdefs.h. */
14274$ac_includes_default
14275int
14276main ()
14277{
14278#ifndef stpcpy
14279 char *p = (char *) stpcpy;
14280#endif
14281
14282 ;
14283 return 0;
14284}
14285_ACEOF
14286rm -f conftest.$ac_objext
14287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14288 (eval $ac_compile) 2>conftest.er1
14289 ac_status=$?
14290 grep -v '^ *+' conftest.er1 >conftest.err
14291 rm -f conftest.er1
14292 cat conftest.err >&5
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); } &&
7357c5b6
AM
14295 { ac_try='test -z "$ac_c_werror_flag"
14296 || test ! -s conftest.err'
3e321448
L
14297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14298 (eval $ac_try) 2>&5
14299 ac_status=$?
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); }; } &&
14302 { ac_try='test -s conftest.$ac_objext'
14303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14304 (eval $ac_try) 2>&5
14305 ac_status=$?
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 (exit $ac_status); }; }; then
14308 ac_cv_have_decl_stpcpy=yes
14309else
14310 echo "$as_me: failed program was:" >&5
14311sed 's/^/| /' conftest.$ac_ext >&5
14312
14313ac_cv_have_decl_stpcpy=no
14314fi
14315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14316fi
14317echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
14318echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
14319if test $ac_cv_have_decl_stpcpy = yes; then
14320
14321cat >>confdefs.h <<_ACEOF
14322#define HAVE_DECL_STPCPY 1
14323_ACEOF
14324
14325
14326else
14327 cat >>confdefs.h <<_ACEOF
14328#define HAVE_DECL_STPCPY 0
14329_ACEOF
14330
14331
398ee8f1
SE
14332fi
14333echo "$as_me:$LINENO: checking whether strstr is declared" >&5
14334echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
14335if test "${ac_cv_have_decl_strstr+set}" = set; then
42ecbf5e 14336 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 14337else
42ecbf5e
DJ
14338 cat >conftest.$ac_ext <<_ACEOF
14339/* confdefs.h. */
14340_ACEOF
14341cat confdefs.h >>conftest.$ac_ext
14342cat >>conftest.$ac_ext <<_ACEOF
14343/* end confdefs.h. */
398ee8f1 14344$ac_includes_default
42ecbf5e
DJ
14345int
14346main ()
14347{
398ee8f1
SE
14348#ifndef strstr
14349 char *p = (char *) strstr;
14350#endif
14351
42ecbf5e
DJ
14352 ;
14353 return 0;
14354}
14355_ACEOF
14356rm -f conftest.$ac_objext
14357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14358 (eval $ac_compile) 2>conftest.er1
14359 ac_status=$?
14360 grep -v '^ *+' conftest.er1 >conftest.err
14361 rm -f conftest.er1
14362 cat conftest.err >&5
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); } &&
7357c5b6
AM
14365 { ac_try='test -z "$ac_c_werror_flag"
14366 || test ! -s conftest.err'
42ecbf5e
DJ
14367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14368 (eval $ac_try) 2>&5
14369 ac_status=$?
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); }; } &&
14372 { ac_try='test -s conftest.$ac_objext'
14373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14374 (eval $ac_try) 2>&5
14375 ac_status=$?
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); }; }; then
398ee8f1 14378 ac_cv_have_decl_strstr=yes
252b5132 14379else
42ecbf5e
DJ
14380 echo "$as_me: failed program was:" >&5
14381sed 's/^/| /' conftest.$ac_ext >&5
14382
398ee8f1 14383ac_cv_have_decl_strstr=no
252b5132 14384fi
42ecbf5e 14385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 14386fi
398ee8f1
SE
14387echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
14388echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
14389if test $ac_cv_have_decl_strstr = yes; then
252b5132 14390
398ee8f1
SE
14391cat >>confdefs.h <<_ACEOF
14392#define HAVE_DECL_STRSTR 1
14393_ACEOF
42ecbf5e 14394
398ee8f1
SE
14395
14396else
14397 cat >>confdefs.h <<_ACEOF
14398#define HAVE_DECL_STRSTR 0
42ecbf5e 14399_ACEOF
252b5132 14400
252b5132 14401
398ee8f1
SE
14402fi
14403echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
14404echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
14405if test "${ac_cv_have_decl_sbrk+set}" = set; then
42ecbf5e 14406 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 14407else
42ecbf5e
DJ
14408 cat >conftest.$ac_ext <<_ACEOF
14409/* confdefs.h. */
14410_ACEOF
14411cat confdefs.h >>conftest.$ac_ext
14412cat >>conftest.$ac_ext <<_ACEOF
14413/* end confdefs.h. */
398ee8f1 14414$ac_includes_default
42ecbf5e
DJ
14415int
14416main ()
14417{
398ee8f1
SE
14418#ifndef sbrk
14419 char *p = (char *) sbrk;
14420#endif
14421
42ecbf5e
DJ
14422 ;
14423 return 0;
14424}
14425_ACEOF
14426rm -f conftest.$ac_objext
14427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14428 (eval $ac_compile) 2>conftest.er1
14429 ac_status=$?
14430 grep -v '^ *+' conftest.er1 >conftest.err
14431 rm -f conftest.er1
14432 cat conftest.err >&5
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); } &&
7357c5b6
AM
14435 { ac_try='test -z "$ac_c_werror_flag"
14436 || test ! -s conftest.err'
42ecbf5e
DJ
14437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14438 (eval $ac_try) 2>&5
14439 ac_status=$?
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); }; } &&
14442 { ac_try='test -s conftest.$ac_objext'
14443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14444 (eval $ac_try) 2>&5
14445 ac_status=$?
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); }; }; then
398ee8f1 14448 ac_cv_have_decl_sbrk=yes
252b5132 14449else
42ecbf5e
DJ
14450 echo "$as_me: failed program was:" >&5
14451sed 's/^/| /' conftest.$ac_ext >&5
14452
398ee8f1 14453ac_cv_have_decl_sbrk=no
252b5132 14454fi
42ecbf5e 14455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 14456fi
398ee8f1
SE
14457echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
14458echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
14459if test $ac_cv_have_decl_sbrk = yes; then
252b5132 14460
398ee8f1
SE
14461cat >>confdefs.h <<_ACEOF
14462#define HAVE_DECL_SBRK 1
14463_ACEOF
42ecbf5e 14464
398ee8f1
SE
14465
14466else
14467 cat >>confdefs.h <<_ACEOF
14468#define HAVE_DECL_SBRK 0
42ecbf5e 14469_ACEOF
252b5132 14470
252b5132 14471
398ee8f1
SE
14472fi
14473echo "$as_me:$LINENO: checking whether getenv is declared" >&5
14474echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
14475if test "${ac_cv_have_decl_getenv+set}" = set; then
42ecbf5e 14476 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 14477else
42ecbf5e
DJ
14478 cat >conftest.$ac_ext <<_ACEOF
14479/* confdefs.h. */
14480_ACEOF
14481cat confdefs.h >>conftest.$ac_ext
14482cat >>conftest.$ac_ext <<_ACEOF
14483/* end confdefs.h. */
398ee8f1 14484$ac_includes_default
42ecbf5e
DJ
14485int
14486main ()
14487{
398ee8f1
SE
14488#ifndef getenv
14489 char *p = (char *) getenv;
14490#endif
14491
42ecbf5e
DJ
14492 ;
14493 return 0;
14494}
14495_ACEOF
14496rm -f conftest.$ac_objext
14497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14498 (eval $ac_compile) 2>conftest.er1
14499 ac_status=$?
14500 grep -v '^ *+' conftest.er1 >conftest.err
14501 rm -f conftest.er1
14502 cat conftest.err >&5
14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 (exit $ac_status); } &&
7357c5b6
AM
14505 { ac_try='test -z "$ac_c_werror_flag"
14506 || test ! -s conftest.err'
42ecbf5e
DJ
14507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14508 (eval $ac_try) 2>&5
14509 ac_status=$?
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); }; } &&
14512 { ac_try='test -s conftest.$ac_objext'
14513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14514 (eval $ac_try) 2>&5
14515 ac_status=$?
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); }; }; then
398ee8f1 14518 ac_cv_have_decl_getenv=yes
252b5132 14519else
42ecbf5e
DJ
14520 echo "$as_me: failed program was:" >&5
14521sed 's/^/| /' conftest.$ac_ext >&5
14522
398ee8f1 14523ac_cv_have_decl_getenv=no
252b5132 14524fi
42ecbf5e 14525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 14526fi
398ee8f1
SE
14527echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
14528echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
14529if test $ac_cv_have_decl_getenv = yes; then
252b5132 14530
398ee8f1
SE
14531cat >>confdefs.h <<_ACEOF
14532#define HAVE_DECL_GETENV 1
14533_ACEOF
42ecbf5e 14534
398ee8f1
SE
14535
14536else
14537 cat >>confdefs.h <<_ACEOF
14538#define HAVE_DECL_GETENV 0
42ecbf5e 14539_ACEOF
252b5132 14540
252b5132 14541
398ee8f1
SE
14542fi
14543echo "$as_me:$LINENO: checking whether environ is declared" >&5
14544echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
14545if test "${ac_cv_have_decl_environ+set}" = set; then
42ecbf5e 14546 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 14547else
42ecbf5e
DJ
14548 cat >conftest.$ac_ext <<_ACEOF
14549/* confdefs.h. */
14550_ACEOF
14551cat confdefs.h >>conftest.$ac_ext
14552cat >>conftest.$ac_ext <<_ACEOF
14553/* end confdefs.h. */
398ee8f1 14554$ac_includes_default
42ecbf5e
DJ
14555int
14556main ()
14557{
398ee8f1
SE
14558#ifndef environ
14559 char *p = (char *) environ;
14560#endif
14561
42ecbf5e
DJ
14562 ;
14563 return 0;
14564}
14565_ACEOF
14566rm -f conftest.$ac_objext
14567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14568 (eval $ac_compile) 2>conftest.er1
14569 ac_status=$?
14570 grep -v '^ *+' conftest.er1 >conftest.err
14571 rm -f conftest.er1
14572 cat conftest.err >&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); } &&
7357c5b6
AM
14575 { ac_try='test -z "$ac_c_werror_flag"
14576 || test ! -s conftest.err'
42ecbf5e
DJ
14577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14578 (eval $ac_try) 2>&5
14579 ac_status=$?
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); }; } &&
14582 { ac_try='test -s conftest.$ac_objext'
14583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584 (eval $ac_try) 2>&5
14585 ac_status=$?
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); }; }; then
398ee8f1 14588 ac_cv_have_decl_environ=yes
252b5132 14589else
42ecbf5e
DJ
14590 echo "$as_me: failed program was:" >&5
14591sed 's/^/| /' conftest.$ac_ext >&5
14592
398ee8f1 14593ac_cv_have_decl_environ=no
252b5132 14594fi
42ecbf5e 14595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 14596fi
398ee8f1
SE
14597echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
14598echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
14599if test $ac_cv_have_decl_environ = yes; then
252b5132 14600
398ee8f1
SE
14601cat >>confdefs.h <<_ACEOF
14602#define HAVE_DECL_ENVIRON 1
14603_ACEOF
42ecbf5e 14604
398ee8f1
SE
14605
14606else
14607 cat >>confdefs.h <<_ACEOF
14608#define HAVE_DECL_ENVIRON 0
42ecbf5e 14609_ACEOF
252b5132 14610
252b5132 14611
398ee8f1 14612fi
b7d4af3a
JW
14613echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
14614echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
14615if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
14616 echo $ECHO_N "(cached) $ECHO_C" >&6
14617else
14618 cat >conftest.$ac_ext <<_ACEOF
14619/* confdefs.h. */
14620_ACEOF
14621cat confdefs.h >>conftest.$ac_ext
14622cat >>conftest.$ac_ext <<_ACEOF
14623/* end confdefs.h. */
14624$ac_includes_default
14625int
14626main ()
14627{
14628#ifndef getc_unlocked
14629 char *p = (char *) getc_unlocked;
14630#endif
14631
14632 ;
14633 return 0;
14634}
14635_ACEOF
14636rm -f conftest.$ac_objext
14637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14638 (eval $ac_compile) 2>conftest.er1
14639 ac_status=$?
14640 grep -v '^ *+' conftest.er1 >conftest.err
14641 rm -f conftest.er1
14642 cat conftest.err >&5
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); } &&
7357c5b6
AM
14645 { ac_try='test -z "$ac_c_werror_flag"
14646 || test ! -s conftest.err'
b7d4af3a
JW
14647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14648 (eval $ac_try) 2>&5
14649 ac_status=$?
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); }; } &&
14652 { ac_try='test -s conftest.$ac_objext'
14653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14654 (eval $ac_try) 2>&5
14655 ac_status=$?
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); }; }; then
14658 ac_cv_have_decl_getc_unlocked=yes
14659else
14660 echo "$as_me: failed program was:" >&5
14661sed 's/^/| /' conftest.$ac_ext >&5
14662
14663ac_cv_have_decl_getc_unlocked=no
14664fi
14665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14666fi
14667echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
14668echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
14669if test $ac_cv_have_decl_getc_unlocked = yes; then
14670
14671cat >>confdefs.h <<_ACEOF
14672#define HAVE_DECL_GETC_UNLOCKED 1
14673_ACEOF
14674
14675
14676else
14677 cat >>confdefs.h <<_ACEOF
14678#define HAVE_DECL_GETC_UNLOCKED 0
14679_ACEOF
14680
14681
db50c840
EB
14682fi
14683echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14684echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
14685if test "${ac_cv_have_decl_snprintf+set}" = set; then
14686 echo $ECHO_N "(cached) $ECHO_C" >&6
14687else
14688 cat >conftest.$ac_ext <<_ACEOF
14689/* confdefs.h. */
14690_ACEOF
14691cat confdefs.h >>conftest.$ac_ext
14692cat >>conftest.$ac_ext <<_ACEOF
14693/* end confdefs.h. */
14694$ac_includes_default
14695int
14696main ()
14697{
14698#ifndef snprintf
14699 char *p = (char *) snprintf;
14700#endif
14701
14702 ;
14703 return 0;
14704}
14705_ACEOF
14706rm -f conftest.$ac_objext
14707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14708 (eval $ac_compile) 2>conftest.er1
14709 ac_status=$?
14710 grep -v '^ *+' conftest.er1 >conftest.err
14711 rm -f conftest.er1
14712 cat conftest.err >&5
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); } &&
7357c5b6
AM
14715 { ac_try='test -z "$ac_c_werror_flag"
14716 || test ! -s conftest.err'
db50c840
EB
14717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14718 (eval $ac_try) 2>&5
14719 ac_status=$?
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); }; } &&
14722 { ac_try='test -s conftest.$ac_objext'
14723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14724 (eval $ac_try) 2>&5
14725 ac_status=$?
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); }; }; then
14728 ac_cv_have_decl_snprintf=yes
14729else
14730 echo "$as_me: failed program was:" >&5
14731sed 's/^/| /' conftest.$ac_ext >&5
14732
14733ac_cv_have_decl_snprintf=no
14734fi
14735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14736fi
14737echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14738echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
14739if test $ac_cv_have_decl_snprintf = yes; then
14740
14741cat >>confdefs.h <<_ACEOF
14742#define HAVE_DECL_SNPRINTF 1
14743_ACEOF
14744
14745
14746else
14747 cat >>confdefs.h <<_ACEOF
14748#define HAVE_DECL_SNPRINTF 0
14749_ACEOF
14750
14751
14752fi
14753echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14754echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
14755if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14756 echo $ECHO_N "(cached) $ECHO_C" >&6
14757else
14758 cat >conftest.$ac_ext <<_ACEOF
14759/* confdefs.h. */
14760_ACEOF
14761cat confdefs.h >>conftest.$ac_ext
14762cat >>conftest.$ac_ext <<_ACEOF
14763/* end confdefs.h. */
14764$ac_includes_default
14765int
14766main ()
14767{
14768#ifndef vsnprintf
14769 char *p = (char *) vsnprintf;
14770#endif
14771
14772 ;
14773 return 0;
14774}
14775_ACEOF
14776rm -f conftest.$ac_objext
14777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14778 (eval $ac_compile) 2>conftest.er1
14779 ac_status=$?
14780 grep -v '^ *+' conftest.er1 >conftest.err
14781 rm -f conftest.er1
14782 cat conftest.err >&5
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); } &&
7357c5b6
AM
14785 { ac_try='test -z "$ac_c_werror_flag"
14786 || test ! -s conftest.err'
db50c840
EB
14787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14788 (eval $ac_try) 2>&5
14789 ac_status=$?
14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); }; } &&
14792 { ac_try='test -s conftest.$ac_objext'
14793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14794 (eval $ac_try) 2>&5
14795 ac_status=$?
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); }; }; then
14798 ac_cv_have_decl_vsnprintf=yes
14799else
14800 echo "$as_me: failed program was:" >&5
14801sed 's/^/| /' conftest.$ac_ext >&5
14802
14803ac_cv_have_decl_vsnprintf=no
14804fi
14805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14806fi
14807echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14808echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
14809if test $ac_cv_have_decl_vsnprintf = yes; then
14810
14811cat >>confdefs.h <<_ACEOF
14812#define HAVE_DECL_VSNPRINTF 1
14813_ACEOF
14814
14815
14816else
14817 cat >>confdefs.h <<_ACEOF
14818#define HAVE_DECL_VSNPRINTF 0
14819_ACEOF
14820
14821
b7d4af3a
JW
14822fi
14823
14824
252b5132 14825
1b315056
CS
14826# Link in zlib if we can. This allows us to read compressed debug
14827# sections. This is used only by readelf.c (objdump uses bfd for
14828# reading compressed sections).
14829echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
14830echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
14831if test "${ac_cv_search_zlibVersion+set}" = set; then
14832 echo $ECHO_N "(cached) $ECHO_C" >&6
14833else
14834 ac_func_search_save_LIBS=$LIBS
14835ac_cv_search_zlibVersion=no
14836cat >conftest.$ac_ext <<_ACEOF
14837/* confdefs.h. */
14838_ACEOF
14839cat confdefs.h >>conftest.$ac_ext
14840cat >>conftest.$ac_ext <<_ACEOF
14841/* end confdefs.h. */
14842
14843/* Override any gcc2 internal prototype to avoid an error. */
14844#ifdef __cplusplus
14845extern "C"
14846#endif
14847/* We use char because int might match the return type of a gcc2
14848 builtin and then its argument prototype would still apply. */
14849char zlibVersion ();
14850int
14851main ()
14852{
14853zlibVersion ();
14854 ;
14855 return 0;
14856}
14857_ACEOF
14858rm -f conftest.$ac_objext conftest$ac_exeext
14859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14860 (eval $ac_link) 2>conftest.er1
14861 ac_status=$?
14862 grep -v '^ *+' conftest.er1 >conftest.err
14863 rm -f conftest.er1
14864 cat conftest.err >&5
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); } &&
7357c5b6
AM
14867 { ac_try='test -z "$ac_c_werror_flag"
14868 || test ! -s conftest.err'
1b315056
CS
14869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14870 (eval $ac_try) 2>&5
14871 ac_status=$?
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); }; } &&
14874 { ac_try='test -s conftest$ac_exeext'
14875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14876 (eval $ac_try) 2>&5
14877 ac_status=$?
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); }; }; then
14880 ac_cv_search_zlibVersion="none required"
14881else
14882 echo "$as_me: failed program was:" >&5
14883sed 's/^/| /' conftest.$ac_ext >&5
14884
14885fi
14886rm -f conftest.err conftest.$ac_objext \
14887 conftest$ac_exeext conftest.$ac_ext
14888if test "$ac_cv_search_zlibVersion" = no; then
14889 for ac_lib in z; do
14890 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14891 cat >conftest.$ac_ext <<_ACEOF
14892/* confdefs.h. */
14893_ACEOF
14894cat confdefs.h >>conftest.$ac_ext
14895cat >>conftest.$ac_ext <<_ACEOF
14896/* end confdefs.h. */
14897
14898/* Override any gcc2 internal prototype to avoid an error. */
14899#ifdef __cplusplus
14900extern "C"
14901#endif
14902/* We use char because int might match the return type of a gcc2
14903 builtin and then its argument prototype would still apply. */
14904char zlibVersion ();
14905int
14906main ()
14907{
14908zlibVersion ();
14909 ;
14910 return 0;
14911}
14912_ACEOF
14913rm -f conftest.$ac_objext conftest$ac_exeext
14914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14915 (eval $ac_link) 2>conftest.er1
14916 ac_status=$?
14917 grep -v '^ *+' conftest.er1 >conftest.err
14918 rm -f conftest.er1
14919 cat conftest.err >&5
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); } &&
7357c5b6
AM
14922 { ac_try='test -z "$ac_c_werror_flag"
14923 || test ! -s conftest.err'
1b315056
CS
14924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14925 (eval $ac_try) 2>&5
14926 ac_status=$?
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); }; } &&
14929 { ac_try='test -s conftest$ac_exeext'
14930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14931 (eval $ac_try) 2>&5
14932 ac_status=$?
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); }; }; then
14935 ac_cv_search_zlibVersion="-l$ac_lib"
14936break
14937else
14938 echo "$as_me: failed program was:" >&5
14939sed 's/^/| /' conftest.$ac_ext >&5
14940
14941fi
14942rm -f conftest.err conftest.$ac_objext \
14943 conftest$ac_exeext conftest.$ac_ext
14944 done
14945fi
14946LIBS=$ac_func_search_save_LIBS
14947fi
14948echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
14949echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
14950if test "$ac_cv_search_zlibVersion" != no; then
14951 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
14952
14953for ac_header in zlib.h
14954do
14955as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14956if eval "test \"\${$as_ac_Header+set}\" = set"; then
14957 echo "$as_me:$LINENO: checking for $ac_header" >&5
14958echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14959if eval "test \"\${$as_ac_Header+set}\" = set"; then
14960 echo $ECHO_N "(cached) $ECHO_C" >&6
14961fi
14962echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14963echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14964else
14965 # Is the header compilable?
14966echo "$as_me:$LINENO: checking $ac_header usability" >&5
14967echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14968cat >conftest.$ac_ext <<_ACEOF
14969/* confdefs.h. */
14970_ACEOF
14971cat confdefs.h >>conftest.$ac_ext
14972cat >>conftest.$ac_ext <<_ACEOF
14973/* end confdefs.h. */
14974$ac_includes_default
14975#include <$ac_header>
14976_ACEOF
14977rm -f conftest.$ac_objext
14978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14979 (eval $ac_compile) 2>conftest.er1
14980 ac_status=$?
14981 grep -v '^ *+' conftest.er1 >conftest.err
14982 rm -f conftest.er1
14983 cat conftest.err >&5
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); } &&
7357c5b6
AM
14986 { ac_try='test -z "$ac_c_werror_flag"
14987 || test ! -s conftest.err'
1b315056
CS
14988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14989 (eval $ac_try) 2>&5
14990 ac_status=$?
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); }; } &&
14993 { ac_try='test -s conftest.$ac_objext'
14994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14995 (eval $ac_try) 2>&5
14996 ac_status=$?
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); }; }; then
14999 ac_header_compiler=yes
15000else
15001 echo "$as_me: failed program was:" >&5
15002sed 's/^/| /' conftest.$ac_ext >&5
15003
15004ac_header_compiler=no
15005fi
15006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15007echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15008echo "${ECHO_T}$ac_header_compiler" >&6
15009
15010# Is the header present?
15011echo "$as_me:$LINENO: checking $ac_header presence" >&5
15012echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15013cat >conftest.$ac_ext <<_ACEOF
15014/* confdefs.h. */
15015_ACEOF
15016cat confdefs.h >>conftest.$ac_ext
15017cat >>conftest.$ac_ext <<_ACEOF
15018/* end confdefs.h. */
15019#include <$ac_header>
15020_ACEOF
15021if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15023 ac_status=$?
15024 grep -v '^ *+' conftest.er1 >conftest.err
15025 rm -f conftest.er1
15026 cat conftest.err >&5
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); } >/dev/null; then
15029 if test -s conftest.err; then
15030 ac_cpp_err=$ac_c_preproc_warn_flag
15031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15032 else
15033 ac_cpp_err=
15034 fi
15035else
15036 ac_cpp_err=yes
15037fi
15038if test -z "$ac_cpp_err"; then
15039 ac_header_preproc=yes
15040else
15041 echo "$as_me: failed program was:" >&5
15042sed 's/^/| /' conftest.$ac_ext >&5
15043
15044 ac_header_preproc=no
15045fi
15046rm -f conftest.err conftest.$ac_ext
15047echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15048echo "${ECHO_T}$ac_header_preproc" >&6
15049
15050# So? What about this header?
15051case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15052 yes:no: )
15053 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15054echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15056echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15057 ac_header_preproc=yes
15058 ;;
15059 no:yes:* )
15060 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15061echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15062 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15063echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15064 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15065echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15066 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15067echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15069echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15070 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15071echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15072 (
15073 cat <<\_ASBOX
15074## ------------------------------------------ ##
15075## Report this to the AC_PACKAGE_NAME lists. ##
15076## ------------------------------------------ ##
15077_ASBOX
15078 ) |
15079 sed "s/^/$as_me: WARNING: /" >&2
15080 ;;
15081esac
15082echo "$as_me:$LINENO: checking for $ac_header" >&5
15083echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15084if eval "test \"\${$as_ac_Header+set}\" = set"; then
15085 echo $ECHO_N "(cached) $ECHO_C" >&6
15086else
15087 eval "$as_ac_Header=\$ac_header_preproc"
15088fi
15089echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15090echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15091
15092fi
15093if test `eval echo '${'$as_ac_Header'}'` = yes; then
15094 cat >>confdefs.h <<_ACEOF
15095#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15096_ACEOF
15097
15098fi
15099
15100done
15101
15102fi
15103
15104
252b5132
RH
15105
15106case "${host}" in
8a965946 15107*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e
DJ
15108
15109cat >>confdefs.h <<\_ACEOF
252b5132 15110#define USE_BINARY_FOPEN 1
42ecbf5e 15111_ACEOF
252b5132
RH
15112 ;;
15113esac
15114
15115# target-specific stuff:
15116
15117# Canonicalize the secondary target names.
15118if test -n "$enable_targets"; then
15119 for targ in `echo $enable_targets | sed 's/,/ /g'`
15120 do
6d83c84b 15121 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
15122 if test -n "$result"; then
15123 canon_targets="$canon_targets $result"
15124 else
15125 # Allow targets that config.sub doesn't recognize, like "all".
15126 canon_targets="$canon_targets $targ"
15127 fi
15128 done
15129fi
15130
5ba684e2
NC
15131if test "${ac_cv_header_iconv_h+set}" = set; then
15132 echo "$as_me:$LINENO: checking for iconv.h" >&5
15133echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
15134if test "${ac_cv_header_iconv_h+set}" = set; then
15135 echo $ECHO_N "(cached) $ECHO_C" >&6
15136fi
15137echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
15138echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
15139else
15140 # Is the header compilable?
15141echo "$as_me:$LINENO: checking iconv.h usability" >&5
15142echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
15143cat >conftest.$ac_ext <<_ACEOF
15144/* confdefs.h. */
15145_ACEOF
15146cat confdefs.h >>conftest.$ac_ext
15147cat >>conftest.$ac_ext <<_ACEOF
15148/* end confdefs.h. */
15149$ac_includes_default
15150#include <iconv.h>
15151_ACEOF
15152rm -f conftest.$ac_objext
15153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15154 (eval $ac_compile) 2>conftest.er1
15155 ac_status=$?
15156 grep -v '^ *+' conftest.er1 >conftest.err
15157 rm -f conftest.er1
15158 cat conftest.err >&5
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); } &&
7357c5b6
AM
15161 { ac_try='test -z "$ac_c_werror_flag"
15162 || test ! -s conftest.err'
5ba684e2
NC
15163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15164 (eval $ac_try) 2>&5
15165 ac_status=$?
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); }; } &&
15168 { ac_try='test -s conftest.$ac_objext'
15169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15170 (eval $ac_try) 2>&5
15171 ac_status=$?
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); }; }; then
15174 ac_header_compiler=yes
15175else
15176 echo "$as_me: failed program was:" >&5
15177sed 's/^/| /' conftest.$ac_ext >&5
15178
15179ac_header_compiler=no
15180fi
15181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15182echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15183echo "${ECHO_T}$ac_header_compiler" >&6
15184
15185# Is the header present?
15186echo "$as_me:$LINENO: checking iconv.h presence" >&5
15187echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
15188cat >conftest.$ac_ext <<_ACEOF
15189/* confdefs.h. */
15190_ACEOF
15191cat confdefs.h >>conftest.$ac_ext
15192cat >>conftest.$ac_ext <<_ACEOF
15193/* end confdefs.h. */
15194#include <iconv.h>
15195_ACEOF
15196if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15198 ac_status=$?
15199 grep -v '^ *+' conftest.er1 >conftest.err
15200 rm -f conftest.er1
15201 cat conftest.err >&5
15202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); } >/dev/null; then
15204 if test -s conftest.err; then
15205 ac_cpp_err=$ac_c_preproc_warn_flag
15206 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15207 else
15208 ac_cpp_err=
15209 fi
15210else
15211 ac_cpp_err=yes
15212fi
15213if test -z "$ac_cpp_err"; then
15214 ac_header_preproc=yes
15215else
15216 echo "$as_me: failed program was:" >&5
15217sed 's/^/| /' conftest.$ac_ext >&5
15218
15219 ac_header_preproc=no
15220fi
15221rm -f conftest.err conftest.$ac_ext
15222echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15223echo "${ECHO_T}$ac_header_preproc" >&6
15224
15225# So? What about this header?
15226case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15227 yes:no: )
15228 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
15229echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15230 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
15231echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
15232 ac_header_preproc=yes
15233 ;;
15234 no:yes:* )
15235 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
15236echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
15237 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
15238echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
15239 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
15240echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
15241 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
15242echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
15243 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
15244echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
15245 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
15246echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
15247 (
15248 cat <<\_ASBOX
15249## ------------------------------------------ ##
15250## Report this to the AC_PACKAGE_NAME lists. ##
15251## ------------------------------------------ ##
15252_ASBOX
15253 ) |
15254 sed "s/^/$as_me: WARNING: /" >&2
15255 ;;
15256esac
15257echo "$as_me:$LINENO: checking for iconv.h" >&5
15258echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
15259if test "${ac_cv_header_iconv_h+set}" = set; then
15260 echo $ECHO_N "(cached) $ECHO_C" >&6
15261else
15262 ac_cv_header_iconv_h=$ac_header_preproc
15263fi
15264echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
15265echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
15266
15267fi
15268
15269
15270
15271 if test "X$prefix" = "XNONE"; then
15272 acl_final_prefix="$ac_default_prefix"
15273 else
15274 acl_final_prefix="$prefix"
15275 fi
15276 if test "X$exec_prefix" = "XNONE"; then
15277 acl_final_exec_prefix='${prefix}'
15278 else
15279 acl_final_exec_prefix="$exec_prefix"
15280 fi
15281 acl_save_prefix="$prefix"
15282 prefix="$acl_final_prefix"
15283 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15284 prefix="$acl_save_prefix"
15285
15286
15287# Check whether --with-gnu-ld or --without-gnu-ld was given.
15288if test "${with_gnu_ld+set}" = set; then
15289 withval="$with_gnu_ld"
15290 test "$withval" = no || with_gnu_ld=yes
15291else
15292 with_gnu_ld=no
15293fi;
15294# Prepare PATH_SEPARATOR.
15295# The user is always right.
15296if test "${PATH_SEPARATOR+set}" != set; then
15297 echo "#! /bin/sh" >conf$$.sh
15298 echo "exit 0" >>conf$$.sh
15299 chmod +x conf$$.sh
15300 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15301 PATH_SEPARATOR=';'
15302 else
15303 PATH_SEPARATOR=:
15304 fi
15305 rm -f conf$$.sh
15306fi
15307ac_prog=ld
15308if test "$GCC" = yes; then
15309 # Check if gcc -print-prog-name=ld gives a path.
15310 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
15311echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
15312 case $host in
15313 *-*-mingw*)
15314 # gcc leaves a trailing carriage return which upsets mingw
15315 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15316 *)
15317 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15318 esac
15319 case $ac_prog in
15320 # Accept absolute paths.
15321 [\\/]* | [A-Za-z]:[\\/]*)
15322 re_direlt='/[^/][^/]*/\.\./'
15323 # Canonicalize the path of ld
15324 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
15325 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15326 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
15327 done
15328 test -z "$LD" && LD="$ac_prog"
15329 ;;
15330 "")
15331 # If it fails, then pretend we aren't using GCC.
15332 ac_prog=ld
15333 ;;
15334 *)
15335 # If it is relative, then search for the first ld in PATH.
15336 with_gnu_ld=unknown
15337 ;;
15338 esac
15339elif test "$with_gnu_ld" = yes; then
15340 echo "$as_me:$LINENO: checking for GNU ld" >&5
15341echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15342else
15343 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15344echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15345fi
15346if test "${acl_cv_path_LD+set}" = set; then
15347 echo $ECHO_N "(cached) $ECHO_C" >&6
15348else
15349 if test -z "$LD"; then
15350 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
15351 for ac_dir in $PATH; do
15352 test -z "$ac_dir" && ac_dir=.
15353 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15354 acl_cv_path_LD="$ac_dir/$ac_prog"
15355 # Check to see if the program is GNU ld. I'd rather use --version,
15356 # but apparently some GNU ld's only accept -v.
15357 # Break only if it was the GNU/non-GNU ld that we prefer.
15358 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
15359 test "$with_gnu_ld" != no && break
15360 else
15361 test "$with_gnu_ld" != yes && break
15362 fi
15363 fi
15364 done
15365 IFS="$ac_save_ifs"
15366else
15367 acl_cv_path_LD="$LD" # Let the user override the test with a path.
15368fi
15369fi
15370
15371LD="$acl_cv_path_LD"
15372if test -n "$LD"; then
15373 echo "$as_me:$LINENO: result: $LD" >&5
15374echo "${ECHO_T}$LD" >&6
15375else
15376 echo "$as_me:$LINENO: result: no" >&5
15377echo "${ECHO_T}no" >&6
15378fi
15379test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15380echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15381 { (exit 1); exit 1; }; }
15382echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15383echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15384if test "${acl_cv_prog_gnu_ld+set}" = set; then
15385 echo $ECHO_N "(cached) $ECHO_C" >&6
15386else
15387 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15388if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
15389 acl_cv_prog_gnu_ld=yes
15390else
15391 acl_cv_prog_gnu_ld=no
15392fi
15393fi
15394echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
15395echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
15396with_gnu_ld=$acl_cv_prog_gnu_ld
15397
15398
15399
15400 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
15401echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
15402if test "${acl_cv_rpath+set}" = set; then
15403 echo $ECHO_N "(cached) $ECHO_C" >&6
15404else
15405
15406 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
15407 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15408 . ./conftest.sh
15409 rm -f ./conftest.sh
15410 acl_cv_rpath=done
15411
15412fi
15413echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
15414echo "${ECHO_T}$acl_cv_rpath" >&6
15415 wl="$acl_cv_wl"
15416 libext="$acl_cv_libext"
15417 shlibext="$acl_cv_shlibext"
15418 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
15419 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
15420 hardcode_direct="$acl_cv_hardcode_direct"
15421 hardcode_minus_L="$acl_cv_hardcode_minus_L"
15422 # Check whether --enable-rpath or --disable-rpath was given.
15423if test "${enable_rpath+set}" = set; then
15424 enableval="$enable_rpath"
15425 :
15426else
15427 enable_rpath=yes
15428fi;
15429
15430
15431
15432
15433
15434
15435
15436 use_additional=yes
15437
15438 acl_save_prefix="$prefix"
15439 prefix="$acl_final_prefix"
15440 acl_save_exec_prefix="$exec_prefix"
15441 exec_prefix="$acl_final_exec_prefix"
15442
15443 eval additional_includedir=\"$includedir\"
15444 eval additional_libdir=\"$libdir\"
15445
15446 exec_prefix="$acl_save_exec_prefix"
15447 prefix="$acl_save_prefix"
15448
15449
15450# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
15451if test "${with_libiconv_prefix+set}" = set; then
15452 withval="$with_libiconv_prefix"
15453
15454 if test "X$withval" = "Xno"; then
15455 use_additional=no
15456 else
15457 if test "X$withval" = "X"; then
15458
15459 acl_save_prefix="$prefix"
15460 prefix="$acl_final_prefix"
15461 acl_save_exec_prefix="$exec_prefix"
15462 exec_prefix="$acl_final_exec_prefix"
15463
15464 eval additional_includedir=\"$includedir\"
15465 eval additional_libdir=\"$libdir\"
15466
15467 exec_prefix="$acl_save_exec_prefix"
15468 prefix="$acl_save_prefix"
15469
15470 else
15471 additional_includedir="$withval/include"
15472 additional_libdir="$withval/lib"
15473 fi
15474 fi
15475
15476fi;
15477 LIBICONV=
15478 LTLIBICONV=
15479 INCICONV=
15480 rpathdirs=
15481 ltrpathdirs=
15482 names_already_handled=
15483 names_next_round='iconv '
15484 while test -n "$names_next_round"; do
15485 names_this_round="$names_next_round"
15486 names_next_round=
15487 for name in $names_this_round; do
15488 already_handled=
15489 for n in $names_already_handled; do
15490 if test "$n" = "$name"; then
15491 already_handled=yes
15492 break
15493 fi
15494 done
15495 if test -z "$already_handled"; then
15496 names_already_handled="$names_already_handled $name"
15497 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15498 eval value=\"\$HAVE_LIB$uppername\"
15499 if test -n "$value"; then
15500 if test "$value" = yes; then
15501 eval value=\"\$LIB$uppername\"
15502 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15503 eval value=\"\$LTLIB$uppername\"
15504 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15505 else
15506 :
15507 fi
15508 else
15509 found_dir=
15510 found_la=
15511 found_so=
15512 found_a=
15513 if test $use_additional = yes; then
15514 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15515 found_dir="$additional_libdir"
15516 found_so="$additional_libdir/lib$name.$shlibext"
15517 if test -f "$additional_libdir/lib$name.la"; then
15518 found_la="$additional_libdir/lib$name.la"
15519 fi
15520 else
15521 if test -f "$additional_libdir/lib$name.$libext"; then
15522 found_dir="$additional_libdir"
15523 found_a="$additional_libdir/lib$name.$libext"
15524 if test -f "$additional_libdir/lib$name.la"; then
15525 found_la="$additional_libdir/lib$name.la"
15526 fi
15527 fi
15528 fi
15529 fi
15530 if test "X$found_dir" = "X"; then
15531 for x in $LDFLAGS $LTLIBICONV; do
15532
15533 acl_save_prefix="$prefix"
15534 prefix="$acl_final_prefix"
15535 acl_save_exec_prefix="$exec_prefix"
15536 exec_prefix="$acl_final_exec_prefix"
15537 eval x=\"$x\"
15538 exec_prefix="$acl_save_exec_prefix"
15539 prefix="$acl_save_prefix"
15540
15541 case "$x" in
15542 -L*)
15543 dir=`echo "X$x" | sed -e 's/^X-L//'`
15544 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15545 found_dir="$dir"
15546 found_so="$dir/lib$name.$shlibext"
15547 if test -f "$dir/lib$name.la"; then
15548 found_la="$dir/lib$name.la"
15549 fi
15550 else
15551 if test -f "$dir/lib$name.$libext"; then
15552 found_dir="$dir"
15553 found_a="$dir/lib$name.$libext"
15554 if test -f "$dir/lib$name.la"; then
15555 found_la="$dir/lib$name.la"
15556 fi
15557 fi
15558 fi
15559 ;;
15560 esac
15561 if test "X$found_dir" != "X"; then
15562 break
15563 fi
15564 done
15565 fi
15566 if test "X$found_dir" != "X"; then
15567 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15568 if test "X$found_so" != "X"; then
15569 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
15570 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15571 else
15572 haveit=
15573 for x in $ltrpathdirs; do
15574 if test "X$x" = "X$found_dir"; then
15575 haveit=yes
15576 break
15577 fi
15578 done
15579 if test -z "$haveit"; then
15580 ltrpathdirs="$ltrpathdirs $found_dir"
15581 fi
15582 if test "$hardcode_direct" = yes; then
15583 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15584 else
15585 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15586 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15587 haveit=
15588 for x in $rpathdirs; do
15589 if test "X$x" = "X$found_dir"; then
15590 haveit=yes
15591 break
15592 fi
15593 done
15594 if test -z "$haveit"; then
15595 rpathdirs="$rpathdirs $found_dir"
15596 fi
15597 else
15598 haveit=
15599 for x in $LDFLAGS $LIBICONV; do
15600
15601 acl_save_prefix="$prefix"
15602 prefix="$acl_final_prefix"
15603 acl_save_exec_prefix="$exec_prefix"
15604 exec_prefix="$acl_final_exec_prefix"
15605 eval x=\"$x\"
15606 exec_prefix="$acl_save_exec_prefix"
15607 prefix="$acl_save_prefix"
15608
15609 if test "X$x" = "X-L$found_dir"; then
15610 haveit=yes
15611 break
15612 fi
15613 done
15614 if test -z "$haveit"; then
15615 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15616 fi
15617 if test "$hardcode_minus_L" != no; then
15618 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15619 else
15620 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15621 fi
15622 fi
15623 fi
15624 fi
15625 else
15626 if test "X$found_a" != "X"; then
15627 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15628 else
15629 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15630 fi
15631 fi
15632 additional_includedir=
15633 case "$found_dir" in
15634 */lib | */lib/)
15635 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15636 additional_includedir="$basedir/include"
15637 ;;
15638 esac
15639 if test "X$additional_includedir" != "X"; then
15640 if test "X$additional_includedir" != "X/usr/include"; then
15641 haveit=
15642 if test "X$additional_includedir" = "X/usr/local/include"; then
15643 if test -n "$GCC"; then
15644 case $host_os in
15645 linux*) haveit=yes;;
15646 esac
15647 fi
15648 fi
15649 if test -z "$haveit"; then
15650 for x in $CPPFLAGS $INCICONV; do
15651
15652 acl_save_prefix="$prefix"
15653 prefix="$acl_final_prefix"
15654 acl_save_exec_prefix="$exec_prefix"
15655 exec_prefix="$acl_final_exec_prefix"
15656 eval x=\"$x\"
15657 exec_prefix="$acl_save_exec_prefix"
15658 prefix="$acl_save_prefix"
15659
15660 if test "X$x" = "X-I$additional_includedir"; then
15661 haveit=yes
15662 break
15663 fi
15664 done
15665 if test -z "$haveit"; then
15666 if test -d "$additional_includedir"; then
15667 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15668 fi
15669 fi
15670 fi
15671 fi
15672 fi
15673 if test -n "$found_la"; then
15674 save_libdir="$libdir"
15675 case "$found_la" in
15676 */* | *\\*) . "$found_la" ;;
15677 *) . "./$found_la" ;;
15678 esac
15679 libdir="$save_libdir"
15680 for dep in $dependency_libs; do
15681 case "$dep" in
15682 -L*)
15683 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15684 if test "X$additional_libdir" != "X/usr/lib"; then
15685 haveit=
15686 if test "X$additional_libdir" = "X/usr/local/lib"; then
15687 if test -n "$GCC"; then
15688 case $host_os in
15689 linux*) haveit=yes;;
15690 esac
15691 fi
15692 fi
15693 if test -z "$haveit"; then
15694 haveit=
15695 for x in $LDFLAGS $LIBICONV; do
15696
15697 acl_save_prefix="$prefix"
15698 prefix="$acl_final_prefix"
15699 acl_save_exec_prefix="$exec_prefix"
15700 exec_prefix="$acl_final_exec_prefix"
15701 eval x=\"$x\"
15702 exec_prefix="$acl_save_exec_prefix"
15703 prefix="$acl_save_prefix"
15704
15705 if test "X$x" = "X-L$additional_libdir"; then
15706 haveit=yes
15707 break
15708 fi
15709 done
15710 if test -z "$haveit"; then
15711 if test -d "$additional_libdir"; then
15712 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15713 fi
15714 fi
15715 haveit=
15716 for x in $LDFLAGS $LTLIBICONV; do
15717
15718 acl_save_prefix="$prefix"
15719 prefix="$acl_final_prefix"
15720 acl_save_exec_prefix="$exec_prefix"
15721 exec_prefix="$acl_final_exec_prefix"
15722 eval x=\"$x\"
15723 exec_prefix="$acl_save_exec_prefix"
15724 prefix="$acl_save_prefix"
15725
15726 if test "X$x" = "X-L$additional_libdir"; then
15727 haveit=yes
15728 break
15729 fi
15730 done
15731 if test -z "$haveit"; then
15732 if test -d "$additional_libdir"; then
15733 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15734 fi
15735 fi
15736 fi
15737 fi
15738 ;;
15739 -R*)
15740 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15741 if test "$enable_rpath" != no; then
15742 haveit=
15743 for x in $rpathdirs; do
15744 if test "X$x" = "X$dir"; then
15745 haveit=yes
15746 break
15747 fi
15748 done
15749 if test -z "$haveit"; then
15750 rpathdirs="$rpathdirs $dir"
15751 fi
15752 haveit=
15753 for x in $ltrpathdirs; do
15754 if test "X$x" = "X$dir"; then
15755 haveit=yes
15756 break
15757 fi
15758 done
15759 if test -z "$haveit"; then
15760 ltrpathdirs="$ltrpathdirs $dir"
15761 fi
15762 fi
15763 ;;
15764 -l*)
15765 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15766 ;;
15767 *.la)
15768 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15769 ;;
15770 *)
15771 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15772 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15773 ;;
15774 esac
15775 done
15776 fi
15777 else
15778 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15779 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15780 fi
15781 fi
15782 fi
15783 done
15784 done
15785 if test "X$rpathdirs" != "X"; then
15786 if test -n "$hardcode_libdir_separator"; then
15787 alldirs=
15788 for found_dir in $rpathdirs; do
15789 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15790 done
15791 acl_save_libdir="$libdir"
15792 libdir="$alldirs"
15793 eval flag=\"$hardcode_libdir_flag_spec\"
15794 libdir="$acl_save_libdir"
15795 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15796 else
15797 for found_dir in $rpathdirs; do
15798 acl_save_libdir="$libdir"
15799 libdir="$found_dir"
15800 eval flag=\"$hardcode_libdir_flag_spec\"
15801 libdir="$acl_save_libdir"
15802 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15803 done
15804 fi
15805 fi
15806 if test "X$ltrpathdirs" != "X"; then
15807 for found_dir in $ltrpathdirs; do
15808 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15809 done
15810 fi
15811
15812
15813
15814
15815
15816
15817
15818 am_save_CPPFLAGS="$CPPFLAGS"
15819
15820 for element in $INCICONV; do
15821 haveit=
15822 for x in $CPPFLAGS; do
15823
15824 acl_save_prefix="$prefix"
15825 prefix="$acl_final_prefix"
15826 acl_save_exec_prefix="$exec_prefix"
15827 exec_prefix="$acl_final_exec_prefix"
15828 eval x=\"$x\"
15829 exec_prefix="$acl_save_exec_prefix"
15830 prefix="$acl_save_prefix"
15831
15832 if test "X$x" = "X$element"; then
15833 haveit=yes
15834 break
15835 fi
15836 done
15837 if test -z "$haveit"; then
15838 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15839 fi
15840 done
15841
15842
15843 echo "$as_me:$LINENO: checking for iconv" >&5
15844echo $ECHO_N "checking for iconv... $ECHO_C" >&6
15845if test "${am_cv_func_iconv+set}" = set; then
15846 echo $ECHO_N "(cached) $ECHO_C" >&6
15847else
15848
15849 am_cv_func_iconv="no, consider installing GNU libiconv"
15850 am_cv_lib_iconv=no
15851 cat >conftest.$ac_ext <<_ACEOF
15852/* confdefs.h. */
15853_ACEOF
15854cat confdefs.h >>conftest.$ac_ext
15855cat >>conftest.$ac_ext <<_ACEOF
15856/* end confdefs.h. */
15857#include <stdlib.h>
15858#include <iconv.h>
15859int
15860main ()
15861{
15862iconv_t cd = iconv_open("","");
15863 iconv(cd,NULL,NULL,NULL,NULL);
15864 iconv_close(cd);
15865 ;
15866 return 0;
15867}
15868_ACEOF
15869rm -f conftest.$ac_objext conftest$ac_exeext
15870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15871 (eval $ac_link) 2>conftest.er1
15872 ac_status=$?
15873 grep -v '^ *+' conftest.er1 >conftest.err
15874 rm -f conftest.er1
15875 cat conftest.err >&5
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); } &&
7357c5b6
AM
15878 { ac_try='test -z "$ac_c_werror_flag"
15879 || test ! -s conftest.err'
5ba684e2
NC
15880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15881 (eval $ac_try) 2>&5
15882 ac_status=$?
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); }; } &&
15885 { ac_try='test -s conftest$ac_exeext'
15886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15887 (eval $ac_try) 2>&5
15888 ac_status=$?
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); }; }; then
15891 am_cv_func_iconv=yes
15892else
15893 echo "$as_me: failed program was:" >&5
15894sed 's/^/| /' conftest.$ac_ext >&5
15895
15896fi
15897rm -f conftest.err conftest.$ac_objext \
15898 conftest$ac_exeext conftest.$ac_ext
15899 if test "$am_cv_func_iconv" != yes; then
15900 am_save_LIBS="$LIBS"
15901 LIBS="$LIBS $LIBICONV"
15902 cat >conftest.$ac_ext <<_ACEOF
15903/* confdefs.h. */
15904_ACEOF
15905cat confdefs.h >>conftest.$ac_ext
15906cat >>conftest.$ac_ext <<_ACEOF
15907/* end confdefs.h. */
15908#include <stdlib.h>
15909#include <iconv.h>
15910int
15911main ()
15912{
15913iconv_t cd = iconv_open("","");
15914 iconv(cd,NULL,NULL,NULL,NULL);
15915 iconv_close(cd);
15916 ;
15917 return 0;
15918}
15919_ACEOF
15920rm -f conftest.$ac_objext conftest$ac_exeext
15921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15922 (eval $ac_link) 2>conftest.er1
15923 ac_status=$?
15924 grep -v '^ *+' conftest.er1 >conftest.err
15925 rm -f conftest.er1
15926 cat conftest.err >&5
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); } &&
7357c5b6
AM
15929 { ac_try='test -z "$ac_c_werror_flag"
15930 || test ! -s conftest.err'
5ba684e2
NC
15931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15932 (eval $ac_try) 2>&5
15933 ac_status=$?
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); }; } &&
15936 { ac_try='test -s conftest$ac_exeext'
15937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15938 (eval $ac_try) 2>&5
15939 ac_status=$?
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); }; }; then
15942 am_cv_lib_iconv=yes
15943 am_cv_func_iconv=yes
15944else
15945 echo "$as_me: failed program was:" >&5
15946sed 's/^/| /' conftest.$ac_ext >&5
15947
15948fi
15949rm -f conftest.err conftest.$ac_objext \
15950 conftest$ac_exeext conftest.$ac_ext
15951 LIBS="$am_save_LIBS"
15952 fi
15953
15954fi
15955echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
15956echo "${ECHO_T}$am_cv_func_iconv" >&6
15957 if test "$am_cv_func_iconv" = yes; then
15958
15959cat >>confdefs.h <<\_ACEOF
15960#define HAVE_ICONV 1
15961_ACEOF
15962
15963 fi
15964 if test "$am_cv_lib_iconv" = yes; then
15965 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
15966echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
15967 echo "$as_me:$LINENO: result: $LIBICONV" >&5
15968echo "${ECHO_T}$LIBICONV" >&6
15969 else
15970 CPPFLAGS="$am_save_CPPFLAGS"
15971 LIBICONV=
15972 LTLIBICONV=
15973 fi
15974
15975
15976
15977 if test "$am_cv_func_iconv" = yes; then
15978 echo "$as_me:$LINENO: checking for iconv declaration" >&5
15979echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
15980 if test "${am_cv_proto_iconv+set}" = set; then
15981 echo $ECHO_N "(cached) $ECHO_C" >&6
15982else
15983
15984 cat >conftest.$ac_ext <<_ACEOF
15985/* confdefs.h. */
15986_ACEOF
15987cat confdefs.h >>conftest.$ac_ext
15988cat >>conftest.$ac_ext <<_ACEOF
15989/* end confdefs.h. */
15990
15991#include <stdlib.h>
15992#include <iconv.h>
15993extern
15994#ifdef __cplusplus
15995"C"
15996#endif
15997#if defined(__STDC__) || defined(__cplusplus)
15998size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15999#else
16000size_t iconv();
16001#endif
16002
16003int
16004main ()
16005{
16006
16007 ;
16008 return 0;
16009}
16010_ACEOF
16011rm -f conftest.$ac_objext
16012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16013 (eval $ac_compile) 2>conftest.er1
16014 ac_status=$?
16015 grep -v '^ *+' conftest.er1 >conftest.err
16016 rm -f conftest.er1
16017 cat conftest.err >&5
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); } &&
7357c5b6
AM
16020 { ac_try='test -z "$ac_c_werror_flag"
16021 || test ! -s conftest.err'
5ba684e2
NC
16022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16023 (eval $ac_try) 2>&5
16024 ac_status=$?
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); }; } &&
16027 { ac_try='test -s conftest.$ac_objext'
16028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16029 (eval $ac_try) 2>&5
16030 ac_status=$?
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); }; }; then
16033 am_cv_proto_iconv_arg1=""
16034else
16035 echo "$as_me: failed program was:" >&5
16036sed 's/^/| /' conftest.$ac_ext >&5
16037
16038am_cv_proto_iconv_arg1="const"
16039fi
16040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16041 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);"
16042fi
16043
16044 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
16045 echo "$as_me:$LINENO: result: ${ac_t:-
16046 }$am_cv_proto_iconv" >&5
16047echo "${ECHO_T}${ac_t:-
16048 }$am_cv_proto_iconv" >&6
16049
16050cat >>confdefs.h <<_ACEOF
16051#define ICONV_CONST $am_cv_proto_iconv_arg1
16052_ACEOF
16053
16054 fi
16055
16056
252b5132
RH
16057all_targets=false
16058BUILD_NLMCONV=
16059NLMCONV_DEFS=
16060BUILD_SRCONV=
16061BUILD_DLLTOOL=
16062DLLTOOL_DEFS=
7aad4c3d 16063DLLTOOL_DEFAULT=
252b5132 16064BUILD_WINDRES=
692ed3e7 16065BUILD_WINDMC=
252b5132
RH
16066BUILD_DLLWRAP=
16067BUILD_MISC=
1d97d67f 16068BUILD_INSTALL_MISC=
8b1e6df3 16069OBJDUMP_DEFS=
252b5132
RH
16070
16071for targ in $target $canon_targets
16072do
16073 if test "x$targ" = "xall"; then
16074 all_targets=true
16075 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
16076 BUILD_SRCONV='$(SRCONV_PROG)'
16077 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
1d97d67f 16078 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
003bc0ba
NC
16079 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16080 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16081 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
16082 if test -z "$DLLTOOL_DEFAULT"; then
16083 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
16084 fi
16085 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
16086 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
252b5132
RH
16087 else
16088 case $targ in
42ecbf5e 16089 i[3-7]86*-*-netware*)
252b5132
RH
16090 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
16091 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
16092 ;;
16093 alpha*-*-netware*)
16094 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
16095 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
16096 ;;
16097 powerpc*-*-netware*)
16098 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
16099 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
16100 ;;
16101 sparc*-*-netware*)
16102 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
16103 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
16104 ;;
16105 esac
16106 case $targ in
16107 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
16108 esac
16109 case $targ in
a8c548cb
NC
16110 arm-epoc-pe*)
16111 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
16112 if test -z "$DLLTOOL_DEFAULT"; then
16113 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
16114 fi
a8c548cb
NC
16115 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
16116 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 16117 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
a8c548cb 16118 ;;
7148cc28
NC
16119 arm-wince-pe* | arm-*-wince)
16120 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
16121 if test -z "$DLLTOOL_DEFAULT"; then
16122 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
16123 fi
7148cc28
NC
16124 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
16125 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 16126 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7148cc28
NC
16127 ;;
16128 arm-*-pe*)
252b5132 16129 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
16130 if test -z "$DLLTOOL_DEFAULT"; then
16131 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
16132 fi
252b5132
RH
16133 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
16134 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 16135 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 16136 ;;
27a710e5 16137 thumb-*-pe*)
252b5132 16138 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
16139 if test -z "$DLLTOOL_DEFAULT"; then
16140 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
16141 fi
252b5132
RH
16142 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
16143 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 16144 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 16145 ;;
42037fe5 16146 x86_64-*-mingw*)
99ad8390 16147 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
16148 if test -z "$DLLTOOL_DEFAULT"; then
16149 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
16150 fi
99ad8390
NC
16151 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
16152 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 16153 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
99ad8390
NC
16154 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
16155 ;;
80c7c40a 16156 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
252b5132 16157 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
16158 if test -z "$DLLTOOL_DEFAULT"; then
16159 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
16160 fi
252b5132
RH
16161 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
16162 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 16163 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
252b5132 16164 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
7a7b06ef 16165 ;;
80c7c40a 16166 i[3-7]86-*-interix)
7a7b06ef 16167 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
7aad4c3d
L
16168 if test -z "$DLLTOOL_DEFAULT"; then
16169 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
16170 fi
7a7b06ef
ILT
16171 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
16172 ;;
f0660b73
NC
16173 powerpc*-aix5.[01])
16174 ;;
e5231592 16175 powerpc*-aix[5-9].*)
f0660b73
NC
16176 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
16177 ;;
e1d5b1e7 16178 powerpc*-*-pe* | powerpc*-*-cygwin*)
252b5132 16179 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
16180 if test -z "$DLLTOOL_DEFAULT"; then
16181 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
16182 fi
252b5132
RH
16183 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
16184 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 16185 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
8a0e0f38 16186 ;;
59678365 16187 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
1d97d67f 16188 BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
669a9a2a 16189 ;;
e1d5b1e7 16190 sh*-*-pe)
8a0e0f38 16191 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
16192 if test -z "$DLLTOOL_DEFAULT"; then
16193 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
16194 fi
8a0e0f38
NC
16195 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
16196 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 16197 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
8a0e0f38 16198 ;;
cd14b966 16199 spu-*-*)
1d97d67f 16200 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
cd14b966 16201 ;;
e1d5b1e7 16202 mips*-*-pe)
8a0e0f38 16203 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
16204 if test -z "$DLLTOOL_DEFAULT"; then
16205 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
16206 fi
8a0e0f38
NC
16207 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
16208 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 16209 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 16210 ;;
27a710e5 16211 mcore-*-pe)
661016bb 16212 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
16213 if test -z "$DLLTOOL_DEFAULT"; then
16214 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
16215 fi
661016bb
NC
16216 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
16217 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 16218 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 16219 ;;
27a710e5 16220 mcore-*-elf)
661016bb 16221 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
16222 if test -z "$DLLTOOL_DEFAULT"; then
16223 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
16224 fi
661016bb 16225 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
7a7b06ef 16226 ;;
15ab5209
DB
16227 mep-*)
16228 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
16229 ;;
252b5132
RH
16230 esac
16231 fi
16232done
16233
7aad4c3d
L
16234DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
16235
42ecbf5e
DJ
16236if test "${with_windres+set}" = set; then
16237 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
16238fi
16239
692ed3e7
NC
16240if test "${with_windmc+set}" = set; then
16241 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
16242fi
16243
16244
42ecbf5e
DJ
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
1d97d67f 16256
42ecbf5e
DJ
16257cat >>confdefs.h <<_ACEOF
16258#define TARGET "${target}"
16259_ACEOF
16260
16261
16262targ=$target
16263. $srcdir/../bfd/config.bfd
16264if test "x$targ_underscore" = "xyes"; then
16265 UNDERSCORE=1
16266else
16267 UNDERSCORE=0
16268fi
16269
16270cat >>confdefs.h <<_ACEOF
16271#define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
16272_ACEOF
16273
16274
16275# Emulation
16276for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
16277do
16278 # Canonicalize the secondary target names.
16279 result=`$ac_config_sub $targ_alias 2>/dev/null`
16280 if test -n "$result"; then
16281 targ=$result
16282 else
16283 targ=$targ_alias
16284 fi
16285
16286 . ${srcdir}/configure.tgt
16287
16288 EMULATION=$targ_emul
16289 EMULATION_VECTOR=$targ_emul_vector
16290done
16291
16292
16293
16294
108a6f8e
CD
16295# Required for html and install-html
16296
16297
16298
16299
31dd3154 16300
42ecbf5e 16301 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
da594c4a 16302
42ecbf5e
DJ
16303cat >confcache <<\_ACEOF
16304# This file is a shell script that caches the results of configure
16305# tests run on this system so they can be shared between configure
16306# scripts and configure runs, see configure's option --config-cache.
16307# It is not useful on other systems. If it contains results you don't
16308# want to keep, you may remove or edit it.
16309#
16310# config.status only pays attention to the cache file if you give it
16311# the --recheck option to rerun configure.
16312#
16313# `ac_cv_env_foo' variables (set or unset) will be overridden when
16314# loading this file, other *unset* `ac_cv_foo' will be assigned the
16315# following values.
16316
16317_ACEOF
16318
16319# The following way of writing the cache mishandles newlines in values,
16320# but we know of no workaround that is simple, portable, and efficient.
16321# So, don't put newlines in cache variables' values.
16322# Ultrix sh set writes to stderr and can't be redirected directly,
16323# and sets the high bit in the cache file unless we assign to the vars.
16324{
16325 (set) 2>&1 |
16326 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16327 *ac_space=\ *)
16328 # `set' does not quote correctly, so add quotes (double-quote
16329 # substitution turns \\\\ into \\, and sed turns \\ into \).
16330 sed -n \
16331 "s/'/'\\\\''/g;
16332 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16333 ;;
16334 *)
16335 # `set' quotes correctly as required by POSIX, so do not add quotes.
16336 sed -n \
16337 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16338 ;;
16339 esac;
16340} |
16341 sed '
16342 t clear
16343 : clear
16344 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16345 t end
16346 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16347 : end' >>confcache
16348if diff $cache_file confcache >/dev/null 2>&1; then :; else
16349 if test -w $cache_file; then
16350 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16351 cat confcache >$cache_file
16352 else
16353 echo "not updating unwritable cache $cache_file"
16354 fi
16355fi
16356rm -f confcache
16357
16358test "x$prefix" = xNONE && prefix=$ac_default_prefix
16359# Let make expand exec_prefix.
16360test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16361
16362# VPATH may cause trouble with some makes, so we remove $(srcdir),
16363# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16364# trailing colons and then remove the whole line if VPATH becomes empty
16365# (actually we leave an empty line to preserve line numbers).
16366if test "x$srcdir" = x.; then
16367 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16368s/:*\$(srcdir):*/:/;
16369s/:*\${srcdir}:*/:/;
16370s/:*@srcdir@:*/:/;
16371s/^\([^=]*=[ ]*\):*/\1/;
16372s/:*$//;
16373s/^[^=]*=[ ]*$//;
16374}'
16375fi
16376
16377DEFS=-DHAVE_CONFIG_H
16378
16379ac_libobjs=
16380ac_ltlibobjs=
16381for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16382 # 1. Remove the extension, and $U if already installed.
16383 ac_i=`echo "$ac_i" |
16384 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16385 # 2. Add them.
16386 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16387 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16388done
16389LIBOBJS=$ac_libobjs
16390
16391LTLIBOBJS=$ac_ltlibobjs
16392
16393
16394if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16395 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16396Usually this means the macro was only invoked conditionally." >&5
16397echo "$as_me: error: conditional \"AMDEP\" was never defined.
16398Usually this means the macro was only invoked conditionally." >&2;}
16399 { (exit 1); exit 1; }; }
16400fi
16401if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16402 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16403Usually this means the macro was only invoked conditionally." >&5
16404echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16405Usually this means the macro was only invoked conditionally." >&2;}
16406 { (exit 1); exit 1; }; }
16407fi
16408if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16409 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16410Usually this means the macro was only invoked conditionally." >&5
16411echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16412Usually this means the macro was only invoked conditionally." >&2;}
16413 { (exit 1); exit 1; }; }
16414fi
d5fbea21
DJ
16415if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
16416 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
16417Usually this means the macro was only invoked conditionally." >&5
16418echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
16419Usually this means the macro was only invoked conditionally." >&2;}
16420 { (exit 1); exit 1; }; }
16421fi
42ecbf5e
DJ
16422
16423: ${CONFIG_STATUS=./config.status}
16424ac_clean_files_save=$ac_clean_files
16425ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16426{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16427echo "$as_me: creating $CONFIG_STATUS" >&6;}
16428cat >$CONFIG_STATUS <<_ACEOF
16429#! $SHELL
16430# Generated by $as_me.
16431# Run this file to recreate the current configuration.
16432# Compiler output produced by configure, useful for debugging
16433# configure, is in config.log if it exists.
16434
16435debug=false
16436ac_cs_recheck=false
16437ac_cs_silent=false
16438SHELL=\${CONFIG_SHELL-$SHELL}
16439_ACEOF
252b5132 16440
42ecbf5e
DJ
16441cat >>$CONFIG_STATUS <<\_ACEOF
16442## --------------------- ##
16443## M4sh Initialization. ##
16444## --------------------- ##
252b5132 16445
42ecbf5e
DJ
16446# Be Bourne compatible
16447if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16448 emulate sh
16449 NULLCMD=:
16450 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16451 # is contrary to our usage. Disable this feature.
16452 alias -g '${1+"$@"}'='"$@"'
16453elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16454 set -o posix
16455fi
16456DUALCASE=1; export DUALCASE # for MKS sh
252b5132 16457
42ecbf5e
DJ
16458# Support unset when possible.
16459if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16460 as_unset=unset
16461else
16462 as_unset=false
16463fi
252b5132
RH
16464
16465
42ecbf5e
DJ
16466# Work around bugs in pre-3.0 UWIN ksh.
16467$as_unset ENV MAIL MAILPATH
16468PS1='$ '
16469PS2='> '
16470PS4='+ '
252b5132 16471
42ecbf5e
DJ
16472# NLS nuisances.
16473for as_var in \
16474 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16475 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16476 LC_TELEPHONE LC_TIME
16477do
16478 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16479 eval $as_var=C; export $as_var
16480 else
16481 $as_unset $as_var
16482 fi
16483done
252b5132 16484
42ecbf5e
DJ
16485# Required to use basename.
16486if expr a : '\(a\)' >/dev/null 2>&1; then
16487 as_expr=expr
16488else
16489 as_expr=false
16490fi
252b5132 16491
42ecbf5e
DJ
16492if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16493 as_basename=basename
16494else
16495 as_basename=false
16496fi
252b5132 16497
8b1e6df3 16498
42ecbf5e
DJ
16499# Name of the executable.
16500as_me=`$as_basename "$0" ||
16501$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16502 X"$0" : 'X\(//\)$' \| \
16503 X"$0" : 'X\(/\)$' \| \
16504 . : '\(.\)' 2>/dev/null ||
16505echo X/"$0" |
16506 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16507 /^X\/\(\/\/\)$/{ s//\1/; q; }
16508 /^X\/\(\/\).*/{ s//\1/; q; }
16509 s/.*/./; q'`
0218d1e4 16510
252b5132 16511
42ecbf5e
DJ
16512# PATH needs CR, and LINENO needs CR and PATH.
16513# Avoid depending upon Character Ranges.
16514as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16515as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16516as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16517as_cr_digits='0123456789'
16518as_cr_alnum=$as_cr_Letters$as_cr_digits
252b5132 16519
42ecbf5e
DJ
16520# The user is always right.
16521if test "${PATH_SEPARATOR+set}" != set; then
16522 echo "#! /bin/sh" >conf$$.sh
16523 echo "exit 0" >>conf$$.sh
16524 chmod +x conf$$.sh
16525 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16526 PATH_SEPARATOR=';'
16527 else
16528 PATH_SEPARATOR=:
16529 fi
16530 rm -f conf$$.sh
252b5132
RH
16531fi
16532
16533
42ecbf5e
DJ
16534 as_lineno_1=$LINENO
16535 as_lineno_2=$LINENO
16536 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16537 test "x$as_lineno_1" != "x$as_lineno_2" &&
16538 test "x$as_lineno_3" = "x$as_lineno_2" || {
16539 # Find who we are. Look in the path if we contain no path at all
16540 # relative or not.
16541 case $0 in
16542 *[\\/]* ) as_myself=$0 ;;
16543 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16544for as_dir in $PATH
eb1e0e80 16545do
42ecbf5e
DJ
16546 IFS=$as_save_IFS
16547 test -z "$as_dir" && as_dir=.
16548 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16549done
eb1e0e80 16550
42ecbf5e
DJ
16551 ;;
16552 esac
16553 # We did not find ourselves, most probably we were run as `sh COMMAND'
16554 # in which case we are not to be found in the path.
16555 if test "x$as_myself" = x; then
16556 as_myself=$0
16557 fi
16558 if test ! -f "$as_myself"; then
16559 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16560echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16561 { (exit 1); exit 1; }; }
16562 fi
16563 case $CONFIG_SHELL in
16564 '')
16565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16566for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16567do
16568 IFS=$as_save_IFS
16569 test -z "$as_dir" && as_dir=.
16570 for as_base in sh bash ksh sh5; do
16571 case $as_dir in
16572 /*)
16573 if ("$as_dir/$as_base" -c '
16574 as_lineno_1=$LINENO
16575 as_lineno_2=$LINENO
16576 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16577 test "x$as_lineno_1" != "x$as_lineno_2" &&
16578 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16579 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16580 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16581 CONFIG_SHELL=$as_dir/$as_base
16582 export CONFIG_SHELL
16583 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16584 fi;;
16585 esac
16586 done
eb1e0e80 16587done
42ecbf5e
DJ
16588;;
16589 esac
eb1e0e80 16590
42ecbf5e
DJ
16591 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16592 # uniformly replaced by the line number. The first 'sed' inserts a
16593 # line-number line before each line; the second 'sed' does the real
16594 # work. The second script uses 'N' to pair each line-number line
16595 # with the numbered line, and appends trailing '-' during
16596 # substitution so that $LINENO is not a special case at line end.
16597 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16598 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16599 sed '=' <$as_myself |
16600 sed '
16601 N
16602 s,$,-,
16603 : loop
16604 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16605 t loop
16606 s,-$,,
16607 s,^['$as_cr_digits']*\n,,
16608 ' >$as_me.lineno &&
16609 chmod +x $as_me.lineno ||
16610 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16611echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16612 { (exit 1); exit 1; }; }
16613
16614 # Don't try to exec as it changes $[0], causing all sort of problems
16615 # (the dirname of $[0] is not the place where we might find the
16616 # original and so on. Autoconf is especially sensible to this).
16617 . ./$as_me.lineno
16618 # Exit status is that of the last command.
16619 exit
16620}
eb1e0e80
NC
16621
16622
42ecbf5e
DJ
16623case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16624 *c*,-n*) ECHO_N= ECHO_C='
16625' ECHO_T=' ' ;;
16626 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16627 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16628esac
eb1e0e80 16629
42ecbf5e
DJ
16630if expr a : '\(a\)' >/dev/null 2>&1; then
16631 as_expr=expr
d15b04bd 16632else
42ecbf5e
DJ
16633 as_expr=false
16634fi
16635
16636rm -f conf$$ conf$$.exe conf$$.file
16637echo >conf$$.file
16638if ln -s conf$$.file conf$$ 2>/dev/null; then
16639 # We could just check for DJGPP; but this test a) works b) is more generic
16640 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16641 if test -f conf$$.exe; then
16642 # Don't use ln at all; we don't have any links
16643 as_ln_s='cp -p'
252b5132 16644 else
42ecbf5e 16645 as_ln_s='ln -s'
252b5132 16646 fi
42ecbf5e
DJ
16647elif ln conf$$.file conf$$ 2>/dev/null; then
16648 as_ln_s=ln
16649else
16650 as_ln_s='cp -p'
252b5132 16651fi
42ecbf5e 16652rm -f conf$$ conf$$.exe conf$$.file
252b5132 16653
42ecbf5e
DJ
16654if mkdir -p . 2>/dev/null; then
16655 as_mkdir_p=:
16656else
16657 test -d ./-p && rmdir ./-p
16658 as_mkdir_p=false
16659fi
d15b04bd 16660
42ecbf5e 16661as_executable_p="test -f"
252b5132 16662
42ecbf5e
DJ
16663# Sed expression to map a string onto a valid CPP name.
16664as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16665
16666# Sed expression to map a string onto a valid variable name.
16667as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16668
16669
16670# IFS
16671# We need space, tab and new line, in precisely that order.
16672as_nl='
16673'
16674IFS=" $as_nl"
16675
16676# CDPATH.
16677$as_unset CDPATH
16678
16679exec 6>&1
16680
16681# Open the log real soon, to keep \$[0] and so on meaningful, and to
16682# report actual input values of CONFIG_FILES etc. instead of their
16683# values after options handling. Logging --version etc. is OK.
16684exec 5>>config.log
16685{
16686 echo
16687 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16688## Running $as_me. ##
16689_ASBOX
16690} >&5
16691cat >&5 <<_CSEOF
16692
16693This file was extended by $as_me, which was
16694generated by GNU Autoconf 2.59. Invocation command line was
16695
16696 CONFIG_FILES = $CONFIG_FILES
16697 CONFIG_HEADERS = $CONFIG_HEADERS
16698 CONFIG_LINKS = $CONFIG_LINKS
16699 CONFIG_COMMANDS = $CONFIG_COMMANDS
16700 $ $0 $@
16701
16702_CSEOF
16703echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16704echo >&5
16705_ACEOF
16706
16707# Files that config.status was made for.
16708if test -n "$ac_config_files"; then
16709 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
252b5132
RH
16710fi
16711
42ecbf5e
DJ
16712if test -n "$ac_config_headers"; then
16713 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16714fi
e5a52504 16715
42ecbf5e
DJ
16716if test -n "$ac_config_links"; then
16717 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16718fi
e5a52504 16719
42ecbf5e
DJ
16720if test -n "$ac_config_commands"; then
16721 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16722fi
d15b04bd 16723
42ecbf5e
DJ
16724cat >>$CONFIG_STATUS <<\_ACEOF
16725
16726ac_cs_usage="\
16727\`$as_me' instantiates files from templates according to the
16728current configuration.
16729
16730Usage: $0 [OPTIONS] [FILE]...
16731
16732 -h, --help print this help, then exit
16733 -V, --version print version number, then exit
16734 -q, --quiet do not print progress messages
16735 -d, --debug don't remove temporary files
16736 --recheck update $as_me by reconfiguring in the same conditions
16737 --file=FILE[:TEMPLATE]
16738 instantiate the configuration file FILE
16739 --header=FILE[:TEMPLATE]
16740 instantiate the configuration header FILE
16741
16742Configuration files:
16743$config_files
16744
16745Configuration headers:
16746$config_headers
16747
16748Configuration commands:
16749$config_commands
16750
16751Report bugs to <bug-autoconf@gnu.org>."
16752_ACEOF
16753
16754cat >>$CONFIG_STATUS <<_ACEOF
16755ac_cs_version="\\
16756config.status
16757configured by $0, generated by GNU Autoconf 2.59,
16758 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16759
16760Copyright (C) 2003 Free Software Foundation, Inc.
16761This config.status script is free software; the Free Software Foundation
16762gives unlimited permission to copy, distribute and modify it."
16763srcdir=$srcdir
16764INSTALL="$INSTALL"
16765_ACEOF
16766
16767cat >>$CONFIG_STATUS <<\_ACEOF
16768# If no file are specified by the user, then we need to provide default
16769# value. By we need to know if files were specified by the user.
16770ac_need_defaults=:
16771while test $# != 0
16772do
16773 case $1 in
16774 --*=*)
16775 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16776 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16777 ac_shift=:
16778 ;;
16779 -*)
16780 ac_option=$1
16781 ac_optarg=$2
16782 ac_shift=shift
16783 ;;
16784 *) # This is not an option, so the user has probably given explicit
16785 # arguments.
16786 ac_option=$1
16787 ac_need_defaults=false;;
16788 esac
16789
16790 case $ac_option in
16791 # Handling of the options.
16792_ACEOF
16793cat >>$CONFIG_STATUS <<\_ACEOF
16794 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16795 ac_cs_recheck=: ;;
16796 --version | --vers* | -V )
16797 echo "$ac_cs_version"; exit 0 ;;
16798 --he | --h)
16799 # Conflict between --help and --header
16800 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16801Try \`$0 --help' for more information." >&5
16802echo "$as_me: error: ambiguous option: $1
16803Try \`$0 --help' for more information." >&2;}
16804 { (exit 1); exit 1; }; };;
16805 --help | --hel | -h )
16806 echo "$ac_cs_usage"; exit 0 ;;
16807 --debug | --d* | -d )
16808 debug=: ;;
16809 --file | --fil | --fi | --f )
16810 $ac_shift
16811 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16812 ac_need_defaults=false;;
16813 --header | --heade | --head | --hea )
16814 $ac_shift
16815 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16816 ac_need_defaults=false;;
16817 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16818 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16819 ac_cs_silent=: ;;
16820
16821 # This is an error.
16822 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16823Try \`$0 --help' for more information." >&5
16824echo "$as_me: error: unrecognized option: $1
16825Try \`$0 --help' for more information." >&2;}
16826 { (exit 1); exit 1; }; } ;;
16827
16828 *) ac_config_targets="$ac_config_targets $1" ;;
16829
16830 esac
16831 shift
16832done
16833
16834ac_configure_extra_args=
16835
16836if $ac_cs_silent; then
16837 exec 6>/dev/null
16838 ac_configure_extra_args="$ac_configure_extra_args --silent"
16839fi
16840
16841_ACEOF
16842cat >>$CONFIG_STATUS <<_ACEOF
16843if \$ac_cs_recheck; then
16844 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16845 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16846fi
16847
16848_ACEOF
16849
16850cat >>$CONFIG_STATUS <<_ACEOF
d15b04bd 16851#
42ecbf5e 16852# INIT-COMMANDS section.
d15b04bd 16853#
e5a52504 16854
42ecbf5e 16855AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
16856
16857
16858# The HP-UX ksh and POSIX shell print the target directory to stdout
16859# if CDPATH is set.
16860(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16861
16862sed_quote_subst='$sed_quote_subst'
16863double_quote_subst='$double_quote_subst'
16864delay_variable_subst='$delay_variable_subst'
16865macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16866macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16867enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16868enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16869pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16870enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16871host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16872host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16873host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16874build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16875build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16876build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16877SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16878Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16879GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16880EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16881FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16882LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16883NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16884LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16885max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16886ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16887exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16888lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16889lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16890lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16891reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16892reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
718a6fd8 16893OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
16894deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16895file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16896AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16897AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16898STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16899RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16900old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16901old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16902old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16903CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16904CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16905compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16906GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16907lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16908lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16909lt_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"`'
718a6fd8 16910lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
16911objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16912SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16913ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16914MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16915lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16916lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16917lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16918lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16919lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16920need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
718a6fd8
SE
16921DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16922NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16923LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16924OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16925OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
16926libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16927shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16928extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16929archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16930enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16931export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16932whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16933compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16934old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16935old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16936archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16937archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16938module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16939module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16940with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16941allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16942no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16943hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16944hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16945hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16946hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16947hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16948hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16949hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16950hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16951inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16952link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16953fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16954always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16955export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16956exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16957include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16958prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16959file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16960variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16961need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16962need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16963version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16964runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16965shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16966shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16967libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16968library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16969soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16970postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16971postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16972finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16973finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16974hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16975sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16976sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16977hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16978enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16979enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16980enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16981old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16982striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16983
16984LTCC='$LTCC'
16985LTCFLAGS='$LTCFLAGS'
16986compiler='$compiler_DEFAULT'
16987
16988# Quote evaled strings.
16989for var in SED \
16990GREP \
16991EGREP \
16992FGREP \
16993LD \
16994NM \
16995LN_S \
16996lt_SP2NL \
16997lt_NL2SP \
16998reload_flag \
718a6fd8 16999OBJDUMP \
d7040cdb
SE
17000deplibs_check_method \
17001file_magic_cmd \
17002AR \
17003AR_FLAGS \
17004STRIP \
17005RANLIB \
17006CC \
17007CFLAGS \
17008compiler \
17009lt_cv_sys_global_symbol_pipe \
17010lt_cv_sys_global_symbol_to_cdecl \
17011lt_cv_sys_global_symbol_to_c_name_address \
718a6fd8 17012lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
17013SHELL \
17014ECHO \
17015lt_prog_compiler_no_builtin_flag \
17016lt_prog_compiler_wl \
17017lt_prog_compiler_pic \
17018lt_prog_compiler_static \
17019lt_cv_prog_compiler_c_o \
17020need_locks \
718a6fd8
SE
17021DSYMUTIL \
17022NMEDIT \
17023LIPO \
17024OTOOL \
17025OTOOL64 \
d7040cdb
SE
17026shrext_cmds \
17027export_dynamic_flag_spec \
17028whole_archive_flag_spec \
17029compiler_needs_object \
17030with_gnu_ld \
17031allow_undefined_flag \
17032no_undefined_flag \
17033hardcode_libdir_flag_spec \
17034hardcode_libdir_flag_spec_ld \
17035hardcode_libdir_separator \
17036fix_srcfile_path \
17037exclude_expsyms \
17038include_expsyms \
17039file_list_spec \
17040variables_saved_for_relink \
17041libname_spec \
17042library_names_spec \
17043soname_spec \
17044finish_eval \
17045old_striplib \
17046striplib; do
17047 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17048 *[\\\\\\\`\\"\\\$]*)
17049 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17050 ;;
17051 *)
17052 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17053 ;;
17054 esac
17055done
17056
17057# Double-quote double-evaled strings.
17058for var in reload_cmds \
17059old_postinstall_cmds \
17060old_postuninstall_cmds \
17061old_archive_cmds \
17062extract_expsyms_cmds \
17063old_archive_from_new_cmds \
17064old_archive_from_expsyms_cmds \
17065archive_cmds \
17066archive_expsym_cmds \
17067module_cmds \
17068module_expsym_cmds \
17069export_symbols_cmds \
17070prelink_cmds \
17071postinstall_cmds \
17072postuninstall_cmds \
17073finish_cmds \
17074sys_lib_search_path_spec \
17075sys_lib_dlsearch_path_spec; do
17076 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17077 *[\\\\\\\`\\"\\\$]*)
17078 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17079 ;;
17080 *)
17081 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17082 ;;
17083 esac
17084done
17085
17086# Fix-up fallback echo if it was mangled by the above quoting rules.
17087case \$lt_ECHO in
17088*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17089 ;;
17090esac
17091
17092ac_aux_dir='$ac_aux_dir'
17093xsi_shell='$xsi_shell'
17094lt_shell_append='$lt_shell_append'
17095
17096# See if we are running on zsh, and set the options which allow our
17097# commands through without removal of \ escapes INIT.
17098if test -n "\${ZSH_VERSION+set}" ; then
17099 setopt NO_GLOB_SUBST
17100fi
17101
17102
17103 PACKAGE='$PACKAGE'
17104 VERSION='$VERSION'
17105 TIMESTAMP='$TIMESTAMP'
17106 RM='$RM'
17107 ofile='$ofile'
17108
17109
17110
20e95c23
DJ
17111# Capture the value of obsolete ALL_LINGUAS because we need it to compute
17112 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17113 # from automake.
17114 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17115 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17116 LINGUAS="${LINGUAS-%UNSET%}"
17117
42ecbf5e
DJ
17118
17119_ACEOF
17120
17121
17122
17123cat >>$CONFIG_STATUS <<\_ACEOF
17124for ac_config_target in $ac_config_targets
252b5132 17125do
42ecbf5e
DJ
17126 case "$ac_config_target" in
17127 # Handling of arguments.
17128 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17129 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17130 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
17131 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 17132 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 17133 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42ecbf5e
DJ
17134 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
17135 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17136echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17137 { (exit 1); exit 1; }; };;
d15b04bd 17138 esac
252b5132
RH
17139done
17140
42ecbf5e
DJ
17141# If the user did not use the arguments to specify the items to instantiate,
17142# then the envvar interface is used. Set only those that are not.
17143# We use the long form for the default assignment because of an extremely
17144# bizarre bug on SunOS 4.1.3.
17145if $ac_need_defaults; then
17146 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17147 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17148 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17149fi
17150
17151# Have a temporary directory for convenience. Make it in the build tree
17152# simply because there is no reason to put it here, and in addition,
17153# creating and moving files from /tmp can sometimes cause problems.
17154# Create a temporary directory, and hook for its removal unless debugging.
17155$debug ||
17156{
17157 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17158 trap '{ (exit 1); exit 1; }' 1 2 13 15
17159}
252b5132 17160
42ecbf5e 17161# Create a (secure) tmp directory for tmp files.
e5a52504 17162
42ecbf5e
DJ
17163{
17164 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17165 test -n "$tmp" && test -d "$tmp"
17166} ||
17167{
17168 tmp=./confstat$$-$RANDOM
17169 (umask 077 && mkdir $tmp)
17170} ||
17171{
17172 echo "$me: cannot create a temporary directory in ." >&2
17173 { (exit 1); exit 1; }
17174}
17175
17176_ACEOF
17177
17178cat >>$CONFIG_STATUS <<_ACEOF
17179
17180#
17181# CONFIG_FILES section.
17182#
e5a52504 17183
42ecbf5e
DJ
17184# No need to generate the scripts if there are no CONFIG_FILES.
17185# This happens for instance when ./config.status config.h
17186if test -n "\$CONFIG_FILES"; then
17187 # Protect against being on the right side of a sed subst in config.status.
17188 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17189 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17190s,@SHELL@,$SHELL,;t t
17191s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17192s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17193s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17194s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17195s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17196s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17197s,@exec_prefix@,$exec_prefix,;t t
17198s,@prefix@,$prefix,;t t
17199s,@program_transform_name@,$program_transform_name,;t t
17200s,@bindir@,$bindir,;t t
17201s,@sbindir@,$sbindir,;t t
17202s,@libexecdir@,$libexecdir,;t t
17203s,@datadir@,$datadir,;t t
17204s,@sysconfdir@,$sysconfdir,;t t
17205s,@sharedstatedir@,$sharedstatedir,;t t
17206s,@localstatedir@,$localstatedir,;t t
17207s,@libdir@,$libdir,;t t
17208s,@includedir@,$includedir,;t t
17209s,@oldincludedir@,$oldincludedir,;t t
17210s,@infodir@,$infodir,;t t
17211s,@mandir@,$mandir,;t t
17212s,@build_alias@,$build_alias,;t t
17213s,@host_alias@,$host_alias,;t t
17214s,@target_alias@,$target_alias,;t t
17215s,@DEFS@,$DEFS,;t t
17216s,@ECHO_C@,$ECHO_C,;t t
17217s,@ECHO_N@,$ECHO_N,;t t
17218s,@ECHO_T@,$ECHO_T,;t t
17219s,@LIBS@,$LIBS,;t t
17220s,@build@,$build,;t t
17221s,@build_cpu@,$build_cpu,;t t
17222s,@build_vendor@,$build_vendor,;t t
17223s,@build_os@,$build_os,;t t
17224s,@host@,$host,;t t
17225s,@host_cpu@,$host_cpu,;t t
17226s,@host_vendor@,$host_vendor,;t t
17227s,@host_os@,$host_os,;t t
17228s,@target@,$target,;t t
17229s,@target_cpu@,$target_cpu,;t t
17230s,@target_vendor@,$target_vendor,;t t
17231s,@target_os@,$target_os,;t t
17232s,@CC@,$CC,;t t
17233s,@CFLAGS@,$CFLAGS,;t t
17234s,@LDFLAGS@,$LDFLAGS,;t t
17235s,@CPPFLAGS@,$CPPFLAGS,;t t
17236s,@ac_ct_CC@,$ac_ct_CC,;t t
17237s,@EXEEXT@,$EXEEXT,;t t
17238s,@OBJEXT@,$OBJEXT,;t t
17239s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17240s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17241s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17242s,@CYGPATH_W@,$CYGPATH_W,;t t
17243s,@PACKAGE@,$PACKAGE,;t t
17244s,@VERSION@,$VERSION,;t t
17245s,@ACLOCAL@,$ACLOCAL,;t t
17246s,@AUTOCONF@,$AUTOCONF,;t t
17247s,@AUTOMAKE@,$AUTOMAKE,;t t
17248s,@AUTOHEADER@,$AUTOHEADER,;t t
17249s,@MAKEINFO@,$MAKEINFO,;t t
17250s,@install_sh@,$install_sh,;t t
17251s,@STRIP@,$STRIP,;t t
17252s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17253s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17254s,@mkdir_p@,$mkdir_p,;t t
17255s,@AWK@,$AWK,;t t
17256s,@SET_MAKE@,$SET_MAKE,;t t
17257s,@am__leading_dot@,$am__leading_dot,;t t
17258s,@AMTAR@,$AMTAR,;t t
17259s,@am__tar@,$am__tar,;t t
17260s,@am__untar@,$am__untar,;t t
17261s,@DEPDIR@,$DEPDIR,;t t
17262s,@am__include@,$am__include,;t t
17263s,@am__quote@,$am__quote,;t t
17264s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17265s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17266s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17267s,@CCDEPMODE@,$CCDEPMODE,;t t
17268s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17269s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7357c5b6
AM
17270s,@CPP@,$CPP,;t t
17271s,@EGREP@,$EGREP,;t t
d7040cdb
SE
17272s,@LIBTOOL@,$LIBTOOL,;t t
17273s,@SED@,$SED,;t t
d7040cdb
SE
17274s,@FGREP@,$FGREP,;t t
17275s,@GREP@,$GREP,;t t
17276s,@LD@,$LD,;t t
17277s,@DUMPBIN@,$DUMPBIN,;t t
17278s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
17279s,@NM@,$NM,;t t
42ecbf5e 17280s,@LN_S@,$LN_S,;t t
718a6fd8
SE
17281s,@OBJDUMP@,$OBJDUMP,;t t
17282s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
d7040cdb
SE
17283s,@AR@,$AR,;t t
17284s,@ac_ct_AR@,$ac_ct_AR,;t t
42ecbf5e
DJ
17285s,@RANLIB@,$RANLIB,;t t
17286s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
d7040cdb 17287s,@lt_ECHO@,$lt_ECHO,;t t
718a6fd8
SE
17288s,@DSYMUTIL@,$DSYMUTIL,;t t
17289s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
17290s,@NMEDIT@,$NMEDIT,;t t
17291s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
17292s,@LIPO@,$LIPO,;t t
17293s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
17294s,@OTOOL@,$OTOOL,;t t
17295s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
17296s,@OTOOL64@,$OTOOL64,;t t
17297s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
42ecbf5e
DJ
17298s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
17299s,@NO_WERROR@,$NO_WERROR,;t t
17300s,@YACC@,$YACC,;t t
17301s,@LEX@,$LEX,;t t
17302s,@LEXLIB@,$LEXLIB,;t t
17303s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
42ecbf5e 17304s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
17305s,@LIBINTL@,$LIBINTL,;t t
17306s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
17307s,@INCINTL@,$INCINTL,;t t
42ecbf5e 17308s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
17309s,@GMSGFMT@,$GMSGFMT,;t t
17310s,@POSUB@,$POSUB,;t t
42ecbf5e 17311s,@CATALOGS@,$CATALOGS,;t t
42ecbf5e 17312s,@DATADIRNAME@,$DATADIRNAME,;t t
42ecbf5e 17313s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
17314s,@GENCAT@,$GENCAT,;t t
17315s,@CATOBJEXT@,$CATOBJEXT,;t t
42ecbf5e 17316s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
17317s,@MSGFMT@,$MSGFMT,;t t
17318s,@MSGMERGE@,$MSGMERGE,;t t
42ecbf5e
DJ
17319s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17320s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17321s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
17322s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
17323s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
42ecbf5e 17324s,@HDEFINES@,$HDEFINES,;t t
42ecbf5e
DJ
17325s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17326s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
17327s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t
20e95c23 17328s,@ALLOCA@,$ALLOCA,;t t
5ba684e2
NC
17329s,@LIBICONV@,$LIBICONV,;t t
17330s,@LTLIBICONV@,$LTLIBICONV,;t t
42ecbf5e
DJ
17331s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t
17332s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t
17333s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t
17334s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t
17335s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t
17336s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t
692ed3e7 17337s,@BUILD_WINDMC@,$BUILD_WINDMC,;t t
42ecbf5e
DJ
17338s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t
17339s,@BUILD_MISC@,$BUILD_MISC,;t t
1d97d67f 17340s,@BUILD_INSTALL_MISC@,$BUILD_INSTALL_MISC,;t t
42ecbf5e
DJ
17341s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t
17342s,@EMULATION@,$EMULATION,;t t
17343s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t
108a6f8e
CD
17344s,@datarootdir@,$datarootdir,;t t
17345s,@docdir@,$docdir,;t t
17346s,@htmldir@,$htmldir,;t t
31dd3154 17347s,@pdfdir@,$pdfdir,;t t
42ecbf5e
DJ
17348s,@LIBOBJS@,$LIBOBJS,;t t
17349s,@LTLIBOBJS@,$LTLIBOBJS,;t t
d15b04bd 17350CEOF
252b5132 17351
42ecbf5e
DJ
17352_ACEOF
17353
17354 cat >>$CONFIG_STATUS <<\_ACEOF
17355 # Split the substitutions into bite-sized pieces for seds with
17356 # small command number limits, like on Digital OSF/1 and HP-UX.
17357 ac_max_sed_lines=48
17358 ac_sed_frag=1 # Number of current file.
17359 ac_beg=1 # First line for current file.
17360 ac_end=$ac_max_sed_lines # Line after last line for current file.
17361 ac_more_lines=:
17362 ac_sed_cmds=
17363 while $ac_more_lines; do
17364 if test $ac_beg -gt 1; then
17365 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17366 else
17367 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17368 fi
17369 if test ! -s $tmp/subs.frag; then
17370 ac_more_lines=false
d15b04bd 17371 else
42ecbf5e
DJ
17372 # The purpose of the label and of the branching condition is to
17373 # speed up the sed processing (if there are no `@' at all, there
17374 # is no need to browse any of the substitutions).
17375 # These are the two extra sed commands mentioned above.
17376 (echo ':t
17377 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17378 if test -z "$ac_sed_cmds"; then
17379 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17380 else
17381 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17382 fi
17383 ac_sed_frag=`expr $ac_sed_frag + 1`
17384 ac_beg=$ac_end
17385 ac_end=`expr $ac_end + $ac_max_sed_lines`
d15b04bd 17386 fi
42ecbf5e
DJ
17387 done
17388 if test -z "$ac_sed_cmds"; then
17389 ac_sed_cmds=cat
252b5132 17390 fi
42ecbf5e 17391fi # test -n "$CONFIG_FILES"
252b5132 17392
42ecbf5e
DJ
17393_ACEOF
17394cat >>$CONFIG_STATUS <<\_ACEOF
17395for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
e5a52504 17396 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
17397 case $ac_file in
17398 - | *:- | *:-:* ) # input from stdin
17399 cat >$tmp/stdin
17400 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17401 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17402 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17403 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17404 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
17405 esac
17406
42ecbf5e
DJ
17407 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17408 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17409$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17410 X"$ac_file" : 'X\(//\)[^/]' \| \
17411 X"$ac_file" : 'X\(//\)$' \| \
17412 X"$ac_file" : 'X\(/\)' \| \
17413 . : '\(.\)' 2>/dev/null ||
17414echo X"$ac_file" |
17415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17416 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17417 /^X\(\/\/\)$/{ s//\1/; q; }
17418 /^X\(\/\).*/{ s//\1/; q; }
17419 s/.*/./; q'`
17420 { if $as_mkdir_p; then
17421 mkdir -p "$ac_dir"
d15b04bd 17422 else
42ecbf5e
DJ
17423 as_dir="$ac_dir"
17424 as_dirs=
17425 while test ! -d "$as_dir"; do
17426 as_dirs="$as_dir $as_dirs"
17427 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17428$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17429 X"$as_dir" : 'X\(//\)[^/]' \| \
17430 X"$as_dir" : 'X\(//\)$' \| \
17431 X"$as_dir" : 'X\(/\)' \| \
17432 . : '\(.\)' 2>/dev/null ||
17433echo X"$as_dir" |
17434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17435 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17436 /^X\(\/\/\)$/{ s//\1/; q; }
17437 /^X\(\/\).*/{ s//\1/; q; }
17438 s/.*/./; q'`
17439 done
17440 test ! -n "$as_dirs" || mkdir $as_dirs
17441 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17442echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17443 { (exit 1); exit 1; }; }; }
17444
17445 ac_builddir=.
e5a52504 17446
42ecbf5e
DJ
17447if test "$ac_dir" != .; then
17448 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17449 # A "../" for each directory in $ac_dir_suffix.
17450 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17451else
17452 ac_dir_suffix= ac_top_builddir=
17453fi
17454
17455case $srcdir in
17456 .) # No --srcdir option. We are building in place.
17457 ac_srcdir=.
17458 if test -z "$ac_top_builddir"; then
17459 ac_top_srcdir=.
17460 else
17461 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17462 fi ;;
17463 [\\/]* | ?:[\\/]* ) # Absolute path.
17464 ac_srcdir=$srcdir$ac_dir_suffix;
17465 ac_top_srcdir=$srcdir ;;
e5a52504 17466 *) # Relative path.
42ecbf5e
DJ
17467 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17468 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17469esac
252b5132 17470
42ecbf5e
DJ
17471# Do not use `cd foo && pwd` to compute absolute paths, because
17472# the directories may not exist.
17473case `pwd` in
17474.) ac_abs_builddir="$ac_dir";;
17475*)
17476 case "$ac_dir" in
17477 .) ac_abs_builddir=`pwd`;;
17478 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17479 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17480 esac;;
17481esac
17482case $ac_abs_builddir in
17483.) ac_abs_top_builddir=${ac_top_builddir}.;;
17484*)
17485 case ${ac_top_builddir}. in
17486 .) ac_abs_top_builddir=$ac_abs_builddir;;
17487 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17488 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17489 esac;;
17490esac
17491case $ac_abs_builddir in
17492.) ac_abs_srcdir=$ac_srcdir;;
17493*)
17494 case $ac_srcdir in
17495 .) ac_abs_srcdir=$ac_abs_builddir;;
17496 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17497 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17498 esac;;
17499esac
17500case $ac_abs_builddir in
17501.) ac_abs_top_srcdir=$ac_top_srcdir;;
17502*)
17503 case $ac_top_srcdir in
17504 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17505 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17506 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17507 esac;;
17508esac
e5a52504 17509
42ecbf5e
DJ
17510
17511 case $INSTALL in
17512 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17513 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
d15b04bd 17514 esac
e5a52504 17515
7357c5b6
AM
17516 if test x"$ac_file" != x-; then
17517 { echo "$as_me:$LINENO: creating $ac_file" >&5
17518echo "$as_me: creating $ac_file" >&6;}
17519 rm -f "$ac_file"
17520 fi
42ecbf5e
DJ
17521 # Let's still pretend it is `configure' which instantiates (i.e., don't
17522 # use $as_me), people would be surprised to read:
17523 # /* config.h. Generated by config.status. */
17524 if test x"$ac_file" = x-; then
17525 configure_input=
17526 else
17527 configure_input="$ac_file. "
17528 fi
17529 configure_input=$configure_input"Generated from `echo $ac_file_in |
17530 sed 's,.*/,,'` by configure."
17531
17532 # First look for the input files in the build tree, otherwise in the
17533 # src tree.
17534 ac_file_inputs=`IFS=:
17535 for f in $ac_file_in; do
17536 case $f in
17537 -) echo $tmp/stdin ;;
17538 [\\/$]*)
17539 # Absolute (can't be DOS-style, as IFS=:)
17540 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17541echo "$as_me: error: cannot find input file: $f" >&2;}
17542 { (exit 1); exit 1; }; }
17543 echo "$f";;
17544 *) # Relative
17545 if test -f "$f"; then
17546 # Build tree
17547 echo "$f"
17548 elif test -f "$srcdir/$f"; then
17549 # Source tree
17550 echo "$srcdir/$f"
17551 else
17552 # /dev/null tree
17553 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17554echo "$as_me: error: cannot find input file: $f" >&2;}
17555 { (exit 1); exit 1; }; }
17556 fi;;
17557 esac
17558 done` || { (exit 1); exit 1; }
42ecbf5e
DJ
17559_ACEOF
17560cat >>$CONFIG_STATUS <<_ACEOF
17561 sed "$ac_vpsub
17562$extrasub
17563_ACEOF
17564cat >>$CONFIG_STATUS <<\_ACEOF
17565:t
17566/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17567s,@configure_input@,$configure_input,;t t
17568s,@srcdir@,$ac_srcdir,;t t
17569s,@abs_srcdir@,$ac_abs_srcdir,;t t
17570s,@top_srcdir@,$ac_top_srcdir,;t t
17571s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17572s,@builddir@,$ac_builddir,;t t
17573s,@abs_builddir@,$ac_abs_builddir,;t t
17574s,@top_builddir@,$ac_top_builddir,;t t
17575s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17576s,@INSTALL@,$ac_INSTALL,;t t
17577" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17578 rm -f $tmp/stdin
17579 if test x"$ac_file" != x-; then
17580 mv $tmp/out $ac_file
17581 else
17582 cat $tmp/out
17583 rm -f $tmp/out
17584 fi
17585
17586done
17587_ACEOF
17588cat >>$CONFIG_STATUS <<\_ACEOF
17589
17590#
17591# CONFIG_HEADER section.
17592#
252b5132
RH
17593
17594# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17595# NAME is the cpp macro being defined and VALUE is the value it is being given.
17596#
17597# ac_d sets the value in "#define NAME VALUE" lines.
42ecbf5e
DJ
17598ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17599ac_dB='[ ].*$,\1#\2'
17600ac_dC=' '
17601ac_dD=',;t'
17602# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17603ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17604ac_uB='$,\1#\2define\3'
252b5132 17605ac_uC=' '
42ecbf5e
DJ
17606ac_uD=',;t'
17607
17608for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 17609 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
17610 case $ac_file in
17611 - | *:- | *:-:* ) # input from stdin
17612 cat >$tmp/stdin
17613 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17614 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17615 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17616 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17617 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
17618 esac
17619
42ecbf5e
DJ
17620 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17621echo "$as_me: creating $ac_file" >&6;}
17622
17623 # First look for the input files in the build tree, otherwise in the
17624 # src tree.
17625 ac_file_inputs=`IFS=:
17626 for f in $ac_file_in; do
17627 case $f in
17628 -) echo $tmp/stdin ;;
17629 [\\/$]*)
17630 # Absolute (can't be DOS-style, as IFS=:)
17631 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17632echo "$as_me: error: cannot find input file: $f" >&2;}
17633 { (exit 1); exit 1; }; }
17634 # Do quote $f, to prevent DOS paths from being IFS'd.
17635 echo "$f";;
17636 *) # Relative
17637 if test -f "$f"; then
17638 # Build tree
17639 echo "$f"
17640 elif test -f "$srcdir/$f"; then
17641 # Source tree
17642 echo "$srcdir/$f"
17643 else
17644 # /dev/null tree
17645 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17646echo "$as_me: error: cannot find input file: $f" >&2;}
17647 { (exit 1); exit 1; }; }
17648 fi;;
17649 esac
17650 done` || { (exit 1); exit 1; }
17651 # Remove the trailing spaces.
17652 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17653
17654_ACEOF
17655
17656# Transform confdefs.h into two sed scripts, `conftest.defines' and
17657# `conftest.undefs', that substitutes the proper values into
17658# config.h.in to produce config.h. The first handles `#define'
17659# templates, and the second `#undef' templates.
17660# And first: Protect against being on the right side of a sed subst in
17661# config.status. Protect against being in an unquoted here document
17662# in config.status.
17663rm -f conftest.defines conftest.undefs
17664# Using a here document instead of a string reduces the quoting nightmare.
17665# Putting comments in sed scripts is not portable.
17666#
17667# `end' is used to avoid that the second main sed command (meant for
17668# 0-ary CPP macros) applies to n-ary macro definitions.
17669# See the Autoconf documentation for `clear'.
17670cat >confdef2sed.sed <<\_ACEOF
17671s/[\\&,]/\\&/g
17672s,[\\$`],\\&,g
17673t clear
17674: clear
17675s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17676t end
17677s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17678: end
17679_ACEOF
17680# If some macros were called several times there might be several times
17681# the same #defines, which is useless. Nevertheless, we may not want to
17682# sort them, since we want the *last* AC-DEFINE to be honored.
17683uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17684sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17685rm -f confdef2sed.sed
252b5132
RH
17686
17687# This sed command replaces #undef with comments. This is necessary, for
17688# example, in the case of _POSIX_SOURCE, which is predefined and required
17689# on some systems where configure will not decide to define it.
42ecbf5e
DJ
17690cat >>conftest.undefs <<\_ACEOF
17691s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17692_ACEOF
17693
17694# Break up conftest.defines because some shells have a limit on the size
17695# of here documents, and old seds have small limits too (100 cmds).
17696echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17697echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17698echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17699echo ' :' >>$CONFIG_STATUS
17700rm -f conftest.tail
17701while grep . conftest.defines >/dev/null
17702do
17703 # Write a limited-size here document to $tmp/defines.sed.
17704 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17705 # Speed up: don't consider the non `#define' lines.
17706 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17707 # Work around the forget-to-reset-the-flag bug.
17708 echo 't clr' >>$CONFIG_STATUS
17709 echo ': clr' >>$CONFIG_STATUS
17710 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17711 echo 'CEOF
17712 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17713 rm -f $tmp/in
17714 mv $tmp/out $tmp/in
17715' >>$CONFIG_STATUS
17716 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17717 rm -f conftest.defines
17718 mv conftest.tail conftest.defines
17719done
17720rm -f conftest.defines
17721echo ' fi # grep' >>$CONFIG_STATUS
17722echo >>$CONFIG_STATUS
252b5132 17723
42ecbf5e
DJ
17724# Break up conftest.undefs because some shells have a limit on the size
17725# of here documents, and old seds have small limits too (100 cmds).
17726echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 17727rm -f conftest.tail
42ecbf5e 17728while grep . conftest.undefs >/dev/null
252b5132 17729do
42ecbf5e
DJ
17730 # Write a limited-size here document to $tmp/undefs.sed.
17731 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17732 # Speed up: don't consider the non `#undef'
17733 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17734 # Work around the forget-to-reset-the-flag bug.
17735 echo 't clr' >>$CONFIG_STATUS
17736 echo ': clr' >>$CONFIG_STATUS
17737 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 17738 echo 'CEOF
42ecbf5e
DJ
17739 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17740 rm -f $tmp/in
17741 mv $tmp/out $tmp/in
17742' >>$CONFIG_STATUS
17743 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17744 rm -f conftest.undefs
17745 mv conftest.tail conftest.undefs
252b5132 17746done
42ecbf5e
DJ
17747rm -f conftest.undefs
17748
17749cat >>$CONFIG_STATUS <<\_ACEOF
17750 # Let's still pretend it is `configure' which instantiates (i.e., don't
17751 # use $as_me), people would be surprised to read:
17752 # /* config.h. Generated by config.status. */
17753 if test x"$ac_file" = x-; then
17754 echo "/* Generated by configure. */" >$tmp/config.h
17755 else
17756 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17757 fi
17758 cat $tmp/in >>$tmp/config.h
17759 rm -f $tmp/in
17760 if test x"$ac_file" != x-; then
17761 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17762 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17763echo "$as_me: $ac_file is unchanged" >&6;}
17764 else
17765 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17766$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17767 X"$ac_file" : 'X\(//\)[^/]' \| \
17768 X"$ac_file" : 'X\(//\)$' \| \
17769 X"$ac_file" : 'X\(/\)' \| \
17770 . : '\(.\)' 2>/dev/null ||
17771echo X"$ac_file" |
17772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17773 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17774 /^X\(\/\/\)$/{ s//\1/; q; }
17775 /^X\(\/\).*/{ s//\1/; q; }
17776 s/.*/./; q'`
17777 { if $as_mkdir_p; then
17778 mkdir -p "$ac_dir"
252b5132 17779 else
42ecbf5e
DJ
17780 as_dir="$ac_dir"
17781 as_dirs=
17782 while test ! -d "$as_dir"; do
17783 as_dirs="$as_dir $as_dirs"
17784 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17785$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17786 X"$as_dir" : 'X\(//\)[^/]' \| \
17787 X"$as_dir" : 'X\(//\)$' \| \
17788 X"$as_dir" : 'X\(/\)' \| \
17789 . : '\(.\)' 2>/dev/null ||
17790echo X"$as_dir" |
17791 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17792 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17793 /^X\(\/\/\)$/{ s//\1/; q; }
17794 /^X\(\/\).*/{ s//\1/; q; }
17795 s/.*/./; q'`
17796 done
17797 test ! -n "$as_dirs" || mkdir $as_dirs
17798 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17799echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17800 { (exit 1); exit 1; }; }; }
17801
17802 rm -f $ac_file
17803 mv $tmp/config.h $ac_file
252b5132 17804 fi
42ecbf5e
DJ
17805 else
17806 cat $tmp/config.h
17807 rm -f $tmp/config.h
252b5132 17808 fi
42ecbf5e
DJ
17809# Compute $ac_file's index in $config_headers.
17810_am_stamp_count=1
17811for _am_header in $config_headers :; do
17812 case $_am_header in
17813 $ac_file | $ac_file:* )
17814 break ;;
17815 * )
17816 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17817 esac
17818done
17819echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17820$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17821 X$ac_file : 'X\(//\)[^/]' \| \
17822 X$ac_file : 'X\(//\)$' \| \
17823 X$ac_file : 'X\(/\)' \| \
17824 . : '\(.\)' 2>/dev/null ||
17825echo X$ac_file |
17826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17827 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17828 /^X\(\/\/\)$/{ s//\1/; q; }
17829 /^X\(\/\).*/{ s//\1/; q; }
17830 s/.*/./; q'`/stamp-h$_am_stamp_count
17831done
17832_ACEOF
17833cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 17834
42ecbf5e
DJ
17835#
17836# CONFIG_COMMANDS section.
17837#
17838for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17839 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17840 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17841 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17842$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17843 X"$ac_dest" : 'X\(//\)[^/]' \| \
17844 X"$ac_dest" : 'X\(//\)$' \| \
17845 X"$ac_dest" : 'X\(/\)' \| \
17846 . : '\(.\)' 2>/dev/null ||
17847echo X"$ac_dest" |
17848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17849 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17850 /^X\(\/\/\)$/{ s//\1/; q; }
17851 /^X\(\/\).*/{ s//\1/; q; }
17852 s/.*/./; q'`
17853 { if $as_mkdir_p; then
17854 mkdir -p "$ac_dir"
17855 else
17856 as_dir="$ac_dir"
17857 as_dirs=
17858 while test ! -d "$as_dir"; do
17859 as_dirs="$as_dir $as_dirs"
17860 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17861$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17862 X"$as_dir" : 'X\(//\)[^/]' \| \
17863 X"$as_dir" : 'X\(//\)$' \| \
17864 X"$as_dir" : 'X\(/\)' \| \
17865 . : '\(.\)' 2>/dev/null ||
17866echo X"$as_dir" |
17867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17868 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17869 /^X\(\/\/\)$/{ s//\1/; q; }
17870 /^X\(\/\).*/{ s//\1/; q; }
17871 s/.*/./; q'`
17872 done
17873 test ! -n "$as_dirs" || mkdir $as_dirs
17874 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17875echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17876 { (exit 1); exit 1; }; }; }
252b5132 17877
42ecbf5e 17878 ac_builddir=.
e5a52504 17879
42ecbf5e
DJ
17880if test "$ac_dir" != .; then
17881 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17882 # A "../" for each directory in $ac_dir_suffix.
17883 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17884else
17885 ac_dir_suffix= ac_top_builddir=
17886fi
17887
17888case $srcdir in
17889 .) # No --srcdir option. We are building in place.
17890 ac_srcdir=.
17891 if test -z "$ac_top_builddir"; then
17892 ac_top_srcdir=.
17893 else
17894 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17895 fi ;;
17896 [\\/]* | ?:[\\/]* ) # Absolute path.
17897 ac_srcdir=$srcdir$ac_dir_suffix;
17898 ac_top_srcdir=$srcdir ;;
17899 *) # Relative path.
17900 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17901 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17902esac
17903
17904# Do not use `cd foo && pwd` to compute absolute paths, because
17905# the directories may not exist.
17906case `pwd` in
17907.) ac_abs_builddir="$ac_dir";;
17908*)
17909 case "$ac_dir" in
17910 .) ac_abs_builddir=`pwd`;;
17911 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17912 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17913 esac;;
17914esac
17915case $ac_abs_builddir in
17916.) ac_abs_top_builddir=${ac_top_builddir}.;;
17917*)
17918 case ${ac_top_builddir}. in
17919 .) ac_abs_top_builddir=$ac_abs_builddir;;
17920 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17921 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17922 esac;;
17923esac
17924case $ac_abs_builddir in
17925.) ac_abs_srcdir=$ac_srcdir;;
17926*)
17927 case $ac_srcdir in
17928 .) ac_abs_srcdir=$ac_abs_builddir;;
17929 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17930 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17931 esac;;
17932esac
17933case $ac_abs_builddir in
17934.) ac_abs_top_srcdir=$ac_top_srcdir;;
17935*)
17936 case $ac_top_srcdir in
17937 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17938 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17939 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17940 esac;;
17941esac
e5a52504 17942
42ecbf5e
DJ
17943
17944 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17945echo "$as_me: executing $ac_dest commands" >&6;}
17946 case $ac_dest in
17947 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17948 # Strip MF so we end up with the name of the file.
17949 mf=`echo "$mf" | sed -e 's/:.*$//'`
17950 # Check whether this is an Automake generated Makefile or not.
17951 # We used to match only the files named `Makefile.in', but
17952 # some people rename them; so instead we look at the file content.
17953 # Grep'ing the first line is not enough: some people post-process
17954 # each Makefile.in and add a new line on top of each file to say so.
17955 # So let's grep whole file.
17956 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17957 dirpart=`(dirname "$mf") 2>/dev/null ||
17958$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17959 X"$mf" : 'X\(//\)[^/]' \| \
17960 X"$mf" : 'X\(//\)$' \| \
17961 X"$mf" : 'X\(/\)' \| \
17962 . : '\(.\)' 2>/dev/null ||
17963echo X"$mf" |
17964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17965 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17966 /^X\(\/\/\)$/{ s//\1/; q; }
17967 /^X\(\/\).*/{ s//\1/; q; }
17968 s/.*/./; q'`
17969 else
17970 continue
17971 fi
17972 # Extract the definition of DEPDIR, am__include, and am__quote
17973 # from the Makefile without running `make'.
17974 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17975 test -z "$DEPDIR" && continue
17976 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17977 test -z "am__include" && continue
17978 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17979 # When using ansi2knr, U may be empty or an underscore; expand it
17980 U=`sed -n 's/^U = //p' < "$mf"`
17981 # Find all dependency output files, they are included files with
17982 # $(DEPDIR) in their names. We invoke sed twice because it is the
17983 # simplest approach to changing $(DEPDIR) to its actual value in the
17984 # expansion.
17985 for file in `sed -n "
17986 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17987 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17988 # Make sure the directory exists.
17989 test -f "$dirpart/$file" && continue
17990 fdir=`(dirname "$file") 2>/dev/null ||
17991$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17992 X"$file" : 'X\(//\)[^/]' \| \
17993 X"$file" : 'X\(//\)$' \| \
17994 X"$file" : 'X\(/\)' \| \
17995 . : '\(.\)' 2>/dev/null ||
17996echo X"$file" |
17997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17998 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17999 /^X\(\/\/\)$/{ s//\1/; q; }
18000 /^X\(\/\).*/{ s//\1/; q; }
18001 s/.*/./; q'`
18002 { if $as_mkdir_p; then
18003 mkdir -p $dirpart/$fdir
18004 else
18005 as_dir=$dirpart/$fdir
18006 as_dirs=
18007 while test ! -d "$as_dir"; do
18008 as_dirs="$as_dir $as_dirs"
18009 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18010$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18011 X"$as_dir" : 'X\(//\)[^/]' \| \
18012 X"$as_dir" : 'X\(//\)$' \| \
18013 X"$as_dir" : 'X\(/\)' \| \
18014 . : '\(.\)' 2>/dev/null ||
18015echo X"$as_dir" |
18016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18017 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18018 /^X\(\/\/\)$/{ s//\1/; q; }
18019 /^X\(\/\).*/{ s//\1/; q; }
18020 s/.*/./; q'`
18021 done
18022 test ! -n "$as_dirs" || mkdir $as_dirs
18023 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18024echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18025 { (exit 1); exit 1; }; }; }
18026
18027 # echo "creating $dirpart/$file"
18028 echo '# dummy' > "$dirpart/$file"
18029 done
18030done
d7040cdb
SE
18031 ;;
18032 libtool )
18033
18034 # See if we are running on zsh, and set the options which allow our
18035 # commands through without removal of \ escapes.
18036 if test -n "${ZSH_VERSION+set}" ; then
18037 setopt NO_GLOB_SUBST
18038 fi
18039
18040 cfgfile="${ofile}T"
18041 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18042 $RM "$cfgfile"
18043
18044 cat <<_LT_EOF >> "$cfgfile"
18045#! $SHELL
18046
18047# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
718a6fd8 18048# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
18049# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18050# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18051#
718a6fd8
SE
18052# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18053# 2006, 2007, 2008 Free Software Foundation, Inc.
18054# Written by Gordon Matzigkeit, 1996
d7040cdb 18055#
718a6fd8 18056# This file is part of GNU Libtool.
d7040cdb 18057#
718a6fd8
SE
18058# GNU Libtool is free software; you can redistribute it and/or
18059# modify it under the terms of the GNU General Public License as
18060# published by the Free Software Foundation; either version 2 of
18061# the License, or (at your option) any later version.
d7040cdb 18062#
718a6fd8
SE
18063# As a special exception to the GNU General Public License,
18064# if you distribute this file as part of a program or library that
18065# is built using GNU Libtool, you may include this file under the
18066# same distribution terms that you use for the rest of that program.
d7040cdb 18067#
718a6fd8
SE
18068# GNU Libtool is distributed in the hope that it will be useful,
18069# but WITHOUT ANY WARRANTY; without even the implied warranty of
18070# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18071# GNU General Public License for more details.
d7040cdb 18072#
718a6fd8
SE
18073# You should have received a copy of the GNU General Public License
18074# along with GNU Libtool; see the file COPYING. If not, a copy
18075# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18076# obtained by writing to the Free Software Foundation, Inc.,
18077# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
18078
18079
18080# The names of the tagged configurations supported by this script.
18081available_tags=""
18082
18083# ### BEGIN LIBTOOL CONFIG
18084
18085# Which release of libtool.m4 was used?
18086macro_version=$macro_version
18087macro_revision=$macro_revision
18088
18089# Whether or not to build shared libraries.
18090build_libtool_libs=$enable_shared
18091
18092# Whether or not to build static libraries.
18093build_old_libs=$enable_static
18094
18095# What type of objects to build.
18096pic_mode=$pic_mode
18097
18098# Whether or not to optimize for fast installation.
18099fast_install=$enable_fast_install
18100
18101# The host system.
18102host_alias=$host_alias
18103host=$host
18104host_os=$host_os
18105
18106# The build system.
18107build_alias=$build_alias
18108build=$build
18109build_os=$build_os
18110
18111# A sed program that does not truncate output.
18112SED=$lt_SED
18113
18114# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18115Xsed="\$SED -e 1s/^X//"
18116
18117# A grep program that handles long lines.
18118GREP=$lt_GREP
18119
18120# An ERE matcher.
18121EGREP=$lt_EGREP
18122
18123# A literal string matcher.
18124FGREP=$lt_FGREP
18125
18126# A BSD- or MS-compatible name lister.
18127NM=$lt_NM
18128
18129# Whether we need soft or hard links.
18130LN_S=$lt_LN_S
18131
18132# What is the maximum length of a command?
18133max_cmd_len=$max_cmd_len
18134
18135# Object file suffix (normally "o").
18136objext=$ac_objext
18137
18138# Executable file suffix (normally "").
18139exeext=$exeext
18140
18141# whether the shell understands "unset".
18142lt_unset=$lt_unset
18143
18144# turn spaces into newlines.
18145SP2NL=$lt_lt_SP2NL
18146
18147# turn newlines into spaces.
18148NL2SP=$lt_lt_NL2SP
18149
18150# How to create reloadable object files.
18151reload_flag=$lt_reload_flag
18152reload_cmds=$lt_reload_cmds
18153
718a6fd8
SE
18154# An object symbol dumper.
18155OBJDUMP=$lt_OBJDUMP
18156
d7040cdb
SE
18157# Method to check whether dependent libraries are shared objects.
18158deplibs_check_method=$lt_deplibs_check_method
18159
18160# Command to use when deplibs_check_method == "file_magic".
18161file_magic_cmd=$lt_file_magic_cmd
18162
18163# The archiver.
18164AR=$lt_AR
18165AR_FLAGS=$lt_AR_FLAGS
18166
18167# A symbol stripping program.
18168STRIP=$lt_STRIP
18169
18170# Commands used to install an old-style archive.
18171RANLIB=$lt_RANLIB
18172old_postinstall_cmds=$lt_old_postinstall_cmds
18173old_postuninstall_cmds=$lt_old_postuninstall_cmds
18174
18175# A C compiler.
18176LTCC=$lt_CC
18177
18178# LTCC compiler flags.
18179LTCFLAGS=$lt_CFLAGS
18180
18181# Take the output of nm and produce a listing of raw symbols and C names.
18182global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18183
18184# Transform the output of nm in a proper C declaration.
18185global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18186
18187# Transform the output of nm in a C name address pair.
18188global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18189
718a6fd8
SE
18190# Transform the output of nm in a C name address pair when lib prefix is needed.
18191global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18192
d7040cdb
SE
18193# The name of the directory that contains temporary libtool files.
18194objdir=$objdir
18195
18196# Shell to use when invoking shell scripts.
18197SHELL=$lt_SHELL
18198
18199# An echo program that does not interpret backslashes.
18200ECHO=$lt_ECHO
18201
18202# Used to examine libraries when file_magic_cmd begins with "file".
18203MAGIC_CMD=$MAGIC_CMD
18204
18205# Must we lock files when doing compilation?
18206need_locks=$lt_need_locks
18207
718a6fd8
SE
18208# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18209DSYMUTIL=$lt_DSYMUTIL
18210
18211# Tool to change global to local symbols on Mac OS X.
18212NMEDIT=$lt_NMEDIT
18213
18214# Tool to manipulate fat objects and archives on Mac OS X.
18215LIPO=$lt_LIPO
18216
18217# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18218OTOOL=$lt_OTOOL
18219
18220# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18221OTOOL64=$lt_OTOOL64
18222
d7040cdb
SE
18223# Old archive suffix (normally "a").
18224libext=$libext
18225
18226# Shared library suffix (normally ".so").
18227shrext_cmds=$lt_shrext_cmds
18228
18229# The commands to extract the exported symbol list from a shared archive.
18230extract_expsyms_cmds=$lt_extract_expsyms_cmds
18231
18232# Variables whose values should be saved in libtool wrapper scripts and
18233# restored at link time.
18234variables_saved_for_relink=$lt_variables_saved_for_relink
18235
18236# Do we need the "lib" prefix for modules?
18237need_lib_prefix=$need_lib_prefix
18238
18239# Do we need a version for libraries?
18240need_version=$need_version
18241
18242# Library versioning type.
18243version_type=$version_type
18244
18245# Shared library runtime path variable.
18246runpath_var=$runpath_var
18247
18248# Shared library path variable.
18249shlibpath_var=$shlibpath_var
18250
18251# Is shlibpath searched before the hard-coded library search path?
18252shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18253
18254# Format of library name prefix.
18255libname_spec=$lt_libname_spec
18256
18257# List of archive names. First name is the real one, the rest are links.
18258# The last name is the one that the linker finds with -lNAME
18259library_names_spec=$lt_library_names_spec
18260
18261# The coded name of the library, if different from the real name.
18262soname_spec=$lt_soname_spec
18263
18264# Command to use after installation of a shared archive.
18265postinstall_cmds=$lt_postinstall_cmds
18266
18267# Command to use after uninstallation of a shared archive.
18268postuninstall_cmds=$lt_postuninstall_cmds
18269
18270# Commands used to finish a libtool library installation in a directory.
18271finish_cmds=$lt_finish_cmds
18272
18273# As "finish_cmds", except a single script fragment to be evaled but
18274# not shown.
18275finish_eval=$lt_finish_eval
18276
18277# Whether we should hardcode library paths into libraries.
18278hardcode_into_libs=$hardcode_into_libs
18279
18280# Compile-time system search path for libraries.
18281sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18282
18283# Run-time system search path for libraries.
18284sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18285
18286# Whether dlopen is supported.
18287dlopen_support=$enable_dlopen
18288
18289# Whether dlopen of programs is supported.
18290dlopen_self=$enable_dlopen_self
18291
18292# Whether dlopen of statically linked programs is supported.
18293dlopen_self_static=$enable_dlopen_self_static
18294
18295# Commands to strip libraries.
18296old_striplib=$lt_old_striplib
18297striplib=$lt_striplib
18298
18299
18300# The linker used to build libraries.
18301LD=$lt_LD
18302
18303# Commands used to build an old-style archive.
18304old_archive_cmds=$lt_old_archive_cmds
18305
18306# A language specific compiler.
18307CC=$lt_compiler
18308
18309# Is the compiler the GNU compiler?
18310with_gcc=$GCC
18311
18312# Compiler flag to turn off builtin functions.
18313no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18314
18315# How to pass a linker flag through the compiler.
18316wl=$lt_lt_prog_compiler_wl
18317
18318# Additional compiler flags for building library objects.
18319pic_flag=$lt_lt_prog_compiler_pic
18320
18321# Compiler flag to prevent dynamic linking.
18322link_static_flag=$lt_lt_prog_compiler_static
18323
18324# Does compiler simultaneously support -c and -o options?
18325compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18326
18327# Whether or not to add -lc for building shared libraries.
18328build_libtool_need_lc=$archive_cmds_need_lc
18329
18330# Whether or not to disallow shared libs when runtime libs are static.
18331allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18332
18333# Compiler flag to allow reflexive dlopens.
18334export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18335
18336# Compiler flag to generate shared objects directly from archives.
18337whole_archive_flag_spec=$lt_whole_archive_flag_spec
18338
18339# Whether the compiler copes with passing no objects directly.
18340compiler_needs_object=$lt_compiler_needs_object
18341
18342# Create an old-style archive from a shared archive.
18343old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18344
18345# Create a temporary old-style archive to link instead of a shared archive.
18346old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18347
18348# Commands used to build a shared archive.
18349archive_cmds=$lt_archive_cmds
18350archive_expsym_cmds=$lt_archive_expsym_cmds
18351
18352# Commands used to build a loadable module if different from building
18353# a shared archive.
18354module_cmds=$lt_module_cmds
18355module_expsym_cmds=$lt_module_expsym_cmds
18356
18357# Whether we are building with GNU ld or not.
18358with_gnu_ld=$lt_with_gnu_ld
18359
18360# Flag that allows shared libraries with undefined symbols to be built.
18361allow_undefined_flag=$lt_allow_undefined_flag
18362
18363# Flag that enforces no undefined symbols.
18364no_undefined_flag=$lt_no_undefined_flag
18365
18366# Flag to hardcode \$libdir into a binary during linking.
18367# This must work even if \$libdir does not exist
18368hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18369
18370# If ld is used when linking, flag to hardcode \$libdir into a binary
18371# during linking. This must work even if \$libdir does not exist.
18372hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18373
18374# Whether we need a single "-rpath" flag with a separated argument.
18375hardcode_libdir_separator=$lt_hardcode_libdir_separator
18376
18377# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18378# DIR into the resulting binary.
18379hardcode_direct=$hardcode_direct
18380
18381# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18382# DIR into the resulting binary and the resulting library dependency is
18383# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18384# library is relocated.
18385hardcode_direct_absolute=$hardcode_direct_absolute
18386
18387# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18388# into the resulting binary.
18389hardcode_minus_L=$hardcode_minus_L
18390
18391# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18392# into the resulting binary.
18393hardcode_shlibpath_var=$hardcode_shlibpath_var
18394
18395# Set to "yes" if building a shared library automatically hardcodes DIR
18396# into the library and all subsequent libraries and executables linked
18397# against it.
18398hardcode_automatic=$hardcode_automatic
18399
18400# Set to yes if linker adds runtime paths of dependent libraries
18401# to runtime path list.
18402inherit_rpath=$inherit_rpath
18403
18404# Whether libtool must link a program against all its dependency libraries.
18405link_all_deplibs=$link_all_deplibs
18406
18407# Fix the shell variable \$srcfile for the compiler.
18408fix_srcfile_path=$lt_fix_srcfile_path
18409
18410# Set to "yes" if exported symbols are required.
18411always_export_symbols=$always_export_symbols
18412
18413# The commands to list exported symbols.
18414export_symbols_cmds=$lt_export_symbols_cmds
18415
18416# Symbols that should not be listed in the preloaded symbols.
18417exclude_expsyms=$lt_exclude_expsyms
18418
18419# Symbols that must always be exported.
18420include_expsyms=$lt_include_expsyms
18421
18422# Commands necessary for linking programs (against libraries) with templates.
18423prelink_cmds=$lt_prelink_cmds
18424
18425# Specify filename containing input files.
18426file_list_spec=$lt_file_list_spec
18427
18428# How to hardcode a shared library path into an executable.
18429hardcode_action=$hardcode_action
18430
18431# ### END LIBTOOL CONFIG
18432
18433_LT_EOF
18434
18435 case $host_os in
18436 aix3*)
18437 cat <<\_LT_EOF >> "$cfgfile"
18438# AIX sometimes has problems with the GCC collect2 program. For some
18439# reason, if we set the COLLECT_NAMES environment variable, the problems
18440# vanish in a puff of smoke.
18441if test "X${COLLECT_NAMES+set}" != Xset; then
18442 COLLECT_NAMES=
18443 export COLLECT_NAMES
18444fi
18445_LT_EOF
18446 ;;
18447 esac
18448
18449
18450ltmain="$ac_aux_dir/ltmain.sh"
18451
18452
18453 # We use sed instead of cat because bash on DJGPP gets confused if
18454 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18455 # text mode, it properly converts lines to CR/LF. This bash problem
18456 # is reportedly fixed, but why not run on old versions too?
18457 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18458 || (rm -f "$cfgfile"; exit 1)
18459
18460 case $xsi_shell in
18461 yes)
18462 cat << \_LT_EOF >> "$cfgfile"
718a6fd8 18463
d7040cdb
SE
18464# func_dirname file append nondir_replacement
18465# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18466# otherwise set result to NONDIR_REPLACEMENT.
18467func_dirname ()
18468{
18469 case ${1} in
18470 */*) func_dirname_result="${1%/*}${2}" ;;
18471 * ) func_dirname_result="${3}" ;;
18472 esac
18473}
18474
18475# func_basename file
18476func_basename ()
18477{
18478 func_basename_result="${1##*/}"
18479}
18480
718a6fd8
SE
18481# func_dirname_and_basename file append nondir_replacement
18482# perform func_basename and func_dirname in a single function
18483# call:
18484# dirname: Compute the dirname of FILE. If nonempty,
18485# add APPEND to the result, otherwise set result
18486# to NONDIR_REPLACEMENT.
18487# value returned in "$func_dirname_result"
18488# basename: Compute filename of FILE.
18489# value retuned in "$func_basename_result"
18490# Implementation must be kept synchronized with func_dirname
18491# and func_basename. For efficiency, we do not delegate to
18492# those functions but instead duplicate the functionality here.
18493func_dirname_and_basename ()
18494{
18495 case ${1} in
18496 */*) func_dirname_result="${1%/*}${2}" ;;
18497 * ) func_dirname_result="${3}" ;;
18498 esac
18499 func_basename_result="${1##*/}"
18500}
18501
d7040cdb
SE
18502# func_stripname prefix suffix name
18503# strip PREFIX and SUFFIX off of NAME.
18504# PREFIX and SUFFIX must not contain globbing or regex special
18505# characters, hashes, percent signs, but SUFFIX may contain a leading
18506# dot (in which case that matches only a dot).
18507func_stripname ()
18508{
18509 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18510 # positional parameters, so assign one to ordinary parameter first.
18511 func_stripname_result=${3}
18512 func_stripname_result=${func_stripname_result#"${1}"}
18513 func_stripname_result=${func_stripname_result%"${2}"}
18514}
18515
18516# func_opt_split
18517func_opt_split ()
18518{
18519 func_opt_split_opt=${1%%=*}
18520 func_opt_split_arg=${1#*=}
18521}
18522
18523# func_lo2o object
18524func_lo2o ()
18525{
18526 case ${1} in
18527 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18528 *) func_lo2o_result=${1} ;;
18529 esac
18530}
718a6fd8
SE
18531
18532# func_xform libobj-or-source
18533func_xform ()
18534{
18535 func_xform_result=${1%.*}.lo
18536}
18537
18538# func_arith arithmetic-term...
18539func_arith ()
18540{
18541 func_arith_result=$(( $* ))
18542}
18543
18544# func_len string
18545# STRING may not start with a hyphen.
18546func_len ()
18547{
18548 func_len_result=${#1}
18549}
18550
d7040cdb
SE
18551_LT_EOF
18552 ;;
18553 *) # Bourne compatible functions.
18554 cat << \_LT_EOF >> "$cfgfile"
718a6fd8 18555
d7040cdb
SE
18556# func_dirname file append nondir_replacement
18557# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18558# otherwise set result to NONDIR_REPLACEMENT.
18559func_dirname ()
18560{
18561 # Extract subdirectory from the argument.
18562 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18563 if test "X$func_dirname_result" = "X${1}"; then
18564 func_dirname_result="${3}"
18565 else
18566 func_dirname_result="$func_dirname_result${2}"
18567 fi
18568}
18569
18570# func_basename file
18571func_basename ()
18572{
18573 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18574}
18575
718a6fd8 18576
d7040cdb
SE
18577# func_stripname prefix suffix name
18578# strip PREFIX and SUFFIX off of NAME.
18579# PREFIX and SUFFIX must not contain globbing or regex special
18580# characters, hashes, percent signs, but SUFFIX may contain a leading
18581# dot (in which case that matches only a dot).
18582# func_strip_suffix prefix name
18583func_stripname ()
18584{
18585 case ${2} in
18586 .*) func_stripname_result=`$ECHO "X${3}" \
18587 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18588 *) func_stripname_result=`$ECHO "X${3}" \
18589 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18590 esac
18591}
18592
18593# sed scripts:
18594my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18595my_sed_long_arg='1s/^-[^=]*=//'
18596
18597# func_opt_split
18598func_opt_split ()
18599{
18600 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18601 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18602}
18603
18604# func_lo2o object
18605func_lo2o ()
18606{
18607 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18608}
718a6fd8
SE
18609
18610# func_xform libobj-or-source
18611func_xform ()
18612{
18613 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18614}
18615
18616# func_arith arithmetic-term...
18617func_arith ()
18618{
18619 func_arith_result=`expr "$@"`
18620}
18621
18622# func_len string
18623# STRING may not start with a hyphen.
18624func_len ()
18625{
18626 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18627}
18628
d7040cdb
SE
18629_LT_EOF
18630esac
18631
18632case $lt_shell_append in
18633 yes)
18634 cat << \_LT_EOF >> "$cfgfile"
18635
18636# func_append var value
18637# Append VALUE to the end of shell variable VAR.
18638func_append ()
18639{
18640 eval "$1+=\$2"
18641}
18642_LT_EOF
18643 ;;
18644 *)
18645 cat << \_LT_EOF >> "$cfgfile"
18646
18647# func_append var value
18648# Append VALUE to the end of shell variable VAR.
18649func_append ()
18650{
18651 eval "$1=\$$1\$2"
18652}
718a6fd8 18653
d7040cdb
SE
18654_LT_EOF
18655 ;;
18656 esac
18657
18658
18659 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18660 || (rm -f "$cfgfile"; exit 1)
18661
18662 mv -f "$cfgfile" "$ofile" ||
18663 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18664 chmod +x "$ofile"
18665
42ecbf5e 18666 ;;
20e95c23
DJ
18667 default-1 )
18668 for ac_file in $CONFIG_FILES; do
18669 # Support "outfile[:infile[:infile...]]"
18670 case "$ac_file" in
18671 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18672 esac
18673 # PO directories have a Makefile.in generated from Makefile.in.in.
18674 case "$ac_file" in */Makefile.in)
18675 # Adjust a relative srcdir.
18676 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18677 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18678 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18679 # In autoconf-2.13 it is called $ac_given_srcdir.
18680 # In autoconf-2.50 it is called $srcdir.
18681 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18682 case "$ac_given_srcdir" in
18683 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18684 /*) top_srcdir="$ac_given_srcdir" ;;
18685 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18686 esac
18687 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18688 rm -f "$ac_dir/POTFILES"
18689 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18690 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18691 POMAKEFILEDEPS="POTFILES.in"
18692 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
18693 # on $ac_dir but don't depend on user-specified configuration
18694 # parameters.
18695 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18696 # The LINGUAS file contains the set of available languages.
18697 if test -n "$OBSOLETE_ALL_LINGUAS"; then
18698 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18699 fi
18700 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18701 # Hide the ALL_LINGUAS assigment from automake.
18702 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18703 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18704 else
18705 # The set of available languages was given in configure.in.
18706 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18707 fi
18708 case "$ac_given_srcdir" in
18709 .) srcdirpre= ;;
18710 *) srcdirpre='$(srcdir)/' ;;
18711 esac
18712 POFILES=
18713 GMOFILES=
18714 UPDATEPOFILES=
18715 DUMMYPOFILES=
18716 for lang in $ALL_LINGUAS; do
18717 POFILES="$POFILES $srcdirpre$lang.po"
18718 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18719 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18720 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18721 done
18722 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18723 # environment variable.
18724 INST_LINGUAS=
18725 if test -n "$ALL_LINGUAS"; then
18726 for presentlang in $ALL_LINGUAS; do
18727 useit=no
18728 if test "%UNSET%" != "$LINGUAS"; then
18729 desiredlanguages="$LINGUAS"
18730 else
18731 desiredlanguages="$ALL_LINGUAS"
18732 fi
18733 for desiredlang in $desiredlanguages; do
18734 # Use the presentlang catalog if desiredlang is
18735 # a. equal to presentlang, or
18736 # b. a variant of presentlang (because in this case,
18737 # presentlang can be used as a fallback for messages
18738 # which are not translated in the desiredlang catalog).
18739 case "$desiredlang" in
18740 "$presentlang"*) useit=yes;;
18741 esac
18742 done
18743 if test $useit = yes; then
18744 INST_LINGUAS="$INST_LINGUAS $presentlang"
18745 fi
18746 done
18747 fi
18748 CATALOGS=
18749 if test -n "$INST_LINGUAS"; then
18750 for lang in $INST_LINGUAS; do
18751 CATALOGS="$CATALOGS $lang.gmo"
18752 done
18753 fi
18754 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18755 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"
18756 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18757 if test -f "$f"; then
18758 case "$f" in
18759 *.orig | *.bak | *~) ;;
18760 *) cat "$f" >> "$ac_dir/Makefile" ;;
18761 esac
18762 fi
18763 done
18764 fi
18765 ;;
18766 esac
18767 done ;;
42ecbf5e
DJ
18768 esac
18769done
18770_ACEOF
e5a52504 18771
42ecbf5e
DJ
18772cat >>$CONFIG_STATUS <<\_ACEOF
18773
18774{ (exit 0); exit 0; }
18775_ACEOF
252b5132 18776chmod +x $CONFIG_STATUS
42ecbf5e
DJ
18777ac_clean_files=$ac_clean_files_save
18778
18779
18780# configure is writing to config.log, and then calls config.status.
18781# config.status does its own redirection, appending to config.log.
18782# Unfortunately, on DOS this fails, as config.log is still kept open
18783# by configure, so config.status won't be able to write to it; its
18784# output is simply discarded. So we exec the FD to /dev/null,
18785# effectively closing config.log, so it can be properly (re)opened and
18786# appended to by config.status. When coming back to configure, we
18787# need to make the FD available again.
18788if test "$no_create" != yes; then
18789 ac_cs_success=:
18790 ac_config_status_args=
18791 test "$silent" = yes &&
18792 ac_config_status_args="$ac_config_status_args --quiet"
18793 exec 5>/dev/null
18794 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18795 exec 5>>config.log
18796 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18797 # would make configure fail if this is the last instruction.
18798 $ac_cs_success || { (exit 1); exit 1; }
18799fi
252b5132 18800
This page took 1.517214 seconds and 4 git commands to generate.